| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <http://www.imagemagick.org>. |
| 6 | # |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 7 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 11 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18 | |
| 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | setopt NO_GLOB_SUBST |
| 28 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35 | fi |
| 36 | |
| 37 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 62 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
| 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
| 83 | fi |
| 84 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
| 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 94 | as_myself= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 95 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS |
| 105 | |
| 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
| 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 115 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 116 | fi |
| 117 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
| 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
| 135 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 177 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 178 | |
| 179 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 180 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 181 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 182 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 183 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 184 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 185 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 186 | if (eval "$as_required") 2>/dev/null; then : |
| 187 | as_have_required=yes |
| 188 | else |
| 189 | as_have_required=no |
| 190 | fi |
| 191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 192 | |
| 193 | else |
| 194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 195 | as_found=false |
| 196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 197 | do |
| 198 | IFS=$as_save_IFS |
| 199 | test -z "$as_dir" && as_dir=. |
| 200 | as_found=: |
| 201 | case $as_dir in #( |
| 202 | /*) |
| 203 | for as_base in sh bash ksh sh5; do |
| 204 | # Try only shells that exist, to save several forks. |
| 205 | as_shell=$as_dir/$as_base |
| 206 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 209 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 210 | break 2 |
| 211 | fi |
| 212 | fi |
| 213 | done;; |
| 214 | esac |
| 215 | as_found=false |
| 216 | done |
| 217 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 218 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 219 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 220 | fi; } |
| 221 | IFS=$as_save_IFS |
| 222 | |
| 223 | |
| 224 | if test "x$CONFIG_SHELL" != x; then : |
| 225 | # We cannot yet assume a decent shell, so we have to provide a |
| 226 | # neutralization value for shells without unset; and this also |
| 227 | # works around shells that cannot unset nonexistent variables. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 228 | # Preserve -v and -x to the replacement shell. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 229 | BASH_ENV=/dev/null |
| 230 | ENV=/dev/null |
| 231 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 232 | export CONFIG_SHELL |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 233 | case $- in # (((( |
| 234 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 235 | *v* ) as_opts=-v ;; |
| 236 | *x* ) as_opts=-x ;; |
| 237 | * ) as_opts= ;; |
| 238 | esac |
| 239 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 240 | fi |
| 241 | |
| 242 | if test x$as_have_required = xno; then : |
| 243 | $as_echo "$0: This script requires a shell more modern than all" |
| 244 | $as_echo "$0: the shells that I found on your system." |
| 245 | if test x${ZSH_VERSION+set} = xset ; then |
| 246 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 247 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 248 | else |
| 249 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 250 | $0: http://www.imagemagick.org about your system, including |
| 251 | $0: any error possibly output before this message. Then |
| 252 | $0: install a modern shell, or manually run the script |
| 253 | $0: under such a shell if you do have one." |
| 254 | fi |
| 255 | exit 1 |
| 256 | fi |
| 257 | fi |
| 258 | fi |
| 259 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 260 | export SHELL |
| 261 | # Unset more variables known to interfere with behavior of common tools. |
| 262 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 263 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 264 | |
| 265 | ## --------------------- ## |
| 266 | ## M4sh Shell Functions. ## |
| 267 | ## --------------------- ## |
| 268 | # as_fn_unset VAR |
| 269 | # --------------- |
| 270 | # Portably unset VAR. |
| 271 | as_fn_unset () |
| 272 | { |
| 273 | { eval $1=; unset $1;} |
| 274 | } |
| 275 | as_unset=as_fn_unset |
| 276 | |
| 277 | # as_fn_set_status STATUS |
| 278 | # ----------------------- |
| 279 | # Set $? to STATUS, without forking. |
| 280 | as_fn_set_status () |
| 281 | { |
| 282 | return $1 |
| 283 | } # as_fn_set_status |
| 284 | |
| 285 | # as_fn_exit STATUS |
| 286 | # ----------------- |
| 287 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 288 | as_fn_exit () |
| 289 | { |
| 290 | set +e |
| 291 | as_fn_set_status $1 |
| 292 | exit $1 |
| 293 | } # as_fn_exit |
| 294 | |
| 295 | # as_fn_mkdir_p |
| 296 | # ------------- |
| 297 | # Create "$as_dir" as a directory, including parents if necessary. |
| 298 | as_fn_mkdir_p () |
| 299 | { |
| 300 | |
| 301 | case $as_dir in #( |
| 302 | -*) as_dir=./$as_dir;; |
| 303 | esac |
| 304 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 305 | as_dirs= |
| 306 | while :; do |
| 307 | case $as_dir in #( |
| 308 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 309 | *) as_qdir=$as_dir;; |
| 310 | esac |
| 311 | as_dirs="'$as_qdir' $as_dirs" |
| 312 | as_dir=`$as_dirname -- "$as_dir" || |
| 313 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 314 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 315 | X"$as_dir" : 'X\(//\)$' \| \ |
| 316 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 317 | $as_echo X"$as_dir" | |
| 318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 319 | s//\1/ |
| 320 | q |
| 321 | } |
| 322 | /^X\(\/\/\)[^/].*/{ |
| 323 | s//\1/ |
| 324 | q |
| 325 | } |
| 326 | /^X\(\/\/\)$/{ |
| 327 | s//\1/ |
| 328 | q |
| 329 | } |
| 330 | /^X\(\/\).*/{ |
| 331 | s//\1/ |
| 332 | q |
| 333 | } |
| 334 | s/.*/./; q'` |
| 335 | test -d "$as_dir" && break |
| 336 | done |
| 337 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 338 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 339 | |
| 340 | |
| 341 | } # as_fn_mkdir_p |
| 342 | # as_fn_append VAR VALUE |
| 343 | # ---------------------- |
| 344 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 345 | # advantage of any shell optimizations that allow amortized linear growth over |
| 346 | # repeated appends, instead of the typical quadratic growth present in naive |
| 347 | # implementations. |
| 348 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 349 | eval 'as_fn_append () |
| 350 | { |
| 351 | eval $1+=\$2 |
| 352 | }' |
| 353 | else |
| 354 | as_fn_append () |
| 355 | { |
| 356 | eval $1=\$$1\$2 |
| 357 | } |
| 358 | fi # as_fn_append |
| 359 | |
| 360 | # as_fn_arith ARG... |
| 361 | # ------------------ |
| 362 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 363 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 364 | # must be portable across $(()) and expr. |
| 365 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 366 | eval 'as_fn_arith () |
| 367 | { |
| 368 | as_val=$(( $* )) |
| 369 | }' |
| 370 | else |
| 371 | as_fn_arith () |
| 372 | { |
| 373 | as_val=`expr "$@" || test $? -eq 1` |
| 374 | } |
| 375 | fi # as_fn_arith |
| 376 | |
| 377 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 378 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 379 | # ---------------------------------------- |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 380 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 381 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 382 | # script with STATUS, using 1 if that was 0. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 383 | as_fn_error () |
| 384 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 385 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 386 | if test "$4"; then |
| 387 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 388 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 389 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 390 | $as_echo "$as_me: error: $2" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 391 | as_fn_exit $as_status |
| 392 | } # as_fn_error |
| 393 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 394 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 395 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 396 | as_expr=expr |
| 397 | else |
| 398 | as_expr=false |
| 399 | fi |
| 400 | |
| 401 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 402 | as_basename=basename |
| 403 | else |
| 404 | as_basename=false |
| 405 | fi |
| 406 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 407 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 408 | as_dirname=dirname |
| 409 | else |
| 410 | as_dirname=false |
| 411 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 412 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 413 | as_me=`$as_basename -- "$0" || |
| 414 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 415 | X"$0" : 'X\(//\)$' \| \ |
| 416 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 417 | $as_echo X/"$0" | |
| 418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 419 | s//\1/ |
| 420 | q |
| 421 | } |
| 422 | /^X\/\(\/\/\)$/{ |
| 423 | s//\1/ |
| 424 | q |
| 425 | } |
| 426 | /^X\/\(\/\).*/{ |
| 427 | s//\1/ |
| 428 | q |
| 429 | } |
| 430 | s/.*/./; q'` |
| 431 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 432 | # Avoid depending upon Character Ranges. |
| 433 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 434 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 435 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 436 | as_cr_digits='0123456789' |
| 437 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 438 | |
| 439 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 440 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 441 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 442 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 443 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 444 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 445 | sed -n ' |
| 446 | p |
| 447 | /[$]LINENO/= |
| 448 | ' <$as_myself | |
| 449 | sed ' |
| 450 | s/[$]LINENO.*/&-/ |
| 451 | t lineno |
| 452 | b |
| 453 | :lineno |
| 454 | N |
| 455 | :loop |
| 456 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 457 | t loop |
| 458 | s/-\n.*// |
| 459 | ' >$as_me.lineno && |
| 460 | chmod +x "$as_me.lineno" || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 461 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 462 | |
| 463 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 464 | # (the dirname of $[0] is not the place where we might find the |
| 465 | # original and so on. Autoconf is especially sensitive to this). |
| 466 | . "./$as_me.lineno" |
| 467 | # Exit status is that of the last command. |
| 468 | exit |
| 469 | } |
| 470 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 471 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 472 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 473 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 474 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 475 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 476 | xy) ECHO_C='\c';; |
| 477 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 478 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 479 | esac;; |
| 480 | *) |
| 481 | ECHO_N='-n';; |
| 482 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 483 | |
| 484 | rm -f conf$$ conf$$.exe conf$$.file |
| 485 | if test -d conf$$.dir; then |
| 486 | rm -f conf$$.dir/conf$$.file |
| 487 | else |
| 488 | rm -f conf$$.dir |
| 489 | mkdir conf$$.dir 2>/dev/null |
| 490 | fi |
| 491 | if (echo >conf$$.file) 2>/dev/null; then |
| 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 493 | as_ln_s='ln -s' |
| 494 | # ... but there are two gotchas: |
| 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 497 | # In both cases, we have to default to `cp -p'. |
| 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 499 | as_ln_s='cp -p' |
| 500 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 501 | as_ln_s=ln |
| 502 | else |
| 503 | as_ln_s='cp -p' |
| 504 | fi |
| 505 | else |
| 506 | as_ln_s='cp -p' |
| 507 | fi |
| 508 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 509 | rmdir conf$$.dir 2>/dev/null |
| 510 | |
| 511 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 512 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 513 | else |
| 514 | test -d ./-p && rmdir ./-p |
| 515 | as_mkdir_p=false |
| 516 | fi |
| 517 | |
| 518 | if test -x / >/dev/null 2>&1; then |
| 519 | as_test_x='test -x' |
| 520 | else |
| 521 | if ls -dL / >/dev/null 2>&1; then |
| 522 | as_ls_L_option=L |
| 523 | else |
| 524 | as_ls_L_option= |
| 525 | fi |
| 526 | as_test_x=' |
| 527 | eval sh -c '\'' |
| 528 | if test -d "$1"; then |
| 529 | test -d "$1/."; |
| 530 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 531 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 532 | -*)set "./$1";; |
| 533 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 534 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 535 | ???[sx]*):;;*)false;;esac;fi |
| 536 | '\'' sh |
| 537 | ' |
| 538 | fi |
| 539 | as_executable_p=$as_test_x |
| 540 | |
| 541 | # Sed expression to map a string onto a valid CPP name. |
| 542 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 543 | |
| 544 | # Sed expression to map a string onto a valid variable name. |
| 545 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 547 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 548 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 549 | lt_ltdl_dir='ltdl' |
| 550 | |
| 551 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" |
| 552 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 553 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 554 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 555 | exec 6>&1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 556 | |
| 557 | # Name of the host. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 558 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 559 | # so uname gets run too. |
| 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 561 | |
| 562 | # |
| 563 | # Initializations. |
| 564 | # |
| 565 | ac_default_prefix=/usr/local |
| 566 | ac_clean_files= |
| 567 | ac_config_libobj_dir=. |
| 568 | LIBOBJS= |
| 569 | cross_compiling=no |
| 570 | subdirs= |
| 571 | MFLAGS= |
| 572 | MAKEFLAGS= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 573 | |
| 574 | # Identity of this package. |
| 575 | PACKAGE_NAME='ImageMagick' |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 576 | PACKAGE_TARNAME='ImageMagick-7.0.0' |
| 577 | PACKAGE_VERSION='7.0.0' |
| 578 | PACKAGE_STRING='ImageMagick 7.0.0' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 579 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 580 | PACKAGE_URL='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 581 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 582 | ac_unique_file="MagickCore/MagickCore.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 583 | ac_config_libobj_dir=ltdl |
| 584 | # Factoring default headers for most tests. |
| 585 | ac_includes_default="\ |
| 586 | #include <stdio.h> |
| 587 | #ifdef HAVE_SYS_TYPES_H |
| 588 | # include <sys/types.h> |
| 589 | #endif |
| 590 | #ifdef HAVE_SYS_STAT_H |
| 591 | # include <sys/stat.h> |
| 592 | #endif |
| 593 | #ifdef STDC_HEADERS |
| 594 | # include <stdlib.h> |
| 595 | # include <stddef.h> |
| 596 | #else |
| 597 | # ifdef HAVE_STDLIB_H |
| 598 | # include <stdlib.h> |
| 599 | # endif |
| 600 | #endif |
| 601 | #ifdef HAVE_STRING_H |
| 602 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 603 | # include <memory.h> |
| 604 | # endif |
| 605 | # include <string.h> |
| 606 | #endif |
| 607 | #ifdef HAVE_STRINGS_H |
| 608 | # include <strings.h> |
| 609 | #endif |
| 610 | #ifdef HAVE_INTTYPES_H |
| 611 | # include <inttypes.h> |
| 612 | #endif |
| 613 | #ifdef HAVE_STDINT_H |
| 614 | # include <stdint.h> |
| 615 | #endif |
| 616 | #ifdef HAVE_UNISTD_H |
| 617 | # include <unistd.h> |
| 618 | #endif" |
| 619 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 620 | ac_header_list= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 621 | ac_subst_vars='ltdl_LTLIBOBJS |
| 622 | ltdl_LIBOBJS |
| 623 | am__EXEEXT_FALSE |
| 624 | am__EXEEXT_TRUE |
| 625 | LTLIBOBJS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 626 | MAGICK_FEATURES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 627 | MAGICK_LIBS |
| 628 | MAGICK_LDFLAGS |
| 629 | MAGICK_PCFLAGS |
| 630 | MAGICK_CPPFLAGS |
| 631 | MAGICK_CXXFLAGS |
| 632 | MAGICK_CFLAGS |
| 633 | MAGICK_DEP_LIBS |
| 634 | MAGICK_LTDLDEPS |
| 635 | MAGICK_LIBLTDL |
| 636 | OSX_GCOV_LDFLAG |
| 637 | DELEGATES |
| 638 | MAGICKCORE_PATH |
| 639 | PERL_SUPPORTS_DESTDIR |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 640 | WITH_PERL_DYNAMIC_FALSE |
| 641 | WITH_PERL_DYNAMIC_TRUE |
| 642 | WITH_PERL_STATIC_FALSE |
| 643 | WITH_PERL_STATIC_TRUE |
| 644 | WITH_PERL_FALSE |
| 645 | WITH_PERL_TRUE |
| 646 | PERL_VERSION |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 647 | GSVersion |
| 648 | GSPSDevice |
| 649 | GSPDFDevice |
| 650 | GSMonoDevice |
| 651 | GSEPSDevice |
| 652 | GSColorDevice |
| 653 | GSCMYKDevice |
| 654 | GSAlphaDevice |
| 655 | XPSVersion |
| 656 | XPSCMYKDevice |
| 657 | XPSColorDevice |
| 658 | XPSMonoDevice |
| 659 | PCLVersion |
| 660 | PCLCMYKDevice |
| 661 | PCLColorDevice |
| 662 | PCLMonoDevice |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 663 | ZIP_DELEGATE_FALSE |
| 664 | ZIP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 665 | ZIP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 666 | P7ZIP_DELEGATE_FALSE |
| 667 | P7ZIP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 668 | P7ZIP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 669 | RPM_DELEGATE_FALSE |
| 670 | RPM_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 671 | RPM |
| 672 | PERL |
| 673 | TAR |
| 674 | ShowImageDelegate |
| 675 | type_include_files |
| 676 | ghostscript_font_dir |
| 677 | windows_font_dir |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 678 | dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 679 | PrintDelegate |
| 680 | ZipDelegate |
| 681 | XPSDelegate |
| 682 | WWWDecodeDelegate |
| 683 | WMFDecodeDelegate |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 684 | UniconvertorDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 685 | TXTDelegate |
| 686 | SCANDecodeDelegate |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 687 | RSVGDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 688 | RMDelegate |
| 689 | RLEEncodeDelegate |
| 690 | PSDelegate |
| 691 | POVDelegate |
| 692 | PGPDecodeDelegate |
| 693 | PCLDelegate |
| 694 | MVDelegate |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 695 | MrSIDDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 696 | MPEGEncodeDelegate |
| 697 | MPEGDecodeDelegate |
| 698 | MANDelegate |
| 699 | LaunchDelegate |
| 700 | LZWEncodeDelegate |
| 701 | LZWDecodeDelegate |
| 702 | LPRDelegate |
| 703 | LPDelegate |
| 704 | ILBMEncodeDelegate |
| 705 | ILBMDecodeDelegate |
| 706 | HTMLDecodeDelegate |
| 707 | HPGLDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 708 | GnuplotDecodeDelegate |
| 709 | MogrifyDelegate |
| 710 | DisplayDelegate |
| 711 | ConvertDelegate |
| 712 | FIGDecodeDelegate |
| 713 | EditorDelegate |
| 714 | EchoDelegate |
| 715 | DVIDecodeDelegate |
| 716 | GVCDecodeDelegate |
| 717 | DNGDecodeDelegate |
| 718 | CatDelegate |
| 719 | CGMDecodeDelegate |
| 720 | BrowseDelegate |
| 721 | BZIPDelegate |
| 722 | BlenderDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 723 | AutotraceDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 724 | SHARE_PATH |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 725 | CONFIGURE_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 726 | DOCUMENTATION_PATH |
| 727 | FILTER_PATH |
| 728 | CODER_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 729 | LIBRARY_PATH |
| 730 | EXECUTABLE_PATH |
| 731 | PERLMAINCC |
| 732 | XML_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 733 | XML_DELEGATE_FALSE |
| 734 | XML_DELEGATE_TRUE |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 735 | xml2_config |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 736 | WMF_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 737 | WMF_DELEGATE_FALSE |
| 738 | WMF_DELEGATE_TRUE |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 739 | WEBP_LIBS |
| 740 | WEBP_DELEGATE_FALSE |
| 741 | WEBP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 742 | TIFF_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 743 | TIFF_DELEGATE_FALSE |
| 744 | TIFF_DELEGATE_TRUE |
| 745 | CAIRO_DELEGATE_FALSE |
| 746 | CAIRO_DELEGATE_TRUE |
| 747 | RSVG_DELEGATE_FALSE |
| 748 | RSVG_DELEGATE_TRUE |
| 749 | CAIRO_SVG_LIBS |
| 750 | CAIRO_SVG_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 751 | RSVG_LIBS |
| 752 | RSVG_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 753 | PNG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 754 | PNG_DELEGATE_FALSE |
| 755 | PNG_DELEGATE_TRUE |
| 756 | OPENEXR_DELEGATE_FALSE |
| 757 | OPENEXR_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 758 | OPENEXR_LIBS |
| 759 | OPENEXR_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 760 | LZMA_LIBS |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 761 | LZMA_DELEGATE_FALSE |
| 762 | LZMA_DELEGATE_TRUE |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 763 | LQR_DELEGATE_FALSE |
| 764 | LQR_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 765 | LQR_LIBS |
| 766 | LQR_CFLAGS |
| 767 | LCMS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 768 | LCMS_DELEGATE_FALSE |
| 769 | LCMS_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 770 | JP2_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 771 | JP2_DELEGATE_FALSE |
| 772 | JP2_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 773 | JPEG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 774 | JPEG_DELEGATE_FALSE |
| 775 | JPEG_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 776 | JBIG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 777 | JBIG_DELEGATE_FALSE |
| 778 | JBIG_DELEGATE_TRUE |
| 779 | GVC_DELEGATE_FALSE |
| 780 | GVC_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 781 | GVC_LIBS |
| 782 | GVC_CFLAGS |
| 783 | GS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 784 | GS_DELEGATE_FALSE |
| 785 | GS_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 786 | FREETYPE_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 787 | FREETYPE_DELEGATE_FALSE |
| 788 | FREETYPE_DELEGATE_TRUE |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 789 | freetype_config |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 790 | FONTCONFIG_DELEGATE_FALSE |
| 791 | FONTCONFIG_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 792 | FONTCONFIG_LIBS |
| 793 | FONTCONFIG_CFLAGS |
| 794 | FPX_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 795 | FPX_DELEGATE_FALSE |
| 796 | FPX_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 797 | FFTW_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 798 | FFTW_DELEGATE_FALSE |
| 799 | FFTW_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 800 | DJVU_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 801 | DJVU_DELEGATE_FALSE |
| 802 | DJVU_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 803 | DPS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 804 | DPS_DELEGATE_FALSE |
| 805 | DPS_DELEGATE_TRUE |
| 806 | AUTOTRACE_DELEGATE_FALSE |
| 807 | AUTOTRACE_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 808 | AUTOTRACE_LIBS |
| 809 | AUTOTRACE_CFLAGS |
| 810 | LIB_DL |
| 811 | ZLIB_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 812 | ZLIB_DELEGATE_FALSE |
| 813 | ZLIB_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 814 | XEXT_LIBS |
| 815 | X11_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 816 | X11_DELEGATE_FALSE |
| 817 | X11_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 818 | X_EXTRA_LIBS |
| 819 | X_LIBS |
| 820 | X_PRE_LIBS |
| 821 | X_CFLAGS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 822 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 823 | BZLIB_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 824 | BZLIB_DELEGATE_FALSE |
| 825 | BZLIB_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 826 | CCMALLOCDelegate |
| 827 | UMEM_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 828 | HasUMEM_FALSE |
| 829 | HasUMEM_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 830 | THREAD_LIBS |
| 831 | GOMP_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 832 | WITH_MAGICK_PLUS_PLUS_FALSE |
| 833 | WITH_MAGICK_PLUS_PLUS_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 834 | OPENMP_CXXFLAGS |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 835 | MATH_LIBS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 836 | POW_LIB |
| 837 | LIBOBJS |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 838 | UINTPTR_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 839 | UINTPTR_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 840 | UINTMAX_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 841 | UINTMAX_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 842 | UINT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 843 | UINT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 844 | INT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 845 | INT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 846 | UINT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 847 | UINT32_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 848 | INT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 849 | INT32_T |
| 850 | UINT16_T |
| 851 | INT16_T |
| 852 | UINT8_T |
| 853 | INT8_T |
| 854 | LIBRARY_EXTRA_CPPFLAGS |
| 855 | MODULE_EXTRA_CPPFLAGS |
| 856 | LIBSTDCLDFLAGS |
| 857 | PERL_MAKE_OPTIONS |
| 858 | QUANTUM_DEPTH |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 859 | MAINT |
| 860 | MAINTAINER_MODE_FALSE |
| 861 | MAINTAINER_MODE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 862 | MAGICK_HDRI |
| 863 | DLLDFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 864 | WITH_LTDL_FALSE |
| 865 | WITH_LTDL_TRUE |
| 866 | WITH_MODULES_FALSE |
| 867 | WITH_MODULES_TRUE |
| 868 | WITH_SHARED_LIBS_FALSE |
| 869 | WITH_SHARED_LIBS_TRUE |
| 870 | LTDLOPEN |
| 871 | LT_CONFIG_H |
| 872 | CONVENIENCE_LTDL_FALSE |
| 873 | CONVENIENCE_LTDL_TRUE |
| 874 | INSTALL_LTDL_FALSE |
| 875 | INSTALL_LTDL_TRUE |
| 876 | ARGZ_H |
| 877 | sys_symbol_underscore |
| 878 | LIBADD_DL |
| 879 | LT_DLPREOPEN |
| 880 | LIBADD_DLD_LINK |
| 881 | LIBADD_SHL_LOAD |
| 882 | LIBADD_DLOPEN |
| 883 | LT_DLLOADERS |
| 884 | INCLTDL |
| 885 | LTDLINCL |
| 886 | LTDLDEPS |
| 887 | LIBLTDL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 888 | LIBTOOL_DEPS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 889 | CXXCPP |
| 890 | OTOOL64 |
| 891 | OTOOL |
| 892 | LIPO |
| 893 | NMEDIT |
| 894 | DSYMUTIL |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 895 | MANIFEST_TOOL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 896 | RANLIB |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 897 | ac_ct_AR |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 898 | AR |
| 899 | NM |
| 900 | ac_ct_DUMPBIN |
| 901 | DUMPBIN |
| 902 | LIBTOOL |
| 903 | OBJDUMP |
| 904 | DLLTOOL |
| 905 | AS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 906 | LFS_CPPFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 907 | CL_LIBS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 908 | CL_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 909 | OPENMP_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 910 | PTHREAD_CFLAGS |
| 911 | PTHREAD_LIBS |
| 912 | PTHREAD_CC |
| 913 | ax_pthread_config |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 914 | WinPathScript |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 915 | USING_CL_FALSE |
| 916 | USING_CL_TRUE |
| 917 | CYGWIN_BUILD_FALSE |
| 918 | CYGWIN_BUILD_TRUE |
| 919 | WIN32_NATIVE_BUILD_FALSE |
| 920 | WIN32_NATIVE_BUILD_TRUE |
| 921 | WINGDI32_DELEGATE_FALSE |
| 922 | WINGDI32_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 923 | GDI32_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 924 | PKG_CONFIG |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 925 | LN_S |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 926 | LD |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 927 | FGREP |
| 928 | SED |
| 929 | am__fastdepCXX_FALSE |
| 930 | am__fastdepCXX_TRUE |
| 931 | CXXDEPMODE |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 932 | ac_ct_CXX |
| 933 | CXXFLAGS |
| 934 | CXX |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 935 | EGREP |
| 936 | GREP |
| 937 | CPP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 938 | am__fastdepCC_FALSE |
| 939 | am__fastdepCC_TRUE |
| 940 | CCDEPMODE |
| 941 | AMDEPBACKSLASH |
| 942 | AMDEP_FALSE |
| 943 | AMDEP_TRUE |
| 944 | am__quote |
| 945 | am__include |
| 946 | DEPDIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 947 | OBJEXT |
| 948 | EXEEXT |
| 949 | ac_ct_CC |
| 950 | CPPFLAGS |
| 951 | LDFLAGS |
| 952 | CFLAGS |
| 953 | CC |
| 954 | DIRSEP |
| 955 | MAGICK_FILTER_MODULE_PATH |
| 956 | MAGICK_CONFIGURE_BUILD_PATH |
| 957 | MAGICK_CONFIGURE_SRC_PATH |
| 958 | MAGICK_CODER_MODULE_PATH |
| 959 | MAN_DIR |
| 960 | INFO_DIR |
| 961 | PERSISTINCLUDE_DIR |
| 962 | INCLUDE_DIR |
| 963 | LIB_DIR |
| 964 | LOCALSTATE_DIR |
| 965 | SHAREDSTATE_DIR |
| 966 | SYSCONF_DIR |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 967 | DOC_DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 968 | DATA_DIR |
| 969 | LIBEXEC_DIR |
| 970 | SBIN_DIR |
| 971 | BIN_DIR |
| 972 | EXEC_PREFIX_DIR |
| 973 | PREFIX_DIR |
| 974 | CONFIG_STATUS_DEPENDENCIES |
| 975 | MAGICK_LIB_VERSION_NUMBER |
| 976 | MAGICK_LIB_VERSION_TEXT |
| 977 | MAGICK_LIB_VERSION |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 978 | AM_BACKSLASH |
| 979 | AM_DEFAULT_VERBOSITY |
| 980 | am__untar |
| 981 | am__tar |
| 982 | AMTAR |
| 983 | am__leading_dot |
| 984 | SET_MAKE |
| 985 | AWK |
| 986 | mkdir_p |
| 987 | MKDIR_P |
| 988 | INSTALL_STRIP_PROGRAM |
| 989 | STRIP |
| 990 | install_sh |
| 991 | MAKEINFO |
| 992 | AUTOHEADER |
| 993 | AUTOMAKE |
| 994 | AUTOCONF |
| 995 | ACLOCAL |
| 996 | VERSION |
| 997 | PACKAGE |
| 998 | CYGPATH_W |
| 999 | am__isrc |
| 1000 | INSTALL_DATA |
| 1001 | INSTALL_SCRIPT |
| 1002 | INSTALL_PROGRAM |
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 1003 | PACKAGE_VERSION_ADDENDUM |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1004 | PACKAGE_RELEASE_DATE |
| 1005 | PACKAGE_LIB_VERSION_NUMBER |
| 1006 | PACKAGE_LIB_VERSION |
| 1007 | PACKAGE_CHANGE_DATE |
| 1008 | PACKAGE_RELEASE |
| cristy | 878c2f1 | 2011-08-19 00:25:19 +0000 | [diff] [blame] | 1009 | PACKAGE_PERL_VERSION |
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 1010 | MAGICK_SVN_REVISION |
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 1011 | MAGICK_LIBRARY_VERSION_INFO |
| 1012 | MAGICK_LIBRARY_CURRENT_MIN |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1013 | MAGICK_LIBRARY_AGE |
| 1014 | MAGICK_LIBRARY_REVISION |
| 1015 | MAGICK_LIBRARY_CURRENT |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 1016 | MAGICK_TARGET_OS |
| 1017 | MAGICK_TARGET_VENDOR |
| 1018 | MAGICK_TARGET_CPU |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1019 | target_os |
| 1020 | target_vendor |
| 1021 | target_cpu |
| 1022 | target |
| 1023 | host_os |
| 1024 | host_vendor |
| 1025 | host_cpu |
| 1026 | host |
| 1027 | build_os |
| 1028 | build_vendor |
| 1029 | build_cpu |
| 1030 | build |
| 1031 | CONFIGURE_ARGS |
| 1032 | DISTCHECK_CONFIG_FLAGS |
| 1033 | target_alias |
| 1034 | host_alias |
| 1035 | build_alias |
| 1036 | LIBS |
| 1037 | ECHO_T |
| 1038 | ECHO_N |
| 1039 | ECHO_C |
| 1040 | DEFS |
| 1041 | mandir |
| 1042 | localedir |
| 1043 | libdir |
| 1044 | psdir |
| 1045 | pdfdir |
| 1046 | dvidir |
| 1047 | htmldir |
| 1048 | infodir |
| 1049 | docdir |
| 1050 | oldincludedir |
| 1051 | includedir |
| 1052 | localstatedir |
| 1053 | sharedstatedir |
| 1054 | sysconfdir |
| 1055 | datadir |
| 1056 | datarootdir |
| 1057 | libexecdir |
| 1058 | sbindir |
| 1059 | bindir |
| 1060 | program_transform_name |
| 1061 | prefix |
| 1062 | exec_prefix |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1063 | PACKAGE_URL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1064 | PACKAGE_BUGREPORT |
| 1065 | PACKAGE_STRING |
| 1066 | PACKAGE_VERSION |
| 1067 | PACKAGE_TARNAME |
| 1068 | PACKAGE_NAME |
| 1069 | PATH_SEPARATOR |
| 1070 | SHELL' |
| 1071 | ac_subst_files='' |
| 1072 | ac_user_opts=' |
| 1073 | enable_option_checking |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1074 | enable_silent_rules |
| 1075 | enable_dependency_tracking |
| 1076 | with_gnu_ld |
| 1077 | with_dmalloc |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1078 | enable_bounds_checking |
| 1079 | enable_osx_universal_binary |
| 1080 | with_threads |
| 1081 | enable_openmp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1082 | enable_opencl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1083 | enable_largefile |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1084 | enable_shared |
| 1085 | enable_static |
| 1086 | with_pic |
| 1087 | enable_fast_install |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1088 | with_sysroot |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1089 | enable_libtool_lock |
| 1090 | with_included_ltdl |
| 1091 | with_ltdl_include |
| 1092 | with_ltdl_lib |
| 1093 | enable_ltdl_install |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1094 | with_modules |
| 1095 | enable_delegate_build |
| 1096 | enable_deprecated |
| 1097 | enable_installed |
| 1098 | enable_cipher |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1099 | enable_zero_configuration |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1100 | enable_hdri |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1101 | enable_assert |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1102 | enable_maintainer_mode |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1103 | enable_ccmalloc |
| 1104 | enable_efence |
| 1105 | enable_prof |
| 1106 | enable_gprof |
| 1107 | enable_gcov |
| 1108 | with_method_prefix |
| 1109 | with_quantum_depth |
| 1110 | with_cache |
| 1111 | with_frozenpaths |
| 1112 | with_magick_plus_plus |
| 1113 | with_perl |
| 1114 | with_perl_options |
| 1115 | with_umem |
| 1116 | with_libstdc |
| 1117 | with_bzlib |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1118 | with_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1119 | with_zlib |
| 1120 | with_autotrace |
| 1121 | with_dps |
| 1122 | with_djvu |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1123 | with_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1124 | with_fftw |
| 1125 | with_fpx |
| 1126 | with_fontconfig |
| 1127 | with_freetype |
| 1128 | with_gslib |
| 1129 | with_fontpath |
| 1130 | with_gs_font_dir |
| 1131 | with_gvc |
| 1132 | with_jbig |
| 1133 | with_jpeg |
| 1134 | with_jp2 |
| 1135 | with_lcms |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1136 | with_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1137 | with_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1138 | with_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1139 | with_openexr |
| 1140 | with_png |
| 1141 | with_rsvg |
| 1142 | with_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1143 | with_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1144 | with_windows_font_dir |
| 1145 | with_wmf |
| 1146 | with_xml |
| 1147 | ' |
| 1148 | ac_precious_vars='build_alias |
| 1149 | host_alias |
| 1150 | target_alias |
| 1151 | CC |
| 1152 | CFLAGS |
| 1153 | LDFLAGS |
| 1154 | LIBS |
| 1155 | CPPFLAGS |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1156 | CPP |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1157 | CXX |
| 1158 | CXXFLAGS |
| 1159 | CCC |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1160 | PKG_CONFIG |
| 1161 | CXXCPP |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1162 | XMKMF |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1163 | AUTOTRACE_CFLAGS |
| 1164 | AUTOTRACE_LIBS |
| 1165 | FONTCONFIG_CFLAGS |
| 1166 | FONTCONFIG_LIBS |
| 1167 | GVC_CFLAGS |
| 1168 | GVC_LIBS |
| 1169 | LQR_CFLAGS |
| 1170 | LQR_LIBS |
| 1171 | OPENEXR_CFLAGS |
| 1172 | OPENEXR_LIBS |
| 1173 | RSVG_CFLAGS |
| 1174 | RSVG_LIBS |
| 1175 | CAIRO_SVG_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1176 | CAIRO_SVG_LIBS' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1177 | |
| 1178 | |
| 1179 | # Initialize some variables set by options. |
| 1180 | ac_init_help= |
| 1181 | ac_init_version=false |
| 1182 | ac_unrecognized_opts= |
| 1183 | ac_unrecognized_sep= |
| 1184 | # The variables have the same names as the options, with |
| 1185 | # dashes changed to underlines. |
| 1186 | cache_file=/dev/null |
| 1187 | exec_prefix=NONE |
| 1188 | no_create= |
| 1189 | no_recursion= |
| 1190 | prefix=NONE |
| 1191 | program_prefix=NONE |
| 1192 | program_suffix=NONE |
| 1193 | program_transform_name=s,x,x, |
| 1194 | silent= |
| 1195 | site= |
| 1196 | srcdir= |
| 1197 | verbose= |
| 1198 | x_includes=NONE |
| 1199 | x_libraries=NONE |
| 1200 | |
| 1201 | # Installation directory options. |
| 1202 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1203 | # and all the variables that are supposed to be based on exec_prefix |
| 1204 | # by default will actually change. |
| 1205 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1206 | # (The list follows the same order as the GNU Coding Standards.) |
| 1207 | bindir='${exec_prefix}/bin' |
| 1208 | sbindir='${exec_prefix}/sbin' |
| 1209 | libexecdir='${exec_prefix}/libexec' |
| 1210 | datarootdir='${prefix}/share' |
| 1211 | datadir='${datarootdir}' |
| 1212 | sysconfdir='${prefix}/etc' |
| 1213 | sharedstatedir='${prefix}/com' |
| 1214 | localstatedir='${prefix}/var' |
| 1215 | includedir='${prefix}/include' |
| 1216 | oldincludedir='/usr/include' |
| 1217 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1218 | infodir='${datarootdir}/info' |
| 1219 | htmldir='${docdir}' |
| 1220 | dvidir='${docdir}' |
| 1221 | pdfdir='${docdir}' |
| 1222 | psdir='${docdir}' |
| 1223 | libdir='${exec_prefix}/lib' |
| 1224 | localedir='${datarootdir}/locale' |
| 1225 | mandir='${datarootdir}/man' |
| 1226 | |
| 1227 | ac_prev= |
| 1228 | ac_dashdash= |
| 1229 | for ac_option |
| 1230 | do |
| 1231 | # If the previous option needs an argument, assign it. |
| 1232 | if test -n "$ac_prev"; then |
| 1233 | eval $ac_prev=\$ac_option |
| 1234 | ac_prev= |
| 1235 | continue |
| 1236 | fi |
| 1237 | |
| 1238 | case $ac_option in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1239 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1240 | *=) ac_optarg= ;; |
| 1241 | *) ac_optarg=yes ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1242 | esac |
| 1243 | |
| 1244 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1245 | |
| 1246 | case $ac_dashdash$ac_option in |
| 1247 | --) |
| 1248 | ac_dashdash=yes ;; |
| 1249 | |
| 1250 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1251 | ac_prev=bindir ;; |
| 1252 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1253 | bindir=$ac_optarg ;; |
| 1254 | |
| 1255 | -build | --build | --buil | --bui | --bu) |
| 1256 | ac_prev=build_alias ;; |
| 1257 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1258 | build_alias=$ac_optarg ;; |
| 1259 | |
| 1260 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1261 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1262 | ac_prev=cache_file ;; |
| 1263 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1264 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1265 | cache_file=$ac_optarg ;; |
| 1266 | |
| 1267 | --config-cache | -C) |
| 1268 | cache_file=config.cache ;; |
| 1269 | |
| 1270 | -datadir | --datadir | --datadi | --datad) |
| 1271 | ac_prev=datadir ;; |
| 1272 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1273 | datadir=$ac_optarg ;; |
| 1274 | |
| 1275 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1276 | | --dataroo | --dataro | --datar) |
| 1277 | ac_prev=datarootdir ;; |
| 1278 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1279 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1280 | datarootdir=$ac_optarg ;; |
| 1281 | |
| 1282 | -disable-* | --disable-*) |
| 1283 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1284 | # Reject names that are not valid shell variable names. |
| 1285 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1286 | as_fn_error $? "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1287 | ac_useropt_orig=$ac_useropt |
| 1288 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1289 | case $ac_user_opts in |
| 1290 | *" |
| 1291 | "enable_$ac_useropt" |
| 1292 | "*) ;; |
| 1293 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1294 | ac_unrecognized_sep=', ';; |
| 1295 | esac |
| 1296 | eval enable_$ac_useropt=no ;; |
| 1297 | |
| 1298 | -docdir | --docdir | --docdi | --doc | --do) |
| 1299 | ac_prev=docdir ;; |
| 1300 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1301 | docdir=$ac_optarg ;; |
| 1302 | |
| 1303 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1304 | ac_prev=dvidir ;; |
| 1305 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1306 | dvidir=$ac_optarg ;; |
| 1307 | |
| 1308 | -enable-* | --enable-*) |
| 1309 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1310 | # Reject names that are not valid shell variable names. |
| 1311 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1312 | as_fn_error $? "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1313 | ac_useropt_orig=$ac_useropt |
| 1314 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1315 | case $ac_user_opts in |
| 1316 | *" |
| 1317 | "enable_$ac_useropt" |
| 1318 | "*) ;; |
| 1319 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1320 | ac_unrecognized_sep=', ';; |
| 1321 | esac |
| 1322 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1323 | |
| 1324 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1325 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1326 | | --exec | --exe | --ex) |
| 1327 | ac_prev=exec_prefix ;; |
| 1328 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1329 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1330 | | --exec=* | --exe=* | --ex=*) |
| 1331 | exec_prefix=$ac_optarg ;; |
| 1332 | |
| 1333 | -gas | --gas | --ga | --g) |
| 1334 | # Obsolete; use --with-gas. |
| 1335 | with_gas=yes ;; |
| 1336 | |
| 1337 | -help | --help | --hel | --he | -h) |
| 1338 | ac_init_help=long ;; |
| 1339 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1340 | ac_init_help=recursive ;; |
| 1341 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1342 | ac_init_help=short ;; |
| 1343 | |
| 1344 | -host | --host | --hos | --ho) |
| 1345 | ac_prev=host_alias ;; |
| 1346 | -host=* | --host=* | --hos=* | --ho=*) |
| 1347 | host_alias=$ac_optarg ;; |
| 1348 | |
| 1349 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1350 | ac_prev=htmldir ;; |
| 1351 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1352 | | --ht=*) |
| 1353 | htmldir=$ac_optarg ;; |
| 1354 | |
| 1355 | -includedir | --includedir | --includedi | --included | --include \ |
| 1356 | | --includ | --inclu | --incl | --inc) |
| 1357 | ac_prev=includedir ;; |
| 1358 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1359 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1360 | includedir=$ac_optarg ;; |
| 1361 | |
| 1362 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1363 | ac_prev=infodir ;; |
| 1364 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1365 | infodir=$ac_optarg ;; |
| 1366 | |
| 1367 | -libdir | --libdir | --libdi | --libd) |
| 1368 | ac_prev=libdir ;; |
| 1369 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1370 | libdir=$ac_optarg ;; |
| 1371 | |
| 1372 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1373 | | --libexe | --libex | --libe) |
| 1374 | ac_prev=libexecdir ;; |
| 1375 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1376 | | --libexe=* | --libex=* | --libe=*) |
| 1377 | libexecdir=$ac_optarg ;; |
| 1378 | |
| 1379 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1380 | ac_prev=localedir ;; |
| 1381 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1382 | localedir=$ac_optarg ;; |
| 1383 | |
| 1384 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1385 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1386 | ac_prev=localstatedir ;; |
| 1387 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1388 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1389 | localstatedir=$ac_optarg ;; |
| 1390 | |
| 1391 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1392 | ac_prev=mandir ;; |
| 1393 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1394 | mandir=$ac_optarg ;; |
| 1395 | |
| 1396 | -nfp | --nfp | --nf) |
| 1397 | # Obsolete; use --without-fp. |
| 1398 | with_fp=no ;; |
| 1399 | |
| 1400 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1401 | | --no-cr | --no-c | -n) |
| 1402 | no_create=yes ;; |
| 1403 | |
| 1404 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1405 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1406 | no_recursion=yes ;; |
| 1407 | |
| 1408 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1409 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1410 | | --oldin | --oldi | --old | --ol | --o) |
| 1411 | ac_prev=oldincludedir ;; |
| 1412 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1413 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1414 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1415 | oldincludedir=$ac_optarg ;; |
| 1416 | |
| 1417 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1418 | ac_prev=prefix ;; |
| 1419 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1420 | prefix=$ac_optarg ;; |
| 1421 | |
| 1422 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1423 | | --program-pre | --program-pr | --program-p) |
| 1424 | ac_prev=program_prefix ;; |
| 1425 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1426 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1427 | program_prefix=$ac_optarg ;; |
| 1428 | |
| 1429 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1430 | | --program-suf | --program-su | --program-s) |
| 1431 | ac_prev=program_suffix ;; |
| 1432 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1433 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1434 | program_suffix=$ac_optarg ;; |
| 1435 | |
| 1436 | -program-transform-name | --program-transform-name \ |
| 1437 | | --program-transform-nam | --program-transform-na \ |
| 1438 | | --program-transform-n | --program-transform- \ |
| 1439 | | --program-transform | --program-transfor \ |
| 1440 | | --program-transfo | --program-transf \ |
| 1441 | | --program-trans | --program-tran \ |
| 1442 | | --progr-tra | --program-tr | --program-t) |
| 1443 | ac_prev=program_transform_name ;; |
| 1444 | -program-transform-name=* | --program-transform-name=* \ |
| 1445 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1446 | | --program-transform-n=* | --program-transform-=* \ |
| 1447 | | --program-transform=* | --program-transfor=* \ |
| 1448 | | --program-transfo=* | --program-transf=* \ |
| 1449 | | --program-trans=* | --program-tran=* \ |
| 1450 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1451 | program_transform_name=$ac_optarg ;; |
| 1452 | |
| 1453 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1454 | ac_prev=pdfdir ;; |
| 1455 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1456 | pdfdir=$ac_optarg ;; |
| 1457 | |
| 1458 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1459 | ac_prev=psdir ;; |
| 1460 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1461 | psdir=$ac_optarg ;; |
| 1462 | |
| 1463 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1464 | | -silent | --silent | --silen | --sile | --sil) |
| 1465 | silent=yes ;; |
| 1466 | |
| 1467 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1468 | ac_prev=sbindir ;; |
| 1469 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1470 | | --sbi=* | --sb=*) |
| 1471 | sbindir=$ac_optarg ;; |
| 1472 | |
| 1473 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1474 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1475 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1476 | | --sha | --sh) |
| 1477 | ac_prev=sharedstatedir ;; |
| 1478 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1479 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1480 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1481 | | --sha=* | --sh=*) |
| 1482 | sharedstatedir=$ac_optarg ;; |
| 1483 | |
| 1484 | -site | --site | --sit) |
| 1485 | ac_prev=site ;; |
| 1486 | -site=* | --site=* | --sit=*) |
| 1487 | site=$ac_optarg ;; |
| 1488 | |
| 1489 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1490 | ac_prev=srcdir ;; |
| 1491 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1492 | srcdir=$ac_optarg ;; |
| 1493 | |
| 1494 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1495 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1496 | ac_prev=sysconfdir ;; |
| 1497 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1498 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1499 | sysconfdir=$ac_optarg ;; |
| 1500 | |
| 1501 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1502 | ac_prev=target_alias ;; |
| 1503 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1504 | target_alias=$ac_optarg ;; |
| 1505 | |
| 1506 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1507 | verbose=yes ;; |
| 1508 | |
| 1509 | -version | --version | --versio | --versi | --vers | -V) |
| 1510 | ac_init_version=: ;; |
| 1511 | |
| 1512 | -with-* | --with-*) |
| 1513 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1514 | # Reject names that are not valid shell variable names. |
| 1515 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1516 | as_fn_error $? "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1517 | ac_useropt_orig=$ac_useropt |
| 1518 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1519 | case $ac_user_opts in |
| 1520 | *" |
| 1521 | "with_$ac_useropt" |
| 1522 | "*) ;; |
| 1523 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1524 | ac_unrecognized_sep=', ';; |
| 1525 | esac |
| 1526 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1527 | |
| 1528 | -without-* | --without-*) |
| 1529 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1530 | # Reject names that are not valid shell variable names. |
| 1531 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1532 | as_fn_error $? "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1533 | ac_useropt_orig=$ac_useropt |
| 1534 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1535 | case $ac_user_opts in |
| 1536 | *" |
| 1537 | "with_$ac_useropt" |
| 1538 | "*) ;; |
| 1539 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1540 | ac_unrecognized_sep=', ';; |
| 1541 | esac |
| 1542 | eval with_$ac_useropt=no ;; |
| 1543 | |
| 1544 | --x) |
| 1545 | # Obsolete; use --with-x. |
| 1546 | with_x=yes ;; |
| 1547 | |
| 1548 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1549 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1550 | ac_prev=x_includes ;; |
| 1551 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1552 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1553 | x_includes=$ac_optarg ;; |
| 1554 | |
| 1555 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1556 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1557 | ac_prev=x_libraries ;; |
| 1558 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1559 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1560 | x_libraries=$ac_optarg ;; |
| 1561 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1562 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1563 | Try \`$0 --help' for more information" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1564 | ;; |
| 1565 | |
| 1566 | *=*) |
| 1567 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1568 | # Reject names that are not valid shell variable names. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1569 | case $ac_envvar in #( |
| 1570 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1571 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1572 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1573 | eval $ac_envvar=\$ac_optarg |
| 1574 | export $ac_envvar ;; |
| 1575 | |
| 1576 | *) |
| 1577 | # FIXME: should be removed in autoconf 3.0. |
| 1578 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1579 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1580 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1581 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1582 | ;; |
| 1583 | |
| 1584 | esac |
| 1585 | done |
| 1586 | |
| 1587 | if test -n "$ac_prev"; then |
| 1588 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1589 | as_fn_error $? "missing argument to $ac_option" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1590 | fi |
| 1591 | |
| 1592 | if test -n "$ac_unrecognized_opts"; then |
| 1593 | case $enable_option_checking in |
| 1594 | no) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1595 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1596 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1597 | esac |
| 1598 | fi |
| 1599 | |
| 1600 | # Check all directory arguments for consistency. |
| 1601 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1602 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1603 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1604 | libdir localedir mandir |
| 1605 | do |
| 1606 | eval ac_val=\$$ac_var |
| 1607 | # Remove trailing slashes. |
| 1608 | case $ac_val in |
| 1609 | */ ) |
| 1610 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1611 | eval $ac_var=\$ac_val;; |
| 1612 | esac |
| 1613 | # Be sure to have absolute directory names. |
| 1614 | case $ac_val in |
| 1615 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1616 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1617 | esac |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1618 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1619 | done |
| 1620 | |
| 1621 | # There might be people who depend on the old broken behavior: `$host' |
| 1622 | # used to hold the argument of --host etc. |
| 1623 | # FIXME: To remove some day. |
| 1624 | build=$build_alias |
| 1625 | host=$host_alias |
| 1626 | target=$target_alias |
| 1627 | |
| 1628 | # FIXME: To remove some day. |
| 1629 | if test "x$host_alias" != x; then |
| 1630 | if test "x$build_alias" = x; then |
| 1631 | cross_compiling=maybe |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1632 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1633 | If a cross compiler is detected then cross compile mode will be used" >&2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1634 | elif test "x$build_alias" != "x$host_alias"; then |
| 1635 | cross_compiling=yes |
| 1636 | fi |
| 1637 | fi |
| 1638 | |
| 1639 | ac_tool_prefix= |
| 1640 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1641 | |
| 1642 | test "$silent" = yes && exec 6>/dev/null |
| 1643 | |
| 1644 | |
| 1645 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1646 | ac_ls_di=`ls -di .` && |
| 1647 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1648 | as_fn_error $? "working directory cannot be determined" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1649 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1650 | as_fn_error $? "pwd does not report name of working directory" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1651 | |
| 1652 | |
| 1653 | # Find the source files, if location was not specified. |
| 1654 | if test -z "$srcdir"; then |
| 1655 | ac_srcdir_defaulted=yes |
| 1656 | # Try the directory containing this script, then the parent directory. |
| 1657 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1658 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1659 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1660 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1661 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1662 | $as_echo X"$as_myself" | |
| 1663 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1664 | s//\1/ |
| 1665 | q |
| 1666 | } |
| 1667 | /^X\(\/\/\)[^/].*/{ |
| 1668 | s//\1/ |
| 1669 | q |
| 1670 | } |
| 1671 | /^X\(\/\/\)$/{ |
| 1672 | s//\1/ |
| 1673 | q |
| 1674 | } |
| 1675 | /^X\(\/\).*/{ |
| 1676 | s//\1/ |
| 1677 | q |
| 1678 | } |
| 1679 | s/.*/./; q'` |
| 1680 | srcdir=$ac_confdir |
| 1681 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1682 | srcdir=.. |
| 1683 | fi |
| 1684 | else |
| 1685 | ac_srcdir_defaulted=no |
| 1686 | fi |
| 1687 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1688 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1689 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1690 | fi |
| 1691 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1692 | ac_abs_confdir=`( |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1693 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1694 | pwd)` |
| 1695 | # When building in place, set srcdir=. |
| 1696 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1697 | srcdir=. |
| 1698 | fi |
| 1699 | # Remove unnecessary trailing slashes from srcdir. |
| 1700 | # Double slashes in file names in object file debugging info |
| 1701 | # mess up M-x gdb in Emacs. |
| 1702 | case $srcdir in |
| 1703 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1704 | esac |
| 1705 | for ac_var in $ac_precious_vars; do |
| 1706 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1707 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1708 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1709 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1710 | done |
| 1711 | |
| 1712 | # |
| 1713 | # Report the --help message. |
| 1714 | # |
| 1715 | if test "$ac_init_help" = "long"; then |
| 1716 | # Omit some internal or obsolete options to make the list less imposing. |
| 1717 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1718 | cat <<_ACEOF |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 1719 | \`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1720 | |
| 1721 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1722 | |
| 1723 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1724 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1725 | |
| 1726 | Defaults for the options are specified in brackets. |
| 1727 | |
| 1728 | Configuration: |
| 1729 | -h, --help display this help and exit |
| 1730 | --help=short display options specific to this package |
| 1731 | --help=recursive display the short help of all the included packages |
| 1732 | -V, --version display version information and exit |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1733 | -q, --quiet, --silent do not print \`checking ...' messages |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1734 | --cache-file=FILE cache test results in FILE [disabled] |
| 1735 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1736 | -n, --no-create do not create output files |
| 1737 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1738 | |
| 1739 | Installation directories: |
| 1740 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1741 | [$ac_default_prefix] |
| 1742 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1743 | [PREFIX] |
| 1744 | |
| 1745 | By default, \`make install' will install all the files in |
| 1746 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1747 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1748 | for instance \`--prefix=\$HOME'. |
| 1749 | |
| 1750 | For better control, use the options below. |
| 1751 | |
| 1752 | Fine tuning of the installation directories: |
| 1753 | --bindir=DIR user executables [EPREFIX/bin] |
| 1754 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1755 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1756 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1757 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1758 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1759 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1760 | --includedir=DIR C header files [PREFIX/include] |
| 1761 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1762 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1763 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1764 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1765 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1766 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 1767 | --docdir=DIR documentation root |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 1768 | [DATAROOTDIR/doc/ImageMagick-7.0.0] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1769 | --htmldir=DIR html documentation [DOCDIR] |
| 1770 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1771 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1772 | --psdir=DIR ps documentation [DOCDIR] |
| 1773 | _ACEOF |
| 1774 | |
| 1775 | cat <<\_ACEOF |
| 1776 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1777 | Program names: |
| 1778 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1779 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1780 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1781 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1782 | X features: |
| 1783 | --x-includes=DIR X include files are in DIR |
| 1784 | --x-libraries=DIR X library files are in DIR |
| 1785 | |
| 1786 | System types: |
| 1787 | --build=BUILD configure for building on BUILD [guessed] |
| 1788 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1789 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1790 | _ACEOF |
| 1791 | fi |
| 1792 | |
| 1793 | if test -n "$ac_init_help"; then |
| 1794 | case $ac_init_help in |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 1795 | short | recursive ) echo "Configuration of ImageMagick 7.0.0:";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1796 | esac |
| 1797 | cat <<\_ACEOF |
| 1798 | |
| 1799 | Optional Features: |
| 1800 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1801 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1802 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1803 | --enable-silent-rules less verbose build output (undo: `make V=1') |
| 1804 | --disable-silent-rules verbose build output (undo: `make V=0') |
| 1805 | --disable-dependency-tracking speeds up one-time build |
| 1806 | --enable-dependency-tracking do not reject slow dependency extractors |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1807 | --bounds-checking enable run-time bounds-checking |
| 1808 | --enable-osx-universal-binary |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1809 | build universal binary on OS X [[default=no]] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1810 | --disable-openmp do not use OpenMP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1811 | --disable-opencl do not use OpenCL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1812 | --disable-largefile omit support for large files |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1813 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1814 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1815 | --enable-fast-install[=PKGS] |
| 1816 | optimize for fast installation [default=yes] |
| 1817 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1818 | --enable-ltdl-install install libltdl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1819 | --enable-delegate-build look for delegate libraries in build directory |
| 1820 | --disable-deprecated exclude deprecated methods in MagickCore and |
| 1821 | MagickWand API's |
| 1822 | --disable-installed Formally install ImageMagick under PREFIX |
| 1823 | --disable-cipher disable enciphering and deciphering image pixels |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1824 | --enable-zero-configuration |
| 1825 | enable self-contained, embeddable, |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1826 | zero-configuration ImageMagick |
| 1827 | --enable-hdri accurately represent the wide range of intensity |
| 1828 | levels found in real scenes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1829 | --disable-assert disable assert() statements in build |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1830 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1831 | (and sometimes confusing) to the casual installer |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1832 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1833 | --enable-efence enable 'efence' memory debug support |
| 1834 | --enable-prof enable 'prof' profiling support |
| 1835 | --enable-gprof enable 'gprof' profiling support |
| 1836 | --enable-gcov enable 'gcov' profiling support |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1837 | --disable-assert turn off assertions |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1838 | |
| 1839 | Optional Packages: |
| 1840 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1841 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1842 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1843 | --with-dmalloc use dmalloc, as in |
| 1844 | http://www.dmalloc.com/dmalloc.tar.gz |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1845 | --without-threads disable threads support |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1846 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1847 | both] |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1848 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1849 | (or the compiler's sysroot if not specified). |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1850 | --with-included-ltdl use the GNU ltdl sources included here |
| 1851 | --with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1852 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1853 | --with-modules enable building dynamically loadable modules |
| 1854 | --with-method-prefix=PREFIX |
| 1855 | prefix MagickCore API methods |
| 1856 | --with-quantum-depth=DEPTH |
| 1857 | number of bits in a pixel quantum (default 16) |
| 1858 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 1859 | memory) |
| 1860 | --with-frozenpaths freeze delegate paths |
| 1861 | --without-magick-plus-plus |
| 1862 | disable build/install of Magick++ |
| 1863 | --with-perl enable build/install of PerlMagick |
| 1864 | --with-perl-options=OPTIONS |
| 1865 | options to pass on command-line when generating |
| 1866 | PerlMagick's build file |
| 1867 | --with-umem enable umem memory allocation library support |
| 1868 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 1869 | --without-bzlib disable BZLIB support |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1870 | --with-x use the X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1871 | --without-zlib disable ZLIB support |
| 1872 | --with-autotrace enable autotrace support |
| 1873 | --without-dps disable Display Postscript support |
| 1874 | --without-djvu disable DjVu support |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1875 | --with-dejavu-font-dir=DIR |
| 1876 | DejaVu font directory |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1877 | --without-fftw disable FFTW support |
| 1878 | --without-fpx disable FlashPIX support |
| 1879 | --without-fontconfig disable fontconfig support |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1880 | --without-freetype disable Freetype support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1881 | --without-gslib enable Ghostscript library support |
| 1882 | --with-fontpath=DIR prepend to default font search path |
| 1883 | --with-gs-font-dir=DIR Ghostscript font directory |
| 1884 | --without-gvc disable GVC support |
| 1885 | --without-jbig disable JBIG support |
| 1886 | --without-jpeg disable JPEG support |
| 1887 | --without-jp2 disable JPEG-2000 support |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1888 | --without-lcms disable lcms (v1.1X) support |
| 1889 | --without-lcms2 disable lcms (v2.X) support |
| cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1890 | --without-lqr disable Liquid Rescale support |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1891 | --without-lzma disable LZMA support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1892 | --without-openexr disable OpenEXR support |
| 1893 | --without-png disable PNG support |
| 1894 | --without-rsvg disable RSVG support |
| 1895 | --without-tiff disable TIFF support |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1896 | --without-webp disable WEBP support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1897 | --with-windows-font-dir=DIR |
| 1898 | directory containing MS-Windows fonts |
| 1899 | --without-wmf disable WMF support |
| 1900 | --without-xml disable XML support |
| 1901 | |
| 1902 | Some influential environment variables: |
| 1903 | CC C compiler command |
| 1904 | CFLAGS C compiler flags |
| 1905 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1906 | nonstandard directory <lib dir> |
| 1907 | LIBS libraries to pass to the linker, e.g. -l<library> |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1908 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1909 | you have headers in a nonstandard directory <include dir> |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1910 | CPP C preprocessor |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1911 | CXX C++ compiler command |
| 1912 | CXXFLAGS C++ compiler flags |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1913 | PKG_CONFIG path to pkg-config utility |
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 1914 | CXXCPP C++ preprocessor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1915 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1916 | AUTOTRACE_CFLAGS |
| 1917 | C compiler flags for AUTOTRACE, overriding pkg-config |
| 1918 | AUTOTRACE_LIBS |
| 1919 | linker flags for AUTOTRACE, overriding pkg-config |
| 1920 | FONTCONFIG_CFLAGS |
| 1921 | C compiler flags for FONTCONFIG, overriding pkg-config |
| 1922 | FONTCONFIG_LIBS |
| 1923 | linker flags for FONTCONFIG, overriding pkg-config |
| 1924 | GVC_CFLAGS C compiler flags for GVC, overriding pkg-config |
| 1925 | GVC_LIBS linker flags for GVC, overriding pkg-config |
| 1926 | LQR_CFLAGS C compiler flags for LQR, overriding pkg-config |
| 1927 | LQR_LIBS linker flags for LQR, overriding pkg-config |
| 1928 | OPENEXR_CFLAGS |
| 1929 | C compiler flags for OPENEXR, overriding pkg-config |
| 1930 | OPENEXR_LIBS |
| 1931 | linker flags for OPENEXR, overriding pkg-config |
| 1932 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config |
| 1933 | RSVG_LIBS linker flags for RSVG, overriding pkg-config |
| 1934 | CAIRO_SVG_CFLAGS |
| 1935 | C compiler flags for CAIRO_SVG, overriding pkg-config |
| 1936 | CAIRO_SVG_LIBS |
| 1937 | linker flags for CAIRO_SVG, overriding pkg-config |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1938 | |
| 1939 | Use these variables to override the choices made by `configure' or to help |
| 1940 | it to find libraries and programs with nonstandard names/locations. |
| 1941 | |
| 1942 | Report bugs to <http://www.imagemagick.org>. |
| 1943 | _ACEOF |
| 1944 | ac_status=$? |
| 1945 | fi |
| 1946 | |
| 1947 | if test "$ac_init_help" = "recursive"; then |
| 1948 | # If there are subdirs, report their specific --help. |
| 1949 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1950 | test -d "$ac_dir" || |
| 1951 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1952 | continue |
| 1953 | ac_builddir=. |
| 1954 | |
| 1955 | case "$ac_dir" in |
| 1956 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1957 | *) |
| 1958 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1959 | # A ".." for each directory in $ac_dir_suffix. |
| 1960 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1961 | case $ac_top_builddir_sub in |
| 1962 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1963 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1964 | esac ;; |
| 1965 | esac |
| 1966 | ac_abs_top_builddir=$ac_pwd |
| 1967 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1968 | # for backward compatibility: |
| 1969 | ac_top_builddir=$ac_top_build_prefix |
| 1970 | |
| 1971 | case $srcdir in |
| 1972 | .) # We are building in place. |
| 1973 | ac_srcdir=. |
| 1974 | ac_top_srcdir=$ac_top_builddir_sub |
| 1975 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1976 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1977 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1978 | ac_top_srcdir=$srcdir |
| 1979 | ac_abs_top_srcdir=$srcdir ;; |
| 1980 | *) # Relative name. |
| 1981 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1982 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1983 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1984 | esac |
| 1985 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1986 | |
| 1987 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1988 | # Check for guested configure. |
| 1989 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1990 | echo && |
| 1991 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1992 | elif test -f "$ac_srcdir/configure"; then |
| 1993 | echo && |
| 1994 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1995 | else |
| 1996 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1997 | fi || ac_status=$? |
| 1998 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1999 | done |
| 2000 | fi |
| 2001 | |
| 2002 | test -n "$ac_init_help" && exit $ac_status |
| 2003 | if $ac_init_version; then |
| 2004 | cat <<\_ACEOF |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 2005 | ImageMagick configure 7.0.0 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2006 | generated by GNU Autoconf 2.68 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2007 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2008 | Copyright (C) 2010 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2009 | This configure script is free software; the Free Software Foundation |
| 2010 | gives unlimited permission to copy, distribute and modify it. |
| 2011 | _ACEOF |
| 2012 | exit |
| 2013 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2014 | |
| 2015 | ## ------------------------ ## |
| 2016 | ## Autoconf initialization. ## |
| 2017 | ## ------------------------ ## |
| 2018 | |
| 2019 | # ac_fn_c_try_compile LINENO |
| 2020 | # -------------------------- |
| 2021 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2022 | ac_fn_c_try_compile () |
| 2023 | { |
| 2024 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2025 | rm -f conftest.$ac_objext |
| 2026 | if { { ac_try="$ac_compile" |
| 2027 | case "(($ac_try" in |
| 2028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2029 | *) ac_try_echo=$ac_try;; |
| 2030 | esac |
| 2031 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2032 | $as_echo "$ac_try_echo"; } >&5 |
| 2033 | (eval "$ac_compile") 2>conftest.err |
| 2034 | ac_status=$? |
| 2035 | if test -s conftest.err; then |
| 2036 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2037 | cat conftest.er1 >&5 |
| 2038 | mv -f conftest.er1 conftest.err |
| 2039 | fi |
| 2040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2041 | test $ac_status = 0; } && { |
| 2042 | test -z "$ac_c_werror_flag" || |
| 2043 | test ! -s conftest.err |
| 2044 | } && test -s conftest.$ac_objext; then : |
| 2045 | ac_retval=0 |
| 2046 | else |
| 2047 | $as_echo "$as_me: failed program was:" >&5 |
| 2048 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2049 | |
| 2050 | ac_retval=1 |
| 2051 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2052 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2053 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2054 | |
| 2055 | } # ac_fn_c_try_compile |
| 2056 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2057 | # ac_fn_c_try_cpp LINENO |
| 2058 | # ---------------------- |
| 2059 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2060 | ac_fn_c_try_cpp () |
| 2061 | { |
| 2062 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2063 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2064 | case "(($ac_try" in |
| 2065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2066 | *) ac_try_echo=$ac_try;; |
| 2067 | esac |
| 2068 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2069 | $as_echo "$ac_try_echo"; } >&5 |
| 2070 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2071 | ac_status=$? |
| 2072 | if test -s conftest.err; then |
| 2073 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2074 | cat conftest.er1 >&5 |
| 2075 | mv -f conftest.er1 conftest.err |
| 2076 | fi |
| 2077 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2078 | test $ac_status = 0; } > conftest.i && { |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2079 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2080 | test ! -s conftest.err |
| 2081 | }; then : |
| 2082 | ac_retval=0 |
| 2083 | else |
| 2084 | $as_echo "$as_me: failed program was:" >&5 |
| 2085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2086 | |
| 2087 | ac_retval=1 |
| 2088 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2089 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2090 | as_fn_set_status $ac_retval |
| 2091 | |
| 2092 | } # ac_fn_c_try_cpp |
| 2093 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2094 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2095 | # ------------------------------------------------------- |
| 2096 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2097 | # the include files in INCLUDES and setting the cache variable VAR |
| 2098 | # accordingly. |
| 2099 | ac_fn_c_check_header_mongrel () |
| 2100 | { |
| 2101 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2102 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2104 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2105 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2106 | $as_echo_n "(cached) " >&6 |
| 2107 | fi |
| 2108 | eval ac_res=\$$3 |
| 2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2110 | $as_echo "$ac_res" >&6; } |
| 2111 | else |
| 2112 | # Is the header compilable? |
| 2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2114 | $as_echo_n "checking $2 usability... " >&6; } |
| 2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2116 | /* end confdefs.h. */ |
| 2117 | $4 |
| 2118 | #include <$2> |
| 2119 | _ACEOF |
| 2120 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2121 | ac_header_compiler=yes |
| 2122 | else |
| 2123 | ac_header_compiler=no |
| 2124 | fi |
| 2125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2127 | $as_echo "$ac_header_compiler" >&6; } |
| 2128 | |
| 2129 | # Is the header present? |
| 2130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2131 | $as_echo_n "checking $2 presence... " >&6; } |
| 2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2133 | /* end confdefs.h. */ |
| 2134 | #include <$2> |
| 2135 | _ACEOF |
| 2136 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2137 | ac_header_preproc=yes |
| 2138 | else |
| 2139 | ac_header_preproc=no |
| 2140 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2141 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2143 | $as_echo "$ac_header_preproc" >&6; } |
| 2144 | |
| 2145 | # So? What about this header? |
| 2146 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2147 | yes:no: ) |
| 2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2149 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2151 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2152 | ;; |
| 2153 | no:yes:* ) |
| 2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2155 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2157 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2159 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2161 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2163 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2164 | ( $as_echo "## ----------------------------------------- ## |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2165 | ## Report this to http://www.imagemagick.org ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2166 | ## ----------------------------------------- ##" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2167 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2168 | ;; |
| 2169 | esac |
| 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2171 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2172 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2173 | $as_echo_n "(cached) " >&6 |
| 2174 | else |
| 2175 | eval "$3=\$ac_header_compiler" |
| 2176 | fi |
| 2177 | eval ac_res=\$$3 |
| 2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2179 | $as_echo "$ac_res" >&6; } |
| 2180 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2181 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2182 | |
| 2183 | } # ac_fn_c_check_header_mongrel |
| 2184 | |
| 2185 | # ac_fn_c_try_run LINENO |
| 2186 | # ---------------------- |
| 2187 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2188 | # that executables *can* be run. |
| 2189 | ac_fn_c_try_run () |
| 2190 | { |
| 2191 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2192 | if { { ac_try="$ac_link" |
| 2193 | case "(($ac_try" in |
| 2194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2195 | *) ac_try_echo=$ac_try;; |
| 2196 | esac |
| 2197 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2198 | $as_echo "$ac_try_echo"; } >&5 |
| 2199 | (eval "$ac_link") 2>&5 |
| 2200 | ac_status=$? |
| 2201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2202 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2203 | { { case "(($ac_try" in |
| 2204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2205 | *) ac_try_echo=$ac_try;; |
| 2206 | esac |
| 2207 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2208 | $as_echo "$ac_try_echo"; } >&5 |
| 2209 | (eval "$ac_try") 2>&5 |
| 2210 | ac_status=$? |
| 2211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2212 | test $ac_status = 0; }; }; then : |
| 2213 | ac_retval=0 |
| 2214 | else |
| 2215 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2216 | $as_echo "$as_me: failed program was:" >&5 |
| 2217 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2218 | |
| 2219 | ac_retval=$ac_status |
| 2220 | fi |
| 2221 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2222 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2223 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2224 | |
| 2225 | } # ac_fn_c_try_run |
| 2226 | |
| 2227 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2228 | # ------------------------------------------------------- |
| 2229 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2230 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2231 | ac_fn_c_check_header_compile () |
| 2232 | { |
| 2233 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2235 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2236 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2237 | $as_echo_n "(cached) " >&6 |
| 2238 | else |
| 2239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2240 | /* end confdefs.h. */ |
| 2241 | $4 |
| 2242 | #include <$2> |
| 2243 | _ACEOF |
| 2244 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2245 | eval "$3=yes" |
| 2246 | else |
| 2247 | eval "$3=no" |
| 2248 | fi |
| 2249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2250 | fi |
| 2251 | eval ac_res=\$$3 |
| 2252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2253 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2254 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2255 | |
| 2256 | } # ac_fn_c_check_header_compile |
| 2257 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2258 | # ac_fn_cxx_try_compile LINENO |
| 2259 | # ---------------------------- |
| 2260 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2261 | ac_fn_cxx_try_compile () |
| 2262 | { |
| 2263 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2264 | rm -f conftest.$ac_objext |
| 2265 | if { { ac_try="$ac_compile" |
| 2266 | case "(($ac_try" in |
| 2267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2268 | *) ac_try_echo=$ac_try;; |
| 2269 | esac |
| 2270 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2271 | $as_echo "$ac_try_echo"; } >&5 |
| 2272 | (eval "$ac_compile") 2>conftest.err |
| 2273 | ac_status=$? |
| 2274 | if test -s conftest.err; then |
| 2275 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2276 | cat conftest.er1 >&5 |
| 2277 | mv -f conftest.er1 conftest.err |
| 2278 | fi |
| 2279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2280 | test $ac_status = 0; } && { |
| 2281 | test -z "$ac_cxx_werror_flag" || |
| 2282 | test ! -s conftest.err |
| 2283 | } && test -s conftest.$ac_objext; then : |
| 2284 | ac_retval=0 |
| 2285 | else |
| 2286 | $as_echo "$as_me: failed program was:" >&5 |
| 2287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2288 | |
| 2289 | ac_retval=1 |
| 2290 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2291 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2292 | as_fn_set_status $ac_retval |
| 2293 | |
| 2294 | } # ac_fn_cxx_try_compile |
| 2295 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2296 | # ac_fn_c_try_link LINENO |
| 2297 | # ----------------------- |
| 2298 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2299 | ac_fn_c_try_link () |
| 2300 | { |
| 2301 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2302 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2303 | if { { ac_try="$ac_link" |
| 2304 | case "(($ac_try" in |
| 2305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2306 | *) ac_try_echo=$ac_try;; |
| 2307 | esac |
| 2308 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2309 | $as_echo "$ac_try_echo"; } >&5 |
| 2310 | (eval "$ac_link") 2>conftest.err |
| 2311 | ac_status=$? |
| 2312 | if test -s conftest.err; then |
| 2313 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2314 | cat conftest.er1 >&5 |
| 2315 | mv -f conftest.er1 conftest.err |
| 2316 | fi |
| 2317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2318 | test $ac_status = 0; } && { |
| 2319 | test -z "$ac_c_werror_flag" || |
| 2320 | test ! -s conftest.err |
| 2321 | } && test -s conftest$ac_exeext && { |
| 2322 | test "$cross_compiling" = yes || |
| 2323 | $as_test_x conftest$ac_exeext |
| 2324 | }; then : |
| 2325 | ac_retval=0 |
| 2326 | else |
| 2327 | $as_echo "$as_me: failed program was:" >&5 |
| 2328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2329 | |
| 2330 | ac_retval=1 |
| 2331 | fi |
| 2332 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2333 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2334 | # interfere with the next link command; also delete a directory that is |
| 2335 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2336 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2337 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2338 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2339 | |
| 2340 | } # ac_fn_c_try_link |
| 2341 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2342 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2343 | # ---------------------------------- |
| 2344 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2345 | ac_fn_c_check_func () |
| 2346 | { |
| 2347 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2349 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2350 | if eval \${$3+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2351 | $as_echo_n "(cached) " >&6 |
| 2352 | else |
| 2353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2354 | /* end confdefs.h. */ |
| 2355 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2356 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2357 | #define $2 innocuous_$2 |
| 2358 | |
| 2359 | /* System header to define __stub macros and hopefully few prototypes, |
| 2360 | which can conflict with char $2 (); below. |
| 2361 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2362 | <limits.h> exists even on freestanding compilers. */ |
| 2363 | |
| 2364 | #ifdef __STDC__ |
| 2365 | # include <limits.h> |
| 2366 | #else |
| 2367 | # include <assert.h> |
| 2368 | #endif |
| 2369 | |
| 2370 | #undef $2 |
| 2371 | |
| 2372 | /* Override any GCC internal prototype to avoid an error. |
| 2373 | Use char because int might match the return type of a GCC |
| 2374 | builtin and then its argument prototype would still apply. */ |
| 2375 | #ifdef __cplusplus |
| 2376 | extern "C" |
| 2377 | #endif |
| 2378 | char $2 (); |
| 2379 | /* The GNU C library defines this for functions which it implements |
| 2380 | to always fail with ENOSYS. Some functions are actually named |
| 2381 | something starting with __ and the normal name is an alias. */ |
| 2382 | #if defined __stub_$2 || defined __stub___$2 |
| 2383 | choke me |
| 2384 | #endif |
| 2385 | |
| 2386 | int |
| 2387 | main () |
| 2388 | { |
| 2389 | return $2 (); |
| 2390 | ; |
| 2391 | return 0; |
| 2392 | } |
| 2393 | _ACEOF |
| 2394 | if ac_fn_c_try_link "$LINENO"; then : |
| 2395 | eval "$3=yes" |
| 2396 | else |
| 2397 | eval "$3=no" |
| 2398 | fi |
| 2399 | rm -f core conftest.err conftest.$ac_objext \ |
| 2400 | conftest$ac_exeext conftest.$ac_ext |
| 2401 | fi |
| 2402 | eval ac_res=\$$3 |
| 2403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2404 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2405 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2406 | |
| 2407 | } # ac_fn_c_check_func |
| 2408 | |
| 2409 | # ac_fn_cxx_try_cpp LINENO |
| 2410 | # ------------------------ |
| 2411 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2412 | ac_fn_cxx_try_cpp () |
| 2413 | { |
| 2414 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2415 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2416 | case "(($ac_try" in |
| 2417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2418 | *) ac_try_echo=$ac_try;; |
| 2419 | esac |
| 2420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2421 | $as_echo "$ac_try_echo"; } >&5 |
| 2422 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2423 | ac_status=$? |
| 2424 | if test -s conftest.err; then |
| 2425 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2426 | cat conftest.er1 >&5 |
| 2427 | mv -f conftest.er1 conftest.err |
| 2428 | fi |
| 2429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2430 | test $ac_status = 0; } > conftest.i && { |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2431 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2432 | test ! -s conftest.err |
| 2433 | }; then : |
| 2434 | ac_retval=0 |
| 2435 | else |
| 2436 | $as_echo "$as_me: failed program was:" >&5 |
| 2437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2438 | |
| 2439 | ac_retval=1 |
| 2440 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2441 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2442 | as_fn_set_status $ac_retval |
| 2443 | |
| 2444 | } # ac_fn_cxx_try_cpp |
| 2445 | |
| 2446 | # ac_fn_cxx_try_link LINENO |
| 2447 | # ------------------------- |
| 2448 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2449 | ac_fn_cxx_try_link () |
| 2450 | { |
| 2451 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2453 | if { { ac_try="$ac_link" |
| 2454 | case "(($ac_try" in |
| 2455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2456 | *) ac_try_echo=$ac_try;; |
| 2457 | esac |
| 2458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2459 | $as_echo "$ac_try_echo"; } >&5 |
| 2460 | (eval "$ac_link") 2>conftest.err |
| 2461 | ac_status=$? |
| 2462 | if test -s conftest.err; then |
| 2463 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2464 | cat conftest.er1 >&5 |
| 2465 | mv -f conftest.er1 conftest.err |
| 2466 | fi |
| 2467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2468 | test $ac_status = 0; } && { |
| 2469 | test -z "$ac_cxx_werror_flag" || |
| 2470 | test ! -s conftest.err |
| 2471 | } && test -s conftest$ac_exeext && { |
| 2472 | test "$cross_compiling" = yes || |
| 2473 | $as_test_x conftest$ac_exeext |
| 2474 | }; then : |
| 2475 | ac_retval=0 |
| 2476 | else |
| 2477 | $as_echo "$as_me: failed program was:" >&5 |
| 2478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2479 | |
| 2480 | ac_retval=1 |
| 2481 | fi |
| 2482 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2483 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2484 | # interfere with the next link command; also delete a directory that is |
| 2485 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2486 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2487 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2488 | as_fn_set_status $ac_retval |
| 2489 | |
| 2490 | } # ac_fn_cxx_try_link |
| 2491 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2492 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2493 | # --------------------------------------------- |
| 2494 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2495 | # accordingly. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2496 | ac_fn_c_check_decl () |
| 2497 | { |
| 2498 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2499 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2500 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2502 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2503 | if eval \${$3+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2504 | $as_echo_n "(cached) " >&6 |
| 2505 | else |
| 2506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2507 | /* end confdefs.h. */ |
| 2508 | $4 |
| 2509 | int |
| 2510 | main () |
| 2511 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2512 | #ifndef $as_decl_name |
| 2513 | #ifdef __cplusplus |
| 2514 | (void) $as_decl_use; |
| 2515 | #else |
| 2516 | (void) $as_decl_name; |
| 2517 | #endif |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2518 | #endif |
| 2519 | |
| 2520 | ; |
| 2521 | return 0; |
| 2522 | } |
| 2523 | _ACEOF |
| 2524 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2525 | eval "$3=yes" |
| 2526 | else |
| 2527 | eval "$3=no" |
| 2528 | fi |
| 2529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2530 | fi |
| 2531 | eval ac_res=\$$3 |
| 2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2533 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2534 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2535 | |
| 2536 | } # ac_fn_c_check_decl |
| 2537 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2538 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2539 | # ------------------------------------------- |
| 2540 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2541 | # variable VAR accordingly. |
| 2542 | ac_fn_c_check_type () |
| 2543 | { |
| 2544 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2546 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2547 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2548 | $as_echo_n "(cached) " >&6 |
| 2549 | else |
| 2550 | eval "$3=no" |
| 2551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2552 | /* end confdefs.h. */ |
| 2553 | $4 |
| 2554 | int |
| 2555 | main () |
| 2556 | { |
| 2557 | if (sizeof ($2)) |
| 2558 | return 0; |
| 2559 | ; |
| 2560 | return 0; |
| 2561 | } |
| 2562 | _ACEOF |
| 2563 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2565 | /* end confdefs.h. */ |
| 2566 | $4 |
| 2567 | int |
| 2568 | main () |
| 2569 | { |
| 2570 | if (sizeof (($2))) |
| 2571 | return 0; |
| 2572 | ; |
| 2573 | return 0; |
| 2574 | } |
| 2575 | _ACEOF |
| 2576 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2577 | |
| 2578 | else |
| 2579 | eval "$3=yes" |
| 2580 | fi |
| 2581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2582 | fi |
| 2583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2584 | fi |
| 2585 | eval ac_res=\$$3 |
| 2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2587 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2588 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2589 | |
| 2590 | } # ac_fn_c_check_type |
| 2591 | |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2592 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2593 | # ---------------------------------------------------- |
| 2594 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2595 | # INCLUDES, setting cache variable VAR accordingly. |
| 2596 | ac_fn_c_check_member () |
| 2597 | { |
| 2598 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2600 | $as_echo_n "checking for $2.$3... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2601 | if eval \${$4+:} false; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2602 | $as_echo_n "(cached) " >&6 |
| 2603 | else |
| 2604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2605 | /* end confdefs.h. */ |
| 2606 | $5 |
| 2607 | int |
| 2608 | main () |
| 2609 | { |
| 2610 | static $2 ac_aggr; |
| 2611 | if (ac_aggr.$3) |
| 2612 | return 0; |
| 2613 | ; |
| 2614 | return 0; |
| 2615 | } |
| 2616 | _ACEOF |
| 2617 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2618 | eval "$4=yes" |
| 2619 | else |
| 2620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2621 | /* end confdefs.h. */ |
| 2622 | $5 |
| 2623 | int |
| 2624 | main () |
| 2625 | { |
| 2626 | static $2 ac_aggr; |
| 2627 | if (sizeof ac_aggr.$3) |
| 2628 | return 0; |
| 2629 | ; |
| 2630 | return 0; |
| 2631 | } |
| 2632 | _ACEOF |
| 2633 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2634 | eval "$4=yes" |
| 2635 | else |
| 2636 | eval "$4=no" |
| 2637 | fi |
| 2638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2639 | fi |
| 2640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2641 | fi |
| 2642 | eval ac_res=\$$4 |
| 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2644 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2645 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2646 | |
| 2647 | } # ac_fn_c_check_member |
| 2648 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2649 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2650 | # ----------------------------------- |
| 2651 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2652 | # accordingly. |
| 2653 | ac_fn_c_find_intX_t () |
| 2654 | { |
| 2655 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2657 | $as_echo_n "checking for int$2_t... " >&6; } |
| 2658 | if eval \${$3+:} false; then : |
| 2659 | $as_echo_n "(cached) " >&6 |
| 2660 | else |
| 2661 | eval "$3=no" |
| 2662 | # Order is important - never check a type that is potentially smaller |
| 2663 | # than half of the expected target width. |
| 2664 | for ac_type in int$2_t 'int' 'long int' \ |
| 2665 | 'long long int' 'short int' 'signed char'; do |
| 2666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2667 | /* end confdefs.h. */ |
| 2668 | $ac_includes_default |
| 2669 | enum { N = $2 / 2 - 1 }; |
| 2670 | int |
| 2671 | main () |
| 2672 | { |
| 2673 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 2674 | test_array [0] = 0 |
| 2675 | |
| 2676 | ; |
| 2677 | return 0; |
| 2678 | } |
| 2679 | _ACEOF |
| 2680 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2682 | /* end confdefs.h. */ |
| 2683 | $ac_includes_default |
| 2684 | enum { N = $2 / 2 - 1 }; |
| 2685 | int |
| 2686 | main () |
| 2687 | { |
| 2688 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2689 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 2690 | test_array [0] = 0 |
| 2691 | |
| 2692 | ; |
| 2693 | return 0; |
| 2694 | } |
| 2695 | _ACEOF |
| 2696 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2697 | |
| 2698 | else |
| 2699 | case $ac_type in #( |
| 2700 | int$2_t) : |
| 2701 | eval "$3=yes" ;; #( |
| 2702 | *) : |
| 2703 | eval "$3=\$ac_type" ;; |
| 2704 | esac |
| 2705 | fi |
| 2706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2707 | fi |
| 2708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2709 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2710 | |
| 2711 | else |
| 2712 | break |
| 2713 | fi |
| 2714 | done |
| 2715 | fi |
| 2716 | eval ac_res=\$$3 |
| 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2718 | $as_echo "$ac_res" >&6; } |
| 2719 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2720 | |
| 2721 | } # ac_fn_c_find_intX_t |
| 2722 | |
| 2723 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2724 | # ------------------------------------ |
| 2725 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2726 | # accordingly. |
| 2727 | ac_fn_c_find_uintX_t () |
| 2728 | { |
| 2729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2731 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 2732 | if eval \${$3+:} false; then : |
| 2733 | $as_echo_n "(cached) " >&6 |
| 2734 | else |
| 2735 | eval "$3=no" |
| 2736 | # Order is important - never check a type that is potentially smaller |
| 2737 | # than half of the expected target width. |
| 2738 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2739 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2741 | /* end confdefs.h. */ |
| 2742 | $ac_includes_default |
| 2743 | int |
| 2744 | main () |
| 2745 | { |
| 2746 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2747 | test_array [0] = 0 |
| 2748 | |
| 2749 | ; |
| 2750 | return 0; |
| 2751 | } |
| 2752 | _ACEOF |
| 2753 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2754 | case $ac_type in #( |
| 2755 | uint$2_t) : |
| 2756 | eval "$3=yes" ;; #( |
| 2757 | *) : |
| 2758 | eval "$3=\$ac_type" ;; |
| 2759 | esac |
| 2760 | fi |
| 2761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2762 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2763 | |
| 2764 | else |
| 2765 | break |
| 2766 | fi |
| 2767 | done |
| 2768 | fi |
| 2769 | eval ac_res=\$$3 |
| 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2771 | $as_echo "$ac_res" >&6; } |
| 2772 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2773 | |
| 2774 | } # ac_fn_c_find_uintX_t |
| 2775 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2776 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2777 | # -------------------------------------------- |
| 2778 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2779 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2780 | # computed |
| 2781 | ac_fn_c_compute_int () |
| 2782 | { |
| 2783 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2784 | if test "$cross_compiling" = yes; then |
| 2785 | # Depending upon the size, compute the lo and hi bounds. |
| 2786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2787 | /* end confdefs.h. */ |
| 2788 | $4 |
| 2789 | int |
| 2790 | main () |
| 2791 | { |
| 2792 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2793 | test_array [0] = 0 |
| 2794 | |
| 2795 | ; |
| 2796 | return 0; |
| 2797 | } |
| 2798 | _ACEOF |
| 2799 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2800 | ac_lo=0 ac_mid=0 |
| 2801 | while :; do |
| 2802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2803 | /* end confdefs.h. */ |
| 2804 | $4 |
| 2805 | int |
| 2806 | main () |
| 2807 | { |
| 2808 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2809 | test_array [0] = 0 |
| 2810 | |
| 2811 | ; |
| 2812 | return 0; |
| 2813 | } |
| 2814 | _ACEOF |
| 2815 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2816 | ac_hi=$ac_mid; break |
| 2817 | else |
| 2818 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2819 | if test $ac_lo -le $ac_mid; then |
| 2820 | ac_lo= ac_hi= |
| 2821 | break |
| 2822 | fi |
| 2823 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2824 | fi |
| 2825 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2826 | done |
| 2827 | else |
| 2828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2829 | /* end confdefs.h. */ |
| 2830 | $4 |
| 2831 | int |
| 2832 | main () |
| 2833 | { |
| 2834 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2835 | test_array [0] = 0 |
| 2836 | |
| 2837 | ; |
| 2838 | return 0; |
| 2839 | } |
| 2840 | _ACEOF |
| 2841 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2842 | ac_hi=-1 ac_mid=-1 |
| 2843 | while :; do |
| 2844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2845 | /* end confdefs.h. */ |
| 2846 | $4 |
| 2847 | int |
| 2848 | main () |
| 2849 | { |
| 2850 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2851 | test_array [0] = 0 |
| 2852 | |
| 2853 | ; |
| 2854 | return 0; |
| 2855 | } |
| 2856 | _ACEOF |
| 2857 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2858 | ac_lo=$ac_mid; break |
| 2859 | else |
| 2860 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2861 | if test $ac_mid -le $ac_hi; then |
| 2862 | ac_lo= ac_hi= |
| 2863 | break |
| 2864 | fi |
| 2865 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2866 | fi |
| 2867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2868 | done |
| 2869 | else |
| 2870 | ac_lo= ac_hi= |
| 2871 | fi |
| 2872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2873 | fi |
| 2874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2875 | # Binary search between lo and hi bounds. |
| 2876 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2877 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2879 | /* end confdefs.h. */ |
| 2880 | $4 |
| 2881 | int |
| 2882 | main () |
| 2883 | { |
| 2884 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2885 | test_array [0] = 0 |
| 2886 | |
| 2887 | ; |
| 2888 | return 0; |
| 2889 | } |
| 2890 | _ACEOF |
| 2891 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2892 | ac_hi=$ac_mid |
| 2893 | else |
| 2894 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2895 | fi |
| 2896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2897 | done |
| 2898 | case $ac_lo in #(( |
| 2899 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2900 | '') ac_retval=1 ;; |
| 2901 | esac |
| 2902 | else |
| 2903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2904 | /* end confdefs.h. */ |
| 2905 | $4 |
| 2906 | static long int longval () { return $2; } |
| 2907 | static unsigned long int ulongval () { return $2; } |
| 2908 | #include <stdio.h> |
| 2909 | #include <stdlib.h> |
| 2910 | int |
| 2911 | main () |
| 2912 | { |
| 2913 | |
| 2914 | FILE *f = fopen ("conftest.val", "w"); |
| 2915 | if (! f) |
| 2916 | return 1; |
| 2917 | if (($2) < 0) |
| 2918 | { |
| 2919 | long int i = longval (); |
| 2920 | if (i != ($2)) |
| 2921 | return 1; |
| 2922 | fprintf (f, "%ld", i); |
| 2923 | } |
| 2924 | else |
| 2925 | { |
| 2926 | unsigned long int i = ulongval (); |
| 2927 | if (i != ($2)) |
| 2928 | return 1; |
| 2929 | fprintf (f, "%lu", i); |
| 2930 | } |
| 2931 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2932 | on some platforms. */ |
| 2933 | return ferror (f) || fclose (f) != 0; |
| 2934 | |
| 2935 | ; |
| 2936 | return 0; |
| 2937 | } |
| 2938 | _ACEOF |
| 2939 | if ac_fn_c_try_run "$LINENO"; then : |
| 2940 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2941 | else |
| 2942 | ac_retval=1 |
| 2943 | fi |
| 2944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2945 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2946 | rm -f conftest.val |
| 2947 | |
| 2948 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2949 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2950 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2951 | |
| 2952 | } # ac_fn_c_compute_int |
| 2953 | |
| 2954 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2955 | # --------------------------------------------------------- |
| 2956 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2957 | # the include files in INCLUDES and setting the cache variable VAR |
| 2958 | # accordingly. |
| 2959 | ac_fn_cxx_check_header_mongrel () |
| 2960 | { |
| 2961 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2962 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2964 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2965 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2966 | $as_echo_n "(cached) " >&6 |
| 2967 | fi |
| 2968 | eval ac_res=\$$3 |
| 2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2970 | $as_echo "$ac_res" >&6; } |
| 2971 | else |
| 2972 | # Is the header compilable? |
| 2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2974 | $as_echo_n "checking $2 usability... " >&6; } |
| 2975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2976 | /* end confdefs.h. */ |
| 2977 | $4 |
| 2978 | #include <$2> |
| 2979 | _ACEOF |
| 2980 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2981 | ac_header_compiler=yes |
| 2982 | else |
| 2983 | ac_header_compiler=no |
| 2984 | fi |
| 2985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2987 | $as_echo "$ac_header_compiler" >&6; } |
| 2988 | |
| 2989 | # Is the header present? |
| 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2991 | $as_echo_n "checking $2 presence... " >&6; } |
| 2992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2993 | /* end confdefs.h. */ |
| 2994 | #include <$2> |
| 2995 | _ACEOF |
| 2996 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2997 | ac_header_preproc=yes |
| 2998 | else |
| 2999 | ac_header_preproc=no |
| 3000 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3001 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 3003 | $as_echo "$ac_header_preproc" >&6; } |
| 3004 | |
| 3005 | # So? What about this header? |
| 3006 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 3007 | yes:no: ) |
| 3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3009 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 3011 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 3012 | ;; |
| 3013 | no:yes:* ) |
| 3014 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 3015 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 3017 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 3019 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 3021 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 3023 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3024 | ( $as_echo "## ----------------------------------------- ## |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3025 | ## Report this to http://www.imagemagick.org ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3026 | ## ----------------------------------------- ##" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3027 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 3028 | ;; |
| 3029 | esac |
| 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3031 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3032 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3033 | $as_echo_n "(cached) " >&6 |
| 3034 | else |
| 3035 | eval "$3=\$ac_header_compiler" |
| 3036 | fi |
| 3037 | eval ac_res=\$$3 |
| 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3039 | $as_echo "$ac_res" >&6; } |
| 3040 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3042 | |
| 3043 | } # ac_fn_cxx_check_header_mongrel |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3044 | cat >config.log <<_ACEOF |
| 3045 | This file contains any messages produced by compilers while |
| 3046 | running configure, to aid debugging if configure makes a mistake. |
| 3047 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3048 | It was created by ImageMagick $as_me 7.0.0, which was |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3049 | generated by GNU Autoconf 2.68. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3050 | |
| 3051 | $ $0 $@ |
| 3052 | |
| 3053 | _ACEOF |
| 3054 | exec 5>>config.log |
| 3055 | { |
| 3056 | cat <<_ASUNAME |
| 3057 | ## --------- ## |
| 3058 | ## Platform. ## |
| 3059 | ## --------- ## |
| 3060 | |
| 3061 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3062 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 3063 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 3064 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 3065 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 3066 | |
| 3067 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 3068 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 3069 | |
| 3070 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 3071 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 3072 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 3073 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 3074 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 3075 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 3076 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 3077 | |
| 3078 | _ASUNAME |
| 3079 | |
| 3080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3081 | for as_dir in $PATH |
| 3082 | do |
| 3083 | IFS=$as_save_IFS |
| 3084 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3085 | $as_echo "PATH: $as_dir" |
| 3086 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3087 | IFS=$as_save_IFS |
| 3088 | |
| 3089 | } >&5 |
| 3090 | |
| 3091 | cat >&5 <<_ACEOF |
| 3092 | |
| 3093 | |
| 3094 | ## ----------- ## |
| 3095 | ## Core tests. ## |
| 3096 | ## ----------- ## |
| 3097 | |
| 3098 | _ACEOF |
| 3099 | |
| 3100 | |
| 3101 | # Keep a trace of the command line. |
| 3102 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3103 | # Strip out --silent because we don't want to record it for future runs. |
| 3104 | # Also quote any args containing shell meta-characters. |
| 3105 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3106 | ac_configure_args= |
| 3107 | ac_configure_args0= |
| 3108 | ac_configure_args1= |
| 3109 | ac_must_keep_next=false |
| 3110 | for ac_pass in 1 2 |
| 3111 | do |
| 3112 | for ac_arg |
| 3113 | do |
| 3114 | case $ac_arg in |
| 3115 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3116 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3117 | | -silent | --silent | --silen | --sile | --sil) |
| 3118 | continue ;; |
| 3119 | *\'*) |
| 3120 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3121 | esac |
| 3122 | case $ac_pass in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3123 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3124 | 2) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3125 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3126 | if test $ac_must_keep_next = true; then |
| 3127 | ac_must_keep_next=false # Got value, back to normal. |
| 3128 | else |
| 3129 | case $ac_arg in |
| 3130 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3131 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3132 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3133 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3134 | case "$ac_configure_args0 " in |
| 3135 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3136 | esac |
| 3137 | ;; |
| 3138 | -* ) ac_must_keep_next=true ;; |
| 3139 | esac |
| 3140 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3141 | as_fn_append ac_configure_args " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3142 | ;; |
| 3143 | esac |
| 3144 | done |
| 3145 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3146 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3147 | { ac_configure_args1=; unset ac_configure_args1;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3148 | |
| 3149 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3150 | # config.log. We remove comments because anyway the quotes in there |
| 3151 | # would cause problems or look ugly. |
| 3152 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3153 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3154 | trap 'exit_status=$? |
| 3155 | # Save into config.log some information that might help in debugging. |
| 3156 | { |
| 3157 | echo |
| 3158 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3159 | $as_echo "## ---------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3160 | ## Cache variables. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3161 | ## ---------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3162 | echo |
| 3163 | # The following way of writing the cache mishandles newlines in values, |
| 3164 | ( |
| 3165 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3166 | eval ac_val=\$$ac_var |
| 3167 | case $ac_val in #( |
| 3168 | *${as_nl}*) |
| 3169 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3170 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3171 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3172 | esac |
| 3173 | case $ac_var in #( |
| 3174 | _ | IFS | as_nl) ;; #( |
| 3175 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3176 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3177 | esac ;; |
| 3178 | esac |
| 3179 | done |
| 3180 | (set) 2>&1 | |
| 3181 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3182 | *${as_nl}ac_space=\ *) |
| 3183 | sed -n \ |
| 3184 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3185 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3186 | ;; #( |
| 3187 | *) |
| 3188 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3189 | ;; |
| 3190 | esac | |
| 3191 | sort |
| 3192 | ) |
| 3193 | echo |
| 3194 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3195 | $as_echo "## ----------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3196 | ## Output variables. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3197 | ## ----------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3198 | echo |
| 3199 | for ac_var in $ac_subst_vars |
| 3200 | do |
| 3201 | eval ac_val=\$$ac_var |
| 3202 | case $ac_val in |
| 3203 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3204 | esac |
| 3205 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3206 | done | sort |
| 3207 | echo |
| 3208 | |
| 3209 | if test -n "$ac_subst_files"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3210 | $as_echo "## ------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3211 | ## File substitutions. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3212 | ## ------------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3213 | echo |
| 3214 | for ac_var in $ac_subst_files |
| 3215 | do |
| 3216 | eval ac_val=\$$ac_var |
| 3217 | case $ac_val in |
| 3218 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3219 | esac |
| 3220 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3221 | done | sort |
| 3222 | echo |
| 3223 | fi |
| 3224 | |
| 3225 | if test -s confdefs.h; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3226 | $as_echo "## ----------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3227 | ## confdefs.h. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3228 | ## ----------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3229 | echo |
| 3230 | cat confdefs.h |
| 3231 | echo |
| 3232 | fi |
| 3233 | test "$ac_signal" != 0 && |
| 3234 | $as_echo "$as_me: caught signal $ac_signal" |
| 3235 | $as_echo "$as_me: exit $exit_status" |
| 3236 | } >&5 |
| 3237 | rm -f core *.core core.conftest.* && |
| 3238 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3239 | exit $exit_status |
| 3240 | ' 0 |
| 3241 | for ac_signal in 1 2 13 15; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3242 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3243 | done |
| 3244 | ac_signal=0 |
| 3245 | |
| 3246 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3247 | rm -f -r conftest* confdefs.h |
| 3248 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3249 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3250 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3251 | # Predefined preprocessor variables. |
| 3252 | |
| 3253 | cat >>confdefs.h <<_ACEOF |
| 3254 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3255 | _ACEOF |
| 3256 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3257 | cat >>confdefs.h <<_ACEOF |
| 3258 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3259 | _ACEOF |
| 3260 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3261 | cat >>confdefs.h <<_ACEOF |
| 3262 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3263 | _ACEOF |
| 3264 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3265 | cat >>confdefs.h <<_ACEOF |
| 3266 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3267 | _ACEOF |
| 3268 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3269 | cat >>confdefs.h <<_ACEOF |
| 3270 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3271 | _ACEOF |
| 3272 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3273 | cat >>confdefs.h <<_ACEOF |
| 3274 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3275 | _ACEOF |
| 3276 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3277 | |
| 3278 | # Let the site file select an alternate cache file if it wants to. |
| 3279 | # Prefer an explicitly selected file to automatically selected ones. |
| 3280 | ac_site_file1=NONE |
| 3281 | ac_site_file2=NONE |
| 3282 | if test -n "$CONFIG_SITE"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3283 | # We do not want a PATH search for config.site. |
| 3284 | case $CONFIG_SITE in #(( |
| 3285 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 3286 | */*) ac_site_file1=$CONFIG_SITE;; |
| 3287 | *) ac_site_file1=./$CONFIG_SITE;; |
| 3288 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3289 | elif test "x$prefix" != xNONE; then |
| 3290 | ac_site_file1=$prefix/share/config.site |
| 3291 | ac_site_file2=$prefix/etc/config.site |
| 3292 | else |
| 3293 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3294 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3295 | fi |
| 3296 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3297 | do |
| 3298 | test "x$ac_site_file" = xNONE && continue |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3299 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3301 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3302 | sed 's/^/| /' "$ac_site_file" >&5 |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3303 | . "$ac_site_file" \ |
| 3304 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3306 | as_fn_error $? "failed to load site script $ac_site_file |
| 3307 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3308 | fi |
| 3309 | done |
| 3310 | |
| 3311 | if test -r "$cache_file"; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3312 | # Some versions of bash will fail to source /dev/null (special files |
| 3313 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3314 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3316 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3317 | case $cache_file in |
| 3318 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3319 | *) . "./$cache_file";; |
| 3320 | esac |
| 3321 | fi |
| 3322 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3323 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3324 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3325 | >$cache_file |
| 3326 | fi |
| 3327 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3328 | as_fn_append ac_header_list " stdlib.h" |
| 3329 | as_fn_append ac_header_list " unistd.h" |
| 3330 | as_fn_append ac_header_list " sys/param.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3331 | # Check that the precious variables saved in the cache have kept the same |
| 3332 | # value. |
| 3333 | ac_cache_corrupted=false |
| 3334 | for ac_var in $ac_precious_vars; do |
| 3335 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3336 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3337 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3338 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3339 | case $ac_old_set,$ac_new_set in |
| 3340 | set,) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3341 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3342 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3343 | ac_cache_corrupted=: ;; |
| 3344 | ,set) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3346 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3347 | ac_cache_corrupted=: ;; |
| 3348 | ,);; |
| 3349 | *) |
| 3350 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3351 | # differences in whitespace do not lead to failure. |
| 3352 | ac_old_val_w=`echo x $ac_old_val` |
| 3353 | ac_new_val_w=`echo x $ac_new_val` |
| 3354 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3356 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3357 | ac_cache_corrupted=: |
| 3358 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3360 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3361 | eval $ac_var=\$ac_old_val |
| 3362 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3364 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3366 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3367 | fi;; |
| 3368 | esac |
| 3369 | # Pass precious variables to config.status. |
| 3370 | if test "$ac_new_set" = set; then |
| 3371 | case $ac_new_val in |
| 3372 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3373 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3374 | esac |
| 3375 | case " $ac_configure_args " in |
| 3376 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3377 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3378 | esac |
| 3379 | fi |
| 3380 | done |
| 3381 | if $ac_cache_corrupted; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3382 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3383 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3384 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3385 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3386 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3387 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3388 | ## -------------------- ## |
| 3389 | ## Main body of script. ## |
| 3390 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3391 | |
| 3392 | ac_ext=c |
| 3393 | ac_cpp='$CPP $CPPFLAGS' |
| 3394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3397 | |
| 3398 | |
| 3399 | |
| 3400 | ac_aux_dir= |
| 3401 | for ac_dir in config "$srcdir"/config; do |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3402 | if test -f "$ac_dir/install-sh"; then |
| 3403 | ac_aux_dir=$ac_dir |
| 3404 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3405 | break |
| 3406 | elif test -f "$ac_dir/install.sh"; then |
| 3407 | ac_aux_dir=$ac_dir |
| 3408 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3409 | break |
| 3410 | elif test -f "$ac_dir/shtool"; then |
| 3411 | ac_aux_dir=$ac_dir |
| 3412 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3413 | break |
| 3414 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3415 | done |
| 3416 | if test -z "$ac_aux_dir"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3417 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3418 | fi |
| 3419 | |
| 3420 | # These three variables are undocumented and unsupported, |
| 3421 | # and are intended to be withdrawn in a future Autoconf release. |
| 3422 | # They can cause serious problems if a builder's source tree is in a directory |
| 3423 | # whose full name contains unusual characters. |
| 3424 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3425 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3426 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3427 | |
| 3428 | |
| 3429 | |
| 3430 | |
| 3431 | ac_config_headers="$ac_config_headers config/config.h" |
| 3432 | |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 3433 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3434 | ac_config_commands="$ac_config_commands MagickCore/magick-config.h" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3435 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 3436 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3437 | |
| 3438 | |
| 3439 | # |
| 3440 | # Save initial user-tunable values |
| 3441 | # |
| 3442 | USER_LIBS=$LIBS |
| 3443 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 3444 | eval isset=\${$var+set} |
| 3445 | if test "$isset" = 'set'; then |
| 3446 | eval val=$`echo $var` |
| 3447 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 3448 | fi |
| 3449 | done |
| 3450 | |
| 3451 | |
| 3452 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 3453 | |
| 3454 | |
| 3455 | # Source file containing package/library versioning information. |
| 3456 | . ${srcdir}/version.sh |
| 3457 | |
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3458 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3459 | # Make sure we can run config.sub. |
| 3460 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3461 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3462 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3464 | $as_echo_n "checking build system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3465 | if ${ac_cv_build+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3466 | $as_echo_n "(cached) " >&6 |
| 3467 | else |
| 3468 | ac_build_alias=$build_alias |
| 3469 | test "x$ac_build_alias" = x && |
| 3470 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3471 | test "x$ac_build_alias" = x && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3472 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3473 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3474 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3475 | |
| 3476 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3478 | $as_echo "$ac_cv_build" >&6; } |
| 3479 | case $ac_cv_build in |
| 3480 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3481 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3482 | esac |
| 3483 | build=$ac_cv_build |
| 3484 | ac_save_IFS=$IFS; IFS='-' |
| 3485 | set x $ac_cv_build |
| 3486 | shift |
| 3487 | build_cpu=$1 |
| 3488 | build_vendor=$2 |
| 3489 | shift; shift |
| 3490 | # Remember, the first character of IFS is used to create $*, |
| 3491 | # except with old shells: |
| 3492 | build_os=$* |
| 3493 | IFS=$ac_save_IFS |
| 3494 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3495 | |
| 3496 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3498 | $as_echo_n "checking host system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3499 | if ${ac_cv_host+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3500 | $as_echo_n "(cached) " >&6 |
| 3501 | else |
| 3502 | if test "x$host_alias" = x; then |
| 3503 | ac_cv_host=$ac_cv_build |
| 3504 | else |
| 3505 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3506 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3507 | fi |
| 3508 | |
| 3509 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3511 | $as_echo "$ac_cv_host" >&6; } |
| 3512 | case $ac_cv_host in |
| 3513 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3514 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3515 | esac |
| 3516 | host=$ac_cv_host |
| 3517 | ac_save_IFS=$IFS; IFS='-' |
| 3518 | set x $ac_cv_host |
| 3519 | shift |
| 3520 | host_cpu=$1 |
| 3521 | host_vendor=$2 |
| 3522 | shift; shift |
| 3523 | # Remember, the first character of IFS is used to create $*, |
| 3524 | # except with old shells: |
| 3525 | host_os=$* |
| 3526 | IFS=$ac_save_IFS |
| 3527 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3528 | |
| 3529 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3531 | $as_echo_n "checking target system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3532 | if ${ac_cv_target+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3533 | $as_echo_n "(cached) " >&6 |
| 3534 | else |
| 3535 | if test "x$target_alias" = x; then |
| 3536 | ac_cv_target=$ac_cv_host |
| 3537 | else |
| 3538 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3539 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3540 | fi |
| 3541 | |
| 3542 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3544 | $as_echo "$ac_cv_target" >&6; } |
| 3545 | case $ac_cv_target in |
| 3546 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3547 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3548 | esac |
| 3549 | target=$ac_cv_target |
| 3550 | ac_save_IFS=$IFS; IFS='-' |
| 3551 | set x $ac_cv_target |
| 3552 | shift |
| 3553 | target_cpu=$1 |
| 3554 | target_vendor=$2 |
| 3555 | shift; shift |
| 3556 | # Remember, the first character of IFS is used to create $*, |
| 3557 | # except with old shells: |
| 3558 | target_os=$* |
| 3559 | IFS=$ac_save_IFS |
| 3560 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3561 | |
| 3562 | |
| 3563 | # The aliases save the names the user supplied, while $host etc. |
| 3564 | # will get canonicalized. |
| 3565 | test -n "$target_alias" && |
| 3566 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3567 | NONENONEs,x,x, && |
| 3568 | program_prefix=${target_alias}- |
| 3569 | |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3570 | |
| 3571 | |
| 3572 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3573 | MAGICK_TARGET_CPU=$host_cpu |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3574 | |
| 3575 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3576 | MAGICK_TARGET_VENDOR=$host_vendor |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3577 | |
| 3578 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3579 | MAGICK_TARGET_OS=$host_os |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3580 | |
| 3581 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3582 | # Substitute library versioning |
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3583 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` |
| 3584 | |
| 3585 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE |
| 3586 | |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame^] | 3587 | MAGICK_SVN_REVISION=5636 |
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 3588 | |
| 3589 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3590 | |
| 3591 | |
| 3592 | # Ensure that make can run correctly |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3594 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3595 | # Just in case |
| 3596 | sleep 1 |
| 3597 | echo timestamp > conftest.file |
| 3598 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3599 | # name. Accept space and tab only in the latter. |
| 3600 | am_lf=' |
| 3601 | ' |
| 3602 | case `pwd` in |
| 3603 | *[\\\"\#\$\&\'\`$am_lf]*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3604 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3605 | esac |
| 3606 | case $srcdir in |
| 3607 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3608 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3609 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3610 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3611 | # Do `set' in a subshell so we don't clobber the current shell's |
| 3612 | # arguments. Must try -L first in case configure is actually a |
| 3613 | # symlink; some systems play weird games with the mod time of symlinks |
| 3614 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3615 | # directory). |
| 3616 | if ( |
| 3617 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3618 | if test "$*" = "X"; then |
| 3619 | # -L didn't work. |
| 3620 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3621 | fi |
| 3622 | rm -f conftest.file |
| 3623 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3624 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3625 | |
| 3626 | # If neither matched, then we have a broken ls. This can happen |
| 3627 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3628 | # broken ls alias from the environment. This has actually |
| 3629 | # happened. Such a system could not be considered "sane". |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3630 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3631 | alias in your environment" "$LINENO" 5 |
| 3632 | fi |
| 3633 | |
| 3634 | test "$2" = conftest.file |
| 3635 | ) |
| 3636 | then |
| 3637 | # Ok. |
| 3638 | : |
| 3639 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3640 | as_fn_error $? "newly created file is older than distributed files! |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3641 | Check your system clock" "$LINENO" 5 |
| 3642 | fi |
| 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3644 | $as_echo "yes" >&6; } |
| 3645 | |
| 3646 | am__api_version='1.11' |
| 3647 | |
| 3648 | # Find a good install program. We prefer a C program (faster), |
| 3649 | # so one script is as good as another. But avoid the broken or |
| 3650 | # incompatible versions: |
| 3651 | # SysV /etc/install, /usr/sbin/install |
| 3652 | # SunOS /usr/etc/install |
| 3653 | # IRIX /sbin/install |
| 3654 | # AIX /bin/install |
| 3655 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3656 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3657 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3658 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3659 | # OS/2's system install, which has a completely different semantic |
| 3660 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3661 | # Reject install programs that cannot install multiple files. |
| 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3663 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3664 | if test -z "$INSTALL"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3665 | if ${ac_cv_path_install+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3666 | $as_echo_n "(cached) " >&6 |
| 3667 | else |
| 3668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3669 | for as_dir in $PATH |
| 3670 | do |
| 3671 | IFS=$as_save_IFS |
| 3672 | test -z "$as_dir" && as_dir=. |
| 3673 | # Account for people who put trailing slashes in PATH elements. |
| 3674 | case $as_dir/ in #(( |
| 3675 | ./ | .// | /[cC]/* | \ |
| 3676 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3677 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3678 | /usr/ucb/* ) ;; |
| 3679 | *) |
| 3680 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3681 | # Don't use installbsd from OSF since it installs stuff as root |
| 3682 | # by default. |
| 3683 | for ac_prog in ginstall scoinst install; do |
| 3684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3685 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3686 | if test $ac_prog = install && |
| 3687 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3688 | # AIX install. It has an incompatible calling convention. |
| 3689 | : |
| 3690 | elif test $ac_prog = install && |
| 3691 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3692 | # program-specific install script used by HP pwplus--don't use. |
| 3693 | : |
| 3694 | else |
| 3695 | rm -rf conftest.one conftest.two conftest.dir |
| 3696 | echo one > conftest.one |
| 3697 | echo two > conftest.two |
| 3698 | mkdir conftest.dir |
| 3699 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3700 | test -s conftest.one && test -s conftest.two && |
| 3701 | test -s conftest.dir/conftest.one && |
| 3702 | test -s conftest.dir/conftest.two |
| 3703 | then |
| 3704 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3705 | break 3 |
| 3706 | fi |
| 3707 | fi |
| 3708 | fi |
| 3709 | done |
| 3710 | done |
| 3711 | ;; |
| 3712 | esac |
| 3713 | |
| 3714 | done |
| 3715 | IFS=$as_save_IFS |
| 3716 | |
| 3717 | rm -rf conftest.one conftest.two conftest.dir |
| 3718 | |
| 3719 | fi |
| 3720 | if test "${ac_cv_path_install+set}" = set; then |
| 3721 | INSTALL=$ac_cv_path_install |
| 3722 | else |
| 3723 | # As a last resort, use the slow shell script. Don't cache a |
| 3724 | # value for INSTALL within a source directory, because that will |
| 3725 | # break other packages using the cache if that directory is |
| 3726 | # removed, or if the value is a relative name. |
| 3727 | INSTALL=$ac_install_sh |
| 3728 | fi |
| 3729 | fi |
| 3730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3731 | $as_echo "$INSTALL" >&6; } |
| 3732 | |
| 3733 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3734 | # It thinks the first close brace ends the variable substitution. |
| 3735 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3736 | |
| 3737 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3738 | |
| 3739 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3740 | |
| 3741 | test "$program_prefix" != NONE && |
| 3742 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3743 | # Use a double $ so make ignores it. |
| 3744 | test "$program_suffix" != NONE && |
| 3745 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3746 | # Double any \ or $. |
| 3747 | # By default was `s,x,x', remove it if useless. |
| 3748 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3749 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3750 | |
| 3751 | # expand $ac_aux_dir to an absolute path |
| 3752 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3753 | |
| 3754 | if test x"${MISSING+set}" != xset; then |
| 3755 | case $am_aux_dir in |
| 3756 | *\ * | *\ *) |
| 3757 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3758 | *) |
| 3759 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3760 | esac |
| 3761 | fi |
| 3762 | # Use eval to expand $SHELL |
| 3763 | if eval "$MISSING --run true"; then |
| 3764 | am_missing_run="$MISSING --run " |
| 3765 | else |
| 3766 | am_missing_run= |
| 3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 3768 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3769 | fi |
| 3770 | |
| 3771 | if test x"${install_sh}" != xset; then |
| 3772 | case $am_aux_dir in |
| 3773 | *\ * | *\ *) |
| 3774 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3775 | *) |
| 3776 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3777 | esac |
| 3778 | fi |
| 3779 | |
| 3780 | # Installed binaries are usually stripped using `strip' when the user |
| 3781 | # run `make install-strip'. However `strip' might not be the right |
| 3782 | # tool to use in cross-compilation environments, therefore Automake |
| 3783 | # will honor the `STRIP' environment variable to overrule this program. |
| 3784 | if test "$cross_compiling" != no; then |
| 3785 | if test -n "$ac_tool_prefix"; then |
| 3786 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3787 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3789 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3790 | if ${ac_cv_prog_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3791 | $as_echo_n "(cached) " >&6 |
| 3792 | else |
| 3793 | if test -n "$STRIP"; then |
| 3794 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3795 | else |
| 3796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3797 | for as_dir in $PATH |
| 3798 | do |
| 3799 | IFS=$as_save_IFS |
| 3800 | test -z "$as_dir" && as_dir=. |
| 3801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3803 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3805 | break 2 |
| 3806 | fi |
| 3807 | done |
| 3808 | done |
| 3809 | IFS=$as_save_IFS |
| 3810 | |
| 3811 | fi |
| 3812 | fi |
| 3813 | STRIP=$ac_cv_prog_STRIP |
| 3814 | if test -n "$STRIP"; then |
| 3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3816 | $as_echo "$STRIP" >&6; } |
| 3817 | else |
| 3818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3819 | $as_echo "no" >&6; } |
| 3820 | fi |
| 3821 | |
| 3822 | |
| 3823 | fi |
| 3824 | if test -z "$ac_cv_prog_STRIP"; then |
| 3825 | ac_ct_STRIP=$STRIP |
| 3826 | # Extract the first word of "strip", so it can be a program name with args. |
| 3827 | set dummy strip; ac_word=$2 |
| 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3829 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3830 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3831 | $as_echo_n "(cached) " >&6 |
| 3832 | else |
| 3833 | if test -n "$ac_ct_STRIP"; then |
| 3834 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3835 | else |
| 3836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3837 | for as_dir in $PATH |
| 3838 | do |
| 3839 | IFS=$as_save_IFS |
| 3840 | test -z "$as_dir" && as_dir=. |
| 3841 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3843 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3845 | break 2 |
| 3846 | fi |
| 3847 | done |
| 3848 | done |
| 3849 | IFS=$as_save_IFS |
| 3850 | |
| 3851 | fi |
| 3852 | fi |
| 3853 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3854 | if test -n "$ac_ct_STRIP"; then |
| 3855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3856 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3857 | else |
| 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3859 | $as_echo "no" >&6; } |
| 3860 | fi |
| 3861 | |
| 3862 | if test "x$ac_ct_STRIP" = x; then |
| 3863 | STRIP=":" |
| 3864 | else |
| 3865 | case $cross_compiling:$ac_tool_warned in |
| 3866 | yes:) |
| 3867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3868 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3869 | ac_tool_warned=yes ;; |
| 3870 | esac |
| 3871 | STRIP=$ac_ct_STRIP |
| 3872 | fi |
| 3873 | else |
| 3874 | STRIP="$ac_cv_prog_STRIP" |
| 3875 | fi |
| 3876 | |
| 3877 | fi |
| 3878 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3879 | |
| 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3881 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3882 | if test -z "$MKDIR_P"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3883 | if ${ac_cv_path_mkdir+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3884 | $as_echo_n "(cached) " >&6 |
| 3885 | else |
| 3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3887 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3888 | do |
| 3889 | IFS=$as_save_IFS |
| 3890 | test -z "$as_dir" && as_dir=. |
| 3891 | for ac_prog in mkdir gmkdir; do |
| 3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3893 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3894 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3895 | 'mkdir (GNU coreutils) '* | \ |
| 3896 | 'mkdir (coreutils) '* | \ |
| 3897 | 'mkdir (fileutils) '4.1*) |
| 3898 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3899 | break 3;; |
| 3900 | esac |
| 3901 | done |
| 3902 | done |
| 3903 | done |
| 3904 | IFS=$as_save_IFS |
| 3905 | |
| 3906 | fi |
| 3907 | |
| 3908 | test -d ./--version && rmdir ./--version |
| 3909 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3910 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3911 | else |
| 3912 | # As a last resort, use the slow shell script. Don't cache a |
| 3913 | # value for MKDIR_P within a source directory, because that will |
| 3914 | # break other packages using the cache if that directory is |
| 3915 | # removed, or if the value is a relative name. |
| 3916 | MKDIR_P="$ac_install_sh -d" |
| 3917 | fi |
| 3918 | fi |
| 3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3920 | $as_echo "$MKDIR_P" >&6; } |
| 3921 | |
| 3922 | mkdir_p="$MKDIR_P" |
| 3923 | case $mkdir_p in |
| 3924 | [\\/$]* | ?:[\\/]*) ;; |
| 3925 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3926 | esac |
| 3927 | |
| 3928 | for ac_prog in gawk mawk nawk awk |
| 3929 | do |
| 3930 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3931 | set dummy $ac_prog; ac_word=$2 |
| 3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3933 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3934 | if ${ac_cv_prog_AWK+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3935 | $as_echo_n "(cached) " >&6 |
| 3936 | else |
| 3937 | if test -n "$AWK"; then |
| 3938 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3939 | else |
| 3940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3941 | for as_dir in $PATH |
| 3942 | do |
| 3943 | IFS=$as_save_IFS |
| 3944 | test -z "$as_dir" && as_dir=. |
| 3945 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3946 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3947 | ac_cv_prog_AWK="$ac_prog" |
| 3948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3949 | break 2 |
| 3950 | fi |
| 3951 | done |
| 3952 | done |
| 3953 | IFS=$as_save_IFS |
| 3954 | |
| 3955 | fi |
| 3956 | fi |
| 3957 | AWK=$ac_cv_prog_AWK |
| 3958 | if test -n "$AWK"; then |
| 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3960 | $as_echo "$AWK" >&6; } |
| 3961 | else |
| 3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3963 | $as_echo "no" >&6; } |
| 3964 | fi |
| 3965 | |
| 3966 | |
| 3967 | test -n "$AWK" && break |
| 3968 | done |
| 3969 | |
| 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3971 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3972 | set x ${MAKE-make} |
| 3973 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3974 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3975 | $as_echo_n "(cached) " >&6 |
| 3976 | else |
| 3977 | cat >conftest.make <<\_ACEOF |
| 3978 | SHELL = /bin/sh |
| 3979 | all: |
| 3980 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3981 | _ACEOF |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3982 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3983 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3984 | *@@@%%%=?*=@@@%%%*) |
| 3985 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3986 | *) |
| 3987 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3988 | esac |
| 3989 | rm -f conftest.make |
| 3990 | fi |
| 3991 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3993 | $as_echo "yes" >&6; } |
| 3994 | SET_MAKE= |
| 3995 | else |
| 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3997 | $as_echo "no" >&6; } |
| 3998 | SET_MAKE="MAKE=${MAKE-make}" |
| 3999 | fi |
| 4000 | |
| 4001 | rm -rf .tst 2>/dev/null |
| 4002 | mkdir .tst 2>/dev/null |
| 4003 | if test -d .tst; then |
| 4004 | am__leading_dot=. |
| 4005 | else |
| 4006 | am__leading_dot=_ |
| 4007 | fi |
| 4008 | rmdir .tst 2>/dev/null |
| 4009 | |
| 4010 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 4011 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 4012 | # is not polluted with repeated "-I." |
| 4013 | am__isrc=' -I$(srcdir)' |
| 4014 | # test to see if srcdir already configured |
| 4015 | if test -f $srcdir/config.status; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4016 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4017 | fi |
| 4018 | fi |
| 4019 | |
| 4020 | # test whether we have cygpath |
| 4021 | if test -z "$CYGPATH_W"; then |
| 4022 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 4023 | CYGPATH_W='cygpath -w' |
| 4024 | else |
| 4025 | CYGPATH_W=echo |
| 4026 | fi |
| 4027 | fi |
| 4028 | |
| 4029 | |
| 4030 | # Define the identity of the package. |
| 4031 | PACKAGE=$PACKAGE_NAME |
| 4032 | VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" |
| 4033 | |
| 4034 | |
| 4035 | # Some tools Automake needs. |
| 4036 | |
| 4037 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4038 | |
| 4039 | |
| 4040 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4041 | |
| 4042 | |
| 4043 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4044 | |
| 4045 | |
| 4046 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4047 | |
| 4048 | |
| 4049 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4050 | |
| 4051 | # We need awk for the "check" target. The system "awk" is bad on |
| 4052 | # some platforms. |
| 4053 | # Always define AMTAR for backward compatibility. |
| 4054 | |
| 4055 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 4056 | |
| 4057 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 4058 | |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4063 | |
| 4064 | # Enable support for silent build rules |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4065 | # Check whether --enable-silent-rules was given. |
| 4066 | if test "${enable_silent_rules+set}" = set; then : |
| 4067 | enableval=$enable_silent_rules; |
| 4068 | fi |
| 4069 | |
| 4070 | case $enable_silent_rules in |
| 4071 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 4072 | no) AM_DEFAULT_VERBOSITY=1;; |
| 4073 | *) AM_DEFAULT_VERBOSITY=0;; |
| 4074 | esac |
| 4075 | AM_BACKSLASH='\' |
| 4076 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4077 | |
| 4078 | MAGICK_LIB_VERSION="0x" |
| 4079 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 4080 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4081 | fi |
| 4082 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 4083 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 4084 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4085 | fi |
| 4086 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 4087 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 4088 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4089 | fi |
| 4090 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 4091 | |
| 4092 | |
| 4093 | # Definition used to define MagickLibVersionText in version.h |
| 4094 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 4095 | |
| 4096 | |
| 4097 | # Definition used to define MagickLibVersionNumber in version.h |
| 4098 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 4099 | |
| 4100 | |
| 4101 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 4102 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 4103 | |
| 4104 | |
| 4105 | PERLMAINCC=$CC |
| 4106 | |
| 4107 | MAGICK_CFLAGS='' |
| 4108 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 4109 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 4110 | MAGICK_LDFLAGS='' |
| 4111 | MAGICK_LIBS='' |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 4112 | MAGICK_FEATURES='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4113 | |
| 4114 | # |
| 4115 | # Evaluate shell variable equivalents to Makefile directory variables |
| 4116 | # |
| 4117 | if test "x$prefix" = xNONE; then |
| 4118 | prefix=$ac_default_prefix |
| 4119 | fi |
| 4120 | # Let make expand exec_prefix. |
| 4121 | if test "x$exec_prefix" = xNONE; then |
| 4122 | exec_prefix='${prefix}' |
| 4123 | fi |
| 4124 | |
| 4125 | # |
| 4126 | eval "eval PREFIX_DIR=${prefix}" |
| 4127 | |
| 4128 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 4129 | |
| 4130 | eval "eval BIN_DIR=$bindir" |
| 4131 | |
| 4132 | eval "eval SBIN_DIR=$sbindir" |
| 4133 | |
| 4134 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 4135 | |
| 4136 | eval "eval DATA_DIR=$datadir" |
| 4137 | |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 4138 | eval "eval DOC_DIR=$docdir" |
| 4139 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4140 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 4141 | |
| 4142 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 4143 | |
| 4144 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 4145 | |
| 4146 | eval "eval LIB_DIR=$libdir" |
| 4147 | |
| 4148 | eval "eval INCLUDE_DIR=$includedir" |
| 4149 | |
| 4150 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 4151 | |
| 4152 | eval "eval INFO_DIR=$infodir" |
| 4153 | |
| 4154 | eval "eval MAN_DIR=$mandir" |
| 4155 | |
| 4156 | |
| 4157 | # Get full paths to source and build directories |
| 4158 | srcdirfull="`cd $srcdir && pwd`" |
| 4159 | builddir="`pwd`" |
| 4160 | |
| 4161 | # |
| 4162 | # Compute variables useful for running uninstalled software. |
| 4163 | # |
| 4164 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 4165 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 4166 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 4167 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 4168 | DIRSEP=':' |
| 4169 | case "${build_os}" in |
| 4170 | mingw* ) |
| 4171 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 4172 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 4173 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 4174 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 4175 | DIRSEP=';' |
| 4176 | ;; |
| 4177 | esac |
| 4178 | case "${host_os}" in |
| 4179 | mingw* ) |
| 4180 | DIRSEP=';' |
| 4181 | ;; |
| 4182 | esac |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
| 4188 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4189 | |
| 4190 | # |
| 4191 | # Enable OS features. |
| 4192 | # |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4193 | DEPDIR="${am__leading_dot}deps" |
| 4194 | |
| 4195 | ac_config_commands="$ac_config_commands depfiles" |
| 4196 | |
| 4197 | |
| 4198 | am_make=${MAKE-make} |
| 4199 | cat > confinc << 'END' |
| 4200 | am__doit: |
| 4201 | @echo this is the am__doit target |
| 4202 | .PHONY: am__doit |
| 4203 | END |
| 4204 | # If we don't find an include directive, just comment out the code. |
| 4205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4206 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4207 | am__include="#" |
| 4208 | am__quote= |
| 4209 | _am_result=none |
| 4210 | # First try GNU make style include. |
| 4211 | echo "include confinc" > confmf |
| 4212 | # Ignore all kinds of additional output from `make'. |
| 4213 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4214 | *the\ am__doit\ target*) |
| 4215 | am__include=include |
| 4216 | am__quote= |
| 4217 | _am_result=GNU |
| 4218 | ;; |
| 4219 | esac |
| 4220 | # Now try BSD make style include. |
| 4221 | if test "$am__include" = "#"; then |
| 4222 | echo '.include "confinc"' > confmf |
| 4223 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4224 | *the\ am__doit\ target*) |
| 4225 | am__include=.include |
| 4226 | am__quote="\"" |
| 4227 | _am_result=BSD |
| 4228 | ;; |
| 4229 | esac |
| 4230 | fi |
| 4231 | |
| 4232 | |
| 4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4234 | $as_echo "$_am_result" >&6; } |
| 4235 | rm -f confinc confmf |
| 4236 | |
| 4237 | # Check whether --enable-dependency-tracking was given. |
| 4238 | if test "${enable_dependency_tracking+set}" = set; then : |
| 4239 | enableval=$enable_dependency_tracking; |
| 4240 | fi |
| 4241 | |
| 4242 | if test "x$enable_dependency_tracking" != xno; then |
| 4243 | am_depcomp="$ac_aux_dir/depcomp" |
| 4244 | AMDEPBACKSLASH='\' |
| 4245 | fi |
| 4246 | if test "x$enable_dependency_tracking" != xno; then |
| 4247 | AMDEP_TRUE= |
| 4248 | AMDEP_FALSE='#' |
| 4249 | else |
| 4250 | AMDEP_TRUE='#' |
| 4251 | AMDEP_FALSE= |
| 4252 | fi |
| 4253 | |
| 4254 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4255 | ac_ext=c |
| 4256 | ac_cpp='$CPP $CPPFLAGS' |
| 4257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4260 | if test -n "$ac_tool_prefix"; then |
| 4261 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4262 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4264 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4265 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4266 | $as_echo_n "(cached) " >&6 |
| 4267 | else |
| 4268 | if test -n "$CC"; then |
| 4269 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4270 | else |
| 4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4272 | for as_dir in $PATH |
| 4273 | do |
| 4274 | IFS=$as_save_IFS |
| 4275 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4276 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4278 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4280 | break 2 |
| 4281 | fi |
| 4282 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4283 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4284 | IFS=$as_save_IFS |
| 4285 | |
| 4286 | fi |
| 4287 | fi |
| 4288 | CC=$ac_cv_prog_CC |
| 4289 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4291 | $as_echo "$CC" >&6; } |
| 4292 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4294 | $as_echo "no" >&6; } |
| 4295 | fi |
| 4296 | |
| 4297 | |
| 4298 | fi |
| 4299 | if test -z "$ac_cv_prog_CC"; then |
| 4300 | ac_ct_CC=$CC |
| 4301 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4302 | set dummy gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4304 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4305 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4306 | $as_echo_n "(cached) " >&6 |
| 4307 | else |
| 4308 | if test -n "$ac_ct_CC"; then |
| 4309 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4310 | else |
| 4311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4312 | for as_dir in $PATH |
| 4313 | do |
| 4314 | IFS=$as_save_IFS |
| 4315 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4318 | ac_cv_prog_ac_ct_CC="gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4320 | break 2 |
| 4321 | fi |
| 4322 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4323 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4324 | IFS=$as_save_IFS |
| 4325 | |
| 4326 | fi |
| 4327 | fi |
| 4328 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4329 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4331 | $as_echo "$ac_ct_CC" >&6; } |
| 4332 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4334 | $as_echo "no" >&6; } |
| 4335 | fi |
| 4336 | |
| 4337 | if test "x$ac_ct_CC" = x; then |
| 4338 | CC="" |
| 4339 | else |
| 4340 | case $cross_compiling:$ac_tool_warned in |
| 4341 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4343 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4344 | ac_tool_warned=yes ;; |
| 4345 | esac |
| 4346 | CC=$ac_ct_CC |
| 4347 | fi |
| 4348 | else |
| 4349 | CC="$ac_cv_prog_CC" |
| 4350 | fi |
| 4351 | |
| 4352 | if test -z "$CC"; then |
| 4353 | if test -n "$ac_tool_prefix"; then |
| 4354 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4355 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4357 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4358 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4359 | $as_echo_n "(cached) " >&6 |
| 4360 | else |
| 4361 | if test -n "$CC"; then |
| 4362 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4363 | else |
| 4364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4365 | for as_dir in $PATH |
| 4366 | do |
| 4367 | IFS=$as_save_IFS |
| 4368 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4369 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4371 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4372 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4373 | break 2 |
| 4374 | fi |
| 4375 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4376 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4377 | IFS=$as_save_IFS |
| 4378 | |
| 4379 | fi |
| 4380 | fi |
| 4381 | CC=$ac_cv_prog_CC |
| 4382 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4384 | $as_echo "$CC" >&6; } |
| 4385 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4387 | $as_echo "no" >&6; } |
| 4388 | fi |
| 4389 | |
| 4390 | |
| 4391 | fi |
| 4392 | fi |
| 4393 | if test -z "$CC"; then |
| 4394 | # Extract the first word of "cc", so it can be a program name with args. |
| 4395 | set dummy cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4397 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4398 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4399 | $as_echo_n "(cached) " >&6 |
| 4400 | else |
| 4401 | if test -n "$CC"; then |
| 4402 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4403 | else |
| 4404 | ac_prog_rejected=no |
| 4405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4406 | for as_dir in $PATH |
| 4407 | do |
| 4408 | IFS=$as_save_IFS |
| 4409 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4410 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4412 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4413 | ac_prog_rejected=yes |
| 4414 | continue |
| 4415 | fi |
| 4416 | ac_cv_prog_CC="cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4418 | break 2 |
| 4419 | fi |
| 4420 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4421 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4422 | IFS=$as_save_IFS |
| 4423 | |
| 4424 | if test $ac_prog_rejected = yes; then |
| 4425 | # We found a bogon in the path, so make sure we never use it. |
| 4426 | set dummy $ac_cv_prog_CC |
| 4427 | shift |
| 4428 | if test $# != 0; then |
| 4429 | # We chose a different compiler from the bogus one. |
| 4430 | # However, it has the same basename, so the bogon will be chosen |
| 4431 | # first if we set CC to just the basename; use the full file name. |
| 4432 | shift |
| 4433 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4434 | fi |
| 4435 | fi |
| 4436 | fi |
| 4437 | fi |
| 4438 | CC=$ac_cv_prog_CC |
| 4439 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4441 | $as_echo "$CC" >&6; } |
| 4442 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4444 | $as_echo "no" >&6; } |
| 4445 | fi |
| 4446 | |
| 4447 | |
| 4448 | fi |
| 4449 | if test -z "$CC"; then |
| 4450 | if test -n "$ac_tool_prefix"; then |
| 4451 | for ac_prog in cl.exe |
| 4452 | do |
| 4453 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4454 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4456 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4457 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4458 | $as_echo_n "(cached) " >&6 |
| 4459 | else |
| 4460 | if test -n "$CC"; then |
| 4461 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4462 | else |
| 4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4464 | for as_dir in $PATH |
| 4465 | do |
| 4466 | IFS=$as_save_IFS |
| 4467 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4470 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4472 | break 2 |
| 4473 | fi |
| 4474 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4475 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4476 | IFS=$as_save_IFS |
| 4477 | |
| 4478 | fi |
| 4479 | fi |
| 4480 | CC=$ac_cv_prog_CC |
| 4481 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4483 | $as_echo "$CC" >&6; } |
| 4484 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4486 | $as_echo "no" >&6; } |
| 4487 | fi |
| 4488 | |
| 4489 | |
| 4490 | test -n "$CC" && break |
| 4491 | done |
| 4492 | fi |
| 4493 | if test -z "$CC"; then |
| 4494 | ac_ct_CC=$CC |
| 4495 | for ac_prog in cl.exe |
| 4496 | do |
| 4497 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4498 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4500 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4501 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4502 | $as_echo_n "(cached) " >&6 |
| 4503 | else |
| 4504 | if test -n "$ac_ct_CC"; then |
| 4505 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4506 | else |
| 4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4508 | for as_dir in $PATH |
| 4509 | do |
| 4510 | IFS=$as_save_IFS |
| 4511 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4514 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4516 | break 2 |
| 4517 | fi |
| 4518 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4519 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4520 | IFS=$as_save_IFS |
| 4521 | |
| 4522 | fi |
| 4523 | fi |
| 4524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4525 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4527 | $as_echo "$ac_ct_CC" >&6; } |
| 4528 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4530 | $as_echo "no" >&6; } |
| 4531 | fi |
| 4532 | |
| 4533 | |
| 4534 | test -n "$ac_ct_CC" && break |
| 4535 | done |
| 4536 | |
| 4537 | if test "x$ac_ct_CC" = x; then |
| 4538 | CC="" |
| 4539 | else |
| 4540 | case $cross_compiling:$ac_tool_warned in |
| 4541 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4543 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4544 | ac_tool_warned=yes ;; |
| 4545 | esac |
| 4546 | CC=$ac_ct_CC |
| 4547 | fi |
| 4548 | fi |
| 4549 | |
| 4550 | fi |
| 4551 | |
| 4552 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4553 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4554 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4555 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4556 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4557 | |
| 4558 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4559 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4560 | set X $ac_compile |
| 4561 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4562 | for ac_option in --version -v -V -qversion; do |
| 4563 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4564 | case "(($ac_try" in |
| 4565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4566 | *) ac_try_echo=$ac_try;; |
| 4567 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4568 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4569 | $as_echo "$ac_try_echo"; } >&5 |
| 4570 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4571 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4572 | if test -s conftest.err; then |
| 4573 | sed '10a\ |
| 4574 | ... rest of stderr output deleted ... |
| 4575 | 10q' conftest.err >conftest.er1 |
| 4576 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4577 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4578 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4580 | test $ac_status = 0; } |
| 4581 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4582 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4584 | /* end confdefs.h. */ |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4585 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4586 | int |
| 4587 | main () |
| 4588 | { |
| 4589 | |
| 4590 | ; |
| 4591 | return 0; |
| 4592 | } |
| 4593 | _ACEOF |
| 4594 | ac_clean_files_save=$ac_clean_files |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4595 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4596 | # Try to create an executable without -o first, disregard a.out. |
| 4597 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4598 | # of exeext. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4600 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4601 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4602 | |
| 4603 | # The possible output files: |
| 4604 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4605 | |
| 4606 | ac_rmfiles= |
| 4607 | for ac_file in $ac_files |
| 4608 | do |
| 4609 | case $ac_file in |
| 4610 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4611 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4612 | esac |
| 4613 | done |
| 4614 | rm -f $ac_rmfiles |
| 4615 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4616 | if { { ac_try="$ac_link_default" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4617 | case "(($ac_try" in |
| 4618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4619 | *) ac_try_echo=$ac_try;; |
| 4620 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4622 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4623 | (eval "$ac_link_default") 2>&5 |
| 4624 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4626 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4627 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4628 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4629 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4630 | # so that the user can short-circuit this test for compilers unknown to |
| 4631 | # Autoconf. |
| 4632 | for ac_file in $ac_files '' |
| 4633 | do |
| 4634 | test -f "$ac_file" || continue |
| 4635 | case $ac_file in |
| 4636 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4637 | ;; |
| 4638 | [ab].out ) |
| 4639 | # We found the default executable, but exeext='' is most |
| 4640 | # certainly right. |
| 4641 | break;; |
| 4642 | *.* ) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4643 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4644 | then :; else |
| 4645 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4646 | fi |
| 4647 | # We set ac_cv_exeext here because the later test for it is not |
| 4648 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4649 | # argument, so we may need to know it at that point already. |
| 4650 | # Even if this section looks crufty: it has the advantage of |
| 4651 | # actually working. |
| 4652 | break;; |
| 4653 | * ) |
| 4654 | break;; |
| 4655 | esac |
| 4656 | done |
| 4657 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4658 | |
| 4659 | else |
| 4660 | ac_file='' |
| 4661 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4662 | if test -z "$ac_file"; then : |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4664 | $as_echo "no" >&6; } |
| 4665 | $as_echo "$as_me: failed program was:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4667 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4668 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4670 | as_fn_error 77 "C compiler cannot create executables |
| 4671 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4672 | else |
| 4673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4674 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4675 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4677 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4679 | $as_echo "$ac_file" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4680 | ac_exeext=$ac_cv_exeext |
| 4681 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4682 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4683 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4685 | $as_echo_n "checking for suffix of executables... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4686 | if { { ac_try="$ac_link" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4687 | case "(($ac_try" in |
| 4688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4689 | *) ac_try_echo=$ac_try;; |
| 4690 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4692 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4693 | (eval "$ac_link") 2>&5 |
| 4694 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4696 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4697 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4698 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4699 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4700 | # `rm'. |
| 4701 | for ac_file in conftest.exe conftest conftest.*; do |
| 4702 | test -f "$ac_file" || continue |
| 4703 | case $ac_file in |
| 4704 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4705 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4706 | break;; |
| 4707 | * ) break;; |
| 4708 | esac |
| 4709 | done |
| 4710 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4711 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4712 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4713 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4714 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4715 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4716 | rm -f conftest conftest$ac_cv_exeext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4718 | $as_echo "$ac_cv_exeext" >&6; } |
| 4719 | |
| 4720 | rm -f conftest.$ac_ext |
| 4721 | EXEEXT=$ac_cv_exeext |
| 4722 | ac_exeext=$EXEEXT |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4724 | /* end confdefs.h. */ |
| 4725 | #include <stdio.h> |
| 4726 | int |
| 4727 | main () |
| 4728 | { |
| 4729 | FILE *f = fopen ("conftest.out", "w"); |
| 4730 | return ferror (f) || fclose (f) != 0; |
| 4731 | |
| 4732 | ; |
| 4733 | return 0; |
| 4734 | } |
| 4735 | _ACEOF |
| 4736 | ac_clean_files="$ac_clean_files conftest.out" |
| 4737 | # Check that the compiler produces executables we can run. If not, either |
| 4738 | # the compiler is broken, or we cross compile. |
| 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4740 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4741 | if test "$cross_compiling" != yes; then |
| 4742 | { { ac_try="$ac_link" |
| 4743 | case "(($ac_try" in |
| 4744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4745 | *) ac_try_echo=$ac_try;; |
| 4746 | esac |
| 4747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4748 | $as_echo "$ac_try_echo"; } >&5 |
| 4749 | (eval "$ac_link") 2>&5 |
| 4750 | ac_status=$? |
| 4751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4752 | test $ac_status = 0; } |
| 4753 | if { ac_try='./conftest$ac_cv_exeext' |
| 4754 | { { case "(($ac_try" in |
| 4755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4756 | *) ac_try_echo=$ac_try;; |
| 4757 | esac |
| 4758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4759 | $as_echo "$ac_try_echo"; } >&5 |
| 4760 | (eval "$ac_try") 2>&5 |
| 4761 | ac_status=$? |
| 4762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4763 | test $ac_status = 0; }; }; then |
| 4764 | cross_compiling=no |
| 4765 | else |
| 4766 | if test "$cross_compiling" = maybe; then |
| 4767 | cross_compiling=yes |
| 4768 | else |
| 4769 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4770 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4771 | as_fn_error $? "cannot run C compiled programs. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4772 | If you meant to cross compile, use \`--host'. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4773 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4774 | fi |
| 4775 | fi |
| 4776 | fi |
| 4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4778 | $as_echo "$cross_compiling" >&6; } |
| 4779 | |
| 4780 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4781 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4783 | $as_echo_n "checking for suffix of object files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4784 | if ${ac_cv_objext+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4785 | $as_echo_n "(cached) " >&6 |
| 4786 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4788 | /* end confdefs.h. */ |
| 4789 | |
| 4790 | int |
| 4791 | main () |
| 4792 | { |
| 4793 | |
| 4794 | ; |
| 4795 | return 0; |
| 4796 | } |
| 4797 | _ACEOF |
| 4798 | rm -f conftest.o conftest.obj |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4799 | if { { ac_try="$ac_compile" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4800 | case "(($ac_try" in |
| 4801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4802 | *) ac_try_echo=$ac_try;; |
| 4803 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4805 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4806 | (eval "$ac_compile") 2>&5 |
| 4807 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4808 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4809 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4810 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4811 | test -f "$ac_file" || continue; |
| 4812 | case $ac_file in |
| 4813 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4814 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4815 | break;; |
| 4816 | esac |
| 4817 | done |
| 4818 | else |
| 4819 | $as_echo "$as_me: failed program was:" >&5 |
| 4820 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4821 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4822 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4823 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4824 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 4825 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4826 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4827 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4828 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4830 | $as_echo "$ac_cv_objext" >&6; } |
| 4831 | OBJEXT=$ac_cv_objext |
| 4832 | ac_objext=$OBJEXT |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4834 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4835 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4836 | $as_echo_n "(cached) " >&6 |
| 4837 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4839 | /* end confdefs.h. */ |
| 4840 | |
| 4841 | int |
| 4842 | main () |
| 4843 | { |
| 4844 | #ifndef __GNUC__ |
| 4845 | choke me |
| 4846 | #endif |
| 4847 | |
| 4848 | ; |
| 4849 | return 0; |
| 4850 | } |
| 4851 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4852 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4853 | ac_compiler_gnu=yes |
| 4854 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4855 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4856 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4858 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4859 | |
| 4860 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4862 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4863 | if test $ac_compiler_gnu = yes; then |
| 4864 | GCC=yes |
| 4865 | else |
| 4866 | GCC= |
| 4867 | fi |
| 4868 | ac_test_CFLAGS=${CFLAGS+set} |
| 4869 | ac_save_CFLAGS=$CFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4871 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4872 | if ${ac_cv_prog_cc_g+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4873 | $as_echo_n "(cached) " >&6 |
| 4874 | else |
| 4875 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4876 | ac_c_werror_flag=yes |
| 4877 | ac_cv_prog_cc_g=no |
| 4878 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4880 | /* end confdefs.h. */ |
| 4881 | |
| 4882 | int |
| 4883 | main () |
| 4884 | { |
| 4885 | |
| 4886 | ; |
| 4887 | return 0; |
| 4888 | } |
| 4889 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4890 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4891 | ac_cv_prog_cc_g=yes |
| 4892 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4893 | CFLAGS="" |
| 4894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4895 | /* end confdefs.h. */ |
| 4896 | |
| 4897 | int |
| 4898 | main () |
| 4899 | { |
| 4900 | |
| 4901 | ; |
| 4902 | return 0; |
| 4903 | } |
| 4904 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4905 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4906 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4907 | else |
| 4908 | ac_c_werror_flag=$ac_save_c_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4909 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4911 | /* end confdefs.h. */ |
| 4912 | |
| 4913 | int |
| 4914 | main () |
| 4915 | { |
| 4916 | |
| 4917 | ; |
| 4918 | return 0; |
| 4919 | } |
| 4920 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4921 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4922 | ac_cv_prog_cc_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4923 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4925 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4927 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4929 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4930 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4932 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4933 | if test "$ac_test_CFLAGS" = set; then |
| 4934 | CFLAGS=$ac_save_CFLAGS |
| 4935 | elif test $ac_cv_prog_cc_g = yes; then |
| 4936 | if test "$GCC" = yes; then |
| 4937 | CFLAGS="-g -O2" |
| 4938 | else |
| 4939 | CFLAGS="-g" |
| 4940 | fi |
| 4941 | else |
| 4942 | if test "$GCC" = yes; then |
| 4943 | CFLAGS="-O2" |
| 4944 | else |
| 4945 | CFLAGS= |
| 4946 | fi |
| 4947 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4949 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4950 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4951 | $as_echo_n "(cached) " >&6 |
| 4952 | else |
| 4953 | ac_cv_prog_cc_c89=no |
| 4954 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4956 | /* end confdefs.h. */ |
| 4957 | #include <stdarg.h> |
| 4958 | #include <stdio.h> |
| 4959 | #include <sys/types.h> |
| 4960 | #include <sys/stat.h> |
| 4961 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4962 | struct buf { int x; }; |
| 4963 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4964 | static char *e (p, i) |
| 4965 | char **p; |
| 4966 | int i; |
| 4967 | { |
| 4968 | return p[i]; |
| 4969 | } |
| 4970 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4971 | { |
| 4972 | char *s; |
| 4973 | va_list v; |
| 4974 | va_start (v,p); |
| 4975 | s = g (p, va_arg (v,int)); |
| 4976 | va_end (v); |
| 4977 | return s; |
| 4978 | } |
| 4979 | |
| 4980 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4981 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4982 | These don't provoke an error unfortunately, instead are silently treated |
| 4983 | as 'x'. The following induces an error, until -std is added to get |
| 4984 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4985 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4986 | that's true only with -std. */ |
| 4987 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4988 | |
| 4989 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4990 | inside strings and character constants. */ |
| 4991 | #define FOO(x) 'x' |
| 4992 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4993 | |
| 4994 | int test (int i, double x); |
| 4995 | struct s1 {int (*f) (int a);}; |
| 4996 | struct s2 {int (*f) (double a);}; |
| 4997 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4998 | int argc; |
| 4999 | char **argv; |
| 5000 | int |
| 5001 | main () |
| 5002 | { |
| 5003 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5004 | ; |
| 5005 | return 0; |
| 5006 | } |
| 5007 | _ACEOF |
| 5008 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5009 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5010 | do |
| 5011 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5012 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5013 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5014 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5015 | rm -f core conftest.err conftest.$ac_objext |
| 5016 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5017 | done |
| 5018 | rm -f conftest.$ac_ext |
| 5019 | CC=$ac_save_CC |
| 5020 | |
| 5021 | fi |
| 5022 | # AC_CACHE_VAL |
| 5023 | case "x$ac_cv_prog_cc_c89" in |
| 5024 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5026 | $as_echo "none needed" >&6; } ;; |
| 5027 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5029 | $as_echo "unsupported" >&6; } ;; |
| 5030 | *) |
| 5031 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5033 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5034 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5035 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5036 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5037 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5038 | |
| 5039 | ac_ext=c |
| 5040 | ac_cpp='$CPP $CPPFLAGS' |
| 5041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5044 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5045 | depcc="$CC" am_compiler_list= |
| 5046 | |
| 5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5048 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5049 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5050 | $as_echo_n "(cached) " >&6 |
| 5051 | else |
| 5052 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5053 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5054 | # making bogus files that we don't know about and never remove. For |
| 5055 | # instance it was reported that on HP-UX the gcc test will end up |
| 5056 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5057 | # in D'. |
| 5058 | mkdir conftest.dir |
| 5059 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5060 | # using a relative directory. |
| 5061 | cp "$am_depcomp" conftest.dir |
| 5062 | cd conftest.dir |
| 5063 | # We will build objects and dependencies in a subdirectory because |
| 5064 | # it helps to detect inapplicable dependency modes. For instance |
| 5065 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5066 | # side effect of compilation, but ICC will put the dependencies in |
| 5067 | # the current directory while Tru64 will put them in the object |
| 5068 | # directory. |
| 5069 | mkdir sub |
| 5070 | |
| 5071 | am_cv_CC_dependencies_compiler_type=none |
| 5072 | if test "$am_compiler_list" = ""; then |
| 5073 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5074 | fi |
| 5075 | am__universal=false |
| 5076 | case " $depcc " in #( |
| 5077 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5078 | esac |
| 5079 | |
| 5080 | for depmode in $am_compiler_list; do |
| 5081 | # Setup a source with many dependencies, because some compilers |
| 5082 | # like to wrap large dependency lists on column 80 (with \), and |
| 5083 | # we should not choose a depcomp mode which is confused by this. |
| 5084 | # |
| 5085 | # We need to recreate these files for each test, as the compiler may |
| 5086 | # overwrite some of them when testing with obscure command lines. |
| 5087 | # This happens at least with the AIX C compiler. |
| 5088 | : > sub/conftest.c |
| 5089 | for i in 1 2 3 4 5 6; do |
| 5090 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5091 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5092 | # Solaris 8's {/usr,}/bin/sh. |
| 5093 | touch sub/conftst$i.h |
| 5094 | done |
| 5095 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5096 | |
| 5097 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5098 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5099 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5100 | # versions had trouble with output in subdirs |
| 5101 | am__obj=sub/conftest.${OBJEXT-o} |
| 5102 | am__minus_obj="-o $am__obj" |
| 5103 | case $depmode in |
| 5104 | gcc) |
| 5105 | # This depmode causes a compiler race in universal mode. |
| 5106 | test "$am__universal" = false || continue |
| 5107 | ;; |
| 5108 | nosideeffect) |
| 5109 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5110 | # only be used when explicitly requested |
| 5111 | if test "x$enable_dependency_tracking" = xyes; then |
| 5112 | continue |
| 5113 | else |
| 5114 | break |
| 5115 | fi |
| 5116 | ;; |
| 5117 | msvisualcpp | msvcmsys) |
| 5118 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5119 | # not run yet. These depmodes are late enough in the game, and |
| 5120 | # so weak that their functioning should not be impacted. |
| 5121 | am__obj=conftest.${OBJEXT-o} |
| 5122 | am__minus_obj= |
| 5123 | ;; |
| 5124 | none) break ;; |
| 5125 | esac |
| 5126 | if depmode=$depmode \ |
| 5127 | source=sub/conftest.c object=$am__obj \ |
| 5128 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5129 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5130 | >/dev/null 2>conftest.err && |
| 5131 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5132 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5133 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5134 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5135 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5136 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5137 | # that says an option was ignored or not supported. |
| 5138 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5139 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5140 | # The diagnosis changed in icc 8.0: |
| 5141 | # icc: Command line remark: option '-MP' not supported |
| 5142 | if (grep 'ignoring option' conftest.err || |
| 5143 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5144 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5145 | break |
| 5146 | fi |
| 5147 | fi |
| 5148 | done |
| 5149 | |
| 5150 | cd .. |
| 5151 | rm -rf conftest.dir |
| 5152 | else |
| 5153 | am_cv_CC_dependencies_compiler_type=none |
| 5154 | fi |
| 5155 | |
| 5156 | fi |
| 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5158 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5159 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5160 | |
| 5161 | if |
| 5162 | test "x$enable_dependency_tracking" != xno \ |
| 5163 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5164 | am__fastdepCC_TRUE= |
| 5165 | am__fastdepCC_FALSE='#' |
| 5166 | else |
| 5167 | am__fastdepCC_TRUE='#' |
| 5168 | am__fastdepCC_FALSE= |
| 5169 | fi |
| 5170 | |
| 5171 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5172 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5173 | ac_ext=c |
| 5174 | ac_cpp='$CPP $CPPFLAGS' |
| 5175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5179 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5180 | # On Suns, sometimes $CPP names a directory. |
| 5181 | if test -n "$CPP" && test -d "$CPP"; then |
| 5182 | CPP= |
| 5183 | fi |
| 5184 | if test -z "$CPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5185 | if ${ac_cv_prog_CPP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5186 | $as_echo_n "(cached) " >&6 |
| 5187 | else |
| 5188 | # Double quotes because CPP needs to be expanded |
| 5189 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5190 | do |
| 5191 | ac_preproc_ok=false |
| 5192 | for ac_c_preproc_warn_flag in '' yes |
| 5193 | do |
| 5194 | # Use a header file that comes with gcc, so configuring glibc |
| 5195 | # with a fresh cross-compiler works. |
| 5196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5197 | # <limits.h> exists even on freestanding compilers. |
| 5198 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5199 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5201 | /* end confdefs.h. */ |
| 5202 | #ifdef __STDC__ |
| 5203 | # include <limits.h> |
| 5204 | #else |
| 5205 | # include <assert.h> |
| 5206 | #endif |
| 5207 | Syntax error |
| 5208 | _ACEOF |
| 5209 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5210 | |
| 5211 | else |
| 5212 | # Broken: fails on valid input. |
| 5213 | continue |
| 5214 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5215 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5216 | |
| 5217 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5218 | # can be detected and how. |
| 5219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5220 | /* end confdefs.h. */ |
| 5221 | #include <ac_nonexistent.h> |
| 5222 | _ACEOF |
| 5223 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5224 | # Broken: success on invalid input. |
| 5225 | continue |
| 5226 | else |
| 5227 | # Passes both tests. |
| 5228 | ac_preproc_ok=: |
| 5229 | break |
| 5230 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5231 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5232 | |
| 5233 | done |
| 5234 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5235 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5236 | if $ac_preproc_ok; then : |
| 5237 | break |
| 5238 | fi |
| 5239 | |
| 5240 | done |
| 5241 | ac_cv_prog_CPP=$CPP |
| 5242 | |
| 5243 | fi |
| 5244 | CPP=$ac_cv_prog_CPP |
| 5245 | else |
| 5246 | ac_cv_prog_CPP=$CPP |
| 5247 | fi |
| 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5249 | $as_echo "$CPP" >&6; } |
| 5250 | ac_preproc_ok=false |
| 5251 | for ac_c_preproc_warn_flag in '' yes |
| 5252 | do |
| 5253 | # Use a header file that comes with gcc, so configuring glibc |
| 5254 | # with a fresh cross-compiler works. |
| 5255 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5256 | # <limits.h> exists even on freestanding compilers. |
| 5257 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5258 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5260 | /* end confdefs.h. */ |
| 5261 | #ifdef __STDC__ |
| 5262 | # include <limits.h> |
| 5263 | #else |
| 5264 | # include <assert.h> |
| 5265 | #endif |
| 5266 | Syntax error |
| 5267 | _ACEOF |
| 5268 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5269 | |
| 5270 | else |
| 5271 | # Broken: fails on valid input. |
| 5272 | continue |
| 5273 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5274 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5275 | |
| 5276 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5277 | # can be detected and how. |
| 5278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5279 | /* end confdefs.h. */ |
| 5280 | #include <ac_nonexistent.h> |
| 5281 | _ACEOF |
| 5282 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5283 | # Broken: success on invalid input. |
| 5284 | continue |
| 5285 | else |
| 5286 | # Passes both tests. |
| 5287 | ac_preproc_ok=: |
| 5288 | break |
| 5289 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5290 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5291 | |
| 5292 | done |
| 5293 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5294 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5295 | if $ac_preproc_ok; then : |
| 5296 | |
| 5297 | else |
| 5298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5300 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5301 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5302 | fi |
| 5303 | |
| 5304 | ac_ext=c |
| 5305 | ac_cpp='$CPP $CPPFLAGS' |
| 5306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5309 | |
| 5310 | |
| 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5312 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5313 | if ${ac_cv_path_GREP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5314 | $as_echo_n "(cached) " >&6 |
| 5315 | else |
| 5316 | if test -z "$GREP"; then |
| 5317 | ac_path_GREP_found=false |
| 5318 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5320 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5321 | do |
| 5322 | IFS=$as_save_IFS |
| 5323 | test -z "$as_dir" && as_dir=. |
| 5324 | for ac_prog in grep ggrep; do |
| 5325 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5326 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5327 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5328 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5329 | # Check for GNU $ac_path_GREP |
| 5330 | case `"$ac_path_GREP" --version 2>&1` in |
| 5331 | *GNU*) |
| 5332 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5333 | *) |
| 5334 | ac_count=0 |
| 5335 | $as_echo_n 0123456789 >"conftest.in" |
| 5336 | while : |
| 5337 | do |
| 5338 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5339 | mv "conftest.tmp" "conftest.in" |
| 5340 | cp "conftest.in" "conftest.nl" |
| 5341 | $as_echo 'GREP' >> "conftest.nl" |
| 5342 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5343 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5344 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5345 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5346 | # Best one so far, save it but keep looking for a better one |
| 5347 | ac_cv_path_GREP="$ac_path_GREP" |
| 5348 | ac_path_GREP_max=$ac_count |
| 5349 | fi |
| 5350 | # 10*(2^10) chars as input seems more than enough |
| 5351 | test $ac_count -gt 10 && break |
| 5352 | done |
| 5353 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5354 | esac |
| 5355 | |
| 5356 | $ac_path_GREP_found && break 3 |
| 5357 | done |
| 5358 | done |
| 5359 | done |
| 5360 | IFS=$as_save_IFS |
| 5361 | if test -z "$ac_cv_path_GREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5362 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5363 | fi |
| 5364 | else |
| 5365 | ac_cv_path_GREP=$GREP |
| 5366 | fi |
| 5367 | |
| 5368 | fi |
| 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5370 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5371 | GREP="$ac_cv_path_GREP" |
| 5372 | |
| 5373 | |
| 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5375 | $as_echo_n "checking for egrep... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5376 | if ${ac_cv_path_EGREP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5377 | $as_echo_n "(cached) " >&6 |
| 5378 | else |
| 5379 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5380 | then ac_cv_path_EGREP="$GREP -E" |
| 5381 | else |
| 5382 | if test -z "$EGREP"; then |
| 5383 | ac_path_EGREP_found=false |
| 5384 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5386 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5387 | do |
| 5388 | IFS=$as_save_IFS |
| 5389 | test -z "$as_dir" && as_dir=. |
| 5390 | for ac_prog in egrep; do |
| 5391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5392 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5393 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5394 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5395 | # Check for GNU $ac_path_EGREP |
| 5396 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5397 | *GNU*) |
| 5398 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5399 | *) |
| 5400 | ac_count=0 |
| 5401 | $as_echo_n 0123456789 >"conftest.in" |
| 5402 | while : |
| 5403 | do |
| 5404 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5405 | mv "conftest.tmp" "conftest.in" |
| 5406 | cp "conftest.in" "conftest.nl" |
| 5407 | $as_echo 'EGREP' >> "conftest.nl" |
| 5408 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5409 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5410 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5411 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5412 | # Best one so far, save it but keep looking for a better one |
| 5413 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5414 | ac_path_EGREP_max=$ac_count |
| 5415 | fi |
| 5416 | # 10*(2^10) chars as input seems more than enough |
| 5417 | test $ac_count -gt 10 && break |
| 5418 | done |
| 5419 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5420 | esac |
| 5421 | |
| 5422 | $ac_path_EGREP_found && break 3 |
| 5423 | done |
| 5424 | done |
| 5425 | done |
| 5426 | IFS=$as_save_IFS |
| 5427 | if test -z "$ac_cv_path_EGREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5428 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5429 | fi |
| 5430 | else |
| 5431 | ac_cv_path_EGREP=$EGREP |
| 5432 | fi |
| 5433 | |
| 5434 | fi |
| 5435 | fi |
| 5436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5437 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5438 | EGREP="$ac_cv_path_EGREP" |
| 5439 | |
| 5440 | |
| 5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5442 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5443 | if ${ac_cv_header_stdc+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5444 | $as_echo_n "(cached) " >&6 |
| 5445 | else |
| 5446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5447 | /* end confdefs.h. */ |
| 5448 | #include <stdlib.h> |
| 5449 | #include <stdarg.h> |
| 5450 | #include <string.h> |
| 5451 | #include <float.h> |
| 5452 | |
| 5453 | int |
| 5454 | main () |
| 5455 | { |
| 5456 | |
| 5457 | ; |
| 5458 | return 0; |
| 5459 | } |
| 5460 | _ACEOF |
| 5461 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5462 | ac_cv_header_stdc=yes |
| 5463 | else |
| 5464 | ac_cv_header_stdc=no |
| 5465 | fi |
| 5466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5467 | |
| 5468 | if test $ac_cv_header_stdc = yes; then |
| 5469 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5471 | /* end confdefs.h. */ |
| 5472 | #include <string.h> |
| 5473 | |
| 5474 | _ACEOF |
| 5475 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5476 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5477 | |
| 5478 | else |
| 5479 | ac_cv_header_stdc=no |
| 5480 | fi |
| 5481 | rm -f conftest* |
| 5482 | |
| 5483 | fi |
| 5484 | |
| 5485 | if test $ac_cv_header_stdc = yes; then |
| 5486 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5488 | /* end confdefs.h. */ |
| 5489 | #include <stdlib.h> |
| 5490 | |
| 5491 | _ACEOF |
| 5492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5493 | $EGREP "free" >/dev/null 2>&1; then : |
| 5494 | |
| 5495 | else |
| 5496 | ac_cv_header_stdc=no |
| 5497 | fi |
| 5498 | rm -f conftest* |
| 5499 | |
| 5500 | fi |
| 5501 | |
| 5502 | if test $ac_cv_header_stdc = yes; then |
| 5503 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5504 | if test "$cross_compiling" = yes; then : |
| 5505 | : |
| 5506 | else |
| 5507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5508 | /* end confdefs.h. */ |
| 5509 | #include <ctype.h> |
| 5510 | #include <stdlib.h> |
| 5511 | #if ((' ' & 0x0FF) == 0x020) |
| 5512 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5513 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5514 | #else |
| 5515 | # define ISLOWER(c) \ |
| 5516 | (('a' <= (c) && (c) <= 'i') \ |
| 5517 | || ('j' <= (c) && (c) <= 'r') \ |
| 5518 | || ('s' <= (c) && (c) <= 'z')) |
| 5519 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5520 | #endif |
| 5521 | |
| 5522 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5523 | int |
| 5524 | main () |
| 5525 | { |
| 5526 | int i; |
| 5527 | for (i = 0; i < 256; i++) |
| 5528 | if (XOR (islower (i), ISLOWER (i)) |
| 5529 | || toupper (i) != TOUPPER (i)) |
| 5530 | return 2; |
| 5531 | return 0; |
| 5532 | } |
| 5533 | _ACEOF |
| 5534 | if ac_fn_c_try_run "$LINENO"; then : |
| 5535 | |
| 5536 | else |
| 5537 | ac_cv_header_stdc=no |
| 5538 | fi |
| 5539 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5540 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5541 | fi |
| 5542 | |
| 5543 | fi |
| 5544 | fi |
| 5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5546 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5547 | if test $ac_cv_header_stdc = yes; then |
| 5548 | |
| 5549 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5550 | |
| 5551 | fi |
| 5552 | |
| 5553 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5554 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5555 | inttypes.h stdint.h unistd.h |
| 5556 | do : |
| 5557 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5558 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5559 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5560 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5561 | cat >>confdefs.h <<_ACEOF |
| 5562 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5563 | _ACEOF |
| 5564 | |
| 5565 | fi |
| 5566 | |
| 5567 | done |
| 5568 | |
| 5569 | |
| 5570 | |
| 5571 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5572 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5573 | MINIX=yes |
| 5574 | else |
| 5575 | MINIX= |
| 5576 | fi |
| 5577 | |
| 5578 | |
| 5579 | if test "$MINIX" = yes; then |
| 5580 | |
| 5581 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5582 | |
| 5583 | |
| 5584 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5585 | |
| 5586 | |
| 5587 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5588 | |
| 5589 | fi |
| 5590 | |
| 5591 | |
| 5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5593 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5594 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5595 | $as_echo_n "(cached) " >&6 |
| 5596 | else |
| 5597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5598 | /* end confdefs.h. */ |
| 5599 | |
| 5600 | # define __EXTENSIONS__ 1 |
| 5601 | $ac_includes_default |
| 5602 | int |
| 5603 | main () |
| 5604 | { |
| 5605 | |
| 5606 | ; |
| 5607 | return 0; |
| 5608 | } |
| 5609 | _ACEOF |
| 5610 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5611 | ac_cv_safe_to_define___extensions__=yes |
| 5612 | else |
| 5613 | ac_cv_safe_to_define___extensions__=no |
| 5614 | fi |
| 5615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5616 | fi |
| 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5618 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5619 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5620 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5621 | |
| 5622 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5623 | |
| 5624 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5625 | |
| 5626 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5627 | |
| 5628 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | # Check for programs |
| 5633 | ac_ext=c |
| 5634 | ac_cpp='$CPP $CPPFLAGS' |
| 5635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5638 | if test -n "$ac_tool_prefix"; then |
| 5639 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5640 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5642 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5643 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5644 | $as_echo_n "(cached) " >&6 |
| 5645 | else |
| 5646 | if test -n "$CC"; then |
| 5647 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5648 | else |
| 5649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5650 | for as_dir in $PATH |
| 5651 | do |
| 5652 | IFS=$as_save_IFS |
| 5653 | test -z "$as_dir" && as_dir=. |
| 5654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5656 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5658 | break 2 |
| 5659 | fi |
| 5660 | done |
| 5661 | done |
| 5662 | IFS=$as_save_IFS |
| 5663 | |
| 5664 | fi |
| 5665 | fi |
| 5666 | CC=$ac_cv_prog_CC |
| 5667 | if test -n "$CC"; then |
| 5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5669 | $as_echo "$CC" >&6; } |
| 5670 | else |
| 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5672 | $as_echo "no" >&6; } |
| 5673 | fi |
| 5674 | |
| 5675 | |
| 5676 | fi |
| 5677 | if test -z "$ac_cv_prog_CC"; then |
| 5678 | ac_ct_CC=$CC |
| 5679 | # Extract the first word of "gcc", so it can be a program name with args. |
| 5680 | set dummy gcc; ac_word=$2 |
| 5681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5682 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5683 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5684 | $as_echo_n "(cached) " >&6 |
| 5685 | else |
| 5686 | if test -n "$ac_ct_CC"; then |
| 5687 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5688 | else |
| 5689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5690 | for as_dir in $PATH |
| 5691 | do |
| 5692 | IFS=$as_save_IFS |
| 5693 | test -z "$as_dir" && as_dir=. |
| 5694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5696 | ac_cv_prog_ac_ct_CC="gcc" |
| 5697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5698 | break 2 |
| 5699 | fi |
| 5700 | done |
| 5701 | done |
| 5702 | IFS=$as_save_IFS |
| 5703 | |
| 5704 | fi |
| 5705 | fi |
| 5706 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5707 | if test -n "$ac_ct_CC"; then |
| 5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5709 | $as_echo "$ac_ct_CC" >&6; } |
| 5710 | else |
| 5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5712 | $as_echo "no" >&6; } |
| 5713 | fi |
| 5714 | |
| 5715 | if test "x$ac_ct_CC" = x; then |
| 5716 | CC="" |
| 5717 | else |
| 5718 | case $cross_compiling:$ac_tool_warned in |
| 5719 | yes:) |
| 5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5721 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5722 | ac_tool_warned=yes ;; |
| 5723 | esac |
| 5724 | CC=$ac_ct_CC |
| 5725 | fi |
| 5726 | else |
| 5727 | CC="$ac_cv_prog_CC" |
| 5728 | fi |
| 5729 | |
| 5730 | if test -z "$CC"; then |
| 5731 | if test -n "$ac_tool_prefix"; then |
| 5732 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5733 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5735 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5736 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5737 | $as_echo_n "(cached) " >&6 |
| 5738 | else |
| 5739 | if test -n "$CC"; then |
| 5740 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5741 | else |
| 5742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5743 | for as_dir in $PATH |
| 5744 | do |
| 5745 | IFS=$as_save_IFS |
| 5746 | test -z "$as_dir" && as_dir=. |
| 5747 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5749 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5751 | break 2 |
| 5752 | fi |
| 5753 | done |
| 5754 | done |
| 5755 | IFS=$as_save_IFS |
| 5756 | |
| 5757 | fi |
| 5758 | fi |
| 5759 | CC=$ac_cv_prog_CC |
| 5760 | if test -n "$CC"; then |
| 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5762 | $as_echo "$CC" >&6; } |
| 5763 | else |
| 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5765 | $as_echo "no" >&6; } |
| 5766 | fi |
| 5767 | |
| 5768 | |
| 5769 | fi |
| 5770 | fi |
| 5771 | if test -z "$CC"; then |
| 5772 | # Extract the first word of "cc", so it can be a program name with args. |
| 5773 | set dummy cc; ac_word=$2 |
| 5774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5775 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5776 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5777 | $as_echo_n "(cached) " >&6 |
| 5778 | else |
| 5779 | if test -n "$CC"; then |
| 5780 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5781 | else |
| 5782 | ac_prog_rejected=no |
| 5783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5784 | for as_dir in $PATH |
| 5785 | do |
| 5786 | IFS=$as_save_IFS |
| 5787 | test -z "$as_dir" && as_dir=. |
| 5788 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5790 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5791 | ac_prog_rejected=yes |
| 5792 | continue |
| 5793 | fi |
| 5794 | ac_cv_prog_CC="cc" |
| 5795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5796 | break 2 |
| 5797 | fi |
| 5798 | done |
| 5799 | done |
| 5800 | IFS=$as_save_IFS |
| 5801 | |
| 5802 | if test $ac_prog_rejected = yes; then |
| 5803 | # We found a bogon in the path, so make sure we never use it. |
| 5804 | set dummy $ac_cv_prog_CC |
| 5805 | shift |
| 5806 | if test $# != 0; then |
| 5807 | # We chose a different compiler from the bogus one. |
| 5808 | # However, it has the same basename, so the bogon will be chosen |
| 5809 | # first if we set CC to just the basename; use the full file name. |
| 5810 | shift |
| 5811 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 5812 | fi |
| 5813 | fi |
| 5814 | fi |
| 5815 | fi |
| 5816 | CC=$ac_cv_prog_CC |
| 5817 | if test -n "$CC"; then |
| 5818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5819 | $as_echo "$CC" >&6; } |
| 5820 | else |
| 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5822 | $as_echo "no" >&6; } |
| 5823 | fi |
| 5824 | |
| 5825 | |
| 5826 | fi |
| 5827 | if test -z "$CC"; then |
| 5828 | if test -n "$ac_tool_prefix"; then |
| 5829 | for ac_prog in cl.exe |
| 5830 | do |
| 5831 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5832 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5834 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5835 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5836 | $as_echo_n "(cached) " >&6 |
| 5837 | else |
| 5838 | if test -n "$CC"; then |
| 5839 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5840 | else |
| 5841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5842 | for as_dir in $PATH |
| 5843 | do |
| 5844 | IFS=$as_save_IFS |
| 5845 | test -z "$as_dir" && as_dir=. |
| 5846 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5848 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5850 | break 2 |
| 5851 | fi |
| 5852 | done |
| 5853 | done |
| 5854 | IFS=$as_save_IFS |
| 5855 | |
| 5856 | fi |
| 5857 | fi |
| 5858 | CC=$ac_cv_prog_CC |
| 5859 | if test -n "$CC"; then |
| 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5861 | $as_echo "$CC" >&6; } |
| 5862 | else |
| 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5864 | $as_echo "no" >&6; } |
| 5865 | fi |
| 5866 | |
| 5867 | |
| 5868 | test -n "$CC" && break |
| 5869 | done |
| 5870 | fi |
| 5871 | if test -z "$CC"; then |
| 5872 | ac_ct_CC=$CC |
| 5873 | for ac_prog in cl.exe |
| 5874 | do |
| 5875 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5876 | set dummy $ac_prog; ac_word=$2 |
| 5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5878 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5879 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5880 | $as_echo_n "(cached) " >&6 |
| 5881 | else |
| 5882 | if test -n "$ac_ct_CC"; then |
| 5883 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5884 | else |
| 5885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5886 | for as_dir in $PATH |
| 5887 | do |
| 5888 | IFS=$as_save_IFS |
| 5889 | test -z "$as_dir" && as_dir=. |
| 5890 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5892 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5894 | break 2 |
| 5895 | fi |
| 5896 | done |
| 5897 | done |
| 5898 | IFS=$as_save_IFS |
| 5899 | |
| 5900 | fi |
| 5901 | fi |
| 5902 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5903 | if test -n "$ac_ct_CC"; then |
| 5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5905 | $as_echo "$ac_ct_CC" >&6; } |
| 5906 | else |
| 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5908 | $as_echo "no" >&6; } |
| 5909 | fi |
| 5910 | |
| 5911 | |
| 5912 | test -n "$ac_ct_CC" && break |
| 5913 | done |
| 5914 | |
| 5915 | if test "x$ac_ct_CC" = x; then |
| 5916 | CC="" |
| 5917 | else |
| 5918 | case $cross_compiling:$ac_tool_warned in |
| 5919 | yes:) |
| 5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5921 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5922 | ac_tool_warned=yes ;; |
| 5923 | esac |
| 5924 | CC=$ac_ct_CC |
| 5925 | fi |
| 5926 | fi |
| 5927 | |
| 5928 | fi |
| 5929 | |
| 5930 | |
| 5931 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5932 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5933 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5934 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5935 | |
| 5936 | # Provide some information about the compiler. |
| 5937 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5938 | set X $ac_compile |
| 5939 | ac_compiler=$2 |
| 5940 | for ac_option in --version -v -V -qversion; do |
| 5941 | { { ac_try="$ac_compiler $ac_option >&5" |
| 5942 | case "(($ac_try" in |
| 5943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5944 | *) ac_try_echo=$ac_try;; |
| 5945 | esac |
| 5946 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5947 | $as_echo "$ac_try_echo"; } >&5 |
| 5948 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5949 | ac_status=$? |
| 5950 | if test -s conftest.err; then |
| 5951 | sed '10a\ |
| 5952 | ... rest of stderr output deleted ... |
| 5953 | 10q' conftest.err >conftest.er1 |
| 5954 | cat conftest.er1 >&5 |
| 5955 | fi |
| 5956 | rm -f conftest.er1 conftest.err |
| 5957 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5958 | test $ac_status = 0; } |
| 5959 | done |
| 5960 | |
| 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5962 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5963 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5964 | $as_echo_n "(cached) " >&6 |
| 5965 | else |
| 5966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5967 | /* end confdefs.h. */ |
| 5968 | |
| 5969 | int |
| 5970 | main () |
| 5971 | { |
| 5972 | #ifndef __GNUC__ |
| 5973 | choke me |
| 5974 | #endif |
| 5975 | |
| 5976 | ; |
| 5977 | return 0; |
| 5978 | } |
| 5979 | _ACEOF |
| 5980 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5981 | ac_compiler_gnu=yes |
| 5982 | else |
| 5983 | ac_compiler_gnu=no |
| 5984 | fi |
| 5985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5986 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5987 | |
| 5988 | fi |
| 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5990 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5991 | if test $ac_compiler_gnu = yes; then |
| 5992 | GCC=yes |
| 5993 | else |
| 5994 | GCC= |
| 5995 | fi |
| 5996 | ac_test_CFLAGS=${CFLAGS+set} |
| 5997 | ac_save_CFLAGS=$CFLAGS |
| 5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5999 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6000 | if ${ac_cv_prog_cc_g+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6001 | $as_echo_n "(cached) " >&6 |
| 6002 | else |
| 6003 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 6004 | ac_c_werror_flag=yes |
| 6005 | ac_cv_prog_cc_g=no |
| 6006 | CFLAGS="-g" |
| 6007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6008 | /* end confdefs.h. */ |
| 6009 | |
| 6010 | int |
| 6011 | main () |
| 6012 | { |
| 6013 | |
| 6014 | ; |
| 6015 | return 0; |
| 6016 | } |
| 6017 | _ACEOF |
| 6018 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6019 | ac_cv_prog_cc_g=yes |
| 6020 | else |
| 6021 | CFLAGS="" |
| 6022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6023 | /* end confdefs.h. */ |
| 6024 | |
| 6025 | int |
| 6026 | main () |
| 6027 | { |
| 6028 | |
| 6029 | ; |
| 6030 | return 0; |
| 6031 | } |
| 6032 | _ACEOF |
| 6033 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6034 | |
| 6035 | else |
| 6036 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6037 | CFLAGS="-g" |
| 6038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6039 | /* end confdefs.h. */ |
| 6040 | |
| 6041 | int |
| 6042 | main () |
| 6043 | { |
| 6044 | |
| 6045 | ; |
| 6046 | return 0; |
| 6047 | } |
| 6048 | _ACEOF |
| 6049 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6050 | ac_cv_prog_cc_g=yes |
| 6051 | fi |
| 6052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6053 | fi |
| 6054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6055 | fi |
| 6056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6057 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6058 | fi |
| 6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 6060 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 6061 | if test "$ac_test_CFLAGS" = set; then |
| 6062 | CFLAGS=$ac_save_CFLAGS |
| 6063 | elif test $ac_cv_prog_cc_g = yes; then |
| 6064 | if test "$GCC" = yes; then |
| 6065 | CFLAGS="-g -O2" |
| 6066 | else |
| 6067 | CFLAGS="-g" |
| 6068 | fi |
| 6069 | else |
| 6070 | if test "$GCC" = yes; then |
| 6071 | CFLAGS="-O2" |
| 6072 | else |
| 6073 | CFLAGS= |
| 6074 | fi |
| 6075 | fi |
| 6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 6077 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6078 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6079 | $as_echo_n "(cached) " >&6 |
| 6080 | else |
| 6081 | ac_cv_prog_cc_c89=no |
| 6082 | ac_save_CC=$CC |
| 6083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6084 | /* end confdefs.h. */ |
| 6085 | #include <stdarg.h> |
| 6086 | #include <stdio.h> |
| 6087 | #include <sys/types.h> |
| 6088 | #include <sys/stat.h> |
| 6089 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6090 | struct buf { int x; }; |
| 6091 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6092 | static char *e (p, i) |
| 6093 | char **p; |
| 6094 | int i; |
| 6095 | { |
| 6096 | return p[i]; |
| 6097 | } |
| 6098 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6099 | { |
| 6100 | char *s; |
| 6101 | va_list v; |
| 6102 | va_start (v,p); |
| 6103 | s = g (p, va_arg (v,int)); |
| 6104 | va_end (v); |
| 6105 | return s; |
| 6106 | } |
| 6107 | |
| 6108 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6109 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6110 | These don't provoke an error unfortunately, instead are silently treated |
| 6111 | as 'x'. The following induces an error, until -std is added to get |
| 6112 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6113 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6114 | that's true only with -std. */ |
| 6115 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6116 | |
| 6117 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6118 | inside strings and character constants. */ |
| 6119 | #define FOO(x) 'x' |
| 6120 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6121 | |
| 6122 | int test (int i, double x); |
| 6123 | struct s1 {int (*f) (int a);}; |
| 6124 | struct s2 {int (*f) (double a);}; |
| 6125 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6126 | int argc; |
| 6127 | char **argv; |
| 6128 | int |
| 6129 | main () |
| 6130 | { |
| 6131 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6132 | ; |
| 6133 | return 0; |
| 6134 | } |
| 6135 | _ACEOF |
| 6136 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6137 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6138 | do |
| 6139 | CC="$ac_save_CC $ac_arg" |
| 6140 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6141 | ac_cv_prog_cc_c89=$ac_arg |
| 6142 | fi |
| 6143 | rm -f core conftest.err conftest.$ac_objext |
| 6144 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6145 | done |
| 6146 | rm -f conftest.$ac_ext |
| 6147 | CC=$ac_save_CC |
| 6148 | |
| 6149 | fi |
| 6150 | # AC_CACHE_VAL |
| 6151 | case "x$ac_cv_prog_cc_c89" in |
| 6152 | x) |
| 6153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6154 | $as_echo "none needed" >&6; } ;; |
| 6155 | xno) |
| 6156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6157 | $as_echo "unsupported" >&6; } ;; |
| 6158 | *) |
| 6159 | CC="$CC $ac_cv_prog_cc_c89" |
| 6160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6161 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6162 | esac |
| 6163 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 6164 | |
| 6165 | fi |
| 6166 | |
| 6167 | ac_ext=c |
| 6168 | ac_cpp='$CPP $CPPFLAGS' |
| 6169 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6170 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6171 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6172 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6173 | depcc="$CC" am_compiler_list= |
| 6174 | |
| 6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6176 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6177 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6178 | $as_echo_n "(cached) " >&6 |
| 6179 | else |
| 6180 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6181 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6182 | # making bogus files that we don't know about and never remove. For |
| 6183 | # instance it was reported that on HP-UX the gcc test will end up |
| 6184 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6185 | # in D'. |
| 6186 | mkdir conftest.dir |
| 6187 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6188 | # using a relative directory. |
| 6189 | cp "$am_depcomp" conftest.dir |
| 6190 | cd conftest.dir |
| 6191 | # We will build objects and dependencies in a subdirectory because |
| 6192 | # it helps to detect inapplicable dependency modes. For instance |
| 6193 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6194 | # side effect of compilation, but ICC will put the dependencies in |
| 6195 | # the current directory while Tru64 will put them in the object |
| 6196 | # directory. |
| 6197 | mkdir sub |
| 6198 | |
| 6199 | am_cv_CC_dependencies_compiler_type=none |
| 6200 | if test "$am_compiler_list" = ""; then |
| 6201 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6202 | fi |
| 6203 | am__universal=false |
| 6204 | case " $depcc " in #( |
| 6205 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6206 | esac |
| 6207 | |
| 6208 | for depmode in $am_compiler_list; do |
| 6209 | # Setup a source with many dependencies, because some compilers |
| 6210 | # like to wrap large dependency lists on column 80 (with \), and |
| 6211 | # we should not choose a depcomp mode which is confused by this. |
| 6212 | # |
| 6213 | # We need to recreate these files for each test, as the compiler may |
| 6214 | # overwrite some of them when testing with obscure command lines. |
| 6215 | # This happens at least with the AIX C compiler. |
| 6216 | : > sub/conftest.c |
| 6217 | for i in 1 2 3 4 5 6; do |
| 6218 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6219 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6220 | # Solaris 8's {/usr,}/bin/sh. |
| 6221 | touch sub/conftst$i.h |
| 6222 | done |
| 6223 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6224 | |
| 6225 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6226 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6227 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 6228 | # versions had trouble with output in subdirs |
| 6229 | am__obj=sub/conftest.${OBJEXT-o} |
| 6230 | am__minus_obj="-o $am__obj" |
| 6231 | case $depmode in |
| 6232 | gcc) |
| 6233 | # This depmode causes a compiler race in universal mode. |
| 6234 | test "$am__universal" = false || continue |
| 6235 | ;; |
| 6236 | nosideeffect) |
| 6237 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6238 | # only be used when explicitly requested |
| 6239 | if test "x$enable_dependency_tracking" = xyes; then |
| 6240 | continue |
| 6241 | else |
| 6242 | break |
| 6243 | fi |
| 6244 | ;; |
| 6245 | msvisualcpp | msvcmsys) |
| 6246 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 6247 | # not run yet. These depmodes are late enough in the game, and |
| 6248 | # so weak that their functioning should not be impacted. |
| 6249 | am__obj=conftest.${OBJEXT-o} |
| 6250 | am__minus_obj= |
| 6251 | ;; |
| 6252 | none) break ;; |
| 6253 | esac |
| 6254 | if depmode=$depmode \ |
| 6255 | source=sub/conftest.c object=$am__obj \ |
| 6256 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6257 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6258 | >/dev/null 2>conftest.err && |
| 6259 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6260 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6261 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6262 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6263 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6264 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6265 | # that says an option was ignored or not supported. |
| 6266 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6267 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6268 | # The diagnosis changed in icc 8.0: |
| 6269 | # icc: Command line remark: option '-MP' not supported |
| 6270 | if (grep 'ignoring option' conftest.err || |
| 6271 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6272 | am_cv_CC_dependencies_compiler_type=$depmode |
| 6273 | break |
| 6274 | fi |
| 6275 | fi |
| 6276 | done |
| 6277 | |
| 6278 | cd .. |
| 6279 | rm -rf conftest.dir |
| 6280 | else |
| 6281 | am_cv_CC_dependencies_compiler_type=none |
| 6282 | fi |
| 6283 | |
| 6284 | fi |
| 6285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 6286 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 6287 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 6288 | |
| 6289 | if |
| 6290 | test "x$enable_dependency_tracking" != xno \ |
| 6291 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 6292 | am__fastdepCC_TRUE= |
| 6293 | am__fastdepCC_FALSE='#' |
| 6294 | else |
| 6295 | am__fastdepCC_TRUE='#' |
| 6296 | am__fastdepCC_FALSE= |
| 6297 | fi |
| 6298 | |
| 6299 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6300 | ac_ext=cpp |
| 6301 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6302 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6303 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6304 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6305 | if test -z "$CXX"; then |
| 6306 | if test -n "$CCC"; then |
| 6307 | CXX=$CCC |
| 6308 | else |
| 6309 | if test -n "$ac_tool_prefix"; then |
| 6310 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6311 | do |
| 6312 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6313 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6315 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6316 | if ${ac_cv_prog_CXX+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6317 | $as_echo_n "(cached) " >&6 |
| 6318 | else |
| 6319 | if test -n "$CXX"; then |
| 6320 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6321 | else |
| 6322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6323 | for as_dir in $PATH |
| 6324 | do |
| 6325 | IFS=$as_save_IFS |
| 6326 | test -z "$as_dir" && as_dir=. |
| 6327 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6329 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6331 | break 2 |
| 6332 | fi |
| 6333 | done |
| 6334 | done |
| 6335 | IFS=$as_save_IFS |
| 6336 | |
| 6337 | fi |
| 6338 | fi |
| 6339 | CXX=$ac_cv_prog_CXX |
| 6340 | if test -n "$CXX"; then |
| 6341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 6342 | $as_echo "$CXX" >&6; } |
| 6343 | else |
| 6344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6345 | $as_echo "no" >&6; } |
| 6346 | fi |
| 6347 | |
| 6348 | |
| 6349 | test -n "$CXX" && break |
| 6350 | done |
| 6351 | fi |
| 6352 | if test -z "$CXX"; then |
| 6353 | ac_ct_CXX=$CXX |
| 6354 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6355 | do |
| 6356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6357 | set dummy $ac_prog; ac_word=$2 |
| 6358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6359 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6360 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6361 | $as_echo_n "(cached) " >&6 |
| 6362 | else |
| 6363 | if test -n "$ac_ct_CXX"; then |
| 6364 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6365 | else |
| 6366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6367 | for as_dir in $PATH |
| 6368 | do |
| 6369 | IFS=$as_save_IFS |
| 6370 | test -z "$as_dir" && as_dir=. |
| 6371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6373 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6375 | break 2 |
| 6376 | fi |
| 6377 | done |
| 6378 | done |
| 6379 | IFS=$as_save_IFS |
| 6380 | |
| 6381 | fi |
| 6382 | fi |
| 6383 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6384 | if test -n "$ac_ct_CXX"; then |
| 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 6386 | $as_echo "$ac_ct_CXX" >&6; } |
| 6387 | else |
| 6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6389 | $as_echo "no" >&6; } |
| 6390 | fi |
| 6391 | |
| 6392 | |
| 6393 | test -n "$ac_ct_CXX" && break |
| 6394 | done |
| 6395 | |
| 6396 | if test "x$ac_ct_CXX" = x; then |
| 6397 | CXX="g++" |
| 6398 | else |
| 6399 | case $cross_compiling:$ac_tool_warned in |
| 6400 | yes:) |
| 6401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6402 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6403 | ac_tool_warned=yes ;; |
| 6404 | esac |
| 6405 | CXX=$ac_ct_CXX |
| 6406 | fi |
| 6407 | fi |
| 6408 | |
| 6409 | fi |
| 6410 | fi |
| 6411 | # Provide some information about the compiler. |
| 6412 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 6413 | set X $ac_compile |
| 6414 | ac_compiler=$2 |
| 6415 | for ac_option in --version -v -V -qversion; do |
| 6416 | { { ac_try="$ac_compiler $ac_option >&5" |
| 6417 | case "(($ac_try" in |
| 6418 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6419 | *) ac_try_echo=$ac_try;; |
| 6420 | esac |
| 6421 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6422 | $as_echo "$ac_try_echo"; } >&5 |
| 6423 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6424 | ac_status=$? |
| 6425 | if test -s conftest.err; then |
| 6426 | sed '10a\ |
| 6427 | ... rest of stderr output deleted ... |
| 6428 | 10q' conftest.err >conftest.er1 |
| 6429 | cat conftest.er1 >&5 |
| 6430 | fi |
| 6431 | rm -f conftest.er1 conftest.err |
| 6432 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6433 | test $ac_status = 0; } |
| 6434 | done |
| 6435 | |
| 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 6437 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6438 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6439 | $as_echo_n "(cached) " >&6 |
| 6440 | else |
| 6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6442 | /* end confdefs.h. */ |
| 6443 | |
| 6444 | int |
| 6445 | main () |
| 6446 | { |
| 6447 | #ifndef __GNUC__ |
| 6448 | choke me |
| 6449 | #endif |
| 6450 | |
| 6451 | ; |
| 6452 | return 0; |
| 6453 | } |
| 6454 | _ACEOF |
| 6455 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6456 | ac_compiler_gnu=yes |
| 6457 | else |
| 6458 | ac_compiler_gnu=no |
| 6459 | fi |
| 6460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6461 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6462 | |
| 6463 | fi |
| 6464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6465 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 6466 | if test $ac_compiler_gnu = yes; then |
| 6467 | GXX=yes |
| 6468 | else |
| 6469 | GXX= |
| 6470 | fi |
| 6471 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6472 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 6474 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6475 | if ${ac_cv_prog_cxx_g+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6476 | $as_echo_n "(cached) " >&6 |
| 6477 | else |
| 6478 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6479 | ac_cxx_werror_flag=yes |
| 6480 | ac_cv_prog_cxx_g=no |
| 6481 | CXXFLAGS="-g" |
| 6482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6483 | /* end confdefs.h. */ |
| 6484 | |
| 6485 | int |
| 6486 | main () |
| 6487 | { |
| 6488 | |
| 6489 | ; |
| 6490 | return 0; |
| 6491 | } |
| 6492 | _ACEOF |
| 6493 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6494 | ac_cv_prog_cxx_g=yes |
| 6495 | else |
| 6496 | CXXFLAGS="" |
| 6497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6498 | /* end confdefs.h. */ |
| 6499 | |
| 6500 | int |
| 6501 | main () |
| 6502 | { |
| 6503 | |
| 6504 | ; |
| 6505 | return 0; |
| 6506 | } |
| 6507 | _ACEOF |
| 6508 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6509 | |
| 6510 | else |
| 6511 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6512 | CXXFLAGS="-g" |
| 6513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6514 | /* end confdefs.h. */ |
| 6515 | |
| 6516 | int |
| 6517 | main () |
| 6518 | { |
| 6519 | |
| 6520 | ; |
| 6521 | return 0; |
| 6522 | } |
| 6523 | _ACEOF |
| 6524 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6525 | ac_cv_prog_cxx_g=yes |
| 6526 | fi |
| 6527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6528 | fi |
| 6529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6530 | fi |
| 6531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6532 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6533 | fi |
| 6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 6535 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 6536 | if test "$ac_test_CXXFLAGS" = set; then |
| 6537 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6538 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6539 | if test "$GXX" = yes; then |
| 6540 | CXXFLAGS="-g -O2" |
| 6541 | else |
| 6542 | CXXFLAGS="-g" |
| 6543 | fi |
| 6544 | else |
| 6545 | if test "$GXX" = yes; then |
| 6546 | CXXFLAGS="-O2" |
| 6547 | else |
| 6548 | CXXFLAGS= |
| 6549 | fi |
| 6550 | fi |
| 6551 | ac_ext=c |
| 6552 | ac_cpp='$CPP $CPPFLAGS' |
| 6553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6556 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6557 | depcc="$CXX" am_compiler_list= |
| 6558 | |
| 6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6560 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6561 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6562 | $as_echo_n "(cached) " >&6 |
| 6563 | else |
| 6564 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6565 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6566 | # making bogus files that we don't know about and never remove. For |
| 6567 | # instance it was reported that on HP-UX the gcc test will end up |
| 6568 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 6569 | # in D'. |
| 6570 | mkdir conftest.dir |
| 6571 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6572 | # using a relative directory. |
| 6573 | cp "$am_depcomp" conftest.dir |
| 6574 | cd conftest.dir |
| 6575 | # We will build objects and dependencies in a subdirectory because |
| 6576 | # it helps to detect inapplicable dependency modes. For instance |
| 6577 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6578 | # side effect of compilation, but ICC will put the dependencies in |
| 6579 | # the current directory while Tru64 will put them in the object |
| 6580 | # directory. |
| 6581 | mkdir sub |
| 6582 | |
| 6583 | am_cv_CXX_dependencies_compiler_type=none |
| 6584 | if test "$am_compiler_list" = ""; then |
| 6585 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6586 | fi |
| 6587 | am__universal=false |
| 6588 | case " $depcc " in #( |
| 6589 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6590 | esac |
| 6591 | |
| 6592 | for depmode in $am_compiler_list; do |
| 6593 | # Setup a source with many dependencies, because some compilers |
| 6594 | # like to wrap large dependency lists on column 80 (with \), and |
| 6595 | # we should not choose a depcomp mode which is confused by this. |
| 6596 | # |
| 6597 | # We need to recreate these files for each test, as the compiler may |
| 6598 | # overwrite some of them when testing with obscure command lines. |
| 6599 | # This happens at least with the AIX C compiler. |
| 6600 | : > sub/conftest.c |
| 6601 | for i in 1 2 3 4 5 6; do |
| 6602 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 6603 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 6604 | # Solaris 8's {/usr,}/bin/sh. |
| 6605 | touch sub/conftst$i.h |
| 6606 | done |
| 6607 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6608 | |
| 6609 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 6610 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 6611 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 6612 | # versions had trouble with output in subdirs |
| 6613 | am__obj=sub/conftest.${OBJEXT-o} |
| 6614 | am__minus_obj="-o $am__obj" |
| 6615 | case $depmode in |
| 6616 | gcc) |
| 6617 | # This depmode causes a compiler race in universal mode. |
| 6618 | test "$am__universal" = false || continue |
| 6619 | ;; |
| 6620 | nosideeffect) |
| 6621 | # after this tag, mechanisms are not by side-effect, so they'll |
| 6622 | # only be used when explicitly requested |
| 6623 | if test "x$enable_dependency_tracking" = xyes; then |
| 6624 | continue |
| 6625 | else |
| 6626 | break |
| 6627 | fi |
| 6628 | ;; |
| 6629 | msvisualcpp | msvcmsys) |
| 6630 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 6631 | # not run yet. These depmodes are late enough in the game, and |
| 6632 | # so weak that their functioning should not be impacted. |
| 6633 | am__obj=conftest.${OBJEXT-o} |
| 6634 | am__minus_obj= |
| 6635 | ;; |
| 6636 | none) break ;; |
| 6637 | esac |
| 6638 | if depmode=$depmode \ |
| 6639 | source=sub/conftest.c object=$am__obj \ |
| 6640 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6641 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6642 | >/dev/null 2>conftest.err && |
| 6643 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6644 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6645 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6646 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6647 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6648 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6649 | # that says an option was ignored or not supported. |
| 6650 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6651 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6652 | # The diagnosis changed in icc 8.0: |
| 6653 | # icc: Command line remark: option '-MP' not supported |
| 6654 | if (grep 'ignoring option' conftest.err || |
| 6655 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6656 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 6657 | break |
| 6658 | fi |
| 6659 | fi |
| 6660 | done |
| 6661 | |
| 6662 | cd .. |
| 6663 | rm -rf conftest.dir |
| 6664 | else |
| 6665 | am_cv_CXX_dependencies_compiler_type=none |
| 6666 | fi |
| 6667 | |
| 6668 | fi |
| 6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 6670 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 6671 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 6672 | |
| 6673 | if |
| 6674 | test "x$enable_dependency_tracking" != xno \ |
| 6675 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 6676 | am__fastdepCXX_TRUE= |
| 6677 | am__fastdepCXX_FALSE='#' |
| 6678 | else |
| 6679 | am__fastdepCXX_TRUE='#' |
| 6680 | am__fastdepCXX_FALSE= |
| 6681 | fi |
| 6682 | |
| 6683 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6684 | case $ac_cv_prog_cc_stdc in #( |
| 6685 | no) : |
| 6686 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 6687 | *) : |
| 6688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6689 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6690 | if ${ac_cv_prog_cc_c99+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6691 | $as_echo_n "(cached) " >&6 |
| 6692 | else |
| 6693 | ac_cv_prog_cc_c99=no |
| 6694 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6696 | /* end confdefs.h. */ |
| 6697 | #include <stdarg.h> |
| 6698 | #include <stdbool.h> |
| 6699 | #include <stdlib.h> |
| 6700 | #include <wchar.h> |
| 6701 | #include <stdio.h> |
| 6702 | |
| 6703 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 6704 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 6705 | #define showlist(...) puts (#__VA_ARGS__) |
| 6706 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 6707 | static void |
| 6708 | test_varargs_macros (void) |
| 6709 | { |
| 6710 | int x = 1234; |
| 6711 | int y = 5678; |
| 6712 | debug ("Flag"); |
| 6713 | debug ("X = %d\n", x); |
| 6714 | showlist (The first, second, and third items.); |
| 6715 | report (x>y, "x is %d but y is %d", x, y); |
| 6716 | } |
| 6717 | |
| 6718 | // Check long long types. |
| 6719 | #define BIG64 18446744073709551615ull |
| 6720 | #define BIG32 4294967295ul |
| 6721 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 6722 | #if !BIG_OK |
| 6723 | your preprocessor is broken; |
| 6724 | #endif |
| 6725 | #if BIG_OK |
| 6726 | #else |
| 6727 | your preprocessor is broken; |
| 6728 | #endif |
| 6729 | static long long int bignum = -9223372036854775807LL; |
| 6730 | static unsigned long long int ubignum = BIG64; |
| 6731 | |
| 6732 | struct incomplete_array |
| 6733 | { |
| 6734 | int datasize; |
| 6735 | double data[]; |
| 6736 | }; |
| 6737 | |
| 6738 | struct named_init { |
| 6739 | int number; |
| 6740 | const wchar_t *name; |
| 6741 | double average; |
| 6742 | }; |
| 6743 | |
| 6744 | typedef const char *ccp; |
| 6745 | |
| 6746 | static inline int |
| 6747 | test_restrict (ccp restrict text) |
| 6748 | { |
| 6749 | // See if C++-style comments work. |
| 6750 | // Iterate through items via the restricted pointer. |
| 6751 | // Also check for declarations in for loops. |
| 6752 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 6753 | continue; |
| 6754 | return 0; |
| 6755 | } |
| 6756 | |
| 6757 | // Check varargs and va_copy. |
| 6758 | static void |
| 6759 | test_varargs (const char *format, ...) |
| 6760 | { |
| 6761 | va_list args; |
| 6762 | va_start (args, format); |
| 6763 | va_list args_copy; |
| 6764 | va_copy (args_copy, args); |
| 6765 | |
| 6766 | const char *str; |
| 6767 | int number; |
| 6768 | float fnumber; |
| 6769 | |
| 6770 | while (*format) |
| 6771 | { |
| 6772 | switch (*format++) |
| 6773 | { |
| 6774 | case 's': // string |
| 6775 | str = va_arg (args_copy, const char *); |
| 6776 | break; |
| 6777 | case 'd': // int |
| 6778 | number = va_arg (args_copy, int); |
| 6779 | break; |
| 6780 | case 'f': // float |
| 6781 | fnumber = va_arg (args_copy, double); |
| 6782 | break; |
| 6783 | default: |
| 6784 | break; |
| 6785 | } |
| 6786 | } |
| 6787 | va_end (args_copy); |
| 6788 | va_end (args); |
| 6789 | } |
| 6790 | |
| 6791 | int |
| 6792 | main () |
| 6793 | { |
| 6794 | |
| 6795 | // Check bool. |
| 6796 | _Bool success = false; |
| 6797 | |
| 6798 | // Check restrict. |
| 6799 | if (test_restrict ("String literal") == 0) |
| 6800 | success = true; |
| 6801 | char *restrict newvar = "Another string"; |
| 6802 | |
| 6803 | // Check varargs. |
| 6804 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 6805 | test_varargs_macros (); |
| 6806 | |
| 6807 | // Check flexible array members. |
| 6808 | struct incomplete_array *ia = |
| 6809 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 6810 | ia->datasize = 10; |
| 6811 | for (int i = 0; i < ia->datasize; ++i) |
| 6812 | ia->data[i] = i * 1.234; |
| 6813 | |
| 6814 | // Check named initializers. |
| 6815 | struct named_init ni = { |
| 6816 | .number = 34, |
| 6817 | .name = L"Test wide string", |
| 6818 | .average = 543.34343, |
| 6819 | }; |
| 6820 | |
| 6821 | ni.number = 58; |
| 6822 | |
| 6823 | int dynamic_array[ni.number]; |
| 6824 | dynamic_array[ni.number - 1] = 543; |
| 6825 | |
| 6826 | // work around unused variable warnings |
| 6827 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 6828 | || dynamic_array[ni.number - 1] != 543); |
| 6829 | |
| 6830 | ; |
| 6831 | return 0; |
| 6832 | } |
| 6833 | _ACEOF |
| 6834 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 6835 | do |
| 6836 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6837 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6838 | ac_cv_prog_cc_c99=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6839 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6840 | rm -f core conftest.err conftest.$ac_objext |
| 6841 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 6842 | done |
| 6843 | rm -f conftest.$ac_ext |
| 6844 | CC=$ac_save_CC |
| 6845 | |
| 6846 | fi |
| 6847 | # AC_CACHE_VAL |
| 6848 | case "x$ac_cv_prog_cc_c99" in |
| 6849 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6851 | $as_echo "none needed" >&6; } ;; |
| 6852 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6854 | $as_echo "unsupported" >&6; } ;; |
| 6855 | *) |
| 6856 | CC="$CC $ac_cv_prog_cc_c99" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6858 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 6859 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6860 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6861 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 6862 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6864 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6865 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6866 | $as_echo_n "(cached) " >&6 |
| 6867 | else |
| 6868 | ac_cv_prog_cc_c89=no |
| 6869 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6871 | /* end confdefs.h. */ |
| 6872 | #include <stdarg.h> |
| 6873 | #include <stdio.h> |
| 6874 | #include <sys/types.h> |
| 6875 | #include <sys/stat.h> |
| 6876 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6877 | struct buf { int x; }; |
| 6878 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6879 | static char *e (p, i) |
| 6880 | char **p; |
| 6881 | int i; |
| 6882 | { |
| 6883 | return p[i]; |
| 6884 | } |
| 6885 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6886 | { |
| 6887 | char *s; |
| 6888 | va_list v; |
| 6889 | va_start (v,p); |
| 6890 | s = g (p, va_arg (v,int)); |
| 6891 | va_end (v); |
| 6892 | return s; |
| 6893 | } |
| 6894 | |
| 6895 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6896 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6897 | These don't provoke an error unfortunately, instead are silently treated |
| 6898 | as 'x'. The following induces an error, until -std is added to get |
| 6899 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6900 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6901 | that's true only with -std. */ |
| 6902 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6903 | |
| 6904 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6905 | inside strings and character constants. */ |
| 6906 | #define FOO(x) 'x' |
| 6907 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6908 | |
| 6909 | int test (int i, double x); |
| 6910 | struct s1 {int (*f) (int a);}; |
| 6911 | struct s2 {int (*f) (double a);}; |
| 6912 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6913 | int argc; |
| 6914 | char **argv; |
| 6915 | int |
| 6916 | main () |
| 6917 | { |
| 6918 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6919 | ; |
| 6920 | return 0; |
| 6921 | } |
| 6922 | _ACEOF |
| 6923 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6924 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6925 | do |
| 6926 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6927 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6928 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6929 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6930 | rm -f core conftest.err conftest.$ac_objext |
| 6931 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6932 | done |
| 6933 | rm -f conftest.$ac_ext |
| 6934 | CC=$ac_save_CC |
| 6935 | |
| 6936 | fi |
| 6937 | # AC_CACHE_VAL |
| 6938 | case "x$ac_cv_prog_cc_c89" in |
| 6939 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6941 | $as_echo "none needed" >&6; } ;; |
| 6942 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6944 | $as_echo "unsupported" >&6; } ;; |
| 6945 | *) |
| 6946 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6948 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6949 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6950 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6951 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 6952 | else |
| 6953 | ac_cv_prog_cc_stdc=no |
| 6954 | fi |
| 6955 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6956 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6957 | ;; |
| 6958 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6960 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6961 | if ${ac_cv_prog_cc_stdc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6962 | $as_echo_n "(cached) " >&6 |
| 6963 | fi |
| 6964 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6965 | case $ac_cv_prog_cc_stdc in #( |
| 6966 | no) : |
| 6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6968 | $as_echo "unsupported" >&6; } ;; #( |
| 6969 | '') : |
| 6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6971 | $as_echo "none needed" >&6; } ;; #( |
| 6972 | *) : |
| 6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6974 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 6975 | esac |
| 6976 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6977 | ac_ext=c |
| 6978 | ac_cpp='$CPP $CPPFLAGS' |
| 6979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6983 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 6984 | # On Suns, sometimes $CPP names a directory. |
| 6985 | if test -n "$CPP" && test -d "$CPP"; then |
| 6986 | CPP= |
| 6987 | fi |
| 6988 | if test -z "$CPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6989 | if ${ac_cv_prog_CPP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6990 | $as_echo_n "(cached) " >&6 |
| 6991 | else |
| 6992 | # Double quotes because CPP needs to be expanded |
| 6993 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 6994 | do |
| 6995 | ac_preproc_ok=false |
| 6996 | for ac_c_preproc_warn_flag in '' yes |
| 6997 | do |
| 6998 | # Use a header file that comes with gcc, so configuring glibc |
| 6999 | # with a fresh cross-compiler works. |
| 7000 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7001 | # <limits.h> exists even on freestanding compilers. |
| 7002 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7003 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7005 | /* end confdefs.h. */ |
| 7006 | #ifdef __STDC__ |
| 7007 | # include <limits.h> |
| 7008 | #else |
| 7009 | # include <assert.h> |
| 7010 | #endif |
| 7011 | Syntax error |
| 7012 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7013 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7014 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7015 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7016 | # Broken: fails on valid input. |
| 7017 | continue |
| 7018 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7019 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7020 | |
| 7021 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7022 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7024 | /* end confdefs.h. */ |
| 7025 | #include <ac_nonexistent.h> |
| 7026 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7027 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7028 | # Broken: success on invalid input. |
| 7029 | continue |
| 7030 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7031 | # Passes both tests. |
| 7032 | ac_preproc_ok=: |
| 7033 | break |
| 7034 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7035 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7036 | |
| 7037 | done |
| 7038 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7039 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7040 | if $ac_preproc_ok; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7041 | break |
| 7042 | fi |
| 7043 | |
| 7044 | done |
| 7045 | ac_cv_prog_CPP=$CPP |
| 7046 | |
| 7047 | fi |
| 7048 | CPP=$ac_cv_prog_CPP |
| 7049 | else |
| 7050 | ac_cv_prog_CPP=$CPP |
| 7051 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7053 | $as_echo "$CPP" >&6; } |
| 7054 | ac_preproc_ok=false |
| 7055 | for ac_c_preproc_warn_flag in '' yes |
| 7056 | do |
| 7057 | # Use a header file that comes with gcc, so configuring glibc |
| 7058 | # with a fresh cross-compiler works. |
| 7059 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7060 | # <limits.h> exists even on freestanding compilers. |
| 7061 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7062 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7064 | /* end confdefs.h. */ |
| 7065 | #ifdef __STDC__ |
| 7066 | # include <limits.h> |
| 7067 | #else |
| 7068 | # include <assert.h> |
| 7069 | #endif |
| 7070 | Syntax error |
| 7071 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7072 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7073 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7074 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7075 | # Broken: fails on valid input. |
| 7076 | continue |
| 7077 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7078 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7079 | |
| 7080 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7081 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7083 | /* end confdefs.h. */ |
| 7084 | #include <ac_nonexistent.h> |
| 7085 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7086 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7087 | # Broken: success on invalid input. |
| 7088 | continue |
| 7089 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7090 | # Passes both tests. |
| 7091 | ac_preproc_ok=: |
| 7092 | break |
| 7093 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7094 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7095 | |
| 7096 | done |
| 7097 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7098 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7099 | if $ac_preproc_ok; then : |
| 7100 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7101 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7102 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7103 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7104 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7105 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7106 | fi |
| 7107 | |
| 7108 | ac_ext=c |
| 7109 | ac_cpp='$CPP $CPPFLAGS' |
| 7110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7113 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 7115 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7116 | if ${ac_cv_path_SED+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7117 | $as_echo_n "(cached) " >&6 |
| 7118 | else |
| 7119 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 7120 | for ac_i in 1 2 3 4 5 6 7; do |
| 7121 | ac_script="$ac_script$as_nl$ac_script" |
| 7122 | done |
| 7123 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 7124 | { ac_script=; unset ac_script;} |
| 7125 | if test -z "$SED"; then |
| 7126 | ac_path_SED_found=false |
| 7127 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7129 | for as_dir in $PATH |
| 7130 | do |
| 7131 | IFS=$as_save_IFS |
| 7132 | test -z "$as_dir" && as_dir=. |
| 7133 | for ac_prog in sed gsed; do |
| 7134 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7135 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 7136 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 7137 | # Check for GNU ac_path_SED and select it if it is found. |
| 7138 | # Check for GNU $ac_path_SED |
| 7139 | case `"$ac_path_SED" --version 2>&1` in |
| 7140 | *GNU*) |
| 7141 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 7142 | *) |
| 7143 | ac_count=0 |
| 7144 | $as_echo_n 0123456789 >"conftest.in" |
| 7145 | while : |
| 7146 | do |
| 7147 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7148 | mv "conftest.tmp" "conftest.in" |
| 7149 | cp "conftest.in" "conftest.nl" |
| 7150 | $as_echo '' >> "conftest.nl" |
| 7151 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7152 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7153 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7154 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 7155 | # Best one so far, save it but keep looking for a better one |
| 7156 | ac_cv_path_SED="$ac_path_SED" |
| 7157 | ac_path_SED_max=$ac_count |
| 7158 | fi |
| 7159 | # 10*(2^10) chars as input seems more than enough |
| 7160 | test $ac_count -gt 10 && break |
| 7161 | done |
| 7162 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7163 | esac |
| 7164 | |
| 7165 | $ac_path_SED_found && break 3 |
| 7166 | done |
| 7167 | done |
| 7168 | done |
| 7169 | IFS=$as_save_IFS |
| 7170 | if test -z "$ac_cv_path_SED"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7171 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7172 | fi |
| 7173 | else |
| 7174 | ac_cv_path_SED=$SED |
| 7175 | fi |
| 7176 | |
| 7177 | fi |
| 7178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 7179 | $as_echo "$ac_cv_path_SED" >&6; } |
| 7180 | SED="$ac_cv_path_SED" |
| 7181 | rm -f conftest.sed |
| 7182 | |
| 7183 | test -z "$SED" && SED=sed |
| 7184 | Xsed="$SED -e 1s/^X//" |
| 7185 | |
| 7186 | |
| 7187 | |
| 7188 | |
| 7189 | |
| 7190 | |
| 7191 | |
| 7192 | |
| 7193 | |
| 7194 | |
| 7195 | |
| 7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 7197 | $as_echo_n "checking for fgrep... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7198 | if ${ac_cv_path_FGREP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7199 | $as_echo_n "(cached) " >&6 |
| 7200 | else |
| 7201 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 7202 | then ac_cv_path_FGREP="$GREP -F" |
| 7203 | else |
| 7204 | if test -z "$FGREP"; then |
| 7205 | ac_path_FGREP_found=false |
| 7206 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7208 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7209 | do |
| 7210 | IFS=$as_save_IFS |
| 7211 | test -z "$as_dir" && as_dir=. |
| 7212 | for ac_prog in fgrep; do |
| 7213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7214 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 7215 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 7216 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 7217 | # Check for GNU $ac_path_FGREP |
| 7218 | case `"$ac_path_FGREP" --version 2>&1` in |
| 7219 | *GNU*) |
| 7220 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 7221 | *) |
| 7222 | ac_count=0 |
| 7223 | $as_echo_n 0123456789 >"conftest.in" |
| 7224 | while : |
| 7225 | do |
| 7226 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7227 | mv "conftest.tmp" "conftest.in" |
| 7228 | cp "conftest.in" "conftest.nl" |
| 7229 | $as_echo 'FGREP' >> "conftest.nl" |
| 7230 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7231 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7232 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7233 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 7234 | # Best one so far, save it but keep looking for a better one |
| 7235 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 7236 | ac_path_FGREP_max=$ac_count |
| 7237 | fi |
| 7238 | # 10*(2^10) chars as input seems more than enough |
| 7239 | test $ac_count -gt 10 && break |
| 7240 | done |
| 7241 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7242 | esac |
| 7243 | |
| 7244 | $ac_path_FGREP_found && break 3 |
| 7245 | done |
| 7246 | done |
| 7247 | done |
| 7248 | IFS=$as_save_IFS |
| 7249 | if test -z "$ac_cv_path_FGREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7250 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7251 | fi |
| 7252 | else |
| 7253 | ac_cv_path_FGREP=$FGREP |
| 7254 | fi |
| 7255 | |
| 7256 | fi |
| 7257 | fi |
| 7258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 7259 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 7260 | FGREP="$ac_cv_path_FGREP" |
| 7261 | |
| 7262 | |
| 7263 | test -z "$GREP" && GREP=grep |
| 7264 | |
| 7265 | |
| 7266 | |
| 7267 | |
| 7268 | |
| 7269 | |
| 7270 | |
| 7271 | |
| 7272 | |
| 7273 | |
| 7274 | |
| 7275 | |
| 7276 | |
| 7277 | |
| 7278 | |
| 7279 | |
| 7280 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7281 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7282 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 7283 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 7284 | |
| 7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 7286 | $as_echo_n "checking how to print strings... " >&6; } |
| 7287 | # Test print first, because it will be a builtin if present. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7288 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7289 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 7290 | ECHO='print -r --' |
| 7291 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 7292 | ECHO='printf %s\n' |
| 7293 | else |
| 7294 | # Use this function as a fallback that always works. |
| 7295 | func_fallback_echo () |
| 7296 | { |
| 7297 | eval 'cat <<_LTECHO_EOF |
| 7298 | $1 |
| 7299 | _LTECHO_EOF' |
| 7300 | } |
| 7301 | ECHO='func_fallback_echo' |
| 7302 | fi |
| 7303 | |
| 7304 | # func_echo_all arg... |
| 7305 | # Invoke $ECHO with all args, space-separated. |
| 7306 | func_echo_all () |
| 7307 | { |
| 7308 | $ECHO "" |
| 7309 | } |
| 7310 | |
| 7311 | case "$ECHO" in |
| 7312 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 7313 | $as_echo "printf" >&6; } ;; |
| 7314 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 7315 | $as_echo "print -r" >&6; } ;; |
| 7316 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 7317 | $as_echo "cat" >&6; } ;; |
| 7318 | esac |
| 7319 | |
| 7320 | |
| 7321 | |
| 7322 | |
| 7323 | |
| 7324 | |
| 7325 | |
| 7326 | |
| 7327 | |
| 7328 | |
| 7329 | |
| 7330 | |
| 7331 | |
| 7332 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7333 | |
| 7334 | |
| 7335 | # Check whether --with-gnu-ld was given. |
| 7336 | if test "${with_gnu_ld+set}" = set; then : |
| 7337 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 7338 | else |
| 7339 | with_gnu_ld=no |
| 7340 | fi |
| 7341 | |
| 7342 | ac_prog=ld |
| 7343 | if test "$GCC" = yes; then |
| 7344 | # Check if gcc -print-prog-name=ld gives a path. |
| 7345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7346 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 7347 | case $host in |
| 7348 | *-*-mingw*) |
| 7349 | # gcc leaves a trailing carriage return which upsets mingw |
| 7350 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7351 | *) |
| 7352 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7353 | esac |
| 7354 | case $ac_prog in |
| 7355 | # Accept absolute paths. |
| 7356 | [\\/]* | ?:[\\/]*) |
| 7357 | re_direlt='/[^/][^/]*/\.\./' |
| 7358 | # Canonicalize the pathname of ld |
| 7359 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 7360 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 7361 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 7362 | done |
| 7363 | test -z "$LD" && LD="$ac_prog" |
| 7364 | ;; |
| 7365 | "") |
| 7366 | # If it fails, then pretend we aren't using GCC. |
| 7367 | ac_prog=ld |
| 7368 | ;; |
| 7369 | *) |
| 7370 | # If it is relative, then search for the first ld in PATH. |
| 7371 | with_gnu_ld=unknown |
| 7372 | ;; |
| 7373 | esac |
| 7374 | elif test "$with_gnu_ld" = yes; then |
| 7375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 7376 | $as_echo_n "checking for GNU ld... " >&6; } |
| 7377 | else |
| 7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 7379 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 7380 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7381 | if ${lt_cv_path_LD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7382 | $as_echo_n "(cached) " >&6 |
| 7383 | else |
| 7384 | if test -z "$LD"; then |
| 7385 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7386 | for ac_dir in $PATH; do |
| 7387 | IFS="$lt_save_ifs" |
| 7388 | test -z "$ac_dir" && ac_dir=. |
| 7389 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7390 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 7391 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7392 | # but apparently some variants of GNU ld only accept -v. |
| 7393 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7394 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 7395 | *GNU* | *'with BFD'*) |
| 7396 | test "$with_gnu_ld" != no && break |
| 7397 | ;; |
| 7398 | *) |
| 7399 | test "$with_gnu_ld" != yes && break |
| 7400 | ;; |
| 7401 | esac |
| 7402 | fi |
| 7403 | done |
| 7404 | IFS="$lt_save_ifs" |
| 7405 | else |
| 7406 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7407 | fi |
| 7408 | fi |
| 7409 | |
| 7410 | LD="$lt_cv_path_LD" |
| 7411 | if test -n "$LD"; then |
| 7412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 7413 | $as_echo "$LD" >&6; } |
| 7414 | else |
| 7415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7416 | $as_echo "no" >&6; } |
| 7417 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7418 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 7420 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7421 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7422 | $as_echo_n "(cached) " >&6 |
| 7423 | else |
| 7424 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 7425 | case `$LD -v 2>&1 </dev/null` in |
| 7426 | *GNU* | *'with BFD'*) |
| 7427 | lt_cv_prog_gnu_ld=yes |
| 7428 | ;; |
| 7429 | *) |
| 7430 | lt_cv_prog_gnu_ld=no |
| 7431 | ;; |
| 7432 | esac |
| 7433 | fi |
| 7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 7435 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 7436 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 7437 | |
| 7438 | |
| 7439 | |
| 7440 | |
| 7441 | |
| 7442 | |
| 7443 | |
| 7444 | |
| 7445 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7446 | |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 7448 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7449 | if ${ac_cv_prog_cc_c99+:} false; then : |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7450 | $as_echo_n "(cached) " >&6 |
| 7451 | else |
| 7452 | ac_cv_prog_cc_c99=no |
| 7453 | ac_save_CC=$CC |
| 7454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7455 | /* end confdefs.h. */ |
| 7456 | #include <stdarg.h> |
| 7457 | #include <stdbool.h> |
| 7458 | #include <stdlib.h> |
| 7459 | #include <wchar.h> |
| 7460 | #include <stdio.h> |
| 7461 | |
| 7462 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 7463 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 7464 | #define showlist(...) puts (#__VA_ARGS__) |
| 7465 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 7466 | static void |
| 7467 | test_varargs_macros (void) |
| 7468 | { |
| 7469 | int x = 1234; |
| 7470 | int y = 5678; |
| 7471 | debug ("Flag"); |
| 7472 | debug ("X = %d\n", x); |
| 7473 | showlist (The first, second, and third items.); |
| 7474 | report (x>y, "x is %d but y is %d", x, y); |
| 7475 | } |
| 7476 | |
| 7477 | // Check long long types. |
| 7478 | #define BIG64 18446744073709551615ull |
| 7479 | #define BIG32 4294967295ul |
| 7480 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 7481 | #if !BIG_OK |
| 7482 | your preprocessor is broken; |
| 7483 | #endif |
| 7484 | #if BIG_OK |
| 7485 | #else |
| 7486 | your preprocessor is broken; |
| 7487 | #endif |
| 7488 | static long long int bignum = -9223372036854775807LL; |
| 7489 | static unsigned long long int ubignum = BIG64; |
| 7490 | |
| 7491 | struct incomplete_array |
| 7492 | { |
| 7493 | int datasize; |
| 7494 | double data[]; |
| 7495 | }; |
| 7496 | |
| 7497 | struct named_init { |
| 7498 | int number; |
| 7499 | const wchar_t *name; |
| 7500 | double average; |
| 7501 | }; |
| 7502 | |
| 7503 | typedef const char *ccp; |
| 7504 | |
| 7505 | static inline int |
| 7506 | test_restrict (ccp restrict text) |
| 7507 | { |
| 7508 | // See if C++-style comments work. |
| 7509 | // Iterate through items via the restricted pointer. |
| 7510 | // Also check for declarations in for loops. |
| 7511 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 7512 | continue; |
| 7513 | return 0; |
| 7514 | } |
| 7515 | |
| 7516 | // Check varargs and va_copy. |
| 7517 | static void |
| 7518 | test_varargs (const char *format, ...) |
| 7519 | { |
| 7520 | va_list args; |
| 7521 | va_start (args, format); |
| 7522 | va_list args_copy; |
| 7523 | va_copy (args_copy, args); |
| 7524 | |
| 7525 | const char *str; |
| 7526 | int number; |
| 7527 | float fnumber; |
| 7528 | |
| 7529 | while (*format) |
| 7530 | { |
| 7531 | switch (*format++) |
| 7532 | { |
| 7533 | case 's': // string |
| 7534 | str = va_arg (args_copy, const char *); |
| 7535 | break; |
| 7536 | case 'd': // int |
| 7537 | number = va_arg (args_copy, int); |
| 7538 | break; |
| 7539 | case 'f': // float |
| 7540 | fnumber = va_arg (args_copy, double); |
| 7541 | break; |
| 7542 | default: |
| 7543 | break; |
| 7544 | } |
| 7545 | } |
| 7546 | va_end (args_copy); |
| 7547 | va_end (args); |
| 7548 | } |
| 7549 | |
| 7550 | int |
| 7551 | main () |
| 7552 | { |
| 7553 | |
| 7554 | // Check bool. |
| 7555 | _Bool success = false; |
| 7556 | |
| 7557 | // Check restrict. |
| 7558 | if (test_restrict ("String literal") == 0) |
| 7559 | success = true; |
| 7560 | char *restrict newvar = "Another string"; |
| 7561 | |
| 7562 | // Check varargs. |
| 7563 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 7564 | test_varargs_macros (); |
| 7565 | |
| 7566 | // Check flexible array members. |
| 7567 | struct incomplete_array *ia = |
| 7568 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 7569 | ia->datasize = 10; |
| 7570 | for (int i = 0; i < ia->datasize; ++i) |
| 7571 | ia->data[i] = i * 1.234; |
| 7572 | |
| 7573 | // Check named initializers. |
| 7574 | struct named_init ni = { |
| 7575 | .number = 34, |
| 7576 | .name = L"Test wide string", |
| 7577 | .average = 543.34343, |
| 7578 | }; |
| 7579 | |
| 7580 | ni.number = 58; |
| 7581 | |
| 7582 | int dynamic_array[ni.number]; |
| 7583 | dynamic_array[ni.number - 1] = 543; |
| 7584 | |
| 7585 | // work around unused variable warnings |
| 7586 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 7587 | || dynamic_array[ni.number - 1] != 543); |
| 7588 | |
| 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| 7593 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 7594 | do |
| 7595 | CC="$ac_save_CC $ac_arg" |
| 7596 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7597 | ac_cv_prog_cc_c99=$ac_arg |
| 7598 | fi |
| 7599 | rm -f core conftest.err conftest.$ac_objext |
| 7600 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 7601 | done |
| 7602 | rm -f conftest.$ac_ext |
| 7603 | CC=$ac_save_CC |
| 7604 | |
| 7605 | fi |
| 7606 | # AC_CACHE_VAL |
| 7607 | case "x$ac_cv_prog_cc_c99" in |
| 7608 | x) |
| 7609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 7610 | $as_echo "none needed" >&6; } ;; |
| 7611 | xno) |
| 7612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 7613 | $as_echo "unsupported" >&6; } ;; |
| 7614 | *) |
| 7615 | CC="$CC $ac_cv_prog_cc_c99" |
| 7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 7617 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 7618 | esac |
| 7619 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 7620 | |
| 7621 | fi |
| 7622 | |
| 7623 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7624 | if test "x$CC" != xcc; then |
| 7625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 7626 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 7627 | else |
| 7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 7629 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 7630 | fi |
| 7631 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 7632 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7633 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7634 | $as_echo_n "(cached) " >&6 |
| 7635 | else |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7637 | /* end confdefs.h. */ |
| 7638 | |
| 7639 | int |
| 7640 | main () |
| 7641 | { |
| 7642 | |
| 7643 | ; |
| 7644 | return 0; |
| 7645 | } |
| 7646 | _ACEOF |
| 7647 | # Make sure it works both with $CC and with simple cc. |
| 7648 | # We do the test twice because some compilers refuse to overwrite an |
| 7649 | # existing .o file with -o, though they will create one. |
| 7650 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 7651 | rm -f conftest2.* |
| 7652 | if { { case "(($ac_try" in |
| 7653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7654 | *) ac_try_echo=$ac_try;; |
| 7655 | esac |
| 7656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7657 | $as_echo "$ac_try_echo"; } >&5 |
| 7658 | (eval "$ac_try") 2>&5 |
| 7659 | ac_status=$? |
| 7660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7661 | test $ac_status = 0; } && |
| 7662 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 7663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7664 | *) ac_try_echo=$ac_try;; |
| 7665 | esac |
| 7666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7667 | $as_echo "$ac_try_echo"; } >&5 |
| 7668 | (eval "$ac_try") 2>&5 |
| 7669 | ac_status=$? |
| 7670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7671 | test $ac_status = 0; }; |
| 7672 | then |
| 7673 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 7674 | if test "x$CC" != xcc; then |
| 7675 | # Test first that cc exists at all. |
| 7676 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 7677 | { { case "(($ac_try" in |
| 7678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7679 | *) ac_try_echo=$ac_try;; |
| 7680 | esac |
| 7681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7682 | $as_echo "$ac_try_echo"; } >&5 |
| 7683 | (eval "$ac_try") 2>&5 |
| 7684 | ac_status=$? |
| 7685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7686 | test $ac_status = 0; }; }; then |
| 7687 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 7688 | rm -f conftest2.* |
| 7689 | if { { case "(($ac_try" in |
| 7690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7691 | *) ac_try_echo=$ac_try;; |
| 7692 | esac |
| 7693 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7694 | $as_echo "$ac_try_echo"; } >&5 |
| 7695 | (eval "$ac_try") 2>&5 |
| 7696 | ac_status=$? |
| 7697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7698 | test $ac_status = 0; } && |
| 7699 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 7700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7701 | *) ac_try_echo=$ac_try;; |
| 7702 | esac |
| 7703 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7704 | $as_echo "$ac_try_echo"; } >&5 |
| 7705 | (eval "$ac_try") 2>&5 |
| 7706 | ac_status=$? |
| 7707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7708 | test $ac_status = 0; }; |
| 7709 | then |
| 7710 | # cc works too. |
| 7711 | : |
| 7712 | else |
| 7713 | # cc exists but doesn't like -o. |
| 7714 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 7715 | fi |
| 7716 | fi |
| 7717 | fi |
| 7718 | else |
| 7719 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 7720 | fi |
| 7721 | rm -f core conftest* |
| 7722 | |
| 7723 | fi |
| 7724 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7726 | $as_echo "yes" >&6; } |
| 7727 | else |
| 7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7729 | $as_echo "no" >&6; } |
| 7730 | |
| 7731 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 7732 | |
| 7733 | fi |
| 7734 | |
| 7735 | # FIXME: we rely on the cache variable name because |
| 7736 | # there is no other way. |
| 7737 | set dummy $CC |
| 7738 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 7739 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 7740 | if test "$am_t" != yes; then |
| 7741 | # Losing compiler, so override with the script. |
| 7742 | # FIXME: It is wrong to rewrite CC. |
| 7743 | # But if we don't then we get into trouble of one sort or another. |
| 7744 | # A longer-term fix would be to have automake use am__CC in this case, |
| 7745 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 7746 | CC="$am_aux_dir/compile $CC" |
| 7747 | fi |
| 7748 | |
| 7749 | |
| 7750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
| 7751 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7752 | if ${ac_cv_cflags_warn_all+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7753 | $as_echo_n "(cached) " >&6 |
| 7754 | else |
| 7755 | ac_cv_cflags_warn_all="no, unknown" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7756 | ac_ext=c |
| 7757 | ac_cpp='$CPP $CPPFLAGS' |
| 7758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7761 | |
| 7762 | ac_save_CFLAGS="$CFLAGS" |
| 7763 | for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # |
| 7764 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` |
| 7765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7766 | /* end confdefs.h. */ |
| 7767 | |
| 7768 | int |
| 7769 | main () |
| 7770 | { |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 7771 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7772 | ; |
| 7773 | return 0; |
| 7774 | } |
| 7775 | _ACEOF |
| 7776 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7777 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
| 7778 | fi |
| 7779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7780 | done |
| 7781 | CFLAGS="$ac_save_CFLAGS" |
| 7782 | ac_ext=c |
| 7783 | ac_cpp='$CPP $CPPFLAGS' |
| 7784 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7785 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7786 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7787 | |
| 7788 | |
| 7789 | fi |
| 7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 |
| 7791 | $as_echo "$ac_cv_cflags_warn_all" >&6; } |
| 7792 | case ".$ac_cv_cflags_warn_all" in |
| 7793 | .ok|.ok,*) ;; |
| 7794 | .|.no|.no,*) |
| 7795 | ;; |
| 7796 | *) |
| 7797 | if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null |
| 7798 | then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 |
| 7799 | (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 |
| 7800 | ac_status=$? |
| 7801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7802 | test $ac_status = 0; } |
| 7803 | else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 |
| 7804 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 |
| 7805 | ac_status=$? |
| 7806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7807 | test $ac_status = 0; } |
| 7808 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" |
| 7809 | fi |
| 7810 | ;; |
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 7811 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7812 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7813 | |
| 7814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 7815 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 7816 | set x ${MAKE-make} |
| 7817 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7818 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7819 | $as_echo_n "(cached) " >&6 |
| 7820 | else |
| 7821 | cat >conftest.make <<\_ACEOF |
| 7822 | SHELL = /bin/sh |
| 7823 | all: |
| 7824 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 7825 | _ACEOF |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7826 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7827 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 7828 | *@@@%%%=?*=@@@%%%*) |
| 7829 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 7830 | *) |
| 7831 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 7832 | esac |
| 7833 | rm -f conftest.make |
| 7834 | fi |
| 7835 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 7836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7837 | $as_echo "yes" >&6; } |
| 7838 | SET_MAKE= |
| 7839 | else |
| 7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7841 | $as_echo "no" >&6; } |
| 7842 | SET_MAKE="MAKE=${MAKE-make}" |
| 7843 | fi |
| 7844 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7846 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 7847 | LN_S=$as_ln_s |
| 7848 | if test "$LN_S" = "ln -s"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7850 | $as_echo "yes" >&6; } |
| 7851 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7853 | $as_echo "no, using $LN_S" >&6; } |
| 7854 | fi |
| 7855 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 |
| 7857 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } |
| 7858 | |
| 7859 | # Check whether --with-dmalloc was given. |
| 7860 | if test "${with_dmalloc+set}" = set; then : |
| 7861 | withval=$with_dmalloc; if test "$withval" = yes; then |
| 7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7863 | $as_echo "yes" >&6; } |
| 7864 | |
| 7865 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h |
| 7866 | |
| 7867 | LIBS="$LIBS -ldmalloc" |
| 7868 | LDFLAGS="$LDFLAGS -g" |
| 7869 | else |
| 7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7871 | $as_echo "no" >&6; } |
| 7872 | fi |
| 7873 | else |
| 7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7875 | $as_echo "no" >&6; } |
| 7876 | fi |
| 7877 | |
| 7878 | |
| 7879 | |
| 7880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 |
| 7881 | $as_echo_n "checking for __attribute__... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7882 | if ${ax_cv___attribute__+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7883 | $as_echo_n "(cached) " >&6 |
| 7884 | else |
| 7885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7886 | /* end confdefs.h. */ |
| 7887 | #include <stdlib.h> |
| 7888 | static void foo(void) __attribute__ ((unused)); |
| 7889 | static void |
| 7890 | foo(void) { |
| 7891 | exit(1); |
| 7892 | } |
| 7893 | |
| 7894 | int |
| 7895 | main () |
| 7896 | { |
| 7897 | |
| 7898 | ; |
| 7899 | return 0; |
| 7900 | } |
| 7901 | _ACEOF |
| 7902 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7903 | ax_cv___attribute__=yes |
| 7904 | else |
| 7905 | ax_cv___attribute__=no |
| 7906 | |
| 7907 | fi |
| 7908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7909 | |
| 7910 | fi |
| 7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 |
| 7912 | $as_echo "$ax_cv___attribute__" >&6; } |
| 7913 | if test "$ax_cv___attribute__" = "yes"; then |
| 7914 | |
| 7915 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h |
| 7916 | |
| 7917 | fi |
| 7918 | |
| 7919 | |
| 7920 | |
| 7921 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 7922 | if test -n "$ac_tool_prefix"; then |
| 7923 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 7924 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 7925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7926 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7927 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7928 | $as_echo_n "(cached) " >&6 |
| 7929 | else |
| 7930 | case $PKG_CONFIG in |
| 7931 | [\\/]* | ?:[\\/]*) |
| 7932 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7933 | ;; |
| 7934 | *) |
| 7935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7936 | for as_dir in $PATH |
| 7937 | do |
| 7938 | IFS=$as_save_IFS |
| 7939 | test -z "$as_dir" && as_dir=. |
| 7940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7942 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7944 | break 2 |
| 7945 | fi |
| 7946 | done |
| 7947 | done |
| 7948 | IFS=$as_save_IFS |
| 7949 | |
| 7950 | ;; |
| 7951 | esac |
| 7952 | fi |
| 7953 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7954 | if test -n "$PKG_CONFIG"; then |
| 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 7956 | $as_echo "$PKG_CONFIG" >&6; } |
| 7957 | else |
| 7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7959 | $as_echo "no" >&6; } |
| 7960 | fi |
| 7961 | |
| 7962 | |
| 7963 | fi |
| 7964 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 7965 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 7966 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7967 | set dummy pkg-config; ac_word=$2 |
| 7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7969 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7970 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7971 | $as_echo_n "(cached) " >&6 |
| 7972 | else |
| 7973 | case $ac_pt_PKG_CONFIG in |
| 7974 | [\\/]* | ?:[\\/]*) |
| 7975 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 7976 | ;; |
| 7977 | *) |
| 7978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7979 | for as_dir in $PATH |
| 7980 | do |
| 7981 | IFS=$as_save_IFS |
| 7982 | test -z "$as_dir" && as_dir=. |
| 7983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7985 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7987 | break 2 |
| 7988 | fi |
| 7989 | done |
| 7990 | done |
| 7991 | IFS=$as_save_IFS |
| 7992 | |
| 7993 | ;; |
| 7994 | esac |
| 7995 | fi |
| 7996 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 7997 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 7998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 7999 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 8000 | else |
| 8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8002 | $as_echo "no" >&6; } |
| 8003 | fi |
| 8004 | |
| 8005 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8006 | PKG_CONFIG="" |
| 8007 | else |
| 8008 | case $cross_compiling:$ac_tool_warned in |
| 8009 | yes:) |
| 8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8011 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8012 | ac_tool_warned=yes ;; |
| 8013 | esac |
| 8014 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8015 | fi |
| 8016 | else |
| 8017 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8018 | fi |
| 8019 | |
| 8020 | fi |
| 8021 | if test -n "$PKG_CONFIG"; then |
| 8022 | _pkg_min_version=0.9.0 |
| 8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 8024 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 8025 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8027 | $as_echo "yes" >&6; } |
| 8028 | else |
| 8029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8030 | $as_echo "no" >&6; } |
| 8031 | PKG_CONFIG="" |
| 8032 | fi |
| 8033 | |
| 8034 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8035 | |
| 8036 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8037 | # Enable run-time checking. |
| 8038 | # |
| 8039 | # Check whether --enable-bounds-checking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8040 | if test "${enable_bounds_checking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8041 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 8042 | else |
| 8043 | enable_bounds_checking='no' |
| 8044 | fi |
| 8045 | |
| 8046 | |
| 8047 | if test "$enable_bounds_checking" = yes; then |
| 8048 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8049 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8050 | |
| 8051 | fi |
| 8052 | |
| 8053 | # |
| 8054 | # Tests for Windows |
| 8055 | # |
| 8056 | |
| 8057 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| 8059 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8060 | if ${ax_cv_c_compiler_ms+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8061 | $as_echo_n "(cached) " >&6 |
| 8062 | else |
| 8063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8064 | /* end confdefs.h. */ |
| 8065 | |
| 8066 | int |
| 8067 | main () |
| 8068 | { |
| 8069 | #ifndef _MSC_VER |
| 8070 | choke me |
| 8071 | #endif |
| 8072 | |
| 8073 | ; |
| 8074 | return 0; |
| 8075 | } |
| 8076 | _ACEOF |
| 8077 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8078 | ax_compiler_ms=yes |
| 8079 | else |
| 8080 | ax_compiler_ms=no |
| 8081 | fi |
| 8082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8083 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 8084 | |
| 8085 | fi |
| 8086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| 8087 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8088 | |
| 8089 | GDI32_LIBS='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8090 | native_win32_build='no' |
| 8091 | cygwin_build='no' |
| 8092 | case "${host_os}" in |
| 8093 | cygwin* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8094 | cygwin_build='yes' |
| 8095 | GDI32_LIBS='-lgdi32' |
| 8096 | ;; |
| 8097 | mingw* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8098 | native_win32_build='yes' |
| 8099 | GDI32_LIBS='-lgdi32' |
| 8100 | ;; |
| 8101 | esac |
| 8102 | if test "${GDI32_LIBS}x" != 'x'; then |
| 8103 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8104 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8105 | |
| 8106 | fi |
| 8107 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8108 | if test "${GDI32_LIBS}x" != 'x' ; then |
| 8109 | WINGDI32_DELEGATE_TRUE= |
| 8110 | WINGDI32_DELEGATE_FALSE='#' |
| 8111 | else |
| 8112 | WINGDI32_DELEGATE_TRUE='#' |
| 8113 | WINGDI32_DELEGATE_FALSE= |
| 8114 | fi |
| 8115 | |
| 8116 | if test "${native_win32_build}" = 'yes' ; then |
| 8117 | WIN32_NATIVE_BUILD_TRUE= |
| 8118 | WIN32_NATIVE_BUILD_FALSE='#' |
| 8119 | else |
| 8120 | WIN32_NATIVE_BUILD_TRUE='#' |
| 8121 | WIN32_NATIVE_BUILD_FALSE= |
| 8122 | fi |
| 8123 | |
| 8124 | if test "${cygwin_build}" = 'yes' ; then |
| 8125 | CYGWIN_BUILD_TRUE= |
| 8126 | CYGWIN_BUILD_FALSE='#' |
| 8127 | else |
| 8128 | CYGWIN_BUILD_TRUE='#' |
| 8129 | CYGWIN_BUILD_FALSE= |
| 8130 | fi |
| 8131 | |
| 8132 | if test "x${CC}" = 'xcl.exe' ; then |
| 8133 | USING_CL_TRUE= |
| 8134 | USING_CL_FALSE='#' |
| 8135 | else |
| 8136 | USING_CL_TRUE='#' |
| 8137 | USING_CL_FALSE= |
| 8138 | fi |
| 8139 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8140 | |
| 8141 | WinPathScript="${srcdirfull}/winpath.sh" |
| 8142 | |
| 8143 | |
| 8144 | # |
| 8145 | # Compiler flags tweaks |
| 8146 | # |
| 8147 | if test "${GCC}" != "yes"; then |
| 8148 | case "${host}" in |
| 8149 | *-*-hpux* ) |
| 8150 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 8151 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 8152 | if test -n "${CXXFLAGS}"; then |
| 8153 | CXXFLAGS='-AA' |
| 8154 | else |
| 8155 | CXXFLAGS="${CXXFLAGS} -AA" |
| 8156 | fi |
| 8157 | ;; |
| 8158 | *-dec-osf5.* ) |
| 8159 | # Compaq alphaev68-dec-osf5.1 compiler |
| 8160 | if test -n "${CXXFLAGS}"; then |
| 8161 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 8162 | else |
| 8163 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 8164 | fi |
| 8165 | esac |
| 8166 | fi |
| 8167 | |
| 8168 | # Check for lazy-loading. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8170 | $as_echo_n "checking for linker lazyload option... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8171 | if ${im_cv_ld_lazyload+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8172 | $as_echo_n "(cached) " >&6 |
| 8173 | else |
| 8174 | |
| 8175 | im_cv_ld_lazyload='none' |
| 8176 | case "${host}" in |
| 8177 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 8178 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 8179 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 8180 | fi |
| 8181 | ;; |
| 8182 | esac |
| 8183 | |
| 8184 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8186 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 8187 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 8188 | if test -z "${LDFLAGS}" ; then |
| 8189 | LDFLAGS="${im_cv_ld_lazyload}" |
| 8190 | else |
| 8191 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 8192 | fi |
| 8193 | fi |
| 8194 | |
| 8195 | case "$host" in |
| 8196 | *darwin* | *-macos10*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8197 | # Check whether --enable-osx-universal-binary was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8198 | if test "${enable_osx_universal_binary+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8199 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 8200 | else |
| 8201 | build_osxuniversal=no |
| 8202 | fi |
| 8203 | |
| 8204 | |
| 8205 | if test "${build_osxuniversal}" != no ; then |
| 8206 | if test "$enable_dependency_tracking" != no ; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 8207 | as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8208 | Please re-run configure with these options: |
| 8209 | --disable-dependency-tracking --enable-osx-universal-binary |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8210 | " "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8211 | fi |
| 8212 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 8213 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 8214 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 8215 | fi |
| 8216 | ;; |
| 8217 | esac |
| 8218 | |
| 8219 | # Enable support for threads |
| 8220 | |
| 8221 | # Check whether --with-threads was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8222 | if test "${with_threads+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8223 | withval=$with_threads; with_threads=$withval |
| 8224 | else |
| 8225 | with_threads='yes' |
| 8226 | fi |
| 8227 | |
| 8228 | |
| 8229 | have_threads=no |
| 8230 | if test "$with_threads" != 'no'; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8231 | |
| 8232 | |
| 8233 | |
| 8234 | ac_ext=c |
| 8235 | ac_cpp='$CPP $CPPFLAGS' |
| 8236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8239 | |
| 8240 | ax_pthread_ok=no |
| 8241 | |
| 8242 | # We used to check for pthread.h first, but this fails if pthread.h |
| 8243 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 8244 | # It gets checked for in the link test anyway. |
| 8245 | |
| 8246 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 8247 | # etcetera environment variables, and if threads linking works using |
| 8248 | # them: |
| 8249 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 8250 | save_CFLAGS="$CFLAGS" |
| 8251 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8252 | save_LIBS="$LIBS" |
| 8253 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 8255 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 8256 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8257 | /* end confdefs.h. */ |
| 8258 | |
| 8259 | /* Override any GCC internal prototype to avoid an error. |
| 8260 | Use char because int might match the return type of a GCC |
| 8261 | builtin and then its argument prototype would still apply. */ |
| 8262 | #ifdef __cplusplus |
| 8263 | extern "C" |
| 8264 | #endif |
| 8265 | char pthread_join (); |
| 8266 | int |
| 8267 | main () |
| 8268 | { |
| 8269 | return pthread_join (); |
| 8270 | ; |
| 8271 | return 0; |
| 8272 | } |
| 8273 | _ACEOF |
| 8274 | if ac_fn_c_try_link "$LINENO"; then : |
| 8275 | ax_pthread_ok=yes |
| 8276 | fi |
| 8277 | rm -f core conftest.err conftest.$ac_objext \ |
| 8278 | conftest$ac_exeext conftest.$ac_ext |
| 8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8280 | $as_echo "$ax_pthread_ok" >&6; } |
| 8281 | if test x"$ax_pthread_ok" = xno; then |
| 8282 | PTHREAD_LIBS="" |
| 8283 | PTHREAD_CFLAGS="" |
| 8284 | fi |
| 8285 | LIBS="$save_LIBS" |
| 8286 | CFLAGS="$save_CFLAGS" |
| 8287 | fi |
| 8288 | |
| 8289 | # We must check for the threads library under a number of different |
| 8290 | # names; the ordering is very important because some systems |
| 8291 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 8292 | # libraries is broken (non-POSIX). |
| 8293 | |
| 8294 | # Create a list of thread flags to try. Items starting with a "-" are |
| 8295 | # C compiler flags, and other items are library names, except for "none" |
| 8296 | # which indicates that we try without any flags at all, and "pthread-config" |
| 8297 | # which is a program returning the flags for the Pth emulation library. |
| 8298 | |
| 8299 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 8300 | |
| 8301 | # The ordering *is* (sometimes) important. Some notes on the |
| 8302 | # individual items follow: |
| 8303 | |
| 8304 | # pthreads: AIX (must check this before -lpthread) |
| 8305 | # none: in case threads are in libc; should be tried before -Kthread and |
| 8306 | # other compiler flags to prevent continual compiler warnings |
| 8307 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 8308 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 8309 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 8310 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 8311 | # -pthreads: Solaris/gcc |
| 8312 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 8313 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 8314 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 8315 | # also defines -D_REENTRANT) |
| 8316 | # ... -mt is also the pthreads flag for HP/aCC |
| 8317 | # pthread: Linux, etcetera |
| 8318 | # --thread-safe: KAI C++ |
| 8319 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 8320 | |
| 8321 | case "${host_cpu}-${host_os}" in |
| 8322 | *solaris*) |
| 8323 | |
| 8324 | # On Solaris (at least, for some versions), libc contains stubbed |
| 8325 | # (non-functional) versions of the pthreads routines, so link-based |
| 8326 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 8327 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 8328 | # a function called by this macro, so we could check for that, but |
| 8329 | # who knows whether they'll stub that too in a future libc.) So, |
| 8330 | # we'll just look for -pthreads and -lpthread first: |
| 8331 | |
| 8332 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 8333 | ;; |
| 8334 | |
| 8335 | *-darwin*) |
| 8336 | ax_pthread_flags="-pthread $ax_pthread_flags" |
| 8337 | ;; |
| 8338 | esac |
| 8339 | |
| 8340 | if test x"$ax_pthread_ok" = xno; then |
| 8341 | for flag in $ax_pthread_flags; do |
| 8342 | |
| 8343 | case $flag in |
| 8344 | none) |
| 8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 8346 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 8347 | ;; |
| 8348 | |
| 8349 | -*) |
| 8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 8351 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 8352 | PTHREAD_CFLAGS="$flag" |
| 8353 | ;; |
| 8354 | |
| 8355 | pthread-config) |
| 8356 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 8357 | set dummy pthread-config; ac_word=$2 |
| 8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8359 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8360 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8361 | $as_echo_n "(cached) " >&6 |
| 8362 | else |
| 8363 | if test -n "$ax_pthread_config"; then |
| 8364 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 8365 | else |
| 8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8367 | for as_dir in $PATH |
| 8368 | do |
| 8369 | IFS=$as_save_IFS |
| 8370 | test -z "$as_dir" && as_dir=. |
| 8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8373 | ac_cv_prog_ax_pthread_config="yes" |
| 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8375 | break 2 |
| 8376 | fi |
| 8377 | done |
| 8378 | done |
| 8379 | IFS=$as_save_IFS |
| 8380 | |
| 8381 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 8382 | fi |
| 8383 | fi |
| 8384 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 8385 | if test -n "$ax_pthread_config"; then |
| 8386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 8387 | $as_echo "$ax_pthread_config" >&6; } |
| 8388 | else |
| 8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8390 | $as_echo "no" >&6; } |
| 8391 | fi |
| 8392 | |
| 8393 | |
| 8394 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 8395 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 8396 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 8397 | ;; |
| 8398 | |
| 8399 | *) |
| 8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 8401 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 8402 | PTHREAD_LIBS="-l$flag" |
| 8403 | ;; |
| 8404 | esac |
| 8405 | |
| 8406 | save_LIBS="$LIBS" |
| 8407 | save_CFLAGS="$CFLAGS" |
| 8408 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8409 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8410 | |
| 8411 | # Check for various functions. We must include pthread.h, |
| 8412 | # since some functions may be macros. (On the Sequent, we |
| 8413 | # need a special flag -Kthread to make this header compile.) |
| 8414 | # We check for pthread_join because it is in -lpthread on IRIX |
| 8415 | # while pthread_create is in libc. We check for pthread_attr_init |
| 8416 | # due to DEC craziness with -lpthreads. We check for |
| 8417 | # pthread_cleanup_push because it is one of the few pthread |
| 8418 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 8419 | # We try pthread_create on general principles. |
| 8420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8421 | /* end confdefs.h. */ |
| 8422 | #include <pthread.h> |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 8423 | static void routine(void* a) {a=0;} |
| 8424 | static void* start_routine(void* a) {return a;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8425 | int |
| 8426 | main () |
| 8427 | { |
| 8428 | pthread_t th; pthread_attr_t attr; |
| 8429 | pthread_create(&th,0,start_routine,0); |
| 8430 | pthread_join(th, 0); |
| 8431 | pthread_attr_init(&attr); |
| 8432 | pthread_cleanup_push(routine, 0); |
| 8433 | pthread_cleanup_pop(0); |
| 8434 | ; |
| 8435 | return 0; |
| 8436 | } |
| 8437 | _ACEOF |
| 8438 | if ac_fn_c_try_link "$LINENO"; then : |
| 8439 | ax_pthread_ok=yes |
| 8440 | fi |
| 8441 | rm -f core conftest.err conftest.$ac_objext \ |
| 8442 | conftest$ac_exeext conftest.$ac_ext |
| 8443 | |
| 8444 | LIBS="$save_LIBS" |
| 8445 | CFLAGS="$save_CFLAGS" |
| 8446 | |
| 8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8448 | $as_echo "$ax_pthread_ok" >&6; } |
| 8449 | if test "x$ax_pthread_ok" = xyes; then |
| 8450 | break; |
| 8451 | fi |
| 8452 | |
| 8453 | PTHREAD_LIBS="" |
| 8454 | PTHREAD_CFLAGS="" |
| 8455 | done |
| 8456 | fi |
| 8457 | |
| 8458 | # Various other checks: |
| 8459 | if test "x$ax_pthread_ok" = xyes; then |
| 8460 | save_LIBS="$LIBS" |
| 8461 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8462 | save_CFLAGS="$CFLAGS" |
| 8463 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8464 | |
| 8465 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 8467 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 8468 | attr_name=unknown |
| 8469 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 8470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8471 | /* end confdefs.h. */ |
| 8472 | #include <pthread.h> |
| 8473 | int |
| 8474 | main () |
| 8475 | { |
| 8476 | int attr=$attr; return attr; |
| 8477 | ; |
| 8478 | return 0; |
| 8479 | } |
| 8480 | _ACEOF |
| 8481 | if ac_fn_c_try_link "$LINENO"; then : |
| 8482 | attr_name=$attr; break |
| 8483 | fi |
| 8484 | rm -f core conftest.err conftest.$ac_objext \ |
| 8485 | conftest$ac_exeext conftest.$ac_ext |
| 8486 | done |
| 8487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 8488 | $as_echo "$attr_name" >&6; } |
| 8489 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 8490 | |
| 8491 | cat >>confdefs.h <<_ACEOF |
| 8492 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 8493 | _ACEOF |
| 8494 | |
| 8495 | fi |
| 8496 | |
| 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 8498 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 8499 | flag=no |
| 8500 | case "${host_cpu}-${host_os}" in |
| 8501 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 8502 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 8503 | esac |
| 8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 8505 | $as_echo "${flag}" >&6; } |
| 8506 | if test "x$flag" != xno; then |
| 8507 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 8508 | fi |
| 8509 | |
| 8510 | LIBS="$save_LIBS" |
| 8511 | CFLAGS="$save_CFLAGS" |
| 8512 | |
| 8513 | # More AIX lossage: must compile with xlc_r or cc_r |
| 8514 | if test x"$GCC" != xyes; then |
| 8515 | for ac_prog in xlc_r cc_r |
| 8516 | do |
| 8517 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8518 | set dummy $ac_prog; ac_word=$2 |
| 8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8520 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8521 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8522 | $as_echo_n "(cached) " >&6 |
| 8523 | else |
| 8524 | if test -n "$PTHREAD_CC"; then |
| 8525 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 8526 | else |
| 8527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8528 | for as_dir in $PATH |
| 8529 | do |
| 8530 | IFS=$as_save_IFS |
| 8531 | test -z "$as_dir" && as_dir=. |
| 8532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8534 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 8535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8536 | break 2 |
| 8537 | fi |
| 8538 | done |
| 8539 | done |
| 8540 | IFS=$as_save_IFS |
| 8541 | |
| 8542 | fi |
| 8543 | fi |
| 8544 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 8545 | if test -n "$PTHREAD_CC"; then |
| 8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 8547 | $as_echo "$PTHREAD_CC" >&6; } |
| 8548 | else |
| 8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8550 | $as_echo "no" >&6; } |
| 8551 | fi |
| 8552 | |
| 8553 | |
| 8554 | test -n "$PTHREAD_CC" && break |
| 8555 | done |
| 8556 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 8557 | |
| 8558 | else |
| 8559 | PTHREAD_CC=$CC |
| 8560 | fi |
| 8561 | else |
| 8562 | PTHREAD_CC="$CC" |
| 8563 | fi |
| 8564 | |
| 8565 | |
| 8566 | |
| 8567 | |
| 8568 | |
| 8569 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 8570 | if test x"$ax_pthread_ok" = xyes; then |
| 8571 | |
| 8572 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 8573 | |
| 8574 | : |
| 8575 | else |
| 8576 | ax_pthread_ok=no |
| 8577 | |
| 8578 | fi |
| 8579 | ac_ext=c |
| 8580 | ac_cpp='$CPP $CPPFLAGS' |
| 8581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8584 | |
| 8585 | |
| cristy | 7acf8fb | 2010-09-23 19:58:53 +0000 | [diff] [blame] | 8586 | if test "$ax_pthread_ok" = yes; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8587 | have_threads=yes |
| 8588 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 8589 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 8590 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 8591 | if test "$CC" != "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8593 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 8594 | CC="$PTHREAD_CC" |
| 8595 | fi |
| cristy | 55bf91c | 2010-09-24 00:29:41 +0000 | [diff] [blame] | 8596 | |
| 8597 | $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h |
| 8598 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8599 | fi |
| 8600 | fi |
| 8601 | |
| 8602 | # Enable support for OpenMP |
| 8603 | if test "$have_threads" != 'yes'; then |
| 8604 | ac_cv_prog_c_openmp=unsupported |
| 8605 | fi |
| 8606 | |
| 8607 | OPENMP_CFLAGS= |
| 8608 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8609 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8610 | enableval=$enable_openmp; |
| 8611 | fi |
| 8612 | |
| 8613 | if test "$enable_openmp" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8615 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8616 | if ${ac_cv_prog_c_openmp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8617 | $as_echo_n "(cached) " >&6 |
| 8618 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8620 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8621 | |
| 8622 | #ifndef _OPENMP |
| 8623 | choke me |
| 8624 | #endif |
| 8625 | #include <omp.h> |
| 8626 | int main () { return omp_get_num_threads (); } |
| 8627 | |
| 8628 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8629 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8630 | ac_cv_prog_c_openmp='none needed' |
| 8631 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8632 | ac_cv_prog_c_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8633 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 8634 | ac_save_CFLAGS=$CFLAGS |
| 8635 | CFLAGS="$CFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8637 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8638 | |
| 8639 | #ifndef _OPENMP |
| 8640 | choke me |
| 8641 | #endif |
| 8642 | #include <omp.h> |
| 8643 | int main () { return omp_get_num_threads (); } |
| 8644 | |
| 8645 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8646 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8647 | ac_cv_prog_c_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8648 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8649 | rm -f core conftest.err conftest.$ac_objext \ |
| 8650 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8651 | CFLAGS=$ac_save_CFLAGS |
| 8652 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 8653 | break |
| 8654 | fi |
| 8655 | done |
| 8656 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8657 | rm -f core conftest.err conftest.$ac_objext \ |
| 8658 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8659 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8661 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 8662 | case $ac_cv_prog_c_openmp in #( |
| 8663 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8664 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8665 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8666 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8667 | esac |
| 8668 | fi |
| 8669 | |
| 8670 | |
| 8671 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 8672 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 8673 | |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 8674 | if test "$enable_openmp" != no; then |
| 8675 | if test "$ac_cv_prog_c_openmp" != 'unsupported'; then |
| 8676 | MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" |
| 8677 | fi |
| 8678 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8679 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8680 | # Enable support for OpenCL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8681 | |
| 8682 | |
| 8683 | |
| 8684 | ac_ext=c |
| 8685 | ac_cpp='$CPP $CPPFLAGS' |
| 8686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8689 | |
| 8690 | ax_pthread_ok=no |
| 8691 | |
| 8692 | # We used to check for pthread.h first, but this fails if pthread.h |
| 8693 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 8694 | # It gets checked for in the link test anyway. |
| 8695 | |
| 8696 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 8697 | # etcetera environment variables, and if threads linking works using |
| 8698 | # them: |
| 8699 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 8700 | save_CFLAGS="$CFLAGS" |
| 8701 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8702 | save_LIBS="$LIBS" |
| 8703 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 8705 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 8706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8707 | /* end confdefs.h. */ |
| 8708 | |
| 8709 | /* Override any GCC internal prototype to avoid an error. |
| 8710 | Use char because int might match the return type of a GCC |
| 8711 | builtin and then its argument prototype would still apply. */ |
| 8712 | #ifdef __cplusplus |
| 8713 | extern "C" |
| 8714 | #endif |
| 8715 | char pthread_join (); |
| 8716 | int |
| 8717 | main () |
| 8718 | { |
| 8719 | return pthread_join (); |
| 8720 | ; |
| 8721 | return 0; |
| 8722 | } |
| 8723 | _ACEOF |
| 8724 | if ac_fn_c_try_link "$LINENO"; then : |
| 8725 | ax_pthread_ok=yes |
| 8726 | fi |
| 8727 | rm -f core conftest.err conftest.$ac_objext \ |
| 8728 | conftest$ac_exeext conftest.$ac_ext |
| 8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8730 | $as_echo "$ax_pthread_ok" >&6; } |
| 8731 | if test x"$ax_pthread_ok" = xno; then |
| 8732 | PTHREAD_LIBS="" |
| 8733 | PTHREAD_CFLAGS="" |
| 8734 | fi |
| 8735 | LIBS="$save_LIBS" |
| 8736 | CFLAGS="$save_CFLAGS" |
| 8737 | fi |
| 8738 | |
| 8739 | # We must check for the threads library under a number of different |
| 8740 | # names; the ordering is very important because some systems |
| 8741 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 8742 | # libraries is broken (non-POSIX). |
| 8743 | |
| 8744 | # Create a list of thread flags to try. Items starting with a "-" are |
| 8745 | # C compiler flags, and other items are library names, except for "none" |
| 8746 | # which indicates that we try without any flags at all, and "pthread-config" |
| 8747 | # which is a program returning the flags for the Pth emulation library. |
| 8748 | |
| 8749 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 8750 | |
| 8751 | # The ordering *is* (sometimes) important. Some notes on the |
| 8752 | # individual items follow: |
| 8753 | |
| 8754 | # pthreads: AIX (must check this before -lpthread) |
| 8755 | # none: in case threads are in libc; should be tried before -Kthread and |
| 8756 | # other compiler flags to prevent continual compiler warnings |
| 8757 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 8758 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 8759 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 8760 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 8761 | # -pthreads: Solaris/gcc |
| 8762 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 8763 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 8764 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 8765 | # also defines -D_REENTRANT) |
| 8766 | # ... -mt is also the pthreads flag for HP/aCC |
| 8767 | # pthread: Linux, etcetera |
| 8768 | # --thread-safe: KAI C++ |
| 8769 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 8770 | |
| 8771 | case "${host_cpu}-${host_os}" in |
| 8772 | *solaris*) |
| 8773 | |
| 8774 | # On Solaris (at least, for some versions), libc contains stubbed |
| 8775 | # (non-functional) versions of the pthreads routines, so link-based |
| 8776 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 8777 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 8778 | # a function called by this macro, so we could check for that, but |
| 8779 | # who knows whether they'll stub that too in a future libc.) So, |
| 8780 | # we'll just look for -pthreads and -lpthread first: |
| 8781 | |
| 8782 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 8783 | ;; |
| 8784 | |
| 8785 | *-darwin*) |
| 8786 | ax_pthread_flags="-pthread $ax_pthread_flags" |
| 8787 | ;; |
| 8788 | esac |
| 8789 | |
| 8790 | if test x"$ax_pthread_ok" = xno; then |
| 8791 | for flag in $ax_pthread_flags; do |
| 8792 | |
| 8793 | case $flag in |
| 8794 | none) |
| 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 8796 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 8797 | ;; |
| 8798 | |
| 8799 | -*) |
| 8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 8801 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 8802 | PTHREAD_CFLAGS="$flag" |
| 8803 | ;; |
| 8804 | |
| 8805 | pthread-config) |
| 8806 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 8807 | set dummy pthread-config; ac_word=$2 |
| 8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8809 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8810 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8811 | $as_echo_n "(cached) " >&6 |
| 8812 | else |
| 8813 | if test -n "$ax_pthread_config"; then |
| 8814 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 8815 | else |
| 8816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8817 | for as_dir in $PATH |
| 8818 | do |
| 8819 | IFS=$as_save_IFS |
| 8820 | test -z "$as_dir" && as_dir=. |
| 8821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8823 | ac_cv_prog_ax_pthread_config="yes" |
| 8824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8825 | break 2 |
| 8826 | fi |
| 8827 | done |
| 8828 | done |
| 8829 | IFS=$as_save_IFS |
| 8830 | |
| 8831 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 8832 | fi |
| 8833 | fi |
| 8834 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 8835 | if test -n "$ax_pthread_config"; then |
| 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 8837 | $as_echo "$ax_pthread_config" >&6; } |
| 8838 | else |
| 8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8840 | $as_echo "no" >&6; } |
| 8841 | fi |
| 8842 | |
| 8843 | |
| 8844 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 8845 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 8846 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 8847 | ;; |
| 8848 | |
| 8849 | *) |
| 8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 8851 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 8852 | PTHREAD_LIBS="-l$flag" |
| 8853 | ;; |
| 8854 | esac |
| 8855 | |
| 8856 | save_LIBS="$LIBS" |
| 8857 | save_CFLAGS="$CFLAGS" |
| 8858 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8859 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8860 | |
| 8861 | # Check for various functions. We must include pthread.h, |
| 8862 | # since some functions may be macros. (On the Sequent, we |
| 8863 | # need a special flag -Kthread to make this header compile.) |
| 8864 | # We check for pthread_join because it is in -lpthread on IRIX |
| 8865 | # while pthread_create is in libc. We check for pthread_attr_init |
| 8866 | # due to DEC craziness with -lpthreads. We check for |
| 8867 | # pthread_cleanup_push because it is one of the few pthread |
| 8868 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 8869 | # We try pthread_create on general principles. |
| 8870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8871 | /* end confdefs.h. */ |
| 8872 | #include <pthread.h> |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 8873 | static void routine(void* a) {a=0;} |
| 8874 | static void* start_routine(void* a) {return a;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8875 | int |
| 8876 | main () |
| 8877 | { |
| 8878 | pthread_t th; pthread_attr_t attr; |
| 8879 | pthread_create(&th,0,start_routine,0); |
| 8880 | pthread_join(th, 0); |
| 8881 | pthread_attr_init(&attr); |
| 8882 | pthread_cleanup_push(routine, 0); |
| 8883 | pthread_cleanup_pop(0); |
| 8884 | ; |
| 8885 | return 0; |
| 8886 | } |
| 8887 | _ACEOF |
| 8888 | if ac_fn_c_try_link "$LINENO"; then : |
| 8889 | ax_pthread_ok=yes |
| 8890 | fi |
| 8891 | rm -f core conftest.err conftest.$ac_objext \ |
| 8892 | conftest$ac_exeext conftest.$ac_ext |
| 8893 | |
| 8894 | LIBS="$save_LIBS" |
| 8895 | CFLAGS="$save_CFLAGS" |
| 8896 | |
| 8897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 8898 | $as_echo "$ax_pthread_ok" >&6; } |
| 8899 | if test "x$ax_pthread_ok" = xyes; then |
| 8900 | break; |
| 8901 | fi |
| 8902 | |
| 8903 | PTHREAD_LIBS="" |
| 8904 | PTHREAD_CFLAGS="" |
| 8905 | done |
| 8906 | fi |
| 8907 | |
| 8908 | # Various other checks: |
| 8909 | if test "x$ax_pthread_ok" = xyes; then |
| 8910 | save_LIBS="$LIBS" |
| 8911 | LIBS="$PTHREAD_LIBS $LIBS" |
| 8912 | save_CFLAGS="$CFLAGS" |
| 8913 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 8914 | |
| 8915 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 8916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 8917 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 8918 | attr_name=unknown |
| 8919 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 8920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8921 | /* end confdefs.h. */ |
| 8922 | #include <pthread.h> |
| 8923 | int |
| 8924 | main () |
| 8925 | { |
| 8926 | int attr=$attr; return attr; |
| 8927 | ; |
| 8928 | return 0; |
| 8929 | } |
| 8930 | _ACEOF |
| 8931 | if ac_fn_c_try_link "$LINENO"; then : |
| 8932 | attr_name=$attr; break |
| 8933 | fi |
| 8934 | rm -f core conftest.err conftest.$ac_objext \ |
| 8935 | conftest$ac_exeext conftest.$ac_ext |
| 8936 | done |
| 8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 8938 | $as_echo "$attr_name" >&6; } |
| 8939 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 8940 | |
| 8941 | cat >>confdefs.h <<_ACEOF |
| 8942 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 8943 | _ACEOF |
| 8944 | |
| 8945 | fi |
| 8946 | |
| 8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 8948 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 8949 | flag=no |
| 8950 | case "${host_cpu}-${host_os}" in |
| 8951 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 8952 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 8953 | esac |
| 8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 8955 | $as_echo "${flag}" >&6; } |
| 8956 | if test "x$flag" != xno; then |
| 8957 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 8958 | fi |
| 8959 | |
| 8960 | LIBS="$save_LIBS" |
| 8961 | CFLAGS="$save_CFLAGS" |
| 8962 | |
| 8963 | # More AIX lossage: must compile with xlc_r or cc_r |
| 8964 | if test x"$GCC" != xyes; then |
| 8965 | for ac_prog in xlc_r cc_r |
| 8966 | do |
| 8967 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8968 | set dummy $ac_prog; ac_word=$2 |
| 8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8970 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8971 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8972 | $as_echo_n "(cached) " >&6 |
| 8973 | else |
| 8974 | if test -n "$PTHREAD_CC"; then |
| 8975 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 8976 | else |
| 8977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8978 | for as_dir in $PATH |
| 8979 | do |
| 8980 | IFS=$as_save_IFS |
| 8981 | test -z "$as_dir" && as_dir=. |
| 8982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8984 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 8985 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8986 | break 2 |
| 8987 | fi |
| 8988 | done |
| 8989 | done |
| 8990 | IFS=$as_save_IFS |
| 8991 | |
| 8992 | fi |
| 8993 | fi |
| 8994 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 8995 | if test -n "$PTHREAD_CC"; then |
| 8996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 8997 | $as_echo "$PTHREAD_CC" >&6; } |
| 8998 | else |
| 8999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9000 | $as_echo "no" >&6; } |
| 9001 | fi |
| 9002 | |
| 9003 | |
| 9004 | test -n "$PTHREAD_CC" && break |
| 9005 | done |
| 9006 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 9007 | |
| 9008 | else |
| 9009 | PTHREAD_CC=$CC |
| 9010 | fi |
| 9011 | else |
| 9012 | PTHREAD_CC="$CC" |
| 9013 | fi |
| 9014 | |
| 9015 | |
| 9016 | |
| 9017 | |
| 9018 | |
| 9019 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 9020 | if test x"$ax_pthread_ok" = xyes; then |
| 9021 | |
| 9022 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 9023 | |
| 9024 | : |
| 9025 | else |
| 9026 | ax_pthread_ok=no |
| 9027 | |
| 9028 | fi |
| 9029 | ac_ext=c |
| 9030 | ac_cpp='$CPP $CPPFLAGS' |
| 9031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9034 | |
| 9035 | |
| 9036 | |
| 9037 | # Check whether --enable-opencl was given. |
| 9038 | if test "${enable_opencl+set}" = set; then : |
| 9039 | enableval=$enable_opencl; disable_opencl=$enableval |
| 9040 | else |
| 9041 | disable_opencl='yes' |
| 9042 | fi |
| 9043 | |
| 9044 | |
| 9045 | if test "$disable_opencl" = 'yes'; then |
| 9046 | ac_ext=c |
| 9047 | ac_cpp='$CPP $CPPFLAGS' |
| 9048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9051 | |
| 9052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| 9053 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9054 | if ${ax_cv_c_compiler_ms+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9055 | $as_echo_n "(cached) " >&6 |
| 9056 | else |
| 9057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9058 | /* end confdefs.h. */ |
| 9059 | |
| 9060 | int |
| 9061 | main () |
| 9062 | { |
| 9063 | #ifndef _MSC_VER |
| 9064 | choke me |
| 9065 | #endif |
| 9066 | |
| 9067 | ; |
| 9068 | return 0; |
| 9069 | } |
| 9070 | _ACEOF |
| 9071 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9072 | ax_compiler_ms=yes |
| 9073 | else |
| 9074 | ax_compiler_ms=no |
| 9075 | fi |
| 9076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9077 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 9078 | |
| 9079 | fi |
| 9080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| 9081 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| 9082 | if test X$ax_compiler_ms = Xno; then : |
| 9083 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" |
| 9084 | fi |
| 9085 | |
| 9086 | ax_save_CPPFLAGS=$CPPFLAGS |
| 9087 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 9088 | for ac_header in CL/cl.h OpenCL/cl.h |
| 9089 | do : |
| 9090 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9091 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9092 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9093 | cat >>confdefs.h <<_ACEOF |
| 9094 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9095 | _ACEOF |
| 9096 | |
| 9097 | fi |
| 9098 | |
| 9099 | done |
| 9100 | |
| 9101 | CPPFLAGS=$ax_save_CPPFLAGS |
| 9102 | |
| 9103 | for ac_header in windows.h |
| 9104 | do : |
| 9105 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9106 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9107 | cat >>confdefs.h <<_ACEOF |
| 9108 | #define HAVE_WINDOWS_H 1 |
| 9109 | _ACEOF |
| 9110 | |
| 9111 | fi |
| 9112 | |
| 9113 | done |
| 9114 | |
| 9115 | |
| 9116 | |
| 9117 | |
| 9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 |
| 9119 | $as_echo_n "checking for OpenCL library... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9120 | if ${ax_cv_check_cl_libcl+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9121 | $as_echo_n "(cached) " >&6 |
| 9122 | else |
| 9123 | ax_cv_check_cl_libcl=no |
| 9124 | case $host_cpu in |
| 9125 | x86_64) ax_check_cl_libdir=lib64 ;; |
| 9126 | *) ax_check_cl_libdir=lib ;; |
| 9127 | esac |
| 9128 | ax_save_CPPFLAGS=$CPPFLAGS |
| 9129 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 9130 | ax_save_LIBS=$LIBS |
| 9131 | LIBS="" |
| 9132 | ax_check_libs="-lOpenCL -lCL -lclparser" |
| 9133 | for ax_lib in $ax_check_libs; do |
| 9134 | if test X$ax_compiler_ms = Xyes; then : |
| 9135 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` |
| 9136 | else |
| 9137 | ax_try_lib=$ax_lib |
| 9138 | fi |
| 9139 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" |
| 9140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9141 | /* end confdefs.h. */ |
| 9142 | |
| 9143 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9144 | # include <windows.h> |
| 9145 | # endif |
| 9146 | # ifdef HAVE_CL_CL_H |
| 9147 | # include <CL/cl.h> |
| 9148 | # elif defined(HAVE_OPENCL_CL_H) |
| 9149 | # include <OpenCL/cl.h> |
| 9150 | # else |
| 9151 | # error no CL.h |
| 9152 | # endif |
| 9153 | int |
| 9154 | main () |
| 9155 | { |
| 9156 | clCreateContextFromType(0,0,0,0,0) |
| 9157 | ; |
| 9158 | return 0; |
| 9159 | } |
| 9160 | _ACEOF |
| 9161 | if ac_fn_c_try_link "$LINENO"; then : |
| 9162 | ax_cv_check_cl_libcl=$ax_try_lib; break |
| 9163 | else |
| 9164 | ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" |
| 9165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9166 | /* end confdefs.h. */ |
| 9167 | |
| 9168 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9169 | # include <windows.h> |
| 9170 | # endif |
| 9171 | # ifdef HAVE_CL_CL_H |
| 9172 | # include <CL/cl.h> |
| 9173 | # elif defined(HAVE_OPENCL_CL_H) |
| 9174 | # include <OpenCL/cl.h> |
| 9175 | # else |
| 9176 | # error no CL.h |
| 9177 | # endif |
| 9178 | int |
| 9179 | main () |
| 9180 | { |
| 9181 | clCreateContextFromType(0,0,0,0,0) |
| 9182 | ; |
| 9183 | return 0; |
| 9184 | } |
| 9185 | _ACEOF |
| 9186 | if ac_fn_c_try_link "$LINENO"; then : |
| 9187 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break |
| 9188 | else |
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9189 | ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9191 | /* end confdefs.h. */ |
| 9192 | |
| 9193 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9194 | # include <windows.h> |
| 9195 | # endif |
| 9196 | # ifdef HAVE_CL_CL_H |
| 9197 | # include <CL/cl.h> |
| 9198 | # elif defined(HAVE_OPENCL_CL_H) |
| 9199 | # include <OpenCL/cl.h> |
| 9200 | # else |
| 9201 | # error no CL.h |
| 9202 | # endif |
| 9203 | int |
| 9204 | main () |
| 9205 | { |
| 9206 | clCreateContextFromType(0,0,0,0,0) |
| 9207 | ; |
| 9208 | return 0; |
| 9209 | } |
| 9210 | _ACEOF |
| 9211 | if ac_fn_c_try_link "$LINENO"; then : |
| 9212 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break |
| 9213 | fi |
| 9214 | rm -f core conftest.err conftest.$ac_objext \ |
| 9215 | conftest$ac_exeext conftest.$ac_ext |
| 9216 | fi |
| 9217 | rm -f core conftest.err conftest.$ac_objext \ |
| 9218 | conftest$ac_exeext conftest.$ac_ext |
| 9219 | fi |
| 9220 | rm -f core conftest.err conftest.$ac_objext \ |
| 9221 | conftest$ac_exeext conftest.$ac_ext |
| 9222 | done |
| 9223 | |
| 9224 | if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then : |
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9225 | LIBS='-Wl,-framework,OpenCL' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9227 | /* end confdefs.h. */ |
| 9228 | |
| 9229 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 9230 | # include <windows.h> |
| 9231 | # endif |
| 9232 | # ifdef HAVE_CL_CL_H |
| 9233 | # include <CL/cl.h> |
| 9234 | # elif defined(HAVE_OPENCL_CL_H) |
| 9235 | # include <OpenCL/cl.h> |
| 9236 | # else |
| 9237 | # error no CL.h |
| 9238 | # endif |
| 9239 | int |
| 9240 | main () |
| 9241 | { |
| 9242 | clCreateContextFromType(0,0,0,0,0) |
| 9243 | ; |
| 9244 | return 0; |
| 9245 | } |
| 9246 | _ACEOF |
| 9247 | if ac_fn_c_try_link "$LINENO"; then : |
| 9248 | ax_cv_check_cl_libcl=$LIBS |
| 9249 | fi |
| 9250 | rm -f core conftest.err conftest.$ac_objext \ |
| 9251 | conftest$ac_exeext conftest.$ac_ext |
| 9252 | fi |
| 9253 | |
| 9254 | LIBS=$ax_save_LIBS |
| 9255 | CPPFLAGS=$ax_save_CPPFLAGS |
| 9256 | fi |
| 9257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 |
| 9258 | $as_echo "$ax_cv_check_cl_libcl" >&6; } |
| 9259 | |
| 9260 | if test "X$ax_cv_check_cl_libcl" = Xno; then : |
| 9261 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" |
| 9262 | else |
| 9263 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; |
| 9264 | $as_echo "#define _OPENCL 1" >>confdefs.h |
| 9265 | |
| 9266 | fi |
| 9267 | ac_ext=c |
| 9268 | ac_cpp='$CPP $CPPFLAGS' |
| 9269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9272 | |
| 9273 | fi |
| 9274 | |
| 9275 | |
| 9276 | |
| 9277 | |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9278 | CFLAGS="$CL_CFLAGS $CFLAGS" |
| 9279 | LIBS="$CL_LIBS $LIBS" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9280 | |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9281 | if test "$enable_opencl" != no; then |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 9282 | if test "X$ax_cv_check_cl_libcl" != Xno; then : |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9283 | MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" |
| 9284 | fi |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 9285 | fi |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 9286 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9287 | ######## |
| 9288 | # |
| 9289 | # Check for large file support |
| 9290 | # |
| 9291 | ######## |
| 9292 | # Check whether --enable-largefile was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9293 | if test "${enable_largefile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9294 | enableval=$enable_largefile; |
| 9295 | fi |
| 9296 | |
| 9297 | if test "$enable_largefile" != no; then |
| 9298 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9300 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9301 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9302 | $as_echo_n "(cached) " >&6 |
| 9303 | else |
| 9304 | ac_cv_sys_largefile_CC=no |
| 9305 | if test "$GCC" != yes; then |
| 9306 | ac_save_CC=$CC |
| 9307 | while :; do |
| 9308 | # IRIX 6.2 and later do not support large files by default, |
| 9309 | # so use the C compiler's -n32 option if that helps. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9311 | /* end confdefs.h. */ |
| 9312 | #include <sys/types.h> |
| 9313 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9314 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9315 | since some C++ compilers masquerading as C compilers |
| 9316 | incorrectly reject 9223372036854775807. */ |
| 9317 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9318 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9319 | && LARGE_OFF_T % 2147483647 == 1) |
| 9320 | ? 1 : -1]; |
| 9321 | int |
| 9322 | main () |
| 9323 | { |
| 9324 | |
| 9325 | ; |
| 9326 | return 0; |
| 9327 | } |
| 9328 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9329 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9330 | break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9331 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9332 | rm -f core conftest.err conftest.$ac_objext |
| 9333 | CC="$CC -n32" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9334 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9335 | ac_cv_sys_largefile_CC=' -n32'; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9336 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9337 | rm -f core conftest.err conftest.$ac_objext |
| 9338 | break |
| 9339 | done |
| 9340 | CC=$ac_save_CC |
| 9341 | rm -f conftest.$ac_ext |
| 9342 | fi |
| 9343 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9345 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 9346 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 9347 | CC=$CC$ac_cv_sys_largefile_CC |
| 9348 | fi |
| 9349 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9351 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9352 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9353 | $as_echo_n "(cached) " >&6 |
| 9354 | else |
| 9355 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9357 | /* end confdefs.h. */ |
| 9358 | #include <sys/types.h> |
| 9359 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9360 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9361 | since some C++ compilers masquerading as C compilers |
| 9362 | incorrectly reject 9223372036854775807. */ |
| 9363 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9364 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9365 | && LARGE_OFF_T % 2147483647 == 1) |
| 9366 | ? 1 : -1]; |
| 9367 | int |
| 9368 | main () |
| 9369 | { |
| 9370 | |
| 9371 | ; |
| 9372 | return 0; |
| 9373 | } |
| 9374 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9375 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9376 | ac_cv_sys_file_offset_bits=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9377 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9380 | /* end confdefs.h. */ |
| 9381 | #define _FILE_OFFSET_BITS 64 |
| 9382 | #include <sys/types.h> |
| 9383 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9384 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9385 | since some C++ compilers masquerading as C compilers |
| 9386 | incorrectly reject 9223372036854775807. */ |
| 9387 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9388 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9389 | && LARGE_OFF_T % 2147483647 == 1) |
| 9390 | ? 1 : -1]; |
| 9391 | int |
| 9392 | main () |
| 9393 | { |
| 9394 | |
| 9395 | ; |
| 9396 | return 0; |
| 9397 | } |
| 9398 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9399 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9400 | ac_cv_sys_file_offset_bits=64; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9401 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9403 | ac_cv_sys_file_offset_bits=unknown |
| 9404 | break |
| 9405 | done |
| 9406 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9408 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 9409 | case $ac_cv_sys_file_offset_bits in #( |
| 9410 | no | unknown) ;; |
| 9411 | *) |
| 9412 | cat >>confdefs.h <<_ACEOF |
| 9413 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 9414 | _ACEOF |
| 9415 | ;; |
| 9416 | esac |
| 9417 | rm -rf conftest* |
| 9418 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9420 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9421 | if ${ac_cv_sys_large_files+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9422 | $as_echo_n "(cached) " >&6 |
| 9423 | else |
| 9424 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9426 | /* end confdefs.h. */ |
| 9427 | #include <sys/types.h> |
| 9428 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9429 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9430 | since some C++ compilers masquerading as C compilers |
| 9431 | incorrectly reject 9223372036854775807. */ |
| 9432 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9433 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9434 | && LARGE_OFF_T % 2147483647 == 1) |
| 9435 | ? 1 : -1]; |
| 9436 | int |
| 9437 | main () |
| 9438 | { |
| 9439 | |
| 9440 | ; |
| 9441 | return 0; |
| 9442 | } |
| 9443 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9444 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9445 | ac_cv_sys_large_files=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9446 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9449 | /* end confdefs.h. */ |
| 9450 | #define _LARGE_FILES 1 |
| 9451 | #include <sys/types.h> |
| 9452 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 9453 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 9454 | since some C++ compilers masquerading as C compilers |
| 9455 | incorrectly reject 9223372036854775807. */ |
| 9456 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 9457 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 9458 | && LARGE_OFF_T % 2147483647 == 1) |
| 9459 | ? 1 : -1]; |
| 9460 | int |
| 9461 | main () |
| 9462 | { |
| 9463 | |
| 9464 | ; |
| 9465 | return 0; |
| 9466 | } |
| 9467 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9468 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9469 | ac_cv_sys_large_files=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9470 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9472 | ac_cv_sys_large_files=unknown |
| 9473 | break |
| 9474 | done |
| 9475 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9477 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 9478 | case $ac_cv_sys_large_files in #( |
| 9479 | no | unknown) ;; |
| 9480 | *) |
| 9481 | cat >>confdefs.h <<_ACEOF |
| 9482 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 9483 | _ACEOF |
| 9484 | ;; |
| 9485 | esac |
| 9486 | rm -rf conftest* |
| 9487 | fi |
| 9488 | fi |
| 9489 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9491 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9492 | if ${ac_cv_sys_largefile_source+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9493 | $as_echo_n "(cached) " >&6 |
| 9494 | else |
| 9495 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9497 | /* end confdefs.h. */ |
| 9498 | #include <sys/types.h> /* for off_t */ |
| 9499 | #include <stdio.h> |
| 9500 | int |
| 9501 | main () |
| 9502 | { |
| 9503 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 9504 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 9505 | ; |
| 9506 | return 0; |
| 9507 | } |
| 9508 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9509 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9510 | ac_cv_sys_largefile_source=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9511 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9512 | rm -f core conftest.err conftest.$ac_objext \ |
| 9513 | conftest$ac_exeext conftest.$ac_ext |
| 9514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9515 | /* end confdefs.h. */ |
| 9516 | #define _LARGEFILE_SOURCE 1 |
| 9517 | #include <sys/types.h> /* for off_t */ |
| 9518 | #include <stdio.h> |
| 9519 | int |
| 9520 | main () |
| 9521 | { |
| 9522 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 9523 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 9524 | ; |
| 9525 | return 0; |
| 9526 | } |
| 9527 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9528 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9529 | ac_cv_sys_largefile_source=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9530 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9531 | rm -f core conftest.err conftest.$ac_objext \ |
| 9532 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9533 | ac_cv_sys_largefile_source=unknown |
| 9534 | break |
| 9535 | done |
| 9536 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9538 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 9539 | case $ac_cv_sys_largefile_source in #( |
| 9540 | no | unknown) ;; |
| 9541 | *) |
| 9542 | cat >>confdefs.h <<_ACEOF |
| 9543 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 9544 | _ACEOF |
| 9545 | ;; |
| 9546 | esac |
| 9547 | rm -rf conftest* |
| 9548 | |
| 9549 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 9550 | # in glibc 2.1.3, but that breaks too many other things. |
| 9551 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 9552 | if test $ac_cv_sys_largefile_source != unknown; then |
| 9553 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9554 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9555 | |
| 9556 | fi |
| 9557 | |
| 9558 | LFS_CPPFLAGS='' |
| 9559 | if test "$enable_largefile" != no; then |
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 9560 | case $ac_cv_sys_file_offset_bits in |
| 9561 | no) |
| 9562 | # nothing to do here as the host supports LFS fine |
| 9563 | ;; |
| 9564 | unknown) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9566 | $as_echo_n "checking for native large file support... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9567 | if test "$cross_compiling" = yes; then : |
| 9568 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9569 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9570 | as_fn_error $? "cannot run test program while cross compiling |
| 9571 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9572 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9574 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9575 | #include <unistd.h> |
| 9576 | main () { |
| 9577 | exit(!(sizeof(off_t) == 8)); |
| 9578 | } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9579 | int |
| 9580 | main () |
| 9581 | { |
| 9582 | |
| 9583 | ; |
| 9584 | return 0; |
| 9585 | } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9586 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9587 | if ac_fn_c_try_run "$LINENO"; then : |
| 9588 | ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9589 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9591 | $as_echo "yes" >&6; } |
| 9592 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9594 | $as_echo "no" >&6; } |
| 9595 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9596 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9597 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9598 | fi |
| 9599 | |
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 9600 | ;; |
| 9601 | *) |
| 9602 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 9603 | ;; |
| 9604 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9605 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 9606 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 9607 | fi |
| 9608 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 9609 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 9610 | fi |
| 9611 | fi |
| 9612 | |
| 9613 | |
| 9614 | # |
| 9615 | # Configure libtool & libltdl |
| 9616 | # |
| 9617 | # Configure libtool |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9618 | enable_dlopen=yes |
| 9619 | |
| 9620 | |
| 9621 | |
| 9622 | case `pwd` in |
| 9623 | *\ * | *\ *) |
| 9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 9625 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 9626 | esac |
| 9627 | |
| 9628 | |
| 9629 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9630 | macro_version='2.4' |
| 9631 | macro_revision='1.3293' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9632 | |
| 9633 | |
| 9634 | |
| 9635 | |
| 9636 | |
| 9637 | |
| 9638 | |
| 9639 | |
| 9640 | |
| 9641 | |
| 9642 | |
| 9643 | |
| 9644 | |
| 9645 | ltmain="$ac_aux_dir/ltmain.sh" |
| 9646 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9647 | # Backslashify metacharacters that are still active within |
| 9648 | # double-quoted strings. |
| 9649 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 9650 | |
| 9651 | # Same as above, but do not quote variable references. |
| 9652 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 9653 | |
| 9654 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 9655 | # double_quote_subst'ed string. |
| 9656 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 9657 | |
| 9658 | # Sed substitution to delay expansion of an escaped single quote. |
| 9659 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 9660 | |
| 9661 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 9662 | no_glob_subst='s/\*/\\\*/g' |
| 9663 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 9665 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9666 | if ${lt_cv_path_NM+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9667 | $as_echo_n "(cached) " >&6 |
| 9668 | else |
| 9669 | if test -n "$NM"; then |
| 9670 | # Let the user override the test. |
| 9671 | lt_cv_path_NM="$NM" |
| 9672 | else |
| 9673 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 9674 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 9675 | lt_nm_to_check="$lt_nm_to_check nm" |
| 9676 | fi |
| 9677 | for lt_tmp_nm in $lt_nm_to_check; do |
| 9678 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 9679 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 9680 | IFS="$lt_save_ifs" |
| 9681 | test -z "$ac_dir" && ac_dir=. |
| 9682 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 9683 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 9684 | # Check to see if the nm accepts a BSD-compat flag. |
| 9685 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 9686 | # nm: unknown option "B" ignored |
| 9687 | # Tru64's nm complains that /dev/null is an invalid object file |
| 9688 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 9689 | */dev/null* | *'Invalid file or object type'*) |
| 9690 | lt_cv_path_NM="$tmp_nm -B" |
| 9691 | break |
| 9692 | ;; |
| 9693 | *) |
| 9694 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 9695 | */dev/null*) |
| 9696 | lt_cv_path_NM="$tmp_nm -p" |
| 9697 | break |
| 9698 | ;; |
| 9699 | *) |
| 9700 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 9701 | continue # so that we can try to find one that supports BSD flags |
| 9702 | ;; |
| 9703 | esac |
| 9704 | ;; |
| 9705 | esac |
| 9706 | fi |
| 9707 | done |
| 9708 | IFS="$lt_save_ifs" |
| 9709 | done |
| 9710 | : ${lt_cv_path_NM=no} |
| 9711 | fi |
| 9712 | fi |
| 9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 9714 | $as_echo "$lt_cv_path_NM" >&6; } |
| 9715 | if test "$lt_cv_path_NM" != "no"; then |
| 9716 | NM="$lt_cv_path_NM" |
| 9717 | else |
| 9718 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9719 | if test -n "$DUMPBIN"; then : |
| 9720 | # Let the user override the test. |
| 9721 | else |
| 9722 | if test -n "$ac_tool_prefix"; then |
| 9723 | for ac_prog in dumpbin "link -dump" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9724 | do |
| 9725 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 9726 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9728 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9729 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9730 | $as_echo_n "(cached) " >&6 |
| 9731 | else |
| 9732 | if test -n "$DUMPBIN"; then |
| 9733 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 9734 | else |
| 9735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9736 | for as_dir in $PATH |
| 9737 | do |
| 9738 | IFS=$as_save_IFS |
| 9739 | test -z "$as_dir" && as_dir=. |
| 9740 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9742 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 9743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9744 | break 2 |
| 9745 | fi |
| 9746 | done |
| 9747 | done |
| 9748 | IFS=$as_save_IFS |
| 9749 | |
| 9750 | fi |
| 9751 | fi |
| 9752 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 9753 | if test -n "$DUMPBIN"; then |
| 9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 9755 | $as_echo "$DUMPBIN" >&6; } |
| 9756 | else |
| 9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9758 | $as_echo "no" >&6; } |
| 9759 | fi |
| 9760 | |
| 9761 | |
| 9762 | test -n "$DUMPBIN" && break |
| 9763 | done |
| 9764 | fi |
| 9765 | if test -z "$DUMPBIN"; then |
| 9766 | ac_ct_DUMPBIN=$DUMPBIN |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9767 | for ac_prog in dumpbin "link -dump" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9768 | do |
| 9769 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9770 | set dummy $ac_prog; ac_word=$2 |
| 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9772 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9773 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9774 | $as_echo_n "(cached) " >&6 |
| 9775 | else |
| 9776 | if test -n "$ac_ct_DUMPBIN"; then |
| 9777 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 9778 | else |
| 9779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9780 | for as_dir in $PATH |
| 9781 | do |
| 9782 | IFS=$as_save_IFS |
| 9783 | test -z "$as_dir" && as_dir=. |
| 9784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9786 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 9787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9788 | break 2 |
| 9789 | fi |
| 9790 | done |
| 9791 | done |
| 9792 | IFS=$as_save_IFS |
| 9793 | |
| 9794 | fi |
| 9795 | fi |
| 9796 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 9797 | if test -n "$ac_ct_DUMPBIN"; then |
| 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 9799 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 9800 | else |
| 9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9802 | $as_echo "no" >&6; } |
| 9803 | fi |
| 9804 | |
| 9805 | |
| 9806 | test -n "$ac_ct_DUMPBIN" && break |
| 9807 | done |
| 9808 | |
| 9809 | if test "x$ac_ct_DUMPBIN" = x; then |
| 9810 | DUMPBIN=":" |
| 9811 | else |
| 9812 | case $cross_compiling:$ac_tool_warned in |
| 9813 | yes:) |
| 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9815 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9816 | ac_tool_warned=yes ;; |
| 9817 | esac |
| 9818 | DUMPBIN=$ac_ct_DUMPBIN |
| 9819 | fi |
| 9820 | fi |
| 9821 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9822 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 9823 | *COFF*) |
| 9824 | DUMPBIN="$DUMPBIN -symbols" |
| 9825 | ;; |
| 9826 | *) |
| 9827 | DUMPBIN=: |
| 9828 | ;; |
| 9829 | esac |
| 9830 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9831 | |
| 9832 | if test "$DUMPBIN" != ":"; then |
| 9833 | NM="$DUMPBIN" |
| 9834 | fi |
| 9835 | fi |
| 9836 | test -z "$NM" && NM=nm |
| 9837 | |
| 9838 | |
| 9839 | |
| 9840 | |
| 9841 | |
| 9842 | |
| 9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 9844 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9845 | if ${lt_cv_nm_interface+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9846 | $as_echo_n "(cached) " >&6 |
| 9847 | else |
| 9848 | lt_cv_nm_interface="BSD nm" |
| 9849 | echo "int some_variable = 0;" > conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9850 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9851 | (eval "$ac_compile" 2>conftest.err) |
| 9852 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9853 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9854 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 9855 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9856 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9857 | cat conftest.out >&5 |
| 9858 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 9859 | lt_cv_nm_interface="MS dumpbin" |
| 9860 | fi |
| 9861 | rm -f conftest* |
| 9862 | fi |
| 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 9864 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 9865 | |
| 9866 | # find the maximum length of command line arguments |
| 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 9868 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9869 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9870 | $as_echo_n "(cached) " >&6 |
| 9871 | else |
| 9872 | i=0 |
| 9873 | teststring="ABCD" |
| 9874 | |
| 9875 | case $build_os in |
| 9876 | msdosdjgpp*) |
| 9877 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 9878 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 9879 | # during glob expansion). Even if it were fixed, the result of this |
| 9880 | # check would be larger than it should be. |
| 9881 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 9882 | ;; |
| 9883 | |
| 9884 | gnu*) |
| 9885 | # Under GNU Hurd, this test is not required because there is |
| 9886 | # no limit to the length of command line arguments. |
| 9887 | # Libtool will interpret -1 as no limit whatsoever |
| 9888 | lt_cv_sys_max_cmd_len=-1; |
| 9889 | ;; |
| 9890 | |
| 9891 | cygwin* | mingw* | cegcc*) |
| 9892 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 9893 | # about 5 minutes as the teststring grows exponentially. |
| 9894 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 9895 | # you end up with a "frozen" computer, even though with patience |
| 9896 | # the test eventually succeeds (with a max line length of 256k). |
| 9897 | # Instead, let's just punt: use the minimum linelength reported by |
| 9898 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 9899 | lt_cv_sys_max_cmd_len=8192; |
| 9900 | ;; |
| 9901 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9902 | mint*) |
| 9903 | # On MiNT this can take a long time and run out of memory. |
| 9904 | lt_cv_sys_max_cmd_len=8192; |
| 9905 | ;; |
| 9906 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9907 | amigaos*) |
| 9908 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 9909 | # So we just punt and use a minimum line length of 8192. |
| 9910 | lt_cv_sys_max_cmd_len=8192; |
| 9911 | ;; |
| 9912 | |
| 9913 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 9914 | # This has been around since 386BSD, at least. Likely further. |
| 9915 | if test -x /sbin/sysctl; then |
| 9916 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 9917 | elif test -x /usr/sbin/sysctl; then |
| 9918 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 9919 | else |
| 9920 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 9921 | fi |
| 9922 | # And add a safety zone |
| 9923 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 9924 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 9925 | ;; |
| 9926 | |
| 9927 | interix*) |
| 9928 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 9929 | lt_cv_sys_max_cmd_len=196608 |
| 9930 | ;; |
| 9931 | |
| 9932 | osf*) |
| 9933 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 9934 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 9935 | # nice to cause kernel panics so lets avoid the loop below. |
| 9936 | # First set a reasonable default. |
| 9937 | lt_cv_sys_max_cmd_len=16384 |
| 9938 | # |
| 9939 | if test -x /sbin/sysconfig; then |
| 9940 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 9941 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 9942 | esac |
| 9943 | fi |
| 9944 | ;; |
| 9945 | sco3.2v5*) |
| 9946 | lt_cv_sys_max_cmd_len=102400 |
| 9947 | ;; |
| 9948 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 9949 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 9950 | if test -n "$kargmax"; then |
| 9951 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 9952 | else |
| 9953 | lt_cv_sys_max_cmd_len=32768 |
| 9954 | fi |
| 9955 | ;; |
| 9956 | *) |
| 9957 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 9958 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 9959 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 9960 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 9961 | else |
| 9962 | # Make teststring a little bigger before we do anything with it. |
| 9963 | # a 1K string should be a reasonable start. |
| 9964 | for i in 1 2 3 4 5 6 7 8 ; do |
| 9965 | teststring=$teststring$teststring |
| 9966 | done |
| 9967 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 9968 | # If test is not a shell built-in, we'll probably end up computing a |
| 9969 | # maximum length that is only half of the actual maximum length, but |
| 9970 | # we can't tell. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9971 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 9972 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9973 | test $i != 17 # 1/2 MB should be enough |
| 9974 | do |
| 9975 | i=`expr $i + 1` |
| 9976 | teststring=$teststring$teststring |
| 9977 | done |
| 9978 | # Only check the string length outside the loop. |
| 9979 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 9980 | teststring= |
| 9981 | # Add a significant safety factor because C++ compilers can tack on |
| 9982 | # massive amounts of additional arguments before passing them to the |
| 9983 | # linker. It appears as though 1/2 is a usable value. |
| 9984 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 9985 | fi |
| 9986 | ;; |
| 9987 | esac |
| 9988 | |
| 9989 | fi |
| 9990 | |
| 9991 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 9993 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 9994 | else |
| 9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 9996 | $as_echo "none" >&6; } |
| 9997 | fi |
| 9998 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | : ${CP="cp -f"} |
| 10006 | : ${MV="mv -f"} |
| 10007 | : ${RM="rm -f"} |
| 10008 | |
| 10009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 10010 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 10011 | # Try some XSI features |
| 10012 | xsi_shell=no |
| 10013 | ( _lt_dummy="a/b/c" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10014 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 10015 | = c,a/b,b/c, \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10016 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 10017 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 10018 | && xsi_shell=yes |
| 10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 10020 | $as_echo "$xsi_shell" >&6; } |
| 10021 | |
| 10022 | |
| 10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 10024 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 10025 | lt_shell_append=no |
| 10026 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 10027 | >/dev/null 2>&1 \ |
| 10028 | && lt_shell_append=yes |
| 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 10030 | $as_echo "$lt_shell_append" >&6; } |
| 10031 | |
| 10032 | |
| 10033 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 10034 | lt_unset=unset |
| 10035 | else |
| 10036 | lt_unset=false |
| 10037 | fi |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | |
| 10043 | # test EBCDIC or ASCII |
| 10044 | case `echo X|tr X '\101'` in |
| 10045 | A) # ASCII based system |
| 10046 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 10047 | lt_SP2NL='tr \040 \012' |
| 10048 | lt_NL2SP='tr \015\012 \040\040' |
| 10049 | ;; |
| 10050 | *) # EBCDIC based system |
| 10051 | lt_SP2NL='tr \100 \n' |
| 10052 | lt_NL2SP='tr \r\n \100\100' |
| 10053 | ;; |
| 10054 | esac |
| 10055 | |
| 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 10065 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 10066 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 10067 | $as_echo_n "(cached) " >&6 |
| 10068 | else |
| 10069 | case $host in |
| 10070 | *-*-mingw* ) |
| 10071 | case $build in |
| 10072 | *-*-mingw* ) # actually msys |
| 10073 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 10074 | ;; |
| 10075 | *-*-cygwin* ) |
| 10076 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 10077 | ;; |
| 10078 | * ) # otherwise, assume *nix |
| 10079 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 10080 | ;; |
| 10081 | esac |
| 10082 | ;; |
| 10083 | *-*-cygwin* ) |
| 10084 | case $build in |
| 10085 | *-*-mingw* ) # actually msys |
| 10086 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 10087 | ;; |
| 10088 | *-*-cygwin* ) |
| 10089 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 10090 | ;; |
| 10091 | * ) # otherwise, assume *nix |
| 10092 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 10093 | ;; |
| 10094 | esac |
| 10095 | ;; |
| 10096 | * ) # unhandled hosts (and "normal" native builds) |
| 10097 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 10098 | ;; |
| 10099 | esac |
| 10100 | |
| 10101 | fi |
| 10102 | |
| 10103 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 10105 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 10106 | |
| 10107 | |
| 10108 | |
| 10109 | |
| 10110 | |
| 10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 10112 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 10113 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 10114 | $as_echo_n "(cached) " >&6 |
| 10115 | else |
| 10116 | #assume ordinary cross tools, or native build. |
| 10117 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 10118 | case $host in |
| 10119 | *-*-mingw* ) |
| 10120 | case $build in |
| 10121 | *-*-mingw* ) # actually msys |
| 10122 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 10123 | ;; |
| 10124 | esac |
| 10125 | ;; |
| 10126 | esac |
| 10127 | |
| 10128 | fi |
| 10129 | |
| 10130 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 10132 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 10139 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10140 | if ${lt_cv_ld_reload_flag+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10141 | $as_echo_n "(cached) " >&6 |
| 10142 | else |
| 10143 | lt_cv_ld_reload_flag='-r' |
| 10144 | fi |
| 10145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 10146 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 10147 | reload_flag=$lt_cv_ld_reload_flag |
| 10148 | case $reload_flag in |
| 10149 | "" | " "*) ;; |
| 10150 | *) reload_flag=" $reload_flag" ;; |
| 10151 | esac |
| 10152 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10153 | case $host_os in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10154 | cygwin* | mingw* | pw32* | cegcc*) |
| 10155 | if test "$GCC" != yes; then |
| 10156 | reload_cmds=false |
| 10157 | fi |
| 10158 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10159 | darwin*) |
| 10160 | if test "$GCC" = yes; then |
| 10161 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 10162 | else |
| 10163 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10164 | fi |
| 10165 | ;; |
| 10166 | esac |
| 10167 | |
| 10168 | |
| 10169 | |
| 10170 | |
| 10171 | |
| 10172 | |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | if test -n "$ac_tool_prefix"; then |
| 10177 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10178 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10180 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10181 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10182 | $as_echo_n "(cached) " >&6 |
| 10183 | else |
| 10184 | if test -n "$OBJDUMP"; then |
| 10185 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10186 | else |
| 10187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10188 | for as_dir in $PATH |
| 10189 | do |
| 10190 | IFS=$as_save_IFS |
| 10191 | test -z "$as_dir" && as_dir=. |
| 10192 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10194 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 10195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10196 | break 2 |
| 10197 | fi |
| 10198 | done |
| 10199 | done |
| 10200 | IFS=$as_save_IFS |
| 10201 | |
| 10202 | fi |
| 10203 | fi |
| 10204 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10205 | if test -n "$OBJDUMP"; then |
| 10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 10207 | $as_echo "$OBJDUMP" >&6; } |
| 10208 | else |
| 10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10210 | $as_echo "no" >&6; } |
| 10211 | fi |
| 10212 | |
| 10213 | |
| 10214 | fi |
| 10215 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10216 | ac_ct_OBJDUMP=$OBJDUMP |
| 10217 | # Extract the first word of "objdump", so it can be a program name with args. |
| 10218 | set dummy objdump; ac_word=$2 |
| 10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10220 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10221 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10222 | $as_echo_n "(cached) " >&6 |
| 10223 | else |
| 10224 | if test -n "$ac_ct_OBJDUMP"; then |
| 10225 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10226 | else |
| 10227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10228 | for as_dir in $PATH |
| 10229 | do |
| 10230 | IFS=$as_save_IFS |
| 10231 | test -z "$as_dir" && as_dir=. |
| 10232 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10234 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 10235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10236 | break 2 |
| 10237 | fi |
| 10238 | done |
| 10239 | done |
| 10240 | IFS=$as_save_IFS |
| 10241 | |
| 10242 | fi |
| 10243 | fi |
| 10244 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10245 | if test -n "$ac_ct_OBJDUMP"; then |
| 10246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 10247 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 10248 | else |
| 10249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10250 | $as_echo "no" >&6; } |
| 10251 | fi |
| 10252 | |
| 10253 | if test "x$ac_ct_OBJDUMP" = x; then |
| 10254 | OBJDUMP="false" |
| 10255 | else |
| 10256 | case $cross_compiling:$ac_tool_warned in |
| 10257 | yes:) |
| 10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10259 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10260 | ac_tool_warned=yes ;; |
| 10261 | esac |
| 10262 | OBJDUMP=$ac_ct_OBJDUMP |
| 10263 | fi |
| 10264 | else |
| 10265 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 10266 | fi |
| 10267 | |
| 10268 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 10269 | |
| 10270 | |
| 10271 | |
| 10272 | |
| 10273 | |
| 10274 | |
| 10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 10276 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10277 | if ${lt_cv_deplibs_check_method+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10278 | $as_echo_n "(cached) " >&6 |
| 10279 | else |
| 10280 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10281 | lt_cv_file_magic_test_file= |
| 10282 | lt_cv_deplibs_check_method='unknown' |
| 10283 | # Need to set the preceding variable on all platforms that support |
| 10284 | # interlibrary dependencies. |
| 10285 | # 'none' -- dependencies not supported. |
| 10286 | # `unknown' -- same as none, but documents that we really don't know. |
| 10287 | # 'pass_all' -- all dependencies passed with no checks. |
| 10288 | # 'test_compile' -- check by making test program. |
| 10289 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 10290 | # which responds to the $file_magic_cmd with a given extended regex. |
| 10291 | # If you have `file' or equivalent on your system and you're not sure |
| 10292 | # whether `pass_all' will *always* work, you probably want this one. |
| 10293 | |
| 10294 | case $host_os in |
| 10295 | aix[4-9]*) |
| 10296 | lt_cv_deplibs_check_method=pass_all |
| 10297 | ;; |
| 10298 | |
| 10299 | beos*) |
| 10300 | lt_cv_deplibs_check_method=pass_all |
| 10301 | ;; |
| 10302 | |
| 10303 | bsdi[45]*) |
| 10304 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 10305 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 10306 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 10307 | ;; |
| 10308 | |
| 10309 | cygwin*) |
| 10310 | # func_win32_libid is a shell function defined in ltmain.sh |
| 10311 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10312 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10313 | ;; |
| 10314 | |
| 10315 | mingw* | pw32*) |
| 10316 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 10317 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 10318 | # unless we find 'file', for example because we are cross-compiling. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10319 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 10320 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10321 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 10322 | lt_cv_file_magic_cmd='func_win32_libid' |
| 10323 | else |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10324 | # Keep this pattern in sync with the one in func_win32_libid. |
| 10325 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10326 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10327 | fi |
| 10328 | ;; |
| 10329 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10330 | cegcc*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10331 | # use the weaker test based on 'objdump'. See mingw*. |
| 10332 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 10333 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 10334 | ;; |
| 10335 | |
| 10336 | darwin* | rhapsody*) |
| 10337 | lt_cv_deplibs_check_method=pass_all |
| 10338 | ;; |
| 10339 | |
| 10340 | freebsd* | dragonfly*) |
| 10341 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 10342 | case $host_cpu in |
| 10343 | i*86 ) |
| 10344 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 10345 | # Let's accept both of them until this is cleared up. |
| 10346 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 10347 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10348 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 10349 | ;; |
| 10350 | esac |
| 10351 | else |
| 10352 | lt_cv_deplibs_check_method=pass_all |
| 10353 | fi |
| 10354 | ;; |
| 10355 | |
| 10356 | gnu*) |
| 10357 | lt_cv_deplibs_check_method=pass_all |
| 10358 | ;; |
| 10359 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10360 | haiku*) |
| 10361 | lt_cv_deplibs_check_method=pass_all |
| 10362 | ;; |
| 10363 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10364 | hpux10.20* | hpux11*) |
| 10365 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10366 | case $host_cpu in |
| 10367 | ia64*) |
| 10368 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 10369 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 10370 | ;; |
| 10371 | hppa*64*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10372 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10373 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 10374 | ;; |
| 10375 | *) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10376 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10377 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 10378 | ;; |
| 10379 | esac |
| 10380 | ;; |
| 10381 | |
| 10382 | interix[3-9]*) |
| 10383 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 10384 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 10385 | ;; |
| 10386 | |
| 10387 | irix5* | irix6* | nonstopux*) |
| 10388 | case $LD in |
| 10389 | *-32|*"-32 ") libmagic=32-bit;; |
| 10390 | *-n32|*"-n32 ") libmagic=N32;; |
| 10391 | *-64|*"-64 ") libmagic=64-bit;; |
| 10392 | *) libmagic=never-match;; |
| 10393 | esac |
| 10394 | lt_cv_deplibs_check_method=pass_all |
| 10395 | ;; |
| 10396 | |
| 10397 | # This must be Linux ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10398 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10399 | lt_cv_deplibs_check_method=pass_all |
| 10400 | ;; |
| 10401 | |
| 10402 | netbsd*) |
| 10403 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 10404 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10405 | else |
| 10406 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 10407 | fi |
| 10408 | ;; |
| 10409 | |
| 10410 | newos6*) |
| 10411 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 10412 | lt_cv_file_magic_cmd=/usr/bin/file |
| 10413 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 10414 | ;; |
| 10415 | |
| 10416 | *nto* | *qnx*) |
| 10417 | lt_cv_deplibs_check_method=pass_all |
| 10418 | ;; |
| 10419 | |
| 10420 | openbsd*) |
| 10421 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10422 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 10423 | else |
| 10424 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 10425 | fi |
| 10426 | ;; |
| 10427 | |
| 10428 | osf3* | osf4* | osf5*) |
| 10429 | lt_cv_deplibs_check_method=pass_all |
| 10430 | ;; |
| 10431 | |
| 10432 | rdos*) |
| 10433 | lt_cv_deplibs_check_method=pass_all |
| 10434 | ;; |
| 10435 | |
| 10436 | solaris*) |
| 10437 | lt_cv_deplibs_check_method=pass_all |
| 10438 | ;; |
| 10439 | |
| 10440 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10441 | lt_cv_deplibs_check_method=pass_all |
| 10442 | ;; |
| 10443 | |
| 10444 | sysv4 | sysv4.3*) |
| 10445 | case $host_vendor in |
| 10446 | motorola) |
| 10447 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 10448 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 10449 | ;; |
| 10450 | ncr) |
| 10451 | lt_cv_deplibs_check_method=pass_all |
| 10452 | ;; |
| 10453 | sequent) |
| 10454 | lt_cv_file_magic_cmd='/bin/file' |
| 10455 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 10456 | ;; |
| 10457 | sni) |
| 10458 | lt_cv_file_magic_cmd='/bin/file' |
| 10459 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 10460 | lt_cv_file_magic_test_file=/lib/libc.so |
| 10461 | ;; |
| 10462 | siemens) |
| 10463 | lt_cv_deplibs_check_method=pass_all |
| 10464 | ;; |
| 10465 | pc) |
| 10466 | lt_cv_deplibs_check_method=pass_all |
| 10467 | ;; |
| 10468 | esac |
| 10469 | ;; |
| 10470 | |
| 10471 | tpf*) |
| 10472 | lt_cv_deplibs_check_method=pass_all |
| 10473 | ;; |
| 10474 | esac |
| 10475 | |
| 10476 | fi |
| 10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 10478 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10479 | |
| 10480 | file_magic_glob= |
| 10481 | want_nocaseglob=no |
| 10482 | if test "$build" = "$host"; then |
| 10483 | case $host_os in |
| 10484 | mingw* | pw32*) |
| 10485 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 10486 | want_nocaseglob=yes |
| 10487 | else |
| 10488 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 10489 | fi |
| 10490 | ;; |
| 10491 | esac |
| 10492 | fi |
| 10493 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10494 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 10495 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 10496 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | |
| 10502 | |
| 10503 | |
| 10504 | |
| 10505 | |
| 10506 | |
| 10507 | |
| 10508 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10519 | if test -n "$ac_tool_prefix"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10520 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10521 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10523 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10524 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 10525 | $as_echo_n "(cached) " >&6 |
| 10526 | else |
| 10527 | if test -n "$DLLTOOL"; then |
| 10528 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10529 | else |
| 10530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10531 | for as_dir in $PATH |
| 10532 | do |
| 10533 | IFS=$as_save_IFS |
| 10534 | test -z "$as_dir" && as_dir=. |
| 10535 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10537 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 10538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10539 | break 2 |
| 10540 | fi |
| 10541 | done |
| 10542 | done |
| 10543 | IFS=$as_save_IFS |
| 10544 | |
| 10545 | fi |
| 10546 | fi |
| 10547 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10548 | if test -n "$DLLTOOL"; then |
| 10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 10550 | $as_echo "$DLLTOOL" >&6; } |
| 10551 | else |
| 10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10553 | $as_echo "no" >&6; } |
| 10554 | fi |
| 10555 | |
| 10556 | |
| 10557 | fi |
| 10558 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10559 | ac_ct_DLLTOOL=$DLLTOOL |
| 10560 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10561 | set dummy dlltool; ac_word=$2 |
| 10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10563 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10564 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 10565 | $as_echo_n "(cached) " >&6 |
| 10566 | else |
| 10567 | if test -n "$ac_ct_DLLTOOL"; then |
| 10568 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10569 | else |
| 10570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10571 | for as_dir in $PATH |
| 10572 | do |
| 10573 | IFS=$as_save_IFS |
| 10574 | test -z "$as_dir" && as_dir=. |
| 10575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10576 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10577 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 10578 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10579 | break 2 |
| 10580 | fi |
| 10581 | done |
| 10582 | done |
| 10583 | IFS=$as_save_IFS |
| 10584 | |
| 10585 | fi |
| 10586 | fi |
| 10587 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10588 | if test -n "$ac_ct_DLLTOOL"; then |
| 10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 10590 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 10591 | else |
| 10592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10593 | $as_echo "no" >&6; } |
| 10594 | fi |
| 10595 | |
| 10596 | if test "x$ac_ct_DLLTOOL" = x; then |
| 10597 | DLLTOOL="false" |
| 10598 | else |
| 10599 | case $cross_compiling:$ac_tool_warned in |
| 10600 | yes:) |
| 10601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10602 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10603 | ac_tool_warned=yes ;; |
| 10604 | esac |
| 10605 | DLLTOOL=$ac_ct_DLLTOOL |
| 10606 | fi |
| 10607 | else |
| 10608 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10609 | fi |
| 10610 | |
| 10611 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 10620 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 10621 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 10622 | $as_echo_n "(cached) " >&6 |
| 10623 | else |
| 10624 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 10625 | |
| 10626 | case $host_os in |
| 10627 | cygwin* | mingw* | pw32* | cegcc*) |
| 10628 | # two different shell functions defined in ltmain.sh |
| 10629 | # decide which to use based on capabilities of $DLLTOOL |
| 10630 | case `$DLLTOOL --help 2>&1` in |
| 10631 | *--identify-strict*) |
| 10632 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 10633 | ;; |
| 10634 | *) |
| 10635 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 10636 | ;; |
| 10637 | esac |
| 10638 | ;; |
| 10639 | *) |
| 10640 | # fallback: assume linklib IS sharedlib |
| 10641 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 10642 | ;; |
| 10643 | esac |
| 10644 | |
| 10645 | fi |
| 10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 10647 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 10648 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 10649 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 10650 | |
| 10651 | |
| 10652 | |
| 10653 | |
| 10654 | |
| 10655 | |
| 10656 | |
| 10657 | if test -n "$ac_tool_prefix"; then |
| 10658 | for ac_prog in ar |
| 10659 | do |
| 10660 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10661 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10663 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10664 | if ${ac_cv_prog_AR+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10665 | $as_echo_n "(cached) " >&6 |
| 10666 | else |
| 10667 | if test -n "$AR"; then |
| 10668 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10669 | else |
| 10670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10671 | for as_dir in $PATH |
| 10672 | do |
| 10673 | IFS=$as_save_IFS |
| 10674 | test -z "$as_dir" && as_dir=. |
| 10675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10677 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10679 | break 2 |
| 10680 | fi |
| 10681 | done |
| 10682 | done |
| 10683 | IFS=$as_save_IFS |
| 10684 | |
| 10685 | fi |
| 10686 | fi |
| 10687 | AR=$ac_cv_prog_AR |
| 10688 | if test -n "$AR"; then |
| 10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 10690 | $as_echo "$AR" >&6; } |
| 10691 | else |
| 10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10693 | $as_echo "no" >&6; } |
| 10694 | fi |
| 10695 | |
| 10696 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10697 | test -n "$AR" && break |
| 10698 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10699 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10700 | if test -z "$AR"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10701 | ac_ct_AR=$AR |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10702 | for ac_prog in ar |
| 10703 | do |
| 10704 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10705 | set dummy $ac_prog; ac_word=$2 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10707 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10708 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10709 | $as_echo_n "(cached) " >&6 |
| 10710 | else |
| 10711 | if test -n "$ac_ct_AR"; then |
| 10712 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 10713 | else |
| 10714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10715 | for as_dir in $PATH |
| 10716 | do |
| 10717 | IFS=$as_save_IFS |
| 10718 | test -z "$as_dir" && as_dir=. |
| 10719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10721 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10723 | break 2 |
| 10724 | fi |
| 10725 | done |
| 10726 | done |
| 10727 | IFS=$as_save_IFS |
| 10728 | |
| 10729 | fi |
| 10730 | fi |
| 10731 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10732 | if test -n "$ac_ct_AR"; then |
| 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 10734 | $as_echo "$ac_ct_AR" >&6; } |
| 10735 | else |
| 10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10737 | $as_echo "no" >&6; } |
| 10738 | fi |
| 10739 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10740 | |
| 10741 | test -n "$ac_ct_AR" && break |
| 10742 | done |
| 10743 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10744 | if test "x$ac_ct_AR" = x; then |
| 10745 | AR="false" |
| 10746 | else |
| 10747 | case $cross_compiling:$ac_tool_warned in |
| 10748 | yes:) |
| 10749 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10750 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10751 | ac_tool_warned=yes ;; |
| 10752 | esac |
| 10753 | AR=$ac_ct_AR |
| 10754 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10755 | fi |
| 10756 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10757 | : ${AR=ar} |
| 10758 | : ${AR_FLAGS=cru} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10759 | |
| 10760 | |
| 10761 | |
| 10762 | |
| 10763 | |
| 10764 | |
| 10765 | |
| 10766 | |
| 10767 | |
| 10768 | |
| 10769 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 10771 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 10772 | if ${lt_cv_ar_at_file+:} false; then : |
| 10773 | $as_echo_n "(cached) " >&6 |
| 10774 | else |
| 10775 | lt_cv_ar_at_file=no |
| 10776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10777 | /* end confdefs.h. */ |
| 10778 | |
| 10779 | int |
| 10780 | main () |
| 10781 | { |
| 10782 | |
| 10783 | ; |
| 10784 | return 0; |
| 10785 | } |
| 10786 | _ACEOF |
| 10787 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10788 | echo conftest.$ac_objext > conftest.lst |
| 10789 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 10790 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 10791 | (eval $lt_ar_try) 2>&5 |
| 10792 | ac_status=$? |
| 10793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10794 | test $ac_status = 0; } |
| 10795 | if test "$ac_status" -eq 0; then |
| 10796 | # Ensure the archiver fails upon bogus file names. |
| 10797 | rm -f conftest.$ac_objext libconftest.a |
| 10798 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 10799 | (eval $lt_ar_try) 2>&5 |
| 10800 | ac_status=$? |
| 10801 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10802 | test $ac_status = 0; } |
| 10803 | if test "$ac_status" -ne 0; then |
| 10804 | lt_cv_ar_at_file=@ |
| 10805 | fi |
| 10806 | fi |
| 10807 | rm -f conftest.* libconftest.a |
| 10808 | |
| 10809 | fi |
| 10810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10811 | |
| 10812 | fi |
| 10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 10814 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 10815 | |
| 10816 | if test "x$lt_cv_ar_at_file" = xno; then |
| 10817 | archiver_list_spec= |
| 10818 | else |
| 10819 | archiver_list_spec=$lt_cv_ar_at_file |
| 10820 | fi |
| 10821 | |
| 10822 | |
| 10823 | |
| 10824 | |
| 10825 | |
| 10826 | |
| 10827 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10828 | if test -n "$ac_tool_prefix"; then |
| 10829 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 10830 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10832 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10833 | if ${ac_cv_prog_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10834 | $as_echo_n "(cached) " >&6 |
| 10835 | else |
| 10836 | if test -n "$STRIP"; then |
| 10837 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10838 | else |
| 10839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10840 | for as_dir in $PATH |
| 10841 | do |
| 10842 | IFS=$as_save_IFS |
| 10843 | test -z "$as_dir" && as_dir=. |
| 10844 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10846 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 10847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10848 | break 2 |
| 10849 | fi |
| 10850 | done |
| 10851 | done |
| 10852 | IFS=$as_save_IFS |
| 10853 | |
| 10854 | fi |
| 10855 | fi |
| 10856 | STRIP=$ac_cv_prog_STRIP |
| 10857 | if test -n "$STRIP"; then |
| 10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 10859 | $as_echo "$STRIP" >&6; } |
| 10860 | else |
| 10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10862 | $as_echo "no" >&6; } |
| 10863 | fi |
| 10864 | |
| 10865 | |
| 10866 | fi |
| 10867 | if test -z "$ac_cv_prog_STRIP"; then |
| 10868 | ac_ct_STRIP=$STRIP |
| 10869 | # Extract the first word of "strip", so it can be a program name with args. |
| 10870 | set dummy strip; ac_word=$2 |
| 10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10872 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10873 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10874 | $as_echo_n "(cached) " >&6 |
| 10875 | else |
| 10876 | if test -n "$ac_ct_STRIP"; then |
| 10877 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 10878 | else |
| 10879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10880 | for as_dir in $PATH |
| 10881 | do |
| 10882 | IFS=$as_save_IFS |
| 10883 | test -z "$as_dir" && as_dir=. |
| 10884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10886 | ac_cv_prog_ac_ct_STRIP="strip" |
| 10887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10888 | break 2 |
| 10889 | fi |
| 10890 | done |
| 10891 | done |
| 10892 | IFS=$as_save_IFS |
| 10893 | |
| 10894 | fi |
| 10895 | fi |
| 10896 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10897 | if test -n "$ac_ct_STRIP"; then |
| 10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 10899 | $as_echo "$ac_ct_STRIP" >&6; } |
| 10900 | else |
| 10901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10902 | $as_echo "no" >&6; } |
| 10903 | fi |
| 10904 | |
| 10905 | if test "x$ac_ct_STRIP" = x; then |
| 10906 | STRIP=":" |
| 10907 | else |
| 10908 | case $cross_compiling:$ac_tool_warned in |
| 10909 | yes:) |
| 10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10911 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10912 | ac_tool_warned=yes ;; |
| 10913 | esac |
| 10914 | STRIP=$ac_ct_STRIP |
| 10915 | fi |
| 10916 | else |
| 10917 | STRIP="$ac_cv_prog_STRIP" |
| 10918 | fi |
| 10919 | |
| 10920 | test -z "$STRIP" && STRIP=: |
| 10921 | |
| 10922 | |
| 10923 | |
| 10924 | |
| 10925 | |
| 10926 | |
| 10927 | if test -n "$ac_tool_prefix"; then |
| 10928 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 10929 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10931 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10932 | if ${ac_cv_prog_RANLIB+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10933 | $as_echo_n "(cached) " >&6 |
| 10934 | else |
| 10935 | if test -n "$RANLIB"; then |
| 10936 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10937 | else |
| 10938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10939 | for as_dir in $PATH |
| 10940 | do |
| 10941 | IFS=$as_save_IFS |
| 10942 | test -z "$as_dir" && as_dir=. |
| 10943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10945 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 10946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10947 | break 2 |
| 10948 | fi |
| 10949 | done |
| 10950 | done |
| 10951 | IFS=$as_save_IFS |
| 10952 | |
| 10953 | fi |
| 10954 | fi |
| 10955 | RANLIB=$ac_cv_prog_RANLIB |
| 10956 | if test -n "$RANLIB"; then |
| 10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 10958 | $as_echo "$RANLIB" >&6; } |
| 10959 | else |
| 10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10961 | $as_echo "no" >&6; } |
| 10962 | fi |
| 10963 | |
| 10964 | |
| 10965 | fi |
| 10966 | if test -z "$ac_cv_prog_RANLIB"; then |
| 10967 | ac_ct_RANLIB=$RANLIB |
| 10968 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10969 | set dummy ranlib; ac_word=$2 |
| 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10971 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10972 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10973 | $as_echo_n "(cached) " >&6 |
| 10974 | else |
| 10975 | if test -n "$ac_ct_RANLIB"; then |
| 10976 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 10977 | else |
| 10978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10979 | for as_dir in $PATH |
| 10980 | do |
| 10981 | IFS=$as_save_IFS |
| 10982 | test -z "$as_dir" && as_dir=. |
| 10983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10985 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 10986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10987 | break 2 |
| 10988 | fi |
| 10989 | done |
| 10990 | done |
| 10991 | IFS=$as_save_IFS |
| 10992 | |
| 10993 | fi |
| 10994 | fi |
| 10995 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10996 | if test -n "$ac_ct_RANLIB"; then |
| 10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 10998 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 10999 | else |
| 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11001 | $as_echo "no" >&6; } |
| 11002 | fi |
| 11003 | |
| 11004 | if test "x$ac_ct_RANLIB" = x; then |
| 11005 | RANLIB=":" |
| 11006 | else |
| 11007 | case $cross_compiling:$ac_tool_warned in |
| 11008 | yes:) |
| 11009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11010 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11011 | ac_tool_warned=yes ;; |
| 11012 | esac |
| 11013 | RANLIB=$ac_ct_RANLIB |
| 11014 | fi |
| 11015 | else |
| 11016 | RANLIB="$ac_cv_prog_RANLIB" |
| 11017 | fi |
| 11018 | |
| 11019 | test -z "$RANLIB" && RANLIB=: |
| 11020 | |
| 11021 | |
| 11022 | |
| 11023 | |
| 11024 | |
| 11025 | |
| 11026 | # Determine commands to create old-style static archives. |
| 11027 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 11028 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11029 | old_postuninstall_cmds= |
| 11030 | |
| 11031 | if test -n "$RANLIB"; then |
| 11032 | case $host_os in |
| 11033 | openbsd*) |
| 11034 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 11035 | ;; |
| 11036 | *) |
| 11037 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 11038 | ;; |
| 11039 | esac |
| 11040 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 11041 | fi |
| 11042 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11043 | case $host_os in |
| 11044 | darwin*) |
| 11045 | lock_old_archive_extraction=yes ;; |
| 11046 | *) |
| 11047 | lock_old_archive_extraction=no ;; |
| 11048 | esac |
| 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | |
| 11054 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11055 | |
| 11056 | |
| 11057 | |
| 11058 | |
| 11059 | |
| 11060 | |
| 11061 | |
| 11062 | |
| 11063 | |
| 11064 | |
| 11065 | |
| 11066 | |
| 11067 | |
| 11068 | |
| 11069 | |
| 11070 | |
| 11071 | |
| 11072 | |
| 11073 | |
| 11074 | |
| 11075 | |
| 11076 | |
| 11077 | |
| 11078 | |
| 11079 | |
| 11080 | |
| 11081 | |
| 11082 | |
| 11083 | |
| 11084 | |
| 11085 | |
| 11086 | |
| 11087 | |
| 11088 | # If no C compiler was specified, use CC. |
| 11089 | LTCC=${LTCC-"$CC"} |
| 11090 | |
| 11091 | # If no C compiler flags were specified, use CFLAGS. |
| 11092 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11093 | |
| 11094 | # Allow CC to be a program name with arguments. |
| 11095 | compiler=$CC |
| 11096 | |
| 11097 | |
| 11098 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 11100 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11101 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11102 | $as_echo_n "(cached) " >&6 |
| 11103 | else |
| 11104 | |
| 11105 | # These are sane defaults that work on at least a few old systems. |
| 11106 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 11107 | |
| 11108 | # Character class describing NM global symbol codes. |
| 11109 | symcode='[BCDEGRST]' |
| 11110 | |
| 11111 | # Regexp to match symbols that can be accessed directly from C. |
| 11112 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 11113 | |
| 11114 | # Define system-specific variables. |
| 11115 | case $host_os in |
| 11116 | aix*) |
| 11117 | symcode='[BCDT]' |
| 11118 | ;; |
| 11119 | cygwin* | mingw* | pw32* | cegcc*) |
| 11120 | symcode='[ABCDGISTW]' |
| 11121 | ;; |
| 11122 | hpux*) |
| 11123 | if test "$host_cpu" = ia64; then |
| 11124 | symcode='[ABCDEGRST]' |
| 11125 | fi |
| 11126 | ;; |
| 11127 | irix* | nonstopux*) |
| 11128 | symcode='[BCDEGRST]' |
| 11129 | ;; |
| 11130 | osf*) |
| 11131 | symcode='[BCDEGQRST]' |
| 11132 | ;; |
| 11133 | solaris*) |
| 11134 | symcode='[BDRT]' |
| 11135 | ;; |
| 11136 | sco3.2v5*) |
| 11137 | symcode='[DT]' |
| 11138 | ;; |
| 11139 | sysv4.2uw2*) |
| 11140 | symcode='[DT]' |
| 11141 | ;; |
| 11142 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 11143 | symcode='[ABDT]' |
| 11144 | ;; |
| 11145 | sysv4) |
| 11146 | symcode='[DFNSTU]' |
| 11147 | ;; |
| 11148 | esac |
| 11149 | |
| 11150 | # If we're using GNU nm, then use its standard symbol codes. |
| 11151 | case `$NM -V 2>&1` in |
| 11152 | *GNU* | *'with BFD'*) |
| 11153 | symcode='[ABCDGIRSTW]' ;; |
| 11154 | esac |
| 11155 | |
| 11156 | # Transform an extracted symbol line into a proper C declaration. |
| 11157 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 11158 | # so use this general approach. |
| 11159 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11160 | |
| 11161 | # Transform an extracted symbol line into symbol name and symbol address |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11162 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 11163 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11164 | |
| 11165 | # Handle CRLF in mingw tool chain |
| 11166 | opt_cr= |
| 11167 | case $build_os in |
| 11168 | mingw*) |
| 11169 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11170 | ;; |
| 11171 | esac |
| 11172 | |
| 11173 | # Try without a prefix underscore, then with it. |
| 11174 | for ac_symprfx in "" "_"; do |
| 11175 | |
| 11176 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 11177 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 11178 | |
| 11179 | # Write the raw and C identifiers. |
| 11180 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 11181 | # Fake it for dumpbin and say T for any non-static function |
| 11182 | # and D for any global variable. |
| 11183 | # Also find C++ and __fastcall symbols from MSVC++, |
| 11184 | # which start with @ or ?. |
| 11185 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 11186 | " {last_section=section; section=\$ 3};"\ |
| 11187 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 11188 | " \$ 0!~/External *\|/{next};"\ |
| 11189 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 11190 | " {if(hide[section]) next};"\ |
| 11191 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 11192 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 11193 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 11194 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 11195 | " ' prfx=^$ac_symprfx" |
| 11196 | else |
| 11197 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 11198 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11199 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11200 | |
| 11201 | # Check to see that the pipe works correctly. |
| 11202 | pipe_works=no |
| 11203 | |
| 11204 | rm -f conftest* |
| 11205 | cat > conftest.$ac_ext <<_LT_EOF |
| 11206 | #ifdef __cplusplus |
| 11207 | extern "C" { |
| 11208 | #endif |
| 11209 | char nm_test_var; |
| 11210 | void nm_test_func(void); |
| 11211 | void nm_test_func(void){} |
| 11212 | #ifdef __cplusplus |
| 11213 | } |
| 11214 | #endif |
| 11215 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 11216 | _LT_EOF |
| 11217 | |
| 11218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11219 | (eval $ac_compile) 2>&5 |
| 11220 | ac_status=$? |
| 11221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11222 | test $ac_status = 0; }; then |
| 11223 | # Now try to grab the symbols. |
| 11224 | nlist=conftest.nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 11226 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11227 | ac_status=$? |
| 11228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11229 | test $ac_status = 0; } && test -s "$nlist"; then |
| 11230 | # Try sorting and uniquifying the output. |
| 11231 | if sort "$nlist" | uniq > "$nlist"T; then |
| 11232 | mv -f "$nlist"T "$nlist" |
| 11233 | else |
| 11234 | rm -f "$nlist"T |
| 11235 | fi |
| 11236 | |
| 11237 | # Make sure that we snagged all the symbols we need. |
| 11238 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 11239 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 11240 | cat <<_LT_EOF > conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11241 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 11242 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 11243 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 11244 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 11245 | # define LT_DLSYM_CONST |
| 11246 | #elif defined(__osf__) |
| 11247 | /* This system does not cope well with relocations in const data. */ |
| 11248 | # define LT_DLSYM_CONST |
| 11249 | #else |
| 11250 | # define LT_DLSYM_CONST const |
| 11251 | #endif |
| 11252 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11253 | #ifdef __cplusplus |
| 11254 | extern "C" { |
| 11255 | #endif |
| 11256 | |
| 11257 | _LT_EOF |
| 11258 | # Now generate the symbol file. |
| 11259 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 11260 | |
| 11261 | cat <<_LT_EOF >> conftest.$ac_ext |
| 11262 | |
| 11263 | /* The mapping between symbol names and symbols. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11264 | LT_DLSYM_CONST struct { |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11265 | const char *name; |
| 11266 | void *address; |
| 11267 | } |
| 11268 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 11269 | { |
| 11270 | { "@PROGRAM@", (void *) 0 }, |
| 11271 | _LT_EOF |
| 11272 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 11273 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 11274 | {0, (void *) 0} |
| 11275 | }; |
| 11276 | |
| 11277 | /* This works around a problem in FreeBSD linker */ |
| 11278 | #ifdef FREEBSD_WORKAROUND |
| 11279 | static const void *lt_preloaded_setup() { |
| 11280 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 11281 | } |
| 11282 | #endif |
| 11283 | |
| 11284 | #ifdef __cplusplus |
| 11285 | } |
| 11286 | #endif |
| 11287 | _LT_EOF |
| 11288 | # Now try linking the two files. |
| 11289 | mv conftest.$ac_objext conftstm.$ac_objext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11290 | lt_globsym_save_LIBS=$LIBS |
| 11291 | lt_globsym_save_CFLAGS=$CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11292 | LIBS="conftstm.$ac_objext" |
| 11293 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 11294 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11295 | (eval $ac_link) 2>&5 |
| 11296 | ac_status=$? |
| 11297 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11298 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 11299 | pipe_works=yes |
| 11300 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11301 | LIBS=$lt_globsym_save_LIBS |
| 11302 | CFLAGS=$lt_globsym_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11303 | else |
| 11304 | echo "cannot find nm_test_func in $nlist" >&5 |
| 11305 | fi |
| 11306 | else |
| 11307 | echo "cannot find nm_test_var in $nlist" >&5 |
| 11308 | fi |
| 11309 | else |
| 11310 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 11311 | fi |
| 11312 | else |
| 11313 | echo "$progname: failed program was:" >&5 |
| 11314 | cat conftest.$ac_ext >&5 |
| 11315 | fi |
| 11316 | rm -rf conftest* conftst* |
| 11317 | |
| 11318 | # Do not use the global_symbol_pipe unless it works. |
| 11319 | if test "$pipe_works" = yes; then |
| 11320 | break |
| 11321 | else |
| 11322 | lt_cv_sys_global_symbol_pipe= |
| 11323 | fi |
| 11324 | done |
| 11325 | |
| 11326 | fi |
| 11327 | |
| 11328 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 11329 | lt_cv_sys_global_symbol_to_cdecl= |
| 11330 | fi |
| 11331 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 11333 | $as_echo "failed" >&6; } |
| 11334 | else |
| 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 11336 | $as_echo "ok" >&6; } |
| 11337 | fi |
| 11338 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11339 | # Response file support. |
| 11340 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 11341 | nm_file_list_spec='@' |
| 11342 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 11343 | nm_file_list_spec='@' |
| 11344 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11345 | |
| 11346 | |
| 11347 | |
| 11348 | |
| 11349 | |
| 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 11373 | $as_echo_n "checking for sysroot... " >&6; } |
| 11374 | |
| 11375 | # Check whether --with-sysroot was given. |
| 11376 | if test "${with_sysroot+set}" = set; then : |
| 11377 | withval=$with_sysroot; |
| 11378 | else |
| 11379 | with_sysroot=no |
| 11380 | fi |
| 11381 | |
| 11382 | |
| 11383 | lt_sysroot= |
| 11384 | case ${with_sysroot} in #( |
| 11385 | yes) |
| 11386 | if test "$GCC" = yes; then |
| 11387 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 11388 | fi |
| 11389 | ;; #( |
| 11390 | /*) |
| 11391 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 11392 | ;; #( |
| 11393 | no|'') |
| 11394 | ;; #( |
| 11395 | *) |
| 11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 11397 | $as_echo "${with_sysroot}" >&6; } |
| 11398 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 11399 | ;; |
| 11400 | esac |
| 11401 | |
| 11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 11403 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11409 | # Check whether --enable-libtool-lock was given. |
| 11410 | if test "${enable_libtool_lock+set}" = set; then : |
| 11411 | enableval=$enable_libtool_lock; |
| 11412 | fi |
| 11413 | |
| 11414 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 11415 | |
| 11416 | # Some flags need to be propagated to the compiler or linker for good |
| 11417 | # libtool support. |
| 11418 | case $host in |
| 11419 | ia64-*-hpux*) |
| 11420 | # Find out which ABI we are using. |
| 11421 | echo 'int i;' > conftest.$ac_ext |
| 11422 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11423 | (eval $ac_compile) 2>&5 |
| 11424 | ac_status=$? |
| 11425 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11426 | test $ac_status = 0; }; then |
| 11427 | case `/usr/bin/file conftest.$ac_objext` in |
| 11428 | *ELF-32*) |
| 11429 | HPUX_IA64_MODE="32" |
| 11430 | ;; |
| 11431 | *ELF-64*) |
| 11432 | HPUX_IA64_MODE="64" |
| 11433 | ;; |
| 11434 | esac |
| 11435 | fi |
| 11436 | rm -rf conftest* |
| 11437 | ;; |
| 11438 | *-*-irix6*) |
| 11439 | # Find out which ABI we are using. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11440 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11441 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11442 | (eval $ac_compile) 2>&5 |
| 11443 | ac_status=$? |
| 11444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11445 | test $ac_status = 0; }; then |
| 11446 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11447 | case `/usr/bin/file conftest.$ac_objext` in |
| 11448 | *32-bit*) |
| 11449 | LD="${LD-ld} -melf32bsmip" |
| 11450 | ;; |
| 11451 | *N32*) |
| 11452 | LD="${LD-ld} -melf32bmipn32" |
| 11453 | ;; |
| 11454 | *64-bit*) |
| 11455 | LD="${LD-ld} -melf64bmip" |
| 11456 | ;; |
| 11457 | esac |
| 11458 | else |
| 11459 | case `/usr/bin/file conftest.$ac_objext` in |
| 11460 | *32-bit*) |
| 11461 | LD="${LD-ld} -32" |
| 11462 | ;; |
| 11463 | *N32*) |
| 11464 | LD="${LD-ld} -n32" |
| 11465 | ;; |
| 11466 | *64-bit*) |
| 11467 | LD="${LD-ld} -64" |
| 11468 | ;; |
| 11469 | esac |
| 11470 | fi |
| 11471 | fi |
| 11472 | rm -rf conftest* |
| 11473 | ;; |
| 11474 | |
| 11475 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 11476 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 11477 | # Find out which ABI we are using. |
| 11478 | echo 'int i;' > conftest.$ac_ext |
| 11479 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11480 | (eval $ac_compile) 2>&5 |
| 11481 | ac_status=$? |
| 11482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11483 | test $ac_status = 0; }; then |
| 11484 | case `/usr/bin/file conftest.o` in |
| 11485 | *32-bit*) |
| 11486 | case $host in |
| 11487 | x86_64-*kfreebsd*-gnu) |
| 11488 | LD="${LD-ld} -m elf_i386_fbsd" |
| 11489 | ;; |
| 11490 | x86_64-*linux*) |
| 11491 | LD="${LD-ld} -m elf_i386" |
| 11492 | ;; |
| 11493 | ppc64-*linux*|powerpc64-*linux*) |
| 11494 | LD="${LD-ld} -m elf32ppclinux" |
| 11495 | ;; |
| 11496 | s390x-*linux*) |
| 11497 | LD="${LD-ld} -m elf_s390" |
| 11498 | ;; |
| 11499 | sparc64-*linux*) |
| 11500 | LD="${LD-ld} -m elf32_sparc" |
| 11501 | ;; |
| 11502 | esac |
| 11503 | ;; |
| 11504 | *64-bit*) |
| 11505 | case $host in |
| 11506 | x86_64-*kfreebsd*-gnu) |
| 11507 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 11508 | ;; |
| 11509 | x86_64-*linux*) |
| 11510 | LD="${LD-ld} -m elf_x86_64" |
| 11511 | ;; |
| 11512 | ppc*-*linux*|powerpc*-*linux*) |
| 11513 | LD="${LD-ld} -m elf64ppc" |
| 11514 | ;; |
| 11515 | s390*-*linux*|s390*-*tpf*) |
| 11516 | LD="${LD-ld} -m elf64_s390" |
| 11517 | ;; |
| 11518 | sparc*-*linux*) |
| 11519 | LD="${LD-ld} -m elf64_sparc" |
| 11520 | ;; |
| 11521 | esac |
| 11522 | ;; |
| 11523 | esac |
| 11524 | fi |
| 11525 | rm -rf conftest* |
| 11526 | ;; |
| 11527 | |
| 11528 | *-*-sco3.2v5*) |
| 11529 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 11530 | SAVE_CFLAGS="$CFLAGS" |
| 11531 | CFLAGS="$CFLAGS -belf" |
| 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 11533 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11534 | if ${lt_cv_cc_needs_belf+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11535 | $as_echo_n "(cached) " >&6 |
| 11536 | else |
| 11537 | ac_ext=c |
| 11538 | ac_cpp='$CPP $CPPFLAGS' |
| 11539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11542 | |
| 11543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11544 | /* end confdefs.h. */ |
| 11545 | |
| 11546 | int |
| 11547 | main () |
| 11548 | { |
| 11549 | |
| 11550 | ; |
| 11551 | return 0; |
| 11552 | } |
| 11553 | _ACEOF |
| 11554 | if ac_fn_c_try_link "$LINENO"; then : |
| 11555 | lt_cv_cc_needs_belf=yes |
| 11556 | else |
| 11557 | lt_cv_cc_needs_belf=no |
| 11558 | fi |
| 11559 | rm -f core conftest.err conftest.$ac_objext \ |
| 11560 | conftest$ac_exeext conftest.$ac_ext |
| 11561 | ac_ext=c |
| 11562 | ac_cpp='$CPP $CPPFLAGS' |
| 11563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11566 | |
| 11567 | fi |
| 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 11569 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 11570 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 11571 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 11572 | CFLAGS="$SAVE_CFLAGS" |
| 11573 | fi |
| 11574 | ;; |
| 11575 | sparc*-*solaris*) |
| 11576 | # Find out which ABI we are using. |
| 11577 | echo 'int i;' > conftest.$ac_ext |
| 11578 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 11579 | (eval $ac_compile) 2>&5 |
| 11580 | ac_status=$? |
| 11581 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11582 | test $ac_status = 0; }; then |
| 11583 | case `/usr/bin/file conftest.o` in |
| 11584 | *64-bit*) |
| 11585 | case $lt_cv_prog_gnu_ld in |
| 11586 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 11587 | *) |
| 11588 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 11589 | LD="${LD-ld} -64" |
| 11590 | fi |
| 11591 | ;; |
| 11592 | esac |
| 11593 | ;; |
| 11594 | esac |
| 11595 | fi |
| 11596 | rm -rf conftest* |
| 11597 | ;; |
| 11598 | esac |
| 11599 | |
| 11600 | need_locks="$enable_libtool_lock" |
| 11601 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11602 | if test -n "$ac_tool_prefix"; then |
| 11603 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 11604 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 11605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11606 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11607 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 11608 | $as_echo_n "(cached) " >&6 |
| 11609 | else |
| 11610 | if test -n "$MANIFEST_TOOL"; then |
| 11611 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 11612 | else |
| 11613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11614 | for as_dir in $PATH |
| 11615 | do |
| 11616 | IFS=$as_save_IFS |
| 11617 | test -z "$as_dir" && as_dir=. |
| 11618 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11620 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 11621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11622 | break 2 |
| 11623 | fi |
| 11624 | done |
| 11625 | done |
| 11626 | IFS=$as_save_IFS |
| 11627 | |
| 11628 | fi |
| 11629 | fi |
| 11630 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 11631 | if test -n "$MANIFEST_TOOL"; then |
| 11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 11633 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 11634 | else |
| 11635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11636 | $as_echo "no" >&6; } |
| 11637 | fi |
| 11638 | |
| 11639 | |
| 11640 | fi |
| 11641 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 11642 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 11643 | # Extract the first word of "mt", so it can be a program name with args. |
| 11644 | set dummy mt; ac_word=$2 |
| 11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11646 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11647 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 11648 | $as_echo_n "(cached) " >&6 |
| 11649 | else |
| 11650 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 11651 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 11652 | else |
| 11653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11654 | for as_dir in $PATH |
| 11655 | do |
| 11656 | IFS=$as_save_IFS |
| 11657 | test -z "$as_dir" && as_dir=. |
| 11658 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11660 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 11661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11662 | break 2 |
| 11663 | fi |
| 11664 | done |
| 11665 | done |
| 11666 | IFS=$as_save_IFS |
| 11667 | |
| 11668 | fi |
| 11669 | fi |
| 11670 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 11671 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 11673 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 11674 | else |
| 11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11676 | $as_echo "no" >&6; } |
| 11677 | fi |
| 11678 | |
| 11679 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 11680 | MANIFEST_TOOL=":" |
| 11681 | else |
| 11682 | case $cross_compiling:$ac_tool_warned in |
| 11683 | yes:) |
| 11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11685 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11686 | ac_tool_warned=yes ;; |
| 11687 | esac |
| 11688 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 11689 | fi |
| 11690 | else |
| 11691 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 11692 | fi |
| 11693 | |
| 11694 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 11695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 11696 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 11697 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 11698 | $as_echo_n "(cached) " >&6 |
| 11699 | else |
| 11700 | lt_cv_path_mainfest_tool=no |
| 11701 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 11702 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 11703 | cat conftest.err >&5 |
| 11704 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 11705 | lt_cv_path_mainfest_tool=yes |
| 11706 | fi |
| 11707 | rm -f conftest* |
| 11708 | fi |
| 11709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 11710 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 11711 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 11712 | MANIFEST_TOOL=: |
| 11713 | fi |
| 11714 | |
| 11715 | |
| 11716 | |
| 11717 | |
| 11718 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11719 | |
| 11720 | case $host_os in |
| 11721 | rhapsody* | darwin*) |
| 11722 | if test -n "$ac_tool_prefix"; then |
| 11723 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 11724 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11726 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11727 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11728 | $as_echo_n "(cached) " >&6 |
| 11729 | else |
| 11730 | if test -n "$DSYMUTIL"; then |
| 11731 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 11732 | else |
| 11733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11734 | for as_dir in $PATH |
| 11735 | do |
| 11736 | IFS=$as_save_IFS |
| 11737 | test -z "$as_dir" && as_dir=. |
| 11738 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11740 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 11741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11742 | break 2 |
| 11743 | fi |
| 11744 | done |
| 11745 | done |
| 11746 | IFS=$as_save_IFS |
| 11747 | |
| 11748 | fi |
| 11749 | fi |
| 11750 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 11751 | if test -n "$DSYMUTIL"; then |
| 11752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 11753 | $as_echo "$DSYMUTIL" >&6; } |
| 11754 | else |
| 11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11756 | $as_echo "no" >&6; } |
| 11757 | fi |
| 11758 | |
| 11759 | |
| 11760 | fi |
| 11761 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 11762 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 11763 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 11764 | set dummy dsymutil; ac_word=$2 |
| 11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11766 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11767 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11768 | $as_echo_n "(cached) " >&6 |
| 11769 | else |
| 11770 | if test -n "$ac_ct_DSYMUTIL"; then |
| 11771 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 11772 | else |
| 11773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11774 | for as_dir in $PATH |
| 11775 | do |
| 11776 | IFS=$as_save_IFS |
| 11777 | test -z "$as_dir" && as_dir=. |
| 11778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11780 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 11781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11782 | break 2 |
| 11783 | fi |
| 11784 | done |
| 11785 | done |
| 11786 | IFS=$as_save_IFS |
| 11787 | |
| 11788 | fi |
| 11789 | fi |
| 11790 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 11791 | if test -n "$ac_ct_DSYMUTIL"; then |
| 11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 11793 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 11794 | else |
| 11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11796 | $as_echo "no" >&6; } |
| 11797 | fi |
| 11798 | |
| 11799 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 11800 | DSYMUTIL=":" |
| 11801 | else |
| 11802 | case $cross_compiling:$ac_tool_warned in |
| 11803 | yes:) |
| 11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11805 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11806 | ac_tool_warned=yes ;; |
| 11807 | esac |
| 11808 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 11809 | fi |
| 11810 | else |
| 11811 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 11812 | fi |
| 11813 | |
| 11814 | if test -n "$ac_tool_prefix"; then |
| 11815 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 11816 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 11817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11818 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11819 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11820 | $as_echo_n "(cached) " >&6 |
| 11821 | else |
| 11822 | if test -n "$NMEDIT"; then |
| 11823 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 11824 | else |
| 11825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11826 | for as_dir in $PATH |
| 11827 | do |
| 11828 | IFS=$as_save_IFS |
| 11829 | test -z "$as_dir" && as_dir=. |
| 11830 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11832 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 11833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11834 | break 2 |
| 11835 | fi |
| 11836 | done |
| 11837 | done |
| 11838 | IFS=$as_save_IFS |
| 11839 | |
| 11840 | fi |
| 11841 | fi |
| 11842 | NMEDIT=$ac_cv_prog_NMEDIT |
| 11843 | if test -n "$NMEDIT"; then |
| 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 11845 | $as_echo "$NMEDIT" >&6; } |
| 11846 | else |
| 11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11848 | $as_echo "no" >&6; } |
| 11849 | fi |
| 11850 | |
| 11851 | |
| 11852 | fi |
| 11853 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 11854 | ac_ct_NMEDIT=$NMEDIT |
| 11855 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 11856 | set dummy nmedit; ac_word=$2 |
| 11857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11858 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11859 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11860 | $as_echo_n "(cached) " >&6 |
| 11861 | else |
| 11862 | if test -n "$ac_ct_NMEDIT"; then |
| 11863 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 11864 | else |
| 11865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11866 | for as_dir in $PATH |
| 11867 | do |
| 11868 | IFS=$as_save_IFS |
| 11869 | test -z "$as_dir" && as_dir=. |
| 11870 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11871 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11872 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 11873 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11874 | break 2 |
| 11875 | fi |
| 11876 | done |
| 11877 | done |
| 11878 | IFS=$as_save_IFS |
| 11879 | |
| 11880 | fi |
| 11881 | fi |
| 11882 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 11883 | if test -n "$ac_ct_NMEDIT"; then |
| 11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 11885 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 11886 | else |
| 11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11888 | $as_echo "no" >&6; } |
| 11889 | fi |
| 11890 | |
| 11891 | if test "x$ac_ct_NMEDIT" = x; then |
| 11892 | NMEDIT=":" |
| 11893 | else |
| 11894 | case $cross_compiling:$ac_tool_warned in |
| 11895 | yes:) |
| 11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11897 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11898 | ac_tool_warned=yes ;; |
| 11899 | esac |
| 11900 | NMEDIT=$ac_ct_NMEDIT |
| 11901 | fi |
| 11902 | else |
| 11903 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 11904 | fi |
| 11905 | |
| 11906 | if test -n "$ac_tool_prefix"; then |
| 11907 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 11908 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11910 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11911 | if ${ac_cv_prog_LIPO+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11912 | $as_echo_n "(cached) " >&6 |
| 11913 | else |
| 11914 | if test -n "$LIPO"; then |
| 11915 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 11916 | else |
| 11917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11918 | for as_dir in $PATH |
| 11919 | do |
| 11920 | IFS=$as_save_IFS |
| 11921 | test -z "$as_dir" && as_dir=. |
| 11922 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11924 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 11925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11926 | break 2 |
| 11927 | fi |
| 11928 | done |
| 11929 | done |
| 11930 | IFS=$as_save_IFS |
| 11931 | |
| 11932 | fi |
| 11933 | fi |
| 11934 | LIPO=$ac_cv_prog_LIPO |
| 11935 | if test -n "$LIPO"; then |
| 11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 11937 | $as_echo "$LIPO" >&6; } |
| 11938 | else |
| 11939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11940 | $as_echo "no" >&6; } |
| 11941 | fi |
| 11942 | |
| 11943 | |
| 11944 | fi |
| 11945 | if test -z "$ac_cv_prog_LIPO"; then |
| 11946 | ac_ct_LIPO=$LIPO |
| 11947 | # Extract the first word of "lipo", so it can be a program name with args. |
| 11948 | set dummy lipo; ac_word=$2 |
| 11949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11950 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11951 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11952 | $as_echo_n "(cached) " >&6 |
| 11953 | else |
| 11954 | if test -n "$ac_ct_LIPO"; then |
| 11955 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 11956 | else |
| 11957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11958 | for as_dir in $PATH |
| 11959 | do |
| 11960 | IFS=$as_save_IFS |
| 11961 | test -z "$as_dir" && as_dir=. |
| 11962 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11964 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 11965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11966 | break 2 |
| 11967 | fi |
| 11968 | done |
| 11969 | done |
| 11970 | IFS=$as_save_IFS |
| 11971 | |
| 11972 | fi |
| 11973 | fi |
| 11974 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 11975 | if test -n "$ac_ct_LIPO"; then |
| 11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 11977 | $as_echo "$ac_ct_LIPO" >&6; } |
| 11978 | else |
| 11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11980 | $as_echo "no" >&6; } |
| 11981 | fi |
| 11982 | |
| 11983 | if test "x$ac_ct_LIPO" = x; then |
| 11984 | LIPO=":" |
| 11985 | else |
| 11986 | case $cross_compiling:$ac_tool_warned in |
| 11987 | yes:) |
| 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11990 | ac_tool_warned=yes ;; |
| 11991 | esac |
| 11992 | LIPO=$ac_ct_LIPO |
| 11993 | fi |
| 11994 | else |
| 11995 | LIPO="$ac_cv_prog_LIPO" |
| 11996 | fi |
| 11997 | |
| 11998 | if test -n "$ac_tool_prefix"; then |
| 11999 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 12000 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 12001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12002 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12003 | if ${ac_cv_prog_OTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12004 | $as_echo_n "(cached) " >&6 |
| 12005 | else |
| 12006 | if test -n "$OTOOL"; then |
| 12007 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 12008 | else |
| 12009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12010 | for as_dir in $PATH |
| 12011 | do |
| 12012 | IFS=$as_save_IFS |
| 12013 | test -z "$as_dir" && as_dir=. |
| 12014 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12016 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 12017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12018 | break 2 |
| 12019 | fi |
| 12020 | done |
| 12021 | done |
| 12022 | IFS=$as_save_IFS |
| 12023 | |
| 12024 | fi |
| 12025 | fi |
| 12026 | OTOOL=$ac_cv_prog_OTOOL |
| 12027 | if test -n "$OTOOL"; then |
| 12028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 12029 | $as_echo "$OTOOL" >&6; } |
| 12030 | else |
| 12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12032 | $as_echo "no" >&6; } |
| 12033 | fi |
| 12034 | |
| 12035 | |
| 12036 | fi |
| 12037 | if test -z "$ac_cv_prog_OTOOL"; then |
| 12038 | ac_ct_OTOOL=$OTOOL |
| 12039 | # Extract the first word of "otool", so it can be a program name with args. |
| 12040 | set dummy otool; ac_word=$2 |
| 12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12042 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12043 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12044 | $as_echo_n "(cached) " >&6 |
| 12045 | else |
| 12046 | if test -n "$ac_ct_OTOOL"; then |
| 12047 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 12048 | else |
| 12049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12050 | for as_dir in $PATH |
| 12051 | do |
| 12052 | IFS=$as_save_IFS |
| 12053 | test -z "$as_dir" && as_dir=. |
| 12054 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12056 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 12057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12058 | break 2 |
| 12059 | fi |
| 12060 | done |
| 12061 | done |
| 12062 | IFS=$as_save_IFS |
| 12063 | |
| 12064 | fi |
| 12065 | fi |
| 12066 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 12067 | if test -n "$ac_ct_OTOOL"; then |
| 12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 12069 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 12070 | else |
| 12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12072 | $as_echo "no" >&6; } |
| 12073 | fi |
| 12074 | |
| 12075 | if test "x$ac_ct_OTOOL" = x; then |
| 12076 | OTOOL=":" |
| 12077 | else |
| 12078 | case $cross_compiling:$ac_tool_warned in |
| 12079 | yes:) |
| 12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12081 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12082 | ac_tool_warned=yes ;; |
| 12083 | esac |
| 12084 | OTOOL=$ac_ct_OTOOL |
| 12085 | fi |
| 12086 | else |
| 12087 | OTOOL="$ac_cv_prog_OTOOL" |
| 12088 | fi |
| 12089 | |
| 12090 | if test -n "$ac_tool_prefix"; then |
| 12091 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 12092 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12094 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12095 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12096 | $as_echo_n "(cached) " >&6 |
| 12097 | else |
| 12098 | if test -n "$OTOOL64"; then |
| 12099 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 12100 | else |
| 12101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12102 | for as_dir in $PATH |
| 12103 | do |
| 12104 | IFS=$as_save_IFS |
| 12105 | test -z "$as_dir" && as_dir=. |
| 12106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12108 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 12109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12110 | break 2 |
| 12111 | fi |
| 12112 | done |
| 12113 | done |
| 12114 | IFS=$as_save_IFS |
| 12115 | |
| 12116 | fi |
| 12117 | fi |
| 12118 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 12119 | if test -n "$OTOOL64"; then |
| 12120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 12121 | $as_echo "$OTOOL64" >&6; } |
| 12122 | else |
| 12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12124 | $as_echo "no" >&6; } |
| 12125 | fi |
| 12126 | |
| 12127 | |
| 12128 | fi |
| 12129 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 12130 | ac_ct_OTOOL64=$OTOOL64 |
| 12131 | # Extract the first word of "otool64", so it can be a program name with args. |
| 12132 | set dummy otool64; ac_word=$2 |
| 12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12134 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12135 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12136 | $as_echo_n "(cached) " >&6 |
| 12137 | else |
| 12138 | if test -n "$ac_ct_OTOOL64"; then |
| 12139 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 12140 | else |
| 12141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12142 | for as_dir in $PATH |
| 12143 | do |
| 12144 | IFS=$as_save_IFS |
| 12145 | test -z "$as_dir" && as_dir=. |
| 12146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12148 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 12149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12150 | break 2 |
| 12151 | fi |
| 12152 | done |
| 12153 | done |
| 12154 | IFS=$as_save_IFS |
| 12155 | |
| 12156 | fi |
| 12157 | fi |
| 12158 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 12159 | if test -n "$ac_ct_OTOOL64"; then |
| 12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 12161 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 12162 | else |
| 12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12164 | $as_echo "no" >&6; } |
| 12165 | fi |
| 12166 | |
| 12167 | if test "x$ac_ct_OTOOL64" = x; then |
| 12168 | OTOOL64=":" |
| 12169 | else |
| 12170 | case $cross_compiling:$ac_tool_warned in |
| 12171 | yes:) |
| 12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12174 | ac_tool_warned=yes ;; |
| 12175 | esac |
| 12176 | OTOOL64=$ac_ct_OTOOL64 |
| 12177 | fi |
| 12178 | else |
| 12179 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 12180 | fi |
| 12181 | |
| 12182 | |
| 12183 | |
| 12184 | |
| 12185 | |
| 12186 | |
| 12187 | |
| 12188 | |
| 12189 | |
| 12190 | |
| 12191 | |
| 12192 | |
| 12193 | |
| 12194 | |
| 12195 | |
| 12196 | |
| 12197 | |
| 12198 | |
| 12199 | |
| 12200 | |
| 12201 | |
| 12202 | |
| 12203 | |
| 12204 | |
| 12205 | |
| 12206 | |
| 12207 | |
| 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 12209 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12210 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12211 | $as_echo_n "(cached) " >&6 |
| 12212 | else |
| 12213 | lt_cv_apple_cc_single_mod=no |
| 12214 | if test -z "${LT_MULTI_MODULE}"; then |
| 12215 | # By default we will add the -single_module flag. You can override |
| 12216 | # by either setting the environment variable LT_MULTI_MODULE |
| 12217 | # non-empty at configure time, or by adding -multi_module to the |
| 12218 | # link flags. |
| 12219 | rm -rf libconftest.dylib* |
| 12220 | echo "int foo(void){return 1;}" > conftest.c |
| 12221 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 12222 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 12223 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 12224 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 12225 | _lt_result=$? |
| 12226 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 12227 | lt_cv_apple_cc_single_mod=yes |
| 12228 | else |
| 12229 | cat conftest.err >&5 |
| 12230 | fi |
| 12231 | rm -rf libconftest.dylib* |
| 12232 | rm -f conftest.* |
| 12233 | fi |
| 12234 | fi |
| 12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 12236 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 12238 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12239 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12240 | $as_echo_n "(cached) " >&6 |
| 12241 | else |
| 12242 | lt_cv_ld_exported_symbols_list=no |
| 12243 | save_LDFLAGS=$LDFLAGS |
| 12244 | echo "_main" > conftest.sym |
| 12245 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 12246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12247 | /* end confdefs.h. */ |
| 12248 | |
| 12249 | int |
| 12250 | main () |
| 12251 | { |
| 12252 | |
| 12253 | ; |
| 12254 | return 0; |
| 12255 | } |
| 12256 | _ACEOF |
| 12257 | if ac_fn_c_try_link "$LINENO"; then : |
| 12258 | lt_cv_ld_exported_symbols_list=yes |
| 12259 | else |
| 12260 | lt_cv_ld_exported_symbols_list=no |
| 12261 | fi |
| 12262 | rm -f core conftest.err conftest.$ac_objext \ |
| 12263 | conftest$ac_exeext conftest.$ac_ext |
| 12264 | LDFLAGS="$save_LDFLAGS" |
| 12265 | |
| 12266 | fi |
| 12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 12268 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 12270 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12271 | if ${lt_cv_ld_force_load+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12272 | $as_echo_n "(cached) " >&6 |
| 12273 | else |
| 12274 | lt_cv_ld_force_load=no |
| 12275 | cat > conftest.c << _LT_EOF |
| 12276 | int forced_loaded() { return 2;} |
| 12277 | _LT_EOF |
| 12278 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 12279 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 12280 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 12281 | $AR cru libconftest.a conftest.o 2>&5 |
| 12282 | echo "$RANLIB libconftest.a" >&5 |
| 12283 | $RANLIB libconftest.a 2>&5 |
| 12284 | cat > conftest.c << _LT_EOF |
| 12285 | int main() { return 0;} |
| 12286 | _LT_EOF |
| 12287 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 12288 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 12289 | _lt_result=$? |
| 12290 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 12291 | lt_cv_ld_force_load=yes |
| 12292 | else |
| 12293 | cat conftest.err >&5 |
| 12294 | fi |
| 12295 | rm -f conftest.err libconftest.a conftest conftest.c |
| 12296 | rm -rf conftest.dSYM |
| 12297 | |
| 12298 | fi |
| 12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 12300 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12301 | case $host_os in |
| 12302 | rhapsody* | darwin1.[012]) |
| 12303 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 12304 | darwin1.*) |
| 12305 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 12306 | darwin*) # darwin 5.x on |
| 12307 | # if running on 10.5 or later, the deployment target defaults |
| 12308 | # to the OS version, if on x86, and 10.4, the deployment |
| 12309 | # target defaults to 10.4. Don't you love it? |
| 12310 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 12311 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 12312 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 12313 | 10.[012]*) |
| 12314 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 12315 | 10.*) |
| 12316 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 12317 | esac |
| 12318 | ;; |
| 12319 | esac |
| 12320 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 12321 | _lt_dar_single_mod='$single_module' |
| 12322 | fi |
| 12323 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 12324 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 12325 | else |
| 12326 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 12327 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12328 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12329 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 12330 | else |
| 12331 | _lt_dsymutil= |
| 12332 | fi |
| 12333 | ;; |
| 12334 | esac |
| 12335 | |
| 12336 | for ac_header in dlfcn.h |
| 12337 | do : |
| 12338 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 12339 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12340 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12341 | cat >>confdefs.h <<_ACEOF |
| 12342 | #define HAVE_DLFCN_H 1 |
| 12343 | _ACEOF |
| 12344 | |
| 12345 | fi |
| 12346 | |
| 12347 | done |
| 12348 | |
| 12349 | |
| 12350 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12351 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12352 | func_stripname_cnf () |
| 12353 | { |
| 12354 | case ${2} in |
| 12355 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 12356 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 12357 | esac |
| 12358 | } # func_stripname_cnf |
| 12359 | |
| 12360 | |
| 12361 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12362 | |
| 12363 | |
| 12364 | # Set options |
| 12365 | enable_win32_dll=yes |
| 12366 | |
| 12367 | case $host in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12368 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12369 | if test -n "$ac_tool_prefix"; then |
| 12370 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 12371 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12373 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12374 | if ${ac_cv_prog_AS+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12375 | $as_echo_n "(cached) " >&6 |
| 12376 | else |
| 12377 | if test -n "$AS"; then |
| 12378 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 12379 | else |
| 12380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12381 | for as_dir in $PATH |
| 12382 | do |
| 12383 | IFS=$as_save_IFS |
| 12384 | test -z "$as_dir" && as_dir=. |
| 12385 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12387 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 12388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12389 | break 2 |
| 12390 | fi |
| 12391 | done |
| 12392 | done |
| 12393 | IFS=$as_save_IFS |
| 12394 | |
| 12395 | fi |
| 12396 | fi |
| 12397 | AS=$ac_cv_prog_AS |
| 12398 | if test -n "$AS"; then |
| 12399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 12400 | $as_echo "$AS" >&6; } |
| 12401 | else |
| 12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12403 | $as_echo "no" >&6; } |
| 12404 | fi |
| 12405 | |
| 12406 | |
| 12407 | fi |
| 12408 | if test -z "$ac_cv_prog_AS"; then |
| 12409 | ac_ct_AS=$AS |
| 12410 | # Extract the first word of "as", so it can be a program name with args. |
| 12411 | set dummy as; ac_word=$2 |
| 12412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12413 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12414 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12415 | $as_echo_n "(cached) " >&6 |
| 12416 | else |
| 12417 | if test -n "$ac_ct_AS"; then |
| 12418 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 12419 | else |
| 12420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12421 | for as_dir in $PATH |
| 12422 | do |
| 12423 | IFS=$as_save_IFS |
| 12424 | test -z "$as_dir" && as_dir=. |
| 12425 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12426 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12427 | ac_cv_prog_ac_ct_AS="as" |
| 12428 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12429 | break 2 |
| 12430 | fi |
| 12431 | done |
| 12432 | done |
| 12433 | IFS=$as_save_IFS |
| 12434 | |
| 12435 | fi |
| 12436 | fi |
| 12437 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 12438 | if test -n "$ac_ct_AS"; then |
| 12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 12440 | $as_echo "$ac_ct_AS" >&6; } |
| 12441 | else |
| 12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12443 | $as_echo "no" >&6; } |
| 12444 | fi |
| 12445 | |
| 12446 | if test "x$ac_ct_AS" = x; then |
| 12447 | AS="false" |
| 12448 | else |
| 12449 | case $cross_compiling:$ac_tool_warned in |
| 12450 | yes:) |
| 12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12452 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12453 | ac_tool_warned=yes ;; |
| 12454 | esac |
| 12455 | AS=$ac_ct_AS |
| 12456 | fi |
| 12457 | else |
| 12458 | AS="$ac_cv_prog_AS" |
| 12459 | fi |
| 12460 | |
| 12461 | if test -n "$ac_tool_prefix"; then |
| 12462 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 12463 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12465 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12466 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12467 | $as_echo_n "(cached) " >&6 |
| 12468 | else |
| 12469 | if test -n "$DLLTOOL"; then |
| 12470 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 12471 | else |
| 12472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12473 | for as_dir in $PATH |
| 12474 | do |
| 12475 | IFS=$as_save_IFS |
| 12476 | test -z "$as_dir" && as_dir=. |
| 12477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12479 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 12480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12481 | break 2 |
| 12482 | fi |
| 12483 | done |
| 12484 | done |
| 12485 | IFS=$as_save_IFS |
| 12486 | |
| 12487 | fi |
| 12488 | fi |
| 12489 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 12490 | if test -n "$DLLTOOL"; then |
| 12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 12492 | $as_echo "$DLLTOOL" >&6; } |
| 12493 | else |
| 12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12495 | $as_echo "no" >&6; } |
| 12496 | fi |
| 12497 | |
| 12498 | |
| 12499 | fi |
| 12500 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 12501 | ac_ct_DLLTOOL=$DLLTOOL |
| 12502 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 12503 | set dummy dlltool; ac_word=$2 |
| 12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12505 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12506 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12507 | $as_echo_n "(cached) " >&6 |
| 12508 | else |
| 12509 | if test -n "$ac_ct_DLLTOOL"; then |
| 12510 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 12511 | else |
| 12512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12513 | for as_dir in $PATH |
| 12514 | do |
| 12515 | IFS=$as_save_IFS |
| 12516 | test -z "$as_dir" && as_dir=. |
| 12517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12519 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 12520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12521 | break 2 |
| 12522 | fi |
| 12523 | done |
| 12524 | done |
| 12525 | IFS=$as_save_IFS |
| 12526 | |
| 12527 | fi |
| 12528 | fi |
| 12529 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 12530 | if test -n "$ac_ct_DLLTOOL"; then |
| 12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 12532 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 12533 | else |
| 12534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12535 | $as_echo "no" >&6; } |
| 12536 | fi |
| 12537 | |
| 12538 | if test "x$ac_ct_DLLTOOL" = x; then |
| 12539 | DLLTOOL="false" |
| 12540 | else |
| 12541 | case $cross_compiling:$ac_tool_warned in |
| 12542 | yes:) |
| 12543 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12544 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12545 | ac_tool_warned=yes ;; |
| 12546 | esac |
| 12547 | DLLTOOL=$ac_ct_DLLTOOL |
| 12548 | fi |
| 12549 | else |
| 12550 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 12551 | fi |
| 12552 | |
| 12553 | if test -n "$ac_tool_prefix"; then |
| 12554 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 12555 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12557 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12558 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12559 | $as_echo_n "(cached) " >&6 |
| 12560 | else |
| 12561 | if test -n "$OBJDUMP"; then |
| 12562 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 12563 | else |
| 12564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12565 | for as_dir in $PATH |
| 12566 | do |
| 12567 | IFS=$as_save_IFS |
| 12568 | test -z "$as_dir" && as_dir=. |
| 12569 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12571 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 12572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12573 | break 2 |
| 12574 | fi |
| 12575 | done |
| 12576 | done |
| 12577 | IFS=$as_save_IFS |
| 12578 | |
| 12579 | fi |
| 12580 | fi |
| 12581 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 12582 | if test -n "$OBJDUMP"; then |
| 12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 12584 | $as_echo "$OBJDUMP" >&6; } |
| 12585 | else |
| 12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12587 | $as_echo "no" >&6; } |
| 12588 | fi |
| 12589 | |
| 12590 | |
| 12591 | fi |
| 12592 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 12593 | ac_ct_OBJDUMP=$OBJDUMP |
| 12594 | # Extract the first word of "objdump", so it can be a program name with args. |
| 12595 | set dummy objdump; ac_word=$2 |
| 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12597 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12598 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12599 | $as_echo_n "(cached) " >&6 |
| 12600 | else |
| 12601 | if test -n "$ac_ct_OBJDUMP"; then |
| 12602 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 12603 | else |
| 12604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12605 | for as_dir in $PATH |
| 12606 | do |
| 12607 | IFS=$as_save_IFS |
| 12608 | test -z "$as_dir" && as_dir=. |
| 12609 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 12611 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 12612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12613 | break 2 |
| 12614 | fi |
| 12615 | done |
| 12616 | done |
| 12617 | IFS=$as_save_IFS |
| 12618 | |
| 12619 | fi |
| 12620 | fi |
| 12621 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 12622 | if test -n "$ac_ct_OBJDUMP"; then |
| 12623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 12624 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 12625 | else |
| 12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12627 | $as_echo "no" >&6; } |
| 12628 | fi |
| 12629 | |
| 12630 | if test "x$ac_ct_OBJDUMP" = x; then |
| 12631 | OBJDUMP="false" |
| 12632 | else |
| 12633 | case $cross_compiling:$ac_tool_warned in |
| 12634 | yes:) |
| 12635 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12636 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12637 | ac_tool_warned=yes ;; |
| 12638 | esac |
| 12639 | OBJDUMP=$ac_ct_OBJDUMP |
| 12640 | fi |
| 12641 | else |
| 12642 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 12643 | fi |
| 12644 | |
| 12645 | ;; |
| 12646 | esac |
| 12647 | |
| 12648 | test -z "$AS" && AS=as |
| 12649 | |
| 12650 | |
| 12651 | |
| 12652 | |
| 12653 | |
| 12654 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 12655 | |
| 12656 | |
| 12657 | |
| 12658 | |
| 12659 | |
| 12660 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 12661 | |
| 12662 | |
| 12663 | |
| 12664 | |
| 12665 | |
| 12666 | |
| 12667 | |
| 12668 | |
| 12669 | |
| 12670 | # Check whether --enable-shared was given. |
| 12671 | if test "${enable_shared+set}" = set; then : |
| 12672 | enableval=$enable_shared; p=${PACKAGE-default} |
| 12673 | case $enableval in |
| 12674 | yes) enable_shared=yes ;; |
| 12675 | no) enable_shared=no ;; |
| 12676 | *) |
| 12677 | enable_shared=no |
| 12678 | # Look at the argument we got. We use all the common list separators. |
| 12679 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12680 | for pkg in $enableval; do |
| 12681 | IFS="$lt_save_ifs" |
| 12682 | if test "X$pkg" = "X$p"; then |
| 12683 | enable_shared=yes |
| 12684 | fi |
| 12685 | done |
| 12686 | IFS="$lt_save_ifs" |
| 12687 | ;; |
| 12688 | esac |
| 12689 | else |
| 12690 | enable_shared=yes |
| 12691 | fi |
| 12692 | |
| 12693 | |
| 12694 | |
| 12695 | |
| 12696 | |
| 12697 | |
| 12698 | |
| 12699 | |
| 12700 | |
| 12701 | # Check whether --enable-static was given. |
| 12702 | if test "${enable_static+set}" = set; then : |
| 12703 | enableval=$enable_static; p=${PACKAGE-default} |
| 12704 | case $enableval in |
| 12705 | yes) enable_static=yes ;; |
| 12706 | no) enable_static=no ;; |
| 12707 | *) |
| 12708 | enable_static=no |
| 12709 | # Look at the argument we got. We use all the common list separators. |
| 12710 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12711 | for pkg in $enableval; do |
| 12712 | IFS="$lt_save_ifs" |
| 12713 | if test "X$pkg" = "X$p"; then |
| 12714 | enable_static=yes |
| 12715 | fi |
| 12716 | done |
| 12717 | IFS="$lt_save_ifs" |
| 12718 | ;; |
| 12719 | esac |
| 12720 | else |
| 12721 | enable_static=yes |
| 12722 | fi |
| 12723 | |
| 12724 | |
| 12725 | |
| 12726 | |
| 12727 | |
| 12728 | |
| 12729 | |
| 12730 | |
| 12731 | |
| 12732 | |
| 12733 | # Check whether --with-pic was given. |
| 12734 | if test "${with_pic+set}" = set; then : |
| 12735 | withval=$with_pic; pic_mode="$withval" |
| 12736 | else |
| 12737 | pic_mode=default |
| 12738 | fi |
| 12739 | |
| 12740 | |
| 12741 | test -z "$pic_mode" && pic_mode=default |
| 12742 | |
| 12743 | |
| 12744 | |
| 12745 | |
| 12746 | |
| 12747 | |
| 12748 | |
| 12749 | # Check whether --enable-fast-install was given. |
| 12750 | if test "${enable_fast_install+set}" = set; then : |
| 12751 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 12752 | case $enableval in |
| 12753 | yes) enable_fast_install=yes ;; |
| 12754 | no) enable_fast_install=no ;; |
| 12755 | *) |
| 12756 | enable_fast_install=no |
| 12757 | # Look at the argument we got. We use all the common list separators. |
| 12758 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 12759 | for pkg in $enableval; do |
| 12760 | IFS="$lt_save_ifs" |
| 12761 | if test "X$pkg" = "X$p"; then |
| 12762 | enable_fast_install=yes |
| 12763 | fi |
| 12764 | done |
| 12765 | IFS="$lt_save_ifs" |
| 12766 | ;; |
| 12767 | esac |
| 12768 | else |
| 12769 | enable_fast_install=yes |
| 12770 | fi |
| 12771 | |
| 12772 | |
| 12773 | |
| 12774 | |
| 12775 | |
| 12776 | |
| 12777 | |
| 12778 | |
| 12779 | |
| 12780 | |
| 12781 | |
| 12782 | # This can be used to rebuild libtool when needed |
| 12783 | LIBTOOL_DEPS="$ltmain" |
| 12784 | |
| 12785 | # Always use our own libtool. |
| 12786 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 12787 | |
| 12788 | |
| 12789 | |
| 12790 | |
| 12791 | |
| 12792 | |
| 12793 | |
| 12794 | |
| 12795 | |
| 12796 | |
| 12797 | |
| 12798 | |
| 12799 | |
| 12800 | |
| 12801 | |
| 12802 | |
| 12803 | |
| 12804 | |
| 12805 | |
| 12806 | |
| 12807 | |
| 12808 | |
| 12809 | |
| 12810 | |
| 12811 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12812 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12813 | test -z "$LN_S" && LN_S="ln -s" |
| 12814 | |
| 12815 | |
| 12816 | |
| 12817 | |
| 12818 | |
| 12819 | |
| 12820 | |
| 12821 | |
| 12822 | |
| 12823 | |
| 12824 | |
| 12825 | |
| 12826 | |
| 12827 | |
| 12828 | if test -n "${ZSH_VERSION+set}" ; then |
| 12829 | setopt NO_GLOB_SUBST |
| 12830 | fi |
| 12831 | |
| 12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 12833 | $as_echo_n "checking for objdir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12834 | if ${lt_cv_objdir+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12835 | $as_echo_n "(cached) " >&6 |
| 12836 | else |
| 12837 | rm -f .libs 2>/dev/null |
| 12838 | mkdir .libs 2>/dev/null |
| 12839 | if test -d .libs; then |
| 12840 | lt_cv_objdir=.libs |
| 12841 | else |
| 12842 | # MS-DOS does not allow filenames that begin with a dot. |
| 12843 | lt_cv_objdir=_libs |
| 12844 | fi |
| 12845 | rmdir .libs 2>/dev/null |
| 12846 | fi |
| 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 12848 | $as_echo "$lt_cv_objdir" >&6; } |
| 12849 | objdir=$lt_cv_objdir |
| 12850 | |
| 12851 | |
| 12852 | |
| 12853 | |
| 12854 | |
| 12855 | cat >>confdefs.h <<_ACEOF |
| 12856 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 12857 | _ACEOF |
| 12858 | |
| 12859 | |
| 12860 | |
| 12861 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12862 | case $host_os in |
| 12863 | aix3*) |
| 12864 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 12865 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 12866 | # vanish in a puff of smoke. |
| 12867 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 12868 | COLLECT_NAMES= |
| 12869 | export COLLECT_NAMES |
| 12870 | fi |
| 12871 | ;; |
| 12872 | esac |
| 12873 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12874 | # Global variables: |
| 12875 | ofile=libtool |
| 12876 | can_build_shared=yes |
| 12877 | |
| 12878 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 12879 | # which needs '.lib'). |
| 12880 | libext=a |
| 12881 | |
| 12882 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 12883 | |
| 12884 | old_CC="$CC" |
| 12885 | old_CFLAGS="$CFLAGS" |
| 12886 | |
| 12887 | # Set sane defaults for various variables |
| 12888 | test -z "$CC" && CC=cc |
| 12889 | test -z "$LTCC" && LTCC=$CC |
| 12890 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 12891 | test -z "$LD" && LD=ld |
| 12892 | test -z "$ac_objext" && ac_objext=o |
| 12893 | |
| 12894 | for cc_temp in $compiler""; do |
| 12895 | case $cc_temp in |
| 12896 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12897 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12898 | \-*) ;; |
| 12899 | *) break;; |
| 12900 | esac |
| 12901 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12902 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12903 | |
| 12904 | |
| 12905 | # Only perform the check for file, if the check method requires it |
| 12906 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 12907 | case $deplibs_check_method in |
| 12908 | file_magic*) |
| 12909 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 12911 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12912 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12913 | $as_echo_n "(cached) " >&6 |
| 12914 | else |
| 12915 | case $MAGIC_CMD in |
| 12916 | [\\/*] | ?:[\\/]*) |
| 12917 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 12918 | ;; |
| 12919 | *) |
| 12920 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 12921 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12922 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12923 | for ac_dir in $ac_dummy; do |
| 12924 | IFS="$lt_save_ifs" |
| 12925 | test -z "$ac_dir" && ac_dir=. |
| 12926 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 12927 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 12928 | if test -n "$file_magic_test_file"; then |
| 12929 | case $deplibs_check_method in |
| 12930 | "file_magic "*) |
| 12931 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 12932 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12933 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 12934 | $EGREP "$file_magic_regex" > /dev/null; then |
| 12935 | : |
| 12936 | else |
| 12937 | cat <<_LT_EOF 1>&2 |
| 12938 | |
| 12939 | *** Warning: the command libtool uses to detect shared libraries, |
| 12940 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 12941 | *** The result is that libtool may fail to recognize shared libraries |
| 12942 | *** as such. This will affect the creation of libtool libraries that |
| 12943 | *** depend on shared libraries, but programs linked with such libtool |
| 12944 | *** libraries will work regardless of this problem. Nevertheless, you |
| 12945 | *** may want to report the problem to your system manager and/or to |
| 12946 | *** bug-libtool@gnu.org |
| 12947 | |
| 12948 | _LT_EOF |
| 12949 | fi ;; |
| 12950 | esac |
| 12951 | fi |
| 12952 | break |
| 12953 | fi |
| 12954 | done |
| 12955 | IFS="$lt_save_ifs" |
| 12956 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 12957 | ;; |
| 12958 | esac |
| 12959 | fi |
| 12960 | |
| 12961 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12962 | if test -n "$MAGIC_CMD"; then |
| 12963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 12964 | $as_echo "$MAGIC_CMD" >&6; } |
| 12965 | else |
| 12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12967 | $as_echo "no" >&6; } |
| 12968 | fi |
| 12969 | |
| 12970 | |
| 12971 | |
| 12972 | |
| 12973 | |
| 12974 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 12975 | if test -n "$ac_tool_prefix"; then |
| 12976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 12977 | $as_echo_n "checking for file... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12978 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12979 | $as_echo_n "(cached) " >&6 |
| 12980 | else |
| 12981 | case $MAGIC_CMD in |
| 12982 | [\\/*] | ?:[\\/]*) |
| 12983 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 12984 | ;; |
| 12985 | *) |
| 12986 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 12987 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12988 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 12989 | for ac_dir in $ac_dummy; do |
| 12990 | IFS="$lt_save_ifs" |
| 12991 | test -z "$ac_dir" && ac_dir=. |
| 12992 | if test -f $ac_dir/file; then |
| 12993 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 12994 | if test -n "$file_magic_test_file"; then |
| 12995 | case $deplibs_check_method in |
| 12996 | "file_magic "*) |
| 12997 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 12998 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 12999 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13000 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13001 | : |
| 13002 | else |
| 13003 | cat <<_LT_EOF 1>&2 |
| 13004 | |
| 13005 | *** Warning: the command libtool uses to detect shared libraries, |
| 13006 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13007 | *** The result is that libtool may fail to recognize shared libraries |
| 13008 | *** as such. This will affect the creation of libtool libraries that |
| 13009 | *** depend on shared libraries, but programs linked with such libtool |
| 13010 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13011 | *** may want to report the problem to your system manager and/or to |
| 13012 | *** bug-libtool@gnu.org |
| 13013 | |
| 13014 | _LT_EOF |
| 13015 | fi ;; |
| 13016 | esac |
| 13017 | fi |
| 13018 | break |
| 13019 | fi |
| 13020 | done |
| 13021 | IFS="$lt_save_ifs" |
| 13022 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13023 | ;; |
| 13024 | esac |
| 13025 | fi |
| 13026 | |
| 13027 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13028 | if test -n "$MAGIC_CMD"; then |
| 13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 13030 | $as_echo "$MAGIC_CMD" >&6; } |
| 13031 | else |
| 13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13033 | $as_echo "no" >&6; } |
| 13034 | fi |
| 13035 | |
| 13036 | |
| 13037 | else |
| 13038 | MAGIC_CMD=: |
| 13039 | fi |
| 13040 | fi |
| 13041 | |
| 13042 | fi |
| 13043 | ;; |
| 13044 | esac |
| 13045 | |
| 13046 | # Use C for the default configuration in the libtool script |
| 13047 | |
| 13048 | lt_save_CC="$CC" |
| 13049 | ac_ext=c |
| 13050 | ac_cpp='$CPP $CPPFLAGS' |
| 13051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13054 | |
| 13055 | |
| 13056 | # Source file extension for C test sources. |
| 13057 | ac_ext=c |
| 13058 | |
| 13059 | # Object file extension for compiled C test sources. |
| 13060 | objext=o |
| 13061 | objext=$objext |
| 13062 | |
| 13063 | # Code to be used in simple compile tests |
| 13064 | lt_simple_compile_test_code="int some_variable = 0;" |
| 13065 | |
| 13066 | # Code to be used in simple link tests |
| 13067 | lt_simple_link_test_code='int main(){return(0);}' |
| 13068 | |
| 13069 | |
| 13070 | |
| 13071 | |
| 13072 | |
| 13073 | |
| 13074 | |
| 13075 | # If no C compiler was specified, use CC. |
| 13076 | LTCC=${LTCC-"$CC"} |
| 13077 | |
| 13078 | # If no C compiler flags were specified, use CFLAGS. |
| 13079 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 13080 | |
| 13081 | # Allow CC to be a program name with arguments. |
| 13082 | compiler=$CC |
| 13083 | |
| 13084 | # Save the default compiler, since it gets overwritten when the other |
| 13085 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 13086 | compiler_DEFAULT=$CC |
| 13087 | |
| 13088 | # save warnings/boilerplate of simple test code |
| 13089 | ac_outfile=conftest.$ac_objext |
| 13090 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 13091 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13092 | _lt_compiler_boilerplate=`cat conftest.err` |
| 13093 | $RM conftest* |
| 13094 | |
| 13095 | ac_outfile=conftest.$ac_objext |
| 13096 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 13097 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 13098 | _lt_linker_boilerplate=`cat conftest.err` |
| 13099 | $RM -r conftest* |
| 13100 | |
| 13101 | |
| 13102 | ## CAVEAT EMPTOR: |
| 13103 | ## There is no encapsulation within the following macros, do not change |
| 13104 | ## the running order or otherwise move them around unless you know exactly |
| 13105 | ## what you are doing... |
| 13106 | if test -n "$compiler"; then |
| 13107 | |
| 13108 | lt_prog_compiler_no_builtin_flag= |
| 13109 | |
| 13110 | if test "$GCC" = yes; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13111 | case $cc_basename in |
| 13112 | nvcc*) |
| 13113 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 13114 | *) |
| 13115 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 13116 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13117 | |
| 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 13119 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13120 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13121 | $as_echo_n "(cached) " >&6 |
| 13122 | else |
| 13123 | lt_cv_prog_compiler_rtti_exceptions=no |
| 13124 | ac_outfile=conftest.$ac_objext |
| 13125 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13126 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 13127 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13128 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13129 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13130 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13131 | # The option is referenced via a variable to avoid confusing sed. |
| 13132 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13133 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13134 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13135 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13136 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13137 | (eval "$lt_compile" 2>conftest.err) |
| 13138 | ac_status=$? |
| 13139 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13141 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13142 | # The compiler can only warn and ignore the option if not recognized |
| 13143 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13144 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13145 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13146 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 13147 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 13148 | fi |
| 13149 | fi |
| 13150 | $RM conftest* |
| 13151 | |
| 13152 | fi |
| 13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 13154 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 13155 | |
| 13156 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 13157 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 13158 | else |
| 13159 | : |
| 13160 | fi |
| 13161 | |
| 13162 | fi |
| 13163 | |
| 13164 | |
| 13165 | |
| 13166 | |
| 13167 | |
| 13168 | |
| 13169 | lt_prog_compiler_wl= |
| 13170 | lt_prog_compiler_pic= |
| 13171 | lt_prog_compiler_static= |
| 13172 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13173 | |
| 13174 | if test "$GCC" = yes; then |
| 13175 | lt_prog_compiler_wl='-Wl,' |
| 13176 | lt_prog_compiler_static='-static' |
| 13177 | |
| 13178 | case $host_os in |
| 13179 | aix*) |
| 13180 | # All AIX code is PIC. |
| 13181 | if test "$host_cpu" = ia64; then |
| 13182 | # AIX 5 now supports IA64 processor |
| 13183 | lt_prog_compiler_static='-Bstatic' |
| 13184 | fi |
| 13185 | ;; |
| 13186 | |
| 13187 | amigaos*) |
| 13188 | case $host_cpu in |
| 13189 | powerpc) |
| 13190 | # see comment about AmigaOS4 .so support |
| 13191 | lt_prog_compiler_pic='-fPIC' |
| 13192 | ;; |
| 13193 | m68k) |
| 13194 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 13195 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 13196 | # like `-m68040'. |
| 13197 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 13198 | ;; |
| 13199 | esac |
| 13200 | ;; |
| 13201 | |
| 13202 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 13203 | # PIC is the default for these OSes. |
| 13204 | ;; |
| 13205 | |
| 13206 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 13207 | # This hack is so that the source file can tell whether it is being |
| 13208 | # built for inclusion in a dll (and should export symbols for example). |
| 13209 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 13210 | # (--disable-auto-import) libraries |
| 13211 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13212 | ;; |
| 13213 | |
| 13214 | darwin* | rhapsody*) |
| 13215 | # PIC is the default on this platform |
| 13216 | # Common symbols not allowed in MH_DYLIB files |
| 13217 | lt_prog_compiler_pic='-fno-common' |
| 13218 | ;; |
| 13219 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13220 | haiku*) |
| 13221 | # PIC is the default for Haiku. |
| 13222 | # The "-static" flag exists, but is broken. |
| 13223 | lt_prog_compiler_static= |
| 13224 | ;; |
| 13225 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13226 | hpux*) |
| 13227 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 13228 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 13229 | # sets the default TLS model and affects inlining. |
| 13230 | case $host_cpu in |
| 13231 | hppa*64*) |
| 13232 | # +Z the default |
| 13233 | ;; |
| 13234 | *) |
| 13235 | lt_prog_compiler_pic='-fPIC' |
| 13236 | ;; |
| 13237 | esac |
| 13238 | ;; |
| 13239 | |
| 13240 | interix[3-9]*) |
| 13241 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 13242 | # Instead, we relocate shared libraries at runtime. |
| 13243 | ;; |
| 13244 | |
| 13245 | msdosdjgpp*) |
| 13246 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 13247 | # on systems that don't support them. |
| 13248 | lt_prog_compiler_can_build_shared=no |
| 13249 | enable_shared=no |
| 13250 | ;; |
| 13251 | |
| 13252 | *nto* | *qnx*) |
| 13253 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13254 | # it will coredump. |
| 13255 | lt_prog_compiler_pic='-fPIC -shared' |
| 13256 | ;; |
| 13257 | |
| 13258 | sysv4*MP*) |
| 13259 | if test -d /usr/nec; then |
| 13260 | lt_prog_compiler_pic=-Kconform_pic |
| 13261 | fi |
| 13262 | ;; |
| 13263 | |
| 13264 | *) |
| 13265 | lt_prog_compiler_pic='-fPIC' |
| 13266 | ;; |
| 13267 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13268 | |
| 13269 | case $cc_basename in |
| 13270 | nvcc*) # Cuda Compiler Driver 2.2 |
| 13271 | lt_prog_compiler_wl='-Xlinker ' |
| 13272 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 13273 | ;; |
| 13274 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13275 | else |
| 13276 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 13277 | case $host_os in |
| 13278 | aix*) |
| 13279 | lt_prog_compiler_wl='-Wl,' |
| 13280 | if test "$host_cpu" = ia64; then |
| 13281 | # AIX 5 now supports IA64 processor |
| 13282 | lt_prog_compiler_static='-Bstatic' |
| 13283 | else |
| 13284 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 13285 | fi |
| 13286 | ;; |
| 13287 | |
| 13288 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 13289 | # This hack is so that the source file can tell whether it is being |
| 13290 | # built for inclusion in a dll (and should export symbols for example). |
| 13291 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 13292 | ;; |
| 13293 | |
| 13294 | hpux9* | hpux10* | hpux11*) |
| 13295 | lt_prog_compiler_wl='-Wl,' |
| 13296 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 13297 | # not for PA HP-UX. |
| 13298 | case $host_cpu in |
| 13299 | hppa*64*|ia64*) |
| 13300 | # +Z the default |
| 13301 | ;; |
| 13302 | *) |
| 13303 | lt_prog_compiler_pic='+Z' |
| 13304 | ;; |
| 13305 | esac |
| 13306 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 13307 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 13308 | ;; |
| 13309 | |
| 13310 | irix5* | irix6* | nonstopux*) |
| 13311 | lt_prog_compiler_wl='-Wl,' |
| 13312 | # PIC (with -KPIC) is the default. |
| 13313 | lt_prog_compiler_static='-non_shared' |
| 13314 | ;; |
| 13315 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13316 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13317 | case $cc_basename in |
| 13318 | # old Intel for x86_64 which still supported -KPIC. |
| 13319 | ecc*) |
| 13320 | lt_prog_compiler_wl='-Wl,' |
| 13321 | lt_prog_compiler_pic='-KPIC' |
| 13322 | lt_prog_compiler_static='-static' |
| 13323 | ;; |
| 13324 | # icc used to be incompatible with GCC. |
| 13325 | # ICC 10 doesn't accept -KPIC any more. |
| 13326 | icc* | ifort*) |
| 13327 | lt_prog_compiler_wl='-Wl,' |
| 13328 | lt_prog_compiler_pic='-fPIC' |
| 13329 | lt_prog_compiler_static='-static' |
| 13330 | ;; |
| 13331 | # Lahey Fortran 8.1. |
| 13332 | lf95*) |
| 13333 | lt_prog_compiler_wl='-Wl,' |
| 13334 | lt_prog_compiler_pic='--shared' |
| 13335 | lt_prog_compiler_static='--static' |
| 13336 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13337 | nagfor*) |
| 13338 | # NAG Fortran compiler |
| 13339 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 13340 | lt_prog_compiler_pic='-PIC' |
| 13341 | lt_prog_compiler_static='-Bstatic' |
| 13342 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13343 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13344 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 13345 | # which looks to be a dead project) |
| 13346 | lt_prog_compiler_wl='-Wl,' |
| 13347 | lt_prog_compiler_pic='-fpic' |
| 13348 | lt_prog_compiler_static='-Bstatic' |
| 13349 | ;; |
| 13350 | ccc*) |
| 13351 | lt_prog_compiler_wl='-Wl,' |
| 13352 | # All Alpha code is PIC. |
| 13353 | lt_prog_compiler_static='-non_shared' |
| 13354 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13355 | xl* | bgxl* | bgf* | mpixl*) |
| 13356 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13357 | lt_prog_compiler_wl='-Wl,' |
| 13358 | lt_prog_compiler_pic='-qpic' |
| 13359 | lt_prog_compiler_static='-qstaticlink' |
| 13360 | ;; |
| 13361 | *) |
| 13362 | case `$CC -V 2>&1 | sed 5q` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13363 | *Sun\ F* | *Sun*Fortran*) |
| 13364 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 13365 | lt_prog_compiler_pic='-KPIC' |
| 13366 | lt_prog_compiler_static='-Bstatic' |
| 13367 | lt_prog_compiler_wl='' |
| 13368 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13369 | *Sun\ C*) |
| 13370 | # Sun C 5.9 |
| 13371 | lt_prog_compiler_pic='-KPIC' |
| 13372 | lt_prog_compiler_static='-Bstatic' |
| 13373 | lt_prog_compiler_wl='-Wl,' |
| 13374 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13375 | esac |
| 13376 | ;; |
| 13377 | esac |
| 13378 | ;; |
| 13379 | |
| 13380 | newsos6) |
| 13381 | lt_prog_compiler_pic='-KPIC' |
| 13382 | lt_prog_compiler_static='-Bstatic' |
| 13383 | ;; |
| 13384 | |
| 13385 | *nto* | *qnx*) |
| 13386 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13387 | # it will coredump. |
| 13388 | lt_prog_compiler_pic='-fPIC -shared' |
| 13389 | ;; |
| 13390 | |
| 13391 | osf3* | osf4* | osf5*) |
| 13392 | lt_prog_compiler_wl='-Wl,' |
| 13393 | # All OSF/1 code is PIC. |
| 13394 | lt_prog_compiler_static='-non_shared' |
| 13395 | ;; |
| 13396 | |
| 13397 | rdos*) |
| 13398 | lt_prog_compiler_static='-non_shared' |
| 13399 | ;; |
| 13400 | |
| 13401 | solaris*) |
| 13402 | lt_prog_compiler_pic='-KPIC' |
| 13403 | lt_prog_compiler_static='-Bstatic' |
| 13404 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13405 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13406 | lt_prog_compiler_wl='-Qoption ld ';; |
| 13407 | *) |
| 13408 | lt_prog_compiler_wl='-Wl,';; |
| 13409 | esac |
| 13410 | ;; |
| 13411 | |
| 13412 | sunos4*) |
| 13413 | lt_prog_compiler_wl='-Qoption ld ' |
| 13414 | lt_prog_compiler_pic='-PIC' |
| 13415 | lt_prog_compiler_static='-Bstatic' |
| 13416 | ;; |
| 13417 | |
| 13418 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 13419 | lt_prog_compiler_wl='-Wl,' |
| 13420 | lt_prog_compiler_pic='-KPIC' |
| 13421 | lt_prog_compiler_static='-Bstatic' |
| 13422 | ;; |
| 13423 | |
| 13424 | sysv4*MP*) |
| 13425 | if test -d /usr/nec ;then |
| 13426 | lt_prog_compiler_pic='-Kconform_pic' |
| 13427 | lt_prog_compiler_static='-Bstatic' |
| 13428 | fi |
| 13429 | ;; |
| 13430 | |
| 13431 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13432 | lt_prog_compiler_wl='-Wl,' |
| 13433 | lt_prog_compiler_pic='-KPIC' |
| 13434 | lt_prog_compiler_static='-Bstatic' |
| 13435 | ;; |
| 13436 | |
| 13437 | unicos*) |
| 13438 | lt_prog_compiler_wl='-Wl,' |
| 13439 | lt_prog_compiler_can_build_shared=no |
| 13440 | ;; |
| 13441 | |
| 13442 | uts4*) |
| 13443 | lt_prog_compiler_pic='-pic' |
| 13444 | lt_prog_compiler_static='-Bstatic' |
| 13445 | ;; |
| 13446 | |
| 13447 | *) |
| 13448 | lt_prog_compiler_can_build_shared=no |
| 13449 | ;; |
| 13450 | esac |
| 13451 | fi |
| 13452 | |
| 13453 | case $host_os in |
| 13454 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13455 | *djgpp*) |
| 13456 | lt_prog_compiler_pic= |
| 13457 | ;; |
| 13458 | *) |
| 13459 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 13460 | ;; |
| 13461 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13462 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 13464 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 13465 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 13466 | $as_echo_n "(cached) " >&6 |
| 13467 | else |
| 13468 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 13469 | fi |
| 13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 13471 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 13472 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13473 | |
| 13474 | # |
| 13475 | # Check to make sure the PIC flag actually works. |
| 13476 | # |
| 13477 | if test -n "$lt_prog_compiler_pic"; then |
| 13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 13479 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13480 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13481 | $as_echo_n "(cached) " >&6 |
| 13482 | else |
| 13483 | lt_cv_prog_compiler_pic_works=no |
| 13484 | ac_outfile=conftest.$ac_objext |
| 13485 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13486 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 13487 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13488 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13489 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13490 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13491 | # The option is referenced via a variable to avoid confusing sed. |
| 13492 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13493 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13494 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13495 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13496 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13497 | (eval "$lt_compile" 2>conftest.err) |
| 13498 | ac_status=$? |
| 13499 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13501 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13502 | # The compiler can only warn and ignore the option if not recognized |
| 13503 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13504 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13505 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13506 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 13507 | lt_cv_prog_compiler_pic_works=yes |
| 13508 | fi |
| 13509 | fi |
| 13510 | $RM conftest* |
| 13511 | |
| 13512 | fi |
| 13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 13514 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 13515 | |
| 13516 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 13517 | case $lt_prog_compiler_pic in |
| 13518 | "" | " "*) ;; |
| 13519 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 13520 | esac |
| 13521 | else |
| 13522 | lt_prog_compiler_pic= |
| 13523 | lt_prog_compiler_can_build_shared=no |
| 13524 | fi |
| 13525 | |
| 13526 | fi |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13538 | # |
| 13539 | # Check to make sure the static flag actually works. |
| 13540 | # |
| 13541 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13543 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13544 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13545 | $as_echo_n "(cached) " >&6 |
| 13546 | else |
| 13547 | lt_cv_prog_compiler_static_works=no |
| 13548 | save_LDFLAGS="$LDFLAGS" |
| 13549 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 13550 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 13551 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13552 | # The linker can only warn and ignore the option if not recognized |
| 13553 | # So say no if there are warnings |
| 13554 | if test -s conftest.err; then |
| 13555 | # Append any errors to the config.log. |
| 13556 | cat conftest.err 1>&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13557 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13558 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13559 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 13560 | lt_cv_prog_compiler_static_works=yes |
| 13561 | fi |
| 13562 | else |
| 13563 | lt_cv_prog_compiler_static_works=yes |
| 13564 | fi |
| 13565 | fi |
| 13566 | $RM -r conftest* |
| 13567 | LDFLAGS="$save_LDFLAGS" |
| 13568 | |
| 13569 | fi |
| 13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 13571 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 13572 | |
| 13573 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 13574 | : |
| 13575 | else |
| 13576 | lt_prog_compiler_static= |
| 13577 | fi |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13586 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13587 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13588 | $as_echo_n "(cached) " >&6 |
| 13589 | else |
| 13590 | lt_cv_prog_compiler_c_o=no |
| 13591 | $RM -r conftest 2>/dev/null |
| 13592 | mkdir conftest |
| 13593 | cd conftest |
| 13594 | mkdir out |
| 13595 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13596 | |
| 13597 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13598 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13599 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13600 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13601 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13602 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13603 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13604 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13605 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13606 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13607 | (eval "$lt_compile" 2>out/conftest.err) |
| 13608 | ac_status=$? |
| 13609 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13611 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13612 | then |
| 13613 | # The compiler can only warn and ignore the option if not recognized |
| 13614 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13615 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13616 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13617 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13618 | lt_cv_prog_compiler_c_o=yes |
| 13619 | fi |
| 13620 | fi |
| 13621 | chmod u+w . 2>&5 |
| 13622 | $RM conftest* |
| 13623 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13624 | # template instantiation |
| 13625 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13626 | $RM out/* && rmdir out |
| 13627 | cd .. |
| 13628 | $RM -r conftest |
| 13629 | $RM conftest* |
| 13630 | |
| 13631 | fi |
| 13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13633 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 13634 | |
| 13635 | |
| 13636 | |
| 13637 | |
| 13638 | |
| 13639 | |
| 13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13641 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13642 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13643 | $as_echo_n "(cached) " >&6 |
| 13644 | else |
| 13645 | lt_cv_prog_compiler_c_o=no |
| 13646 | $RM -r conftest 2>/dev/null |
| 13647 | mkdir conftest |
| 13648 | cd conftest |
| 13649 | mkdir out |
| 13650 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13651 | |
| 13652 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13653 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13654 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13655 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13656 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13657 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13658 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13659 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13660 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13661 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13662 | (eval "$lt_compile" 2>out/conftest.err) |
| 13663 | ac_status=$? |
| 13664 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13666 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13667 | then |
| 13668 | # The compiler can only warn and ignore the option if not recognized |
| 13669 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13670 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13671 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13672 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13673 | lt_cv_prog_compiler_c_o=yes |
| 13674 | fi |
| 13675 | fi |
| 13676 | chmod u+w . 2>&5 |
| 13677 | $RM conftest* |
| 13678 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13679 | # template instantiation |
| 13680 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13681 | $RM out/* && rmdir out |
| 13682 | cd .. |
| 13683 | $RM -r conftest |
| 13684 | $RM conftest* |
| 13685 | |
| 13686 | fi |
| 13687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 13688 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 13689 | |
| 13690 | |
| 13691 | |
| 13692 | |
| 13693 | hard_links="nottested" |
| 13694 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 13695 | # do not overwrite the value of need_locks provided by the user |
| 13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13697 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 13698 | hard_links=yes |
| 13699 | $RM conftest* |
| 13700 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13701 | touch conftest.a |
| 13702 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13703 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13705 | $as_echo "$hard_links" >&6; } |
| 13706 | if test "$hard_links" = no; then |
| 13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13708 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 13709 | need_locks=warn |
| 13710 | fi |
| 13711 | else |
| 13712 | need_locks=no |
| 13713 | fi |
| 13714 | |
| 13715 | |
| 13716 | |
| 13717 | |
| 13718 | |
| 13719 | |
| 13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13721 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 13722 | |
| 13723 | runpath_var= |
| 13724 | allow_undefined_flag= |
| 13725 | always_export_symbols=no |
| 13726 | archive_cmds= |
| 13727 | archive_expsym_cmds= |
| 13728 | compiler_needs_object=no |
| 13729 | enable_shared_with_static_runtimes=no |
| 13730 | export_dynamic_flag_spec= |
| 13731 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13732 | hardcode_automatic=no |
| 13733 | hardcode_direct=no |
| 13734 | hardcode_direct_absolute=no |
| 13735 | hardcode_libdir_flag_spec= |
| 13736 | hardcode_libdir_flag_spec_ld= |
| 13737 | hardcode_libdir_separator= |
| 13738 | hardcode_minus_L=no |
| 13739 | hardcode_shlibpath_var=unsupported |
| 13740 | inherit_rpath=no |
| 13741 | link_all_deplibs=unknown |
| 13742 | module_cmds= |
| 13743 | module_expsym_cmds= |
| 13744 | old_archive_from_new_cmds= |
| 13745 | old_archive_from_expsyms_cmds= |
| 13746 | thread_safe_flag_spec= |
| 13747 | whole_archive_flag_spec= |
| 13748 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 13749 | # included in the symbol list |
| 13750 | include_expsyms= |
| 13751 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 13752 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 13753 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 13754 | # as well as any symbol that contains `d'. |
| 13755 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 13756 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 13757 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 13758 | # the symbol is explicitly referenced. Since portable code cannot |
| 13759 | # rely on this symbol name, it's probably fine to never include it in |
| 13760 | # preloaded symbol tables. |
| 13761 | # Exclude shared library initialization/finalization symbols. |
| 13762 | extract_expsyms_cmds= |
| 13763 | |
| 13764 | case $host_os in |
| 13765 | cygwin* | mingw* | pw32* | cegcc*) |
| 13766 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 13767 | # When not using gcc, we currently assume that we are using |
| 13768 | # Microsoft Visual C++. |
| 13769 | if test "$GCC" != yes; then |
| 13770 | with_gnu_ld=no |
| 13771 | fi |
| 13772 | ;; |
| 13773 | interix*) |
| 13774 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 13775 | with_gnu_ld=yes |
| 13776 | ;; |
| 13777 | openbsd*) |
| 13778 | with_gnu_ld=no |
| 13779 | ;; |
| 13780 | esac |
| 13781 | |
| 13782 | ld_shlibs=yes |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13783 | |
| 13784 | # On some targets, GNU ld is compatible enough with the native linker |
| 13785 | # that we're better off using the native interface for both. |
| 13786 | lt_use_gnu_ld_interface=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13787 | if test "$with_gnu_ld" = yes; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13788 | case $host_os in |
| 13789 | aix*) |
| 13790 | # The AIX port of GNU ld has always aspired to compatibility |
| 13791 | # with the native linker. However, as the warning in the GNU ld |
| 13792 | # block says, versions before 2.19.5* couldn't really create working |
| 13793 | # shared libraries, regardless of the interface used. |
| 13794 | case `$LD -v 2>&1` in |
| 13795 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 13796 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 13797 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 13798 | *) |
| 13799 | lt_use_gnu_ld_interface=yes |
| 13800 | ;; |
| 13801 | esac |
| 13802 | ;; |
| 13803 | *) |
| 13804 | lt_use_gnu_ld_interface=yes |
| 13805 | ;; |
| 13806 | esac |
| 13807 | fi |
| 13808 | |
| 13809 | if test "$lt_use_gnu_ld_interface" = yes; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13810 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 13811 | wlarc='${wl}' |
| 13812 | |
| 13813 | # Set some defaults for GNU ld with shared library support. These |
| 13814 | # are reset later if shared libraries are not supported. Putting them |
| 13815 | # here allows them to be overridden if necessary. |
| 13816 | runpath_var=LD_RUN_PATH |
| 13817 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 13818 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 13819 | # ancient GNU ld didn't support --whole-archive et. al. |
| 13820 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 13821 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13822 | else |
| 13823 | whole_archive_flag_spec= |
| 13824 | fi |
| 13825 | supports_anon_versioning=no |
| 13826 | case `$LD -v 2>&1` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13827 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13828 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 13829 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 13830 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 13831 | *\ 2.11.*) ;; # other 2.11 versions |
| 13832 | *) supports_anon_versioning=yes ;; |
| 13833 | esac |
| 13834 | |
| 13835 | # See if GNU ld supports shared libraries. |
| 13836 | case $host_os in |
| 13837 | aix[3-9]*) |
| 13838 | # On AIX/PPC, the GNU linker is very broken |
| 13839 | if test "$host_cpu" != ia64; then |
| 13840 | ld_shlibs=no |
| 13841 | cat <<_LT_EOF 1>&2 |
| 13842 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13843 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13844 | *** to be unable to reliably create shared libraries on AIX. |
| 13845 | *** Therefore, libtool is disabling shared libraries support. If you |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13846 | *** really care for shared libraries, you may want to install binutils |
| 13847 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 13848 | *** You will then need to restart the configuration process. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13849 | |
| 13850 | _LT_EOF |
| 13851 | fi |
| 13852 | ;; |
| 13853 | |
| 13854 | amigaos*) |
| 13855 | case $host_cpu in |
| 13856 | powerpc) |
| 13857 | # see comment about AmigaOS4 .so support |
| 13858 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13859 | archive_expsym_cmds='' |
| 13860 | ;; |
| 13861 | m68k) |
| 13862 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 13863 | hardcode_libdir_flag_spec='-L$libdir' |
| 13864 | hardcode_minus_L=yes |
| 13865 | ;; |
| 13866 | esac |
| 13867 | ;; |
| 13868 | |
| 13869 | beos*) |
| 13870 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13871 | allow_undefined_flag=unsupported |
| 13872 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13873 | # support --undefined. This deserves some investigation. FIXME |
| 13874 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13875 | else |
| 13876 | ld_shlibs=no |
| 13877 | fi |
| 13878 | ;; |
| 13879 | |
| 13880 | cygwin* | mingw* | pw32* | cegcc*) |
| 13881 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 13882 | # as there is no search path for DLLs. |
| 13883 | hardcode_libdir_flag_spec='-L$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13884 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13885 | allow_undefined_flag=unsupported |
| 13886 | always_export_symbols=no |
| 13887 | enable_shared_with_static_runtimes=yes |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13888 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 13889 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13890 | |
| 13891 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 13892 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13893 | # If the export-symbols file already is a .def file (1st line |
| 13894 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13895 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13896 | cp $export_symbols $output_objdir/$soname.def; |
| 13897 | else |
| 13898 | echo EXPORTS > $output_objdir/$soname.def; |
| 13899 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13900 | fi~ |
| 13901 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13902 | else |
| 13903 | ld_shlibs=no |
| 13904 | fi |
| 13905 | ;; |
| 13906 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13907 | haiku*) |
| 13908 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13909 | link_all_deplibs=yes |
| 13910 | ;; |
| 13911 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13912 | interix[3-9]*) |
| 13913 | hardcode_direct=no |
| 13914 | hardcode_shlibpath_var=no |
| 13915 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 13916 | export_dynamic_flag_spec='${wl}-E' |
| 13917 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13918 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13919 | # default) and relocated if they conflict, which is a slow very memory |
| 13920 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13921 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13922 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13923 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13924 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13925 | ;; |
| 13926 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13927 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13928 | tmp_diet=no |
| 13929 | if test "$host_os" = linux-dietlibc; then |
| 13930 | case $cc_basename in |
| 13931 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 13932 | esac |
| 13933 | fi |
| 13934 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 13935 | && test "$tmp_diet" = no |
| 13936 | then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13937 | tmp_addflag=' $pic_flag' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13938 | tmp_sharedflag='-shared' |
| 13939 | case $cc_basename,$host_cpu in |
| 13940 | pgcc*) # Portland Group C compiler |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13941 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13942 | tmp_addflag=' $pic_flag' |
| 13943 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13944 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 13945 | # Portland Group f77 and f90 compilers |
| 13946 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13947 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 13948 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 13949 | tmp_addflag=' -i_dynamic' ;; |
| 13950 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 13951 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 13952 | ifc* | ifort*) # Intel Fortran compiler |
| 13953 | tmp_addflag=' -nofor_main' ;; |
| 13954 | lf95*) # Lahey Fortran 8.1 |
| 13955 | whole_archive_flag_spec= |
| 13956 | tmp_sharedflag='--shared' ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13957 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13958 | tmp_sharedflag='-qmkshrobj' |
| 13959 | tmp_addflag= ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13960 | nvcc*) # Cuda Compiler Driver 2.2 |
| 13961 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 13962 | compiler_needs_object=yes |
| 13963 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13964 | esac |
| 13965 | case `$CC -V 2>&1 | sed 5q` in |
| 13966 | *Sun\ C*) # Sun C 5.9 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13967 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13968 | compiler_needs_object=yes |
| 13969 | tmp_sharedflag='-G' ;; |
| 13970 | *Sun\ F*) # Sun Fortran 8.3 |
| 13971 | tmp_sharedflag='-G' ;; |
| 13972 | esac |
| 13973 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13974 | |
| 13975 | if test "x$supports_anon_versioning" = xyes; then |
| 13976 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13977 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13978 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13979 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13980 | fi |
| 13981 | |
| 13982 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13983 | xlf* | bgf* | bgxlf* | mpixlf*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13984 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 13985 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 13986 | hardcode_libdir_flag_spec= |
| 13987 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13988 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13989 | if test "x$supports_anon_versioning" = xyes; then |
| 13990 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13991 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13992 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13993 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13994 | fi |
| 13995 | ;; |
| 13996 | esac |
| 13997 | else |
| 13998 | ld_shlibs=no |
| 13999 | fi |
| 14000 | ;; |
| 14001 | |
| 14002 | netbsd*) |
| 14003 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14004 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 14005 | wlarc= |
| 14006 | else |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14007 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14008 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14009 | fi |
| 14010 | ;; |
| 14011 | |
| 14012 | solaris*) |
| 14013 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 14014 | ld_shlibs=no |
| 14015 | cat <<_LT_EOF 1>&2 |
| 14016 | |
| 14017 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 14018 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 14019 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14020 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 14021 | *** your PATH or compiler configuration so that the native linker is |
| 14022 | *** used, and then restart. |
| 14023 | |
| 14024 | _LT_EOF |
| 14025 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14026 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14027 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14028 | else |
| 14029 | ld_shlibs=no |
| 14030 | fi |
| 14031 | ;; |
| 14032 | |
| 14033 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 14034 | case `$LD -v 2>&1` in |
| 14035 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 14036 | ld_shlibs=no |
| 14037 | cat <<_LT_EOF 1>&2 |
| 14038 | |
| 14039 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 14040 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 14041 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 14042 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 14043 | *** your PATH or compiler configuration so that the native linker is |
| 14044 | *** used, and then restart. |
| 14045 | |
| 14046 | _LT_EOF |
| 14047 | ;; |
| 14048 | *) |
| 14049 | # For security reasons, it is highly recommended that you always |
| 14050 | # use absolute paths for naming shared libraries, and exclude the |
| 14051 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 14052 | # requires that you compile everything twice, which is a pain. |
| 14053 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14054 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14055 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14056 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14057 | else |
| 14058 | ld_shlibs=no |
| 14059 | fi |
| 14060 | ;; |
| 14061 | esac |
| 14062 | ;; |
| 14063 | |
| 14064 | sunos4*) |
| 14065 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14066 | wlarc= |
| 14067 | hardcode_direct=yes |
| 14068 | hardcode_shlibpath_var=no |
| 14069 | ;; |
| 14070 | |
| 14071 | *) |
| 14072 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14073 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14074 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14075 | else |
| 14076 | ld_shlibs=no |
| 14077 | fi |
| 14078 | ;; |
| 14079 | esac |
| 14080 | |
| 14081 | if test "$ld_shlibs" = no; then |
| 14082 | runpath_var= |
| 14083 | hardcode_libdir_flag_spec= |
| 14084 | export_dynamic_flag_spec= |
| 14085 | whole_archive_flag_spec= |
| 14086 | fi |
| 14087 | else |
| 14088 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 14089 | case $host_os in |
| 14090 | aix3*) |
| 14091 | allow_undefined_flag=unsupported |
| 14092 | always_export_symbols=yes |
| 14093 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 14094 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 14095 | # are no directories specified by -L. |
| 14096 | hardcode_minus_L=yes |
| 14097 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 14098 | # Neither direct hardcoding nor static linking is supported with a |
| 14099 | # broken collect2. |
| 14100 | hardcode_direct=unsupported |
| 14101 | fi |
| 14102 | ;; |
| 14103 | |
| 14104 | aix[4-9]*) |
| 14105 | if test "$host_cpu" = ia64; then |
| 14106 | # On IA64, the linker does run time linking by default, so we don't |
| 14107 | # have to do anything special. |
| 14108 | aix_use_runtimelinking=no |
| 14109 | exp_sym_flag='-Bexport' |
| 14110 | no_entry_flag="" |
| 14111 | else |
| 14112 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14113 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14114 | # Also, AIX nm treats weak defined symbols like other global |
| 14115 | # defined symbols, whereas GNU nm marks them as "W". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14116 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14117 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14118 | else |
| 14119 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 14120 | fi |
| 14121 | aix_use_runtimelinking=no |
| 14122 | |
| 14123 | # Test if we are trying to use run time linking or normal |
| 14124 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14125 | # need to do runtime linking. |
| 14126 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 14127 | for ld_flag in $LDFLAGS; do |
| 14128 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 14129 | aix_use_runtimelinking=yes |
| 14130 | break |
| 14131 | fi |
| 14132 | done |
| 14133 | ;; |
| 14134 | esac |
| 14135 | |
| 14136 | exp_sym_flag='-bexport' |
| 14137 | no_entry_flag='-bnoentry' |
| 14138 | fi |
| 14139 | |
| 14140 | # When large executables or shared objects are built, AIX ld can |
| 14141 | # have problems creating the table of contents. If linking a library |
| 14142 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14143 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14144 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14145 | |
| 14146 | archive_cmds='' |
| 14147 | hardcode_direct=yes |
| 14148 | hardcode_direct_absolute=yes |
| 14149 | hardcode_libdir_separator=':' |
| 14150 | link_all_deplibs=yes |
| 14151 | file_list_spec='${wl}-f,' |
| 14152 | |
| 14153 | if test "$GCC" = yes; then |
| 14154 | case $host_os in aix4.[012]|aix4.[012].*) |
| 14155 | # We only want to do this on AIX 4.2 and lower, the check |
| 14156 | # below for broken collect2 doesn't work under 4.3+ |
| 14157 | collect2name=`${CC} -print-prog-name=collect2` |
| 14158 | if test -f "$collect2name" && |
| 14159 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 14160 | then |
| 14161 | # We have reworked collect2 |
| 14162 | : |
| 14163 | else |
| 14164 | # We have old collect2 |
| 14165 | hardcode_direct=unsupported |
| 14166 | # It fails to find uninstalled libraries when the uninstalled |
| 14167 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14168 | # to unsupported forces relinking |
| 14169 | hardcode_minus_L=yes |
| 14170 | hardcode_libdir_flag_spec='-L$libdir' |
| 14171 | hardcode_libdir_separator= |
| 14172 | fi |
| 14173 | ;; |
| 14174 | esac |
| 14175 | shared_flag='-shared' |
| 14176 | if test "$aix_use_runtimelinking" = yes; then |
| 14177 | shared_flag="$shared_flag "'${wl}-G' |
| 14178 | fi |
| 14179 | else |
| 14180 | # not using gcc |
| 14181 | if test "$host_cpu" = ia64; then |
| 14182 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14183 | # chokes on -Wl,-G. The following line is correct: |
| 14184 | shared_flag='-G' |
| 14185 | else |
| 14186 | if test "$aix_use_runtimelinking" = yes; then |
| 14187 | shared_flag='${wl}-G' |
| 14188 | else |
| 14189 | shared_flag='${wl}-bM:SRE' |
| 14190 | fi |
| 14191 | fi |
| 14192 | fi |
| 14193 | |
| 14194 | export_dynamic_flag_spec='${wl}-bexpall' |
| 14195 | # It seems that -bexpall does not export symbols beginning with |
| 14196 | # underscore (_), so it is better to generate a list of symbols to export. |
| 14197 | always_export_symbols=yes |
| 14198 | if test "$aix_use_runtimelinking" = yes; then |
| 14199 | # Warning - without using the other runtime loading flags (-brtl), |
| 14200 | # -berok will link without error, but may produce a broken library. |
| 14201 | allow_undefined_flag='-berok' |
| 14202 | # Determine the default libpath from the value encoded in an |
| 14203 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14204 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 14205 | aix_libpath=$lt_cv_aix_libpath |
| 14206 | else |
| 14207 | if ${lt_cv_aix_libpath_+:} false; then : |
| 14208 | $as_echo_n "(cached) " >&6 |
| 14209 | else |
| 14210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14211 | /* end confdefs.h. */ |
| 14212 | |
| 14213 | int |
| 14214 | main () |
| 14215 | { |
| 14216 | |
| 14217 | ; |
| 14218 | return 0; |
| 14219 | } |
| 14220 | _ACEOF |
| 14221 | if ac_fn_c_try_link "$LINENO"; then : |
| 14222 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14223 | lt_aix_libpath_sed=' |
| 14224 | /Import File Strings/,/^$/ { |
| 14225 | /^0/ { |
| 14226 | s/^0 *\([^ ]*\) *$/\1/ |
| 14227 | p |
| 14228 | } |
| 14229 | }' |
| 14230 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14231 | # Check for a 64-bit object if we didn't find anything. |
| 14232 | if test -z "$lt_cv_aix_libpath_"; then |
| 14233 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14234 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14235 | fi |
| 14236 | rm -f core conftest.err conftest.$ac_objext \ |
| 14237 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14238 | if test -z "$lt_cv_aix_libpath_"; then |
| 14239 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 14240 | fi |
| 14241 | |
| 14242 | fi |
| 14243 | |
| 14244 | aix_libpath=$lt_cv_aix_libpath_ |
| 14245 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14246 | |
| 14247 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14248 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14249 | else |
| 14250 | if test "$host_cpu" = ia64; then |
| 14251 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 14252 | allow_undefined_flag="-z nodefs" |
| 14253 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 14254 | else |
| 14255 | # Determine the default libpath from the value encoded in an |
| 14256 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14257 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 14258 | aix_libpath=$lt_cv_aix_libpath |
| 14259 | else |
| 14260 | if ${lt_cv_aix_libpath_+:} false; then : |
| 14261 | $as_echo_n "(cached) " >&6 |
| 14262 | else |
| 14263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14264 | /* end confdefs.h. */ |
| 14265 | |
| 14266 | int |
| 14267 | main () |
| 14268 | { |
| 14269 | |
| 14270 | ; |
| 14271 | return 0; |
| 14272 | } |
| 14273 | _ACEOF |
| 14274 | if ac_fn_c_try_link "$LINENO"; then : |
| 14275 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14276 | lt_aix_libpath_sed=' |
| 14277 | /Import File Strings/,/^$/ { |
| 14278 | /^0/ { |
| 14279 | s/^0 *\([^ ]*\) *$/\1/ |
| 14280 | p |
| 14281 | } |
| 14282 | }' |
| 14283 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14284 | # Check for a 64-bit object if we didn't find anything. |
| 14285 | if test -z "$lt_cv_aix_libpath_"; then |
| 14286 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 14287 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14288 | fi |
| 14289 | rm -f core conftest.err conftest.$ac_objext \ |
| 14290 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14291 | if test -z "$lt_cv_aix_libpath_"; then |
| 14292 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 14293 | fi |
| 14294 | |
| 14295 | fi |
| 14296 | |
| 14297 | aix_libpath=$lt_cv_aix_libpath_ |
| 14298 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14299 | |
| 14300 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 14301 | # Warning - without using the other run time loading flags, |
| 14302 | # -berok will link without error, but may produce a broken library. |
| 14303 | no_undefined_flag=' ${wl}-bernotok' |
| 14304 | allow_undefined_flag=' ${wl}-berok' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14305 | if test "$with_gnu_ld" = yes; then |
| 14306 | # We only use this code for GNU lds that support --whole-archive. |
| 14307 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 14308 | else |
| 14309 | # Exported symbols can be pulled into shared objects from archives |
| 14310 | whole_archive_flag_spec='$convenience' |
| 14311 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14312 | archive_cmds_need_lc=yes |
| 14313 | # This is similar to how AIX traditionally builds its shared libraries. |
| 14314 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 14315 | fi |
| 14316 | fi |
| 14317 | ;; |
| 14318 | |
| 14319 | amigaos*) |
| 14320 | case $host_cpu in |
| 14321 | powerpc) |
| 14322 | # see comment about AmigaOS4 .so support |
| 14323 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14324 | archive_expsym_cmds='' |
| 14325 | ;; |
| 14326 | m68k) |
| 14327 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 14328 | hardcode_libdir_flag_spec='-L$libdir' |
| 14329 | hardcode_minus_L=yes |
| 14330 | ;; |
| 14331 | esac |
| 14332 | ;; |
| 14333 | |
| 14334 | bsdi[45]*) |
| 14335 | export_dynamic_flag_spec=-rdynamic |
| 14336 | ;; |
| 14337 | |
| 14338 | cygwin* | mingw* | pw32* | cegcc*) |
| 14339 | # When not using gcc, we currently assume that we are using |
| 14340 | # Microsoft Visual C++. |
| 14341 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 14342 | # no search path for DLLs. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14343 | case $cc_basename in |
| 14344 | cl*) |
| 14345 | # Native MSVC |
| 14346 | hardcode_libdir_flag_spec=' ' |
| 14347 | allow_undefined_flag=unsupported |
| 14348 | always_export_symbols=yes |
| 14349 | file_list_spec='@' |
| 14350 | # Tell ltmain to make .lib files, not .a files. |
| 14351 | libext=lib |
| 14352 | # Tell ltmain to make .dll files, not .so files. |
| 14353 | shrext_cmds=".dll" |
| 14354 | # FIXME: Setting linknames here is a bad hack. |
| 14355 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 14356 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14357 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 14358 | else |
| 14359 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 14360 | fi~ |
| 14361 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 14362 | linknames=' |
| 14363 | # The linker will not automatically build a static lib if we build a DLL. |
| 14364 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 14365 | enable_shared_with_static_runtimes=yes |
| 14366 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 14367 | # Don't use ranlib |
| 14368 | old_postinstall_cmds='chmod 644 $oldlib' |
| 14369 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 14370 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 14371 | case $lt_outputfile in |
| 14372 | *.exe|*.EXE) ;; |
| 14373 | *) |
| 14374 | lt_outputfile="$lt_outputfile.exe" |
| 14375 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 14376 | ;; |
| 14377 | esac~ |
| 14378 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 14379 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 14380 | $RM "$lt_outputfile.manifest"; |
| 14381 | fi' |
| 14382 | ;; |
| 14383 | *) |
| 14384 | # Assume MSVC wrapper |
| 14385 | hardcode_libdir_flag_spec=' ' |
| 14386 | allow_undefined_flag=unsupported |
| 14387 | # Tell ltmain to make .lib files, not .a files. |
| 14388 | libext=lib |
| 14389 | # Tell ltmain to make .dll files, not .so files. |
| 14390 | shrext_cmds=".dll" |
| 14391 | # FIXME: Setting linknames here is a bad hack. |
| 14392 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 14393 | # The linker will automatically build a .lib file if we build a DLL. |
| 14394 | old_archive_from_new_cmds='true' |
| 14395 | # FIXME: Should let the user specify the lib program. |
| 14396 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 14397 | enable_shared_with_static_runtimes=yes |
| 14398 | ;; |
| 14399 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14400 | ;; |
| 14401 | |
| 14402 | darwin* | rhapsody*) |
| 14403 | |
| 14404 | |
| 14405 | archive_cmds_need_lc=no |
| 14406 | hardcode_direct=no |
| 14407 | hardcode_automatic=yes |
| 14408 | hardcode_shlibpath_var=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14409 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 14410 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 14411 | else |
| 14412 | whole_archive_flag_spec='' |
| 14413 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14414 | link_all_deplibs=yes |
| 14415 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 14416 | case $cc_basename in |
| 14417 | ifort*) _lt_dar_can_shared=yes ;; |
| 14418 | *) _lt_dar_can_shared=$GCC ;; |
| 14419 | esac |
| 14420 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14421 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14422 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 14423 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 14424 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 14425 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 14426 | |
| 14427 | else |
| 14428 | ld_shlibs=no |
| 14429 | fi |
| 14430 | |
| 14431 | ;; |
| 14432 | |
| 14433 | dgux*) |
| 14434 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14435 | hardcode_libdir_flag_spec='-L$libdir' |
| 14436 | hardcode_shlibpath_var=no |
| 14437 | ;; |
| 14438 | |
| 14439 | freebsd1*) |
| 14440 | ld_shlibs=no |
| 14441 | ;; |
| 14442 | |
| 14443 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 14444 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 14445 | # does not break anything, and helps significantly (at the cost of a little |
| 14446 | # extra space). |
| 14447 | freebsd2.2*) |
| 14448 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 14449 | hardcode_libdir_flag_spec='-R$libdir' |
| 14450 | hardcode_direct=yes |
| 14451 | hardcode_shlibpath_var=no |
| 14452 | ;; |
| 14453 | |
| 14454 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 14455 | freebsd2*) |
| 14456 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14457 | hardcode_direct=yes |
| 14458 | hardcode_minus_L=yes |
| 14459 | hardcode_shlibpath_var=no |
| 14460 | ;; |
| 14461 | |
| 14462 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 14463 | freebsd* | dragonfly*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14464 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14465 | hardcode_libdir_flag_spec='-R$libdir' |
| 14466 | hardcode_direct=yes |
| 14467 | hardcode_shlibpath_var=no |
| 14468 | ;; |
| 14469 | |
| 14470 | hpux9*) |
| 14471 | if test "$GCC" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14472 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14473 | else |
| 14474 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 14475 | fi |
| 14476 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14477 | hardcode_libdir_separator=: |
| 14478 | hardcode_direct=yes |
| 14479 | |
| 14480 | # hardcode_minus_L: Not really in the search PATH, |
| 14481 | # but as the default location of the library. |
| 14482 | hardcode_minus_L=yes |
| 14483 | export_dynamic_flag_spec='${wl}-E' |
| 14484 | ;; |
| 14485 | |
| 14486 | hpux10*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14487 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14488 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14489 | else |
| 14490 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14491 | fi |
| 14492 | if test "$with_gnu_ld" = no; then |
| 14493 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14494 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 14495 | hardcode_libdir_separator=: |
| 14496 | hardcode_direct=yes |
| 14497 | hardcode_direct_absolute=yes |
| 14498 | export_dynamic_flag_spec='${wl}-E' |
| 14499 | # hardcode_minus_L: Not really in the search PATH, |
| 14500 | # but as the default location of the library. |
| 14501 | hardcode_minus_L=yes |
| 14502 | fi |
| 14503 | ;; |
| 14504 | |
| 14505 | hpux11*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14506 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14507 | case $host_cpu in |
| 14508 | hppa*64*) |
| 14509 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14510 | ;; |
| 14511 | ia64*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14512 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14513 | ;; |
| 14514 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14515 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14516 | ;; |
| 14517 | esac |
| 14518 | else |
| 14519 | case $host_cpu in |
| 14520 | hppa*64*) |
| 14521 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14522 | ;; |
| 14523 | ia64*) |
| 14524 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 14525 | ;; |
| 14526 | *) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14527 | |
| 14528 | # Older versions of the 11.00 compiler do not understand -b yet |
| 14529 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 14530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 14531 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14532 | if ${lt_cv_prog_compiler__b+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14533 | $as_echo_n "(cached) " >&6 |
| 14534 | else |
| 14535 | lt_cv_prog_compiler__b=no |
| 14536 | save_LDFLAGS="$LDFLAGS" |
| 14537 | LDFLAGS="$LDFLAGS -b" |
| 14538 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14539 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14540 | # The linker can only warn and ignore the option if not recognized |
| 14541 | # So say no if there are warnings |
| 14542 | if test -s conftest.err; then |
| 14543 | # Append any errors to the config.log. |
| 14544 | cat conftest.err 1>&5 |
| 14545 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14546 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14547 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14548 | lt_cv_prog_compiler__b=yes |
| 14549 | fi |
| 14550 | else |
| 14551 | lt_cv_prog_compiler__b=yes |
| 14552 | fi |
| 14553 | fi |
| 14554 | $RM -r conftest* |
| 14555 | LDFLAGS="$save_LDFLAGS" |
| 14556 | |
| 14557 | fi |
| 14558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 14559 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 14560 | |
| 14561 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 14562 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 14563 | else |
| 14564 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 14565 | fi |
| 14566 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14567 | ;; |
| 14568 | esac |
| 14569 | fi |
| 14570 | if test "$with_gnu_ld" = no; then |
| 14571 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 14572 | hardcode_libdir_separator=: |
| 14573 | |
| 14574 | case $host_cpu in |
| 14575 | hppa*64*|ia64*) |
| 14576 | hardcode_direct=no |
| 14577 | hardcode_shlibpath_var=no |
| 14578 | ;; |
| 14579 | *) |
| 14580 | hardcode_direct=yes |
| 14581 | hardcode_direct_absolute=yes |
| 14582 | export_dynamic_flag_spec='${wl}-E' |
| 14583 | |
| 14584 | # hardcode_minus_L: Not really in the search PATH, |
| 14585 | # but as the default location of the library. |
| 14586 | hardcode_minus_L=yes |
| 14587 | ;; |
| 14588 | esac |
| 14589 | fi |
| 14590 | ;; |
| 14591 | |
| 14592 | irix5* | irix6* | nonstopux*) |
| 14593 | if test "$GCC" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14594 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14595 | # Try to use the -exported_symbol ld option, if it does not |
| 14596 | # work, assume that -exports_file does not work either and |
| 14597 | # implicitly export all symbols. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14598 | # This should be the same for all languages, so no per-tag cache variable. |
| 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 14600 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 14601 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 14602 | $as_echo_n "(cached) " >&6 |
| 14603 | else |
| 14604 | save_LDFLAGS="$LDFLAGS" |
| 14605 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 14606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14607 | /* end confdefs.h. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14608 | int foo (void) { return 0; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14609 | _ACEOF |
| 14610 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14611 | lt_cv_irix_exported_symbol=yes |
| 14612 | else |
| 14613 | lt_cv_irix_exported_symbol=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14614 | fi |
| 14615 | rm -f core conftest.err conftest.$ac_objext \ |
| 14616 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14617 | LDFLAGS="$save_LDFLAGS" |
| 14618 | fi |
| 14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 14620 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 14621 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 14622 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 14623 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14624 | else |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14625 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 14626 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14627 | fi |
| 14628 | archive_cmds_need_lc='no' |
| 14629 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14630 | hardcode_libdir_separator=: |
| 14631 | inherit_rpath=yes |
| 14632 | link_all_deplibs=yes |
| 14633 | ;; |
| 14634 | |
| 14635 | netbsd*) |
| 14636 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 14637 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 14638 | else |
| 14639 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 14640 | fi |
| 14641 | hardcode_libdir_flag_spec='-R$libdir' |
| 14642 | hardcode_direct=yes |
| 14643 | hardcode_shlibpath_var=no |
| 14644 | ;; |
| 14645 | |
| 14646 | newsos6) |
| 14647 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14648 | hardcode_direct=yes |
| 14649 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14650 | hardcode_libdir_separator=: |
| 14651 | hardcode_shlibpath_var=no |
| 14652 | ;; |
| 14653 | |
| 14654 | *nto* | *qnx*) |
| 14655 | ;; |
| 14656 | |
| 14657 | openbsd*) |
| 14658 | if test -f /usr/libexec/ld.so; then |
| 14659 | hardcode_direct=yes |
| 14660 | hardcode_shlibpath_var=no |
| 14661 | hardcode_direct_absolute=yes |
| 14662 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 14663 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14664 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 14665 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14666 | export_dynamic_flag_spec='${wl}-E' |
| 14667 | else |
| 14668 | case $host_os in |
| 14669 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 14670 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 14671 | hardcode_libdir_flag_spec='-R$libdir' |
| 14672 | ;; |
| 14673 | *) |
| 14674 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 14675 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14676 | ;; |
| 14677 | esac |
| 14678 | fi |
| 14679 | else |
| 14680 | ld_shlibs=no |
| 14681 | fi |
| 14682 | ;; |
| 14683 | |
| 14684 | os2*) |
| 14685 | hardcode_libdir_flag_spec='-L$libdir' |
| 14686 | hardcode_minus_L=yes |
| 14687 | allow_undefined_flag=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14688 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14689 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 14690 | ;; |
| 14691 | |
| 14692 | osf3*) |
| 14693 | if test "$GCC" = yes; then |
| 14694 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14695 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14696 | else |
| 14697 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14698 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14699 | fi |
| 14700 | archive_cmds_need_lc='no' |
| 14701 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14702 | hardcode_libdir_separator=: |
| 14703 | ;; |
| 14704 | |
| 14705 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 14706 | if test "$GCC" = yes; then |
| 14707 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14708 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14709 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14710 | else |
| 14711 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14712 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14713 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14714 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14715 | |
| 14716 | # Both c and cxx compiler support -rpath directly |
| 14717 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 14718 | fi |
| 14719 | archive_cmds_need_lc='no' |
| 14720 | hardcode_libdir_separator=: |
| 14721 | ;; |
| 14722 | |
| 14723 | solaris*) |
| 14724 | no_undefined_flag=' -z defs' |
| 14725 | if test "$GCC" = yes; then |
| 14726 | wlarc='${wl}' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14727 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14728 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14729 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14730 | else |
| 14731 | case `$CC -V 2>&1` in |
| 14732 | *"Compilers 5.0"*) |
| 14733 | wlarc='' |
| 14734 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14735 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14736 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 14737 | ;; |
| 14738 | *) |
| 14739 | wlarc='${wl}' |
| 14740 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14741 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 14742 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 14743 | ;; |
| 14744 | esac |
| 14745 | fi |
| 14746 | hardcode_libdir_flag_spec='-R$libdir' |
| 14747 | hardcode_shlibpath_var=no |
| 14748 | case $host_os in |
| 14749 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 14750 | *) |
| 14751 | # The compiler driver will combine and reorder linker options, |
| 14752 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 14753 | # but is careful enough not to reorder. |
| 14754 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 14755 | if test "$GCC" = yes; then |
| 14756 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 14757 | else |
| 14758 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 14759 | fi |
| 14760 | ;; |
| 14761 | esac |
| 14762 | link_all_deplibs=yes |
| 14763 | ;; |
| 14764 | |
| 14765 | sunos4*) |
| 14766 | if test "x$host_vendor" = xsequent; then |
| 14767 | # Use $CC to link under sequent, because it throws in some extra .o |
| 14768 | # files that make .init and .fini sections work. |
| 14769 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14770 | else |
| 14771 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 14772 | fi |
| 14773 | hardcode_libdir_flag_spec='-L$libdir' |
| 14774 | hardcode_direct=yes |
| 14775 | hardcode_minus_L=yes |
| 14776 | hardcode_shlibpath_var=no |
| 14777 | ;; |
| 14778 | |
| 14779 | sysv4) |
| 14780 | case $host_vendor in |
| 14781 | sni) |
| 14782 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14783 | hardcode_direct=yes # is this really true??? |
| 14784 | ;; |
| 14785 | siemens) |
| 14786 | ## LD is ld it makes a PLAMLIB |
| 14787 | ## CC just makes a GrossModule. |
| 14788 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 14789 | reload_cmds='$CC -r -o $output$reload_objs' |
| 14790 | hardcode_direct=no |
| 14791 | ;; |
| 14792 | motorola) |
| 14793 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14794 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 14795 | ;; |
| 14796 | esac |
| 14797 | runpath_var='LD_RUN_PATH' |
| 14798 | hardcode_shlibpath_var=no |
| 14799 | ;; |
| 14800 | |
| 14801 | sysv4.3*) |
| 14802 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14803 | hardcode_shlibpath_var=no |
| 14804 | export_dynamic_flag_spec='-Bexport' |
| 14805 | ;; |
| 14806 | |
| 14807 | sysv4*MP*) |
| 14808 | if test -d /usr/nec; then |
| 14809 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14810 | hardcode_shlibpath_var=no |
| 14811 | runpath_var=LD_RUN_PATH |
| 14812 | hardcode_runpath_var=yes |
| 14813 | ld_shlibs=yes |
| 14814 | fi |
| 14815 | ;; |
| 14816 | |
| 14817 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 14818 | no_undefined_flag='${wl}-z,text' |
| 14819 | archive_cmds_need_lc=no |
| 14820 | hardcode_shlibpath_var=no |
| 14821 | runpath_var='LD_RUN_PATH' |
| 14822 | |
| 14823 | if test "$GCC" = yes; then |
| 14824 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14825 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14826 | else |
| 14827 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14828 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14829 | fi |
| 14830 | ;; |
| 14831 | |
| 14832 | sysv5* | sco3.2v5* | sco5v6*) |
| 14833 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 14834 | # link with -lc, and that would cause any symbols used from libc to |
| 14835 | # always be unresolved, which means just about no library would |
| 14836 | # ever link correctly. If we're not using GNU ld we use -z text |
| 14837 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 14838 | # as -z defs. |
| 14839 | no_undefined_flag='${wl}-z,text' |
| 14840 | allow_undefined_flag='${wl}-z,nodefs' |
| 14841 | archive_cmds_need_lc=no |
| 14842 | hardcode_shlibpath_var=no |
| 14843 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 14844 | hardcode_libdir_separator=':' |
| 14845 | link_all_deplibs=yes |
| 14846 | export_dynamic_flag_spec='${wl}-Bexport' |
| 14847 | runpath_var='LD_RUN_PATH' |
| 14848 | |
| 14849 | if test "$GCC" = yes; then |
| 14850 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14851 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14852 | else |
| 14853 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14854 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 14855 | fi |
| 14856 | ;; |
| 14857 | |
| 14858 | uts4*) |
| 14859 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 14860 | hardcode_libdir_flag_spec='-L$libdir' |
| 14861 | hardcode_shlibpath_var=no |
| 14862 | ;; |
| 14863 | |
| 14864 | *) |
| 14865 | ld_shlibs=no |
| 14866 | ;; |
| 14867 | esac |
| 14868 | |
| 14869 | if test x$host_vendor = xsni; then |
| 14870 | case $host in |
| 14871 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 14872 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 14873 | ;; |
| 14874 | esac |
| 14875 | fi |
| 14876 | fi |
| 14877 | |
| 14878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 14879 | $as_echo "$ld_shlibs" >&6; } |
| 14880 | test "$ld_shlibs" = no && can_build_shared=no |
| 14881 | |
| 14882 | with_gnu_ld=$with_gnu_ld |
| 14883 | |
| 14884 | |
| 14885 | |
| 14886 | |
| 14887 | |
| 14888 | |
| 14889 | |
| 14890 | |
| 14891 | |
| 14892 | |
| 14893 | |
| 14894 | |
| 14895 | |
| 14896 | |
| 14897 | |
| 14898 | # |
| 14899 | # Do we need to explicitly link libc? |
| 14900 | # |
| 14901 | case "x$archive_cmds_need_lc" in |
| 14902 | x|xyes) |
| 14903 | # Assume -lc should be added |
| 14904 | archive_cmds_need_lc=yes |
| 14905 | |
| 14906 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14907 | case $archive_cmds in |
| 14908 | *'~'*) |
| 14909 | # FIXME: we may have to deal with multi-command sequences. |
| 14910 | ;; |
| 14911 | '$CC '*) |
| 14912 | # Test whether the compiler implicitly links with -lc since on some |
| 14913 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14914 | # to ld, don't add -lc before -lgcc. |
| 14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14916 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14917 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14918 | $as_echo_n "(cached) " >&6 |
| 14919 | else |
| 14920 | $RM conftest* |
| 14921 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14922 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14923 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14924 | (eval $ac_compile) 2>&5 |
| 14925 | ac_status=$? |
| 14926 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14927 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14928 | soname=conftest |
| 14929 | lib=conftest |
| 14930 | libobjs=conftest.$ac_objext |
| 14931 | deplibs= |
| 14932 | wl=$lt_prog_compiler_wl |
| 14933 | pic_flag=$lt_prog_compiler_pic |
| 14934 | compiler_flags=-v |
| 14935 | linker_flags=-v |
| 14936 | verstring= |
| 14937 | output_objdir=. |
| 14938 | libname=conftest |
| 14939 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 14940 | allow_undefined_flag= |
| 14941 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14942 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14943 | ac_status=$? |
| 14944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14945 | test $ac_status = 0; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14946 | then |
| 14947 | lt_cv_archive_cmds_need_lc=no |
| 14948 | else |
| 14949 | lt_cv_archive_cmds_need_lc=yes |
| 14950 | fi |
| 14951 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 14952 | else |
| 14953 | cat conftest.err 1>&5 |
| 14954 | fi |
| 14955 | $RM conftest* |
| 14956 | |
| 14957 | fi |
| 14958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 14959 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 14960 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14961 | ;; |
| 14962 | esac |
| 14963 | fi |
| 14964 | ;; |
| 14965 | esac |
| 14966 | |
| 14967 | |
| 14968 | |
| 14969 | |
| 14970 | |
| 14971 | |
| 14972 | |
| 14973 | |
| 14974 | |
| 14975 | |
| 14976 | |
| 14977 | |
| 14978 | |
| 14979 | |
| 14980 | |
| 14981 | |
| 14982 | |
| 14983 | |
| 14984 | |
| 14985 | |
| 14986 | |
| 14987 | |
| 14988 | |
| 14989 | |
| 14990 | |
| 14991 | |
| 14992 | |
| 14993 | |
| 14994 | |
| 14995 | |
| 14996 | |
| 14997 | |
| 14998 | |
| 14999 | |
| 15000 | |
| 15001 | |
| 15002 | |
| 15003 | |
| 15004 | |
| 15005 | |
| 15006 | |
| 15007 | |
| 15008 | |
| 15009 | |
| 15010 | |
| 15011 | |
| 15012 | |
| 15013 | |
| 15014 | |
| 15015 | |
| 15016 | |
| 15017 | |
| 15018 | |
| 15019 | |
| 15020 | |
| 15021 | |
| 15022 | |
| 15023 | |
| 15024 | |
| 15025 | |
| 15026 | |
| 15027 | |
| 15028 | |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | |
| 15033 | |
| 15034 | |
| 15035 | |
| 15036 | |
| 15037 | |
| 15038 | |
| 15039 | |
| 15040 | |
| 15041 | |
| 15042 | |
| 15043 | |
| 15044 | |
| 15045 | |
| 15046 | |
| 15047 | |
| 15048 | |
| 15049 | |
| 15050 | |
| 15051 | |
| 15052 | |
| 15053 | |
| 15054 | |
| 15055 | |
| 15056 | |
| 15057 | |
| 15058 | |
| 15059 | |
| 15060 | |
| 15061 | |
| 15062 | |
| 15063 | |
| 15064 | |
| 15065 | |
| 15066 | |
| 15067 | |
| 15068 | |
| 15069 | |
| 15070 | |
| 15071 | |
| 15072 | |
| 15073 | |
| 15074 | |
| 15075 | |
| 15076 | |
| 15077 | |
| 15078 | |
| 15079 | |
| 15080 | |
| 15081 | |
| 15082 | |
| 15083 | |
| 15084 | |
| 15085 | |
| 15086 | |
| 15087 | |
| 15088 | |
| 15089 | |
| 15090 | |
| 15091 | |
| 15092 | |
| 15093 | |
| 15094 | |
| 15095 | |
| 15096 | |
| 15097 | |
| 15098 | |
| 15099 | |
| 15100 | |
| 15101 | |
| 15102 | |
| 15103 | |
| 15104 | |
| 15105 | |
| 15106 | |
| 15107 | |
| 15108 | |
| 15109 | |
| 15110 | |
| 15111 | |
| 15112 | |
| 15113 | |
| 15114 | |
| 15115 | |
| 15116 | |
| 15117 | |
| 15118 | |
| 15119 | |
| 15120 | |
| 15121 | |
| 15122 | |
| 15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 15124 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 15125 | |
| 15126 | if test "$GCC" = yes; then |
| 15127 | case $host_os in |
| 15128 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 15129 | *) lt_awk_arg="/^libraries:/" ;; |
| 15130 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15131 | case $host_os in |
| 15132 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 15133 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 15134 | esac |
| 15135 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 15136 | case $lt_search_path_spec in |
| 15137 | *\;*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15138 | # if the path contains ";" then we assume it to be the separator |
| 15139 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 15140 | # assumed that no part of a normal pathname contains ";" but that should |
| 15141 | # okay in the real world where ";" in dirpaths is itself problematic. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15142 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 15143 | ;; |
| 15144 | *) |
| 15145 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 15146 | ;; |
| 15147 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15148 | # Ok, now we have the path, separated by spaces, we can step through it |
| 15149 | # and add multilib dir if necessary. |
| 15150 | lt_tmp_lt_search_path_spec= |
| 15151 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 15152 | for lt_sys_path in $lt_search_path_spec; do |
| 15153 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 15154 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 15155 | else |
| 15156 | test -d "$lt_sys_path" && \ |
| 15157 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 15158 | fi |
| 15159 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15160 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15161 | BEGIN {RS=" "; FS="/|\n";} { |
| 15162 | lt_foo=""; |
| 15163 | lt_count=0; |
| 15164 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 15165 | if ($lt_i != "" && $lt_i != ".") { |
| 15166 | if ($lt_i == "..") { |
| 15167 | lt_count++; |
| 15168 | } else { |
| 15169 | if (lt_count == 0) { |
| 15170 | lt_foo="/" $lt_i lt_foo; |
| 15171 | } else { |
| 15172 | lt_count--; |
| 15173 | } |
| 15174 | } |
| 15175 | } |
| 15176 | } |
| 15177 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 15178 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 15179 | }'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15180 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 15181 | # for these hosts. |
| 15182 | case $host_os in |
| 15183 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 15184 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 15185 | esac |
| 15186 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15187 | else |
| 15188 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 15189 | fi |
| 15190 | library_names_spec= |
| 15191 | libname_spec='lib$name' |
| 15192 | soname_spec= |
| 15193 | shrext_cmds=".so" |
| 15194 | postinstall_cmds= |
| 15195 | postuninstall_cmds= |
| 15196 | finish_cmds= |
| 15197 | finish_eval= |
| 15198 | shlibpath_var= |
| 15199 | shlibpath_overrides_runpath=unknown |
| 15200 | version_type=none |
| 15201 | dynamic_linker="$host_os ld.so" |
| 15202 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 15203 | need_lib_prefix=unknown |
| 15204 | hardcode_into_libs=no |
| 15205 | |
| 15206 | # when you set need_version to no, make sure it does not cause -set_version |
| 15207 | # flags to be left without arguments |
| 15208 | need_version=unknown |
| 15209 | |
| 15210 | case $host_os in |
| 15211 | aix3*) |
| 15212 | version_type=linux |
| 15213 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 15214 | shlibpath_var=LIBPATH |
| 15215 | |
| 15216 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 15217 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15218 | ;; |
| 15219 | |
| 15220 | aix[4-9]*) |
| 15221 | version_type=linux |
| 15222 | need_lib_prefix=no |
| 15223 | need_version=no |
| 15224 | hardcode_into_libs=yes |
| 15225 | if test "$host_cpu" = ia64; then |
| 15226 | # AIX 5 supports IA64 |
| 15227 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 15228 | shlibpath_var=LD_LIBRARY_PATH |
| 15229 | else |
| 15230 | # With GCC up to 2.95.x, collect2 would create an import file |
| 15231 | # for dependence libraries. The import file would start with |
| 15232 | # the line `#! .'. This would cause the generated library to |
| 15233 | # depend on `.', always an invalid library. This was fixed in |
| 15234 | # development snapshots of GCC prior to 3.0. |
| 15235 | case $host_os in |
| 15236 | aix4 | aix4.[01] | aix4.[01].*) |
| 15237 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 15238 | echo ' yes ' |
| 15239 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 15240 | : |
| 15241 | else |
| 15242 | can_build_shared=no |
| 15243 | fi |
| 15244 | ;; |
| 15245 | esac |
| 15246 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15247 | # soname into executable. Probably we can add versioning support to |
| 15248 | # collect2, so additional links can be useful in future. |
| 15249 | if test "$aix_use_runtimelinking" = yes; then |
| 15250 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15251 | # instead of lib<name>.a to let people know that these are not |
| 15252 | # typical AIX shared libraries. |
| 15253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15254 | else |
| 15255 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15256 | # and later when we are not doing run time linking. |
| 15257 | library_names_spec='${libname}${release}.a $libname.a' |
| 15258 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15259 | fi |
| 15260 | shlibpath_var=LIBPATH |
| 15261 | fi |
| 15262 | ;; |
| 15263 | |
| 15264 | amigaos*) |
| 15265 | case $host_cpu in |
| 15266 | powerpc) |
| 15267 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 15268 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 15269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15270 | ;; |
| 15271 | m68k) |
| 15272 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15273 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15274 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15275 | ;; |
| 15276 | esac |
| 15277 | ;; |
| 15278 | |
| 15279 | beos*) |
| 15280 | library_names_spec='${libname}${shared_ext}' |
| 15281 | dynamic_linker="$host_os ld.so" |
| 15282 | shlibpath_var=LIBRARY_PATH |
| 15283 | ;; |
| 15284 | |
| 15285 | bsdi[45]*) |
| 15286 | version_type=linux |
| 15287 | need_version=no |
| 15288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15289 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15290 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15291 | shlibpath_var=LD_LIBRARY_PATH |
| 15292 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15293 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15294 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15295 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15296 | # libtool to hard-code these into programs |
| 15297 | ;; |
| 15298 | |
| 15299 | cygwin* | mingw* | pw32* | cegcc*) |
| 15300 | version_type=windows |
| 15301 | shrext_cmds=".dll" |
| 15302 | need_version=no |
| 15303 | need_lib_prefix=no |
| 15304 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15305 | case $GCC,$cc_basename in |
| 15306 | yes,*) |
| 15307 | # gcc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15308 | library_names_spec='$libname.dll.a' |
| 15309 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15310 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15311 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15312 | dldir=$destdir/`dirname \$dlpath`~ |
| 15313 | test -d \$dldir || mkdir -p \$dldir~ |
| 15314 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15315 | chmod a+x \$dldir/$dlname~ |
| 15316 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 15317 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 15318 | fi' |
| 15319 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15320 | dlpath=$dir/\$dldll~ |
| 15321 | $RM \$dlpath' |
| 15322 | shlibpath_overrides_runpath=yes |
| 15323 | |
| 15324 | case $host_os in |
| 15325 | cygwin*) |
| 15326 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15327 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15328 | |
| 15329 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15330 | ;; |
| 15331 | mingw* | cegcc*) |
| 15332 | # MinGW DLLs use traditional 'lib' prefix |
| 15333 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15334 | ;; |
| 15335 | pw32*) |
| 15336 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15337 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15338 | ;; |
| 15339 | esac |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15340 | dynamic_linker='Win32 ld.exe' |
| 15341 | ;; |
| 15342 | |
| 15343 | *,cl*) |
| 15344 | # Native MSVC |
| 15345 | libname_spec='$name' |
| 15346 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15347 | library_names_spec='${libname}.dll.lib' |
| 15348 | |
| 15349 | case $build_os in |
| 15350 | mingw*) |
| 15351 | sys_lib_search_path_spec= |
| 15352 | lt_save_ifs=$IFS |
| 15353 | IFS=';' |
| 15354 | for lt_path in $LIB |
| 15355 | do |
| 15356 | IFS=$lt_save_ifs |
| 15357 | # Let DOS variable expansion print the short 8.3 style file name. |
| 15358 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 15359 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 15360 | done |
| 15361 | IFS=$lt_save_ifs |
| 15362 | # Convert to MSYS style. |
| 15363 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 15364 | ;; |
| 15365 | cygwin*) |
| 15366 | # Convert to unix form, then to dos form, then back to unix form |
| 15367 | # but this time dos style (no spaces!) so that the unix form looks |
| 15368 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 15369 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 15370 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 15371 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15372 | ;; |
| 15373 | *) |
| 15374 | sys_lib_search_path_spec="$LIB" |
| 15375 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 15376 | # It is most probably a Windows format PATH. |
| 15377 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15378 | else |
| 15379 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15380 | fi |
| 15381 | # FIXME: find the short name or the path components, as spaces are |
| 15382 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 15383 | ;; |
| 15384 | esac |
| 15385 | |
| 15386 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15387 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15388 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15389 | dldir=$destdir/`dirname \$dlpath`~ |
| 15390 | test -d \$dldir || mkdir -p \$dldir~ |
| 15391 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15392 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15393 | dlpath=$dir/\$dldll~ |
| 15394 | $RM \$dlpath' |
| 15395 | shlibpath_overrides_runpath=yes |
| 15396 | dynamic_linker='Win32 link.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15397 | ;; |
| 15398 | |
| 15399 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15400 | # Assume MSVC wrapper |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15401 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15402 | dynamic_linker='Win32 ld.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15403 | ;; |
| 15404 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15405 | # FIXME: first we should search . and the directory the executable is in |
| 15406 | shlibpath_var=PATH |
| 15407 | ;; |
| 15408 | |
| 15409 | darwin* | rhapsody*) |
| 15410 | dynamic_linker="$host_os dyld" |
| 15411 | version_type=darwin |
| 15412 | need_lib_prefix=no |
| 15413 | need_version=no |
| 15414 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15415 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15416 | shlibpath_overrides_runpath=yes |
| 15417 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15418 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15419 | |
| 15420 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 15421 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15422 | ;; |
| 15423 | |
| 15424 | dgux*) |
| 15425 | version_type=linux |
| 15426 | need_lib_prefix=no |
| 15427 | need_version=no |
| 15428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15429 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15430 | shlibpath_var=LD_LIBRARY_PATH |
| 15431 | ;; |
| 15432 | |
| 15433 | freebsd1*) |
| 15434 | dynamic_linker=no |
| 15435 | ;; |
| 15436 | |
| 15437 | freebsd* | dragonfly*) |
| 15438 | # DragonFly does not have aout. When/if they implement a new |
| 15439 | # versioning mechanism, adjust this. |
| 15440 | if test -x /usr/bin/objformat; then |
| 15441 | objformat=`/usr/bin/objformat` |
| 15442 | else |
| 15443 | case $host_os in |
| 15444 | freebsd[123]*) objformat=aout ;; |
| 15445 | *) objformat=elf ;; |
| 15446 | esac |
| 15447 | fi |
| 15448 | version_type=freebsd-$objformat |
| 15449 | case $version_type in |
| 15450 | freebsd-elf*) |
| 15451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15452 | need_version=no |
| 15453 | need_lib_prefix=no |
| 15454 | ;; |
| 15455 | freebsd-*) |
| 15456 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15457 | need_version=yes |
| 15458 | ;; |
| 15459 | esac |
| 15460 | shlibpath_var=LD_LIBRARY_PATH |
| 15461 | case $host_os in |
| 15462 | freebsd2*) |
| 15463 | shlibpath_overrides_runpath=yes |
| 15464 | ;; |
| 15465 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15466 | shlibpath_overrides_runpath=yes |
| 15467 | hardcode_into_libs=yes |
| 15468 | ;; |
| 15469 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15470 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15471 | shlibpath_overrides_runpath=no |
| 15472 | hardcode_into_libs=yes |
| 15473 | ;; |
| 15474 | *) # from 4.6 on, and DragonFly |
| 15475 | shlibpath_overrides_runpath=yes |
| 15476 | hardcode_into_libs=yes |
| 15477 | ;; |
| 15478 | esac |
| 15479 | ;; |
| 15480 | |
| 15481 | gnu*) |
| 15482 | version_type=linux |
| 15483 | need_lib_prefix=no |
| 15484 | need_version=no |
| 15485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15486 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15487 | shlibpath_var=LD_LIBRARY_PATH |
| 15488 | hardcode_into_libs=yes |
| 15489 | ;; |
| 15490 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15491 | haiku*) |
| 15492 | version_type=linux |
| 15493 | need_lib_prefix=no |
| 15494 | need_version=no |
| 15495 | dynamic_linker="$host_os runtime_loader" |
| 15496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15497 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15498 | shlibpath_var=LIBRARY_PATH |
| 15499 | shlibpath_overrides_runpath=yes |
| 15500 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15501 | hardcode_into_libs=yes |
| 15502 | ;; |
| 15503 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15504 | hpux9* | hpux10* | hpux11*) |
| 15505 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15506 | # link against other versions. |
| 15507 | version_type=sunos |
| 15508 | need_lib_prefix=no |
| 15509 | need_version=no |
| 15510 | case $host_cpu in |
| 15511 | ia64*) |
| 15512 | shrext_cmds='.so' |
| 15513 | hardcode_into_libs=yes |
| 15514 | dynamic_linker="$host_os dld.so" |
| 15515 | shlibpath_var=LD_LIBRARY_PATH |
| 15516 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15518 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15519 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15520 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15521 | else |
| 15522 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15523 | fi |
| 15524 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15525 | ;; |
| 15526 | hppa*64*) |
| 15527 | shrext_cmds='.sl' |
| 15528 | hardcode_into_libs=yes |
| 15529 | dynamic_linker="$host_os dld.sl" |
| 15530 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15531 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15533 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15534 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15535 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15536 | ;; |
| 15537 | *) |
| 15538 | shrext_cmds='.sl' |
| 15539 | dynamic_linker="$host_os dld.sl" |
| 15540 | shlibpath_var=SHLIB_PATH |
| 15541 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15543 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15544 | ;; |
| 15545 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15546 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15547 | postinstall_cmds='chmod 555 $lib' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15548 | # or fails outright, so override atomically: |
| 15549 | install_override_mode=555 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15550 | ;; |
| 15551 | |
| 15552 | interix[3-9]*) |
| 15553 | version_type=linux |
| 15554 | need_lib_prefix=no |
| 15555 | need_version=no |
| 15556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15557 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15558 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15559 | shlibpath_var=LD_LIBRARY_PATH |
| 15560 | shlibpath_overrides_runpath=no |
| 15561 | hardcode_into_libs=yes |
| 15562 | ;; |
| 15563 | |
| 15564 | irix5* | irix6* | nonstopux*) |
| 15565 | case $host_os in |
| 15566 | nonstopux*) version_type=nonstopux ;; |
| 15567 | *) |
| 15568 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15569 | version_type=linux |
| 15570 | else |
| 15571 | version_type=irix |
| 15572 | fi ;; |
| 15573 | esac |
| 15574 | need_lib_prefix=no |
| 15575 | need_version=no |
| 15576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15578 | case $host_os in |
| 15579 | irix5* | nonstopux*) |
| 15580 | libsuff= shlibsuff= |
| 15581 | ;; |
| 15582 | *) |
| 15583 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15584 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15585 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15586 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15587 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15588 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15589 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15590 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15591 | esac |
| 15592 | ;; |
| 15593 | esac |
| 15594 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15595 | shlibpath_overrides_runpath=no |
| 15596 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15597 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15598 | hardcode_into_libs=yes |
| 15599 | ;; |
| 15600 | |
| 15601 | # No shared lib support for Linux oldld, aout, or coff. |
| 15602 | linux*oldld* | linux*aout* | linux*coff*) |
| 15603 | dynamic_linker=no |
| 15604 | ;; |
| 15605 | |
| 15606 | # This must be Linux ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15607 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15608 | version_type=linux |
| 15609 | need_lib_prefix=no |
| 15610 | need_version=no |
| 15611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15612 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15613 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15614 | shlibpath_var=LD_LIBRARY_PATH |
| 15615 | shlibpath_overrides_runpath=no |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15616 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15617 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15618 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15619 | $as_echo_n "(cached) " >&6 |
| 15620 | else |
| 15621 | lt_cv_shlibpath_overrides_runpath=no |
| 15622 | save_LDFLAGS=$LDFLAGS |
| 15623 | save_libdir=$libdir |
| 15624 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 15625 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 15626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15627 | /* end confdefs.h. */ |
| 15628 | |
| 15629 | int |
| 15630 | main () |
| 15631 | { |
| 15632 | |
| 15633 | ; |
| 15634 | return 0; |
| 15635 | } |
| 15636 | _ACEOF |
| 15637 | if ac_fn_c_try_link "$LINENO"; then : |
| 15638 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15639 | lt_cv_shlibpath_overrides_runpath=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15640 | fi |
| 15641 | fi |
| 15642 | rm -f core conftest.err conftest.$ac_objext \ |
| 15643 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15644 | LDFLAGS=$save_LDFLAGS |
| 15645 | libdir=$save_libdir |
| 15646 | |
| 15647 | fi |
| 15648 | |
| 15649 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15650 | |
| 15651 | # This implies no fast_install, which is unacceptable. |
| 15652 | # Some rework will be needed to allow for fast_install |
| 15653 | # before this can be enabled. |
| 15654 | hardcode_into_libs=yes |
| 15655 | |
| 15656 | # Add ABI-specific directories to the system library path. |
| 15657 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 15658 | |
| 15659 | # Append ld.so.conf contents to the search path |
| 15660 | if test -f /etc/ld.so.conf; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15661 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15662 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15663 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15664 | fi |
| 15665 | |
| 15666 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15667 | # powerpc, because MkLinux only supported shared libraries with the |
| 15668 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15669 | # most powerpc-linux boxes support dynamic linking these days and |
| 15670 | # people can always --disable-shared, the test was removed, and we |
| 15671 | # assume the GNU/Linux dynamic linker is in use. |
| 15672 | dynamic_linker='GNU/Linux ld.so' |
| 15673 | ;; |
| 15674 | |
| 15675 | netbsd*) |
| 15676 | version_type=sunos |
| 15677 | need_lib_prefix=no |
| 15678 | need_version=no |
| 15679 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15681 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15682 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15683 | else |
| 15684 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15685 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15686 | dynamic_linker='NetBSD ld.elf_so' |
| 15687 | fi |
| 15688 | shlibpath_var=LD_LIBRARY_PATH |
| 15689 | shlibpath_overrides_runpath=yes |
| 15690 | hardcode_into_libs=yes |
| 15691 | ;; |
| 15692 | |
| 15693 | newsos6) |
| 15694 | version_type=linux |
| 15695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15696 | shlibpath_var=LD_LIBRARY_PATH |
| 15697 | shlibpath_overrides_runpath=yes |
| 15698 | ;; |
| 15699 | |
| 15700 | *nto* | *qnx*) |
| 15701 | version_type=qnx |
| 15702 | need_lib_prefix=no |
| 15703 | need_version=no |
| 15704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15705 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15706 | shlibpath_var=LD_LIBRARY_PATH |
| 15707 | shlibpath_overrides_runpath=no |
| 15708 | hardcode_into_libs=yes |
| 15709 | dynamic_linker='ldqnx.so' |
| 15710 | ;; |
| 15711 | |
| 15712 | openbsd*) |
| 15713 | version_type=sunos |
| 15714 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15715 | need_lib_prefix=no |
| 15716 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15717 | case $host_os in |
| 15718 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15719 | *) need_version=no ;; |
| 15720 | esac |
| 15721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15722 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15723 | shlibpath_var=LD_LIBRARY_PATH |
| 15724 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15725 | case $host_os in |
| 15726 | openbsd2.[89] | openbsd2.[89].*) |
| 15727 | shlibpath_overrides_runpath=no |
| 15728 | ;; |
| 15729 | *) |
| 15730 | shlibpath_overrides_runpath=yes |
| 15731 | ;; |
| 15732 | esac |
| 15733 | else |
| 15734 | shlibpath_overrides_runpath=yes |
| 15735 | fi |
| 15736 | ;; |
| 15737 | |
| 15738 | os2*) |
| 15739 | libname_spec='$name' |
| 15740 | shrext_cmds=".dll" |
| 15741 | need_lib_prefix=no |
| 15742 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15743 | dynamic_linker='OS/2 ld.exe' |
| 15744 | shlibpath_var=LIBPATH |
| 15745 | ;; |
| 15746 | |
| 15747 | osf3* | osf4* | osf5*) |
| 15748 | version_type=osf |
| 15749 | need_lib_prefix=no |
| 15750 | need_version=no |
| 15751 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15753 | shlibpath_var=LD_LIBRARY_PATH |
| 15754 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15755 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15756 | ;; |
| 15757 | |
| 15758 | rdos*) |
| 15759 | dynamic_linker=no |
| 15760 | ;; |
| 15761 | |
| 15762 | solaris*) |
| 15763 | version_type=linux |
| 15764 | need_lib_prefix=no |
| 15765 | need_version=no |
| 15766 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15768 | shlibpath_var=LD_LIBRARY_PATH |
| 15769 | shlibpath_overrides_runpath=yes |
| 15770 | hardcode_into_libs=yes |
| 15771 | # ldd complains unless libraries are executable |
| 15772 | postinstall_cmds='chmod +x $lib' |
| 15773 | ;; |
| 15774 | |
| 15775 | sunos4*) |
| 15776 | version_type=sunos |
| 15777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15778 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15779 | shlibpath_var=LD_LIBRARY_PATH |
| 15780 | shlibpath_overrides_runpath=yes |
| 15781 | if test "$with_gnu_ld" = yes; then |
| 15782 | need_lib_prefix=no |
| 15783 | fi |
| 15784 | need_version=yes |
| 15785 | ;; |
| 15786 | |
| 15787 | sysv4 | sysv4.3*) |
| 15788 | version_type=linux |
| 15789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15790 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15791 | shlibpath_var=LD_LIBRARY_PATH |
| 15792 | case $host_vendor in |
| 15793 | sni) |
| 15794 | shlibpath_overrides_runpath=no |
| 15795 | need_lib_prefix=no |
| 15796 | runpath_var=LD_RUN_PATH |
| 15797 | ;; |
| 15798 | siemens) |
| 15799 | need_lib_prefix=no |
| 15800 | ;; |
| 15801 | motorola) |
| 15802 | need_lib_prefix=no |
| 15803 | need_version=no |
| 15804 | shlibpath_overrides_runpath=no |
| 15805 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15806 | ;; |
| 15807 | esac |
| 15808 | ;; |
| 15809 | |
| 15810 | sysv4*MP*) |
| 15811 | if test -d /usr/nec ;then |
| 15812 | version_type=linux |
| 15813 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15814 | soname_spec='$libname${shared_ext}.$major' |
| 15815 | shlibpath_var=LD_LIBRARY_PATH |
| 15816 | fi |
| 15817 | ;; |
| 15818 | |
| 15819 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15820 | version_type=freebsd-elf |
| 15821 | need_lib_prefix=no |
| 15822 | need_version=no |
| 15823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15824 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15825 | shlibpath_var=LD_LIBRARY_PATH |
| 15826 | shlibpath_overrides_runpath=yes |
| 15827 | hardcode_into_libs=yes |
| 15828 | if test "$with_gnu_ld" = yes; then |
| 15829 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15830 | else |
| 15831 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15832 | case $host_os in |
| 15833 | sco3.2v5*) |
| 15834 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15835 | ;; |
| 15836 | esac |
| 15837 | fi |
| 15838 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15839 | ;; |
| 15840 | |
| 15841 | tpf*) |
| 15842 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15843 | version_type=linux |
| 15844 | need_lib_prefix=no |
| 15845 | need_version=no |
| 15846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15847 | shlibpath_var=LD_LIBRARY_PATH |
| 15848 | shlibpath_overrides_runpath=no |
| 15849 | hardcode_into_libs=yes |
| 15850 | ;; |
| 15851 | |
| 15852 | uts4*) |
| 15853 | version_type=linux |
| 15854 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15855 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15856 | shlibpath_var=LD_LIBRARY_PATH |
| 15857 | ;; |
| 15858 | |
| 15859 | *) |
| 15860 | dynamic_linker=no |
| 15861 | ;; |
| 15862 | esac |
| 15863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15864 | $as_echo "$dynamic_linker" >&6; } |
| 15865 | test "$dynamic_linker" = no && can_build_shared=no |
| 15866 | |
| 15867 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15868 | if test "$GCC" = yes; then |
| 15869 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15870 | fi |
| 15871 | |
| 15872 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15873 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15874 | fi |
| 15875 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15876 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15877 | fi |
| 15878 | |
| 15879 | |
| 15880 | |
| 15881 | |
| 15882 | |
| 15883 | |
| 15884 | |
| 15885 | |
| 15886 | |
| 15887 | |
| 15888 | |
| 15889 | |
| 15890 | |
| 15891 | |
| 15892 | |
| 15893 | |
| 15894 | |
| 15895 | |
| 15896 | |
| 15897 | |
| 15898 | |
| 15899 | |
| 15900 | |
| 15901 | |
| 15902 | |
| 15903 | |
| 15904 | |
| 15905 | |
| 15906 | |
| 15907 | |
| 15908 | |
| 15909 | |
| 15910 | |
| 15911 | |
| 15912 | |
| 15913 | |
| 15914 | |
| 15915 | |
| 15916 | |
| 15917 | |
| 15918 | |
| 15919 | |
| 15920 | |
| 15921 | |
| 15922 | |
| 15923 | |
| 15924 | |
| 15925 | |
| 15926 | |
| 15927 | |
| 15928 | |
| 15929 | |
| 15930 | |
| 15931 | |
| 15932 | |
| 15933 | |
| 15934 | |
| 15935 | |
| 15936 | |
| 15937 | |
| 15938 | |
| 15939 | |
| 15940 | |
| 15941 | |
| 15942 | |
| 15943 | |
| 15944 | |
| 15945 | |
| 15946 | |
| 15947 | |
| 15948 | |
| 15949 | |
| 15950 | |
| 15951 | |
| 15952 | |
| 15953 | |
| 15954 | |
| 15955 | |
| 15956 | |
| 15957 | |
| 15958 | |
| 15959 | |
| 15960 | |
| 15961 | |
| 15962 | |
| 15963 | |
| 15964 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15965 | |
| 15966 | |
| 15967 | |
| 15968 | |
| 15969 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15971 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15972 | hardcode_action= |
| 15973 | if test -n "$hardcode_libdir_flag_spec" || |
| 15974 | test -n "$runpath_var" || |
| 15975 | test "X$hardcode_automatic" = "Xyes" ; then |
| 15976 | |
| 15977 | # We can hardcode non-existent directories. |
| 15978 | if test "$hardcode_direct" != no && |
| 15979 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15980 | # have to relink, otherwise we might link with an installed library |
| 15981 | # when we should be linking with a yet-to-be-installed one |
| 15982 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 15983 | test "$hardcode_minus_L" != no; then |
| 15984 | # Linking always hardcodes the temporary library directory. |
| 15985 | hardcode_action=relink |
| 15986 | else |
| 15987 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15988 | hardcode_action=immediate |
| 15989 | fi |
| 15990 | else |
| 15991 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15992 | # directories. |
| 15993 | hardcode_action=unsupported |
| 15994 | fi |
| 15995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 15996 | $as_echo "$hardcode_action" >&6; } |
| 15997 | |
| 15998 | if test "$hardcode_action" = relink || |
| 15999 | test "$inherit_rpath" = yes; then |
| 16000 | # Fast installation is not supported |
| 16001 | enable_fast_install=no |
| 16002 | elif test "$shlibpath_overrides_runpath" = yes || |
| 16003 | test "$enable_shared" = no; then |
| 16004 | # Fast installation is not necessary |
| 16005 | enable_fast_install=needless |
| 16006 | fi |
| 16007 | |
| 16008 | |
| 16009 | |
| 16010 | |
| 16011 | |
| 16012 | |
| 16013 | if test "x$enable_dlopen" != xyes; then |
| 16014 | enable_dlopen=unknown |
| 16015 | enable_dlopen_self=unknown |
| 16016 | enable_dlopen_self_static=unknown |
| 16017 | else |
| 16018 | lt_cv_dlopen=no |
| 16019 | lt_cv_dlopen_libs= |
| 16020 | |
| 16021 | case $host_os in |
| 16022 | beos*) |
| 16023 | lt_cv_dlopen="load_add_on" |
| 16024 | lt_cv_dlopen_libs= |
| 16025 | lt_cv_dlopen_self=yes |
| 16026 | ;; |
| 16027 | |
| 16028 | mingw* | pw32* | cegcc*) |
| 16029 | lt_cv_dlopen="LoadLibrary" |
| 16030 | lt_cv_dlopen_libs= |
| 16031 | ;; |
| 16032 | |
| 16033 | cygwin*) |
| 16034 | lt_cv_dlopen="dlopen" |
| 16035 | lt_cv_dlopen_libs= |
| 16036 | ;; |
| 16037 | |
| 16038 | darwin*) |
| 16039 | # if libdl is installed we need to link against it |
| 16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 16041 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16042 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16043 | $as_echo_n "(cached) " >&6 |
| 16044 | else |
| 16045 | ac_check_lib_save_LIBS=$LIBS |
| 16046 | LIBS="-ldl $LIBS" |
| 16047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16048 | /* end confdefs.h. */ |
| 16049 | |
| 16050 | /* Override any GCC internal prototype to avoid an error. |
| 16051 | Use char because int might match the return type of a GCC |
| 16052 | builtin and then its argument prototype would still apply. */ |
| 16053 | #ifdef __cplusplus |
| 16054 | extern "C" |
| 16055 | #endif |
| 16056 | char dlopen (); |
| 16057 | int |
| 16058 | main () |
| 16059 | { |
| 16060 | return dlopen (); |
| 16061 | ; |
| 16062 | return 0; |
| 16063 | } |
| 16064 | _ACEOF |
| 16065 | if ac_fn_c_try_link "$LINENO"; then : |
| 16066 | ac_cv_lib_dl_dlopen=yes |
| 16067 | else |
| 16068 | ac_cv_lib_dl_dlopen=no |
| 16069 | fi |
| 16070 | rm -f core conftest.err conftest.$ac_objext \ |
| 16071 | conftest$ac_exeext conftest.$ac_ext |
| 16072 | LIBS=$ac_check_lib_save_LIBS |
| 16073 | fi |
| 16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16075 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16076 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16077 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16078 | else |
| 16079 | |
| 16080 | lt_cv_dlopen="dyld" |
| 16081 | lt_cv_dlopen_libs= |
| 16082 | lt_cv_dlopen_self=yes |
| 16083 | |
| 16084 | fi |
| 16085 | |
| 16086 | ;; |
| 16087 | |
| 16088 | *) |
| 16089 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16090 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16091 | lt_cv_dlopen="shl_load" |
| 16092 | else |
| 16093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 16094 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16095 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16096 | $as_echo_n "(cached) " >&6 |
| 16097 | else |
| 16098 | ac_check_lib_save_LIBS=$LIBS |
| 16099 | LIBS="-ldld $LIBS" |
| 16100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16101 | /* end confdefs.h. */ |
| 16102 | |
| 16103 | /* Override any GCC internal prototype to avoid an error. |
| 16104 | Use char because int might match the return type of a GCC |
| 16105 | builtin and then its argument prototype would still apply. */ |
| 16106 | #ifdef __cplusplus |
| 16107 | extern "C" |
| 16108 | #endif |
| 16109 | char shl_load (); |
| 16110 | int |
| 16111 | main () |
| 16112 | { |
| 16113 | return shl_load (); |
| 16114 | ; |
| 16115 | return 0; |
| 16116 | } |
| 16117 | _ACEOF |
| 16118 | if ac_fn_c_try_link "$LINENO"; then : |
| 16119 | ac_cv_lib_dld_shl_load=yes |
| 16120 | else |
| 16121 | ac_cv_lib_dld_shl_load=no |
| 16122 | fi |
| 16123 | rm -f core conftest.err conftest.$ac_objext \ |
| 16124 | conftest$ac_exeext conftest.$ac_ext |
| 16125 | LIBS=$ac_check_lib_save_LIBS |
| 16126 | fi |
| 16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 16128 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16129 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16130 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 16131 | else |
| 16132 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16133 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16134 | lt_cv_dlopen="dlopen" |
| 16135 | else |
| 16136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 16137 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16138 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16139 | $as_echo_n "(cached) " >&6 |
| 16140 | else |
| 16141 | ac_check_lib_save_LIBS=$LIBS |
| 16142 | LIBS="-ldl $LIBS" |
| 16143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16144 | /* end confdefs.h. */ |
| 16145 | |
| 16146 | /* Override any GCC internal prototype to avoid an error. |
| 16147 | Use char because int might match the return type of a GCC |
| 16148 | builtin and then its argument prototype would still apply. */ |
| 16149 | #ifdef __cplusplus |
| 16150 | extern "C" |
| 16151 | #endif |
| 16152 | char dlopen (); |
| 16153 | int |
| 16154 | main () |
| 16155 | { |
| 16156 | return dlopen (); |
| 16157 | ; |
| 16158 | return 0; |
| 16159 | } |
| 16160 | _ACEOF |
| 16161 | if ac_fn_c_try_link "$LINENO"; then : |
| 16162 | ac_cv_lib_dl_dlopen=yes |
| 16163 | else |
| 16164 | ac_cv_lib_dl_dlopen=no |
| 16165 | fi |
| 16166 | rm -f core conftest.err conftest.$ac_objext \ |
| 16167 | conftest$ac_exeext conftest.$ac_ext |
| 16168 | LIBS=$ac_check_lib_save_LIBS |
| 16169 | fi |
| 16170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 16171 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16172 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16173 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 16174 | else |
| 16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 16176 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16177 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16178 | $as_echo_n "(cached) " >&6 |
| 16179 | else |
| 16180 | ac_check_lib_save_LIBS=$LIBS |
| 16181 | LIBS="-lsvld $LIBS" |
| 16182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16183 | /* end confdefs.h. */ |
| 16184 | |
| 16185 | /* Override any GCC internal prototype to avoid an error. |
| 16186 | Use char because int might match the return type of a GCC |
| 16187 | builtin and then its argument prototype would still apply. */ |
| 16188 | #ifdef __cplusplus |
| 16189 | extern "C" |
| 16190 | #endif |
| 16191 | char dlopen (); |
| 16192 | int |
| 16193 | main () |
| 16194 | { |
| 16195 | return dlopen (); |
| 16196 | ; |
| 16197 | return 0; |
| 16198 | } |
| 16199 | _ACEOF |
| 16200 | if ac_fn_c_try_link "$LINENO"; then : |
| 16201 | ac_cv_lib_svld_dlopen=yes |
| 16202 | else |
| 16203 | ac_cv_lib_svld_dlopen=no |
| 16204 | fi |
| 16205 | rm -f core conftest.err conftest.$ac_objext \ |
| 16206 | conftest$ac_exeext conftest.$ac_ext |
| 16207 | LIBS=$ac_check_lib_save_LIBS |
| 16208 | fi |
| 16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 16210 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16211 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16212 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 16213 | else |
| 16214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 16215 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16216 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16217 | $as_echo_n "(cached) " >&6 |
| 16218 | else |
| 16219 | ac_check_lib_save_LIBS=$LIBS |
| 16220 | LIBS="-ldld $LIBS" |
| 16221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16222 | /* end confdefs.h. */ |
| 16223 | |
| 16224 | /* Override any GCC internal prototype to avoid an error. |
| 16225 | Use char because int might match the return type of a GCC |
| 16226 | builtin and then its argument prototype would still apply. */ |
| 16227 | #ifdef __cplusplus |
| 16228 | extern "C" |
| 16229 | #endif |
| 16230 | char dld_link (); |
| 16231 | int |
| 16232 | main () |
| 16233 | { |
| 16234 | return dld_link (); |
| 16235 | ; |
| 16236 | return 0; |
| 16237 | } |
| 16238 | _ACEOF |
| 16239 | if ac_fn_c_try_link "$LINENO"; then : |
| 16240 | ac_cv_lib_dld_dld_link=yes |
| 16241 | else |
| 16242 | ac_cv_lib_dld_dld_link=no |
| 16243 | fi |
| 16244 | rm -f core conftest.err conftest.$ac_objext \ |
| 16245 | conftest$ac_exeext conftest.$ac_ext |
| 16246 | LIBS=$ac_check_lib_save_LIBS |
| 16247 | fi |
| 16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 16249 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16250 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16251 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 16252 | fi |
| 16253 | |
| 16254 | |
| 16255 | fi |
| 16256 | |
| 16257 | |
| 16258 | fi |
| 16259 | |
| 16260 | |
| 16261 | fi |
| 16262 | |
| 16263 | |
| 16264 | fi |
| 16265 | |
| 16266 | |
| 16267 | fi |
| 16268 | |
| 16269 | ;; |
| 16270 | esac |
| 16271 | |
| 16272 | if test "x$lt_cv_dlopen" != xno; then |
| 16273 | enable_dlopen=yes |
| 16274 | else |
| 16275 | enable_dlopen=no |
| 16276 | fi |
| 16277 | |
| 16278 | case $lt_cv_dlopen in |
| 16279 | dlopen) |
| 16280 | save_CPPFLAGS="$CPPFLAGS" |
| 16281 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 16282 | |
| 16283 | save_LDFLAGS="$LDFLAGS" |
| 16284 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 16285 | |
| 16286 | save_LIBS="$LIBS" |
| 16287 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 16288 | |
| 16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 16290 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16291 | if ${lt_cv_dlopen_self+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16292 | $as_echo_n "(cached) " >&6 |
| 16293 | else |
| 16294 | if test "$cross_compiling" = yes; then : |
| 16295 | lt_cv_dlopen_self=cross |
| 16296 | else |
| 16297 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16298 | lt_status=$lt_dlunknown |
| 16299 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16300 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16301 | #include "confdefs.h" |
| 16302 | |
| 16303 | #if HAVE_DLFCN_H |
| 16304 | #include <dlfcn.h> |
| 16305 | #endif |
| 16306 | |
| 16307 | #include <stdio.h> |
| 16308 | |
| 16309 | #ifdef RTLD_GLOBAL |
| 16310 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16311 | #else |
| 16312 | # ifdef DL_GLOBAL |
| 16313 | # define LT_DLGLOBAL DL_GLOBAL |
| 16314 | # else |
| 16315 | # define LT_DLGLOBAL 0 |
| 16316 | # endif |
| 16317 | #endif |
| 16318 | |
| 16319 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16320 | find out it does not work in some platform. */ |
| 16321 | #ifndef LT_DLLAZY_OR_NOW |
| 16322 | # ifdef RTLD_LAZY |
| 16323 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16324 | # else |
| 16325 | # ifdef DL_LAZY |
| 16326 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16327 | # else |
| 16328 | # ifdef RTLD_NOW |
| 16329 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16330 | # else |
| 16331 | # ifdef DL_NOW |
| 16332 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16333 | # else |
| 16334 | # define LT_DLLAZY_OR_NOW 0 |
| 16335 | # endif |
| 16336 | # endif |
| 16337 | # endif |
| 16338 | # endif |
| 16339 | #endif |
| 16340 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16341 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 16342 | correspondingly for the symbols needed. */ |
| 16343 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16344 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16345 | #endif |
| 16346 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16347 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16348 | int main () |
| 16349 | { |
| 16350 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16351 | int status = $lt_dlunknown; |
| 16352 | |
| 16353 | if (self) |
| 16354 | { |
| 16355 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16356 | else |
| 16357 | { |
| 16358 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16359 | else puts (dlerror ()); |
| 16360 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16361 | /* dlclose (self); */ |
| 16362 | } |
| 16363 | else |
| 16364 | puts (dlerror ()); |
| 16365 | |
| 16366 | return status; |
| 16367 | } |
| 16368 | _LT_EOF |
| 16369 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 16370 | (eval $ac_link) 2>&5 |
| 16371 | ac_status=$? |
| 16372 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16373 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16374 | (./conftest; exit; ) >&5 2>/dev/null |
| 16375 | lt_status=$? |
| 16376 | case x$lt_status in |
| 16377 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 16378 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 16379 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 16380 | esac |
| 16381 | else : |
| 16382 | # compilation failed |
| 16383 | lt_cv_dlopen_self=no |
| 16384 | fi |
| 16385 | fi |
| 16386 | rm -fr conftest* |
| 16387 | |
| 16388 | |
| 16389 | fi |
| 16390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 16391 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 16392 | |
| 16393 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 16394 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 16396 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16397 | if ${lt_cv_dlopen_self_static+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16398 | $as_echo_n "(cached) " >&6 |
| 16399 | else |
| 16400 | if test "$cross_compiling" = yes; then : |
| 16401 | lt_cv_dlopen_self_static=cross |
| 16402 | else |
| 16403 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 16404 | lt_status=$lt_dlunknown |
| 16405 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16406 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16407 | #include "confdefs.h" |
| 16408 | |
| 16409 | #if HAVE_DLFCN_H |
| 16410 | #include <dlfcn.h> |
| 16411 | #endif |
| 16412 | |
| 16413 | #include <stdio.h> |
| 16414 | |
| 16415 | #ifdef RTLD_GLOBAL |
| 16416 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 16417 | #else |
| 16418 | # ifdef DL_GLOBAL |
| 16419 | # define LT_DLGLOBAL DL_GLOBAL |
| 16420 | # else |
| 16421 | # define LT_DLGLOBAL 0 |
| 16422 | # endif |
| 16423 | #endif |
| 16424 | |
| 16425 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 16426 | find out it does not work in some platform. */ |
| 16427 | #ifndef LT_DLLAZY_OR_NOW |
| 16428 | # ifdef RTLD_LAZY |
| 16429 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 16430 | # else |
| 16431 | # ifdef DL_LAZY |
| 16432 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 16433 | # else |
| 16434 | # ifdef RTLD_NOW |
| 16435 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 16436 | # else |
| 16437 | # ifdef DL_NOW |
| 16438 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 16439 | # else |
| 16440 | # define LT_DLLAZY_OR_NOW 0 |
| 16441 | # endif |
| 16442 | # endif |
| 16443 | # endif |
| 16444 | # endif |
| 16445 | #endif |
| 16446 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16447 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 16448 | correspondingly for the symbols needed. */ |
| 16449 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16450 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16451 | #endif |
| 16452 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16453 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16454 | int main () |
| 16455 | { |
| 16456 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 16457 | int status = $lt_dlunknown; |
| 16458 | |
| 16459 | if (self) |
| 16460 | { |
| 16461 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16462 | else |
| 16463 | { |
| 16464 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 16465 | else puts (dlerror ()); |
| 16466 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16467 | /* dlclose (self); */ |
| 16468 | } |
| 16469 | else |
| 16470 | puts (dlerror ()); |
| 16471 | |
| 16472 | return status; |
| 16473 | } |
| 16474 | _LT_EOF |
| 16475 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 16476 | (eval $ac_link) 2>&5 |
| 16477 | ac_status=$? |
| 16478 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16479 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 16480 | (./conftest; exit; ) >&5 2>/dev/null |
| 16481 | lt_status=$? |
| 16482 | case x$lt_status in |
| 16483 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16484 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 16485 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 16486 | esac |
| 16487 | else : |
| 16488 | # compilation failed |
| 16489 | lt_cv_dlopen_self_static=no |
| 16490 | fi |
| 16491 | fi |
| 16492 | rm -fr conftest* |
| 16493 | |
| 16494 | |
| 16495 | fi |
| 16496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 16497 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 16498 | fi |
| 16499 | |
| 16500 | CPPFLAGS="$save_CPPFLAGS" |
| 16501 | LDFLAGS="$save_LDFLAGS" |
| 16502 | LIBS="$save_LIBS" |
| 16503 | ;; |
| 16504 | esac |
| 16505 | |
| 16506 | case $lt_cv_dlopen_self in |
| 16507 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 16508 | *) enable_dlopen_self=unknown ;; |
| 16509 | esac |
| 16510 | |
| 16511 | case $lt_cv_dlopen_self_static in |
| 16512 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 16513 | *) enable_dlopen_self_static=unknown ;; |
| 16514 | esac |
| 16515 | fi |
| 16516 | |
| 16517 | |
| 16518 | |
| 16519 | |
| 16520 | |
| 16521 | |
| 16522 | |
| 16523 | |
| 16524 | |
| 16525 | |
| 16526 | |
| 16527 | |
| 16528 | |
| 16529 | |
| 16530 | |
| 16531 | |
| 16532 | |
| 16533 | striplib= |
| 16534 | old_striplib= |
| 16535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 16536 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 16537 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 16538 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 16539 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16541 | $as_echo "yes" >&6; } |
| 16542 | else |
| 16543 | # FIXME - insert some real tests, host_os isn't really good enough |
| 16544 | case $host_os in |
| 16545 | darwin*) |
| 16546 | if test -n "$STRIP" ; then |
| 16547 | striplib="$STRIP -x" |
| 16548 | old_striplib="$STRIP -S" |
| 16549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16550 | $as_echo "yes" >&6; } |
| 16551 | else |
| 16552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16553 | $as_echo "no" >&6; } |
| 16554 | fi |
| 16555 | ;; |
| 16556 | *) |
| 16557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16558 | $as_echo "no" >&6; } |
| 16559 | ;; |
| 16560 | esac |
| 16561 | fi |
| 16562 | |
| 16563 | |
| 16564 | |
| 16565 | |
| 16566 | |
| 16567 | |
| 16568 | |
| 16569 | |
| 16570 | |
| 16571 | |
| 16572 | |
| 16573 | |
| 16574 | # Report which library types will actually be built |
| 16575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 16576 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 16577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 16578 | $as_echo "$can_build_shared" >&6; } |
| 16579 | |
| 16580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 16581 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 16582 | test "$can_build_shared" = "no" && enable_shared=no |
| 16583 | |
| 16584 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 16585 | # are all built from PIC. |
| 16586 | case $host_os in |
| 16587 | aix3*) |
| 16588 | test "$enable_shared" = yes && enable_static=no |
| 16589 | if test -n "$RANLIB"; then |
| 16590 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 16591 | postinstall_cmds='$RANLIB $lib' |
| 16592 | fi |
| 16593 | ;; |
| 16594 | |
| 16595 | aix[4-9]*) |
| 16596 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 16597 | test "$enable_shared" = yes && enable_static=no |
| 16598 | fi |
| 16599 | ;; |
| 16600 | esac |
| 16601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 16602 | $as_echo "$enable_shared" >&6; } |
| 16603 | |
| 16604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 16605 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 16606 | # Make sure either enable_shared or enable_static is yes. |
| 16607 | test "$enable_shared" = yes || enable_static=yes |
| 16608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 16609 | $as_echo "$enable_static" >&6; } |
| 16610 | |
| 16611 | |
| 16612 | |
| 16613 | |
| 16614 | fi |
| 16615 | ac_ext=c |
| 16616 | ac_cpp='$CPP $CPPFLAGS' |
| 16617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16620 | |
| 16621 | CC="$lt_save_CC" |
| 16622 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16623 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 16624 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 16625 | (test "X$CXX" != "Xg++"))) ; then |
| 16626 | ac_ext=cpp |
| 16627 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 16632 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 16633 | if test -z "$CXXCPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16634 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16635 | $as_echo_n "(cached) " >&6 |
| 16636 | else |
| 16637 | # Double quotes because CXXCPP needs to be expanded |
| 16638 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 16639 | do |
| 16640 | ac_preproc_ok=false |
| 16641 | for ac_cxx_preproc_warn_flag in '' yes |
| 16642 | do |
| 16643 | # Use a header file that comes with gcc, so configuring glibc |
| 16644 | # with a fresh cross-compiler works. |
| 16645 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16646 | # <limits.h> exists even on freestanding compilers. |
| 16647 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 16648 | # not just through cpp. "Syntax error" is here to catch this case. |
| 16649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16650 | /* end confdefs.h. */ |
| 16651 | #ifdef __STDC__ |
| 16652 | # include <limits.h> |
| 16653 | #else |
| 16654 | # include <assert.h> |
| 16655 | #endif |
| 16656 | Syntax error |
| 16657 | _ACEOF |
| 16658 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16659 | |
| 16660 | else |
| 16661 | # Broken: fails on valid input. |
| 16662 | continue |
| 16663 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16664 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16665 | |
| 16666 | # OK, works on sane cases. Now check whether nonexistent headers |
| 16667 | # can be detected and how. |
| 16668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16669 | /* end confdefs.h. */ |
| 16670 | #include <ac_nonexistent.h> |
| 16671 | _ACEOF |
| 16672 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16673 | # Broken: success on invalid input. |
| 16674 | continue |
| 16675 | else |
| 16676 | # Passes both tests. |
| 16677 | ac_preproc_ok=: |
| 16678 | break |
| 16679 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16680 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16681 | |
| 16682 | done |
| 16683 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16684 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16685 | if $ac_preproc_ok; then : |
| 16686 | break |
| 16687 | fi |
| 16688 | |
| 16689 | done |
| 16690 | ac_cv_prog_CXXCPP=$CXXCPP |
| 16691 | |
| 16692 | fi |
| 16693 | CXXCPP=$ac_cv_prog_CXXCPP |
| 16694 | else |
| 16695 | ac_cv_prog_CXXCPP=$CXXCPP |
| 16696 | fi |
| 16697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 16698 | $as_echo "$CXXCPP" >&6; } |
| 16699 | ac_preproc_ok=false |
| 16700 | for ac_cxx_preproc_warn_flag in '' yes |
| 16701 | do |
| 16702 | # Use a header file that comes with gcc, so configuring glibc |
| 16703 | # with a fresh cross-compiler works. |
| 16704 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 16705 | # <limits.h> exists even on freestanding compilers. |
| 16706 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 16707 | # not just through cpp. "Syntax error" is here to catch this case. |
| 16708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16709 | /* end confdefs.h. */ |
| 16710 | #ifdef __STDC__ |
| 16711 | # include <limits.h> |
| 16712 | #else |
| 16713 | # include <assert.h> |
| 16714 | #endif |
| 16715 | Syntax error |
| 16716 | _ACEOF |
| 16717 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16718 | |
| 16719 | else |
| 16720 | # Broken: fails on valid input. |
| 16721 | continue |
| 16722 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16723 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16724 | |
| 16725 | # OK, works on sane cases. Now check whether nonexistent headers |
| 16726 | # can be detected and how. |
| 16727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16728 | /* end confdefs.h. */ |
| 16729 | #include <ac_nonexistent.h> |
| 16730 | _ACEOF |
| 16731 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 16732 | # Broken: success on invalid input. |
| 16733 | continue |
| 16734 | else |
| 16735 | # Passes both tests. |
| 16736 | ac_preproc_ok=: |
| 16737 | break |
| 16738 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16739 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16740 | |
| 16741 | done |
| 16742 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16743 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16744 | if $ac_preproc_ok; then : |
| 16745 | |
| 16746 | else |
| 16747 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16748 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16749 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 16750 | See \`config.log' for more details" "$LINENO" 5; } |
| 16751 | fi |
| 16752 | |
| 16753 | ac_ext=c |
| 16754 | ac_cpp='$CPP $CPPFLAGS' |
| 16755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16758 | |
| 16759 | else |
| 16760 | _lt_caught_CXX_error=yes |
| 16761 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16762 | |
| 16763 | ac_ext=cpp |
| 16764 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16765 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16766 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16767 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16768 | |
| 16769 | archive_cmds_need_lc_CXX=no |
| 16770 | allow_undefined_flag_CXX= |
| 16771 | always_export_symbols_CXX=no |
| 16772 | archive_expsym_cmds_CXX= |
| 16773 | compiler_needs_object_CXX=no |
| 16774 | export_dynamic_flag_spec_CXX= |
| 16775 | hardcode_direct_CXX=no |
| 16776 | hardcode_direct_absolute_CXX=no |
| 16777 | hardcode_libdir_flag_spec_CXX= |
| 16778 | hardcode_libdir_flag_spec_ld_CXX= |
| 16779 | hardcode_libdir_separator_CXX= |
| 16780 | hardcode_minus_L_CXX=no |
| 16781 | hardcode_shlibpath_var_CXX=unsupported |
| 16782 | hardcode_automatic_CXX=no |
| 16783 | inherit_rpath_CXX=no |
| 16784 | module_cmds_CXX= |
| 16785 | module_expsym_cmds_CXX= |
| 16786 | link_all_deplibs_CXX=unknown |
| 16787 | old_archive_cmds_CXX=$old_archive_cmds |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16788 | reload_flag_CXX=$reload_flag |
| 16789 | reload_cmds_CXX=$reload_cmds |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16790 | no_undefined_flag_CXX= |
| 16791 | whole_archive_flag_spec_CXX= |
| 16792 | enable_shared_with_static_runtimes_CXX=no |
| 16793 | |
| 16794 | # Source file extension for C++ test sources. |
| 16795 | ac_ext=cpp |
| 16796 | |
| 16797 | # Object file extension for compiled C++ test sources. |
| 16798 | objext=o |
| 16799 | objext_CXX=$objext |
| 16800 | |
| 16801 | # No sense in running all these tests if we already determined that |
| 16802 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 16803 | # are currently assumed to apply to all compilers on this platform, |
| 16804 | # and will be corrupted by setting them based on a non-working compiler. |
| 16805 | if test "$_lt_caught_CXX_error" != yes; then |
| 16806 | # Code to be used in simple compile tests |
| 16807 | lt_simple_compile_test_code="int some_variable = 0;" |
| 16808 | |
| 16809 | # Code to be used in simple link tests |
| 16810 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 16811 | |
| 16812 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 16813 | |
| 16814 | |
| 16815 | |
| 16816 | |
| 16817 | |
| 16818 | |
| 16819 | # If no C compiler was specified, use CC. |
| 16820 | LTCC=${LTCC-"$CC"} |
| 16821 | |
| 16822 | # If no C compiler flags were specified, use CFLAGS. |
| 16823 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 16824 | |
| 16825 | # Allow CC to be a program name with arguments. |
| 16826 | compiler=$CC |
| 16827 | |
| 16828 | |
| 16829 | # save warnings/boilerplate of simple test code |
| 16830 | ac_outfile=conftest.$ac_objext |
| 16831 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 16832 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16833 | _lt_compiler_boilerplate=`cat conftest.err` |
| 16834 | $RM conftest* |
| 16835 | |
| 16836 | ac_outfile=conftest.$ac_objext |
| 16837 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 16838 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 16839 | _lt_linker_boilerplate=`cat conftest.err` |
| 16840 | $RM -r conftest* |
| 16841 | |
| 16842 | |
| 16843 | # Allow CC to be a program name with arguments. |
| 16844 | lt_save_CC=$CC |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16845 | lt_save_CFLAGS=$CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16846 | lt_save_LD=$LD |
| 16847 | lt_save_GCC=$GCC |
| 16848 | GCC=$GXX |
| 16849 | lt_save_with_gnu_ld=$with_gnu_ld |
| 16850 | lt_save_path_LD=$lt_cv_path_LD |
| 16851 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 16852 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 16853 | else |
| 16854 | $as_unset lt_cv_prog_gnu_ld |
| 16855 | fi |
| 16856 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 16857 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 16858 | else |
| 16859 | $as_unset lt_cv_path_LD |
| 16860 | fi |
| 16861 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 16862 | CC=${CXX-"c++"} |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16863 | CFLAGS=$CXXFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16864 | compiler=$CC |
| 16865 | compiler_CXX=$CC |
| 16866 | for cc_temp in $compiler""; do |
| 16867 | case $cc_temp in |
| 16868 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 16869 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 16870 | \-*) ;; |
| 16871 | *) break;; |
| 16872 | esac |
| 16873 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16874 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16875 | |
| 16876 | |
| 16877 | if test -n "$compiler"; then |
| 16878 | # We don't want -fno-exception when compiling C++ code, so set the |
| 16879 | # no_builtin_flag separately |
| 16880 | if test "$GXX" = yes; then |
| 16881 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 16882 | else |
| 16883 | lt_prog_compiler_no_builtin_flag_CXX= |
| 16884 | fi |
| 16885 | |
| 16886 | if test "$GXX" = yes; then |
| 16887 | # Set up default GNU C++ configuration |
| 16888 | |
| 16889 | |
| 16890 | |
| 16891 | # Check whether --with-gnu-ld was given. |
| 16892 | if test "${with_gnu_ld+set}" = set; then : |
| 16893 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 16894 | else |
| 16895 | with_gnu_ld=no |
| 16896 | fi |
| 16897 | |
| 16898 | ac_prog=ld |
| 16899 | if test "$GCC" = yes; then |
| 16900 | # Check if gcc -print-prog-name=ld gives a path. |
| 16901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 16902 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 16903 | case $host in |
| 16904 | *-*-mingw*) |
| 16905 | # gcc leaves a trailing carriage return which upsets mingw |
| 16906 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 16907 | *) |
| 16908 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 16909 | esac |
| 16910 | case $ac_prog in |
| 16911 | # Accept absolute paths. |
| 16912 | [\\/]* | ?:[\\/]*) |
| 16913 | re_direlt='/[^/][^/]*/\.\./' |
| 16914 | # Canonicalize the pathname of ld |
| 16915 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 16916 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 16917 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 16918 | done |
| 16919 | test -z "$LD" && LD="$ac_prog" |
| 16920 | ;; |
| 16921 | "") |
| 16922 | # If it fails, then pretend we aren't using GCC. |
| 16923 | ac_prog=ld |
| 16924 | ;; |
| 16925 | *) |
| 16926 | # If it is relative, then search for the first ld in PATH. |
| 16927 | with_gnu_ld=unknown |
| 16928 | ;; |
| 16929 | esac |
| 16930 | elif test "$with_gnu_ld" = yes; then |
| 16931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 16932 | $as_echo_n "checking for GNU ld... " >&6; } |
| 16933 | else |
| 16934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 16935 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 16936 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16937 | if ${lt_cv_path_LD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16938 | $as_echo_n "(cached) " >&6 |
| 16939 | else |
| 16940 | if test -z "$LD"; then |
| 16941 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 16942 | for ac_dir in $PATH; do |
| 16943 | IFS="$lt_save_ifs" |
| 16944 | test -z "$ac_dir" && ac_dir=. |
| 16945 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 16946 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 16947 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 16948 | # but apparently some variants of GNU ld only accept -v. |
| 16949 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 16950 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 16951 | *GNU* | *'with BFD'*) |
| 16952 | test "$with_gnu_ld" != no && break |
| 16953 | ;; |
| 16954 | *) |
| 16955 | test "$with_gnu_ld" != yes && break |
| 16956 | ;; |
| 16957 | esac |
| 16958 | fi |
| 16959 | done |
| 16960 | IFS="$lt_save_ifs" |
| 16961 | else |
| 16962 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 16963 | fi |
| 16964 | fi |
| 16965 | |
| 16966 | LD="$lt_cv_path_LD" |
| 16967 | if test -n "$LD"; then |
| 16968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 16969 | $as_echo "$LD" >&6; } |
| 16970 | else |
| 16971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16972 | $as_echo "no" >&6; } |
| 16973 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 16974 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 16976 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16977 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16978 | $as_echo_n "(cached) " >&6 |
| 16979 | else |
| 16980 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 16981 | case `$LD -v 2>&1 </dev/null` in |
| 16982 | *GNU* | *'with BFD'*) |
| 16983 | lt_cv_prog_gnu_ld=yes |
| 16984 | ;; |
| 16985 | *) |
| 16986 | lt_cv_prog_gnu_ld=no |
| 16987 | ;; |
| 16988 | esac |
| 16989 | fi |
| 16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 16991 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 16992 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 16993 | |
| 16994 | |
| 16995 | |
| 16996 | |
| 16997 | |
| 16998 | |
| 16999 | |
| 17000 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 17001 | # archiving commands below assume that GNU ld is being used. |
| 17002 | if test "$with_gnu_ld" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17003 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17004 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17005 | |
| 17006 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17007 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17008 | |
| 17009 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 17010 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 17011 | # investigate it a little bit more. (MM) |
| 17012 | wlarc='${wl}' |
| 17013 | |
| 17014 | # ancient GNU ld didn't support --whole-archive et. al. |
| 17015 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 17016 | $GREP 'no-whole-archive' > /dev/null; then |
| 17017 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17018 | else |
| 17019 | whole_archive_flag_spec_CXX= |
| 17020 | fi |
| 17021 | else |
| 17022 | with_gnu_ld=no |
| 17023 | wlarc= |
| 17024 | |
| 17025 | # A generic and very simple default shared library creation |
| 17026 | # command for GNU C++ for the case where it uses the native |
| 17027 | # linker, instead of GNU ld. If possible, this setting should |
| 17028 | # overridden to take advantage of the native linker features on |
| 17029 | # the platform it is being used on. |
| 17030 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17031 | fi |
| 17032 | |
| 17033 | # Commands to make compiler produce verbose output that lists |
| 17034 | # what "hidden" libraries, object files and flags are used when |
| 17035 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17036 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17037 | |
| 17038 | else |
| 17039 | GXX=no |
| 17040 | with_gnu_ld=no |
| 17041 | wlarc= |
| 17042 | fi |
| 17043 | |
| 17044 | # PORTME: fill in a description of your system's C++ link characteristics |
| 17045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 17046 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 17047 | ld_shlibs_CXX=yes |
| 17048 | case $host_os in |
| 17049 | aix3*) |
| 17050 | # FIXME: insert proper C++ library support |
| 17051 | ld_shlibs_CXX=no |
| 17052 | ;; |
| 17053 | aix[4-9]*) |
| 17054 | if test "$host_cpu" = ia64; then |
| 17055 | # On IA64, the linker does run time linking by default, so we don't |
| 17056 | # have to do anything special. |
| 17057 | aix_use_runtimelinking=no |
| 17058 | exp_sym_flag='-Bexport' |
| 17059 | no_entry_flag="" |
| 17060 | else |
| 17061 | aix_use_runtimelinking=no |
| 17062 | |
| 17063 | # Test if we are trying to use run time linking or normal |
| 17064 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 17065 | # need to do runtime linking. |
| 17066 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 17067 | for ld_flag in $LDFLAGS; do |
| 17068 | case $ld_flag in |
| 17069 | *-brtl*) |
| 17070 | aix_use_runtimelinking=yes |
| 17071 | break |
| 17072 | ;; |
| 17073 | esac |
| 17074 | done |
| 17075 | ;; |
| 17076 | esac |
| 17077 | |
| 17078 | exp_sym_flag='-bexport' |
| 17079 | no_entry_flag='-bnoentry' |
| 17080 | fi |
| 17081 | |
| 17082 | # When large executables or shared objects are built, AIX ld can |
| 17083 | # have problems creating the table of contents. If linking a library |
| 17084 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 17085 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 17086 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 17087 | |
| 17088 | archive_cmds_CXX='' |
| 17089 | hardcode_direct_CXX=yes |
| 17090 | hardcode_direct_absolute_CXX=yes |
| 17091 | hardcode_libdir_separator_CXX=':' |
| 17092 | link_all_deplibs_CXX=yes |
| 17093 | file_list_spec_CXX='${wl}-f,' |
| 17094 | |
| 17095 | if test "$GXX" = yes; then |
| 17096 | case $host_os in aix4.[012]|aix4.[012].*) |
| 17097 | # We only want to do this on AIX 4.2 and lower, the check |
| 17098 | # below for broken collect2 doesn't work under 4.3+ |
| 17099 | collect2name=`${CC} -print-prog-name=collect2` |
| 17100 | if test -f "$collect2name" && |
| 17101 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 17102 | then |
| 17103 | # We have reworked collect2 |
| 17104 | : |
| 17105 | else |
| 17106 | # We have old collect2 |
| 17107 | hardcode_direct_CXX=unsupported |
| 17108 | # It fails to find uninstalled libraries when the uninstalled |
| 17109 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 17110 | # to unsupported forces relinking |
| 17111 | hardcode_minus_L_CXX=yes |
| 17112 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17113 | hardcode_libdir_separator_CXX= |
| 17114 | fi |
| 17115 | esac |
| 17116 | shared_flag='-shared' |
| 17117 | if test "$aix_use_runtimelinking" = yes; then |
| 17118 | shared_flag="$shared_flag "'${wl}-G' |
| 17119 | fi |
| 17120 | else |
| 17121 | # not using gcc |
| 17122 | if test "$host_cpu" = ia64; then |
| 17123 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 17124 | # chokes on -Wl,-G. The following line is correct: |
| 17125 | shared_flag='-G' |
| 17126 | else |
| 17127 | if test "$aix_use_runtimelinking" = yes; then |
| 17128 | shared_flag='${wl}-G' |
| 17129 | else |
| 17130 | shared_flag='${wl}-bM:SRE' |
| 17131 | fi |
| 17132 | fi |
| 17133 | fi |
| 17134 | |
| 17135 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 17136 | # It seems that -bexpall does not export symbols beginning with |
| 17137 | # underscore (_), so it is better to generate a list of symbols to |
| 17138 | # export. |
| 17139 | always_export_symbols_CXX=yes |
| 17140 | if test "$aix_use_runtimelinking" = yes; then |
| 17141 | # Warning - without using the other runtime loading flags (-brtl), |
| 17142 | # -berok will link without error, but may produce a broken library. |
| 17143 | allow_undefined_flag_CXX='-berok' |
| 17144 | # Determine the default libpath from the value encoded in an empty |
| 17145 | # executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17146 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 17147 | aix_libpath=$lt_cv_aix_libpath |
| 17148 | else |
| 17149 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 17150 | $as_echo_n "(cached) " >&6 |
| 17151 | else |
| 17152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17153 | /* end confdefs.h. */ |
| 17154 | |
| 17155 | int |
| 17156 | main () |
| 17157 | { |
| 17158 | |
| 17159 | ; |
| 17160 | return 0; |
| 17161 | } |
| 17162 | _ACEOF |
| 17163 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17164 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17165 | lt_aix_libpath_sed=' |
| 17166 | /Import File Strings/,/^$/ { |
| 17167 | /^0/ { |
| 17168 | s/^0 *\([^ ]*\) *$/\1/ |
| 17169 | p |
| 17170 | } |
| 17171 | }' |
| 17172 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17173 | # Check for a 64-bit object if we didn't find anything. |
| 17174 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17175 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17176 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17177 | fi |
| 17178 | rm -f core conftest.err conftest.$ac_objext \ |
| 17179 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17180 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17181 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 17182 | fi |
| 17183 | |
| 17184 | fi |
| 17185 | |
| 17186 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17187 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17188 | |
| 17189 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17190 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17191 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17192 | else |
| 17193 | if test "$host_cpu" = ia64; then |
| 17194 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 17195 | allow_undefined_flag_CXX="-z nodefs" |
| 17196 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 17197 | else |
| 17198 | # Determine the default libpath from the value encoded in an |
| 17199 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17200 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 17201 | aix_libpath=$lt_cv_aix_libpath |
| 17202 | else |
| 17203 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 17204 | $as_echo_n "(cached) " >&6 |
| 17205 | else |
| 17206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17207 | /* end confdefs.h. */ |
| 17208 | |
| 17209 | int |
| 17210 | main () |
| 17211 | { |
| 17212 | |
| 17213 | ; |
| 17214 | return 0; |
| 17215 | } |
| 17216 | _ACEOF |
| 17217 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17218 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17219 | lt_aix_libpath_sed=' |
| 17220 | /Import File Strings/,/^$/ { |
| 17221 | /^0/ { |
| 17222 | s/^0 *\([^ ]*\) *$/\1/ |
| 17223 | p |
| 17224 | } |
| 17225 | }' |
| 17226 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17227 | # Check for a 64-bit object if we didn't find anything. |
| 17228 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17229 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 17230 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17231 | fi |
| 17232 | rm -f core conftest.err conftest.$ac_objext \ |
| 17233 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17234 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 17235 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 17236 | fi |
| 17237 | |
| 17238 | fi |
| 17239 | |
| 17240 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 17241 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17242 | |
| 17243 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 17244 | # Warning - without using the other run time loading flags, |
| 17245 | # -berok will link without error, but may produce a broken library. |
| 17246 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 17247 | allow_undefined_flag_CXX=' ${wl}-berok' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17248 | if test "$with_gnu_ld" = yes; then |
| 17249 | # We only use this code for GNU lds that support --whole-archive. |
| 17250 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 17251 | else |
| 17252 | # Exported symbols can be pulled into shared objects from archives |
| 17253 | whole_archive_flag_spec_CXX='$convenience' |
| 17254 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17255 | archive_cmds_need_lc_CXX=yes |
| 17256 | # This is similar to how AIX traditionally builds its shared |
| 17257 | # libraries. |
| 17258 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 17259 | fi |
| 17260 | fi |
| 17261 | ;; |
| 17262 | |
| 17263 | beos*) |
| 17264 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 17265 | allow_undefined_flag_CXX=unsupported |
| 17266 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 17267 | # support --undefined. This deserves some investigation. FIXME |
| 17268 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17269 | else |
| 17270 | ld_shlibs_CXX=no |
| 17271 | fi |
| 17272 | ;; |
| 17273 | |
| 17274 | chorus*) |
| 17275 | case $cc_basename in |
| 17276 | *) |
| 17277 | # FIXME: insert proper C++ library support |
| 17278 | ld_shlibs_CXX=no |
| 17279 | ;; |
| 17280 | esac |
| 17281 | ;; |
| 17282 | |
| 17283 | cygwin* | mingw* | pw32* | cegcc*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17284 | case $GXX,$cc_basename in |
| 17285 | ,cl* | no,cl*) |
| 17286 | # Native MSVC |
| 17287 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 17288 | # no search path for DLLs. |
| 17289 | hardcode_libdir_flag_spec_CXX=' ' |
| 17290 | allow_undefined_flag_CXX=unsupported |
| 17291 | always_export_symbols_CXX=yes |
| 17292 | file_list_spec_CXX='@' |
| 17293 | # Tell ltmain to make .lib files, not .a files. |
| 17294 | libext=lib |
| 17295 | # Tell ltmain to make .dll files, not .so files. |
| 17296 | shrext_cmds=".dll" |
| 17297 | # FIXME: Setting linknames here is a bad hack. |
| 17298 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 17299 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17300 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 17301 | else |
| 17302 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 17303 | fi~ |
| 17304 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 17305 | linknames=' |
| 17306 | # The linker will not automatically build a static lib if we build a DLL. |
| 17307 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 17308 | enable_shared_with_static_runtimes_CXX=yes |
| 17309 | # Don't use ranlib |
| 17310 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 17311 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 17312 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 17313 | case $lt_outputfile in |
| 17314 | *.exe|*.EXE) ;; |
| 17315 | *) |
| 17316 | lt_outputfile="$lt_outputfile.exe" |
| 17317 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 17318 | ;; |
| 17319 | esac~ |
| 17320 | func_to_tool_file "$lt_outputfile"~ |
| 17321 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 17322 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 17323 | $RM "$lt_outputfile.manifest"; |
| 17324 | fi' |
| 17325 | ;; |
| 17326 | *) |
| 17327 | # g++ |
| 17328 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 17329 | # as there is no search path for DLLs. |
| 17330 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 17331 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 17332 | allow_undefined_flag_CXX=unsupported |
| 17333 | always_export_symbols_CXX=no |
| 17334 | enable_shared_with_static_runtimes_CXX=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17335 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17336 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 17337 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 17338 | # If the export-symbols file already is a .def file (1st line |
| 17339 | # is EXPORTS), use it as is; otherwise, prepend... |
| 17340 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 17341 | cp $export_symbols $output_objdir/$soname.def; |
| 17342 | else |
| 17343 | echo EXPORTS > $output_objdir/$soname.def; |
| 17344 | cat $export_symbols >> $output_objdir/$soname.def; |
| 17345 | fi~ |
| 17346 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 17347 | else |
| 17348 | ld_shlibs_CXX=no |
| 17349 | fi |
| 17350 | ;; |
| 17351 | esac |
| 17352 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17353 | darwin* | rhapsody*) |
| 17354 | |
| 17355 | |
| 17356 | archive_cmds_need_lc_CXX=no |
| 17357 | hardcode_direct_CXX=no |
| 17358 | hardcode_automatic_CXX=yes |
| 17359 | hardcode_shlibpath_var_CXX=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17360 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 17361 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 17362 | else |
| 17363 | whole_archive_flag_spec_CXX='' |
| 17364 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17365 | link_all_deplibs_CXX=yes |
| 17366 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 17367 | case $cc_basename in |
| 17368 | ifort*) _lt_dar_can_shared=yes ;; |
| 17369 | *) _lt_dar_can_shared=$GCC ;; |
| 17370 | esac |
| 17371 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17372 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17373 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 17374 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 17375 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 17376 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 17377 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 17378 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 17379 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 17380 | fi |
| 17381 | |
| 17382 | else |
| 17383 | ld_shlibs_CXX=no |
| 17384 | fi |
| 17385 | |
| 17386 | ;; |
| 17387 | |
| 17388 | dgux*) |
| 17389 | case $cc_basename in |
| 17390 | ec++*) |
| 17391 | # FIXME: insert proper C++ library support |
| 17392 | ld_shlibs_CXX=no |
| 17393 | ;; |
| 17394 | ghcx*) |
| 17395 | # Green Hills C++ Compiler |
| 17396 | # FIXME: insert proper C++ library support |
| 17397 | ld_shlibs_CXX=no |
| 17398 | ;; |
| 17399 | *) |
| 17400 | # FIXME: insert proper C++ library support |
| 17401 | ld_shlibs_CXX=no |
| 17402 | ;; |
| 17403 | esac |
| 17404 | ;; |
| 17405 | |
| 17406 | freebsd[12]*) |
| 17407 | # C++ shared libraries reported to be fairly broken before |
| 17408 | # switch to ELF |
| 17409 | ld_shlibs_CXX=no |
| 17410 | ;; |
| 17411 | |
| 17412 | freebsd-elf*) |
| 17413 | archive_cmds_need_lc_CXX=no |
| 17414 | ;; |
| 17415 | |
| 17416 | freebsd* | dragonfly*) |
| 17417 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 17418 | # conventions |
| 17419 | ld_shlibs_CXX=yes |
| 17420 | ;; |
| 17421 | |
| 17422 | gnu*) |
| 17423 | ;; |
| 17424 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17425 | haiku*) |
| 17426 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17427 | link_all_deplibs_CXX=yes |
| 17428 | ;; |
| 17429 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17430 | hpux9*) |
| 17431 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 17432 | hardcode_libdir_separator_CXX=: |
| 17433 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17434 | hardcode_direct_CXX=yes |
| 17435 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17436 | # but as the default |
| 17437 | # location of the library. |
| 17438 | |
| 17439 | case $cc_basename in |
| 17440 | CC*) |
| 17441 | # FIXME: insert proper C++ library support |
| 17442 | ld_shlibs_CXX=no |
| 17443 | ;; |
| 17444 | aCC*) |
| 17445 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 17446 | # Commands to make compiler produce verbose output that lists |
| 17447 | # what "hidden" libraries, object files and flags are used when |
| 17448 | # linking a shared library. |
| 17449 | # |
| 17450 | # There doesn't appear to be a way to prevent this compiler from |
| 17451 | # explicitly linking system object files so we need to strip them |
| 17452 | # from the output so that they don't get included in the library |
| 17453 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17454 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17455 | ;; |
| 17456 | *) |
| 17457 | if test "$GXX" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17458 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17459 | else |
| 17460 | # FIXME: insert proper C++ library support |
| 17461 | ld_shlibs_CXX=no |
| 17462 | fi |
| 17463 | ;; |
| 17464 | esac |
| 17465 | ;; |
| 17466 | |
| 17467 | hpux10*|hpux11*) |
| 17468 | if test $with_gnu_ld = no; then |
| 17469 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 17470 | hardcode_libdir_separator_CXX=: |
| 17471 | |
| 17472 | case $host_cpu in |
| 17473 | hppa*64*|ia64*) |
| 17474 | ;; |
| 17475 | *) |
| 17476 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17477 | ;; |
| 17478 | esac |
| 17479 | fi |
| 17480 | case $host_cpu in |
| 17481 | hppa*64*|ia64*) |
| 17482 | hardcode_direct_CXX=no |
| 17483 | hardcode_shlibpath_var_CXX=no |
| 17484 | ;; |
| 17485 | *) |
| 17486 | hardcode_direct_CXX=yes |
| 17487 | hardcode_direct_absolute_CXX=yes |
| 17488 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 17489 | # but as the default |
| 17490 | # location of the library. |
| 17491 | ;; |
| 17492 | esac |
| 17493 | |
| 17494 | case $cc_basename in |
| 17495 | CC*) |
| 17496 | # FIXME: insert proper C++ library support |
| 17497 | ld_shlibs_CXX=no |
| 17498 | ;; |
| 17499 | aCC*) |
| 17500 | case $host_cpu in |
| 17501 | hppa*64*) |
| 17502 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17503 | ;; |
| 17504 | ia64*) |
| 17505 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17506 | ;; |
| 17507 | *) |
| 17508 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17509 | ;; |
| 17510 | esac |
| 17511 | # Commands to make compiler produce verbose output that lists |
| 17512 | # what "hidden" libraries, object files and flags are used when |
| 17513 | # linking a shared library. |
| 17514 | # |
| 17515 | # There doesn't appear to be a way to prevent this compiler from |
| 17516 | # explicitly linking system object files so we need to strip them |
| 17517 | # from the output so that they don't get included in the library |
| 17518 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17519 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17520 | ;; |
| 17521 | *) |
| 17522 | if test "$GXX" = yes; then |
| 17523 | if test $with_gnu_ld = no; then |
| 17524 | case $host_cpu in |
| 17525 | hppa*64*) |
| 17526 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17527 | ;; |
| 17528 | ia64*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17529 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17530 | ;; |
| 17531 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17532 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17533 | ;; |
| 17534 | esac |
| 17535 | fi |
| 17536 | else |
| 17537 | # FIXME: insert proper C++ library support |
| 17538 | ld_shlibs_CXX=no |
| 17539 | fi |
| 17540 | ;; |
| 17541 | esac |
| 17542 | ;; |
| 17543 | |
| 17544 | interix[3-9]*) |
| 17545 | hardcode_direct_CXX=no |
| 17546 | hardcode_shlibpath_var_CXX=no |
| 17547 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17548 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17549 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 17550 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 17551 | # default) and relocated if they conflict, which is a slow very memory |
| 17552 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 17553 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 17554 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 17555 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17556 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 17557 | ;; |
| 17558 | irix5* | irix6*) |
| 17559 | case $cc_basename in |
| 17560 | CC*) |
| 17561 | # SGI C++ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17562 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17563 | |
| 17564 | # Archives containing C++ object files must be created using |
| 17565 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 17566 | # necessary to make sure instantiated templates are included |
| 17567 | # in the archive. |
| 17568 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 17569 | ;; |
| 17570 | *) |
| 17571 | if test "$GXX" = yes; then |
| 17572 | if test "$with_gnu_ld" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17573 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17574 | else |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17575 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17576 | fi |
| 17577 | fi |
| 17578 | link_all_deplibs_CXX=yes |
| 17579 | ;; |
| 17580 | esac |
| 17581 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17582 | hardcode_libdir_separator_CXX=: |
| 17583 | inherit_rpath_CXX=yes |
| 17584 | ;; |
| 17585 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17586 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17587 | case $cc_basename in |
| 17588 | KCC*) |
| 17589 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17590 | |
| 17591 | # KCC will only create a shared library if the output file |
| 17592 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17593 | # to its proper name (with version) after linking. |
| 17594 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 17595 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 17596 | # Commands to make compiler produce verbose output that lists |
| 17597 | # what "hidden" libraries, object files and flags are used when |
| 17598 | # linking a shared library. |
| 17599 | # |
| 17600 | # There doesn't appear to be a way to prevent this compiler from |
| 17601 | # explicitly linking system object files so we need to strip them |
| 17602 | # from the output so that they don't get included in the library |
| 17603 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17604 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17605 | |
| 17606 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17607 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17608 | |
| 17609 | # Archives containing C++ object files must be created using |
| 17610 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 17611 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 17612 | ;; |
| 17613 | icpc* | ecpc* ) |
| 17614 | # Intel C++ |
| 17615 | with_gnu_ld=yes |
| 17616 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 17617 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 17618 | # earlier do not add the objects themselves. |
| 17619 | case `$CC -V 2>&1` in |
| 17620 | *"Version 7."*) |
| 17621 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17622 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17623 | ;; |
| 17624 | *) # Version 8.0 or newer |
| 17625 | tmp_idyn= |
| 17626 | case $host_cpu in |
| 17627 | ia64*) tmp_idyn=' -i_dynamic';; |
| 17628 | esac |
| 17629 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17630 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 17631 | ;; |
| 17632 | esac |
| 17633 | archive_cmds_need_lc_CXX=no |
| 17634 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17635 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17636 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 17637 | ;; |
| 17638 | pgCC* | pgcpp*) |
| 17639 | # Portland Group C++ compiler |
| 17640 | case `$CC -V` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17641 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17642 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 17643 | rm -rf $tpldir~ |
| 17644 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17645 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17646 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 17647 | rm -rf $tpldir~ |
| 17648 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17649 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17650 | $RANLIB $oldlib' |
| 17651 | archive_cmds_CXX='tpldir=Template.dir~ |
| 17652 | rm -rf $tpldir~ |
| 17653 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17654 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17655 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 17656 | rm -rf $tpldir~ |
| 17657 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17658 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17659 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17660 | *) # Version 6 and above use weak symbols |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17661 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 17662 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 17663 | ;; |
| 17664 | esac |
| 17665 | |
| 17666 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 17667 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17668 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17669 | ;; |
| 17670 | cxx*) |
| 17671 | # Compaq C++ |
| 17672 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17673 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 17674 | |
| 17675 | runpath_var=LD_RUN_PATH |
| 17676 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17677 | hardcode_libdir_separator_CXX=: |
| 17678 | |
| 17679 | # Commands to make compiler produce verbose output that lists |
| 17680 | # what "hidden" libraries, object files and flags are used when |
| 17681 | # linking a shared library. |
| 17682 | # |
| 17683 | # There doesn't appear to be a way to prevent this compiler from |
| 17684 | # explicitly linking system object files so we need to strip them |
| 17685 | # from the output so that they don't get included in the library |
| 17686 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17687 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17688 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17689 | xl* | mpixl* | bgxl*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17690 | # IBM XL 8.0 on PPC, with GNU ld |
| 17691 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17692 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 17693 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 17694 | if test "x$supports_anon_versioning" = xyes; then |
| 17695 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 17696 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 17697 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 17698 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 17699 | fi |
| 17700 | ;; |
| 17701 | *) |
| 17702 | case `$CC -V 2>&1 | sed 5q` in |
| 17703 | *Sun\ C*) |
| 17704 | # Sun C++ 5.9 |
| 17705 | no_undefined_flag_CXX=' -zdefs' |
| 17706 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17707 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 17708 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17709 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17710 | compiler_needs_object_CXX=yes |
| 17711 | |
| 17712 | # Not sure whether something based on |
| 17713 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 17714 | # would be better. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17715 | output_verbose_link_cmd='func_echo_all' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17716 | |
| 17717 | # Archives containing C++ object files must be created using |
| 17718 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 17719 | # necessary to make sure instantiated templates are included |
| 17720 | # in the archive. |
| 17721 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 17722 | ;; |
| 17723 | esac |
| 17724 | ;; |
| 17725 | esac |
| 17726 | ;; |
| 17727 | |
| 17728 | lynxos*) |
| 17729 | # FIXME: insert proper C++ library support |
| 17730 | ld_shlibs_CXX=no |
| 17731 | ;; |
| 17732 | |
| 17733 | m88k*) |
| 17734 | # FIXME: insert proper C++ library support |
| 17735 | ld_shlibs_CXX=no |
| 17736 | ;; |
| 17737 | |
| 17738 | mvs*) |
| 17739 | case $cc_basename in |
| 17740 | cxx*) |
| 17741 | # FIXME: insert proper C++ library support |
| 17742 | ld_shlibs_CXX=no |
| 17743 | ;; |
| 17744 | *) |
| 17745 | # FIXME: insert proper C++ library support |
| 17746 | ld_shlibs_CXX=no |
| 17747 | ;; |
| 17748 | esac |
| 17749 | ;; |
| 17750 | |
| 17751 | netbsd*) |
| 17752 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17753 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 17754 | wlarc= |
| 17755 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17756 | hardcode_direct_CXX=yes |
| 17757 | hardcode_shlibpath_var_CXX=no |
| 17758 | fi |
| 17759 | # Workaround some broken pre-1.5 toolchains |
| 17760 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 17761 | ;; |
| 17762 | |
| 17763 | *nto* | *qnx*) |
| 17764 | ld_shlibs_CXX=yes |
| 17765 | ;; |
| 17766 | |
| 17767 | openbsd2*) |
| 17768 | # C++ shared libraries are fairly broken |
| 17769 | ld_shlibs_CXX=no |
| 17770 | ;; |
| 17771 | |
| 17772 | openbsd*) |
| 17773 | if test -f /usr/libexec/ld.so; then |
| 17774 | hardcode_direct_CXX=yes |
| 17775 | hardcode_shlibpath_var_CXX=no |
| 17776 | hardcode_direct_absolute_CXX=yes |
| 17777 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 17778 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17779 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17780 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 17781 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 17782 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 17783 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17784 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17785 | else |
| 17786 | ld_shlibs_CXX=no |
| 17787 | fi |
| 17788 | ;; |
| 17789 | |
| 17790 | osf3* | osf4* | osf5*) |
| 17791 | case $cc_basename in |
| 17792 | KCC*) |
| 17793 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 17794 | |
| 17795 | # KCC will only create a shared library if the output file |
| 17796 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 17797 | # to its proper name (with version) after linking. |
| 17798 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 17799 | |
| 17800 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 17801 | hardcode_libdir_separator_CXX=: |
| 17802 | |
| 17803 | # Archives containing C++ object files must be created using |
| 17804 | # the KAI C++ compiler. |
| 17805 | case $host in |
| 17806 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 17807 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 17808 | esac |
| 17809 | ;; |
| 17810 | RCC*) |
| 17811 | # Rational C++ 2.4.1 |
| 17812 | # FIXME: insert proper C++ library support |
| 17813 | ld_shlibs_CXX=no |
| 17814 | ;; |
| 17815 | cxx*) |
| 17816 | case $host in |
| 17817 | osf3*) |
| 17818 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17819 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17820 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17821 | ;; |
| 17822 | *) |
| 17823 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17824 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17825 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 17826 | echo "-hidden">> $lib.exp~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17827 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17828 | $RM $lib.exp' |
| 17829 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 17830 | ;; |
| 17831 | esac |
| 17832 | |
| 17833 | hardcode_libdir_separator_CXX=: |
| 17834 | |
| 17835 | # Commands to make compiler produce verbose output that lists |
| 17836 | # what "hidden" libraries, object files and flags are used when |
| 17837 | # linking a shared library. |
| 17838 | # |
| 17839 | # There doesn't appear to be a way to prevent this compiler from |
| 17840 | # explicitly linking system object files so we need to strip them |
| 17841 | # from the output so that they don't get included in the library |
| 17842 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17843 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17844 | ;; |
| 17845 | *) |
| 17846 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 17847 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 17848 | case $host in |
| 17849 | osf3*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17850 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17851 | ;; |
| 17852 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17853 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17854 | ;; |
| 17855 | esac |
| 17856 | |
| 17857 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 17858 | hardcode_libdir_separator_CXX=: |
| 17859 | |
| 17860 | # Commands to make compiler produce verbose output that lists |
| 17861 | # what "hidden" libraries, object files and flags are used when |
| 17862 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17863 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17864 | |
| 17865 | else |
| 17866 | # FIXME: insert proper C++ library support |
| 17867 | ld_shlibs_CXX=no |
| 17868 | fi |
| 17869 | ;; |
| 17870 | esac |
| 17871 | ;; |
| 17872 | |
| 17873 | psos*) |
| 17874 | # FIXME: insert proper C++ library support |
| 17875 | ld_shlibs_CXX=no |
| 17876 | ;; |
| 17877 | |
| 17878 | sunos4*) |
| 17879 | case $cc_basename in |
| 17880 | CC*) |
| 17881 | # Sun C++ 4.x |
| 17882 | # FIXME: insert proper C++ library support |
| 17883 | ld_shlibs_CXX=no |
| 17884 | ;; |
| 17885 | lcc*) |
| 17886 | # Lucid |
| 17887 | # FIXME: insert proper C++ library support |
| 17888 | ld_shlibs_CXX=no |
| 17889 | ;; |
| 17890 | *) |
| 17891 | # FIXME: insert proper C++ library support |
| 17892 | ld_shlibs_CXX=no |
| 17893 | ;; |
| 17894 | esac |
| 17895 | ;; |
| 17896 | |
| 17897 | solaris*) |
| 17898 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17899 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17900 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 17901 | archive_cmds_need_lc_CXX=yes |
| 17902 | no_undefined_flag_CXX=' -zdefs' |
| 17903 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 17904 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 17905 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 17906 | |
| 17907 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 17908 | hardcode_shlibpath_var_CXX=no |
| 17909 | case $host_os in |
| 17910 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 17911 | *) |
| 17912 | # The compiler driver will combine and reorder linker options, |
| 17913 | # but understands `-z linker_flag'. |
| 17914 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 17915 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 17916 | ;; |
| 17917 | esac |
| 17918 | link_all_deplibs_CXX=yes |
| 17919 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17920 | output_verbose_link_cmd='func_echo_all' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17921 | |
| 17922 | # Archives containing C++ object files must be created using |
| 17923 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 17924 | # necessary to make sure instantiated templates are included |
| 17925 | # in the archive. |
| 17926 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 17927 | ;; |
| 17928 | gcx*) |
| 17929 | # Green Hills C++ Compiler |
| 17930 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 17931 | |
| 17932 | # The C++ compiler must be used to create the archive. |
| 17933 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 17934 | ;; |
| 17935 | *) |
| 17936 | # GNU C++ compiler with Solaris linker |
| 17937 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 17938 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 17939 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17940 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17941 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17942 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17943 | |
| 17944 | # Commands to make compiler produce verbose output that lists |
| 17945 | # what "hidden" libraries, object files and flags are used when |
| 17946 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17947 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17948 | else |
| 17949 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 17950 | # platform. |
| 17951 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 17952 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 17953 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 17954 | |
| 17955 | # Commands to make compiler produce verbose output that lists |
| 17956 | # what "hidden" libraries, object files and flags are used when |
| 17957 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17958 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17959 | fi |
| 17960 | |
| 17961 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 17962 | case $host_os in |
| 17963 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 17964 | *) |
| 17965 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 17966 | ;; |
| 17967 | esac |
| 17968 | fi |
| 17969 | ;; |
| 17970 | esac |
| 17971 | ;; |
| 17972 | |
| 17973 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 17974 | no_undefined_flag_CXX='${wl}-z,text' |
| 17975 | archive_cmds_need_lc_CXX=no |
| 17976 | hardcode_shlibpath_var_CXX=no |
| 17977 | runpath_var='LD_RUN_PATH' |
| 17978 | |
| 17979 | case $cc_basename in |
| 17980 | CC*) |
| 17981 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17982 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17983 | ;; |
| 17984 | *) |
| 17985 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17986 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 17987 | ;; |
| 17988 | esac |
| 17989 | ;; |
| 17990 | |
| 17991 | sysv5* | sco3.2v5* | sco5v6*) |
| 17992 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 17993 | # link with -lc, and that would cause any symbols used from libc to |
| 17994 | # always be unresolved, which means just about no library would |
| 17995 | # ever link correctly. If we're not using GNU ld we use -z text |
| 17996 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 17997 | # as -z defs. |
| 17998 | no_undefined_flag_CXX='${wl}-z,text' |
| 17999 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 18000 | archive_cmds_need_lc_CXX=no |
| 18001 | hardcode_shlibpath_var_CXX=no |
| 18002 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 18003 | hardcode_libdir_separator_CXX=':' |
| 18004 | link_all_deplibs_CXX=yes |
| 18005 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 18006 | runpath_var='LD_RUN_PATH' |
| 18007 | |
| 18008 | case $cc_basename in |
| 18009 | CC*) |
| 18010 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18011 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18012 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 18013 | '"$old_archive_cmds_CXX" |
| 18014 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 18015 | '"$reload_cmds_CXX" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18016 | ;; |
| 18017 | *) |
| 18018 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18019 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 18020 | ;; |
| 18021 | esac |
| 18022 | ;; |
| 18023 | |
| 18024 | tandem*) |
| 18025 | case $cc_basename in |
| 18026 | NCC*) |
| 18027 | # NonStop-UX NCC 3.20 |
| 18028 | # FIXME: insert proper C++ library support |
| 18029 | ld_shlibs_CXX=no |
| 18030 | ;; |
| 18031 | *) |
| 18032 | # FIXME: insert proper C++ library support |
| 18033 | ld_shlibs_CXX=no |
| 18034 | ;; |
| 18035 | esac |
| 18036 | ;; |
| 18037 | |
| 18038 | vxworks*) |
| 18039 | # FIXME: insert proper C++ library support |
| 18040 | ld_shlibs_CXX=no |
| 18041 | ;; |
| 18042 | |
| 18043 | *) |
| 18044 | # FIXME: insert proper C++ library support |
| 18045 | ld_shlibs_CXX=no |
| 18046 | ;; |
| 18047 | esac |
| 18048 | |
| 18049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 18050 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 18051 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18052 | |
| 18053 | GCC_CXX="$GXX" |
| 18054 | LD_CXX="$LD" |
| 18055 | |
| 18056 | ## CAVEAT EMPTOR: |
| 18057 | ## There is no encapsulation within the following macros, do not change |
| 18058 | ## the running order or otherwise move them around unless you know exactly |
| 18059 | ## what you are doing... |
| 18060 | # Dependencies to place before and after the object being linked: |
| 18061 | predep_objects_CXX= |
| 18062 | postdep_objects_CXX= |
| 18063 | predeps_CXX= |
| 18064 | postdeps_CXX= |
| 18065 | compiler_lib_search_path_CXX= |
| 18066 | |
| 18067 | cat > conftest.$ac_ext <<_LT_EOF |
| 18068 | class Foo |
| 18069 | { |
| 18070 | public: |
| 18071 | Foo (void) { a = 0; } |
| 18072 | private: |
| 18073 | int a; |
| 18074 | }; |
| 18075 | _LT_EOF |
| 18076 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18077 | |
| 18078 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 18079 | case "$CC $CFLAGS " in #( |
| 18080 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 18081 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 18082 | esac |
| 18083 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18084 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 18085 | (eval $ac_compile) 2>&5 |
| 18086 | ac_status=$? |
| 18087 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18088 | test $ac_status = 0; }; then |
| 18089 | # Parse the compiler output and extract the necessary |
| 18090 | # objects, libraries and library flags. |
| 18091 | |
| 18092 | # Sentinel used to keep track of whether or not we are before |
| 18093 | # the conftest object file. |
| 18094 | pre_test_object_deps_done=no |
| 18095 | |
| 18096 | for p in `eval "$output_verbose_link_cmd"`; do |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18097 | case ${prev}${p} in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18098 | |
| 18099 | -L* | -R* | -l*) |
| 18100 | # Some compilers place space between "-{L,R}" and the path. |
| 18101 | # Remove the space. |
| 18102 | if test $p = "-L" || |
| 18103 | test $p = "-R"; then |
| 18104 | prev=$p |
| 18105 | continue |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18106 | fi |
| 18107 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18108 | # Expand the sysroot to ease extracting the directories later. |
| 18109 | if test -z "$prev"; then |
| 18110 | case $p in |
| 18111 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 18112 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 18113 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 18114 | esac |
| 18115 | fi |
| 18116 | case $p in |
| 18117 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 18118 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18119 | if test "$pre_test_object_deps_done" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18120 | case ${prev} in |
| 18121 | -L | -R) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18122 | # Internal compiler library paths should come after those |
| 18123 | # provided the user. The postdeps already come after the |
| 18124 | # user supplied libs so there is no need to process them. |
| 18125 | if test -z "$compiler_lib_search_path_CXX"; then |
| 18126 | compiler_lib_search_path_CXX="${prev}${p}" |
| 18127 | else |
| 18128 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 18129 | fi |
| 18130 | ;; |
| 18131 | # The "-l" case would never come before the object being |
| 18132 | # linked, so don't bother handling this case. |
| 18133 | esac |
| 18134 | else |
| 18135 | if test -z "$postdeps_CXX"; then |
| 18136 | postdeps_CXX="${prev}${p}" |
| 18137 | else |
| 18138 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 18139 | fi |
| 18140 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18141 | prev= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18142 | ;; |
| 18143 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18144 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18145 | *.$objext) |
| 18146 | # This assumes that the test object file only shows up |
| 18147 | # once in the compiler output. |
| 18148 | if test "$p" = "conftest.$objext"; then |
| 18149 | pre_test_object_deps_done=yes |
| 18150 | continue |
| 18151 | fi |
| 18152 | |
| 18153 | if test "$pre_test_object_deps_done" = no; then |
| 18154 | if test -z "$predep_objects_CXX"; then |
| 18155 | predep_objects_CXX="$p" |
| 18156 | else |
| 18157 | predep_objects_CXX="$predep_objects_CXX $p" |
| 18158 | fi |
| 18159 | else |
| 18160 | if test -z "$postdep_objects_CXX"; then |
| 18161 | postdep_objects_CXX="$p" |
| 18162 | else |
| 18163 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 18164 | fi |
| 18165 | fi |
| 18166 | ;; |
| 18167 | |
| 18168 | *) ;; # Ignore the rest. |
| 18169 | |
| 18170 | esac |
| 18171 | done |
| 18172 | |
| 18173 | # Clean up. |
| 18174 | rm -f a.out a.exe |
| 18175 | else |
| 18176 | echo "libtool.m4: error: problem compiling CXX test program" |
| 18177 | fi |
| 18178 | |
| 18179 | $RM -f confest.$objext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18180 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18181 | |
| 18182 | # PORTME: override above test on systems where it is broken |
| 18183 | case $host_os in |
| 18184 | interix[3-9]*) |
| 18185 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 18186 | # hack all around it, let's just trust "g++" to DTRT. |
| 18187 | predep_objects_CXX= |
| 18188 | postdep_objects_CXX= |
| 18189 | postdeps_CXX= |
| 18190 | ;; |
| 18191 | |
| 18192 | linux*) |
| 18193 | case `$CC -V 2>&1 | sed 5q` in |
| 18194 | *Sun\ C*) |
| 18195 | # Sun C++ 5.9 |
| 18196 | |
| 18197 | # The more standards-conforming stlport4 library is |
| 18198 | # incompatible with the Cstd library. Avoid specifying |
| 18199 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 18200 | # -library=stlport4 depends on it. |
| 18201 | case " $CXX $CXXFLAGS " in |
| 18202 | *" -library=stlport4 "*) |
| 18203 | solaris_use_stlport4=yes |
| 18204 | ;; |
| 18205 | esac |
| 18206 | |
| 18207 | if test "$solaris_use_stlport4" != yes; then |
| 18208 | postdeps_CXX='-library=Cstd -library=Crun' |
| 18209 | fi |
| 18210 | ;; |
| 18211 | esac |
| 18212 | ;; |
| 18213 | |
| 18214 | solaris*) |
| 18215 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18216 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18217 | # The more standards-conforming stlport4 library is |
| 18218 | # incompatible with the Cstd library. Avoid specifying |
| 18219 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 18220 | # -library=stlport4 depends on it. |
| 18221 | case " $CXX $CXXFLAGS " in |
| 18222 | *" -library=stlport4 "*) |
| 18223 | solaris_use_stlport4=yes |
| 18224 | ;; |
| 18225 | esac |
| 18226 | |
| 18227 | # Adding this requires a known-good setup of shared libraries for |
| 18228 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 18229 | # archive will be linked into the output, leading to subtle bugs. |
| 18230 | if test "$solaris_use_stlport4" != yes; then |
| 18231 | postdeps_CXX='-library=Cstd -library=Crun' |
| 18232 | fi |
| 18233 | ;; |
| 18234 | esac |
| 18235 | ;; |
| 18236 | esac |
| 18237 | |
| 18238 | |
| 18239 | case " $postdeps_CXX " in |
| 18240 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 18241 | esac |
| 18242 | compiler_lib_search_dirs_CXX= |
| 18243 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 18244 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 18245 | fi |
| 18246 | |
| 18247 | |
| 18248 | |
| 18249 | |
| 18250 | |
| 18251 | |
| 18252 | |
| 18253 | |
| 18254 | |
| 18255 | |
| 18256 | |
| 18257 | |
| 18258 | |
| 18259 | |
| 18260 | |
| 18261 | |
| 18262 | |
| 18263 | |
| 18264 | |
| 18265 | |
| 18266 | |
| 18267 | |
| 18268 | |
| 18269 | |
| 18270 | |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 | |
| 18275 | |
| 18276 | |
| 18277 | lt_prog_compiler_wl_CXX= |
| 18278 | lt_prog_compiler_pic_CXX= |
| 18279 | lt_prog_compiler_static_CXX= |
| 18280 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18281 | |
| 18282 | # C++ specific cases for pic, static, wl, etc. |
| 18283 | if test "$GXX" = yes; then |
| 18284 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18285 | lt_prog_compiler_static_CXX='-static' |
| 18286 | |
| 18287 | case $host_os in |
| 18288 | aix*) |
| 18289 | # All AIX code is PIC. |
| 18290 | if test "$host_cpu" = ia64; then |
| 18291 | # AIX 5 now supports IA64 processor |
| 18292 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18293 | fi |
| 18294 | ;; |
| 18295 | |
| 18296 | amigaos*) |
| 18297 | case $host_cpu in |
| 18298 | powerpc) |
| 18299 | # see comment about AmigaOS4 .so support |
| 18300 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18301 | ;; |
| 18302 | m68k) |
| 18303 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 18304 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 18305 | # like `-m68040'. |
| 18306 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 18307 | ;; |
| 18308 | esac |
| 18309 | ;; |
| 18310 | |
| 18311 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 18312 | # PIC is the default for these OSes. |
| 18313 | ;; |
| 18314 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 18315 | # This hack is so that the source file can tell whether it is being |
| 18316 | # built for inclusion in a dll (and should export symbols for example). |
| 18317 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 18318 | # (--disable-auto-import) libraries |
| 18319 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18320 | ;; |
| 18321 | darwin* | rhapsody*) |
| 18322 | # PIC is the default on this platform |
| 18323 | # Common symbols not allowed in MH_DYLIB files |
| 18324 | lt_prog_compiler_pic_CXX='-fno-common' |
| 18325 | ;; |
| 18326 | *djgpp*) |
| 18327 | # DJGPP does not support shared libraries at all |
| 18328 | lt_prog_compiler_pic_CXX= |
| 18329 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18330 | haiku*) |
| 18331 | # PIC is the default for Haiku. |
| 18332 | # The "-static" flag exists, but is broken. |
| 18333 | lt_prog_compiler_static_CXX= |
| 18334 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18335 | interix[3-9]*) |
| 18336 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 18337 | # Instead, we relocate shared libraries at runtime. |
| 18338 | ;; |
| 18339 | sysv4*MP*) |
| 18340 | if test -d /usr/nec; then |
| 18341 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 18342 | fi |
| 18343 | ;; |
| 18344 | hpux*) |
| 18345 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 18346 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 18347 | # sets the default TLS model and affects inlining. |
| 18348 | case $host_cpu in |
| 18349 | hppa*64*) |
| 18350 | ;; |
| 18351 | *) |
| 18352 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18353 | ;; |
| 18354 | esac |
| 18355 | ;; |
| 18356 | *qnx* | *nto*) |
| 18357 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 18358 | # it will coredump. |
| 18359 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 18360 | ;; |
| 18361 | *) |
| 18362 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18363 | ;; |
| 18364 | esac |
| 18365 | else |
| 18366 | case $host_os in |
| 18367 | aix[4-9]*) |
| 18368 | # All AIX code is PIC. |
| 18369 | if test "$host_cpu" = ia64; then |
| 18370 | # AIX 5 now supports IA64 processor |
| 18371 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18372 | else |
| 18373 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 18374 | fi |
| 18375 | ;; |
| 18376 | chorus*) |
| 18377 | case $cc_basename in |
| 18378 | cxch68*) |
| 18379 | # Green Hills C++ Compiler |
| 18380 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 18381 | ;; |
| 18382 | esac |
| 18383 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18384 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 18385 | # This hack is so that the source file can tell whether it is being |
| 18386 | # built for inclusion in a dll (and should export symbols for example). |
| 18387 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 18388 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18389 | dgux*) |
| 18390 | case $cc_basename in |
| 18391 | ec++*) |
| 18392 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18393 | ;; |
| 18394 | ghcx*) |
| 18395 | # Green Hills C++ Compiler |
| 18396 | lt_prog_compiler_pic_CXX='-pic' |
| 18397 | ;; |
| 18398 | *) |
| 18399 | ;; |
| 18400 | esac |
| 18401 | ;; |
| 18402 | freebsd* | dragonfly*) |
| 18403 | # FreeBSD uses GNU C++ |
| 18404 | ;; |
| 18405 | hpux9* | hpux10* | hpux11*) |
| 18406 | case $cc_basename in |
| 18407 | CC*) |
| 18408 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18409 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 18410 | if test "$host_cpu" != ia64; then |
| 18411 | lt_prog_compiler_pic_CXX='+Z' |
| 18412 | fi |
| 18413 | ;; |
| 18414 | aCC*) |
| 18415 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18416 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 18417 | case $host_cpu in |
| 18418 | hppa*64*|ia64*) |
| 18419 | # +Z the default |
| 18420 | ;; |
| 18421 | *) |
| 18422 | lt_prog_compiler_pic_CXX='+Z' |
| 18423 | ;; |
| 18424 | esac |
| 18425 | ;; |
| 18426 | *) |
| 18427 | ;; |
| 18428 | esac |
| 18429 | ;; |
| 18430 | interix*) |
| 18431 | # This is c89, which is MS Visual C++ (no shared libs) |
| 18432 | # Anyone wants to do a port? |
| 18433 | ;; |
| 18434 | irix5* | irix6* | nonstopux*) |
| 18435 | case $cc_basename in |
| 18436 | CC*) |
| 18437 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18438 | lt_prog_compiler_static_CXX='-non_shared' |
| 18439 | # CC pic flag -KPIC is the default. |
| 18440 | ;; |
| 18441 | *) |
| 18442 | ;; |
| 18443 | esac |
| 18444 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18445 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18446 | case $cc_basename in |
| 18447 | KCC*) |
| 18448 | # KAI C++ Compiler |
| 18449 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18450 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18451 | ;; |
| 18452 | ecpc* ) |
| 18453 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 18454 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18455 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18456 | lt_prog_compiler_static_CXX='-static' |
| 18457 | ;; |
| 18458 | icpc* ) |
| 18459 | # Intel C++, used to be incompatible with GCC. |
| 18460 | # ICC 10 doesn't accept -KPIC any more. |
| 18461 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18462 | lt_prog_compiler_pic_CXX='-fPIC' |
| 18463 | lt_prog_compiler_static_CXX='-static' |
| 18464 | ;; |
| 18465 | pgCC* | pgcpp*) |
| 18466 | # Portland Group C++ compiler |
| 18467 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18468 | lt_prog_compiler_pic_CXX='-fpic' |
| 18469 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18470 | ;; |
| 18471 | cxx*) |
| 18472 | # Compaq C++ |
| 18473 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18474 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18475 | lt_prog_compiler_pic_CXX= |
| 18476 | lt_prog_compiler_static_CXX='-non_shared' |
| 18477 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18478 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 18479 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18480 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18481 | lt_prog_compiler_pic_CXX='-qpic' |
| 18482 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 18483 | ;; |
| 18484 | *) |
| 18485 | case `$CC -V 2>&1 | sed 5q` in |
| 18486 | *Sun\ C*) |
| 18487 | # Sun C++ 5.9 |
| 18488 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18489 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18490 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18491 | ;; |
| 18492 | esac |
| 18493 | ;; |
| 18494 | esac |
| 18495 | ;; |
| 18496 | lynxos*) |
| 18497 | ;; |
| 18498 | m88k*) |
| 18499 | ;; |
| 18500 | mvs*) |
| 18501 | case $cc_basename in |
| 18502 | cxx*) |
| 18503 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 18504 | ;; |
| 18505 | *) |
| 18506 | ;; |
| 18507 | esac |
| 18508 | ;; |
| 18509 | netbsd*) |
| 18510 | ;; |
| 18511 | *qnx* | *nto*) |
| 18512 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 18513 | # it will coredump. |
| 18514 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 18515 | ;; |
| 18516 | osf3* | osf4* | osf5*) |
| 18517 | case $cc_basename in |
| 18518 | KCC*) |
| 18519 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 18520 | ;; |
| 18521 | RCC*) |
| 18522 | # Rational C++ 2.4.1 |
| 18523 | lt_prog_compiler_pic_CXX='-pic' |
| 18524 | ;; |
| 18525 | cxx*) |
| 18526 | # Digital/Compaq C++ |
| 18527 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18528 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 18529 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 18530 | lt_prog_compiler_pic_CXX= |
| 18531 | lt_prog_compiler_static_CXX='-non_shared' |
| 18532 | ;; |
| 18533 | *) |
| 18534 | ;; |
| 18535 | esac |
| 18536 | ;; |
| 18537 | psos*) |
| 18538 | ;; |
| 18539 | solaris*) |
| 18540 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18541 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18542 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18543 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18544 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18545 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 18546 | ;; |
| 18547 | gcx*) |
| 18548 | # Green Hills C++ Compiler |
| 18549 | lt_prog_compiler_pic_CXX='-PIC' |
| 18550 | ;; |
| 18551 | *) |
| 18552 | ;; |
| 18553 | esac |
| 18554 | ;; |
| 18555 | sunos4*) |
| 18556 | case $cc_basename in |
| 18557 | CC*) |
| 18558 | # Sun C++ 4.x |
| 18559 | lt_prog_compiler_pic_CXX='-pic' |
| 18560 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18561 | ;; |
| 18562 | lcc*) |
| 18563 | # Lucid |
| 18564 | lt_prog_compiler_pic_CXX='-pic' |
| 18565 | ;; |
| 18566 | *) |
| 18567 | ;; |
| 18568 | esac |
| 18569 | ;; |
| 18570 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 18571 | case $cc_basename in |
| 18572 | CC*) |
| 18573 | lt_prog_compiler_wl_CXX='-Wl,' |
| 18574 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18575 | lt_prog_compiler_static_CXX='-Bstatic' |
| 18576 | ;; |
| 18577 | esac |
| 18578 | ;; |
| 18579 | tandem*) |
| 18580 | case $cc_basename in |
| 18581 | NCC*) |
| 18582 | # NonStop-UX NCC 3.20 |
| 18583 | lt_prog_compiler_pic_CXX='-KPIC' |
| 18584 | ;; |
| 18585 | *) |
| 18586 | ;; |
| 18587 | esac |
| 18588 | ;; |
| 18589 | vxworks*) |
| 18590 | ;; |
| 18591 | *) |
| 18592 | lt_prog_compiler_can_build_shared_CXX=no |
| 18593 | ;; |
| 18594 | esac |
| 18595 | fi |
| 18596 | |
| 18597 | case $host_os in |
| 18598 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 18599 | *djgpp*) |
| 18600 | lt_prog_compiler_pic_CXX= |
| 18601 | ;; |
| 18602 | *) |
| 18603 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 18604 | ;; |
| 18605 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18606 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 18608 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 18609 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 18610 | $as_echo_n "(cached) " >&6 |
| 18611 | else |
| 18612 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 18613 | fi |
| 18614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 18615 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 18616 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18617 | |
| 18618 | # |
| 18619 | # Check to make sure the PIC flag actually works. |
| 18620 | # |
| 18621 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 18622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 18623 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18624 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18625 | $as_echo_n "(cached) " >&6 |
| 18626 | else |
| 18627 | lt_cv_prog_compiler_pic_works_CXX=no |
| 18628 | ac_outfile=conftest.$ac_objext |
| 18629 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18630 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 18631 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18632 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18633 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18634 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18635 | # The option is referenced via a variable to avoid confusing sed. |
| 18636 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18637 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18638 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18639 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18640 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18641 | (eval "$lt_compile" 2>conftest.err) |
| 18642 | ac_status=$? |
| 18643 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18645 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 18646 | # The compiler can only warn and ignore the option if not recognized |
| 18647 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18648 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18649 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18650 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 18651 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 18652 | fi |
| 18653 | fi |
| 18654 | $RM conftest* |
| 18655 | |
| 18656 | fi |
| 18657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 18658 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 18659 | |
| 18660 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 18661 | case $lt_prog_compiler_pic_CXX in |
| 18662 | "" | " "*) ;; |
| 18663 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 18664 | esac |
| 18665 | else |
| 18666 | lt_prog_compiler_pic_CXX= |
| 18667 | lt_prog_compiler_can_build_shared_CXX=no |
| 18668 | fi |
| 18669 | |
| 18670 | fi |
| 18671 | |
| 18672 | |
| 18673 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18674 | |
| 18675 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18676 | # |
| 18677 | # Check to make sure the static flag actually works. |
| 18678 | # |
| 18679 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 18680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 18681 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18682 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18683 | $as_echo_n "(cached) " >&6 |
| 18684 | else |
| 18685 | lt_cv_prog_compiler_static_works_CXX=no |
| 18686 | save_LDFLAGS="$LDFLAGS" |
| 18687 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 18688 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 18689 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 18690 | # The linker can only warn and ignore the option if not recognized |
| 18691 | # So say no if there are warnings |
| 18692 | if test -s conftest.err; then |
| 18693 | # Append any errors to the config.log. |
| 18694 | cat conftest.err 1>&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18695 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18696 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18697 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 18698 | lt_cv_prog_compiler_static_works_CXX=yes |
| 18699 | fi |
| 18700 | else |
| 18701 | lt_cv_prog_compiler_static_works_CXX=yes |
| 18702 | fi |
| 18703 | fi |
| 18704 | $RM -r conftest* |
| 18705 | LDFLAGS="$save_LDFLAGS" |
| 18706 | |
| 18707 | fi |
| 18708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 18709 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 18710 | |
| 18711 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 18712 | : |
| 18713 | else |
| 18714 | lt_prog_compiler_static_CXX= |
| 18715 | fi |
| 18716 | |
| 18717 | |
| 18718 | |
| 18719 | |
| 18720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18721 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18722 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18723 | $as_echo_n "(cached) " >&6 |
| 18724 | else |
| 18725 | lt_cv_prog_compiler_c_o_CXX=no |
| 18726 | $RM -r conftest 2>/dev/null |
| 18727 | mkdir conftest |
| 18728 | cd conftest |
| 18729 | mkdir out |
| 18730 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18731 | |
| 18732 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18733 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18734 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18735 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18736 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18737 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18738 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18739 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18740 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18741 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18742 | (eval "$lt_compile" 2>out/conftest.err) |
| 18743 | ac_status=$? |
| 18744 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18746 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18747 | then |
| 18748 | # The compiler can only warn and ignore the option if not recognized |
| 18749 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18750 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18751 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18752 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 18753 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18754 | fi |
| 18755 | fi |
| 18756 | chmod u+w . 2>&5 |
| 18757 | $RM conftest* |
| 18758 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18759 | # template instantiation |
| 18760 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 18761 | $RM out/* && rmdir out |
| 18762 | cd .. |
| 18763 | $RM -r conftest |
| 18764 | $RM conftest* |
| 18765 | |
| 18766 | fi |
| 18767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18768 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 18769 | |
| 18770 | |
| 18771 | |
| 18772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 18773 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18774 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18775 | $as_echo_n "(cached) " >&6 |
| 18776 | else |
| 18777 | lt_cv_prog_compiler_c_o_CXX=no |
| 18778 | $RM -r conftest 2>/dev/null |
| 18779 | mkdir conftest |
| 18780 | cd conftest |
| 18781 | mkdir out |
| 18782 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 18783 | |
| 18784 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 18785 | # Insert the option either (1) after the last *FLAGS variable, or |
| 18786 | # (2) before a word containing "conftest.", or (3) at the end. |
| 18787 | # Note that $ac_compile itself does not contain backslashes and begins |
| 18788 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 18789 | lt_compile=`echo "$ac_compile" | $SED \ |
| 18790 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 18791 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 18792 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18793 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18794 | (eval "$lt_compile" 2>out/conftest.err) |
| 18795 | ac_status=$? |
| 18796 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18798 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 18799 | then |
| 18800 | # The compiler can only warn and ignore the option if not recognized |
| 18801 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18802 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18803 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 18804 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 18805 | lt_cv_prog_compiler_c_o_CXX=yes |
| 18806 | fi |
| 18807 | fi |
| 18808 | chmod u+w . 2>&5 |
| 18809 | $RM conftest* |
| 18810 | # SGI C++ compiler will create directory out/ii_files/ for |
| 18811 | # template instantiation |
| 18812 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 18813 | $RM out/* && rmdir out |
| 18814 | cd .. |
| 18815 | $RM -r conftest |
| 18816 | $RM conftest* |
| 18817 | |
| 18818 | fi |
| 18819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 18820 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 18821 | |
| 18822 | |
| 18823 | |
| 18824 | |
| 18825 | hard_links="nottested" |
| 18826 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 18827 | # do not overwrite the value of need_locks provided by the user |
| 18828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 18829 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 18830 | hard_links=yes |
| 18831 | $RM conftest* |
| 18832 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18833 | touch conftest.a |
| 18834 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 18835 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 18836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 18837 | $as_echo "$hard_links" >&6; } |
| 18838 | if test "$hard_links" = no; then |
| 18839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 18840 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 18841 | need_locks=warn |
| 18842 | fi |
| 18843 | else |
| 18844 | need_locks=no |
| 18845 | fi |
| 18846 | |
| 18847 | |
| 18848 | |
| 18849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18850 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 18851 | |
| 18852 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18853 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18854 | case $host_os in |
| 18855 | aix[4-9]*) |
| 18856 | # If we're using GNU nm, then we don't want the "-C" option. |
| 18857 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18858 | # Also, AIX nm treats weak defined symbols like other global defined |
| 18859 | # symbols, whereas GNU nm marks them as "W". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18860 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18861 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18862 | else |
| 18863 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 18864 | fi |
| 18865 | ;; |
| 18866 | pw32*) |
| 18867 | export_symbols_cmds_CXX="$ltdll_cmds" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18868 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18869 | cygwin* | mingw* | cegcc*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18870 | case $cc_basename in |
| 18871 | cl*) ;; |
| 18872 | *) |
| 18873 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 18874 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 18875 | ;; |
| 18876 | esac |
| 18877 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18878 | *) |
| 18879 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18880 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18881 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18882 | |
| 18883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 18884 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 18885 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 18886 | |
| 18887 | with_gnu_ld_CXX=$with_gnu_ld |
| 18888 | |
| 18889 | |
| 18890 | |
| 18891 | |
| 18892 | |
| 18893 | |
| 18894 | # |
| 18895 | # Do we need to explicitly link libc? |
| 18896 | # |
| 18897 | case "x$archive_cmds_need_lc_CXX" in |
| 18898 | x|xyes) |
| 18899 | # Assume -lc should be added |
| 18900 | archive_cmds_need_lc_CXX=yes |
| 18901 | |
| 18902 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 18903 | case $archive_cmds_CXX in |
| 18904 | *'~'*) |
| 18905 | # FIXME: we may have to deal with multi-command sequences. |
| 18906 | ;; |
| 18907 | '$CC '*) |
| 18908 | # Test whether the compiler implicitly links with -lc since on some |
| 18909 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 18910 | # to ld, don't add -lc before -lgcc. |
| 18911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 18912 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18913 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18914 | $as_echo_n "(cached) " >&6 |
| 18915 | else |
| 18916 | $RM conftest* |
| 18917 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18918 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18919 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18920 | (eval $ac_compile) 2>&5 |
| 18921 | ac_status=$? |
| 18922 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18923 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18924 | soname=conftest |
| 18925 | lib=conftest |
| 18926 | libobjs=conftest.$ac_objext |
| 18927 | deplibs= |
| 18928 | wl=$lt_prog_compiler_wl_CXX |
| 18929 | pic_flag=$lt_prog_compiler_pic_CXX |
| 18930 | compiler_flags=-v |
| 18931 | linker_flags=-v |
| 18932 | verstring= |
| 18933 | output_objdir=. |
| 18934 | libname=conftest |
| 18935 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 18936 | allow_undefined_flag_CXX= |
| 18937 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18938 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 18939 | ac_status=$? |
| 18940 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18941 | test $ac_status = 0; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18942 | then |
| 18943 | lt_cv_archive_cmds_need_lc_CXX=no |
| 18944 | else |
| 18945 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 18946 | fi |
| 18947 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 18948 | else |
| 18949 | cat conftest.err 1>&5 |
| 18950 | fi |
| 18951 | $RM conftest* |
| 18952 | |
| 18953 | fi |
| 18954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 18955 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 18956 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18957 | ;; |
| 18958 | esac |
| 18959 | fi |
| 18960 | ;; |
| 18961 | esac |
| 18962 | |
| 18963 | |
| 18964 | |
| 18965 | |
| 18966 | |
| 18967 | |
| 18968 | |
| 18969 | |
| 18970 | |
| 18971 | |
| 18972 | |
| 18973 | |
| 18974 | |
| 18975 | |
| 18976 | |
| 18977 | |
| 18978 | |
| 18979 | |
| 18980 | |
| 18981 | |
| 18982 | |
| 18983 | |
| 18984 | |
| 18985 | |
| 18986 | |
| 18987 | |
| 18988 | |
| 18989 | |
| 18990 | |
| 18991 | |
| 18992 | |
| 18993 | |
| 18994 | |
| 18995 | |
| 18996 | |
| 18997 | |
| 18998 | |
| 18999 | |
| 19000 | |
| 19001 | |
| 19002 | |
| 19003 | |
| 19004 | |
| 19005 | |
| 19006 | |
| 19007 | |
| 19008 | |
| 19009 | |
| 19010 | |
| 19011 | |
| 19012 | |
| 19013 | |
| 19014 | |
| 19015 | |
| 19016 | |
| 19017 | |
| 19018 | |
| 19019 | |
| 19020 | |
| 19021 | |
| 19022 | |
| 19023 | |
| 19024 | |
| 19025 | |
| 19026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 19027 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 19028 | |
| 19029 | library_names_spec= |
| 19030 | libname_spec='lib$name' |
| 19031 | soname_spec= |
| 19032 | shrext_cmds=".so" |
| 19033 | postinstall_cmds= |
| 19034 | postuninstall_cmds= |
| 19035 | finish_cmds= |
| 19036 | finish_eval= |
| 19037 | shlibpath_var= |
| 19038 | shlibpath_overrides_runpath=unknown |
| 19039 | version_type=none |
| 19040 | dynamic_linker="$host_os ld.so" |
| 19041 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 19042 | need_lib_prefix=unknown |
| 19043 | hardcode_into_libs=no |
| 19044 | |
| 19045 | # when you set need_version to no, make sure it does not cause -set_version |
| 19046 | # flags to be left without arguments |
| 19047 | need_version=unknown |
| 19048 | |
| 19049 | case $host_os in |
| 19050 | aix3*) |
| 19051 | version_type=linux |
| 19052 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 19053 | shlibpath_var=LIBPATH |
| 19054 | |
| 19055 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 19056 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19057 | ;; |
| 19058 | |
| 19059 | aix[4-9]*) |
| 19060 | version_type=linux |
| 19061 | need_lib_prefix=no |
| 19062 | need_version=no |
| 19063 | hardcode_into_libs=yes |
| 19064 | if test "$host_cpu" = ia64; then |
| 19065 | # AIX 5 supports IA64 |
| 19066 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 19067 | shlibpath_var=LD_LIBRARY_PATH |
| 19068 | else |
| 19069 | # With GCC up to 2.95.x, collect2 would create an import file |
| 19070 | # for dependence libraries. The import file would start with |
| 19071 | # the line `#! .'. This would cause the generated library to |
| 19072 | # depend on `.', always an invalid library. This was fixed in |
| 19073 | # development snapshots of GCC prior to 3.0. |
| 19074 | case $host_os in |
| 19075 | aix4 | aix4.[01] | aix4.[01].*) |
| 19076 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 19077 | echo ' yes ' |
| 19078 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 19079 | : |
| 19080 | else |
| 19081 | can_build_shared=no |
| 19082 | fi |
| 19083 | ;; |
| 19084 | esac |
| 19085 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 19086 | # soname into executable. Probably we can add versioning support to |
| 19087 | # collect2, so additional links can be useful in future. |
| 19088 | if test "$aix_use_runtimelinking" = yes; then |
| 19089 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 19090 | # instead of lib<name>.a to let people know that these are not |
| 19091 | # typical AIX shared libraries. |
| 19092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19093 | else |
| 19094 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 19095 | # and later when we are not doing run time linking. |
| 19096 | library_names_spec='${libname}${release}.a $libname.a' |
| 19097 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19098 | fi |
| 19099 | shlibpath_var=LIBPATH |
| 19100 | fi |
| 19101 | ;; |
| 19102 | |
| 19103 | amigaos*) |
| 19104 | case $host_cpu in |
| 19105 | powerpc) |
| 19106 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 19107 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 19108 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19109 | ;; |
| 19110 | m68k) |
| 19111 | library_names_spec='$libname.ixlibrary $libname.a' |
| 19112 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19113 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19114 | ;; |
| 19115 | esac |
| 19116 | ;; |
| 19117 | |
| 19118 | beos*) |
| 19119 | library_names_spec='${libname}${shared_ext}' |
| 19120 | dynamic_linker="$host_os ld.so" |
| 19121 | shlibpath_var=LIBRARY_PATH |
| 19122 | ;; |
| 19123 | |
| 19124 | bsdi[45]*) |
| 19125 | version_type=linux |
| 19126 | need_version=no |
| 19127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19128 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19129 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 19130 | shlibpath_var=LD_LIBRARY_PATH |
| 19131 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 19132 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 19133 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 19134 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 19135 | # libtool to hard-code these into programs |
| 19136 | ;; |
| 19137 | |
| 19138 | cygwin* | mingw* | pw32* | cegcc*) |
| 19139 | version_type=windows |
| 19140 | shrext_cmds=".dll" |
| 19141 | need_version=no |
| 19142 | need_lib_prefix=no |
| 19143 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19144 | case $GCC,$cc_basename in |
| 19145 | yes,*) |
| 19146 | # gcc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19147 | library_names_spec='$libname.dll.a' |
| 19148 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19149 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19150 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 19151 | dldir=$destdir/`dirname \$dlpath`~ |
| 19152 | test -d \$dldir || mkdir -p \$dldir~ |
| 19153 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 19154 | chmod a+x \$dldir/$dlname~ |
| 19155 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 19156 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 19157 | fi' |
| 19158 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19159 | dlpath=$dir/\$dldll~ |
| 19160 | $RM \$dlpath' |
| 19161 | shlibpath_overrides_runpath=yes |
| 19162 | |
| 19163 | case $host_os in |
| 19164 | cygwin*) |
| 19165 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 19166 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19167 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19168 | ;; |
| 19169 | mingw* | cegcc*) |
| 19170 | # MinGW DLLs use traditional 'lib' prefix |
| 19171 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19172 | ;; |
| 19173 | pw32*) |
| 19174 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 19175 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19176 | ;; |
| 19177 | esac |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19178 | dynamic_linker='Win32 ld.exe' |
| 19179 | ;; |
| 19180 | |
| 19181 | *,cl*) |
| 19182 | # Native MSVC |
| 19183 | libname_spec='$name' |
| 19184 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 19185 | library_names_spec='${libname}.dll.lib' |
| 19186 | |
| 19187 | case $build_os in |
| 19188 | mingw*) |
| 19189 | sys_lib_search_path_spec= |
| 19190 | lt_save_ifs=$IFS |
| 19191 | IFS=';' |
| 19192 | for lt_path in $LIB |
| 19193 | do |
| 19194 | IFS=$lt_save_ifs |
| 19195 | # Let DOS variable expansion print the short 8.3 style file name. |
| 19196 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 19197 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 19198 | done |
| 19199 | IFS=$lt_save_ifs |
| 19200 | # Convert to MSYS style. |
| 19201 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 19202 | ;; |
| 19203 | cygwin*) |
| 19204 | # Convert to unix form, then to dos form, then back to unix form |
| 19205 | # but this time dos style (no spaces!) so that the unix form looks |
| 19206 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 19207 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 19208 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 19209 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19210 | ;; |
| 19211 | *) |
| 19212 | sys_lib_search_path_spec="$LIB" |
| 19213 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 19214 | # It is most probably a Windows format PATH. |
| 19215 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 19216 | else |
| 19217 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 19218 | fi |
| 19219 | # FIXME: find the short name or the path components, as spaces are |
| 19220 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 19221 | ;; |
| 19222 | esac |
| 19223 | |
| 19224 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 19225 | postinstall_cmds='base_file=`basename \${file}`~ |
| 19226 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 19227 | dldir=$destdir/`dirname \$dlpath`~ |
| 19228 | test -d \$dldir || mkdir -p \$dldir~ |
| 19229 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 19230 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 19231 | dlpath=$dir/\$dldll~ |
| 19232 | $RM \$dlpath' |
| 19233 | shlibpath_overrides_runpath=yes |
| 19234 | dynamic_linker='Win32 link.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19235 | ;; |
| 19236 | |
| 19237 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19238 | # Assume MSVC wrapper |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19239 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19240 | dynamic_linker='Win32 ld.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19241 | ;; |
| 19242 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19243 | # FIXME: first we should search . and the directory the executable is in |
| 19244 | shlibpath_var=PATH |
| 19245 | ;; |
| 19246 | |
| 19247 | darwin* | rhapsody*) |
| 19248 | dynamic_linker="$host_os dyld" |
| 19249 | version_type=darwin |
| 19250 | need_lib_prefix=no |
| 19251 | need_version=no |
| 19252 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 19253 | soname_spec='${libname}${release}${major}$shared_ext' |
| 19254 | shlibpath_overrides_runpath=yes |
| 19255 | shlibpath_var=DYLD_LIBRARY_PATH |
| 19256 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 19257 | |
| 19258 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 19259 | ;; |
| 19260 | |
| 19261 | dgux*) |
| 19262 | version_type=linux |
| 19263 | need_lib_prefix=no |
| 19264 | need_version=no |
| 19265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 19266 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19267 | shlibpath_var=LD_LIBRARY_PATH |
| 19268 | ;; |
| 19269 | |
| 19270 | freebsd1*) |
| 19271 | dynamic_linker=no |
| 19272 | ;; |
| 19273 | |
| 19274 | freebsd* | dragonfly*) |
| 19275 | # DragonFly does not have aout. When/if they implement a new |
| 19276 | # versioning mechanism, adjust this. |
| 19277 | if test -x /usr/bin/objformat; then |
| 19278 | objformat=`/usr/bin/objformat` |
| 19279 | else |
| 19280 | case $host_os in |
| 19281 | freebsd[123]*) objformat=aout ;; |
| 19282 | *) objformat=elf ;; |
| 19283 | esac |
| 19284 | fi |
| 19285 | version_type=freebsd-$objformat |
| 19286 | case $version_type in |
| 19287 | freebsd-elf*) |
| 19288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19289 | need_version=no |
| 19290 | need_lib_prefix=no |
| 19291 | ;; |
| 19292 | freebsd-*) |
| 19293 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 19294 | need_version=yes |
| 19295 | ;; |
| 19296 | esac |
| 19297 | shlibpath_var=LD_LIBRARY_PATH |
| 19298 | case $host_os in |
| 19299 | freebsd2*) |
| 19300 | shlibpath_overrides_runpath=yes |
| 19301 | ;; |
| 19302 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 19303 | shlibpath_overrides_runpath=yes |
| 19304 | hardcode_into_libs=yes |
| 19305 | ;; |
| 19306 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 19307 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 19308 | shlibpath_overrides_runpath=no |
| 19309 | hardcode_into_libs=yes |
| 19310 | ;; |
| 19311 | *) # from 4.6 on, and DragonFly |
| 19312 | shlibpath_overrides_runpath=yes |
| 19313 | hardcode_into_libs=yes |
| 19314 | ;; |
| 19315 | esac |
| 19316 | ;; |
| 19317 | |
| 19318 | gnu*) |
| 19319 | version_type=linux |
| 19320 | need_lib_prefix=no |
| 19321 | need_version=no |
| 19322 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19323 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19324 | shlibpath_var=LD_LIBRARY_PATH |
| 19325 | hardcode_into_libs=yes |
| 19326 | ;; |
| 19327 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19328 | haiku*) |
| 19329 | version_type=linux |
| 19330 | need_lib_prefix=no |
| 19331 | need_version=no |
| 19332 | dynamic_linker="$host_os runtime_loader" |
| 19333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 19334 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19335 | shlibpath_var=LIBRARY_PATH |
| 19336 | shlibpath_overrides_runpath=yes |
| 19337 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 19338 | hardcode_into_libs=yes |
| 19339 | ;; |
| 19340 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19341 | hpux9* | hpux10* | hpux11*) |
| 19342 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 19343 | # link against other versions. |
| 19344 | version_type=sunos |
| 19345 | need_lib_prefix=no |
| 19346 | need_version=no |
| 19347 | case $host_cpu in |
| 19348 | ia64*) |
| 19349 | shrext_cmds='.so' |
| 19350 | hardcode_into_libs=yes |
| 19351 | dynamic_linker="$host_os dld.so" |
| 19352 | shlibpath_var=LD_LIBRARY_PATH |
| 19353 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19355 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19356 | if test "X$HPUX_IA64_MODE" = X32; then |
| 19357 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 19358 | else |
| 19359 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 19360 | fi |
| 19361 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19362 | ;; |
| 19363 | hppa*64*) |
| 19364 | shrext_cmds='.sl' |
| 19365 | hardcode_into_libs=yes |
| 19366 | dynamic_linker="$host_os dld.sl" |
| 19367 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 19368 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 19369 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19370 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19371 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 19372 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 19373 | ;; |
| 19374 | *) |
| 19375 | shrext_cmds='.sl' |
| 19376 | dynamic_linker="$host_os dld.sl" |
| 19377 | shlibpath_var=SHLIB_PATH |
| 19378 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 19379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19380 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19381 | ;; |
| 19382 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19383 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19384 | postinstall_cmds='chmod 555 $lib' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19385 | # or fails outright, so override atomically: |
| 19386 | install_override_mode=555 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19387 | ;; |
| 19388 | |
| 19389 | interix[3-9]*) |
| 19390 | version_type=linux |
| 19391 | need_lib_prefix=no |
| 19392 | need_version=no |
| 19393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19394 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19395 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 19396 | shlibpath_var=LD_LIBRARY_PATH |
| 19397 | shlibpath_overrides_runpath=no |
| 19398 | hardcode_into_libs=yes |
| 19399 | ;; |
| 19400 | |
| 19401 | irix5* | irix6* | nonstopux*) |
| 19402 | case $host_os in |
| 19403 | nonstopux*) version_type=nonstopux ;; |
| 19404 | *) |
| 19405 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 19406 | version_type=linux |
| 19407 | else |
| 19408 | version_type=irix |
| 19409 | fi ;; |
| 19410 | esac |
| 19411 | need_lib_prefix=no |
| 19412 | need_version=no |
| 19413 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19415 | case $host_os in |
| 19416 | irix5* | nonstopux*) |
| 19417 | libsuff= shlibsuff= |
| 19418 | ;; |
| 19419 | *) |
| 19420 | case $LD in # libtool.m4 will add one of these switches to LD |
| 19421 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 19422 | libsuff= shlibsuff= libmagic=32-bit;; |
| 19423 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 19424 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 19425 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 19426 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 19427 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 19428 | esac |
| 19429 | ;; |
| 19430 | esac |
| 19431 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 19432 | shlibpath_overrides_runpath=no |
| 19433 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 19434 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 19435 | hardcode_into_libs=yes |
| 19436 | ;; |
| 19437 | |
| 19438 | # No shared lib support for Linux oldld, aout, or coff. |
| 19439 | linux*oldld* | linux*aout* | linux*coff*) |
| 19440 | dynamic_linker=no |
| 19441 | ;; |
| 19442 | |
| 19443 | # This must be Linux ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19444 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19445 | version_type=linux |
| 19446 | need_lib_prefix=no |
| 19447 | need_version=no |
| 19448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19449 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19450 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 19451 | shlibpath_var=LD_LIBRARY_PATH |
| 19452 | shlibpath_overrides_runpath=no |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19453 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19454 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19455 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19456 | $as_echo_n "(cached) " >&6 |
| 19457 | else |
| 19458 | lt_cv_shlibpath_overrides_runpath=no |
| 19459 | save_LDFLAGS=$LDFLAGS |
| 19460 | save_libdir=$libdir |
| 19461 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 19462 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 19463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19464 | /* end confdefs.h. */ |
| 19465 | |
| 19466 | int |
| 19467 | main () |
| 19468 | { |
| 19469 | |
| 19470 | ; |
| 19471 | return 0; |
| 19472 | } |
| 19473 | _ACEOF |
| 19474 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 19475 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19476 | lt_cv_shlibpath_overrides_runpath=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19477 | fi |
| 19478 | fi |
| 19479 | rm -f core conftest.err conftest.$ac_objext \ |
| 19480 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19481 | LDFLAGS=$save_LDFLAGS |
| 19482 | libdir=$save_libdir |
| 19483 | |
| 19484 | fi |
| 19485 | |
| 19486 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19487 | |
| 19488 | # This implies no fast_install, which is unacceptable. |
| 19489 | # Some rework will be needed to allow for fast_install |
| 19490 | # before this can be enabled. |
| 19491 | hardcode_into_libs=yes |
| 19492 | |
| 19493 | # Add ABI-specific directories to the system library path. |
| 19494 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 19495 | |
| 19496 | # Append ld.so.conf contents to the search path |
| 19497 | if test -f /etc/ld.so.conf; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19498 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19499 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19500 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19501 | fi |
| 19502 | |
| 19503 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 19504 | # powerpc, because MkLinux only supported shared libraries with the |
| 19505 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 19506 | # most powerpc-linux boxes support dynamic linking these days and |
| 19507 | # people can always --disable-shared, the test was removed, and we |
| 19508 | # assume the GNU/Linux dynamic linker is in use. |
| 19509 | dynamic_linker='GNU/Linux ld.so' |
| 19510 | ;; |
| 19511 | |
| 19512 | netbsd*) |
| 19513 | version_type=sunos |
| 19514 | need_lib_prefix=no |
| 19515 | need_version=no |
| 19516 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 19517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19518 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19519 | dynamic_linker='NetBSD (a.out) ld.so' |
| 19520 | else |
| 19521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 19522 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19523 | dynamic_linker='NetBSD ld.elf_so' |
| 19524 | fi |
| 19525 | shlibpath_var=LD_LIBRARY_PATH |
| 19526 | shlibpath_overrides_runpath=yes |
| 19527 | hardcode_into_libs=yes |
| 19528 | ;; |
| 19529 | |
| 19530 | newsos6) |
| 19531 | version_type=linux |
| 19532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19533 | shlibpath_var=LD_LIBRARY_PATH |
| 19534 | shlibpath_overrides_runpath=yes |
| 19535 | ;; |
| 19536 | |
| 19537 | *nto* | *qnx*) |
| 19538 | version_type=qnx |
| 19539 | need_lib_prefix=no |
| 19540 | need_version=no |
| 19541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19542 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19543 | shlibpath_var=LD_LIBRARY_PATH |
| 19544 | shlibpath_overrides_runpath=no |
| 19545 | hardcode_into_libs=yes |
| 19546 | dynamic_linker='ldqnx.so' |
| 19547 | ;; |
| 19548 | |
| 19549 | openbsd*) |
| 19550 | version_type=sunos |
| 19551 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 19552 | need_lib_prefix=no |
| 19553 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 19554 | case $host_os in |
| 19555 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 19556 | *) need_version=no ;; |
| 19557 | esac |
| 19558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19559 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 19560 | shlibpath_var=LD_LIBRARY_PATH |
| 19561 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 19562 | case $host_os in |
| 19563 | openbsd2.[89] | openbsd2.[89].*) |
| 19564 | shlibpath_overrides_runpath=no |
| 19565 | ;; |
| 19566 | *) |
| 19567 | shlibpath_overrides_runpath=yes |
| 19568 | ;; |
| 19569 | esac |
| 19570 | else |
| 19571 | shlibpath_overrides_runpath=yes |
| 19572 | fi |
| 19573 | ;; |
| 19574 | |
| 19575 | os2*) |
| 19576 | libname_spec='$name' |
| 19577 | shrext_cmds=".dll" |
| 19578 | need_lib_prefix=no |
| 19579 | library_names_spec='$libname${shared_ext} $libname.a' |
| 19580 | dynamic_linker='OS/2 ld.exe' |
| 19581 | shlibpath_var=LIBPATH |
| 19582 | ;; |
| 19583 | |
| 19584 | osf3* | osf4* | osf5*) |
| 19585 | version_type=osf |
| 19586 | need_lib_prefix=no |
| 19587 | need_version=no |
| 19588 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19590 | shlibpath_var=LD_LIBRARY_PATH |
| 19591 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 19592 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 19593 | ;; |
| 19594 | |
| 19595 | rdos*) |
| 19596 | dynamic_linker=no |
| 19597 | ;; |
| 19598 | |
| 19599 | solaris*) |
| 19600 | version_type=linux |
| 19601 | need_lib_prefix=no |
| 19602 | need_version=no |
| 19603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19604 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19605 | shlibpath_var=LD_LIBRARY_PATH |
| 19606 | shlibpath_overrides_runpath=yes |
| 19607 | hardcode_into_libs=yes |
| 19608 | # ldd complains unless libraries are executable |
| 19609 | postinstall_cmds='chmod +x $lib' |
| 19610 | ;; |
| 19611 | |
| 19612 | sunos4*) |
| 19613 | version_type=sunos |
| 19614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 19615 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 19616 | shlibpath_var=LD_LIBRARY_PATH |
| 19617 | shlibpath_overrides_runpath=yes |
| 19618 | if test "$with_gnu_ld" = yes; then |
| 19619 | need_lib_prefix=no |
| 19620 | fi |
| 19621 | need_version=yes |
| 19622 | ;; |
| 19623 | |
| 19624 | sysv4 | sysv4.3*) |
| 19625 | version_type=linux |
| 19626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19627 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19628 | shlibpath_var=LD_LIBRARY_PATH |
| 19629 | case $host_vendor in |
| 19630 | sni) |
| 19631 | shlibpath_overrides_runpath=no |
| 19632 | need_lib_prefix=no |
| 19633 | runpath_var=LD_RUN_PATH |
| 19634 | ;; |
| 19635 | siemens) |
| 19636 | need_lib_prefix=no |
| 19637 | ;; |
| 19638 | motorola) |
| 19639 | need_lib_prefix=no |
| 19640 | need_version=no |
| 19641 | shlibpath_overrides_runpath=no |
| 19642 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 19643 | ;; |
| 19644 | esac |
| 19645 | ;; |
| 19646 | |
| 19647 | sysv4*MP*) |
| 19648 | if test -d /usr/nec ;then |
| 19649 | version_type=linux |
| 19650 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 19651 | soname_spec='$libname${shared_ext}.$major' |
| 19652 | shlibpath_var=LD_LIBRARY_PATH |
| 19653 | fi |
| 19654 | ;; |
| 19655 | |
| 19656 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 19657 | version_type=freebsd-elf |
| 19658 | need_lib_prefix=no |
| 19659 | need_version=no |
| 19660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 19661 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19662 | shlibpath_var=LD_LIBRARY_PATH |
| 19663 | shlibpath_overrides_runpath=yes |
| 19664 | hardcode_into_libs=yes |
| 19665 | if test "$with_gnu_ld" = yes; then |
| 19666 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 19667 | else |
| 19668 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 19669 | case $host_os in |
| 19670 | sco3.2v5*) |
| 19671 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 19672 | ;; |
| 19673 | esac |
| 19674 | fi |
| 19675 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 19676 | ;; |
| 19677 | |
| 19678 | tpf*) |
| 19679 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 19680 | version_type=linux |
| 19681 | need_lib_prefix=no |
| 19682 | need_version=no |
| 19683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19684 | shlibpath_var=LD_LIBRARY_PATH |
| 19685 | shlibpath_overrides_runpath=no |
| 19686 | hardcode_into_libs=yes |
| 19687 | ;; |
| 19688 | |
| 19689 | uts4*) |
| 19690 | version_type=linux |
| 19691 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 19692 | soname_spec='${libname}${release}${shared_ext}$major' |
| 19693 | shlibpath_var=LD_LIBRARY_PATH |
| 19694 | ;; |
| 19695 | |
| 19696 | *) |
| 19697 | dynamic_linker=no |
| 19698 | ;; |
| 19699 | esac |
| 19700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 19701 | $as_echo "$dynamic_linker" >&6; } |
| 19702 | test "$dynamic_linker" = no && can_build_shared=no |
| 19703 | |
| 19704 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 19705 | if test "$GCC" = yes; then |
| 19706 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 19707 | fi |
| 19708 | |
| 19709 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 19710 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 19711 | fi |
| 19712 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 19713 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 19714 | fi |
| 19715 | |
| 19716 | |
| 19717 | |
| 19718 | |
| 19719 | |
| 19720 | |
| 19721 | |
| 19722 | |
| 19723 | |
| 19724 | |
| 19725 | |
| 19726 | |
| 19727 | |
| 19728 | |
| 19729 | |
| 19730 | |
| 19731 | |
| 19732 | |
| 19733 | |
| 19734 | |
| 19735 | |
| 19736 | |
| 19737 | |
| 19738 | |
| 19739 | |
| 19740 | |
| 19741 | |
| 19742 | |
| 19743 | |
| 19744 | |
| 19745 | |
| 19746 | |
| 19747 | |
| 19748 | |
| 19749 | |
| 19750 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19751 | |
| 19752 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 19754 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 19755 | hardcode_action_CXX= |
| 19756 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 19757 | test -n "$runpath_var_CXX" || |
| 19758 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 19759 | |
| 19760 | # We can hardcode non-existent directories. |
| 19761 | if test "$hardcode_direct_CXX" != no && |
| 19762 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 19763 | # have to relink, otherwise we might link with an installed library |
| 19764 | # when we should be linking with a yet-to-be-installed one |
| 19765 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 19766 | test "$hardcode_minus_L_CXX" != no; then |
| 19767 | # Linking always hardcodes the temporary library directory. |
| 19768 | hardcode_action_CXX=relink |
| 19769 | else |
| 19770 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 19771 | hardcode_action_CXX=immediate |
| 19772 | fi |
| 19773 | else |
| 19774 | # We cannot hardcode anything, or else we can only hardcode existing |
| 19775 | # directories. |
| 19776 | hardcode_action_CXX=unsupported |
| 19777 | fi |
| 19778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 19779 | $as_echo "$hardcode_action_CXX" >&6; } |
| 19780 | |
| 19781 | if test "$hardcode_action_CXX" = relink || |
| 19782 | test "$inherit_rpath_CXX" = yes; then |
| 19783 | # Fast installation is not supported |
| 19784 | enable_fast_install=no |
| 19785 | elif test "$shlibpath_overrides_runpath" = yes || |
| 19786 | test "$enable_shared" = no; then |
| 19787 | # Fast installation is not necessary |
| 19788 | enable_fast_install=needless |
| 19789 | fi |
| 19790 | |
| 19791 | |
| 19792 | |
| 19793 | |
| 19794 | |
| 19795 | |
| 19796 | |
| 19797 | fi # test -n "$compiler" |
| 19798 | |
| 19799 | CC=$lt_save_CC |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19800 | CFLAGS=$lt_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19801 | LDCXX=$LD |
| 19802 | LD=$lt_save_LD |
| 19803 | GCC=$lt_save_GCC |
| 19804 | with_gnu_ld=$lt_save_with_gnu_ld |
| 19805 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 19806 | lt_cv_path_LD=$lt_save_path_LD |
| 19807 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 19808 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 19809 | fi # test "$_lt_caught_CXX_error" != yes |
| 19810 | |
| 19811 | ac_ext=c |
| 19812 | ac_cpp='$CPP $CPPFLAGS' |
| 19813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19816 | |
| 19817 | |
| 19818 | |
| 19819 | |
| 19820 | |
| 19821 | |
| 19822 | |
| 19823 | |
| 19824 | |
| 19825 | |
| 19826 | |
| 19827 | |
| 19828 | |
| 19829 | ac_config_commands="$ac_config_commands libtool" |
| 19830 | |
| 19831 | |
| 19832 | |
| 19833 | |
| 19834 | # Only expand once: |
| 19835 | |
| 19836 | |
| 19837 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19838 | |
| 19839 | |
| 19840 | # Configure libltdl |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19841 | |
| 19842 | |
| 19843 | |
| 19844 | |
| 19845 | |
| 19846 | |
| 19847 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| 19849 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19850 | if ${libltdl_cv_shlibext+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19851 | $as_echo_n "(cached) " >&6 |
| 19852 | else |
| 19853 | |
| 19854 | module=yes |
| 19855 | eval libltdl_cv_shlibext=$shrext_cmds |
| 19856 | |
| 19857 | fi |
| 19858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
| 19859 | $as_echo "$libltdl_cv_shlibext" >&6; } |
| 19860 | if test -n "$libltdl_cv_shlibext"; then |
| 19861 | |
| 19862 | cat >>confdefs.h <<_ACEOF |
| 19863 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" |
| 19864 | _ACEOF |
| 19865 | |
| 19866 | fi |
| 19867 | |
| 19868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| 19869 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19870 | if ${lt_cv_module_path_var+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19871 | $as_echo_n "(cached) " >&6 |
| 19872 | else |
| 19873 | lt_cv_module_path_var="$shlibpath_var" |
| 19874 | fi |
| 19875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| 19876 | $as_echo "$lt_cv_module_path_var" >&6; } |
| 19877 | if test -n "$lt_cv_module_path_var"; then |
| 19878 | |
| 19879 | cat >>confdefs.h <<_ACEOF |
| 19880 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
| 19881 | _ACEOF |
| 19882 | |
| 19883 | fi |
| 19884 | |
| 19885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
| 19886 | $as_echo_n "checking for the default library search path... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19887 | if ${lt_cv_sys_dlsearch_path+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19888 | $as_echo_n "(cached) " >&6 |
| 19889 | else |
| 19890 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 19891 | fi |
| 19892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| 19893 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 19894 | if test -n "$lt_cv_sys_dlsearch_path"; then |
| 19895 | sys_dlsearch_path= |
| 19896 | for dir in $lt_cv_sys_dlsearch_path; do |
| 19897 | if test -z "$sys_dlsearch_path"; then |
| 19898 | sys_dlsearch_path="$dir" |
| 19899 | else |
| 19900 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 19901 | fi |
| 19902 | done |
| 19903 | |
| 19904 | cat >>confdefs.h <<_ACEOF |
| 19905 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
| 19906 | _ACEOF |
| 19907 | |
| 19908 | fi |
| 19909 | |
| 19910 | |
| 19911 | LT_DLLOADERS= |
| 19912 | |
| 19913 | |
| 19914 | ac_ext=c |
| 19915 | ac_cpp='$CPP $CPPFLAGS' |
| 19916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19919 | |
| 19920 | |
| 19921 | LIBADD_DLOPEN= |
| 19922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| 19923 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19924 | if ${ac_cv_search_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19925 | $as_echo_n "(cached) " >&6 |
| 19926 | else |
| 19927 | ac_func_search_save_LIBS=$LIBS |
| 19928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19929 | /* end confdefs.h. */ |
| 19930 | |
| 19931 | /* Override any GCC internal prototype to avoid an error. |
| 19932 | Use char because int might match the return type of a GCC |
| 19933 | builtin and then its argument prototype would still apply. */ |
| 19934 | #ifdef __cplusplus |
| 19935 | extern "C" |
| 19936 | #endif |
| 19937 | char dlopen (); |
| 19938 | int |
| 19939 | main () |
| 19940 | { |
| 19941 | return dlopen (); |
| 19942 | ; |
| 19943 | return 0; |
| 19944 | } |
| 19945 | _ACEOF |
| 19946 | for ac_lib in '' dl; do |
| 19947 | if test -z "$ac_lib"; then |
| 19948 | ac_res="none required" |
| 19949 | else |
| 19950 | ac_res=-l$ac_lib |
| 19951 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19952 | fi |
| 19953 | if ac_fn_c_try_link "$LINENO"; then : |
| 19954 | ac_cv_search_dlopen=$ac_res |
| 19955 | fi |
| 19956 | rm -f core conftest.err conftest.$ac_objext \ |
| 19957 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19958 | if ${ac_cv_search_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19959 | break |
| 19960 | fi |
| 19961 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19962 | if ${ac_cv_search_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19963 | |
| 19964 | else |
| 19965 | ac_cv_search_dlopen=no |
| 19966 | fi |
| 19967 | rm conftest.$ac_ext |
| 19968 | LIBS=$ac_func_search_save_LIBS |
| 19969 | fi |
| 19970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| 19971 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 19972 | ac_res=$ac_cv_search_dlopen |
| 19973 | if test "$ac_res" != no; then : |
| 19974 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19975 | |
| 19976 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 19977 | |
| 19978 | if test "$ac_cv_search_dlopen" != "none required" ; then |
| 19979 | LIBADD_DLOPEN="-ldl" |
| 19980 | fi |
| 19981 | libltdl_cv_lib_dl_dlopen="yes" |
| 19982 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 19983 | else |
| 19984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19985 | /* end confdefs.h. */ |
| 19986 | #if HAVE_DLFCN_H |
| 19987 | # include <dlfcn.h> |
| 19988 | #endif |
| 19989 | |
| 19990 | int |
| 19991 | main () |
| 19992 | { |
| 19993 | dlopen(0, 0); |
| 19994 | ; |
| 19995 | return 0; |
| 19996 | } |
| 19997 | _ACEOF |
| 19998 | if ac_fn_c_try_link "$LINENO"; then : |
| 19999 | |
| 20000 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 20001 | |
| 20002 | libltdl_cv_func_dlopen="yes" |
| 20003 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 20004 | else |
| 20005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 20006 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20007 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20008 | $as_echo_n "(cached) " >&6 |
| 20009 | else |
| 20010 | ac_check_lib_save_LIBS=$LIBS |
| 20011 | LIBS="-lsvld $LIBS" |
| 20012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20013 | /* end confdefs.h. */ |
| 20014 | |
| 20015 | /* Override any GCC internal prototype to avoid an error. |
| 20016 | Use char because int might match the return type of a GCC |
| 20017 | builtin and then its argument prototype would still apply. */ |
| 20018 | #ifdef __cplusplus |
| 20019 | extern "C" |
| 20020 | #endif |
| 20021 | char dlopen (); |
| 20022 | int |
| 20023 | main () |
| 20024 | { |
| 20025 | return dlopen (); |
| 20026 | ; |
| 20027 | return 0; |
| 20028 | } |
| 20029 | _ACEOF |
| 20030 | if ac_fn_c_try_link "$LINENO"; then : |
| 20031 | ac_cv_lib_svld_dlopen=yes |
| 20032 | else |
| 20033 | ac_cv_lib_svld_dlopen=no |
| 20034 | fi |
| 20035 | rm -f core conftest.err conftest.$ac_objext \ |
| 20036 | conftest$ac_exeext conftest.$ac_ext |
| 20037 | LIBS=$ac_check_lib_save_LIBS |
| 20038 | fi |
| 20039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 20040 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20041 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20042 | |
| 20043 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| 20044 | |
| 20045 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 20046 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 20047 | fi |
| 20048 | |
| 20049 | fi |
| 20050 | rm -f core conftest.err conftest.$ac_objext \ |
| 20051 | conftest$ac_exeext conftest.$ac_ext |
| 20052 | fi |
| 20053 | |
| 20054 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 20055 | then |
| 20056 | lt_save_LIBS="$LIBS" |
| 20057 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 20058 | for ac_func in dlerror |
| 20059 | do : |
| 20060 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20061 | if test "x$ac_cv_func_dlerror" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20062 | cat >>confdefs.h <<_ACEOF |
| 20063 | #define HAVE_DLERROR 1 |
| 20064 | _ACEOF |
| 20065 | |
| 20066 | fi |
| 20067 | done |
| 20068 | |
| 20069 | LIBS="$lt_save_LIBS" |
| 20070 | fi |
| 20071 | |
| 20072 | |
| 20073 | LIBADD_SHL_LOAD= |
| 20074 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20075 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20076 | |
| 20077 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 20078 | |
| 20079 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 20080 | else |
| 20081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 20082 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20083 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20084 | $as_echo_n "(cached) " >&6 |
| 20085 | else |
| 20086 | ac_check_lib_save_LIBS=$LIBS |
| 20087 | LIBS="-ldld $LIBS" |
| 20088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20089 | /* end confdefs.h. */ |
| 20090 | |
| 20091 | /* Override any GCC internal prototype to avoid an error. |
| 20092 | Use char because int might match the return type of a GCC |
| 20093 | builtin and then its argument prototype would still apply. */ |
| 20094 | #ifdef __cplusplus |
| 20095 | extern "C" |
| 20096 | #endif |
| 20097 | char shl_load (); |
| 20098 | int |
| 20099 | main () |
| 20100 | { |
| 20101 | return shl_load (); |
| 20102 | ; |
| 20103 | return 0; |
| 20104 | } |
| 20105 | _ACEOF |
| 20106 | if ac_fn_c_try_link "$LINENO"; then : |
| 20107 | ac_cv_lib_dld_shl_load=yes |
| 20108 | else |
| 20109 | ac_cv_lib_dld_shl_load=no |
| 20110 | fi |
| 20111 | rm -f core conftest.err conftest.$ac_objext \ |
| 20112 | conftest$ac_exeext conftest.$ac_ext |
| 20113 | LIBS=$ac_check_lib_save_LIBS |
| 20114 | fi |
| 20115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 20116 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20117 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20118 | |
| 20119 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| 20120 | |
| 20121 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 20122 | LIBADD_SHL_LOAD="-ldld" |
| 20123 | fi |
| 20124 | |
| 20125 | fi |
| 20126 | |
| 20127 | |
| 20128 | |
| 20129 | case $host_os in |
| 20130 | darwin[1567].*) |
| 20131 | # We only want this for pre-Mac OS X 10.4. |
| 20132 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20133 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20134 | |
| 20135 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
| 20136 | |
| 20137 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
| 20138 | fi |
| 20139 | |
| 20140 | ;; |
| 20141 | beos*) |
| 20142 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 20143 | ;; |
| 20144 | cygwin* | mingw* | os2* | pw32*) |
| 20145 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 20146 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20147 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20148 | ac_have_decl=1 |
| 20149 | else |
| 20150 | ac_have_decl=0 |
| 20151 | fi |
| 20152 | |
| 20153 | cat >>confdefs.h <<_ACEOF |
| 20154 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
| 20155 | _ACEOF |
| 20156 | |
| 20157 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
| 20158 | ;; |
| 20159 | esac |
| 20160 | |
| 20161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 20162 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20163 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20164 | $as_echo_n "(cached) " >&6 |
| 20165 | else |
| 20166 | ac_check_lib_save_LIBS=$LIBS |
| 20167 | LIBS="-ldld $LIBS" |
| 20168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20169 | /* end confdefs.h. */ |
| 20170 | |
| 20171 | /* Override any GCC internal prototype to avoid an error. |
| 20172 | Use char because int might match the return type of a GCC |
| 20173 | builtin and then its argument prototype would still apply. */ |
| 20174 | #ifdef __cplusplus |
| 20175 | extern "C" |
| 20176 | #endif |
| 20177 | char dld_link (); |
| 20178 | int |
| 20179 | main () |
| 20180 | { |
| 20181 | return dld_link (); |
| 20182 | ; |
| 20183 | return 0; |
| 20184 | } |
| 20185 | _ACEOF |
| 20186 | if ac_fn_c_try_link "$LINENO"; then : |
| 20187 | ac_cv_lib_dld_dld_link=yes |
| 20188 | else |
| 20189 | ac_cv_lib_dld_dld_link=no |
| 20190 | fi |
| 20191 | rm -f core conftest.err conftest.$ac_objext \ |
| 20192 | conftest$ac_exeext conftest.$ac_ext |
| 20193 | LIBS=$ac_check_lib_save_LIBS |
| 20194 | fi |
| 20195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 20196 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20197 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20198 | |
| 20199 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
| 20200 | |
| 20201 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
| 20202 | fi |
| 20203 | |
| 20204 | |
| 20205 | |
| 20206 | |
| 20207 | LT_DLPREOPEN= |
| 20208 | if test -n "$LT_DLLOADERS" |
| 20209 | then |
| 20210 | for lt_loader in $LT_DLLOADERS; do |
| 20211 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
| 20212 | done |
| 20213 | |
| 20214 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
| 20215 | |
| 20216 | fi |
| 20217 | |
| 20218 | |
| 20219 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 20220 | |
| 20221 | |
| 20222 | ac_ext=c |
| 20223 | ac_cpp='$CPP $CPPFLAGS' |
| 20224 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20225 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20226 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20227 | |
| 20228 | |
| 20229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
| 20230 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20231 | if ${lt_cv_sys_symbol_underscore+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20232 | $as_echo_n "(cached) " >&6 |
| 20233 | else |
| 20234 | lt_cv_sys_symbol_underscore=no |
| 20235 | cat > conftest.$ac_ext <<_LT_EOF |
| 20236 | void nm_test_func(){} |
| 20237 | int main(){nm_test_func;return 0;} |
| 20238 | _LT_EOF |
| 20239 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 20240 | (eval $ac_compile) 2>&5 |
| 20241 | ac_status=$? |
| 20242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 20243 | test $ac_status = 0; }; then |
| 20244 | # Now try to grab the symbols. |
| 20245 | ac_nlist=conftest.nm |
| 20246 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
| 20247 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 20248 | ac_status=$? |
| 20249 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 20250 | test $ac_status = 0; } && test -s "$ac_nlist"; then |
| 20251 | # See whether the symbols have a leading underscore. |
| 20252 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 20253 | lt_cv_sys_symbol_underscore=yes |
| 20254 | else |
| 20255 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 20256 | : |
| 20257 | else |
| 20258 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 20259 | fi |
| 20260 | fi |
| 20261 | else |
| 20262 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 20263 | fi |
| 20264 | else |
| 20265 | echo "configure: failed program was:" >&5 |
| 20266 | cat conftest.c >&5 |
| 20267 | fi |
| 20268 | rm -rf conftest* |
| 20269 | |
| 20270 | fi |
| 20271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
| 20272 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
| 20273 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 20274 | |
| 20275 | |
| 20276 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 20277 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 20278 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| 20279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| 20280 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20281 | if ${libltdl_cv_need_uscore+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20282 | $as_echo_n "(cached) " >&6 |
| 20283 | else |
| 20284 | libltdl_cv_need_uscore=unknown |
| 20285 | save_LIBS="$LIBS" |
| 20286 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 20287 | if test "$cross_compiling" = yes; then : |
| 20288 | libltdl_cv_need_uscore=cross |
| 20289 | else |
| 20290 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 20291 | lt_status=$lt_dlunknown |
| 20292 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20293 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20294 | #include "confdefs.h" |
| 20295 | |
| 20296 | #if HAVE_DLFCN_H |
| 20297 | #include <dlfcn.h> |
| 20298 | #endif |
| 20299 | |
| 20300 | #include <stdio.h> |
| 20301 | |
| 20302 | #ifdef RTLD_GLOBAL |
| 20303 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 20304 | #else |
| 20305 | # ifdef DL_GLOBAL |
| 20306 | # define LT_DLGLOBAL DL_GLOBAL |
| 20307 | # else |
| 20308 | # define LT_DLGLOBAL 0 |
| 20309 | # endif |
| 20310 | #endif |
| 20311 | |
| 20312 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 20313 | find out it does not work in some platform. */ |
| 20314 | #ifndef LT_DLLAZY_OR_NOW |
| 20315 | # ifdef RTLD_LAZY |
| 20316 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 20317 | # else |
| 20318 | # ifdef DL_LAZY |
| 20319 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 20320 | # else |
| 20321 | # ifdef RTLD_NOW |
| 20322 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 20323 | # else |
| 20324 | # ifdef DL_NOW |
| 20325 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 20326 | # else |
| 20327 | # define LT_DLLAZY_OR_NOW 0 |
| 20328 | # endif |
| 20329 | # endif |
| 20330 | # endif |
| 20331 | # endif |
| 20332 | #endif |
| 20333 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20334 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 20335 | correspondingly for the symbols needed. */ |
| 20336 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20337 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20338 | #endif |
| 20339 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20340 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20341 | int main () |
| 20342 | { |
| 20343 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 20344 | int status = $lt_dlunknown; |
| 20345 | |
| 20346 | if (self) |
| 20347 | { |
| 20348 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20349 | else |
| 20350 | { |
| 20351 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 20352 | else puts (dlerror ()); |
| 20353 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20354 | /* dlclose (self); */ |
| 20355 | } |
| 20356 | else |
| 20357 | puts (dlerror ()); |
| 20358 | |
| 20359 | return status; |
| 20360 | } |
| 20361 | _LT_EOF |
| 20362 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 20363 | (eval $ac_link) 2>&5 |
| 20364 | ac_status=$? |
| 20365 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 20366 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 20367 | (./conftest; exit; ) >&5 2>/dev/null |
| 20368 | lt_status=$? |
| 20369 | case x$lt_status in |
| 20370 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 20371 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 20372 | x$lt_dlunknown|x*) ;; |
| 20373 | esac |
| 20374 | else : |
| 20375 | # compilation failed |
| 20376 | |
| 20377 | fi |
| 20378 | fi |
| 20379 | rm -fr conftest* |
| 20380 | |
| 20381 | LIBS="$save_LIBS" |
| 20382 | |
| 20383 | fi |
| 20384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| 20385 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
| 20386 | fi |
| 20387 | fi |
| 20388 | |
| 20389 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 20390 | |
| 20391 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
| 20392 | |
| 20393 | fi |
| 20394 | |
| 20395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
| 20396 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20397 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20398 | $as_echo_n "(cached) " >&6 |
| 20399 | else |
| 20400 | # PORTME does your system automatically load deplibs for dlopen? |
| 20401 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 20402 | # For now, we just catch OSes we know something about -- in the |
| 20403 | # future, we'll try test this programmatically. |
| 20404 | lt_cv_sys_dlopen_deplibs=unknown |
| 20405 | case $host_os in |
| 20406 | aix3*|aix4.1.*|aix4.2.*) |
| 20407 | # Unknown whether this is true for these versions of AIX, but |
| 20408 | # we want this `case' here to explicitly catch those versions. |
| 20409 | lt_cv_sys_dlopen_deplibs=unknown |
| 20410 | ;; |
| 20411 | aix[4-9]*) |
| 20412 | lt_cv_sys_dlopen_deplibs=yes |
| 20413 | ;; |
| 20414 | amigaos*) |
| 20415 | case $host_cpu in |
| 20416 | powerpc) |
| 20417 | lt_cv_sys_dlopen_deplibs=no |
| 20418 | ;; |
| 20419 | esac |
| 20420 | ;; |
| 20421 | darwin*) |
| 20422 | # Assuming the user has installed a libdl from somewhere, this is true |
| 20423 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 20424 | lt_cv_sys_dlopen_deplibs=yes |
| 20425 | ;; |
| 20426 | freebsd* | dragonfly*) |
| 20427 | lt_cv_sys_dlopen_deplibs=yes |
| 20428 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20429 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20430 | # GNU and its variants, using gnu ld.so (Glibc) |
| 20431 | lt_cv_sys_dlopen_deplibs=yes |
| 20432 | ;; |
| 20433 | hpux10*|hpux11*) |
| 20434 | lt_cv_sys_dlopen_deplibs=yes |
| 20435 | ;; |
| 20436 | interix*) |
| 20437 | lt_cv_sys_dlopen_deplibs=yes |
| 20438 | ;; |
| 20439 | irix[12345]*|irix6.[01]*) |
| 20440 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 20441 | # know how it worked for any of those versions. |
| 20442 | lt_cv_sys_dlopen_deplibs=unknown |
| 20443 | ;; |
| 20444 | irix*) |
| 20445 | # The case above catches anything before 6.2, and it's known that |
| 20446 | # at 6.2 and later dlopen does load deplibs. |
| 20447 | lt_cv_sys_dlopen_deplibs=yes |
| 20448 | ;; |
| 20449 | netbsd*) |
| 20450 | lt_cv_sys_dlopen_deplibs=yes |
| 20451 | ;; |
| 20452 | openbsd*) |
| 20453 | lt_cv_sys_dlopen_deplibs=yes |
| 20454 | ;; |
| 20455 | osf[1234]*) |
| 20456 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 20457 | # it did *not* use an RPATH in a shared library to find objects the |
| 20458 | # library depends on, so we explicitly say `no'. |
| 20459 | lt_cv_sys_dlopen_deplibs=no |
| 20460 | ;; |
| 20461 | osf5.0|osf5.0a|osf5.1) |
| 20462 | # dlopen *does* load deplibs and with the right loader patch applied |
| 20463 | # it even uses RPATH in a shared library to search for shared objects |
| 20464 | # that the library depends on, but there's no easy way to know if that |
| 20465 | # patch is installed. Since this is the case, all we can really |
| 20466 | # say is unknown -- it depends on the patch being installed. If |
| 20467 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 20468 | lt_cv_sys_dlopen_deplibs=unknown |
| 20469 | ;; |
| 20470 | osf*) |
| 20471 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 20472 | # the comments above for what we know about them. |
| 20473 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 20474 | # is used to find them so we can finally say `yes'. |
| 20475 | lt_cv_sys_dlopen_deplibs=yes |
| 20476 | ;; |
| 20477 | qnx*) |
| 20478 | lt_cv_sys_dlopen_deplibs=yes |
| 20479 | ;; |
| 20480 | solaris*) |
| 20481 | lt_cv_sys_dlopen_deplibs=yes |
| 20482 | ;; |
| 20483 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20484 | libltdl_cv_sys_dlopen_deplibs=yes |
| 20485 | ;; |
| 20486 | esac |
| 20487 | |
| 20488 | fi |
| 20489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| 20490 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 20491 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 20492 | |
| 20493 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| 20494 | |
| 20495 | fi |
| 20496 | |
| 20497 | : |
| 20498 | |
| 20499 | for ac_header in argz.h |
| 20500 | do : |
| 20501 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
| 20502 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20503 | if test "x$ac_cv_header_argz_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20504 | cat >>confdefs.h <<_ACEOF |
| 20505 | #define HAVE_ARGZ_H 1 |
| 20506 | _ACEOF |
| 20507 | |
| 20508 | fi |
| 20509 | |
| 20510 | done |
| 20511 | |
| 20512 | |
| 20513 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
| 20514 | # include <argz.h> |
| 20515 | #endif |
| 20516 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20517 | if test "x$ac_cv_type_error_t" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20518 | |
| 20519 | cat >>confdefs.h <<_ACEOF |
| 20520 | #define HAVE_ERROR_T 1 |
| 20521 | _ACEOF |
| 20522 | |
| 20523 | |
| 20524 | else |
| 20525 | |
| 20526 | $as_echo "#define error_t int" >>confdefs.h |
| 20527 | |
| 20528 | |
| 20529 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
| 20530 | |
| 20531 | fi |
| 20532 | |
| 20533 | |
| 20534 | ARGZ_H= |
| 20535 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 20536 | argz_next argz_stringify |
| 20537 | do : |
| 20538 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20539 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20540 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20541 | cat >>confdefs.h <<_ACEOF |
| 20542 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20543 | _ACEOF |
| 20544 | |
| 20545 | else |
| 20546 | ARGZ_H=argz.h; |
| 20547 | |
| 20548 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 20549 | |
| 20550 | fi |
| 20551 | done |
| 20552 | |
| 20553 | |
| 20554 | if test -z "$ARGZ_H"; then : |
| 20555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| 20556 | $as_echo_n "checking if argz actually works... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20557 | if ${lt_cv_sys_argz_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20558 | $as_echo_n "(cached) " >&6 |
| 20559 | else |
| 20560 | case $host_os in #( |
| 20561 | *cygwin*) |
| 20562 | lt_cv_sys_argz_works=no |
| 20563 | if test "$cross_compiling" != no; then |
| 20564 | lt_cv_sys_argz_works="guessing no" |
| 20565 | else |
| 20566 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 20567 | save_IFS=$IFS |
| 20568 | IFS=-. |
| 20569 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
| 20570 | IFS=$save_IFS |
| 20571 | lt_os_major=${2-0} |
| 20572 | lt_os_minor=${3-0} |
| 20573 | lt_os_micro=${4-0} |
| 20574 | if test "$lt_os_major" -gt 1 \ |
| 20575 | || { test "$lt_os_major" -eq 1 \ |
| 20576 | && { test "$lt_os_minor" -gt 5 \ |
| 20577 | || { test "$lt_os_minor" -eq 5 \ |
| 20578 | && test "$lt_os_micro" -gt 24; }; }; }; then |
| 20579 | lt_cv_sys_argz_works=yes |
| 20580 | fi |
| 20581 | fi |
| 20582 | ;; #( |
| 20583 | *) lt_cv_sys_argz_works=yes ;; |
| 20584 | esac |
| 20585 | fi |
| 20586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| 20587 | $as_echo "$lt_cv_sys_argz_works" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20588 | if test "$lt_cv_sys_argz_works" = yes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20589 | |
| 20590 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| 20591 | |
| 20592 | else |
| 20593 | ARGZ_H=argz.h |
| 20594 | |
| 20595 | |
| 20596 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 20597 | |
| 20598 | fi |
| 20599 | fi |
| 20600 | |
| 20601 | |
| 20602 | |
| 20603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| 20604 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20605 | if ${libltdl_cv_preloaded_symbols+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20606 | $as_echo_n "(cached) " >&6 |
| 20607 | else |
| 20608 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 20609 | libltdl_cv_preloaded_symbols=yes |
| 20610 | else |
| 20611 | libltdl_cv_preloaded_symbols=no |
| 20612 | fi |
| 20613 | |
| 20614 | fi |
| 20615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| 20616 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 20617 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 20618 | |
| 20619 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| 20620 | |
| 20621 | fi |
| 20622 | |
| 20623 | # Set options |
| 20624 | |
| 20625 | |
| 20626 | |
| 20627 | |
| 20628 | |
| 20629 | |
| 20630 | |
| 20631 | |
| 20632 | |
| 20633 | |
| 20634 | |
| 20635 | # Check whether --with-included_ltdl was given. |
| 20636 | if test "${with_included_ltdl+set}" = set; then : |
| 20637 | withval=$with_included_ltdl; |
| 20638 | fi |
| 20639 | |
| 20640 | |
| 20641 | if test "x$with_included_ltdl" != xyes; then |
| 20642 | # We are not being forced to use the included libltdl sources, so |
| 20643 | # decide whether there is a useful installed version we can use. |
| 20644 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| 20645 | |
| 20646 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20647 | if test "x$ac_cv_header_ltdl_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20648 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
| 20649 | #include <ltdl.h> |
| 20650 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20651 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
| 20653 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20654 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20655 | $as_echo_n "(cached) " >&6 |
| 20656 | else |
| 20657 | ac_check_lib_save_LIBS=$LIBS |
| 20658 | LIBS="-lltdl $LIBS" |
| 20659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20660 | /* end confdefs.h. */ |
| 20661 | |
| 20662 | /* Override any GCC internal prototype to avoid an error. |
| 20663 | Use char because int might match the return type of a GCC |
| 20664 | builtin and then its argument prototype would still apply. */ |
| 20665 | #ifdef __cplusplus |
| 20666 | extern "C" |
| 20667 | #endif |
| 20668 | char lt_dladvise_preload (); |
| 20669 | int |
| 20670 | main () |
| 20671 | { |
| 20672 | return lt_dladvise_preload (); |
| 20673 | ; |
| 20674 | return 0; |
| 20675 | } |
| 20676 | _ACEOF |
| 20677 | if ac_fn_c_try_link "$LINENO"; then : |
| 20678 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
| 20679 | else |
| 20680 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
| 20681 | fi |
| 20682 | rm -f core conftest.err conftest.$ac_objext \ |
| 20683 | conftest$ac_exeext conftest.$ac_ext |
| 20684 | LIBS=$ac_check_lib_save_LIBS |
| 20685 | fi |
| 20686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
| 20687 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20688 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20689 | with_included_ltdl=no |
| 20690 | else |
| 20691 | with_included_ltdl=yes |
| 20692 | fi |
| 20693 | |
| 20694 | else |
| 20695 | with_included_ltdl=yes |
| 20696 | fi |
| 20697 | |
| 20698 | else |
| 20699 | with_included_ltdl=yes |
| 20700 | fi |
| 20701 | |
| 20702 | |
| 20703 | fi |
| 20704 | |
| 20705 | |
| 20706 | |
| 20707 | |
| 20708 | # Check whether --with-ltdl_include was given. |
| 20709 | if test "${with_ltdl_include+set}" = set; then : |
| 20710 | withval=$with_ltdl_include; |
| 20711 | fi |
| 20712 | |
| 20713 | |
| 20714 | if test -n "$with_ltdl_include"; then |
| 20715 | if test -f "$with_ltdl_include/ltdl.h"; then : |
| 20716 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20717 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20718 | fi |
| 20719 | else |
| 20720 | with_ltdl_include=no |
| 20721 | fi |
| 20722 | |
| 20723 | |
| 20724 | # Check whether --with-ltdl_lib was given. |
| 20725 | if test "${with_ltdl_lib+set}" = set; then : |
| 20726 | withval=$with_ltdl_lib; |
| 20727 | fi |
| 20728 | |
| 20729 | |
| 20730 | if test -n "$with_ltdl_lib"; then |
| 20731 | if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 20732 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20733 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20734 | fi |
| 20735 | else |
| 20736 | with_ltdl_lib=no |
| 20737 | fi |
| 20738 | |
| 20739 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
| 20740 | ,yes,no,no,) |
| 20741 | case $enable_ltdl_convenience in |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20742 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20743 | "") enable_ltdl_convenience=yes |
| 20744 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 20745 | esac |
| 20746 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 20747 | LTDLDEPS=$LIBLTDL |
| 20748 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 20749 | |
| 20750 | |
| 20751 | |
| 20752 | |
| 20753 | |
| 20754 | # For backwards non-gettext consistent compatibility... |
| 20755 | INCLTDL="$LTDLINCL" |
| 20756 | |
| 20757 | |
| 20758 | ;; |
| 20759 | ,no,no,no,) |
| 20760 | # If the included ltdl is not to be used, then use the |
| 20761 | # preinstalled libltdl we found. |
| 20762 | |
| 20763 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h |
| 20764 | |
| 20765 | LIBLTDL=-lltdl |
| 20766 | LTDLDEPS= |
| 20767 | LTDLINCL= |
| 20768 | ;; |
| 20769 | ,no*,no,*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20770 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20771 | ;; |
| 20772 | *) with_included_ltdl=no |
| 20773 | LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 20774 | LTDLDEPS= |
| 20775 | LTDLINCL="-I$with_ltdl_include" |
| 20776 | ;; |
| 20777 | esac |
| 20778 | INCLTDL="$LTDLINCL" |
| 20779 | |
| 20780 | # Report our decision... |
| 20781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| 20782 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
| 20783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
| 20784 | $as_echo "$LTDLINCL" >&6; } |
| 20785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
| 20786 | $as_echo_n "checking where to find libltdl library... " >&6; } |
| 20787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
| 20788 | $as_echo "$LIBLTDL" >&6; } |
| 20789 | |
| 20790 | |
| 20791 | |
| 20792 | # Check whether --enable-ltdl-install was given. |
| 20793 | if test "${enable_ltdl_install+set}" = set; then : |
| 20794 | enableval=$enable_ltdl_install; |
| 20795 | fi |
| 20796 | |
| 20797 | |
| 20798 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 20799 | *yes*) ;; |
| 20800 | *) enable_ltdl_convenience=yes ;; |
| 20801 | esac |
| 20802 | |
| 20803 | if test x"${enable_ltdl_install-no}" != xno; then |
| 20804 | INSTALL_LTDL_TRUE= |
| 20805 | INSTALL_LTDL_FALSE='#' |
| 20806 | else |
| 20807 | INSTALL_LTDL_TRUE='#' |
| 20808 | INSTALL_LTDL_FALSE= |
| 20809 | fi |
| 20810 | |
| 20811 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 20812 | CONVENIENCE_LTDL_TRUE= |
| 20813 | CONVENIENCE_LTDL_FALSE='#' |
| 20814 | else |
| 20815 | CONVENIENCE_LTDL_TRUE='#' |
| 20816 | CONVENIENCE_LTDL_FALSE= |
| 20817 | fi |
| 20818 | |
| 20819 | |
| 20820 | |
| 20821 | |
| 20822 | |
| 20823 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20824 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
| 20825 | # the user used. This is so that ltdl.h can pick up the parent projects |
| 20826 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the |
| 20827 | # definitions required by ltdl.c. |
| 20828 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
| 20829 | |
| 20830 | |
| 20831 | |
| 20832 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
| 20833 | do : |
| 20834 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20835 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 20836 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20837 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20838 | cat >>confdefs.h <<_ACEOF |
| 20839 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20840 | _ACEOF |
| 20841 | |
| 20842 | fi |
| 20843 | |
| 20844 | done |
| 20845 | |
| 20846 | |
| 20847 | for ac_func in closedir opendir readdir |
| 20848 | do : |
| 20849 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20850 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20851 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20852 | cat >>confdefs.h <<_ACEOF |
| 20853 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20854 | _ACEOF |
| 20855 | |
| 20856 | else |
| 20857 | |
| 20858 | |
| 20859 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
| 20860 | |
| 20861 | fi |
| 20862 | done |
| 20863 | |
| 20864 | for ac_func in strlcat strlcpy |
| 20865 | do : |
| 20866 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20867 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20868 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20869 | cat >>confdefs.h <<_ACEOF |
| 20870 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20871 | _ACEOF |
| 20872 | |
| 20873 | else |
| 20874 | |
| 20875 | |
| 20876 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
| 20877 | |
| 20878 | fi |
| 20879 | done |
| 20880 | |
| 20881 | |
| 20882 | |
| 20883 | cat >>confdefs.h <<_ACEOF |
| 20884 | #define LT_LIBEXT "$libext" |
| 20885 | _ACEOF |
| 20886 | |
| 20887 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20888 | name= |
| 20889 | eval "lt_libprefix=\"$libname_spec\"" |
| 20890 | |
| 20891 | cat >>confdefs.h <<_ACEOF |
| 20892 | #define LT_LIBPREFIX "$lt_libprefix" |
| 20893 | _ACEOF |
| 20894 | |
| 20895 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20896 | name=ltdl |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20897 | eval "LTDLOPEN=\"$libname_spec\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20898 | |
| 20899 | |
| 20900 | |
| 20901 | |
| 20902 | |
| 20903 | |
| 20904 | |
| 20905 | |
| 20906 | # Only expand once: |
| 20907 | |
| 20908 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20909 | |
| 20910 | # Check to see if building shared libraries |
| 20911 | libtool_build_shared_libs='no' |
| 20912 | if test "$enable_shared" = 'yes'; then |
| 20913 | libtool_build_shared_libs='yes' |
| 20914 | fi |
| 20915 | |
| 20916 | # Check to see if building static libraries |
| 20917 | libtool_build_static_libs='no' |
| 20918 | if test "$enable_static" = 'yes'; then |
| 20919 | libtool_build_static_libs='yes' |
| 20920 | fi |
| 20921 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20922 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 20923 | WITH_SHARED_LIBS_TRUE= |
| 20924 | WITH_SHARED_LIBS_FALSE='#' |
| 20925 | else |
| 20926 | WITH_SHARED_LIBS_TRUE='#' |
| 20927 | WITH_SHARED_LIBS_FALSE= |
| 20928 | fi |
| 20929 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20930 | # |
| 20931 | # Enable support for building loadable modules |
| 20932 | # |
| 20933 | |
| 20934 | # Check whether --with-modules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20935 | if test "${with_modules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20936 | withval=$with_modules; with_modules=$withval |
| 20937 | else |
| cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 20938 | with_modules='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20939 | fi |
| 20940 | |
| 20941 | |
| 20942 | # Only allow building loadable modules if we are building shared libraries |
| 20943 | if test "$with_modules" != 'no' ; then |
| 20944 | if test "$libtool_build_shared_libs" = 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20946 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| 20947 | with_modules='no' |
| 20948 | fi |
| 20949 | fi |
| 20950 | if test "$with_modules" != 'no'; then |
| 20951 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20952 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20953 | |
| 20954 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20955 | if test "$with_modules" != 'no'; then |
| 20956 | WITH_MODULES_TRUE= |
| 20957 | WITH_MODULES_FALSE='#' |
| 20958 | else |
| 20959 | WITH_MODULES_TRUE='#' |
| 20960 | WITH_MODULES_FALSE= |
| 20961 | fi |
| 20962 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20963 | |
| 20964 | # Enable building/use of libltdl if we are building shared libraries regardless |
| 20965 | # of whether modules are built or not. |
| 20966 | with_ltdl='no' |
| 20967 | if test "$libtool_build_shared_libs" != 'no'; then |
| 20968 | with_ltdl='yes' |
| 20969 | fi |
| 20970 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20971 | if test "$with_ltdl" != 'no'; then |
| 20972 | WITH_LTDL_TRUE= |
| 20973 | WITH_LTDL_FALSE='#' |
| 20974 | else |
| 20975 | WITH_LTDL_TRUE='#' |
| 20976 | WITH_LTDL_FALSE= |
| 20977 | fi |
| 20978 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20979 | if test "$with_ltdl" != 'no'; then |
| 20980 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20981 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20982 | |
| 20983 | |
| 20984 | # Set DLLDFLAGS |
| 20985 | if test X"$enable_shared" = Xyes; then |
| 20986 | DLLDFLAGS=-export-dynamic |
| 20987 | |
| 20988 | fi |
| 20989 | fi |
| 20990 | |
| 20991 | # Enable build using delegate libraries built in subdirectories rather than installed |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 20992 | # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20993 | # Check whether --enable-delegate-build was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20994 | if test "${enable_delegate_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20995 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 20996 | else |
| 20997 | enable_delegate_build='no' |
| 20998 | fi |
| 20999 | |
| 21000 | |
| 21001 | # Check whether --enable-deprecated was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21002 | if test "${enable_deprecated+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21003 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 21004 | else |
| 21005 | enable_deprecated='no' |
| 21006 | fi |
| 21007 | |
| 21008 | |
| 21009 | if test "$enable_deprecated" = 'yes'; then |
| 21010 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21011 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21012 | |
| 21013 | else |
| 21014 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 21015 | fi |
| 21016 | |
| 21017 | # Build a version of ImageMagick which operates uninstalled. |
| 21018 | # Used to build distributions located via MAGICK_HOME / executable path |
| 21019 | # Check whether --enable-installed was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21020 | if test "${enable_installed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21021 | enableval=$enable_installed; enable_installed=$enableval |
| 21022 | else |
| 21023 | enable_installed='yes' |
| 21024 | fi |
| 21025 | |
| 21026 | |
| 21027 | if test "$enable_installed" = 'yes'; then |
| 21028 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21029 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21030 | |
| 21031 | else |
| 21032 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 21033 | fi |
| 21034 | |
| 21035 | # Permit enciphering and deciphering image pixels. |
| 21036 | # Check whether --enable-cipher was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21037 | if test "${enable_cipher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21038 | enableval=$enable_cipher; enable_cipher=$enableval |
| 21039 | else |
| 21040 | enable_cipher='yes' |
| 21041 | fi |
| 21042 | |
| 21043 | |
| 21044 | if test "$enable_cipher" = 'yes'; then |
| 21045 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21046 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21047 | |
| 21048 | fi |
| 21049 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21050 | # Build a zero-configuration version of ImageMagick. |
| 21051 | # Check whether --enable-zero-configuration was given. |
| 21052 | if test "${enable_zero_configuration+set}" = set; then : |
| 21053 | enableval=$enable_zero_configuration; enable_zero_configuration=$enableval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21054 | else |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21055 | enable_zero_configuration='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21056 | fi |
| 21057 | |
| 21058 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21059 | if test "$enable_zero_configuration" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21060 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 21061 | $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21062 | |
| cristy | 81af570 | 2011-09-13 14:20:58 +0000 | [diff] [blame] | 21063 | MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21064 | fi |
| 21065 | |
| 21066 | # Build a high dynamic range version of ImageMagick. |
| 21067 | # Check whether --enable-hdri was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21068 | if test "${enable_hdri+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21069 | enableval=$enable_hdri; enable_hdri=$enableval |
| 21070 | else |
| 21071 | enable_hdri='no' |
| 21072 | fi |
| 21073 | |
| 21074 | |
| 21075 | MAGICK_HDRI="" |
| 21076 | if test "$enable_hdri" = 'yes'; then |
| 21077 | MAGICK_HDRI="HDRI" |
| 21078 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21079 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21080 | |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 21081 | MAGICK_FEATURES="HDRI $MAGICK_FEATURES" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21082 | fi |
| 21083 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21084 | # Build a version of ImageMagick with assert statements. |
| 21085 | # Check whether --enable-assert was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21086 | if test "${enable_assert+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21087 | enableval=$enable_assert; enable_assert=$enableval |
| 21088 | else |
| 21089 | enable_assert='yes' |
| 21090 | fi |
| 21091 | |
| 21092 | |
| 21093 | if test "$enable_assert" = 'no'; then |
| 21094 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21095 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21096 | |
| 21097 | fi |
| 21098 | |
| 21099 | # Add configure option --enable-maintainer-mode which enables dependency |
| 21100 | # checking and generation useful to package maintainers. This is made an |
| 21101 | # option to avoid confusing end users. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21102 | |
| 21103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 21104 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 21105 | # Check whether --enable-maintainer-mode was given. |
| 21106 | if test "${enable_maintainer_mode+set}" = set; then : |
| 21107 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 21108 | else |
| 21109 | USE_MAINTAINER_MODE=no |
| 21110 | fi |
| 21111 | |
| 21112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 21113 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 21114 | if test $USE_MAINTAINER_MODE = yes; then |
| 21115 | MAINTAINER_MODE_TRUE= |
| 21116 | MAINTAINER_MODE_FALSE='#' |
| 21117 | else |
| 21118 | MAINTAINER_MODE_TRUE='#' |
| 21119 | MAINTAINER_MODE_FALSE= |
| 21120 | fi |
| 21121 | |
| 21122 | MAINT=$MAINTAINER_MODE_TRUE |
| 21123 | |
| 21124 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21125 | |
| 21126 | |
| 21127 | # Enable ccmalloc memory debugging support |
| 21128 | # Check whether --enable-ccmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21129 | if test "${enable_ccmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21130 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 21131 | else |
| 21132 | enable_ccmalloc='no' |
| 21133 | fi |
| 21134 | |
| 21135 | |
| 21136 | # Enable Electric Fence memory debugging support |
| 21137 | # Check whether --enable-efence was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21138 | if test "${enable_efence+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21139 | enableval=$enable_efence; enable_efence=$enableval |
| 21140 | else |
| 21141 | enable_efence='no' |
| 21142 | fi |
| 21143 | |
| 21144 | |
| 21145 | # Enable prof-based profiling support |
| 21146 | # Check whether --enable-prof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21147 | if test "${enable_prof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21148 | enableval=$enable_prof; enable_prof=$enableval |
| 21149 | else |
| 21150 | enable_prof='no' |
| 21151 | fi |
| 21152 | |
| 21153 | |
| 21154 | # Enable gprof-based profiling support |
| 21155 | # Check whether --enable-gprof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21156 | if test "${enable_gprof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21157 | enableval=$enable_gprof; enable_gprof=$enableval |
| 21158 | else |
| 21159 | enable_gprof='no' |
| 21160 | fi |
| 21161 | |
| 21162 | |
| 21163 | # Enable gcov-based profiling support |
| 21164 | # Check whether --enable-gcov was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21165 | if test "${enable_gcov+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21166 | enableval=$enable_gcov; enable_gcov=$enableval |
| 21167 | else |
| 21168 | enable_gcov='no' |
| 21169 | fi |
| 21170 | |
| 21171 | |
| 21172 | enable_profiling='no' |
| 21173 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 21174 | enable_profiling='yes' |
| 21175 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 21176 | echo "Warning: Can not profile code using shared libraries" |
| 21177 | fi |
| 21178 | fi |
| 21179 | |
| 21180 | # Magick API method prefix |
| 21181 | |
| 21182 | # Check whether --with-method-prefix was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21183 | if test "${with_method_prefix+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21184 | withval=$with_method_prefix; with_method_prefix=$enableval |
| 21185 | else |
| 21186 | with_method_prefix='' |
| 21187 | fi |
| 21188 | |
| 21189 | |
| 21190 | if test "$with_method_prefix" != ''; then |
| 21191 | |
| 21192 | cat >>confdefs.h <<_ACEOF |
| 21193 | #define NAMESPACE_PREFIX $with_method_prefix |
| 21194 | _ACEOF |
| 21195 | |
| 21196 | fi |
| 21197 | |
| 21198 | # Number of bits in a Quantum |
| 21199 | |
| 21200 | # Check whether --with-quantum-depth was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21201 | if test "${with_quantum_depth+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21202 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 21203 | else |
| 21204 | with_quantum_depth=16 |
| 21205 | fi |
| 21206 | |
| 21207 | |
| 21208 | if test "$with_quantum_depth" != '8'; then |
| 21209 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 21210 | fi |
| 21211 | |
| 21212 | case "${with_quantum_depth}" in |
| 21213 | 8 ) ;; |
| 21214 | 16 ) ;; |
| 21215 | 32 ) ;; |
| 21216 | 64 ) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21217 | * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21218 | esac |
| 21219 | QUANTUM_DEPTH="$with_quantum_depth" |
| 21220 | |
| 21221 | cat >>confdefs.h <<_ACEOF |
| 21222 | #define QUANTUM_DEPTH $QUANTUM_DEPTH |
| 21223 | _ACEOF |
| 21224 | |
| 21225 | |
| 21226 | # Set pixel cache threshold |
| 21227 | |
| 21228 | # Check whether --with-cache was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21229 | if test "${with_cache+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21230 | withval=$with_cache; with_cache=$withval |
| 21231 | else |
| 21232 | with_cache='' |
| 21233 | fi |
| 21234 | |
| 21235 | |
| 21236 | if test "$with_cache" != ''; then |
| 21237 | |
| 21238 | cat >>confdefs.h <<_ACEOF |
| 21239 | #define PixelCacheThreshold $with_cache |
| 21240 | _ACEOF |
| 21241 | |
| 21242 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 21243 | fi |
| 21244 | |
| 21245 | # Disable/Enable support for full delegate paths |
| 21246 | |
| 21247 | # Check whether --with-frozenpaths was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21248 | if test "${with_frozenpaths+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21249 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 21250 | else |
| 21251 | with_frozenpaths='no' |
| 21252 | fi |
| 21253 | |
| 21254 | |
| 21255 | # Enable build/install of Magick++ |
| 21256 | |
| 21257 | # Check whether --with-magick-plus-plus was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21258 | if test "${with_magick_plus_plus+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21259 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 21260 | else |
| 21261 | with_magick_plus_plus='yes' |
| 21262 | fi |
| 21263 | |
| 21264 | |
| 21265 | # Disable build/install of PerlMagick. |
| 21266 | |
| 21267 | # Check whether --with-perl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21268 | if test "${with_perl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21269 | withval=$with_perl; with_perl=$withval |
| 21270 | else |
| cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 21271 | with_perl='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21272 | fi |
| 21273 | |
| 21274 | |
| 21275 | # Options to pass when configuring PerlMagick |
| 21276 | |
| 21277 | # Check whether --with-perl-options was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21278 | if test "${with_perl_options+set}" = set; then : |
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 21279 | withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21280 | fi |
| 21281 | |
| 21282 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21283 | |
| 21284 | # Enable umem, object-caching memory allocation library. |
| 21285 | |
| 21286 | # Check whether --with-umem was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21287 | if test "${with_umem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21288 | withval=$with_umem; with_umem=$withval |
| 21289 | else |
| 21290 | with_umem='no' |
| 21291 | fi |
| 21292 | |
| 21293 | if test "$with_umem" != 'yes' ; then |
| 21294 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 21295 | fi |
| 21296 | |
| 21297 | # |
| 21298 | # Specify path to shared libstdc++ if not in normal location |
| 21299 | # |
| 21300 | |
| 21301 | # Check whether --with-libstdc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21302 | if test "${with_libstdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21303 | withval=$with_libstdc; with_libstdc=$withval |
| 21304 | else |
| 21305 | with_libstdc='' |
| 21306 | fi |
| 21307 | |
| 21308 | |
| 21309 | if test "$with_libstdc" != ''; then |
| 21310 | if test -d "$with_libstdc"; then |
| 21311 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 21312 | fi |
| 21313 | fi |
| 21314 | |
| 21315 | |
| 21316 | # Does gcc required -traditional? |
| 21317 | if test $ac_cv_c_compiler_gnu = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21319 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21320 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21321 | $as_echo_n "(cached) " >&6 |
| 21322 | else |
| 21323 | ac_pattern="Autoconf.*'x'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21325 | /* end confdefs.h. */ |
| 21326 | #include <sgtty.h> |
| 21327 | Autoconf TIOCGETP |
| 21328 | _ACEOF |
| 21329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21330 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21331 | ac_cv_prog_gcc_traditional=yes |
| 21332 | else |
| 21333 | ac_cv_prog_gcc_traditional=no |
| 21334 | fi |
| 21335 | rm -f conftest* |
| 21336 | |
| 21337 | |
| 21338 | if test $ac_cv_prog_gcc_traditional = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21340 | /* end confdefs.h. */ |
| 21341 | #include <termio.h> |
| 21342 | Autoconf TCGETA |
| 21343 | _ACEOF |
| 21344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21345 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21346 | ac_cv_prog_gcc_traditional=yes |
| 21347 | fi |
| 21348 | rm -f conftest* |
| 21349 | |
| 21350 | fi |
| 21351 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21353 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 21354 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 21355 | CC="$CC -traditional" |
| 21356 | fi |
| 21357 | fi |
| 21358 | |
| 21359 | |
| 21360 | ######## |
| 21361 | # |
| 21362 | # Set defines required to build DLLs and modules using MinGW |
| 21363 | # |
| 21364 | ######## |
| 21365 | # These options are set for multi-thread DLL module build |
| 21366 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 21367 | # module: _DLL |
| 21368 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 21369 | MODULE_EXTRA_CPPFLAGS='' |
| 21370 | LIBRARY_EXTRA_CPPFLAGS='' |
| 21371 | if test "${native_win32_build}" = 'yes'; then |
| 21372 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 21373 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 21374 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 21375 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 21376 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21377 | if test "$with_modules" = 'yes'; then |
| 21378 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 21379 | else |
| 21380 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21381 | fi |
| 21382 | else |
| 21383 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 21384 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 21385 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 21386 | fi |
| 21387 | if test "$with_threads" = 'yes'; then |
| 21388 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 21389 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 21390 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 21391 | fi |
| 21392 | fi |
| 21393 | |
| 21394 | |
| 21395 | |
| 21396 | # Check standard headers |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21398 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21399 | if ${ac_cv_header_stdc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21400 | $as_echo_n "(cached) " >&6 |
| 21401 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21403 | /* end confdefs.h. */ |
| 21404 | #include <stdlib.h> |
| 21405 | #include <stdarg.h> |
| 21406 | #include <string.h> |
| 21407 | #include <float.h> |
| 21408 | |
| 21409 | int |
| 21410 | main () |
| 21411 | { |
| 21412 | |
| 21413 | ; |
| 21414 | return 0; |
| 21415 | } |
| 21416 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21417 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21418 | ac_cv_header_stdc=yes |
| 21419 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21420 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21421 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21423 | |
| 21424 | if test $ac_cv_header_stdc = yes; then |
| 21425 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21427 | /* end confdefs.h. */ |
| 21428 | #include <string.h> |
| 21429 | |
| 21430 | _ACEOF |
| 21431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21432 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 21433 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21434 | else |
| 21435 | ac_cv_header_stdc=no |
| 21436 | fi |
| 21437 | rm -f conftest* |
| 21438 | |
| 21439 | fi |
| 21440 | |
| 21441 | if test $ac_cv_header_stdc = yes; then |
| 21442 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21444 | /* end confdefs.h. */ |
| 21445 | #include <stdlib.h> |
| 21446 | |
| 21447 | _ACEOF |
| 21448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21449 | $EGREP "free" >/dev/null 2>&1; then : |
| 21450 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21451 | else |
| 21452 | ac_cv_header_stdc=no |
| 21453 | fi |
| 21454 | rm -f conftest* |
| 21455 | |
| 21456 | fi |
| 21457 | |
| 21458 | if test $ac_cv_header_stdc = yes; then |
| 21459 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21460 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21461 | : |
| 21462 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21464 | /* end confdefs.h. */ |
| 21465 | #include <ctype.h> |
| 21466 | #include <stdlib.h> |
| 21467 | #if ((' ' & 0x0FF) == 0x020) |
| 21468 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21469 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21470 | #else |
| 21471 | # define ISLOWER(c) \ |
| 21472 | (('a' <= (c) && (c) <= 'i') \ |
| 21473 | || ('j' <= (c) && (c) <= 'r') \ |
| 21474 | || ('s' <= (c) && (c) <= 'z')) |
| 21475 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21476 | #endif |
| 21477 | |
| 21478 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21479 | int |
| 21480 | main () |
| 21481 | { |
| 21482 | int i; |
| 21483 | for (i = 0; i < 256; i++) |
| 21484 | if (XOR (islower (i), ISLOWER (i)) |
| 21485 | || toupper (i) != TOUPPER (i)) |
| 21486 | return 2; |
| 21487 | return 0; |
| 21488 | } |
| 21489 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21490 | if ac_fn_c_try_run "$LINENO"; then : |
| 21491 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21492 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21493 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21494 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21495 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21496 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21497 | fi |
| 21498 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21499 | fi |
| 21500 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21502 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 21503 | if test $ac_cv_header_stdc = yes; then |
| 21504 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21505 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21506 | |
| 21507 | fi |
| 21508 | |
| 21509 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21510 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21511 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21512 | headers and rerun this script." >&5 |
| 21513 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 21514 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21515 | headers and rerun this script." >&2;}; |
| 21516 | fi |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 21517 | |
| 21518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 |
| 21519 | $as_echo_n "checking whether to enable assertions... " >&6; } |
| 21520 | # Check whether --enable-assert was given. |
| 21521 | if test "${enable_assert+set}" = set; then : |
| 21522 | enableval=$enable_assert; ac_enable_assert=$enableval |
| 21523 | if test "x$enableval" = xno; then : |
| 21524 | |
| 21525 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| 21526 | |
| 21527 | elif test "x$enableval" != xyes; then : |
| 21528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 |
| 21529 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} |
| 21530 | ac_enable_assert=yes |
| 21531 | fi |
| 21532 | else |
| 21533 | ac_enable_assert=yes |
| 21534 | fi |
| 21535 | |
| 21536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 |
| 21537 | $as_echo "$ac_enable_assert" >&6; } |
| 21538 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21539 | ac_header_dirent=no |
| 21540 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 21541 | as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21543 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21544 | if eval \${$as_ac_Header+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21545 | $as_echo_n "(cached) " >&6 |
| 21546 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21548 | /* end confdefs.h. */ |
| 21549 | #include <sys/types.h> |
| 21550 | #include <$ac_hdr> |
| 21551 | |
| 21552 | int |
| 21553 | main () |
| 21554 | { |
| 21555 | if ((DIR *) 0) |
| 21556 | return 0; |
| 21557 | ; |
| 21558 | return 0; |
| 21559 | } |
| 21560 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21561 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21562 | eval "$as_ac_Header=yes" |
| 21563 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21564 | eval "$as_ac_Header=no" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21565 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21567 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21568 | eval ac_res=\$$as_ac_Header |
| 21569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21570 | $as_echo "$ac_res" >&6; } |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21571 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21572 | cat >>confdefs.h <<_ACEOF |
| 21573 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 21574 | _ACEOF |
| 21575 | |
| 21576 | ac_header_dirent=$ac_hdr; break |
| 21577 | fi |
| 21578 | |
| 21579 | done |
| 21580 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 21581 | if test $ac_header_dirent = dirent.h; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21583 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21584 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21585 | $as_echo_n "(cached) " >&6 |
| 21586 | else |
| 21587 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21589 | /* end confdefs.h. */ |
| 21590 | |
| 21591 | /* Override any GCC internal prototype to avoid an error. |
| 21592 | Use char because int might match the return type of a GCC |
| 21593 | builtin and then its argument prototype would still apply. */ |
| 21594 | #ifdef __cplusplus |
| 21595 | extern "C" |
| 21596 | #endif |
| 21597 | char opendir (); |
| 21598 | int |
| 21599 | main () |
| 21600 | { |
| 21601 | return opendir (); |
| 21602 | ; |
| 21603 | return 0; |
| 21604 | } |
| 21605 | _ACEOF |
| 21606 | for ac_lib in '' dir; do |
| 21607 | if test -z "$ac_lib"; then |
| 21608 | ac_res="none required" |
| 21609 | else |
| 21610 | ac_res=-l$ac_lib |
| 21611 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21612 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21613 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21614 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21615 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21616 | rm -f core conftest.err conftest.$ac_objext \ |
| 21617 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21618 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21619 | break |
| 21620 | fi |
| 21621 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21622 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21623 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21624 | else |
| 21625 | ac_cv_search_opendir=no |
| 21626 | fi |
| 21627 | rm conftest.$ac_ext |
| 21628 | LIBS=$ac_func_search_save_LIBS |
| 21629 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21631 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21632 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21633 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21634 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21635 | |
| 21636 | fi |
| 21637 | |
| 21638 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21640 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21641 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21642 | $as_echo_n "(cached) " >&6 |
| 21643 | else |
| 21644 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21646 | /* end confdefs.h. */ |
| 21647 | |
| 21648 | /* Override any GCC internal prototype to avoid an error. |
| 21649 | Use char because int might match the return type of a GCC |
| 21650 | builtin and then its argument prototype would still apply. */ |
| 21651 | #ifdef __cplusplus |
| 21652 | extern "C" |
| 21653 | #endif |
| 21654 | char opendir (); |
| 21655 | int |
| 21656 | main () |
| 21657 | { |
| 21658 | return opendir (); |
| 21659 | ; |
| 21660 | return 0; |
| 21661 | } |
| 21662 | _ACEOF |
| 21663 | for ac_lib in '' x; do |
| 21664 | if test -z "$ac_lib"; then |
| 21665 | ac_res="none required" |
| 21666 | else |
| 21667 | ac_res=-l$ac_lib |
| 21668 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21669 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21670 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21671 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21672 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21673 | rm -f core conftest.err conftest.$ac_objext \ |
| 21674 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21675 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21676 | break |
| 21677 | fi |
| 21678 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21679 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21680 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21681 | else |
| 21682 | ac_cv_search_opendir=no |
| 21683 | fi |
| 21684 | rm conftest.$ac_ext |
| 21685 | LIBS=$ac_func_search_save_LIBS |
| 21686 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21688 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21689 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21690 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21691 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21692 | |
| 21693 | fi |
| 21694 | |
| 21695 | fi |
| 21696 | |
| 21697 | |
| 21698 | # Check additional headers |
| cristy | a8549b1 | 2011-05-18 19:05:08 +0000 | [diff] [blame] | 21699 | for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21700 | do : |
| 21701 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21702 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21703 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21704 | cat >>confdefs.h <<_ACEOF |
| 21705 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21706 | _ACEOF |
| 21707 | |
| 21708 | fi |
| 21709 | |
| 21710 | done |
| 21711 | |
| 21712 | |
| 21713 | ######## |
| 21714 | # |
| 21715 | # Checks for typedefs, structures, and compiler characteristics. |
| 21716 | # |
| 21717 | ######## |
| 21718 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21720 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21721 | if ${ac_cv_header_stdbool_h+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21722 | $as_echo_n "(cached) " >&6 |
| 21723 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21725 | /* end confdefs.h. */ |
| 21726 | |
| 21727 | #include <stdbool.h> |
| 21728 | #ifndef bool |
| 21729 | "error: bool is not defined" |
| 21730 | #endif |
| 21731 | #ifndef false |
| 21732 | "error: false is not defined" |
| 21733 | #endif |
| 21734 | #if false |
| 21735 | "error: false is not 0" |
| 21736 | #endif |
| 21737 | #ifndef true |
| 21738 | "error: true is not defined" |
| 21739 | #endif |
| 21740 | #if true != 1 |
| 21741 | "error: true is not 1" |
| 21742 | #endif |
| 21743 | #ifndef __bool_true_false_are_defined |
| 21744 | "error: __bool_true_false_are_defined is not defined" |
| 21745 | #endif |
| 21746 | |
| 21747 | struct s { _Bool s: 1; _Bool t; } s; |
| 21748 | |
| 21749 | char a[true == 1 ? 1 : -1]; |
| 21750 | char b[false == 0 ? 1 : -1]; |
| 21751 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 21752 | char d[(bool) 0.5 == true ? 1 : -1]; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21753 | /* See body of main program for 'e'. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21754 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 21755 | char g[true]; |
| 21756 | char h[sizeof (_Bool)]; |
| 21757 | char i[sizeof s.t]; |
| 21758 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 21759 | /* The following fails for |
| 21760 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 21761 | _Bool n[m]; |
| 21762 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 21763 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21764 | /* Catch a bug in an HP-UX C compiler. See |
| 21765 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 21766 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 21767 | */ |
| 21768 | _Bool q = true; |
| 21769 | _Bool *pq = &q; |
| 21770 | |
| 21771 | int |
| 21772 | main () |
| 21773 | { |
| 21774 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21775 | bool e = &s; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21776 | *pq |= q; |
| 21777 | *pq |= ! q; |
| 21778 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 21779 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 21780 | + !m + !n + !o + !p + !q + !pq); |
| 21781 | |
| 21782 | ; |
| 21783 | return 0; |
| 21784 | } |
| 21785 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21786 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21787 | ac_cv_header_stdbool_h=yes |
| 21788 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21789 | ac_cv_header_stdbool_h=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21790 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21792 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21794 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21795 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21796 | if test "x$ac_cv_type__Bool" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21797 | |
| 21798 | cat >>confdefs.h <<_ACEOF |
| 21799 | #define HAVE__BOOL 1 |
| 21800 | _ACEOF |
| 21801 | |
| 21802 | |
| 21803 | fi |
| 21804 | |
| 21805 | if test $ac_cv_header_stdbool_h = yes; then |
| 21806 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21807 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21808 | |
| 21809 | fi |
| 21810 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21812 | $as_echo_n "checking for working volatile... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21813 | if ${ac_cv_c_volatile+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21814 | $as_echo_n "(cached) " >&6 |
| 21815 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21817 | /* end confdefs.h. */ |
| 21818 | |
| 21819 | int |
| 21820 | main () |
| 21821 | { |
| 21822 | |
| 21823 | volatile int x; |
| 21824 | int * volatile y = (int *) 0; |
| 21825 | return !x && !y; |
| 21826 | ; |
| 21827 | return 0; |
| 21828 | } |
| 21829 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21830 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21831 | ac_cv_c_volatile=yes |
| 21832 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21833 | ac_cv_c_volatile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21834 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21836 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21838 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 21839 | if test $ac_cv_c_volatile = no; then |
| 21840 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21841 | $as_echo "#define volatile /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21842 | |
| 21843 | fi |
| 21844 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21846 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21847 | if ${ac_cv_c_stringize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21848 | $as_echo_n "(cached) " >&6 |
| 21849 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21851 | /* end confdefs.h. */ |
| 21852 | #define x(y) #y |
| 21853 | |
| 21854 | char *s = x(teststring); |
| 21855 | _ACEOF |
| 21856 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21857 | $EGREP "#teststring" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21858 | ac_cv_c_stringize=no |
| 21859 | else |
| 21860 | ac_cv_c_stringize=yes |
| 21861 | fi |
| 21862 | rm -f conftest* |
| 21863 | |
| 21864 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21866 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 21867 | if test $ac_cv_c_stringize = yes; then |
| 21868 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21869 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21870 | |
| 21871 | fi |
| 21872 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21874 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21875 | if ${ac_cv_header_stat_broken+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21876 | $as_echo_n "(cached) " >&6 |
| 21877 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21879 | /* end confdefs.h. */ |
| 21880 | #include <sys/types.h> |
| 21881 | #include <sys/stat.h> |
| 21882 | |
| 21883 | #if defined S_ISBLK && defined S_IFDIR |
| 21884 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 21885 | #endif |
| 21886 | |
| 21887 | #if defined S_ISBLK && defined S_IFCHR |
| 21888 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 21889 | #endif |
| 21890 | |
| 21891 | #if defined S_ISLNK && defined S_IFREG |
| 21892 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 21893 | #endif |
| 21894 | |
| 21895 | #if defined S_ISSOCK && defined S_IFREG |
| 21896 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 21897 | #endif |
| 21898 | |
| 21899 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21900 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21901 | ac_cv_header_stat_broken=no |
| 21902 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21903 | ac_cv_header_stat_broken=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21904 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21906 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21908 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 21909 | if test $ac_cv_header_stat_broken = yes; then |
| 21910 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21911 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21912 | |
| 21913 | fi |
| 21914 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21916 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21917 | if ${ac_cv_header_time+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21918 | $as_echo_n "(cached) " >&6 |
| 21919 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21921 | /* end confdefs.h. */ |
| 21922 | #include <sys/types.h> |
| 21923 | #include <sys/time.h> |
| 21924 | #include <time.h> |
| 21925 | |
| 21926 | int |
| 21927 | main () |
| 21928 | { |
| 21929 | if ((struct tm *) 0) |
| 21930 | return 0; |
| 21931 | ; |
| 21932 | return 0; |
| 21933 | } |
| 21934 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21935 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21936 | ac_cv_header_time=yes |
| 21937 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21938 | ac_cv_header_time=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21939 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21941 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21943 | $as_echo "$ac_cv_header_time" >&6; } |
| 21944 | if test $ac_cv_header_time = yes; then |
| 21945 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21946 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21947 | |
| 21948 | fi |
| 21949 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21951 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21952 | if ${ac_cv_struct_tm+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21953 | $as_echo_n "(cached) " >&6 |
| 21954 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21956 | /* end confdefs.h. */ |
| 21957 | #include <sys/types.h> |
| 21958 | #include <time.h> |
| 21959 | |
| 21960 | int |
| 21961 | main () |
| 21962 | { |
| 21963 | struct tm tm; |
| 21964 | int *p = &tm.tm_sec; |
| 21965 | return !p; |
| 21966 | ; |
| 21967 | return 0; |
| 21968 | } |
| 21969 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21970 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21971 | ac_cv_struct_tm=time.h |
| 21972 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21973 | ac_cv_struct_tm=sys/time.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21974 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21976 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21978 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 21979 | if test $ac_cv_struct_tm = sys/time.h; then |
| 21980 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21981 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21982 | |
| 21983 | fi |
| 21984 | |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21985 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 21986 | #include <$ac_cv_struct_tm> |
| 21987 | |
| 21988 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21989 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21990 | |
| 21991 | cat >>confdefs.h <<_ACEOF |
| 21992 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21993 | _ACEOF |
| 21994 | |
| 21995 | |
| 21996 | fi |
| 21997 | |
| 21998 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21999 | |
| 22000 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 22001 | |
| 22002 | else |
| 22003 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 22004 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22005 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22006 | ac_have_decl=1 |
| 22007 | else |
| 22008 | ac_have_decl=0 |
| 22009 | fi |
| 22010 | |
| 22011 | cat >>confdefs.h <<_ACEOF |
| 22012 | #define HAVE_DECL_TZNAME $ac_have_decl |
| 22013 | _ACEOF |
| 22014 | |
| 22015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 22016 | $as_echo_n "checking for tzname... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22017 | if ${ac_cv_var_tzname+:} false; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22018 | $as_echo_n "(cached) " >&6 |
| 22019 | else |
| 22020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22021 | /* end confdefs.h. */ |
| 22022 | #include <time.h> |
| 22023 | #if !HAVE_DECL_TZNAME |
| 22024 | extern char *tzname[]; |
| 22025 | #endif |
| 22026 | |
| 22027 | int |
| 22028 | main () |
| 22029 | { |
| 22030 | return tzname[0][0]; |
| 22031 | ; |
| 22032 | return 0; |
| 22033 | } |
| 22034 | _ACEOF |
| 22035 | if ac_fn_c_try_link "$LINENO"; then : |
| 22036 | ac_cv_var_tzname=yes |
| 22037 | else |
| 22038 | ac_cv_var_tzname=no |
| 22039 | fi |
| 22040 | rm -f core conftest.err conftest.$ac_objext \ |
| 22041 | conftest$ac_exeext conftest.$ac_ext |
| 22042 | fi |
| 22043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 22044 | $as_echo "$ac_cv_var_tzname" >&6; } |
| 22045 | if test $ac_cv_var_tzname = yes; then |
| 22046 | |
| 22047 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
| 22048 | |
| 22049 | fi |
| 22050 | fi |
| 22051 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22053 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22054 | if ${ac_cv_sys_interpreter+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22055 | $as_echo_n "(cached) " >&6 |
| 22056 | else |
| 22057 | echo '#! /bin/cat |
| 22058 | exit 69 |
| 22059 | ' >conftest |
| 22060 | chmod u+x conftest |
| 22061 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 22062 | if test $? -ne 69; then |
| 22063 | ac_cv_sys_interpreter=yes |
| 22064 | else |
| 22065 | ac_cv_sys_interpreter=no |
| 22066 | fi |
| 22067 | rm -f conftest |
| 22068 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22070 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 22071 | interpval=$ac_cv_sys_interpreter |
| 22072 | |
| 22073 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22074 | # If the C compiler supports the keyword inline, do nothing. Otherwise |
| 22075 | # define inline to __inline__ or __inline if it accepts one of those, |
| 22076 | # otherwise define inline to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22078 | $as_echo_n "checking for inline... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22079 | if ${ac_cv_c_inline+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22080 | $as_echo_n "(cached) " >&6 |
| 22081 | else |
| 22082 | ac_cv_c_inline=no |
| 22083 | for ac_kw in inline __inline__ __inline; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22085 | /* end confdefs.h. */ |
| 22086 | #ifndef __cplusplus |
| 22087 | typedef int foo_t; |
| 22088 | static $ac_kw foo_t static_foo () {return 0; } |
| 22089 | $ac_kw foo_t foo () {return 0; } |
| 22090 | #endif |
| 22091 | |
| 22092 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22093 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22094 | ac_cv_c_inline=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22095 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22097 | test "$ac_cv_c_inline" != no && break |
| 22098 | done |
| 22099 | |
| 22100 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22102 | $as_echo "$ac_cv_c_inline" >&6; } |
| 22103 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22104 | case $ac_cv_c_inline in |
| 22105 | inline | yes) ;; |
| 22106 | *) |
| 22107 | case $ac_cv_c_inline in |
| 22108 | no) ac_val=;; |
| 22109 | *) ac_val=$ac_cv_c_inline;; |
| 22110 | esac |
| 22111 | cat >>confdefs.h <<_ACEOF |
| 22112 | #ifndef __cplusplus |
| 22113 | #define inline $ac_val |
| 22114 | #endif |
| 22115 | _ACEOF |
| 22116 | ;; |
| 22117 | esac |
| 22118 | |
| 22119 | |
| 22120 | # If the C compiler supports the keyword restrict, do nothing. Otherwise |
| 22121 | # define restrict to __restrict__ or __restrict if it accepts one of those, |
| 22122 | # otherwise define restrict to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22124 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22125 | if ${ac_cv_c_restrict+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22126 | $as_echo_n "(cached) " >&6 |
| 22127 | else |
| 22128 | ac_cv_c_restrict=no |
| 22129 | # The order here caters to the fact that C++ does not require restrict. |
| 22130 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22132 | /* end confdefs.h. */ |
| 22133 | typedef int * int_ptr; |
| 22134 | int foo (int_ptr $ac_kw ip) { |
| 22135 | return ip[0]; |
| 22136 | } |
| 22137 | int |
| 22138 | main () |
| 22139 | { |
| 22140 | int s[1]; |
| 22141 | int * $ac_kw t = s; |
| 22142 | t[0] = 0; |
| 22143 | return foo(t) |
| 22144 | ; |
| 22145 | return 0; |
| 22146 | } |
| 22147 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22148 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22149 | ac_cv_c_restrict=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22150 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22152 | test "$ac_cv_c_restrict" != no && break |
| 22153 | done |
| 22154 | |
| 22155 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22157 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 22158 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22159 | case $ac_cv_c_restrict in |
| 22160 | restrict) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22161 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22162 | ;; |
| 22163 | *) cat >>confdefs.h <<_ACEOF |
| 22164 | #define restrict $ac_cv_c_restrict |
| 22165 | _ACEOF |
| 22166 | ;; |
| 22167 | esac |
| 22168 | |
| 22169 | |
| 22170 | # If words are stored with the most significant byte first (like |
| 22171 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22173 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22174 | if ${ac_cv_c_bigendian+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22175 | $as_echo_n "(cached) " >&6 |
| 22176 | else |
| 22177 | ac_cv_c_bigendian=unknown |
| 22178 | # See if we're dealing with a universal compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22180 | /* end confdefs.h. */ |
| 22181 | #ifndef __APPLE_CC__ |
| 22182 | not a universal capable compiler |
| 22183 | #endif |
| 22184 | typedef int dummy; |
| 22185 | |
| 22186 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22187 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22188 | |
| 22189 | # Check for potential -arch flags. It is not universal unless |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22190 | # there are at least two -arch flags with different values. |
| 22191 | ac_arch= |
| 22192 | ac_prev= |
| 22193 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 22194 | if test -n "$ac_prev"; then |
| 22195 | case $ac_word in |
| 22196 | i?86 | x86_64 | ppc | ppc64) |
| 22197 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 22198 | ac_arch=$ac_word |
| 22199 | else |
| 22200 | ac_cv_c_bigendian=universal |
| 22201 | break |
| 22202 | fi |
| 22203 | ;; |
| 22204 | esac |
| 22205 | ac_prev= |
| 22206 | elif test "x$ac_word" = "x-arch"; then |
| 22207 | ac_prev=arch |
| 22208 | fi |
| 22209 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22210 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22212 | if test $ac_cv_c_bigendian = unknown; then |
| 22213 | # See if sys/param.h defines the BYTE_ORDER macro. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22215 | /* end confdefs.h. */ |
| 22216 | #include <sys/types.h> |
| 22217 | #include <sys/param.h> |
| 22218 | |
| 22219 | int |
| 22220 | main () |
| 22221 | { |
| 22222 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 22223 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 22224 | && LITTLE_ENDIAN) |
| 22225 | bogus endian macros |
| 22226 | #endif |
| 22227 | |
| 22228 | ; |
| 22229 | return 0; |
| 22230 | } |
| 22231 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22232 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22233 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22235 | /* end confdefs.h. */ |
| 22236 | #include <sys/types.h> |
| 22237 | #include <sys/param.h> |
| 22238 | |
| 22239 | int |
| 22240 | main () |
| 22241 | { |
| 22242 | #if BYTE_ORDER != BIG_ENDIAN |
| 22243 | not big endian |
| 22244 | #endif |
| 22245 | |
| 22246 | ; |
| 22247 | return 0; |
| 22248 | } |
| 22249 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22250 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22251 | ac_cv_c_bigendian=yes |
| 22252 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22253 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22254 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22256 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22258 | fi |
| 22259 | if test $ac_cv_c_bigendian = unknown; then |
| 22260 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22262 | /* end confdefs.h. */ |
| 22263 | #include <limits.h> |
| 22264 | |
| 22265 | int |
| 22266 | main () |
| 22267 | { |
| 22268 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 22269 | bogus endian macros |
| 22270 | #endif |
| 22271 | |
| 22272 | ; |
| 22273 | return 0; |
| 22274 | } |
| 22275 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22276 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22277 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22279 | /* end confdefs.h. */ |
| 22280 | #include <limits.h> |
| 22281 | |
| 22282 | int |
| 22283 | main () |
| 22284 | { |
| 22285 | #ifndef _BIG_ENDIAN |
| 22286 | not big endian |
| 22287 | #endif |
| 22288 | |
| 22289 | ; |
| 22290 | return 0; |
| 22291 | } |
| 22292 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22293 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22294 | ac_cv_c_bigendian=yes |
| 22295 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22296 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22297 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22299 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22301 | fi |
| 22302 | if test $ac_cv_c_bigendian = unknown; then |
| 22303 | # Compile a test program. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22304 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22305 | # Try to guess by grepping values from an object file. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22307 | /* end confdefs.h. */ |
| 22308 | short int ascii_mm[] = |
| 22309 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22310 | short int ascii_ii[] = |
| 22311 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 22312 | int use_ascii (int i) { |
| 22313 | return ascii_mm[i] + ascii_ii[i]; |
| 22314 | } |
| 22315 | short int ebcdic_ii[] = |
| 22316 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22317 | short int ebcdic_mm[] = |
| 22318 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 22319 | int use_ebcdic (int i) { |
| 22320 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 22321 | } |
| 22322 | extern int foo; |
| 22323 | |
| 22324 | int |
| 22325 | main () |
| 22326 | { |
| 22327 | return use_ascii (foo) == use_ebcdic (foo); |
| 22328 | ; |
| 22329 | return 0; |
| 22330 | } |
| 22331 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22332 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22333 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 22334 | ac_cv_c_bigendian=yes |
| 22335 | fi |
| 22336 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 22337 | if test "$ac_cv_c_bigendian" = unknown; then |
| 22338 | ac_cv_c_bigendian=no |
| 22339 | else |
| 22340 | # finding both strings is unlikely to happen, but who knows? |
| 22341 | ac_cv_c_bigendian=unknown |
| 22342 | fi |
| 22343 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22344 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22346 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22348 | /* end confdefs.h. */ |
| 22349 | $ac_includes_default |
| 22350 | int |
| 22351 | main () |
| 22352 | { |
| 22353 | |
| 22354 | /* Are we little or big endian? From Harbison&Steele. */ |
| 22355 | union |
| 22356 | { |
| 22357 | long int l; |
| 22358 | char c[sizeof (long int)]; |
| 22359 | } u; |
| 22360 | u.l = 1; |
| 22361 | return u.c[sizeof (long int) - 1] == 1; |
| 22362 | |
| 22363 | ; |
| 22364 | return 0; |
| 22365 | } |
| 22366 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22367 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22368 | ac_cv_c_bigendian=no |
| 22369 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22370 | ac_cv_c_bigendian=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22371 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22373 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22374 | fi |
| 22375 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22376 | fi |
| 22377 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22379 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 22380 | case $ac_cv_c_bigendian in #( |
| 22381 | yes) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22382 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22383 | ;; #( |
| 22384 | no) |
| 22385 | ;; #( |
| 22386 | universal) |
| 22387 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22388 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22389 | |
| 22390 | ;; #( |
| 22391 | *) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22392 | as_fn_error $? "unknown endianness |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22393 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22394 | esac |
| 22395 | |
| 22396 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22397 | # Define to a suitable type, if standard headers do not define it. |
| 22398 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 22399 | case $ac_cv_c_int8_t in #( |
| 22400 | no|yes) ;; #( |
| 22401 | *) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22402 | |
| 22403 | cat >>confdefs.h <<_ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22404 | #define int8_t $ac_cv_c_int8_t |
| 22405 | _ACEOF |
| 22406 | ;; |
| 22407 | esac |
| 22408 | |
| 22409 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 22410 | case $ac_cv_c_int16_t in #( |
| 22411 | no|yes) ;; #( |
| 22412 | *) |
| 22413 | |
| 22414 | cat >>confdefs.h <<_ACEOF |
| 22415 | #define int16_t $ac_cv_c_int16_t |
| 22416 | _ACEOF |
| 22417 | ;; |
| 22418 | esac |
| 22419 | |
| 22420 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 22421 | case $ac_cv_c_int32_t in #( |
| 22422 | no|yes) ;; #( |
| 22423 | *) |
| 22424 | |
| 22425 | cat >>confdefs.h <<_ACEOF |
| 22426 | #define int32_t $ac_cv_c_int32_t |
| 22427 | _ACEOF |
| 22428 | ;; |
| 22429 | esac |
| 22430 | |
| 22431 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 22432 | case $ac_cv_c_int64_t in #( |
| 22433 | no|yes) ;; #( |
| 22434 | *) |
| 22435 | |
| 22436 | cat >>confdefs.h <<_ACEOF |
| 22437 | #define int64_t $ac_cv_c_int64_t |
| 22438 | _ACEOF |
| 22439 | ;; |
| 22440 | esac |
| 22441 | |
| 22442 | |
| 22443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 22444 | $as_echo_n "checking for long long int... " >&6; } |
| 22445 | if ${ac_cv_type_long_long_int+:} false; then : |
| 22446 | $as_echo_n "(cached) " >&6 |
| 22447 | else |
| 22448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22449 | /* end confdefs.h. */ |
| 22450 | |
| 22451 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 22452 | implementations with broken preprocessors. Perhaps this can |
| 22453 | be revisited in 2012. In the meantime, code should not expect |
| 22454 | #if to work with literals wider than 32 bits. */ |
| 22455 | /* Test literals. */ |
| 22456 | long long int ll = 9223372036854775807ll; |
| 22457 | long long int nll = -9223372036854775807LL; |
| 22458 | unsigned long long int ull = 18446744073709551615ULL; |
| 22459 | /* Test constant expressions. */ |
| 22460 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 22461 | ? 1 : -1)]; |
| 22462 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 22463 | ? 1 : -1)]; |
| 22464 | int i = 63; |
| 22465 | int |
| 22466 | main () |
| 22467 | { |
| 22468 | /* Test availability of runtime routines for shift and division. */ |
| 22469 | long long int llmax = 9223372036854775807ll; |
| 22470 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22471 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 22472 | | (llmax / ll) | (llmax % ll) |
| 22473 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22474 | | (ullmax / ull) | (ullmax % ull)); |
| 22475 | ; |
| 22476 | return 0; |
| 22477 | } |
| 22478 | |
| 22479 | _ACEOF |
| 22480 | if ac_fn_c_try_link "$LINENO"; then : |
| 22481 | if test "$cross_compiling" = yes; then : |
| 22482 | ac_cv_type_long_long_int=yes |
| 22483 | else |
| 22484 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22485 | /* end confdefs.h. */ |
| 22486 | #include <limits.h> |
| 22487 | #ifndef LLONG_MAX |
| 22488 | # define HALF \ |
| 22489 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 22490 | # define LLONG_MAX (HALF - 1 + HALF) |
| 22491 | #endif |
| 22492 | int |
| 22493 | main () |
| 22494 | { |
| 22495 | long long int n = 1; |
| 22496 | int i; |
| 22497 | for (i = 0; ; i++) |
| 22498 | { |
| 22499 | long long int m = n << i; |
| 22500 | if (m >> i != n) |
| 22501 | return 1; |
| 22502 | if (LLONG_MAX / 2 < m) |
| 22503 | break; |
| 22504 | } |
| 22505 | return 0; |
| 22506 | ; |
| 22507 | return 0; |
| 22508 | } |
| 22509 | _ACEOF |
| 22510 | if ac_fn_c_try_run "$LINENO"; then : |
| 22511 | ac_cv_type_long_long_int=yes |
| 22512 | else |
| 22513 | ac_cv_type_long_long_int=no |
| 22514 | fi |
| 22515 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22516 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22517 | fi |
| 22518 | |
| 22519 | else |
| 22520 | ac_cv_type_long_long_int=no |
| 22521 | fi |
| 22522 | rm -f core conftest.err conftest.$ac_objext \ |
| 22523 | conftest$ac_exeext conftest.$ac_ext |
| 22524 | fi |
| 22525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 22526 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 22527 | if test $ac_cv_type_long_long_int = yes; then |
| 22528 | |
| 22529 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 22530 | |
| 22531 | fi |
| 22532 | |
| 22533 | |
| 22534 | |
| 22535 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" |
| 22536 | if test "x$ac_cv_type_intmax_t" = xyes; then : |
| 22537 | |
| 22538 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 22539 | |
| 22540 | else |
| 22541 | test $ac_cv_type_long_long_int = yes \ |
| 22542 | && ac_type='long long int' \ |
| 22543 | || ac_type='long int' |
| 22544 | |
| 22545 | cat >>confdefs.h <<_ACEOF |
| 22546 | #define intmax_t $ac_type |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22547 | _ACEOF |
| 22548 | |
| 22549 | fi |
| 22550 | |
| 22551 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22552 | |
| 22553 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 22554 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
| 22555 | |
| 22556 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22557 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22558 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22559 | for ac_type in 'int' 'long int' 'long long int'; do |
| 22560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22561 | /* end confdefs.h. */ |
| 22562 | $ac_includes_default |
| 22563 | int |
| 22564 | main () |
| 22565 | { |
| 22566 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| 22567 | test_array [0] = 0 |
| 22568 | |
| 22569 | ; |
| 22570 | return 0; |
| 22571 | } |
| 22572 | _ACEOF |
| 22573 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22574 | |
| 22575 | cat >>confdefs.h <<_ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22576 | #define intptr_t $ac_type |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22577 | _ACEOF |
| 22578 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22579 | ac_type= |
| 22580 | fi |
| 22581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22582 | test -z "$ac_type" && break |
| 22583 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22584 | fi |
| 22585 | |
| 22586 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22587 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 22589 | $as_echo_n "checking for long double... " >&6; } |
| 22590 | if ${ac_cv_type_long_double+:} false; then : |
| 22591 | $as_echo_n "(cached) " >&6 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22592 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22593 | if test "$GCC" = yes; then |
| 22594 | ac_cv_type_long_double=yes |
| 22595 | else |
| 22596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22597 | /* end confdefs.h. */ |
| 22598 | /* The Stardent Vistra knows sizeof (long double), but does |
| 22599 | not support it. */ |
| 22600 | long double foo = 0.0L; |
| 22601 | int |
| 22602 | main () |
| 22603 | { |
| 22604 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 22605 | sizeof (double) <= sizeof (long double))]; |
| 22606 | test_array [0] = 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22607 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22608 | ; |
| 22609 | return 0; |
| 22610 | } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22611 | _ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22612 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22613 | ac_cv_type_long_double=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22614 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22615 | ac_cv_type_long_double=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22616 | fi |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22618 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22619 | fi |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 22621 | $as_echo "$ac_cv_type_long_double" >&6; } |
| 22622 | if test $ac_cv_type_long_double = yes; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22623 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22624 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22625 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22626 | fi |
| 22627 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22628 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22630 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22631 | if ${ac_cv_type_long_double_wider+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22632 | $as_echo_n "(cached) " >&6 |
| 22633 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22635 | /* end confdefs.h. */ |
| 22636 | #include <float.h> |
| 22637 | long double const a[] = |
| 22638 | { |
| 22639 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 22640 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 22641 | }; |
| 22642 | long double |
| 22643 | f (long double x) |
| 22644 | { |
| 22645 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 22646 | + (x ? f (x) : 'c')); |
| 22647 | } |
| 22648 | |
| 22649 | int |
| 22650 | main () |
| 22651 | { |
| 22652 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 22653 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 22654 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 22655 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 22656 | && (int) LDBL_EPSILON == 0 |
| 22657 | )]; |
| 22658 | test_array [0] = 0 |
| 22659 | |
| 22660 | ; |
| 22661 | return 0; |
| 22662 | } |
| 22663 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22664 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22665 | ac_cv_type_long_double_wider=yes |
| 22666 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22667 | ac_cv_type_long_double_wider=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22668 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22670 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22672 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 22673 | if test $ac_cv_type_long_double_wider = yes; then |
| 22674 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22675 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22676 | |
| 22677 | fi |
| 22678 | |
| 22679 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 22681 | $as_echo_n "checking for long long int... " >&6; } |
| 22682 | if ${ac_cv_type_long_long_int+:} false; then : |
| 22683 | $as_echo_n "(cached) " >&6 |
| 22684 | else |
| 22685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22686 | /* end confdefs.h. */ |
| 22687 | |
| 22688 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 22689 | implementations with broken preprocessors. Perhaps this can |
| 22690 | be revisited in 2012. In the meantime, code should not expect |
| 22691 | #if to work with literals wider than 32 bits. */ |
| 22692 | /* Test literals. */ |
| 22693 | long long int ll = 9223372036854775807ll; |
| 22694 | long long int nll = -9223372036854775807LL; |
| 22695 | unsigned long long int ull = 18446744073709551615ULL; |
| 22696 | /* Test constant expressions. */ |
| 22697 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 22698 | ? 1 : -1)]; |
| 22699 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 22700 | ? 1 : -1)]; |
| 22701 | int i = 63; |
| 22702 | int |
| 22703 | main () |
| 22704 | { |
| 22705 | /* Test availability of runtime routines for shift and division. */ |
| 22706 | long long int llmax = 9223372036854775807ll; |
| 22707 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22708 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 22709 | | (llmax / ll) | (llmax % ll) |
| 22710 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22711 | | (ullmax / ull) | (ullmax % ull)); |
| 22712 | ; |
| 22713 | return 0; |
| 22714 | } |
| 22715 | |
| 22716 | _ACEOF |
| 22717 | if ac_fn_c_try_link "$LINENO"; then : |
| 22718 | if test "$cross_compiling" = yes; then : |
| 22719 | ac_cv_type_long_long_int=yes |
| 22720 | else |
| 22721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22722 | /* end confdefs.h. */ |
| 22723 | #include <limits.h> |
| 22724 | #ifndef LLONG_MAX |
| 22725 | # define HALF \ |
| 22726 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 22727 | # define LLONG_MAX (HALF - 1 + HALF) |
| 22728 | #endif |
| 22729 | int |
| 22730 | main () |
| 22731 | { |
| 22732 | long long int n = 1; |
| 22733 | int i; |
| 22734 | for (i = 0; ; i++) |
| 22735 | { |
| 22736 | long long int m = n << i; |
| 22737 | if (m >> i != n) |
| 22738 | return 1; |
| 22739 | if (LLONG_MAX / 2 < m) |
| 22740 | break; |
| 22741 | } |
| 22742 | return 0; |
| 22743 | ; |
| 22744 | return 0; |
| 22745 | } |
| 22746 | _ACEOF |
| 22747 | if ac_fn_c_try_run "$LINENO"; then : |
| 22748 | ac_cv_type_long_long_int=yes |
| 22749 | else |
| 22750 | ac_cv_type_long_long_int=no |
| 22751 | fi |
| 22752 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22753 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22754 | fi |
| 22755 | |
| 22756 | else |
| 22757 | ac_cv_type_long_long_int=no |
| 22758 | fi |
| 22759 | rm -f core conftest.err conftest.$ac_objext \ |
| 22760 | conftest$ac_exeext conftest.$ac_ext |
| 22761 | fi |
| 22762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 22763 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 22764 | if test $ac_cv_type_long_long_int = yes; then |
| 22765 | |
| 22766 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 22767 | |
| 22768 | fi |
| 22769 | |
| 22770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 22771 | $as_echo_n "checking for mbstate_t... " >&6; } |
| 22772 | if ${ac_cv_type_mbstate_t+:} false; then : |
| 22773 | $as_echo_n "(cached) " >&6 |
| 22774 | else |
| 22775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22776 | /* end confdefs.h. */ |
| 22777 | $ac_includes_default |
| 22778 | # include <wchar.h> |
| 22779 | int |
| 22780 | main () |
| 22781 | { |
| 22782 | mbstate_t x; return sizeof x; |
| 22783 | ; |
| 22784 | return 0; |
| 22785 | } |
| 22786 | _ACEOF |
| 22787 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22788 | ac_cv_type_mbstate_t=yes |
| 22789 | else |
| 22790 | ac_cv_type_mbstate_t=no |
| 22791 | fi |
| 22792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22793 | fi |
| 22794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 22795 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 22796 | if test $ac_cv_type_mbstate_t = yes; then |
| 22797 | |
| 22798 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 22799 | |
| 22800 | else |
| 22801 | |
| 22802 | $as_echo "#define mbstate_t int" >>confdefs.h |
| 22803 | |
| 22804 | fi |
| 22805 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 22806 | if test "x$ac_cv_type_mode_t" = xyes; then : |
| 22807 | |
| 22808 | else |
| 22809 | |
| 22810 | cat >>confdefs.h <<_ACEOF |
| 22811 | #define mode_t int |
| 22812 | _ACEOF |
| 22813 | |
| 22814 | fi |
| 22815 | |
| 22816 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 22817 | if test "x$ac_cv_type_off_t" = xyes; then : |
| 22818 | |
| 22819 | else |
| 22820 | |
| 22821 | cat >>confdefs.h <<_ACEOF |
| 22822 | #define off_t long int |
| 22823 | _ACEOF |
| 22824 | |
| 22825 | fi |
| 22826 | |
| 22827 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 22828 | if test "x$ac_cv_type_pid_t" = xyes; then : |
| 22829 | |
| 22830 | else |
| 22831 | |
| 22832 | cat >>confdefs.h <<_ACEOF |
| 22833 | #define pid_t int |
| 22834 | _ACEOF |
| 22835 | |
| 22836 | fi |
| 22837 | |
| 22838 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 22839 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 22840 | |
| 22841 | else |
| 22842 | |
| 22843 | cat >>confdefs.h <<_ACEOF |
| 22844 | #define size_t unsigned int |
| 22845 | _ACEOF |
| 22846 | |
| 22847 | fi |
| 22848 | |
| 22849 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 22850 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
| 22851 | |
| 22852 | else |
| 22853 | |
| 22854 | cat >>confdefs.h <<_ACEOF |
| 22855 | #define ssize_t int |
| 22856 | _ACEOF |
| 22857 | |
| 22858 | fi |
| 22859 | |
| 22860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 22861 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 22862 | if ${ac_cv_type_uid_t+:} false; then : |
| 22863 | $as_echo_n "(cached) " >&6 |
| 22864 | else |
| 22865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22866 | /* end confdefs.h. */ |
| 22867 | #include <sys/types.h> |
| 22868 | |
| 22869 | _ACEOF |
| 22870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22871 | $EGREP "uid_t" >/dev/null 2>&1; then : |
| 22872 | ac_cv_type_uid_t=yes |
| 22873 | else |
| 22874 | ac_cv_type_uid_t=no |
| 22875 | fi |
| 22876 | rm -f conftest* |
| 22877 | |
| 22878 | fi |
| 22879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 22880 | $as_echo "$ac_cv_type_uid_t" >&6; } |
| 22881 | if test $ac_cv_type_uid_t = no; then |
| 22882 | |
| 22883 | $as_echo "#define uid_t int" >>confdefs.h |
| 22884 | |
| 22885 | |
| 22886 | $as_echo "#define gid_t int" >>confdefs.h |
| 22887 | |
| 22888 | fi |
| 22889 | |
| 22890 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 22891 | case $ac_cv_c_uint8_t in #( |
| 22892 | no|yes) ;; #( |
| 22893 | *) |
| 22894 | |
| 22895 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 22896 | |
| 22897 | |
| 22898 | cat >>confdefs.h <<_ACEOF |
| 22899 | #define uint8_t $ac_cv_c_uint8_t |
| 22900 | _ACEOF |
| 22901 | ;; |
| 22902 | esac |
| 22903 | |
| 22904 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 22905 | case $ac_cv_c_uint16_t in #( |
| 22906 | no|yes) ;; #( |
| 22907 | *) |
| 22908 | |
| 22909 | |
| 22910 | cat >>confdefs.h <<_ACEOF |
| 22911 | #define uint16_t $ac_cv_c_uint16_t |
| 22912 | _ACEOF |
| 22913 | ;; |
| 22914 | esac |
| 22915 | |
| 22916 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 22917 | case $ac_cv_c_uint32_t in #( |
| 22918 | no|yes) ;; #( |
| 22919 | *) |
| 22920 | |
| 22921 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 22922 | |
| 22923 | |
| 22924 | cat >>confdefs.h <<_ACEOF |
| 22925 | #define uint32_t $ac_cv_c_uint32_t |
| 22926 | _ACEOF |
| 22927 | ;; |
| 22928 | esac |
| 22929 | |
| 22930 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 22931 | case $ac_cv_c_uint64_t in #( |
| 22932 | no|yes) ;; #( |
| 22933 | *) |
| 22934 | |
| 22935 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
| 22936 | |
| 22937 | |
| 22938 | cat >>confdefs.h <<_ACEOF |
| 22939 | #define uint64_t $ac_cv_c_uint64_t |
| 22940 | _ACEOF |
| 22941 | ;; |
| 22942 | esac |
| 22943 | |
| 22944 | |
| 22945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 22946 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 22947 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 22948 | $as_echo_n "(cached) " >&6 |
| 22949 | else |
| 22950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22951 | /* end confdefs.h. */ |
| 22952 | |
| 22953 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 22954 | implementations with broken preprocessors. Perhaps this can |
| 22955 | be revisited in 2012. In the meantime, code should not expect |
| 22956 | #if to work with literals wider than 32 bits. */ |
| 22957 | /* Test literals. */ |
| 22958 | long long int ll = 9223372036854775807ll; |
| 22959 | long long int nll = -9223372036854775807LL; |
| 22960 | unsigned long long int ull = 18446744073709551615ULL; |
| 22961 | /* Test constant expressions. */ |
| 22962 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 22963 | ? 1 : -1)]; |
| 22964 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 22965 | ? 1 : -1)]; |
| 22966 | int i = 63; |
| 22967 | int |
| 22968 | main () |
| 22969 | { |
| 22970 | /* Test availability of runtime routines for shift and division. */ |
| 22971 | long long int llmax = 9223372036854775807ll; |
| 22972 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22973 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 22974 | | (llmax / ll) | (llmax % ll) |
| 22975 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22976 | | (ullmax / ull) | (ullmax % ull)); |
| 22977 | ; |
| 22978 | return 0; |
| 22979 | } |
| 22980 | |
| 22981 | _ACEOF |
| 22982 | if ac_fn_c_try_link "$LINENO"; then : |
| 22983 | ac_cv_type_unsigned_long_long_int=yes |
| 22984 | else |
| 22985 | ac_cv_type_unsigned_long_long_int=no |
| 22986 | fi |
| 22987 | rm -f core conftest.err conftest.$ac_objext \ |
| 22988 | conftest$ac_exeext conftest.$ac_ext |
| 22989 | fi |
| 22990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 22991 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 22992 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 22993 | |
| 22994 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 22995 | |
| 22996 | fi |
| 22997 | |
| 22998 | |
| 22999 | |
| 23000 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" |
| 23001 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
| 23002 | |
| 23003 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
| 23004 | |
| 23005 | else |
| 23006 | test $ac_cv_type_unsigned_long_long_int = yes \ |
| 23007 | && ac_type='unsigned long long int' \ |
| 23008 | || ac_type='unsigned long int' |
| 23009 | |
| 23010 | cat >>confdefs.h <<_ACEOF |
| 23011 | #define uintmax_t $ac_type |
| 23012 | _ACEOF |
| 23013 | |
| 23014 | fi |
| 23015 | |
| 23016 | |
| 23017 | |
| 23018 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 23019 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
| 23020 | |
| 23021 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h |
| 23022 | |
| 23023 | else |
| 23024 | for ac_type in 'unsigned int' 'unsigned long int' \ |
| 23025 | 'unsigned long long int'; do |
| 23026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23027 | /* end confdefs.h. */ |
| 23028 | $ac_includes_default |
| 23029 | int |
| 23030 | main () |
| 23031 | { |
| 23032 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| 23033 | test_array [0] = 0 |
| 23034 | |
| 23035 | ; |
| 23036 | return 0; |
| 23037 | } |
| 23038 | _ACEOF |
| 23039 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23040 | |
| 23041 | cat >>confdefs.h <<_ACEOF |
| 23042 | #define uintptr_t $ac_type |
| 23043 | _ACEOF |
| 23044 | |
| 23045 | ac_type= |
| 23046 | fi |
| 23047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23048 | test -z "$ac_type" && break |
| 23049 | done |
| 23050 | fi |
| 23051 | |
| 23052 | |
| 23053 | |
| 23054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 23055 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 23056 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 23057 | $as_echo_n "(cached) " >&6 |
| 23058 | else |
| 23059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23060 | /* end confdefs.h. */ |
| 23061 | |
| 23062 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 23063 | implementations with broken preprocessors. Perhaps this can |
| 23064 | be revisited in 2012. In the meantime, code should not expect |
| 23065 | #if to work with literals wider than 32 bits. */ |
| 23066 | /* Test literals. */ |
| 23067 | long long int ll = 9223372036854775807ll; |
| 23068 | long long int nll = -9223372036854775807LL; |
| 23069 | unsigned long long int ull = 18446744073709551615ULL; |
| 23070 | /* Test constant expressions. */ |
| 23071 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 23072 | ? 1 : -1)]; |
| 23073 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 23074 | ? 1 : -1)]; |
| 23075 | int i = 63; |
| 23076 | int |
| 23077 | main () |
| 23078 | { |
| 23079 | /* Test availability of runtime routines for shift and division. */ |
| 23080 | long long int llmax = 9223372036854775807ll; |
| 23081 | unsigned long long int ullmax = 18446744073709551615ull; |
| 23082 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 23083 | | (llmax / ll) | (llmax % ll) |
| 23084 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 23085 | | (ullmax / ull) | (ullmax % ull)); |
| 23086 | ; |
| 23087 | return 0; |
| 23088 | } |
| 23089 | |
| 23090 | _ACEOF |
| 23091 | if ac_fn_c_try_link "$LINENO"; then : |
| 23092 | ac_cv_type_unsigned_long_long_int=yes |
| 23093 | else |
| 23094 | ac_cv_type_unsigned_long_long_int=no |
| 23095 | fi |
| 23096 | rm -f core conftest.err conftest.$ac_objext \ |
| 23097 | conftest$ac_exeext conftest.$ac_ext |
| 23098 | fi |
| 23099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 23100 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 23101 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 23102 | |
| 23103 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 23104 | |
| 23105 | fi |
| 23106 | |
| 23107 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23108 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the |
| 23109 | # C compiler predefines it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23111 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23112 | if ${ac_cv_c_char_unsigned+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23113 | $as_echo_n "(cached) " >&6 |
| 23114 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23116 | /* end confdefs.h. */ |
| 23117 | $ac_includes_default |
| 23118 | int |
| 23119 | main () |
| 23120 | { |
| 23121 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 23122 | test_array [0] = 0 |
| 23123 | |
| 23124 | ; |
| 23125 | return 0; |
| 23126 | } |
| 23127 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23128 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23129 | ac_cv_c_char_unsigned=no |
| 23130 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23131 | ac_cv_c_char_unsigned=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23132 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23134 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23136 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 23137 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23138 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23139 | |
| 23140 | fi |
| 23141 | |
| 23142 | |
| 23143 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 23144 | # The cast to long int works around a bug in the HP C Compiler |
| 23145 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23146 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23147 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23149 | $as_echo_n "checking size of signed short... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23150 | if ${ac_cv_sizeof_signed_short+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23151 | $as_echo_n "(cached) " >&6 |
| 23152 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23153 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23154 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23155 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23156 | if test "$ac_cv_type_signed_short" = yes; then |
| 23157 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23158 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23159 | as_fn_error 77 "cannot compute sizeof (signed short) |
| 23160 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23161 | else |
| 23162 | ac_cv_sizeof_signed_short=0 |
| 23163 | fi |
| 23164 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23165 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23166 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23168 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 23169 | |
| 23170 | |
| 23171 | |
| 23172 | cat >>confdefs.h <<_ACEOF |
| 23173 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 23174 | _ACEOF |
| 23175 | |
| 23176 | |
| 23177 | |
| 23178 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 23179 | # The cast to long int works around a bug in the HP C Compiler |
| 23180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23182 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23184 | $as_echo_n "checking size of unsigned short... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23185 | if ${ac_cv_sizeof_unsigned_short+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23186 | $as_echo_n "(cached) " >&6 |
| 23187 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23188 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23189 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23190 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23191 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 23192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23194 | as_fn_error 77 "cannot compute sizeof (unsigned short) |
| 23195 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23196 | else |
| 23197 | ac_cv_sizeof_unsigned_short=0 |
| 23198 | fi |
| 23199 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23200 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23201 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23203 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 23204 | |
| 23205 | |
| 23206 | |
| 23207 | cat >>confdefs.h <<_ACEOF |
| 23208 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 23209 | _ACEOF |
| 23210 | |
| 23211 | |
| 23212 | |
| 23213 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 23214 | # The cast to long int works around a bug in the HP C Compiler |
| 23215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23217 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23219 | $as_echo_n "checking size of signed int... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23220 | if ${ac_cv_sizeof_signed_int+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23221 | $as_echo_n "(cached) " >&6 |
| 23222 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23223 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23224 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23225 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23226 | if test "$ac_cv_type_signed_int" = yes; then |
| 23227 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23228 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23229 | as_fn_error 77 "cannot compute sizeof (signed int) |
| 23230 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23231 | else |
| 23232 | ac_cv_sizeof_signed_int=0 |
| 23233 | fi |
| 23234 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23235 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23236 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23238 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 23239 | |
| 23240 | |
| 23241 | |
| 23242 | cat >>confdefs.h <<_ACEOF |
| 23243 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 23244 | _ACEOF |
| 23245 | |
| 23246 | |
| 23247 | |
| 23248 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 23249 | # The cast to long int works around a bug in the HP C Compiler |
| 23250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23252 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23254 | $as_echo_n "checking size of unsigned int... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23255 | if ${ac_cv_sizeof_unsigned_int+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23256 | $as_echo_n "(cached) " >&6 |
| 23257 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23258 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23259 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23260 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23261 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 23262 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23263 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23264 | as_fn_error 77 "cannot compute sizeof (unsigned int) |
| 23265 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23266 | else |
| 23267 | ac_cv_sizeof_unsigned_int=0 |
| 23268 | fi |
| 23269 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23270 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23271 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23273 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 23274 | |
| 23275 | |
| 23276 | |
| 23277 | cat >>confdefs.h <<_ACEOF |
| 23278 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 23279 | _ACEOF |
| 23280 | |
| 23281 | |
| 23282 | |
| 23283 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 23284 | # The cast to long int works around a bug in the HP C Compiler |
| 23285 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23286 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23287 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23289 | $as_echo_n "checking size of signed long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23290 | if ${ac_cv_sizeof_signed_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23291 | $as_echo_n "(cached) " >&6 |
| 23292 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23293 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23294 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23295 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23296 | if test "$ac_cv_type_signed_long" = yes; then |
| 23297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23299 | as_fn_error 77 "cannot compute sizeof (signed long) |
| 23300 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23301 | else |
| 23302 | ac_cv_sizeof_signed_long=0 |
| 23303 | fi |
| 23304 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23305 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23306 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23308 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 23309 | |
| 23310 | |
| 23311 | |
| 23312 | cat >>confdefs.h <<_ACEOF |
| 23313 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 23314 | _ACEOF |
| 23315 | |
| 23316 | |
| 23317 | |
| 23318 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 23319 | # The cast to long int works around a bug in the HP C Compiler |
| 23320 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23321 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23322 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23324 | $as_echo_n "checking size of unsigned long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23325 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23326 | $as_echo_n "(cached) " >&6 |
| 23327 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23328 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23329 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23330 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23331 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 23332 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23333 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23334 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 23335 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23336 | else |
| 23337 | ac_cv_sizeof_unsigned_long=0 |
| 23338 | fi |
| 23339 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23340 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23341 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23343 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 23344 | |
| 23345 | |
| 23346 | |
| 23347 | cat >>confdefs.h <<_ACEOF |
| 23348 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 23349 | _ACEOF |
| 23350 | |
| 23351 | |
| 23352 | |
| 23353 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 23354 | # 'signed long long' is not supported then the value defined is zero. |
| 23355 | # The cast to long int works around a bug in the HP C Compiler |
| 23356 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23357 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23358 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23360 | $as_echo_n "checking size of signed long long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23361 | if ${ac_cv_sizeof_signed_long_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23362 | $as_echo_n "(cached) " >&6 |
| 23363 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23364 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23365 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23366 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23367 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 23368 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23369 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23370 | as_fn_error 77 "cannot compute sizeof (signed long long) |
| 23371 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23372 | else |
| 23373 | ac_cv_sizeof_signed_long_long=0 |
| 23374 | fi |
| 23375 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23376 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23377 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23379 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 23380 | |
| 23381 | |
| 23382 | |
| 23383 | cat >>confdefs.h <<_ACEOF |
| 23384 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 23385 | _ACEOF |
| 23386 | |
| 23387 | |
| 23388 | |
| 23389 | # Obtain size of a 'unsigned long long' and define as |
| 23390 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 23391 | # supported then the value defined is zero. |
| 23392 | # The cast to long int works around a bug in the HP C Compiler |
| 23393 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23394 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23395 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23397 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23398 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23399 | $as_echo_n "(cached) " >&6 |
| 23400 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23401 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23402 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23403 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23404 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 23405 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23407 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 23408 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23409 | else |
| 23410 | ac_cv_sizeof_unsigned_long_long=0 |
| 23411 | fi |
| 23412 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23413 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23414 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23416 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 23417 | |
| 23418 | |
| 23419 | |
| 23420 | cat >>confdefs.h <<_ACEOF |
| 23421 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 23422 | _ACEOF |
| 23423 | |
| 23424 | |
| 23425 | |
| 23426 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 23427 | # The cast to long int works around a bug in the HP C Compiler |
| 23428 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23429 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23430 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23432 | $as_echo_n "checking size of off_t... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23433 | if ${ac_cv_sizeof_off_t+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23434 | $as_echo_n "(cached) " >&6 |
| 23435 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23436 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23437 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23438 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23439 | if test "$ac_cv_type_off_t" = yes; then |
| 23440 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23442 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 23443 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23444 | else |
| 23445 | ac_cv_sizeof_off_t=0 |
| 23446 | fi |
| 23447 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23448 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23449 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23451 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 23452 | |
| 23453 | |
| 23454 | |
| 23455 | cat >>confdefs.h <<_ACEOF |
| 23456 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 23457 | _ACEOF |
| 23458 | |
| 23459 | |
| 23460 | |
| 23461 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 23462 | # The cast to long int works around a bug in the HP C Compiler |
| 23463 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23464 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23465 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23467 | $as_echo_n "checking size of size_t... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23468 | if ${ac_cv_sizeof_size_t+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23469 | $as_echo_n "(cached) " >&6 |
| 23470 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23471 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23472 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23473 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23474 | if test "$ac_cv_type_size_t" = yes; then |
| 23475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23476 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23477 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 23478 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23479 | else |
| 23480 | ac_cv_sizeof_size_t=0 |
| 23481 | fi |
| 23482 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23483 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23484 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23486 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 23487 | |
| 23488 | |
| 23489 | |
| 23490 | cat >>confdefs.h <<_ACEOF |
| 23491 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 23492 | _ACEOF |
| 23493 | |
| 23494 | |
| 23495 | |
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23496 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T |
| 23497 | # The cast to long int works around a bug in the HP C Compiler |
| 23498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23500 | # This bug is HP SR number 8606223364. |
| 23501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
| 23502 | $as_echo_n "checking size of ssize_t... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23503 | if ${ac_cv_sizeof_ssize_t+:} false; then : |
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23504 | $as_echo_n "(cached) " >&6 |
| 23505 | else |
| 23506 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : |
| 23507 | |
| 23508 | else |
| 23509 | if test "$ac_cv_type_ssize_t" = yes; then |
| 23510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23511 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23512 | as_fn_error 77 "cannot compute sizeof (ssize_t) |
| 23513 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 23514 | else |
| 23515 | ac_cv_sizeof_ssize_t=0 |
| 23516 | fi |
| 23517 | fi |
| 23518 | |
| 23519 | fi |
| 23520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
| 23521 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } |
| 23522 | |
| 23523 | |
| 23524 | |
| 23525 | cat >>confdefs.h <<_ACEOF |
| 23526 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t |
| 23527 | _ACEOF |
| 23528 | |
| 23529 | |
| 23530 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23531 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 23532 | # The cast to long int works around a bug in the HP C Compiler |
| 23533 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23534 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23535 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23537 | $as_echo_n "checking size of unsigned int*... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23538 | if ${ac_cv_sizeof_unsigned_intp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23539 | $as_echo_n "(cached) " >&6 |
| 23540 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23541 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23542 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23543 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23544 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 23545 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23546 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23547 | as_fn_error 77 "cannot compute sizeof (unsigned int*) |
| 23548 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23549 | else |
| 23550 | ac_cv_sizeof_unsigned_intp=0 |
| 23551 | fi |
| 23552 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23553 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23554 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23556 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 23557 | |
| 23558 | |
| 23559 | |
| 23560 | cat >>confdefs.h <<_ACEOF |
| 23561 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 23562 | _ACEOF |
| 23563 | |
| 23564 | |
| 23565 | |
| 23566 | # |
| 23567 | # Compute sized types for current CPU and compiler options. |
| 23568 | # |
| 23569 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23571 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 23572 | INT8_T='signed char' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23574 | $as_echo "$INT8_T" >&6; } |
| 23575 | |
| 23576 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23578 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 23579 | UINT8_T='unsigned char' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23581 | $as_echo "$UINT8_T" >&6; } |
| 23582 | |
| 23583 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23585 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 23586 | INT16_T='signed short' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23588 | $as_echo "$INT16_T" >&6; } |
| 23589 | |
| 23590 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23592 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 23593 | UINT16_T='unsigned short' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23595 | $as_echo "$UINT16_T" >&6; } |
| 23596 | |
| 23597 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23599 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 23600 | INT32_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23601 | INT32_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23602 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 23603 | INT32_T='signed int' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23604 | INT32_F='""' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23605 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 23606 | INT32_T='signed long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23607 | INT32_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23608 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23610 | $as_echo "$INT32_T" >&6; } |
| 23611 | |
| 23612 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23613 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23615 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 23616 | UINT32_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23617 | UINT32_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23618 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 23619 | UINT32_T='unsigned int' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23620 | UINT32_F='""' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23621 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 23622 | UINT32_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23623 | UINT32_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23624 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23626 | $as_echo "$UINT32_T" >&6; } |
| 23627 | |
| 23628 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23629 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23631 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 23632 | INT64_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23633 | INT64_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23634 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 23635 | INT64_T='signed long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23636 | INT64_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23637 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 23638 | INT64_T='signed long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23639 | INT64_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23640 | fi |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23641 | case "${build_os}" in |
| 23642 | mingw* ) |
| 23643 | INT64_F='"I64"' |
| 23644 | ;; |
| 23645 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23647 | $as_echo "$INT64_T" >&6; } |
| 23648 | |
| 23649 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23650 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23652 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 23653 | UINT64_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23654 | UINT64_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23655 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 23656 | UINT64_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23657 | UINT64_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23658 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 23659 | UINT64_T='unsigned long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23660 | UINT64_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23661 | fi |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23662 | case "${build_os}" in |
| 23663 | mingw* ) |
| 23664 | UINT64_F='"I64"' |
| 23665 | ;; |
| 23666 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23668 | $as_echo "$UINT64_T" >&6; } |
| 23669 | |
| 23670 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23671 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23673 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 23674 | UINTMAX_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23675 | UINTMAX_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23676 | if test "$UINT64_T" != 'none'; then |
| 23677 | UINTMAX_T=$UINT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23678 | UINTMAX_F=$UINT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23679 | elif test "$UINT32_T" != 'none'; then |
| 23680 | UINTMAX_T=$UINT32_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23681 | UINTMAX_F=$UINT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23682 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23684 | $as_echo "$UINTMAX_T" >&6; } |
| 23685 | |
| 23686 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23687 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23689 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 23690 | UINTPTR_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23691 | UINTPTR_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23692 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 23693 | UINTPTR_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23694 | UINTPTR_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23695 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 23696 | UINTPTR_T='unsigned long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23697 | UINTPTR_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23698 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23700 | $as_echo "$UINTPTR_T" >&6; } |
| 23701 | |
| 23702 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23703 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23705 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23707 | /* end confdefs.h. */ |
| 23708 | |
| 23709 | int |
| 23710 | main () |
| 23711 | { |
| 23712 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 23713 | ; |
| 23714 | return 0; |
| 23715 | } |
| 23716 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23717 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23719 | $as_echo "yes" >&6; } |
| 23720 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23722 | $as_echo "no" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23724 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23726 | /* end confdefs.h. */ |
| 23727 | |
| 23728 | int |
| 23729 | main () |
| 23730 | { |
| 23731 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 23732 | ; |
| 23733 | return 0; |
| 23734 | } |
| 23735 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23736 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23738 | $as_echo "yes" >&6; } |
| 23739 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23740 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23741 | |
| 23742 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23744 | $as_echo "no" >&6; } |
| 23745 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23746 | $as_echo "#define __func__ __FILE__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23747 | |
| 23748 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23750 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23752 | |
| 23753 | ######## |
| 23754 | # |
| 23755 | # Check for functions |
| 23756 | # |
| 23757 | ######## |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23758 | for ac_header in stdlib.h unistd.h |
| 23759 | do : |
| 23760 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 23761 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23762 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23763 | cat >>confdefs.h <<_ACEOF |
| 23764 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23765 | _ACEOF |
| 23766 | |
| 23767 | fi |
| 23768 | |
| 23769 | done |
| 23770 | |
| 23771 | for ac_func in getpagesize |
| 23772 | do : |
| 23773 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23774 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23775 | cat >>confdefs.h <<_ACEOF |
| 23776 | #define HAVE_GETPAGESIZE 1 |
| 23777 | _ACEOF |
| 23778 | |
| 23779 | fi |
| 23780 | done |
| 23781 | |
| 23782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 |
| 23783 | $as_echo_n "checking for working mmap file i/o... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23784 | if ${magick_cv_func_mmap_fileio+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23785 | $as_echo_n "(cached) " >&6 |
| 23786 | else |
| 23787 | if test "$cross_compiling" = yes; then : |
| 23788 | magick_cv_func_mmap_fileio=no |
| 23789 | else |
| 23790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23791 | /* end confdefs.h. */ |
| 23792 | $ac_includes_default |
| 23793 | /* malloc might have been renamed as rpl_malloc. */ |
| 23794 | #undef malloc |
| 23795 | |
| 23796 | /* |
| 23797 | This test is derived from GNU Autoconf's similar macro. |
| 23798 | The purpose of this test is to verify that files may be memory |
| 23799 | mapped, and that memory mapping and file I/O are coherent. |
| 23800 | |
| 23801 | The test creates a test file, memory maps the file, updates |
| 23802 | the file using the memory map, and then reads the file using |
| 23803 | file I/O to verify that the file contains the updates. |
| 23804 | */ |
| 23805 | |
| 23806 | #include <fcntl.h> |
| 23807 | #include <sys/mman.h> |
| 23808 | |
| 23809 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 23810 | char *malloc (); |
| 23811 | #endif |
| 23812 | |
| 23813 | /* This mess was copied from the GNU getpagesize.h. */ |
| 23814 | #if !HAVE_GETPAGESIZE |
| 23815 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 23816 | # if !HAVE_SYS_PARAM_H |
| 23817 | # define HAVE_SYS_PARAM_H 1 |
| 23818 | # endif |
| 23819 | |
| 23820 | # ifdef _SC_PAGESIZE |
| 23821 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 23822 | # else /* no _SC_PAGESIZE */ |
| 23823 | # if HAVE_SYS_PARAM_H |
| 23824 | # include <sys/param.h> |
| 23825 | # ifdef EXEC_PAGESIZE |
| 23826 | # define getpagesize() EXEC_PAGESIZE |
| 23827 | # else /* no EXEC_PAGESIZE */ |
| 23828 | # ifdef NBPG |
| 23829 | # define getpagesize() NBPG * CLSIZE |
| 23830 | # ifndef CLSIZE |
| 23831 | # define CLSIZE 1 |
| 23832 | # endif /* no CLSIZE */ |
| 23833 | # else /* no NBPG */ |
| 23834 | # ifdef NBPC |
| 23835 | # define getpagesize() NBPC |
| 23836 | # else /* no NBPC */ |
| 23837 | # ifdef PAGESIZE |
| 23838 | # define getpagesize() PAGESIZE |
| 23839 | # endif /* PAGESIZE */ |
| 23840 | # endif /* no NBPC */ |
| 23841 | # endif /* no NBPG */ |
| 23842 | # endif /* no EXEC_PAGESIZE */ |
| 23843 | # else /* no HAVE_SYS_PARAM_H */ |
| 23844 | # define getpagesize() 8192 /* punt totally */ |
| 23845 | # endif /* no HAVE_SYS_PARAM_H */ |
| 23846 | # endif /* no _SC_PAGESIZE */ |
| 23847 | |
| 23848 | #endif /* no HAVE_GETPAGESIZE */ |
| 23849 | |
| 23850 | int |
| 23851 | main () |
| 23852 | { |
| 23853 | char *data, *data2, *data3; |
| 23854 | int i, pagesize; |
| 23855 | int fd; |
| 23856 | |
| 23857 | pagesize = getpagesize (); |
| 23858 | |
| 23859 | /* First, make a file with some known garbage in it. */ |
| 23860 | data = (char *) malloc (pagesize); |
| 23861 | if (!data) |
| 23862 | exit (1); |
| 23863 | for (i = 0; i < pagesize; ++i) |
| 23864 | *(data + i) = rand (); |
| 23865 | umask (0); |
| 23866 | fd = creat ("conftest.mmap", 0600); |
| 23867 | if (fd < 0) |
| 23868 | exit (1); |
| 23869 | if (write (fd, data, pagesize) != pagesize) |
| 23870 | exit (1); |
| 23871 | close (fd); |
| 23872 | |
| 23873 | /* Mmap the file as read/write/shared and verify that we see the |
| 23874 | same garbage. */ |
| 23875 | fd = open ("conftest.mmap", O_RDWR); |
| 23876 | if (fd < 0) |
| 23877 | exit (1); |
| 23878 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); |
| 23879 | if (data2 == 0) |
| 23880 | exit (1); |
| 23881 | for (i = 0; i < pagesize; ++i) |
| 23882 | if (*(data + i) != *(data2 + i)) |
| 23883 | exit (1); |
| 23884 | |
| 23885 | /* Finally, make sure that changes to the mapped area |
| 23886 | percolate back to the file as seen by read(). */ |
| 23887 | for (i = 0; i < pagesize; ++i) |
| 23888 | *(data2 + i) = *(data2 + i) + 1; |
| 23889 | data3 = (char *) malloc (pagesize); |
| 23890 | if (!data3) |
| 23891 | exit (1); |
| 23892 | if (read (fd, data3, pagesize) != pagesize) |
| 23893 | exit (1); |
| 23894 | for (i = 0; i < pagesize; ++i) |
| 23895 | if (*(data2 + i) != *(data3 + i)) |
| 23896 | exit (1); |
| 23897 | close (fd); |
| 23898 | exit (0); |
| 23899 | } |
| 23900 | _ACEOF |
| 23901 | if ac_fn_c_try_run "$LINENO"; then : |
| 23902 | magick_cv_func_mmap_fileio=yes |
| 23903 | else |
| 23904 | magick_cv_func_mmap_fileio=no |
| 23905 | fi |
| 23906 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23907 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23908 | fi |
| 23909 | |
| 23910 | fi |
| 23911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 |
| 23912 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } |
| 23913 | if test $magick_cv_func_mmap_fileio = yes; then |
| 23914 | |
| 23915 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h |
| 23916 | |
| 23917 | fi |
| 23918 | rm -f conftest.mmap |
| 23919 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23921 | $as_echo_n "checking whether closedir returns void... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23922 | if ${ac_cv_func_closedir_void+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23923 | $as_echo_n "(cached) " >&6 |
| 23924 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23925 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23926 | ac_cv_func_closedir_void=yes |
| 23927 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23929 | /* end confdefs.h. */ |
| 23930 | $ac_includes_default |
| 23931 | #include <$ac_header_dirent> |
| 23932 | #ifndef __cplusplus |
| 23933 | int closedir (); |
| 23934 | #endif |
| 23935 | |
| 23936 | int |
| 23937 | main () |
| 23938 | { |
| 23939 | return closedir (opendir (".")) != 0; |
| 23940 | ; |
| 23941 | return 0; |
| 23942 | } |
| 23943 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23944 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23945 | ac_cv_func_closedir_void=no |
| 23946 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23947 | ac_cv_func_closedir_void=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23948 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23950 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23951 | fi |
| 23952 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23953 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23955 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 23956 | if test $ac_cv_func_closedir_void = yes; then |
| 23957 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23958 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23959 | |
| 23960 | fi |
| 23961 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23962 | |
| 23963 | |
| 23964 | |
| 23965 | for ac_header in $ac_header_list |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23966 | do : |
| 23967 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23968 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 23969 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23970 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23971 | cat >>confdefs.h <<_ACEOF |
| 23972 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 23973 | _ACEOF |
| 23974 | |
| 23975 | fi |
| 23976 | |
| 23977 | done |
| 23978 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23979 | |
| 23980 | |
| 23981 | |
| 23982 | |
| 23983 | |
| 23984 | |
| 23985 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23986 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23987 | do : |
| 23988 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23989 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23990 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23991 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23992 | _ACEOF |
| 23993 | |
| 23994 | fi |
| 23995 | done |
| 23996 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23998 | $as_echo_n "checking for working mmap... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23999 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24000 | $as_echo_n "(cached) " >&6 |
| 24001 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24002 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24003 | ac_cv_func_mmap_fixed_mapped=no |
| 24004 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24006 | /* end confdefs.h. */ |
| 24007 | $ac_includes_default |
| 24008 | /* malloc might have been renamed as rpl_malloc. */ |
| 24009 | #undef malloc |
| 24010 | |
| 24011 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 24012 | Here is a matrix of mmap possibilities: |
| 24013 | mmap private not fixed |
| 24014 | mmap private fixed at somewhere currently unmapped |
| 24015 | mmap private fixed at somewhere already mapped |
| 24016 | mmap shared not fixed |
| 24017 | mmap shared fixed at somewhere currently unmapped |
| 24018 | mmap shared fixed at somewhere already mapped |
| 24019 | For private mappings, we should verify that changes cannot be read() |
| 24020 | back from the file, nor mmap's back from the file at a different |
| 24021 | address. (There have been systems where private was not correctly |
| 24022 | implemented like the infamous i386 svr4.0, and systems where the |
| 24023 | VM page cache was not coherent with the file system buffer cache |
| 24024 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 24025 | For shared mappings, we should conversely verify that changes get |
| 24026 | propagated back to all the places they're supposed to be. |
| 24027 | |
| 24028 | Grep wants private fixed already mapped. |
| 24029 | The main things grep needs to know about mmap are: |
| 24030 | * does it exist and is it safe to write into the mmap'd area |
| 24031 | * how to use it (BSD variants) */ |
| 24032 | |
| 24033 | #include <fcntl.h> |
| 24034 | #include <sys/mman.h> |
| 24035 | |
| 24036 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 24037 | char *malloc (); |
| 24038 | #endif |
| 24039 | |
| 24040 | /* This mess was copied from the GNU getpagesize.h. */ |
| 24041 | #ifndef HAVE_GETPAGESIZE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24042 | # ifdef _SC_PAGESIZE |
| 24043 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 24044 | # else /* no _SC_PAGESIZE */ |
| 24045 | # ifdef HAVE_SYS_PARAM_H |
| 24046 | # include <sys/param.h> |
| 24047 | # ifdef EXEC_PAGESIZE |
| 24048 | # define getpagesize() EXEC_PAGESIZE |
| 24049 | # else /* no EXEC_PAGESIZE */ |
| 24050 | # ifdef NBPG |
| 24051 | # define getpagesize() NBPG * CLSIZE |
| 24052 | # ifndef CLSIZE |
| 24053 | # define CLSIZE 1 |
| 24054 | # endif /* no CLSIZE */ |
| 24055 | # else /* no NBPG */ |
| 24056 | # ifdef NBPC |
| 24057 | # define getpagesize() NBPC |
| 24058 | # else /* no NBPC */ |
| 24059 | # ifdef PAGESIZE |
| 24060 | # define getpagesize() PAGESIZE |
| 24061 | # endif /* PAGESIZE */ |
| 24062 | # endif /* no NBPC */ |
| 24063 | # endif /* no NBPG */ |
| 24064 | # endif /* no EXEC_PAGESIZE */ |
| 24065 | # else /* no HAVE_SYS_PARAM_H */ |
| 24066 | # define getpagesize() 8192 /* punt totally */ |
| 24067 | # endif /* no HAVE_SYS_PARAM_H */ |
| 24068 | # endif /* no _SC_PAGESIZE */ |
| 24069 | |
| 24070 | #endif /* no HAVE_GETPAGESIZE */ |
| 24071 | |
| 24072 | int |
| 24073 | main () |
| 24074 | { |
| 24075 | char *data, *data2, *data3; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24076 | const char *cdata2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24077 | int i, pagesize; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24078 | int fd, fd2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24079 | |
| 24080 | pagesize = getpagesize (); |
| 24081 | |
| 24082 | /* First, make a file with some known garbage in it. */ |
| 24083 | data = (char *) malloc (pagesize); |
| 24084 | if (!data) |
| 24085 | return 1; |
| 24086 | for (i = 0; i < pagesize; ++i) |
| 24087 | *(data + i) = rand (); |
| 24088 | umask (0); |
| 24089 | fd = creat ("conftest.mmap", 0600); |
| 24090 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24091 | return 2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24092 | if (write (fd, data, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24093 | return 3; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24094 | close (fd); |
| 24095 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24096 | /* Next, check that the tail of a page is zero-filled. File must have |
| 24097 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 24098 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 24099 | if (fd2 < 0) |
| 24100 | return 4; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24101 | cdata2 = ""; |
| 24102 | if (write (fd2, cdata2, 1) != 1) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24103 | return 5; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24104 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24105 | if (data2 == MAP_FAILED) |
| 24106 | return 6; |
| 24107 | for (i = 0; i < pagesize; ++i) |
| 24108 | if (*(data2 + i)) |
| 24109 | return 7; |
| 24110 | close (fd2); |
| 24111 | if (munmap (data2, pagesize)) |
| 24112 | return 8; |
| 24113 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24114 | /* Next, try to mmap the file at a fixed address which already has |
| 24115 | something else allocated at it. If we can, also make sure that |
| 24116 | we see the same garbage. */ |
| 24117 | fd = open ("conftest.mmap", O_RDWR); |
| 24118 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24119 | return 9; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24120 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 24121 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24122 | return 10; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24123 | for (i = 0; i < pagesize; ++i) |
| 24124 | if (*(data + i) != *(data2 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24125 | return 11; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24126 | |
| 24127 | /* Finally, make sure that changes to the mapped area do not |
| 24128 | percolate back to the file as seen by read(). (This is a bug on |
| 24129 | some variants of i386 svr4.0.) */ |
| 24130 | for (i = 0; i < pagesize; ++i) |
| 24131 | *(data2 + i) = *(data2 + i) + 1; |
| 24132 | data3 = (char *) malloc (pagesize); |
| 24133 | if (!data3) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24134 | return 12; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24135 | if (read (fd, data3, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24136 | return 13; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24137 | for (i = 0; i < pagesize; ++i) |
| 24138 | if (*(data + i) != *(data3 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24139 | return 14; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24140 | close (fd); |
| 24141 | return 0; |
| 24142 | } |
| 24143 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24144 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24145 | ac_cv_func_mmap_fixed_mapped=yes |
| 24146 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24147 | ac_cv_func_mmap_fixed_mapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24148 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24149 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24150 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24151 | fi |
| 24152 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24153 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24155 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 24156 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 24157 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24158 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24159 | |
| 24160 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24161 | rm -f conftest.mmap conftest.txt |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24162 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24163 | for ac_header in vfork.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24164 | do : |
| 24165 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24166 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24167 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24168 | #define HAVE_VFORK_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24169 | _ACEOF |
| 24170 | |
| 24171 | fi |
| 24172 | |
| 24173 | done |
| 24174 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24175 | for ac_func in fork vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24176 | do : |
| 24177 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24178 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24179 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24180 | cat >>confdefs.h <<_ACEOF |
| 24181 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24182 | _ACEOF |
| 24183 | |
| 24184 | fi |
| 24185 | done |
| 24186 | |
| 24187 | if test "x$ac_cv_func_fork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24189 | $as_echo_n "checking for working fork... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24190 | if ${ac_cv_func_fork_works+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24191 | $as_echo_n "(cached) " >&6 |
| 24192 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24193 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24194 | ac_cv_func_fork_works=cross |
| 24195 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24197 | /* end confdefs.h. */ |
| 24198 | $ac_includes_default |
| 24199 | int |
| 24200 | main () |
| 24201 | { |
| 24202 | |
| 24203 | /* By Ruediger Kuhlmann. */ |
| 24204 | return fork () < 0; |
| 24205 | |
| 24206 | ; |
| 24207 | return 0; |
| 24208 | } |
| 24209 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24210 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24211 | ac_cv_func_fork_works=yes |
| 24212 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24213 | ac_cv_func_fork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24214 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24215 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24216 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24217 | fi |
| 24218 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24219 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24221 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 24222 | |
| 24223 | else |
| 24224 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 24225 | fi |
| 24226 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 24227 | case $host in |
| 24228 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 24229 | # Override, as these systems have only a dummy fork() stub |
| 24230 | ac_cv_func_fork_works=no |
| 24231 | ;; |
| 24232 | *) |
| 24233 | ac_cv_func_fork_works=yes |
| 24234 | ;; |
| 24235 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24237 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 24238 | fi |
| 24239 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 24240 | if test "x$ac_cv_func_vfork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24242 | $as_echo_n "checking for working vfork... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24243 | if ${ac_cv_func_vfork_works+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24244 | $as_echo_n "(cached) " >&6 |
| 24245 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24246 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24247 | ac_cv_func_vfork_works=cross |
| 24248 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24250 | /* end confdefs.h. */ |
| 24251 | /* Thanks to Paul Eggert for this test. */ |
| 24252 | $ac_includes_default |
| 24253 | #include <sys/wait.h> |
| 24254 | #ifdef HAVE_VFORK_H |
| 24255 | # include <vfork.h> |
| 24256 | #endif |
| 24257 | /* On some sparc systems, changes by the child to local and incoming |
| 24258 | argument registers are propagated back to the parent. The compiler |
| 24259 | is told about this with #include <vfork.h>, but some compilers |
| 24260 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 24261 | static variable whose address is put into a register that is |
| 24262 | clobbered by the vfork. */ |
| 24263 | static void |
| 24264 | #ifdef __cplusplus |
| 24265 | sparc_address_test (int arg) |
| 24266 | # else |
| 24267 | sparc_address_test (arg) int arg; |
| 24268 | #endif |
| 24269 | { |
| 24270 | static pid_t child; |
| 24271 | if (!child) { |
| 24272 | child = vfork (); |
| 24273 | if (child < 0) { |
| 24274 | perror ("vfork"); |
| 24275 | _exit(2); |
| 24276 | } |
| 24277 | if (!child) { |
| 24278 | arg = getpid(); |
| 24279 | write(-1, "", 0); |
| 24280 | _exit (arg); |
| 24281 | } |
| 24282 | } |
| 24283 | } |
| 24284 | |
| 24285 | int |
| 24286 | main () |
| 24287 | { |
| 24288 | pid_t parent = getpid (); |
| 24289 | pid_t child; |
| 24290 | |
| 24291 | sparc_address_test (0); |
| 24292 | |
| 24293 | child = vfork (); |
| 24294 | |
| 24295 | if (child == 0) { |
| 24296 | /* Here is another test for sparc vfork register problems. This |
| 24297 | test uses lots of local variables, at least as many local |
| 24298 | variables as main has allocated so far including compiler |
| 24299 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 24300 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 24301 | reuse the register of parent for one of the local variables, |
| 24302 | since it will think that parent can't possibly be used any more |
| 24303 | in this routine. Assigning to the local variable will thus |
| 24304 | munge parent in the parent process. */ |
| 24305 | pid_t |
| 24306 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 24307 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 24308 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 24309 | use the same hardware register for all 8 local variables. */ |
| 24310 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 24311 | || p != p5 || p != p6 || p != p7) |
| 24312 | _exit(1); |
| 24313 | |
| 24314 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 24315 | from child file descriptors. If the child closes a descriptor |
| 24316 | before it execs or exits, this munges the parent's descriptor |
| 24317 | as well. Test for this by closing stdout in the child. */ |
| 24318 | _exit(close(fileno(stdout)) != 0); |
| 24319 | } else { |
| 24320 | int status; |
| 24321 | struct stat st; |
| 24322 | |
| 24323 | while (wait(&status) != child) |
| 24324 | ; |
| 24325 | return ( |
| 24326 | /* Was there some problem with vforking? */ |
| 24327 | child < 0 |
| 24328 | |
| 24329 | /* Did the child fail? (This shouldn't happen.) */ |
| 24330 | || status |
| 24331 | |
| 24332 | /* Did the vfork/compiler bug occur? */ |
| 24333 | || parent != getpid() |
| 24334 | |
| 24335 | /* Did the file descriptor bug occur? */ |
| 24336 | || fstat(fileno(stdout), &st) != 0 |
| 24337 | ); |
| 24338 | } |
| 24339 | } |
| 24340 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24341 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24342 | ac_cv_func_vfork_works=yes |
| 24343 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24344 | ac_cv_func_vfork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24345 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24346 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24347 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24348 | fi |
| 24349 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24350 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24352 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 24353 | |
| 24354 | fi; |
| 24355 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 24356 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24357 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24358 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 24359 | fi |
| 24360 | |
| 24361 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 24362 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24363 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24364 | |
| 24365 | else |
| 24366 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24367 | $as_echo "#define vfork fork" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24368 | |
| 24369 | fi |
| 24370 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 24371 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24372 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24373 | |
| 24374 | fi |
| 24375 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24377 | $as_echo_n "checking for working memcmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24378 | if ${ac_cv_func_memcmp_working+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24379 | $as_echo_n "(cached) " >&6 |
| 24380 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24381 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24382 | ac_cv_func_memcmp_working=no |
| 24383 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24385 | /* end confdefs.h. */ |
| 24386 | $ac_includes_default |
| 24387 | int |
| 24388 | main () |
| 24389 | { |
| 24390 | |
| 24391 | /* Some versions of memcmp are not 8-bit clean. */ |
| 24392 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 24393 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 24394 | return 1; |
| 24395 | |
| 24396 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 24397 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 24398 | William Lewis provided this test program. */ |
| 24399 | { |
| 24400 | char foo[21]; |
| 24401 | char bar[21]; |
| 24402 | int i; |
| 24403 | for (i = 0; i < 4; i++) |
| 24404 | { |
| 24405 | char *a = foo + i; |
| 24406 | char *b = bar + i; |
| 24407 | strcpy (a, "--------01111111"); |
| 24408 | strcpy (b, "--------10000000"); |
| 24409 | if (memcmp (a, b, 16) >= 0) |
| 24410 | return 1; |
| 24411 | } |
| 24412 | return 0; |
| 24413 | } |
| 24414 | |
| 24415 | ; |
| 24416 | return 0; |
| 24417 | } |
| 24418 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24419 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24420 | ac_cv_func_memcmp_working=yes |
| 24421 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24422 | ac_cv_func_memcmp_working=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24423 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24424 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24425 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24426 | fi |
| 24427 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24428 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24430 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 24431 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 24432 | *" memcmp.$ac_objext "* ) ;; |
| 24433 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 24434 | ;; |
| 24435 | esac |
| 24436 | |
| 24437 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24438 | for ac_header in sys/select.h sys/socket.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24439 | do : |
| 24440 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24441 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24442 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24443 | cat >>confdefs.h <<_ACEOF |
| 24444 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24445 | _ACEOF |
| 24446 | |
| 24447 | fi |
| 24448 | |
| 24449 | done |
| 24450 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24452 | $as_echo_n "checking types of arguments for select... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24453 | if ${ac_cv_func_select_args+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24454 | $as_echo_n "(cached) " >&6 |
| 24455 | else |
| 24456 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 24457 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 24458 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24460 | /* end confdefs.h. */ |
| 24461 | $ac_includes_default |
| 24462 | #ifdef HAVE_SYS_SELECT_H |
| 24463 | # include <sys/select.h> |
| 24464 | #endif |
| 24465 | #ifdef HAVE_SYS_SOCKET_H |
| 24466 | # include <sys/socket.h> |
| 24467 | #endif |
| 24468 | |
| 24469 | int |
| 24470 | main () |
| 24471 | { |
| 24472 | extern int select ($ac_arg1, |
| 24473 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 24474 | $ac_arg5); |
| 24475 | ; |
| 24476 | return 0; |
| 24477 | } |
| 24478 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24479 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24480 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24481 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24483 | done |
| 24484 | done |
| 24485 | done |
| 24486 | # Provide a safe default value. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24487 | : "${ac_cv_func_select_args=int,int *,struct timeval *}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24488 | |
| 24489 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24491 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 24492 | ac_save_IFS=$IFS; IFS=',' |
| 24493 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 24494 | IFS=$ac_save_IFS |
| 24495 | shift |
| 24496 | |
| 24497 | cat >>confdefs.h <<_ACEOF |
| 24498 | #define SELECT_TYPE_ARG1 $1 |
| 24499 | _ACEOF |
| 24500 | |
| 24501 | |
| 24502 | cat >>confdefs.h <<_ACEOF |
| 24503 | #define SELECT_TYPE_ARG234 ($2) |
| 24504 | _ACEOF |
| 24505 | |
| 24506 | |
| 24507 | cat >>confdefs.h <<_ACEOF |
| 24508 | #define SELECT_TYPE_ARG5 ($3) |
| 24509 | _ACEOF |
| 24510 | |
| 24511 | rm -f conftest* |
| 24512 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24513 | if ${ac_cv_func_setvbuf_reversed+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24514 | $as_echo_n "(cached) " >&6 |
| 24515 | else |
| 24516 | ac_cv_func_setvbuf_reversed=no |
| 24517 | fi |
| 24518 | |
| 24519 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24521 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24522 | if ${ac_cv_type_signal+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24523 | $as_echo_n "(cached) " >&6 |
| 24524 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24526 | /* end confdefs.h. */ |
| 24527 | #include <sys/types.h> |
| 24528 | #include <signal.h> |
| 24529 | |
| 24530 | int |
| 24531 | main () |
| 24532 | { |
| 24533 | return *(signal (0, 0)) (0) == 1; |
| 24534 | ; |
| 24535 | return 0; |
| 24536 | } |
| 24537 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24538 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24539 | ac_cv_type_signal=int |
| 24540 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24541 | ac_cv_type_signal=void |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24542 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24544 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24546 | $as_echo "$ac_cv_type_signal" >&6; } |
| 24547 | |
| 24548 | cat >>confdefs.h <<_ACEOF |
| 24549 | #define RETSIGTYPE $ac_cv_type_signal |
| 24550 | _ACEOF |
| 24551 | |
| 24552 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24554 | $as_echo_n "checking for working strtod... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24555 | if ${ac_cv_func_strtod+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24556 | $as_echo_n "(cached) " >&6 |
| 24557 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24558 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24559 | ac_cv_func_strtod=no |
| 24560 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24562 | /* end confdefs.h. */ |
| 24563 | |
| 24564 | $ac_includes_default |
| 24565 | #ifndef strtod |
| 24566 | double strtod (); |
| 24567 | #endif |
| 24568 | int |
| 24569 | main() |
| 24570 | { |
| 24571 | { |
| 24572 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 24573 | char *string = " +69"; |
| 24574 | char *term; |
| 24575 | double value; |
| 24576 | value = strtod (string, &term); |
| 24577 | if (value != 69 || term != (string + 4)) |
| 24578 | return 1; |
| 24579 | } |
| 24580 | |
| 24581 | { |
| 24582 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 24583 | terminating character under some conditions. */ |
| 24584 | char *string = "NaN"; |
| 24585 | char *term; |
| 24586 | strtod (string, &term); |
| 24587 | if (term != string && *(term - 1) == 0) |
| 24588 | return 1; |
| 24589 | } |
| 24590 | return 0; |
| 24591 | } |
| 24592 | |
| 24593 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24594 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24595 | ac_cv_func_strtod=yes |
| 24596 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24597 | ac_cv_func_strtod=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24598 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24599 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24600 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24601 | fi |
| 24602 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24603 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24605 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 24606 | if test $ac_cv_func_strtod = no; then |
| 24607 | case " $LIBOBJS " in |
| 24608 | *" strtod.$ac_objext "* ) ;; |
| 24609 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 24610 | ;; |
| 24611 | esac |
| 24612 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24613 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24614 | if test "x$ac_cv_func_pow" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24615 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24616 | fi |
| 24617 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24618 | if test $ac_cv_func_pow = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24620 | $as_echo_n "checking for pow in -lm... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24621 | if ${ac_cv_lib_m_pow+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24622 | $as_echo_n "(cached) " >&6 |
| 24623 | else |
| 24624 | ac_check_lib_save_LIBS=$LIBS |
| 24625 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24627 | /* end confdefs.h. */ |
| 24628 | |
| 24629 | /* Override any GCC internal prototype to avoid an error. |
| 24630 | Use char because int might match the return type of a GCC |
| 24631 | builtin and then its argument prototype would still apply. */ |
| 24632 | #ifdef __cplusplus |
| 24633 | extern "C" |
| 24634 | #endif |
| 24635 | char pow (); |
| 24636 | int |
| 24637 | main () |
| 24638 | { |
| 24639 | return pow (); |
| 24640 | ; |
| 24641 | return 0; |
| 24642 | } |
| 24643 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24644 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24645 | ac_cv_lib_m_pow=yes |
| 24646 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24647 | ac_cv_lib_m_pow=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24648 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24649 | rm -f core conftest.err conftest.$ac_objext \ |
| 24650 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24651 | LIBS=$ac_check_lib_save_LIBS |
| 24652 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24654 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24655 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24656 | POW_LIB=-lm |
| 24657 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24658 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24659 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 24660 | fi |
| 24661 | |
| 24662 | fi |
| 24663 | |
| 24664 | fi |
| 24665 | |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24666 | ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" |
| 24667 | if test "x$ac_cv_have_decl_strerror_r" = xyes; then : |
| 24668 | ac_have_decl=1 |
| 24669 | else |
| 24670 | ac_have_decl=0 |
| 24671 | fi |
| 24672 | |
| 24673 | cat >>confdefs.h <<_ACEOF |
| 24674 | #define HAVE_DECL_STRERROR_R $ac_have_decl |
| 24675 | _ACEOF |
| 24676 | |
| 24677 | for ac_func in strerror_r |
| 24678 | do : |
| 24679 | ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
| 24680 | if test "x$ac_cv_func_strerror_r" = xyes; then : |
| 24681 | cat >>confdefs.h <<_ACEOF |
| 24682 | #define HAVE_STRERROR_R 1 |
| 24683 | _ACEOF |
| 24684 | |
| 24685 | fi |
| 24686 | done |
| 24687 | |
| 24688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 24689 | $as_echo_n "checking whether strerror_r returns char *... " >&6; } |
| 24690 | if ${ac_cv_func_strerror_r_char_p+:} false; then : |
| 24691 | $as_echo_n "(cached) " >&6 |
| 24692 | else |
| 24693 | |
| 24694 | ac_cv_func_strerror_r_char_p=no |
| 24695 | if test $ac_cv_have_decl_strerror_r = yes; then |
| 24696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24697 | /* end confdefs.h. */ |
| 24698 | $ac_includes_default |
| 24699 | int |
| 24700 | main () |
| 24701 | { |
| 24702 | |
| 24703 | char buf[100]; |
| 24704 | char x = *strerror_r (0, buf, sizeof buf); |
| 24705 | char *p = strerror_r (0, buf, sizeof buf); |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame^] | 24706 | return !p || x; |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24707 | |
| 24708 | ; |
| 24709 | return 0; |
| 24710 | } |
| 24711 | _ACEOF |
| 24712 | if ac_fn_c_try_compile "$LINENO"; then : |
| 24713 | ac_cv_func_strerror_r_char_p=yes |
| 24714 | fi |
| 24715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24716 | else |
| 24717 | # strerror_r is not declared. Choose between |
| 24718 | # systems that have relatively inaccessible declarations for the |
| 24719 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the |
| 24720 | # former has a strerror_r that returns char*, while the latter |
| 24721 | # has a strerror_r that returns `int'. |
| 24722 | # This test should segfault on the DEC system. |
| 24723 | if test "$cross_compiling" = yes; then : |
| 24724 | : |
| 24725 | else |
| 24726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24727 | /* end confdefs.h. */ |
| 24728 | $ac_includes_default |
| 24729 | extern char *strerror_r (); |
| 24730 | int |
| 24731 | main () |
| 24732 | { |
| 24733 | char buf[100]; |
| 24734 | char x = *strerror_r (0, buf, sizeof buf); |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame^] | 24735 | return ! isalpha (x); |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24736 | ; |
| 24737 | return 0; |
| 24738 | } |
| 24739 | _ACEOF |
| 24740 | if ac_fn_c_try_run "$LINENO"; then : |
| 24741 | ac_cv_func_strerror_r_char_p=yes |
| 24742 | fi |
| 24743 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24744 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24745 | fi |
| 24746 | |
| 24747 | fi |
| 24748 | |
| 24749 | fi |
| 24750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 24751 | $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } |
| 24752 | if test $ac_cv_func_strerror_r_char_p = yes; then |
| 24753 | |
| 24754 | $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 24755 | |
| 24756 | fi |
| 24757 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24758 | for ac_func in vprintf |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24759 | do : |
| 24760 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24761 | if test "x$ac_cv_func_vprintf" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24762 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24763 | #define HAVE_VPRINTF 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24764 | _ACEOF |
| 24765 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24766 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24767 | if test "x$ac_cv_func__doprnt" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24768 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24769 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24770 | |
| 24771 | fi |
| 24772 | |
| 24773 | fi |
| 24774 | done |
| 24775 | |
| 24776 | |
| 24777 | |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24778 | # |
| 24779 | # Find math library |
| 24780 | # |
| 24781 | MATH_LIBS='' |
| 24782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 24783 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24784 | if ${ac_cv_lib_m_sqrt+:} false; then : |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24785 | $as_echo_n "(cached) " >&6 |
| 24786 | else |
| 24787 | ac_check_lib_save_LIBS=$LIBS |
| 24788 | LIBS="-lm $LIBS" |
| 24789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24790 | /* end confdefs.h. */ |
| 24791 | |
| 24792 | /* Override any GCC internal prototype to avoid an error. |
| 24793 | Use char because int might match the return type of a GCC |
| 24794 | builtin and then its argument prototype would still apply. */ |
| 24795 | #ifdef __cplusplus |
| 24796 | extern "C" |
| 24797 | #endif |
| 24798 | char sqrt (); |
| 24799 | int |
| 24800 | main () |
| 24801 | { |
| 24802 | return sqrt (); |
| 24803 | ; |
| 24804 | return 0; |
| 24805 | } |
| 24806 | _ACEOF |
| 24807 | if ac_fn_c_try_link "$LINENO"; then : |
| 24808 | ac_cv_lib_m_sqrt=yes |
| 24809 | else |
| 24810 | ac_cv_lib_m_sqrt=no |
| 24811 | fi |
| 24812 | rm -f core conftest.err conftest.$ac_objext \ |
| 24813 | conftest$ac_exeext conftest.$ac_ext |
| 24814 | LIBS=$ac_check_lib_save_LIBS |
| 24815 | fi |
| 24816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 24817 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24818 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 24819 | MATH_LIBS="-lm" |
| 24820 | fi |
| 24821 | |
| 24822 | LIBS="$MATH_LIBS $LIBS" |
| 24823 | |
| 24824 | |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24825 | for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24826 | do : |
| 24827 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24828 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24829 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24830 | cat >>confdefs.h <<_ACEOF |
| 24831 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24832 | _ACEOF |
| 24833 | |
| 24834 | fi |
| 24835 | done |
| 24836 | |
| 24837 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24838 | # |
| 24839 | # Check for clock_gettime(). |
| 24840 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24842 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24843 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24844 | $as_echo_n "(cached) " >&6 |
| 24845 | else |
| 24846 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24848 | /* end confdefs.h. */ |
| 24849 | |
| 24850 | /* Override any GCC internal prototype to avoid an error. |
| 24851 | Use char because int might match the return type of a GCC |
| 24852 | builtin and then its argument prototype would still apply. */ |
| 24853 | #ifdef __cplusplus |
| 24854 | extern "C" |
| 24855 | #endif |
| 24856 | char clock_gettime (); |
| 24857 | int |
| 24858 | main () |
| 24859 | { |
| 24860 | return clock_gettime (); |
| 24861 | ; |
| 24862 | return 0; |
| 24863 | } |
| 24864 | _ACEOF |
| 24865 | for ac_lib in '' rt; do |
| 24866 | if test -z "$ac_lib"; then |
| 24867 | ac_res="none required" |
| 24868 | else |
| 24869 | ac_res=-l$ac_lib |
| 24870 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24871 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24872 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24873 | ac_cv_search_clock_gettime=$ac_res |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24874 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24875 | rm -f core conftest.err conftest.$ac_objext \ |
| 24876 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24877 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24878 | break |
| 24879 | fi |
| 24880 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24881 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24882 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24883 | else |
| 24884 | ac_cv_search_clock_gettime=no |
| 24885 | fi |
| 24886 | rm conftest.$ac_ext |
| 24887 | LIBS=$ac_func_search_save_LIBS |
| 24888 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24890 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 24891 | ac_res=$ac_cv_search_clock_gettime |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24892 | if test "$ac_res" != no; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24893 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24894 | |
| 24895 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24896 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24897 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24899 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24901 | /* end confdefs.h. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24902 | |
| 24903 | #include <time.h> |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24904 | int |
| 24905 | main () |
| 24906 | { |
| 24907 | clockid_t clockType = CLOCK_REALTIME; |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24908 | ; |
| 24909 | return 0; |
| 24910 | } |
| 24911 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24912 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24913 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24915 | $as_echo "yes" >&6; } |
| 24916 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24917 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24918 | |
| 24919 | |
| 24920 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24922 | $as_echo "no" >&6; } |
| 24923 | |
| 24924 | fi |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24925 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24926 | |
| 24927 | else |
| 24928 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24929 | for ac_func in gettimeofday ftime |
| 24930 | do : |
| 24931 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24932 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24933 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24934 | cat >>confdefs.h <<_ACEOF |
| 24935 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24936 | _ACEOF |
| 24937 | break |
| 24938 | fi |
| 24939 | done |
| 24940 | |
| 24941 | |
| 24942 | |
| 24943 | fi |
| 24944 | |
| 24945 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24946 | ######## |
| 24947 | # |
| 24948 | # Check for function prototypes |
| 24949 | # |
| 24950 | ######## |
| 24951 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24952 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24953 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24954 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24955 | if test "x$ac_cv_have_decl_pread" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24956 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24957 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24958 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24959 | fi |
| 24960 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24961 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24962 | #define HAVE_DECL_PREAD $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24963 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24964 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24965 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24966 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24967 | if test "x$ac_cv_have_decl_pwrite" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24968 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24969 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24970 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24971 | fi |
| 24972 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24973 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24974 | #define HAVE_DECL_PWRITE $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24975 | _ACEOF |
| 24976 | |
| 24977 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24978 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24979 | #include <strings.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24980 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24981 | if test "x$ac_cv_have_decl_strlcpy" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24982 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24983 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24984 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24985 | fi |
| 24986 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24987 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24988 | #define HAVE_DECL_STRLCPY $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24989 | _ACEOF |
| 24990 | |
| 24991 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24992 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24993 | #include <stdio.h> |
| 24994 | #include <stdarg.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24995 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24996 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24997 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24998 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24999 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25000 | fi |
| 25001 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25002 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25003 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25004 | _ACEOF |
| 25005 | |
| 25006 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25007 | ######## |
| 25008 | # |
| 25009 | # C++ Support Tests (For Magick++) |
| 25010 | # |
| 25011 | ######## |
| 25012 | have_magick_plus_plus='no' |
| 25013 | if test "$with_magick_plus_plus" = 'yes'; then |
| 25014 | OLIBS="$LIBS" |
| 25015 | LIBS='' |
| 25016 | ac_ext=cpp |
| 25017 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25018 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25019 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25020 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25021 | |
| 25022 | |
| 25023 | # Full set of headers used... |
| 25024 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 25025 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 25026 | ac_ext=cpp |
| 25027 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25028 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25029 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25030 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25031 | |
| 25032 | ac_ext=cpp |
| 25033 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25034 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25035 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25036 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25037 | if test -z "$CXX"; then |
| 25038 | if test -n "$CCC"; then |
| 25039 | CXX=$CCC |
| 25040 | else |
| 25041 | if test -n "$ac_tool_prefix"; then |
| 25042 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 25043 | do |
| 25044 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 25045 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25047 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25048 | if ${ac_cv_prog_CXX+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25049 | $as_echo_n "(cached) " >&6 |
| 25050 | else |
| 25051 | if test -n "$CXX"; then |
| 25052 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 25053 | else |
| 25054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25055 | for as_dir in $PATH |
| 25056 | do |
| 25057 | IFS=$as_save_IFS |
| 25058 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25059 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 25061 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25063 | break 2 |
| 25064 | fi |
| 25065 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25066 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25067 | IFS=$as_save_IFS |
| 25068 | |
| 25069 | fi |
| 25070 | fi |
| 25071 | CXX=$ac_cv_prog_CXX |
| 25072 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25074 | $as_echo "$CXX" >&6; } |
| 25075 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25077 | $as_echo "no" >&6; } |
| 25078 | fi |
| 25079 | |
| 25080 | |
| 25081 | test -n "$CXX" && break |
| 25082 | done |
| 25083 | fi |
| 25084 | if test -z "$CXX"; then |
| 25085 | ac_ct_CXX=$CXX |
| 25086 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 25087 | do |
| 25088 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25089 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25091 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25092 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25093 | $as_echo_n "(cached) " >&6 |
| 25094 | else |
| 25095 | if test -n "$ac_ct_CXX"; then |
| 25096 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 25097 | else |
| 25098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25099 | for as_dir in $PATH |
| 25100 | do |
| 25101 | IFS=$as_save_IFS |
| 25102 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25103 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 25105 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25107 | break 2 |
| 25108 | fi |
| 25109 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25110 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25111 | IFS=$as_save_IFS |
| 25112 | |
| 25113 | fi |
| 25114 | fi |
| 25115 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 25116 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25118 | $as_echo "$ac_ct_CXX" >&6; } |
| 25119 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25121 | $as_echo "no" >&6; } |
| 25122 | fi |
| 25123 | |
| 25124 | |
| 25125 | test -n "$ac_ct_CXX" && break |
| 25126 | done |
| 25127 | |
| 25128 | if test "x$ac_ct_CXX" = x; then |
| 25129 | CXX="g++" |
| 25130 | else |
| 25131 | case $cross_compiling:$ac_tool_warned in |
| 25132 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25134 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 25135 | ac_tool_warned=yes ;; |
| 25136 | esac |
| 25137 | CXX=$ac_ct_CXX |
| 25138 | fi |
| 25139 | fi |
| 25140 | |
| 25141 | fi |
| 25142 | fi |
| 25143 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25144 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25145 | set X $ac_compile |
| 25146 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25147 | for ac_option in --version -v -V -qversion; do |
| 25148 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25149 | case "(($ac_try" in |
| 25150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25151 | *) ac_try_echo=$ac_try;; |
| 25152 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25153 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 25154 | $as_echo "$ac_try_echo"; } >&5 |
| 25155 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25156 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25157 | if test -s conftest.err; then |
| 25158 | sed '10a\ |
| 25159 | ... rest of stderr output deleted ... |
| 25160 | 10q' conftest.err >conftest.er1 |
| 25161 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25162 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25163 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25164 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25165 | test $ac_status = 0; } |
| 25166 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25167 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25169 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25170 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25171 | $as_echo_n "(cached) " >&6 |
| 25172 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25173 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25174 | /* end confdefs.h. */ |
| 25175 | |
| 25176 | int |
| 25177 | main () |
| 25178 | { |
| 25179 | #ifndef __GNUC__ |
| 25180 | choke me |
| 25181 | #endif |
| 25182 | |
| 25183 | ; |
| 25184 | return 0; |
| 25185 | } |
| 25186 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25187 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25188 | ac_compiler_gnu=yes |
| 25189 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25190 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25191 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25193 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 25194 | |
| 25195 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25197 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 25198 | if test $ac_compiler_gnu = yes; then |
| 25199 | GXX=yes |
| 25200 | else |
| 25201 | GXX= |
| 25202 | fi |
| 25203 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 25204 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25206 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25207 | if ${ac_cv_prog_cxx_g+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25208 | $as_echo_n "(cached) " >&6 |
| 25209 | else |
| 25210 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 25211 | ac_cxx_werror_flag=yes |
| 25212 | ac_cv_prog_cxx_g=no |
| 25213 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25215 | /* end confdefs.h. */ |
| 25216 | |
| 25217 | int |
| 25218 | main () |
| 25219 | { |
| 25220 | |
| 25221 | ; |
| 25222 | return 0; |
| 25223 | } |
| 25224 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25225 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25226 | ac_cv_prog_cxx_g=yes |
| 25227 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25228 | CXXFLAGS="" |
| 25229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25230 | /* end confdefs.h. */ |
| 25231 | |
| 25232 | int |
| 25233 | main () |
| 25234 | { |
| 25235 | |
| 25236 | ; |
| 25237 | return 0; |
| 25238 | } |
| 25239 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25240 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25241 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25242 | else |
| 25243 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25244 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25246 | /* end confdefs.h. */ |
| 25247 | |
| 25248 | int |
| 25249 | main () |
| 25250 | { |
| 25251 | |
| 25252 | ; |
| 25253 | return 0; |
| 25254 | } |
| 25255 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25256 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25257 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25258 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25260 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25262 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25264 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 25265 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25267 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 25268 | if test "$ac_test_CXXFLAGS" = set; then |
| 25269 | CXXFLAGS=$ac_save_CXXFLAGS |
| 25270 | elif test $ac_cv_prog_cxx_g = yes; then |
| 25271 | if test "$GXX" = yes; then |
| 25272 | CXXFLAGS="-g -O2" |
| 25273 | else |
| 25274 | CXXFLAGS="-g" |
| 25275 | fi |
| 25276 | else |
| 25277 | if test "$GXX" = yes; then |
| 25278 | CXXFLAGS="-O2" |
| 25279 | else |
| 25280 | CXXFLAGS= |
| 25281 | fi |
| 25282 | fi |
| 25283 | ac_ext=cpp |
| 25284 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25285 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25286 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25287 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25288 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25289 | depcc="$CXX" am_compiler_list= |
| 25290 | |
| 25291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 25292 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25293 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25294 | $as_echo_n "(cached) " >&6 |
| 25295 | else |
| 25296 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 25297 | # We make a subdir and do the tests there. Otherwise we can end up |
| 25298 | # making bogus files that we don't know about and never remove. For |
| 25299 | # instance it was reported that on HP-UX the gcc test will end up |
| 25300 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 25301 | # in D'. |
| 25302 | mkdir conftest.dir |
| 25303 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 25304 | # using a relative directory. |
| 25305 | cp "$am_depcomp" conftest.dir |
| 25306 | cd conftest.dir |
| 25307 | # We will build objects and dependencies in a subdirectory because |
| 25308 | # it helps to detect inapplicable dependency modes. For instance |
| 25309 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 25310 | # side effect of compilation, but ICC will put the dependencies in |
| 25311 | # the current directory while Tru64 will put them in the object |
| 25312 | # directory. |
| 25313 | mkdir sub |
| 25314 | |
| 25315 | am_cv_CXX_dependencies_compiler_type=none |
| 25316 | if test "$am_compiler_list" = ""; then |
| 25317 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 25318 | fi |
| 25319 | am__universal=false |
| 25320 | case " $depcc " in #( |
| 25321 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 25322 | esac |
| 25323 | |
| 25324 | for depmode in $am_compiler_list; do |
| 25325 | # Setup a source with many dependencies, because some compilers |
| 25326 | # like to wrap large dependency lists on column 80 (with \), and |
| 25327 | # we should not choose a depcomp mode which is confused by this. |
| 25328 | # |
| 25329 | # We need to recreate these files for each test, as the compiler may |
| 25330 | # overwrite some of them when testing with obscure command lines. |
| 25331 | # This happens at least with the AIX C compiler. |
| 25332 | : > sub/conftest.c |
| 25333 | for i in 1 2 3 4 5 6; do |
| 25334 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 25335 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 25336 | # Solaris 8's {/usr,}/bin/sh. |
| 25337 | touch sub/conftst$i.h |
| 25338 | done |
| 25339 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 25340 | |
| 25341 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 25342 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 25343 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 25344 | # versions had trouble with output in subdirs |
| 25345 | am__obj=sub/conftest.${OBJEXT-o} |
| 25346 | am__minus_obj="-o $am__obj" |
| 25347 | case $depmode in |
| 25348 | gcc) |
| 25349 | # This depmode causes a compiler race in universal mode. |
| 25350 | test "$am__universal" = false || continue |
| 25351 | ;; |
| 25352 | nosideeffect) |
| 25353 | # after this tag, mechanisms are not by side-effect, so they'll |
| 25354 | # only be used when explicitly requested |
| 25355 | if test "x$enable_dependency_tracking" = xyes; then |
| 25356 | continue |
| 25357 | else |
| 25358 | break |
| 25359 | fi |
| 25360 | ;; |
| 25361 | msvisualcpp | msvcmsys) |
| 25362 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 25363 | # not run yet. These depmodes are late enough in the game, and |
| 25364 | # so weak that their functioning should not be impacted. |
| 25365 | am__obj=conftest.${OBJEXT-o} |
| 25366 | am__minus_obj= |
| 25367 | ;; |
| 25368 | none) break ;; |
| 25369 | esac |
| 25370 | if depmode=$depmode \ |
| 25371 | source=sub/conftest.c object=$am__obj \ |
| 25372 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 25373 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 25374 | >/dev/null 2>conftest.err && |
| 25375 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 25376 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 25377 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 25378 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 25379 | # icc doesn't choke on unknown options, it will just issue warnings |
| 25380 | # or remarks (even with -Werror). So we grep stderr for any message |
| 25381 | # that says an option was ignored or not supported. |
| 25382 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 25383 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 25384 | # The diagnosis changed in icc 8.0: |
| 25385 | # icc: Command line remark: option '-MP' not supported |
| 25386 | if (grep 'ignoring option' conftest.err || |
| 25387 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 25388 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 25389 | break |
| 25390 | fi |
| 25391 | fi |
| 25392 | done |
| 25393 | |
| 25394 | cd .. |
| 25395 | rm -rf conftest.dir |
| 25396 | else |
| 25397 | am_cv_CXX_dependencies_compiler_type=none |
| 25398 | fi |
| 25399 | |
| 25400 | fi |
| 25401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 25402 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 25403 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 25404 | |
| 25405 | if |
| 25406 | test "x$enable_dependency_tracking" != xno \ |
| 25407 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 25408 | am__fastdepCXX_TRUE= |
| 25409 | am__fastdepCXX_FALSE='#' |
| 25410 | else |
| 25411 | am__fastdepCXX_TRUE='#' |
| 25412 | am__fastdepCXX_FALSE= |
| 25413 | fi |
| 25414 | |
| 25415 | |
| 25416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 |
| 25417 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25418 | if ${ax_cv_cxx_bool+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25419 | $as_echo_n "(cached) " >&6 |
| 25420 | else |
| 25421 | |
| 25422 | ac_ext=cpp |
| 25423 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25424 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25425 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25426 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25427 | |
| 25428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25429 | /* end confdefs.h. */ |
| 25430 | |
| 25431 | int f(int x){return 1;} |
| 25432 | int f(char x){return 1;} |
| 25433 | int f(bool x){return 1;} |
| 25434 | |
| 25435 | int |
| 25436 | main () |
| 25437 | { |
| 25438 | bool b = true; return f(b); |
| 25439 | ; |
| 25440 | return 0; |
| 25441 | } |
| 25442 | _ACEOF |
| 25443 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25444 | ax_cv_cxx_bool=yes |
| 25445 | else |
| 25446 | ax_cv_cxx_bool=no |
| 25447 | fi |
| 25448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25449 | ac_ext=cpp |
| 25450 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25451 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25452 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25453 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25454 | |
| 25455 | |
| 25456 | fi |
| 25457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 |
| 25458 | $as_echo "$ax_cv_cxx_bool" >&6; } |
| 25459 | if test "$ax_cv_cxx_bool" = yes; then |
| 25460 | |
| 25461 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h |
| 25462 | |
| 25463 | fi |
| 25464 | |
| 25465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 |
| 25466 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25467 | if ${ax_cv_cxx_namespaces+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25468 | $as_echo_n "(cached) " >&6 |
| 25469 | else |
| 25470 | |
| 25471 | ac_ext=cpp |
| 25472 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25473 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25474 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25475 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25476 | |
| 25477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25478 | /* end confdefs.h. */ |
| 25479 | namespace Outer { namespace Inner { int i = 0; }} |
| 25480 | int |
| 25481 | main () |
| 25482 | { |
| 25483 | using namespace Outer::Inner; return i; |
| 25484 | ; |
| 25485 | return 0; |
| 25486 | } |
| 25487 | _ACEOF |
| 25488 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25489 | ax_cv_cxx_namespaces=yes |
| 25490 | else |
| 25491 | ax_cv_cxx_namespaces=no |
| 25492 | fi |
| 25493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25494 | ac_ext=cpp |
| 25495 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25496 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25497 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25498 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25499 | |
| 25500 | |
| 25501 | fi |
| 25502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 |
| 25503 | $as_echo "$ax_cv_cxx_namespaces" >&6; } |
| 25504 | if test "$ax_cv_cxx_namespaces" = yes; then |
| 25505 | |
| 25506 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h |
| 25507 | |
| 25508 | fi |
| 25509 | |
| 25510 | |
| 25511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 |
| 25512 | $as_echo_n "checking if g++ supports namespace std... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25513 | if ${ax_cv_cxx_have_std_namespace+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25514 | $as_echo_n "(cached) " >&6 |
| 25515 | else |
| 25516 | |
| 25517 | ac_ext=cpp |
| 25518 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25519 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25520 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25521 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25522 | |
| 25523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25524 | /* end confdefs.h. */ |
| 25525 | #include <iostream> |
| 25526 | std::istream& is = std::cin; |
| 25527 | int |
| 25528 | main () |
| 25529 | { |
| 25530 | |
| 25531 | ; |
| 25532 | return 0; |
| 25533 | } |
| 25534 | _ACEOF |
| 25535 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25536 | ax_cv_cxx_have_std_namespace=yes |
| 25537 | else |
| 25538 | ax_cv_cxx_have_std_namespace=no |
| 25539 | fi |
| 25540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25541 | ac_ext=cpp |
| 25542 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25546 | |
| 25547 | |
| 25548 | fi |
| 25549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 |
| 25550 | $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } |
| 25551 | if test "$ax_cv_cxx_have_std_namespace" = yes; then |
| 25552 | |
| 25553 | $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h |
| 25554 | |
| 25555 | fi |
| 25556 | |
| 25557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 |
| 25558 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25559 | if ${ac_cv_cxx_have_std_libs+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25560 | $as_echo_n "(cached) " >&6 |
| 25561 | else |
| 25562 | |
| 25563 | |
| 25564 | ac_ext=cpp |
| 25565 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25566 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25567 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25568 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25569 | |
| 25570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25571 | /* end confdefs.h. */ |
| 25572 | #include <iostream> |
| 25573 | #include <map> |
| 25574 | #include <iomanip> |
| 25575 | #include <cmath> |
| 25576 | #ifdef HAVE_NAMESPACES |
| 25577 | using namespace std; |
| 25578 | #endif |
| 25579 | int |
| 25580 | main () |
| 25581 | { |
| 25582 | return 0; |
| 25583 | ; |
| 25584 | return 0; |
| 25585 | } |
| 25586 | _ACEOF |
| 25587 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25588 | ac_cv_cxx_have_std_libs=yes |
| 25589 | else |
| 25590 | ac_cv_cxx_have_std_libs=no |
| 25591 | fi |
| 25592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25593 | ac_ext=cpp |
| 25594 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25598 | |
| 25599 | |
| 25600 | fi |
| 25601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 |
| 25602 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } |
| 25603 | if test "$ac_cv_cxx_have_std_libs" = yes; then |
| 25604 | |
| 25605 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h |
| 25606 | |
| 25607 | fi |
| 25608 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25609 | |
| 25610 | OPENMP_CXXFLAGS= |
| 25611 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25612 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25613 | enableval=$enable_openmp; |
| 25614 | fi |
| 25615 | |
| 25616 | if test "$enable_openmp" != no; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 |
| 25618 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25619 | if ${ac_cv_prog_cxx_openmp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25620 | $as_echo_n "(cached) " >&6 |
| 25621 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25623 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25624 | |
| 25625 | #ifndef _OPENMP |
| 25626 | choke me |
| 25627 | #endif |
| 25628 | #include <omp.h> |
| 25629 | int main () { return omp_get_num_threads (); } |
| 25630 | |
| 25631 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25632 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25633 | ac_cv_prog_cxx_openmp='none needed' |
| 25634 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25635 | ac_cv_prog_cxx_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25636 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 25637 | ac_save_CXXFLAGS=$CXXFLAGS |
| 25638 | CXXFLAGS="$CXXFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25640 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25641 | |
| 25642 | #ifndef _OPENMP |
| 25643 | choke me |
| 25644 | #endif |
| 25645 | #include <omp.h> |
| 25646 | int main () { return omp_get_num_threads (); } |
| 25647 | |
| 25648 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25649 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25650 | ac_cv_prog_cxx_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25651 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25652 | rm -f core conftest.err conftest.$ac_objext \ |
| 25653 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25654 | CXXFLAGS=$ac_save_CXXFLAGS |
| 25655 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 25656 | break |
| 25657 | fi |
| 25658 | done |
| 25659 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25660 | rm -f core conftest.err conftest.$ac_objext \ |
| 25661 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25662 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25664 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 25665 | case $ac_cv_prog_cxx_openmp in #( |
| 25666 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25667 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25668 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25669 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25670 | esac |
| 25671 | fi |
| 25672 | |
| 25673 | |
| 25674 | ac_ext=c |
| 25675 | ac_cpp='$CPP $CPPFLAGS' |
| 25676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25679 | |
| 25680 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25682 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 25683 | if \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25684 | test $ax_cv_cxx_bool = 'yes' && \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25685 | test $ax_cv_cxx_namespaces = 'yes' && \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25686 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 25687 | test $ax_cv_cxx_have_std_namespace = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25688 | have_magick_plus_plus='yes' |
| 25689 | else |
| 25690 | have_magick_plus_plus='no (failed tests)' |
| 25691 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25693 | $as_echo "$have_magick_plus_plus" >&6; } |
| 25694 | LIBS="$OLIBS" |
| 25695 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25696 | if test "$have_magick_plus_plus" = 'yes'; then |
| 25697 | WITH_MAGICK_PLUS_PLUS_TRUE= |
| 25698 | WITH_MAGICK_PLUS_PLUS_FALSE='#' |
| 25699 | else |
| 25700 | WITH_MAGICK_PLUS_PLUS_TRUE='#' |
| 25701 | WITH_MAGICK_PLUS_PLUS_FALSE= |
| 25702 | fi |
| 25703 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25704 | |
| 25705 | # Only check for delegate libraries in subdirectories if requested. |
| 25706 | if test "$enable_delegate_build" != 'no'; then |
| 25707 | # Check for delegate sub-directories and add -I & -L options as required. |
| 25708 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 25709 | # README. If delegates are installed in a standard location where the |
| 25710 | # compiler will automatically find them then these options should not be |
| 25711 | # required. |
| 25712 | |
| 25713 | # |
| 25714 | # Most delegates have includes in the same directory as the library, but not all... |
| 25715 | # |
| 25716 | # Includes |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 25717 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25718 | if test -d "$builddir/$dir"; then |
| 25719 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 25720 | else |
| 25721 | if test -d "$srcdirfull/$dir"; then |
| 25722 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 25723 | fi |
| 25724 | fi |
| 25725 | done |
| 25726 | |
| 25727 | # Libraries |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 25728 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25729 | if test -d "$builddir/$dir/.libs"; then |
| 25730 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 25731 | else |
| 25732 | if test -d "$srcdirfull/$dir/.libs"; then |
| 25733 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 25734 | fi |
| 25735 | fi |
| 25736 | if test -d "$builddir/$dir"; then |
| 25737 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 25738 | else |
| 25739 | if test -d "$srcdirfull/$dir"; then |
| 25740 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 25741 | fi |
| 25742 | fi |
| 25743 | done |
| 25744 | fi |
| 25745 | |
| 25746 | # Assume that delegate headers reside under same directory as ImageMagick |
| 25747 | # installation prefix. |
| 25748 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" |
| 25749 | |
| 25750 | # |
| 25751 | # Find the X11 RGB database |
| 25752 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25754 | $as_echo_n "checking for X11 configure files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25755 | if ${im_cv_x_configure+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25756 | $as_echo_n "(cached) " >&6 |
| 25757 | else |
| 25758 | # Look for the header file in a standard set of common directories. |
| 25759 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 25760 | for ac_dir in \ |
| 25761 | /lib/usr/lib/X11 \ |
| 25762 | /usr/X11/lib \ |
| 25763 | /usr/X11R4/lib \ |
| 25764 | /usr/X11R5/lib \ |
| 25765 | /usr/X11R6/lib \ |
| 25766 | /usr/X11R7/lib \ |
| 25767 | /usr/X386/lib \ |
| 25768 | /usr/XFree86/lib/X11 \ |
| 25769 | /usr/athena/lib \ |
| 25770 | /usr/lib \ |
| 25771 | /usr/lib/X11 \ |
| 25772 | /usr/lib/X11R4 \ |
| 25773 | /usr/lib/X11R5 \ |
| 25774 | /usr/lib/X11R6 \ |
| 25775 | /usr/lib/X11R7 \ |
| 25776 | /usr/local/X11/lib \ |
| 25777 | /usr/local/X11R4/lib \ |
| 25778 | /usr/local/X11R5/lib \ |
| 25779 | /usr/local/X11R6/lib \ |
| 25780 | /usr/local/lib \ |
| 25781 | /usr/local/lib/X11 \ |
| 25782 | /usr/local/lib/X11R4 \ |
| 25783 | /usr/local/lib/X11R5 \ |
| 25784 | /usr/local/lib/X11R6 \ |
| 25785 | /usr/local/lib/X11R7 \ |
| 25786 | /usr/local/x11r5/lib \ |
| 25787 | /usr/lpp/Xamples/lib \ |
| 25788 | /usr/openwin/lib \ |
| 25789 | /usr/openwin/share/lib \ |
| 25790 | /usr/unsupported/lib \ |
| 25791 | /usr/x386/lib \ |
| 25792 | ; do |
| 25793 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 25794 | im_cv_x_configure="$ac_dir/X11/" |
| 25795 | break |
| 25796 | elif test -f "$ac_dir/rgb.txt"; then |
| 25797 | im_cv_x_configure="$ac_dir/" |
| 25798 | break |
| 25799 | fi |
| 25800 | |
| 25801 | done |
| 25802 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25804 | $as_echo "$im_cv_x_configure" >&6; } |
| 25805 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 25806 | case "${build_os}" in |
| 25807 | mingw* ) |
| 25808 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 25809 | ;; |
| 25810 | esac |
| 25811 | |
| 25812 | cat >>confdefs.h <<_ACEOF |
| 25813 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 25814 | _ACEOF |
| 25815 | |
| 25816 | |
| 25817 | # |
| 25818 | # Find OpenMP library |
| 25819 | # |
| 25820 | GOMP_LIBS='' |
| 25821 | if test "$enable_openmp" != 'no'; then |
| 25822 | if test "${GCC}" = "yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25824 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25825 | if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25826 | $as_echo_n "(cached) " >&6 |
| 25827 | else |
| 25828 | ac_check_lib_save_LIBS=$LIBS |
| 25829 | LIBS="-lgomp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25831 | /* end confdefs.h. */ |
| 25832 | |
| 25833 | /* Override any GCC internal prototype to avoid an error. |
| 25834 | Use char because int might match the return type of a GCC |
| 25835 | builtin and then its argument prototype would still apply. */ |
| 25836 | #ifdef __cplusplus |
| 25837 | extern "C" |
| 25838 | #endif |
| 25839 | char GOMP_parallel_start (); |
| 25840 | int |
| 25841 | main () |
| 25842 | { |
| 25843 | return GOMP_parallel_start (); |
| 25844 | ; |
| 25845 | return 0; |
| 25846 | } |
| 25847 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25848 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25849 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 25850 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25851 | ac_cv_lib_gomp_GOMP_parallel_start=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25852 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25853 | rm -f core conftest.err conftest.$ac_objext \ |
| 25854 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25855 | LIBS=$ac_check_lib_save_LIBS |
| 25856 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25858 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25859 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25860 | GOMP_LIBS="-lgomp" |
| 25861 | fi |
| 25862 | # gcc |
| 25863 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25865 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25866 | if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25867 | $as_echo_n "(cached) " >&6 |
| 25868 | else |
| 25869 | ac_check_lib_save_LIBS=$LIBS |
| 25870 | LIBS="-lmtsk $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25872 | /* end confdefs.h. */ |
| 25873 | |
| 25874 | /* Override any GCC internal prototype to avoid an error. |
| 25875 | Use char because int might match the return type of a GCC |
| 25876 | builtin and then its argument prototype would still apply. */ |
| 25877 | #ifdef __cplusplus |
| 25878 | extern "C" |
| 25879 | #endif |
| 25880 | char sunw_mp_register_warn (); |
| 25881 | int |
| 25882 | main () |
| 25883 | { |
| 25884 | return sunw_mp_register_warn (); |
| 25885 | ; |
| 25886 | return 0; |
| 25887 | } |
| 25888 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25889 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25890 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 25891 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25892 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25893 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25894 | rm -f core conftest.err conftest.$ac_objext \ |
| 25895 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25896 | LIBS=$ac_check_lib_save_LIBS |
| 25897 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25899 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25900 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25901 | GOMP_LIBS="-lmtsk" |
| 25902 | fi |
| 25903 | # solaris cc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25905 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25906 | if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25907 | $as_echo_n "(cached) " >&6 |
| 25908 | else |
| 25909 | ac_check_lib_save_LIBS=$LIBS |
| 25910 | LIBS="-lxlsmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25912 | /* end confdefs.h. */ |
| 25913 | |
| 25914 | /* Override any GCC internal prototype to avoid an error. |
| 25915 | Use char because int might match the return type of a GCC |
| 25916 | builtin and then its argument prototype would still apply. */ |
| 25917 | #ifdef __cplusplus |
| 25918 | extern "C" |
| 25919 | #endif |
| 25920 | char _xlsmpFlush (); |
| 25921 | int |
| 25922 | main () |
| 25923 | { |
| 25924 | return _xlsmpFlush (); |
| 25925 | ; |
| 25926 | return 0; |
| 25927 | } |
| 25928 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25929 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25930 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 25931 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25932 | ac_cv_lib_xlsmp__xlsmpFlush=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25933 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25934 | rm -f core conftest.err conftest.$ac_objext \ |
| 25935 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25936 | LIBS=$ac_check_lib_save_LIBS |
| 25937 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25939 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25940 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25941 | GOMP_LIBS="-lxlsmp" |
| 25942 | fi |
| 25943 | # AIX xlc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25945 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25946 | if ${ac_cv_lib_mp_mp_destroy+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25947 | $as_echo_n "(cached) " >&6 |
| 25948 | else |
| 25949 | ac_check_lib_save_LIBS=$LIBS |
| 25950 | LIBS="-lmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25952 | /* end confdefs.h. */ |
| 25953 | |
| 25954 | /* Override any GCC internal prototype to avoid an error. |
| 25955 | Use char because int might match the return type of a GCC |
| 25956 | builtin and then its argument prototype would still apply. */ |
| 25957 | #ifdef __cplusplus |
| 25958 | extern "C" |
| 25959 | #endif |
| 25960 | char mp_destroy (); |
| 25961 | int |
| 25962 | main () |
| 25963 | { |
| 25964 | return mp_destroy (); |
| 25965 | ; |
| 25966 | return 0; |
| 25967 | } |
| 25968 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25969 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25970 | ac_cv_lib_mp_mp_destroy=yes |
| 25971 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25972 | ac_cv_lib_mp_mp_destroy=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25973 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25974 | rm -f core conftest.err conftest.$ac_objext \ |
| 25975 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25976 | LIBS=$ac_check_lib_save_LIBS |
| 25977 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25979 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25980 | if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25981 | GOMP_LIBS="-lmp" |
| 25982 | fi |
| 25983 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 25984 | fi |
| 25985 | LIBS="$GOMP_LIBS $LIBS" |
| 25986 | fi |
| 25987 | |
| 25988 | |
| 25989 | # |
| 25990 | # Find Posix threads library |
| 25991 | # |
| 25992 | THREAD_LIBS='' |
| 25993 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 25994 | |
| 25995 | if test "x$PTHREAD_LIBS" = "x"; then |
| 25996 | case "${host_cpu}-${host_os}" in |
| 25997 | *-freebsd*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25998 | |
| 25999 | |
| 26000 | |
| 26001 | ac_ext=c |
| 26002 | ac_cpp='$CPP $CPPFLAGS' |
| 26003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26006 | |
| 26007 | magick_pthread_lib_ok=no |
| 26008 | |
| 26009 | LIB=-lc_r |
| 26010 | save_LIBS="$LIBS" |
| 26011 | LIBS="$LIBS $LIB" |
| 26012 | |
| 26013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| 26014 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 26015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26016 | /* end confdefs.h. */ |
| 26017 | #include <pthread.h> |
| 26018 | int |
| 26019 | main () |
| 26020 | { |
| 26021 | pthread_t th; |
| 26022 | pthread_join(th, 0); |
| 26023 | pthread_attr_init(0); |
| 26024 | pthread_cleanup_push(0, 0); |
| 26025 | pthread_create(0,0,0,0); |
| 26026 | pthread_cleanup_pop(0); |
| 26027 | ; |
| 26028 | return 0; |
| 26029 | } |
| 26030 | _ACEOF |
| 26031 | if ac_fn_c_try_link "$LINENO"; then : |
| 26032 | magick_pthread_lib_ok=yes |
| 26033 | fi |
| 26034 | rm -f core conftest.err conftest.$ac_objext \ |
| 26035 | conftest$ac_exeext conftest.$ac_ext |
| 26036 | |
| 26037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| 26038 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 26039 | if test "$magick_pthread_lib_ok" = yes |
| 26040 | then |
| 26041 | PTHREAD_LIBS=-lc_r |
| 26042 | : |
| 26043 | else |
| 26044 | |
| 26045 | : |
| 26046 | fi |
| 26047 | |
| 26048 | LIBS="$save_LIBS" |
| 26049 | |
| 26050 | ac_ext=c |
| 26051 | ac_cpp='$CPP $CPPFLAGS' |
| 26052 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26053 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26054 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26055 | |
| 26056 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26057 | esac |
| 26058 | fi |
| 26059 | |
| 26060 | for lib in pthread pthreads; do |
| 26061 | if test "x$PTHREAD_LIBS" = "x"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26062 | |
| 26063 | |
| 26064 | |
| 26065 | ac_ext=c |
| 26066 | ac_cpp='$CPP $CPPFLAGS' |
| 26067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26070 | |
| 26071 | magick_pthread_lib_ok=no |
| 26072 | |
| 26073 | LIB=-l$lib |
| 26074 | save_LIBS="$LIBS" |
| 26075 | LIBS="$LIBS $LIB" |
| 26076 | |
| 26077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| 26078 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 26079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26080 | /* end confdefs.h. */ |
| 26081 | #include <pthread.h> |
| 26082 | int |
| 26083 | main () |
| 26084 | { |
| 26085 | pthread_t th; |
| 26086 | pthread_join(th, 0); |
| 26087 | pthread_attr_init(0); |
| 26088 | pthread_cleanup_push(0, 0); |
| 26089 | pthread_create(0,0,0,0); |
| 26090 | pthread_cleanup_pop(0); |
| 26091 | ; |
| 26092 | return 0; |
| 26093 | } |
| 26094 | _ACEOF |
| 26095 | if ac_fn_c_try_link "$LINENO"; then : |
| 26096 | magick_pthread_lib_ok=yes |
| 26097 | fi |
| 26098 | rm -f core conftest.err conftest.$ac_objext \ |
| 26099 | conftest$ac_exeext conftest.$ac_ext |
| 26100 | |
| 26101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| 26102 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 26103 | if test "$magick_pthread_lib_ok" = yes |
| 26104 | then |
| 26105 | PTHREAD_LIBS=-l$lib |
| 26106 | : |
| 26107 | else |
| 26108 | |
| 26109 | : |
| 26110 | fi |
| 26111 | |
| 26112 | LIBS="$save_LIBS" |
| 26113 | |
| 26114 | ac_ext=c |
| 26115 | ac_cpp='$CPP $CPPFLAGS' |
| 26116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26119 | |
| 26120 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26121 | fi |
| 26122 | done |
| 26123 | |
| 26124 | THREAD_LIBS="$PTHREAD_LIBS" |
| 26125 | LIBS="$LIBS $THREAD_LIBS" |
| 26126 | fi |
| 26127 | |
| 26128 | |
| 26129 | # |
| 26130 | # Check for umem. |
| 26131 | # |
| 26132 | have_umem='no' |
| 26133 | UMEM_LIBS='' |
| 26134 | if test "$with_umem" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26136 | $as_echo_n "checking for UMEM support ... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26138 | $as_echo "" >&6; } |
| 26139 | failed=0 |
| 26140 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26141 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26142 | if test "x$ac_cv_header_umem_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26143 | passed=`expr $passed + 1` |
| 26144 | else |
| 26145 | failed=`expr $failed + 1` |
| 26146 | fi |
| 26147 | |
| 26148 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26150 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26151 | if ${ac_cv_lib_umem_umem_alloc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26152 | $as_echo_n "(cached) " >&6 |
| 26153 | else |
| 26154 | ac_check_lib_save_LIBS=$LIBS |
| 26155 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26157 | /* end confdefs.h. */ |
| 26158 | |
| 26159 | /* Override any GCC internal prototype to avoid an error. |
| 26160 | Use char because int might match the return type of a GCC |
| 26161 | builtin and then its argument prototype would still apply. */ |
| 26162 | #ifdef __cplusplus |
| 26163 | extern "C" |
| 26164 | #endif |
| 26165 | char umem_alloc (); |
| 26166 | int |
| 26167 | main () |
| 26168 | { |
| 26169 | return umem_alloc (); |
| 26170 | ; |
| 26171 | return 0; |
| 26172 | } |
| 26173 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26174 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26175 | ac_cv_lib_umem_umem_alloc=yes |
| 26176 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26177 | ac_cv_lib_umem_umem_alloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26178 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26179 | rm -f core conftest.err conftest.$ac_objext \ |
| 26180 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26181 | LIBS=$ac_check_lib_save_LIBS |
| 26182 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26184 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26185 | if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26186 | passed=`expr $passed + 1` |
| 26187 | else |
| 26188 | failed=`expr $failed + 1` |
| 26189 | fi |
| 26190 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26192 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26193 | if ${ac_cv_lib_umem_umem_free+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26194 | $as_echo_n "(cached) " >&6 |
| 26195 | else |
| 26196 | ac_check_lib_save_LIBS=$LIBS |
| 26197 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26199 | /* end confdefs.h. */ |
| 26200 | |
| 26201 | /* Override any GCC internal prototype to avoid an error. |
| 26202 | Use char because int might match the return type of a GCC |
| 26203 | builtin and then its argument prototype would still apply. */ |
| 26204 | #ifdef __cplusplus |
| 26205 | extern "C" |
| 26206 | #endif |
| 26207 | char umem_free (); |
| 26208 | int |
| 26209 | main () |
| 26210 | { |
| 26211 | return umem_free (); |
| 26212 | ; |
| 26213 | return 0; |
| 26214 | } |
| 26215 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26216 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26217 | ac_cv_lib_umem_umem_free=yes |
| 26218 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26219 | ac_cv_lib_umem_umem_free=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26220 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26221 | rm -f core conftest.err conftest.$ac_objext \ |
| 26222 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26223 | LIBS=$ac_check_lib_save_LIBS |
| 26224 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26226 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26227 | if test "x$ac_cv_lib_umem_umem_free" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26228 | passed=`expr $passed + 1` |
| 26229 | else |
| 26230 | failed=`expr $failed + 1` |
| 26231 | fi |
| 26232 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26234 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 26235 | if test $passed -gt 0; then |
| 26236 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26238 | $as_echo "no -- some components failed test" >&6; } |
| 26239 | have_umem='no (failed tests)' |
| 26240 | else |
| 26241 | UMEM_LIBS='-lumem' |
| 26242 | LIBS="$UMEM_LIBS $LIBS" |
| 26243 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26244 | $as_echo "#define HasUMEM 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26245 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26247 | $as_echo "yes" >&6; } |
| 26248 | have_umem='yes' |
| 26249 | fi |
| 26250 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26252 | $as_echo "no" >&6; } |
| 26253 | fi |
| 26254 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26255 | if test "$have_umem" = 'yes'; then |
| 26256 | HasUMEM_TRUE= |
| 26257 | HasUMEM_FALSE='#' |
| 26258 | else |
| 26259 | HasUMEM_TRUE='#' |
| 26260 | HasUMEM_FALSE= |
| 26261 | fi |
| 26262 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26263 | |
| 26264 | |
| 26265 | # |
| 26266 | # Add support for ccmalloc memory debugging library if requested |
| 26267 | # |
| 26268 | have_ccmalloc='no' |
| 26269 | CCMALLOC_LIBS='' |
| 26270 | if test "$enable_ccmalloc" = 'yes'; then |
| 26271 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 26272 | set dummy ccmalloc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26274 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26275 | if ${ac_cv_path_CCMALLOCDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26276 | $as_echo_n "(cached) " >&6 |
| 26277 | else |
| 26278 | case $CCMALLOCDelegate in |
| 26279 | [\\/]* | ?:[\\/]*) |
| 26280 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 26281 | ;; |
| 26282 | *) |
| 26283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26284 | for as_dir in $PATH |
| 26285 | do |
| 26286 | IFS=$as_save_IFS |
| 26287 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26288 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 26290 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26292 | break 2 |
| 26293 | fi |
| 26294 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26295 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26296 | IFS=$as_save_IFS |
| 26297 | |
| 26298 | ;; |
| 26299 | esac |
| 26300 | fi |
| 26301 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 26302 | if test -n "$CCMALLOCDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26304 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 26305 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26307 | $as_echo "no" >&6; } |
| 26308 | fi |
| 26309 | |
| 26310 | |
| 26311 | if test -n "$CCMALLOCDelegate"; then |
| 26312 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 26313 | OLIBS="$LIBS" |
| 26314 | # Assume that gcc is used with ccmalloc. |
| 26315 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26317 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26318 | if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26319 | $as_echo_n "(cached) " >&6 |
| 26320 | else |
| 26321 | ac_check_lib_save_LIBS=$LIBS |
| 26322 | LIBS="-lccmalloc -ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26324 | /* end confdefs.h. */ |
| 26325 | |
| 26326 | /* Override any GCC internal prototype to avoid an error. |
| 26327 | Use char because int might match the return type of a GCC |
| 26328 | builtin and then its argument prototype would still apply. */ |
| 26329 | #ifdef __cplusplus |
| 26330 | extern "C" |
| 26331 | #endif |
| 26332 | char ccmalloc_malloc (); |
| 26333 | int |
| 26334 | main () |
| 26335 | { |
| 26336 | return ccmalloc_malloc (); |
| 26337 | ; |
| 26338 | return 0; |
| 26339 | } |
| 26340 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26341 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26342 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 26343 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26344 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26345 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26346 | rm -f core conftest.err conftest.$ac_objext \ |
| 26347 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26348 | LIBS=$ac_check_lib_save_LIBS |
| 26349 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26351 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26352 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26353 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 26354 | fi |
| 26355 | |
| 26356 | if test -n "$CCMALLOC_LIBS"; then |
| 26357 | LIBS="$OLIBS" |
| 26358 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 26359 | have_ccmalloc='yes' |
| 26360 | else |
| 26361 | LIBS="$OLIBS" |
| 26362 | fi |
| 26363 | fi |
| 26364 | fi |
| 26365 | |
| 26366 | # |
| 26367 | # Add support for efence memory debugging library if requested |
| 26368 | # |
| 26369 | if test "$enable_efence" = 'yes'; then |
| 26370 | EFENCE_LIBS='-lefence' |
| 26371 | LIBS="$EFENCE_LIBS $LIBS" |
| 26372 | fi |
| 26373 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26374 | |
| 26375 | # |
| 26376 | # Check for BZLIB |
| 26377 | # |
| 26378 | |
| 26379 | |
| 26380 | # Check whether --with-bzlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26381 | if test "${with_bzlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26382 | withval=$with_bzlib; with_bzlib=$withval |
| 26383 | else |
| 26384 | with_bzlib='yes' |
| 26385 | fi |
| 26386 | |
| 26387 | |
| 26388 | if test "$with_bzlib" != 'yes'; then |
| 26389 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 26390 | fi |
| 26391 | |
| 26392 | have_bzlib='no' |
| 26393 | if test "$with_bzlib" != 'no'; then |
| 26394 | BZLIB_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26396 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26398 | $as_echo_n "checking for BZLIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26400 | $as_echo "" >&6; } |
| 26401 | failed=0 |
| 26402 | passed=0 |
| 26403 | found_libbz=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26404 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26405 | if test "x$ac_cv_header_bzlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26406 | passed=`expr $passed + 1` |
| 26407 | else |
| 26408 | failed=`expr $failed + 1` |
| 26409 | fi |
| 26410 | |
| 26411 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26413 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26414 | if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26415 | $as_echo_n "(cached) " >&6 |
| 26416 | else |
| 26417 | ac_check_lib_save_LIBS=$LIBS |
| 26418 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26420 | /* end confdefs.h. */ |
| 26421 | |
| 26422 | /* Override any GCC internal prototype to avoid an error. |
| 26423 | Use char because int might match the return type of a GCC |
| 26424 | builtin and then its argument prototype would still apply. */ |
| 26425 | #ifdef __cplusplus |
| 26426 | extern "C" |
| 26427 | #endif |
| 26428 | char BZ2_bzDecompress (); |
| 26429 | int |
| 26430 | main () |
| 26431 | { |
| 26432 | return BZ2_bzDecompress (); |
| 26433 | ; |
| 26434 | return 0; |
| 26435 | } |
| 26436 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26437 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26438 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 26439 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26440 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26441 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26442 | rm -f core conftest.err conftest.$ac_objext \ |
| 26443 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26444 | LIBS=$ac_check_lib_save_LIBS |
| 26445 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26447 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26448 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26449 | found_libbz=`expr $found_libbz + 1` |
| 26450 | fi |
| 26451 | |
| 26452 | if test "$native_win32_build" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26454 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26455 | if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26456 | $as_echo_n "(cached) " >&6 |
| 26457 | else |
| 26458 | ac_check_lib_save_LIBS=$LIBS |
| 26459 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26461 | /* end confdefs.h. */ |
| 26462 | |
| 26463 | /* Override any GCC internal prototype to avoid an error. |
| 26464 | Use char because int might match the return type of a GCC |
| 26465 | builtin and then its argument prototype would still apply. */ |
| 26466 | #ifdef __cplusplus |
| 26467 | extern "C" |
| 26468 | #endif |
| 26469 | char _imp__BZ2_decompress (); |
| 26470 | int |
| 26471 | main () |
| 26472 | { |
| 26473 | return _imp__BZ2_decompress (); |
| 26474 | ; |
| 26475 | return 0; |
| 26476 | } |
| 26477 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26478 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26479 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 26480 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26481 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26482 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26483 | rm -f core conftest.err conftest.$ac_objext \ |
| 26484 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26485 | LIBS=$ac_check_lib_save_LIBS |
| 26486 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26488 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26489 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26490 | found_libbz=`expr $found_libbz + 1` |
| 26491 | fi |
| 26492 | |
| 26493 | fi |
| 26494 | if test $found_libbz -gt 0; then |
| 26495 | passed=`expr $passed + 1` |
| 26496 | else |
| 26497 | failed=`expr $failed + 1` |
| 26498 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26500 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 26501 | if test $passed -gt 0; then |
| 26502 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26504 | $as_echo "no -- some components failed test" >&6; } |
| 26505 | have_bzlib='no (failed tests)' |
| 26506 | else |
| 26507 | BZLIB_LIBS='-lbz2' |
| 26508 | LIBS="$BZLIB_LIBS $LIBS" |
| 26509 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26510 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26511 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26513 | $as_echo "yes" >&6; } |
| 26514 | have_bzlib='yes' |
| 26515 | fi |
| 26516 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26518 | $as_echo "no" >&6; } |
| 26519 | fi |
| 26520 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26521 | if test "$have_bzlib" = 'yes'; then |
| 26522 | BZLIB_DELEGATE_TRUE= |
| 26523 | BZLIB_DELEGATE_FALSE='#' |
| 26524 | else |
| 26525 | BZLIB_DELEGATE_TRUE='#' |
| 26526 | BZLIB_DELEGATE_FALSE= |
| 26527 | fi |
| 26528 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26529 | |
| 26530 | |
| 26531 | # |
| 26532 | # Find the X11 include and library directories. |
| 26533 | # |
| 26534 | IPC_LIBS='' |
| 26535 | X11_LIBS='' |
| 26536 | XEXT_LIBS='' |
| 26537 | XT_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26539 | $as_echo_n "checking for X... " >&6; } |
| 26540 | |
| 26541 | |
| 26542 | # Check whether --with-x was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26543 | if test "${with_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26544 | withval=$with_x; |
| 26545 | fi |
| 26546 | |
| 26547 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 26548 | if test "x$with_x" = xno; then |
| 26549 | # The user explicitly disabled X. |
| 26550 | have_x=disabled |
| 26551 | else |
| 26552 | case $x_includes,$x_libraries in #( |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 26553 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26554 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26555 | $as_echo_n "(cached) " >&6 |
| 26556 | else |
| 26557 | # One or both of the vars are not set, and there is no cached value. |
| 26558 | ac_x_includes=no ac_x_libraries=no |
| 26559 | rm -f -r conftest.dir |
| 26560 | if mkdir conftest.dir; then |
| 26561 | cd conftest.dir |
| 26562 | cat >Imakefile <<'_ACEOF' |
| 26563 | incroot: |
| 26564 | @echo incroot='${INCROOT}' |
| 26565 | usrlibdir: |
| 26566 | @echo usrlibdir='${USRLIBDIR}' |
| 26567 | libdir: |
| 26568 | @echo libdir='${LIBDIR}' |
| 26569 | _ACEOF |
| 26570 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 26571 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26572 | for ac_var in incroot usrlibdir libdir; do |
| 26573 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 26574 | done |
| 26575 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 26576 | for ac_extension in a so sl dylib la dll; do |
| 26577 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 26578 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 26579 | ac_im_usrlibdir=$ac_im_libdir; break |
| 26580 | fi |
| 26581 | done |
| 26582 | # Screen out bogus values from the imake configuration. They are |
| 26583 | # bogus both because they are the default anyway, and because |
| 26584 | # using them would break gcc on systems where it needs fixed includes. |
| 26585 | case $ac_im_incroot in |
| 26586 | /usr/include) ac_x_includes= ;; |
| 26587 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 26588 | esac |
| 26589 | case $ac_im_usrlibdir in |
| 26590 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 26591 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 26592 | esac |
| 26593 | fi |
| 26594 | cd .. |
| 26595 | rm -f -r conftest.dir |
| 26596 | fi |
| 26597 | |
| 26598 | # Standard set of common directories for X headers. |
| 26599 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 26600 | ac_x_header_dirs=' |
| 26601 | /usr/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26602 | /usr/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26603 | /usr/X11R6/include |
| 26604 | /usr/X11R5/include |
| 26605 | /usr/X11R4/include |
| 26606 | |
| 26607 | /usr/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26608 | /usr/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26609 | /usr/include/X11R6 |
| 26610 | /usr/include/X11R5 |
| 26611 | /usr/include/X11R4 |
| 26612 | |
| 26613 | /usr/local/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26614 | /usr/local/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26615 | /usr/local/X11R6/include |
| 26616 | /usr/local/X11R5/include |
| 26617 | /usr/local/X11R4/include |
| 26618 | |
| 26619 | /usr/local/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26620 | /usr/local/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26621 | /usr/local/include/X11R6 |
| 26622 | /usr/local/include/X11R5 |
| 26623 | /usr/local/include/X11R4 |
| 26624 | |
| 26625 | /usr/X386/include |
| 26626 | /usr/x386/include |
| 26627 | /usr/XFree86/include/X11 |
| 26628 | |
| 26629 | /usr/include |
| 26630 | /usr/local/include |
| 26631 | /usr/unsupported/include |
| 26632 | /usr/athena/include |
| 26633 | /usr/local/x11r5/include |
| 26634 | /usr/lpp/Xamples/include |
| 26635 | |
| 26636 | /usr/openwin/include |
| 26637 | /usr/openwin/share/include' |
| 26638 | |
| 26639 | if test "$ac_x_includes" = no; then |
| 26640 | # Guess where to find include files, by looking for Xlib.h. |
| 26641 | # First, try using that file with no special directory specified. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26643 | /* end confdefs.h. */ |
| 26644 | #include <X11/Xlib.h> |
| 26645 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26646 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26647 | # We can compile using X headers with no special include directory. |
| 26648 | ac_x_includes= |
| 26649 | else |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26650 | for ac_dir in $ac_x_header_dirs; do |
| 26651 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 26652 | ac_x_includes=$ac_dir |
| 26653 | break |
| 26654 | fi |
| 26655 | done |
| 26656 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26657 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26658 | fi # $ac_x_includes = no |
| 26659 | |
| 26660 | if test "$ac_x_libraries" = no; then |
| 26661 | # Check for the libraries. |
| 26662 | # See if we find them without any special options. |
| 26663 | # Don't add to $LIBS permanently. |
| 26664 | ac_save_LIBS=$LIBS |
| 26665 | LIBS="-lX11 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26667 | /* end confdefs.h. */ |
| 26668 | #include <X11/Xlib.h> |
| 26669 | int |
| 26670 | main () |
| 26671 | { |
| 26672 | XrmInitialize () |
| 26673 | ; |
| 26674 | return 0; |
| 26675 | } |
| 26676 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26677 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26678 | LIBS=$ac_save_LIBS |
| 26679 | # We can link X programs with no special library path. |
| 26680 | ac_x_libraries= |
| 26681 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26682 | LIBS=$ac_save_LIBS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26683 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 26684 | do |
| 26685 | # Don't even attempt the hair of trying to link an X program! |
| 26686 | for ac_extension in a so sl dylib la dll; do |
| 26687 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 26688 | ac_x_libraries=$ac_dir |
| 26689 | break 2 |
| 26690 | fi |
| 26691 | done |
| 26692 | done |
| 26693 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26694 | rm -f core conftest.err conftest.$ac_objext \ |
| 26695 | conftest$ac_exeext conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26696 | fi # $ac_x_libraries = no |
| 26697 | |
| 26698 | case $ac_x_includes,$ac_x_libraries in #( |
| 26699 | no,* | *,no | *\'*) |
| 26700 | # Didn't find X, or a directory has "'" in its name. |
| 26701 | ac_cv_have_x="have_x=no";; #( |
| 26702 | *) |
| 26703 | # Record where we found X for the cache. |
| 26704 | ac_cv_have_x="have_x=yes\ |
| 26705 | ac_x_includes='$ac_x_includes'\ |
| 26706 | ac_x_libraries='$ac_x_libraries'" |
| 26707 | esac |
| 26708 | fi |
| 26709 | ;; #( |
| 26710 | *) have_x=yes;; |
| 26711 | esac |
| 26712 | eval "$ac_cv_have_x" |
| 26713 | fi # $with_x != no |
| 26714 | |
| 26715 | if test "$have_x" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26717 | $as_echo "$have_x" >&6; } |
| 26718 | no_x=yes |
| 26719 | else |
| 26720 | # If each of the values was on the command line, it overrides each guess. |
| 26721 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 26722 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 26723 | # Update the cache value to reflect the command line values. |
| 26724 | ac_cv_have_x="have_x=yes\ |
| 26725 | ac_x_includes='$x_includes'\ |
| 26726 | ac_x_libraries='$x_libraries'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 26728 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 26729 | fi |
| 26730 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26731 | if test "$no_x" = yes; then |
| 26732 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 26733 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26734 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26735 | |
| 26736 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 26737 | else |
| 26738 | if test -n "$x_includes"; then |
| 26739 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 26740 | fi |
| 26741 | |
| 26742 | # It would also be nice to do this for all -L options, not just this one. |
| 26743 | if test -n "$x_libraries"; then |
| 26744 | X_LIBS="$X_LIBS -L$x_libraries" |
| 26745 | # For Solaris; some versions of Sun CC require a space after -R and |
| 26746 | # others require no space. Words are not sufficient . . . . |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26748 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 26749 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 26750 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 26751 | ac_c_werror_flag=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26753 | /* end confdefs.h. */ |
| 26754 | |
| 26755 | int |
| 26756 | main () |
| 26757 | { |
| 26758 | |
| 26759 | ; |
| 26760 | return 0; |
| 26761 | } |
| 26762 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26763 | if ac_fn_c_try_link "$LINENO"; then : |
| 26764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26765 | $as_echo "no" >&6; } |
| 26766 | X_LIBS="$X_LIBS -R$x_libraries" |
| 26767 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26768 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 26769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26770 | /* end confdefs.h. */ |
| 26771 | |
| 26772 | int |
| 26773 | main () |
| 26774 | { |
| 26775 | |
| 26776 | ; |
| 26777 | return 0; |
| 26778 | } |
| 26779 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26780 | if ac_fn_c_try_link "$LINENO"; then : |
| 26781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26782 | $as_echo "yes" >&6; } |
| 26783 | X_LIBS="$X_LIBS -R $x_libraries" |
| 26784 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26786 | $as_echo "neither works" >&6; } |
| 26787 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26788 | rm -f core conftest.err conftest.$ac_objext \ |
| 26789 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26790 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26791 | rm -f core conftest.err conftest.$ac_objext \ |
| 26792 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26793 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 26794 | LIBS=$ac_xsave_LIBS |
| 26795 | fi |
| 26796 | |
| 26797 | # Check for system-dependent libraries X programs must link with. |
| 26798 | # Do this before checking for the system-independent R6 libraries |
| 26799 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 26800 | |
| 26801 | if test "$ISC" = yes; then |
| 26802 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 26803 | else |
| 26804 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 26805 | # libraries were built with DECnet support. And Karl Berry says |
| 26806 | # the Alpha needs dnet_stub (dnet does not exist). |
| 26807 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26809 | /* end confdefs.h. */ |
| 26810 | |
| 26811 | /* Override any GCC internal prototype to avoid an error. |
| 26812 | Use char because int might match the return type of a GCC |
| 26813 | builtin and then its argument prototype would still apply. */ |
| 26814 | #ifdef __cplusplus |
| 26815 | extern "C" |
| 26816 | #endif |
| 26817 | char XOpenDisplay (); |
| 26818 | int |
| 26819 | main () |
| 26820 | { |
| 26821 | return XOpenDisplay (); |
| 26822 | ; |
| 26823 | return 0; |
| 26824 | } |
| 26825 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26826 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26827 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26828 | else |
| 26829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26830 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26831 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26832 | $as_echo_n "(cached) " >&6 |
| 26833 | else |
| 26834 | ac_check_lib_save_LIBS=$LIBS |
| 26835 | LIBS="-ldnet $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26837 | /* end confdefs.h. */ |
| 26838 | |
| 26839 | /* Override any GCC internal prototype to avoid an error. |
| 26840 | Use char because int might match the return type of a GCC |
| 26841 | builtin and then its argument prototype would still apply. */ |
| 26842 | #ifdef __cplusplus |
| 26843 | extern "C" |
| 26844 | #endif |
| 26845 | char dnet_ntoa (); |
| 26846 | int |
| 26847 | main () |
| 26848 | { |
| 26849 | return dnet_ntoa (); |
| 26850 | ; |
| 26851 | return 0; |
| 26852 | } |
| 26853 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26854 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26855 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 26856 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26857 | ac_cv_lib_dnet_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26858 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26859 | rm -f core conftest.err conftest.$ac_objext \ |
| 26860 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26861 | LIBS=$ac_check_lib_save_LIBS |
| 26862 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26864 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26865 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26866 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 26867 | fi |
| 26868 | |
| 26869 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26871 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26872 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26873 | $as_echo_n "(cached) " >&6 |
| 26874 | else |
| 26875 | ac_check_lib_save_LIBS=$LIBS |
| 26876 | LIBS="-ldnet_stub $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26878 | /* end confdefs.h. */ |
| 26879 | |
| 26880 | /* Override any GCC internal prototype to avoid an error. |
| 26881 | Use char because int might match the return type of a GCC |
| 26882 | builtin and then its argument prototype would still apply. */ |
| 26883 | #ifdef __cplusplus |
| 26884 | extern "C" |
| 26885 | #endif |
| 26886 | char dnet_ntoa (); |
| 26887 | int |
| 26888 | main () |
| 26889 | { |
| 26890 | return dnet_ntoa (); |
| 26891 | ; |
| 26892 | return 0; |
| 26893 | } |
| 26894 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26895 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26896 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 26897 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26898 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26899 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26900 | rm -f core conftest.err conftest.$ac_objext \ |
| 26901 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26902 | LIBS=$ac_check_lib_save_LIBS |
| 26903 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26905 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26906 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26907 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 26908 | fi |
| 26909 | |
| 26910 | fi |
| 26911 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26912 | rm -f core conftest.err conftest.$ac_objext \ |
| 26913 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26914 | LIBS="$ac_xsave_LIBS" |
| 26915 | |
| 26916 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 26917 | # to get the SysV transport functions. |
| 26918 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 26919 | # needs -lnsl. |
| 26920 | # The nsl library prevents programs from opening the X display |
| 26921 | # on Irix 5.2, according to T.E. Dickey. |
| 26922 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 26923 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26924 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26925 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26926 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26927 | fi |
| 26928 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26929 | if test $ac_cv_func_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26931 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26932 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26933 | $as_echo_n "(cached) " >&6 |
| 26934 | else |
| 26935 | ac_check_lib_save_LIBS=$LIBS |
| 26936 | LIBS="-lnsl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26938 | /* end confdefs.h. */ |
| 26939 | |
| 26940 | /* Override any GCC internal prototype to avoid an error. |
| 26941 | Use char because int might match the return type of a GCC |
| 26942 | builtin and then its argument prototype would still apply. */ |
| 26943 | #ifdef __cplusplus |
| 26944 | extern "C" |
| 26945 | #endif |
| 26946 | char gethostbyname (); |
| 26947 | int |
| 26948 | main () |
| 26949 | { |
| 26950 | return gethostbyname (); |
| 26951 | ; |
| 26952 | return 0; |
| 26953 | } |
| 26954 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26955 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26956 | ac_cv_lib_nsl_gethostbyname=yes |
| 26957 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26958 | ac_cv_lib_nsl_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26959 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26960 | rm -f core conftest.err conftest.$ac_objext \ |
| 26961 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26962 | LIBS=$ac_check_lib_save_LIBS |
| 26963 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26965 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26966 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26967 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 26968 | fi |
| 26969 | |
| 26970 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26972 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26973 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26974 | $as_echo_n "(cached) " >&6 |
| 26975 | else |
| 26976 | ac_check_lib_save_LIBS=$LIBS |
| 26977 | LIBS="-lbsd $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26979 | /* end confdefs.h. */ |
| 26980 | |
| 26981 | /* Override any GCC internal prototype to avoid an error. |
| 26982 | Use char because int might match the return type of a GCC |
| 26983 | builtin and then its argument prototype would still apply. */ |
| 26984 | #ifdef __cplusplus |
| 26985 | extern "C" |
| 26986 | #endif |
| 26987 | char gethostbyname (); |
| 26988 | int |
| 26989 | main () |
| 26990 | { |
| 26991 | return gethostbyname (); |
| 26992 | ; |
| 26993 | return 0; |
| 26994 | } |
| 26995 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26996 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26997 | ac_cv_lib_bsd_gethostbyname=yes |
| 26998 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26999 | ac_cv_lib_bsd_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27000 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27001 | rm -f core conftest.err conftest.$ac_objext \ |
| 27002 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27003 | LIBS=$ac_check_lib_save_LIBS |
| 27004 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27006 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27007 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27008 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 27009 | fi |
| 27010 | |
| 27011 | fi |
| 27012 | fi |
| 27013 | |
| 27014 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 27015 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 27016 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 27017 | # on later versions), says Simon Leinen: it contains gethostby* |
| 27018 | # variants that don't use the name server (or something). -lsocket |
| 27019 | # must be given before -lnsl if both are needed. We assume that |
| 27020 | # if connect needs -lnsl, so does gethostbyname. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27021 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27022 | if test "x$ac_cv_func_connect" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27023 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27024 | fi |
| 27025 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27026 | if test $ac_cv_func_connect = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27028 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27029 | if ${ac_cv_lib_socket_connect+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27030 | $as_echo_n "(cached) " >&6 |
| 27031 | else |
| 27032 | ac_check_lib_save_LIBS=$LIBS |
| 27033 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27035 | /* end confdefs.h. */ |
| 27036 | |
| 27037 | /* Override any GCC internal prototype to avoid an error. |
| 27038 | Use char because int might match the return type of a GCC |
| 27039 | builtin and then its argument prototype would still apply. */ |
| 27040 | #ifdef __cplusplus |
| 27041 | extern "C" |
| 27042 | #endif |
| 27043 | char connect (); |
| 27044 | int |
| 27045 | main () |
| 27046 | { |
| 27047 | return connect (); |
| 27048 | ; |
| 27049 | return 0; |
| 27050 | } |
| 27051 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27052 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27053 | ac_cv_lib_socket_connect=yes |
| 27054 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27055 | ac_cv_lib_socket_connect=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27056 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27057 | rm -f core conftest.err conftest.$ac_objext \ |
| 27058 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27059 | LIBS=$ac_check_lib_save_LIBS |
| 27060 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27062 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27063 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27064 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 27065 | fi |
| 27066 | |
| 27067 | fi |
| 27068 | |
| 27069 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27070 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27071 | if test "x$ac_cv_func_remove" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27072 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27073 | fi |
| 27074 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27075 | if test $ac_cv_func_remove = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27077 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27078 | if ${ac_cv_lib_posix_remove+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27079 | $as_echo_n "(cached) " >&6 |
| 27080 | else |
| 27081 | ac_check_lib_save_LIBS=$LIBS |
| 27082 | LIBS="-lposix $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27084 | /* end confdefs.h. */ |
| 27085 | |
| 27086 | /* Override any GCC internal prototype to avoid an error. |
| 27087 | Use char because int might match the return type of a GCC |
| 27088 | builtin and then its argument prototype would still apply. */ |
| 27089 | #ifdef __cplusplus |
| 27090 | extern "C" |
| 27091 | #endif |
| 27092 | char remove (); |
| 27093 | int |
| 27094 | main () |
| 27095 | { |
| 27096 | return remove (); |
| 27097 | ; |
| 27098 | return 0; |
| 27099 | } |
| 27100 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27101 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27102 | ac_cv_lib_posix_remove=yes |
| 27103 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27104 | ac_cv_lib_posix_remove=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27105 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27106 | rm -f core conftest.err conftest.$ac_objext \ |
| 27107 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27108 | LIBS=$ac_check_lib_save_LIBS |
| 27109 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27111 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27112 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27113 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 27114 | fi |
| 27115 | |
| 27116 | fi |
| 27117 | |
| 27118 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27119 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27120 | if test "x$ac_cv_func_shmat" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27121 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27122 | fi |
| 27123 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27124 | if test $ac_cv_func_shmat = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27126 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27127 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27128 | $as_echo_n "(cached) " >&6 |
| 27129 | else |
| 27130 | ac_check_lib_save_LIBS=$LIBS |
| 27131 | LIBS="-lipc $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27133 | /* end confdefs.h. */ |
| 27134 | |
| 27135 | /* Override any GCC internal prototype to avoid an error. |
| 27136 | Use char because int might match the return type of a GCC |
| 27137 | builtin and then its argument prototype would still apply. */ |
| 27138 | #ifdef __cplusplus |
| 27139 | extern "C" |
| 27140 | #endif |
| 27141 | char shmat (); |
| 27142 | int |
| 27143 | main () |
| 27144 | { |
| 27145 | return shmat (); |
| 27146 | ; |
| 27147 | return 0; |
| 27148 | } |
| 27149 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27150 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27151 | ac_cv_lib_ipc_shmat=yes |
| 27152 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27153 | ac_cv_lib_ipc_shmat=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27154 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27155 | rm -f core conftest.err conftest.$ac_objext \ |
| 27156 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27157 | LIBS=$ac_check_lib_save_LIBS |
| 27158 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27160 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27161 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27162 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 27163 | fi |
| 27164 | |
| 27165 | fi |
| 27166 | fi |
| 27167 | |
| 27168 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 27169 | ac_save_LDFLAGS=$LDFLAGS |
| 27170 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 27171 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 27172 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 27173 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 27174 | # These have to be linked with before -lX11, unlike the other |
| 27175 | # libraries we check for below, so use a different variable. |
| 27176 | # John Interrante, Karl Berry |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27178 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27179 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27180 | $as_echo_n "(cached) " >&6 |
| 27181 | else |
| 27182 | ac_check_lib_save_LIBS=$LIBS |
| 27183 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27185 | /* end confdefs.h. */ |
| 27186 | |
| 27187 | /* Override any GCC internal prototype to avoid an error. |
| 27188 | Use char because int might match the return type of a GCC |
| 27189 | builtin and then its argument prototype would still apply. */ |
| 27190 | #ifdef __cplusplus |
| 27191 | extern "C" |
| 27192 | #endif |
| 27193 | char IceConnectionNumber (); |
| 27194 | int |
| 27195 | main () |
| 27196 | { |
| 27197 | return IceConnectionNumber (); |
| 27198 | ; |
| 27199 | return 0; |
| 27200 | } |
| 27201 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27202 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27203 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 27204 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27205 | ac_cv_lib_ICE_IceConnectionNumber=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27206 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27207 | rm -f core conftest.err conftest.$ac_objext \ |
| 27208 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27209 | LIBS=$ac_check_lib_save_LIBS |
| 27210 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27212 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27213 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27214 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 27215 | fi |
| 27216 | |
| 27217 | LDFLAGS=$ac_save_LDFLAGS |
| 27218 | |
| 27219 | fi |
| 27220 | |
| 27221 | if test "$no_x" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27223 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27225 | $as_echo_n "checking for X11... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27227 | $as_echo "" >&6; } |
| 27228 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 27229 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 27230 | LIBS="$X11_LIBS $LIBS" |
| 27231 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 27232 | |
| 27233 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27234 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27235 | |
| 27236 | # |
| 27237 | # Check for X11 shared memory extension |
| 27238 | # |
| 27239 | # shmctl is required to support the shared memory extension |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27240 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27241 | if test "x$ac_cv_func_shmctl" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27242 | have_shmctl='yes' |
| 27243 | fi |
| 27244 | |
| 27245 | if test "$have_shmctl" != 'yes'; then |
| 27246 | PERSIST_LIBS=$LIBS |
| 27247 | LIBS="$LIBS -lcygipc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27249 | /* end confdefs.h. */ |
| 27250 | |
| 27251 | /* Override any GCC internal prototype to avoid an error. |
| 27252 | Use char because int might match the return type of a GCC |
| 27253 | builtin and then its argument prototype would still apply. */ |
| 27254 | #ifdef __cplusplus |
| 27255 | extern "C" |
| 27256 | #endif |
| 27257 | char shmctl (); |
| 27258 | int |
| 27259 | main () |
| 27260 | { |
| 27261 | return shmctl (); |
| 27262 | ; |
| 27263 | return 0; |
| 27264 | } |
| 27265 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27266 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27267 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27268 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27269 | rm -f core conftest.err conftest.$ac_objext \ |
| 27270 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27271 | LIBS=$PERSIST_LIBS |
| 27272 | fi |
| 27273 | |
| 27274 | if test "$have_shmctl" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27276 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27277 | if ${ac_cv_lib_Xext_XShmAttach+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27278 | $as_echo_n "(cached) " >&6 |
| 27279 | else |
| 27280 | ac_check_lib_save_LIBS=$LIBS |
| 27281 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27283 | /* end confdefs.h. */ |
| 27284 | |
| 27285 | /* Override any GCC internal prototype to avoid an error. |
| 27286 | Use char because int might match the return type of a GCC |
| 27287 | builtin and then its argument prototype would still apply. */ |
| 27288 | #ifdef __cplusplus |
| 27289 | extern "C" |
| 27290 | #endif |
| 27291 | char XShmAttach (); |
| 27292 | int |
| 27293 | main () |
| 27294 | { |
| 27295 | return XShmAttach (); |
| 27296 | ; |
| 27297 | return 0; |
| 27298 | } |
| 27299 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27300 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27301 | ac_cv_lib_Xext_XShmAttach=yes |
| 27302 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27303 | ac_cv_lib_Xext_XShmAttach=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27304 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27305 | rm -f core conftest.err conftest.$ac_objext \ |
| 27306 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27307 | LIBS=$ac_check_lib_save_LIBS |
| 27308 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27310 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27311 | if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27312 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27313 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27314 | |
| 27315 | fi |
| 27316 | |
| 27317 | fi |
| 27318 | |
| 27319 | # |
| 27320 | # Check for X11 shape extension |
| 27321 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27323 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27324 | if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27325 | $as_echo_n "(cached) " >&6 |
| 27326 | else |
| 27327 | ac_check_lib_save_LIBS=$LIBS |
| 27328 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27330 | /* end confdefs.h. */ |
| 27331 | |
| 27332 | /* Override any GCC internal prototype to avoid an error. |
| 27333 | Use char because int might match the return type of a GCC |
| 27334 | builtin and then its argument prototype would still apply. */ |
| 27335 | #ifdef __cplusplus |
| 27336 | extern "C" |
| 27337 | #endif |
| 27338 | char XShapeCombineMask (); |
| 27339 | int |
| 27340 | main () |
| 27341 | { |
| 27342 | return XShapeCombineMask (); |
| 27343 | ; |
| 27344 | return 0; |
| 27345 | } |
| 27346 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27347 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27348 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 27349 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27350 | ac_cv_lib_Xext_XShapeCombineMask=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27351 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27352 | rm -f core conftest.err conftest.$ac_objext \ |
| 27353 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27354 | LIBS=$ac_check_lib_save_LIBS |
| 27355 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27357 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27358 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27359 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27360 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27361 | |
| 27362 | fi |
| 27363 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27365 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27366 | if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27367 | $as_echo_n "(cached) " >&6 |
| 27368 | else |
| 27369 | ac_check_lib_save_LIBS=$LIBS |
| 27370 | LIBS="-lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27372 | /* end confdefs.h. */ |
| 27373 | |
| 27374 | /* Override any GCC internal prototype to avoid an error. |
| 27375 | Use char because int might match the return type of a GCC |
| 27376 | builtin and then its argument prototype would still apply. */ |
| 27377 | #ifdef __cplusplus |
| 27378 | extern "C" |
| 27379 | #endif |
| 27380 | char XtSetEventDispatcher (); |
| 27381 | int |
| 27382 | main () |
| 27383 | { |
| 27384 | return XtSetEventDispatcher (); |
| 27385 | ; |
| 27386 | return 0; |
| 27387 | } |
| 27388 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27389 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27390 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 27391 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27392 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27393 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27394 | rm -f core conftest.err conftest.$ac_objext \ |
| 27395 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27396 | LIBS=$ac_check_lib_save_LIBS |
| 27397 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27399 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27400 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27401 | XT_LIBS='-lXt' |
| 27402 | fi |
| 27403 | |
| 27404 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 27405 | fi |
| 27406 | if test "$no_x" != 'yes'; then |
| 27407 | have_x='yes' |
| 27408 | else |
| 27409 | have_x='no' |
| 27410 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27411 | if test "$have_x" = 'yes'; then |
| 27412 | X11_DELEGATE_TRUE= |
| 27413 | X11_DELEGATE_FALSE='#' |
| 27414 | else |
| 27415 | X11_DELEGATE_TRUE='#' |
| 27416 | X11_DELEGATE_FALSE= |
| 27417 | fi |
| 27418 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27419 | |
| 27420 | |
| 27421 | |
| 27422 | |
| 27423 | # |
| 27424 | # Check for ZLIB |
| 27425 | # |
| 27426 | |
| 27427 | # Check whether --with-zlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27428 | if test "${with_zlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27429 | withval=$with_zlib; with_zlib=$withval |
| 27430 | else |
| 27431 | with_zlib='yes' |
| 27432 | fi |
| 27433 | |
| 27434 | |
| 27435 | if test "$with_zlib" != 'yes'; then |
| 27436 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 27437 | fi |
| 27438 | |
| 27439 | have_zlib='no' |
| 27440 | ZLIB_LIBS='' |
| 27441 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27443 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27445 | $as_echo_n "checking for ZLIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27447 | $as_echo "" >&6; } |
| 27448 | ZLIB_LIBS='' |
| 27449 | failed=0 |
| 27450 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27451 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27452 | if test "x$ac_cv_header_zconf_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27453 | passed=`expr $passed + 1` |
| 27454 | else |
| 27455 | failed=`expr $failed + 1` |
| 27456 | fi |
| 27457 | |
| 27458 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27459 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27460 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27461 | passed=`expr $passed + 1` |
| 27462 | else |
| 27463 | failed=`expr $failed + 1` |
| 27464 | fi |
| 27465 | |
| 27466 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27468 | $as_echo_n "checking for compress in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27469 | if ${ac_cv_lib_z_compress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27470 | $as_echo_n "(cached) " >&6 |
| 27471 | else |
| 27472 | ac_check_lib_save_LIBS=$LIBS |
| 27473 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27475 | /* end confdefs.h. */ |
| 27476 | |
| 27477 | /* Override any GCC internal prototype to avoid an error. |
| 27478 | Use char because int might match the return type of a GCC |
| 27479 | builtin and then its argument prototype would still apply. */ |
| 27480 | #ifdef __cplusplus |
| 27481 | extern "C" |
| 27482 | #endif |
| 27483 | char compress (); |
| 27484 | int |
| 27485 | main () |
| 27486 | { |
| 27487 | return compress (); |
| 27488 | ; |
| 27489 | return 0; |
| 27490 | } |
| 27491 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27492 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27493 | ac_cv_lib_z_compress=yes |
| 27494 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27495 | ac_cv_lib_z_compress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27496 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27497 | rm -f core conftest.err conftest.$ac_objext \ |
| 27498 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27499 | LIBS=$ac_check_lib_save_LIBS |
| 27500 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27502 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27503 | if test "x$ac_cv_lib_z_compress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27504 | passed=`expr $passed + 1` |
| 27505 | else |
| 27506 | failed=`expr $failed + 1` |
| 27507 | fi |
| 27508 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27510 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27511 | if ${ac_cv_lib_z_uncompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27512 | $as_echo_n "(cached) " >&6 |
| 27513 | else |
| 27514 | ac_check_lib_save_LIBS=$LIBS |
| 27515 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27517 | /* end confdefs.h. */ |
| 27518 | |
| 27519 | /* Override any GCC internal prototype to avoid an error. |
| 27520 | Use char because int might match the return type of a GCC |
| 27521 | builtin and then its argument prototype would still apply. */ |
| 27522 | #ifdef __cplusplus |
| 27523 | extern "C" |
| 27524 | #endif |
| 27525 | char uncompress (); |
| 27526 | int |
| 27527 | main () |
| 27528 | { |
| 27529 | return uncompress (); |
| 27530 | ; |
| 27531 | return 0; |
| 27532 | } |
| 27533 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27534 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27535 | ac_cv_lib_z_uncompress=yes |
| 27536 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27537 | ac_cv_lib_z_uncompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27538 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27539 | rm -f core conftest.err conftest.$ac_objext \ |
| 27540 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27541 | LIBS=$ac_check_lib_save_LIBS |
| 27542 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27544 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27545 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27546 | passed=`expr $passed + 1` |
| 27547 | else |
| 27548 | failed=`expr $failed + 1` |
| 27549 | fi |
| 27550 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27552 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27553 | if ${ac_cv_lib_z_deflate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27554 | $as_echo_n "(cached) " >&6 |
| 27555 | else |
| 27556 | ac_check_lib_save_LIBS=$LIBS |
| 27557 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27559 | /* end confdefs.h. */ |
| 27560 | |
| 27561 | /* Override any GCC internal prototype to avoid an error. |
| 27562 | Use char because int might match the return type of a GCC |
| 27563 | builtin and then its argument prototype would still apply. */ |
| 27564 | #ifdef __cplusplus |
| 27565 | extern "C" |
| 27566 | #endif |
| 27567 | char deflate (); |
| 27568 | int |
| 27569 | main () |
| 27570 | { |
| 27571 | return deflate (); |
| 27572 | ; |
| 27573 | return 0; |
| 27574 | } |
| 27575 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27576 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27577 | ac_cv_lib_z_deflate=yes |
| 27578 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27579 | ac_cv_lib_z_deflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27580 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27581 | rm -f core conftest.err conftest.$ac_objext \ |
| 27582 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27583 | LIBS=$ac_check_lib_save_LIBS |
| 27584 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27586 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27587 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27588 | passed=`expr $passed + 1` |
| 27589 | else |
| 27590 | failed=`expr $failed + 1` |
| 27591 | fi |
| 27592 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27594 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27595 | if ${ac_cv_lib_z_inflate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27596 | $as_echo_n "(cached) " >&6 |
| 27597 | else |
| 27598 | ac_check_lib_save_LIBS=$LIBS |
| 27599 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27601 | /* end confdefs.h. */ |
| 27602 | |
| 27603 | /* Override any GCC internal prototype to avoid an error. |
| 27604 | Use char because int might match the return type of a GCC |
| 27605 | builtin and then its argument prototype would still apply. */ |
| 27606 | #ifdef __cplusplus |
| 27607 | extern "C" |
| 27608 | #endif |
| 27609 | char inflate (); |
| 27610 | int |
| 27611 | main () |
| 27612 | { |
| 27613 | return inflate (); |
| 27614 | ; |
| 27615 | return 0; |
| 27616 | } |
| 27617 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27618 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27619 | ac_cv_lib_z_inflate=yes |
| 27620 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27621 | ac_cv_lib_z_inflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27622 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27623 | rm -f core conftest.err conftest.$ac_objext \ |
| 27624 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27625 | LIBS=$ac_check_lib_save_LIBS |
| 27626 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27628 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27629 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27630 | passed=`expr $passed + 1` |
| 27631 | else |
| 27632 | failed=`expr $failed + 1` |
| 27633 | fi |
| 27634 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27636 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27637 | if ${ac_cv_lib_z_gzseek+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27638 | $as_echo_n "(cached) " >&6 |
| 27639 | else |
| 27640 | ac_check_lib_save_LIBS=$LIBS |
| 27641 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27643 | /* end confdefs.h. */ |
| 27644 | |
| 27645 | /* Override any GCC internal prototype to avoid an error. |
| 27646 | Use char because int might match the return type of a GCC |
| 27647 | builtin and then its argument prototype would still apply. */ |
| 27648 | #ifdef __cplusplus |
| 27649 | extern "C" |
| 27650 | #endif |
| 27651 | char gzseek (); |
| 27652 | int |
| 27653 | main () |
| 27654 | { |
| 27655 | return gzseek (); |
| 27656 | ; |
| 27657 | return 0; |
| 27658 | } |
| 27659 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27660 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27661 | ac_cv_lib_z_gzseek=yes |
| 27662 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27663 | ac_cv_lib_z_gzseek=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27664 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27665 | rm -f core conftest.err conftest.$ac_objext \ |
| 27666 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27667 | LIBS=$ac_check_lib_save_LIBS |
| 27668 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27670 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27671 | if test "x$ac_cv_lib_z_gzseek" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27672 | passed=`expr $passed + 1` |
| 27673 | else |
| 27674 | failed=`expr $failed + 1` |
| 27675 | fi |
| 27676 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27678 | $as_echo_n "checking for gztell in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27679 | if ${ac_cv_lib_z_gztell+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27680 | $as_echo_n "(cached) " >&6 |
| 27681 | else |
| 27682 | ac_check_lib_save_LIBS=$LIBS |
| 27683 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27685 | /* end confdefs.h. */ |
| 27686 | |
| 27687 | /* Override any GCC internal prototype to avoid an error. |
| 27688 | Use char because int might match the return type of a GCC |
| 27689 | builtin and then its argument prototype would still apply. */ |
| 27690 | #ifdef __cplusplus |
| 27691 | extern "C" |
| 27692 | #endif |
| 27693 | char gztell (); |
| 27694 | int |
| 27695 | main () |
| 27696 | { |
| 27697 | return gztell (); |
| 27698 | ; |
| 27699 | return 0; |
| 27700 | } |
| 27701 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27702 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27703 | ac_cv_lib_z_gztell=yes |
| 27704 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27705 | ac_cv_lib_z_gztell=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27706 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27707 | rm -f core conftest.err conftest.$ac_objext \ |
| 27708 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27709 | LIBS=$ac_check_lib_save_LIBS |
| 27710 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27712 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27713 | if test "x$ac_cv_lib_z_gztell" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27714 | passed=`expr $passed + 1` |
| 27715 | else |
| 27716 | failed=`expr $failed + 1` |
| 27717 | fi |
| 27718 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27720 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 27721 | if test $passed -gt 0; then |
| 27722 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27724 | $as_echo "no -- some components failed test" >&6; } |
| 27725 | have_zlib='no (failed tests)' |
| 27726 | else |
| 27727 | ZLIB_LIBS='-lz' |
| 27728 | LIBS="$ZLIB_LIBS $LIBS" |
| 27729 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27730 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27731 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27733 | $as_echo "yes" >&6; } |
| 27734 | have_zlib='yes' |
| 27735 | fi |
| 27736 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27738 | $as_echo "no" >&6; } |
| 27739 | fi |
| 27740 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27741 | if test "$have_zlib" = 'yes'; then |
| 27742 | ZLIB_DELEGATE_TRUE= |
| 27743 | ZLIB_DELEGATE_FALSE='#' |
| 27744 | else |
| 27745 | ZLIB_DELEGATE_TRUE='#' |
| 27746 | ZLIB_DELEGATE_FALSE= |
| 27747 | fi |
| 27748 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27749 | |
| 27750 | |
| 27751 | # |
| 27752 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 27753 | # |
| 27754 | LIB_DL='' |
| 27755 | if test "$enable_profiling" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27757 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27758 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27759 | $as_echo_n "(cached) " >&6 |
| 27760 | else |
| 27761 | ac_check_lib_save_LIBS=$LIBS |
| 27762 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27764 | /* end confdefs.h. */ |
| 27765 | |
| 27766 | /* Override any GCC internal prototype to avoid an error. |
| 27767 | Use char because int might match the return type of a GCC |
| 27768 | builtin and then its argument prototype would still apply. */ |
| 27769 | #ifdef __cplusplus |
| 27770 | extern "C" |
| 27771 | #endif |
| 27772 | char dlopen (); |
| 27773 | int |
| 27774 | main () |
| 27775 | { |
| 27776 | return dlopen (); |
| 27777 | ; |
| 27778 | return 0; |
| 27779 | } |
| 27780 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27781 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27782 | ac_cv_lib_dl_dlopen=yes |
| 27783 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27784 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27785 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27786 | rm -f core conftest.err conftest.$ac_objext \ |
| 27787 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27788 | LIBS=$ac_check_lib_save_LIBS |
| 27789 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27791 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27792 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27793 | LIB_DL='-ldl' |
| 27794 | fi |
| 27795 | |
| 27796 | LIBS="$LIB_DL $LIBS" |
| 27797 | fi |
| 27798 | |
| 27799 | |
| 27800 | |
| 27801 | # |
| 27802 | # Check for Autotrace delegate library. |
| 27803 | # |
| 27804 | |
| 27805 | # Check whether --with-autotrace was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27806 | if test "${with_autotrace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27807 | withval=$with_autotrace; with_autotrace=$withval |
| 27808 | else |
| 27809 | with_autotrace='no' |
| 27810 | fi |
| 27811 | |
| 27812 | |
| 27813 | if test "$with_autotrace" != 'yes'; then |
| 27814 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 27815 | fi |
| 27816 | |
| 27817 | have_autotrace='no' |
| 27818 | AUTOTRACE_CFLAGS="" |
| 27819 | AUTOTRACE_LIBS="" |
| 27820 | AUTOTRACE_PKG="" |
| 27821 | if test "x$with_autotrace" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27823 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27824 | |
| 27825 | pkg_failed=no |
| 27826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 |
| 27827 | $as_echo_n "checking for AUTOTRACE... " >&6; } |
| 27828 | |
| 27829 | if test -n "$AUTOTRACE_CFLAGS"; then |
| 27830 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" |
| 27831 | elif test -n "$PKG_CONFIG"; then |
| 27832 | if test -n "$PKG_CONFIG" && \ |
| 27833 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| 27834 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 27835 | ac_status=$? |
| 27836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27837 | test $ac_status = 0; }; then |
| 27838 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` |
| 27839 | else |
| 27840 | pkg_failed=yes |
| 27841 | fi |
| 27842 | else |
| 27843 | pkg_failed=untried |
| 27844 | fi |
| 27845 | if test -n "$AUTOTRACE_LIBS"; then |
| 27846 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" |
| 27847 | elif test -n "$PKG_CONFIG"; then |
| 27848 | if test -n "$PKG_CONFIG" && \ |
| 27849 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| 27850 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 27851 | ac_status=$? |
| 27852 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27853 | test $ac_status = 0; }; then |
| 27854 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` |
| 27855 | else |
| 27856 | pkg_failed=yes |
| 27857 | fi |
| 27858 | else |
| 27859 | pkg_failed=untried |
| 27860 | fi |
| 27861 | |
| 27862 | |
| 27863 | |
| 27864 | if test $pkg_failed = yes; then |
| 27865 | |
| 27866 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 27867 | _pkg_short_errors_supported=yes |
| 27868 | else |
| 27869 | _pkg_short_errors_supported=no |
| 27870 | fi |
| 27871 | if test $_pkg_short_errors_supported = yes; then |
| 27872 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` |
| 27873 | else |
| 27874 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` |
| 27875 | fi |
| 27876 | # Put the nasty error message in config.log where it belongs |
| 27877 | echo "$AUTOTRACE_PKG_ERRORS" >&5 |
| 27878 | |
| 27879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27880 | $as_echo "no" >&6; } |
| 27881 | have_autotrace=no |
| 27882 | elif test $pkg_failed = untried; then |
| 27883 | have_autotrace=no |
| 27884 | else |
| 27885 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS |
| 27886 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS |
| 27887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 27888 | $as_echo "yes" >&6; } |
| 27889 | have_autotrace=yes |
| 27890 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27892 | $as_echo "" >&6; } |
| 27893 | fi |
| 27894 | |
| 27895 | if test "$have_autotrace" = 'yes'; then |
| 27896 | failed=0 |
| 27897 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27898 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27899 | |
| 27900 | if test "$with_modules" = 'no'; then |
| 27901 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| 27902 | fi |
| 27903 | fi |
| 27904 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27905 | if test "$have_autotrace" = 'yes'; then |
| 27906 | AUTOTRACE_DELEGATE_TRUE= |
| 27907 | AUTOTRACE_DELEGATE_FALSE='#' |
| 27908 | else |
| 27909 | AUTOTRACE_DELEGATE_TRUE='#' |
| 27910 | AUTOTRACE_DELEGATE_FALSE= |
| 27911 | fi |
| 27912 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27913 | |
| 27914 | |
| 27915 | |
| 27916 | |
| 27917 | # |
| 27918 | # Check for Display Postscript delegate library. |
| 27919 | # |
| 27920 | |
| 27921 | # Check whether --with-dps was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27922 | if test "${with_dps+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27923 | withval=$with_dps; with_dps=$withval |
| 27924 | else |
| 27925 | with_dps='yes' |
| 27926 | fi |
| 27927 | |
| 27928 | |
| 27929 | if test "$with_dps" != 'yes'; then |
| 27930 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 27931 | fi |
| 27932 | |
| 27933 | have_dps='no' |
| 27934 | DPS_LIBS='' |
| 27935 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27937 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27939 | $as_echo_n "checking for DPS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27941 | $as_echo "" >&6; } |
| 27942 | failed=0 |
| 27943 | passed=0 |
| 27944 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 27945 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27946 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27947 | if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27948 | passed=`expr $passed + 1` |
| 27949 | else |
| 27950 | failed=`expr $failed + 1` |
| 27951 | fi |
| 27952 | |
| 27953 | |
| 27954 | # DPS issues: |
| 27955 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 27956 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 27957 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 27958 | # ImageMagick itself doesn't use -lXt. |
| 27959 | have_libdps='no' |
| 27960 | LIBDPS_XT='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27962 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27963 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27964 | $as_echo_n "(cached) " >&6 |
| 27965 | else |
| 27966 | ac_check_lib_save_LIBS=$LIBS |
| 27967 | LIBS="-ldps $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27969 | /* end confdefs.h. */ |
| 27970 | |
| 27971 | /* Override any GCC internal prototype to avoid an error. |
| 27972 | Use char because int might match the return type of a GCC |
| 27973 | builtin and then its argument prototype would still apply. */ |
| 27974 | #ifdef __cplusplus |
| 27975 | extern "C" |
| 27976 | #endif |
| 27977 | char DPSInitialize (); |
| 27978 | int |
| 27979 | main () |
| 27980 | { |
| 27981 | return DPSInitialize (); |
| 27982 | ; |
| 27983 | return 0; |
| 27984 | } |
| 27985 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27986 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27987 | ac_cv_lib_dps_DPSInitialize=yes |
| 27988 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27989 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27990 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27991 | rm -f core conftest.err conftest.$ac_objext \ |
| 27992 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27993 | LIBS=$ac_check_lib_save_LIBS |
| 27994 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27996 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27997 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27998 | have_libdps='yes' |
| 27999 | else |
| 28000 | have_libdps='no' |
| 28001 | fi |
| 28002 | |
| 28003 | if test "$have_libdps" != 'yes'; then |
| 28004 | # Unset cache variable so we can try again. |
| 28005 | unset ac_cv_lib_dps_DPSInitialize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28007 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28008 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28009 | $as_echo_n "(cached) " >&6 |
| 28010 | else |
| 28011 | ac_check_lib_save_LIBS=$LIBS |
| 28012 | LIBS="-ldps -lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28014 | /* end confdefs.h. */ |
| 28015 | |
| 28016 | /* Override any GCC internal prototype to avoid an error. |
| 28017 | Use char because int might match the return type of a GCC |
| 28018 | builtin and then its argument prototype would still apply. */ |
| 28019 | #ifdef __cplusplus |
| 28020 | extern "C" |
| 28021 | #endif |
| 28022 | char DPSInitialize (); |
| 28023 | int |
| 28024 | main () |
| 28025 | { |
| 28026 | return DPSInitialize (); |
| 28027 | ; |
| 28028 | return 0; |
| 28029 | } |
| 28030 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28031 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28032 | ac_cv_lib_dps_DPSInitialize=yes |
| 28033 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28034 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28035 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28036 | rm -f core conftest.err conftest.$ac_objext \ |
| 28037 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28038 | LIBS=$ac_check_lib_save_LIBS |
| 28039 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28041 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28042 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28043 | have_libdps='yes' |
| 28044 | else |
| 28045 | have_libdps='no' |
| 28046 | fi |
| 28047 | |
| 28048 | if test "$have_libdps" = 'yes'; then |
| 28049 | LIBDPS_XT='-lXt' |
| 28050 | fi |
| 28051 | fi |
| 28052 | if test "$have_libdps" = 'yes'; then |
| 28053 | passed=`expr $passed + 1` |
| 28054 | else |
| 28055 | failed=`expr $failed + 1` |
| 28056 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28058 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28059 | if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28060 | $as_echo_n "(cached) " >&6 |
| 28061 | else |
| 28062 | ac_check_lib_save_LIBS=$LIBS |
| 28063 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28065 | /* end confdefs.h. */ |
| 28066 | |
| 28067 | /* Override any GCC internal prototype to avoid an error. |
| 28068 | Use char because int might match the return type of a GCC |
| 28069 | builtin and then its argument prototype would still apply. */ |
| 28070 | #ifdef __cplusplus |
| 28071 | extern "C" |
| 28072 | #endif |
| 28073 | char XDPSPixelsPerPoint (); |
| 28074 | int |
| 28075 | main () |
| 28076 | { |
| 28077 | return XDPSPixelsPerPoint (); |
| 28078 | ; |
| 28079 | return 0; |
| 28080 | } |
| 28081 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28082 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28083 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 28084 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28085 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28086 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28087 | rm -f core conftest.err conftest.$ac_objext \ |
| 28088 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28089 | LIBS=$ac_check_lib_save_LIBS |
| 28090 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28092 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28093 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28094 | passed=`expr $passed + 1` |
| 28095 | else |
| 28096 | failed=`expr $failed + 1` |
| 28097 | fi |
| 28098 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28100 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 28101 | if test $passed -gt 0; then |
| 28102 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28104 | $as_echo "no -- some components failed test" >&6; } |
| 28105 | have_dps='no (failed tests)' |
| 28106 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 28107 | else |
| 28108 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 28109 | LIBS="$DPS_LIBS $LIBS" |
| 28110 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28111 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28112 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28114 | $as_echo "yes" >&6; } |
| 28115 | have_dps='yes' |
| 28116 | fi |
| 28117 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28119 | $as_echo "no" >&6; } |
| 28120 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 28121 | fi |
| 28122 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28123 | if test "$have_dps" = 'yes'; then |
| 28124 | DPS_DELEGATE_TRUE= |
| 28125 | DPS_DELEGATE_FALSE='#' |
| 28126 | else |
| 28127 | DPS_DELEGATE_TRUE='#' |
| 28128 | DPS_DELEGATE_FALSE= |
| 28129 | fi |
| 28130 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28131 | |
| 28132 | |
| 28133 | |
| 28134 | # |
| 28135 | # Check for DJVU delegate library. |
| 28136 | # |
| 28137 | |
| 28138 | # Check whether --with-djvu was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28139 | if test "${with_djvu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28140 | withval=$with_djvu; with_djvu=$withval |
| 28141 | else |
| 28142 | with_djvu='yes' |
| 28143 | fi |
| 28144 | |
| 28145 | |
| 28146 | if test "$with_djvu" != 'yes'; then |
| 28147 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 28148 | fi |
| 28149 | |
| 28150 | have_djvu='no' |
| 28151 | DJVU_LIBS='' |
| 28152 | if test "$with_djvu" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28154 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28156 | $as_echo_n "checking for DJVU... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28158 | $as_echo "" >&6; } |
| 28159 | failed=0 |
| 28160 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28161 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28162 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28163 | passed=`expr $passed + 1` |
| 28164 | else |
| 28165 | failed=`expr $failed + 1` |
| 28166 | fi |
| 28167 | |
| 28168 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28170 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28171 | if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28172 | $as_echo_n "(cached) " >&6 |
| 28173 | else |
| 28174 | ac_check_lib_save_LIBS=$LIBS |
| 28175 | LIBS="-ldjvulibre $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28177 | /* end confdefs.h. */ |
| 28178 | |
| 28179 | /* Override any GCC internal prototype to avoid an error. |
| 28180 | Use char because int might match the return type of a GCC |
| 28181 | builtin and then its argument prototype would still apply. */ |
| 28182 | #ifdef __cplusplus |
| 28183 | extern "C" |
| 28184 | #endif |
| 28185 | char ddjvu_context_create (); |
| 28186 | int |
| 28187 | main () |
| 28188 | { |
| 28189 | return ddjvu_context_create (); |
| 28190 | ; |
| 28191 | return 0; |
| 28192 | } |
| 28193 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28194 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28195 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 28196 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28197 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28198 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28199 | rm -f core conftest.err conftest.$ac_objext \ |
| 28200 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28201 | LIBS=$ac_check_lib_save_LIBS |
| 28202 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28204 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28205 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28206 | passed=`expr $passed + 1` |
| 28207 | else |
| 28208 | failed=`expr $failed + 1` |
| 28209 | fi |
| 28210 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28212 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 28213 | if test $passed -gt 0; then |
| 28214 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28216 | $as_echo "no -- some components failed test" >&6; } |
| 28217 | have_djvu='no (failed tests)' |
| 28218 | else |
| 28219 | DJVU_LIBS='-ldjvulibre' |
| 28220 | LIBS="$DJVU_LIBS $LIBS" |
| 28221 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28222 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28223 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28225 | $as_echo "yes" >&6; } |
| 28226 | have_djvu='yes' |
| 28227 | fi |
| 28228 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28230 | $as_echo "no" >&6; } |
| 28231 | fi |
| 28232 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28233 | if test "$have_djvu" = 'yes'; then |
| 28234 | DJVU_DELEGATE_TRUE= |
| 28235 | DJVU_DELEGATE_FALSE='#' |
| 28236 | else |
| 28237 | DJVU_DELEGATE_TRUE='#' |
| 28238 | DJVU_DELEGATE_FALSE= |
| 28239 | fi |
| 28240 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28241 | |
| 28242 | |
| 28243 | |
| 28244 | # |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 28245 | # Set DejaVu font directory. |
| 28246 | # |
| 28247 | |
| 28248 | # Check whether --with-dejavu-font-dir was given. |
| 28249 | if test "${with_dejavu_font_dir+set}" = set; then : |
| 28250 | withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval |
| 28251 | else |
| 28252 | with_dejavu_font_dir='default' |
| 28253 | fi |
| 28254 | |
| 28255 | |
| 28256 | if test "$with_dejavu_font_dir" != 'default'; then |
| 28257 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " |
| 28258 | fi |
| 28259 | |
| 28260 | |
| 28261 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28262 | # Check for FFTW delegate library. |
| 28263 | # |
| 28264 | |
| 28265 | # Check whether --with-fftw was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28266 | if test "${with_fftw+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28267 | withval=$with_fftw; with_fftw=$withval |
| 28268 | else |
| 28269 | with_fftw='yes' |
| 28270 | fi |
| 28271 | |
| 28272 | |
| 28273 | if test "$with_fftw" != 'yes'; then |
| 28274 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 28275 | fi |
| 28276 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28277 | have_fftw='no' |
| 28278 | FFTW_LIBS='' |
| 28279 | if test "$with_fftw" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28281 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 |
| 28283 | $as_echo_n "checking for FFTW... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28285 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28286 | failed=0 |
| 28287 | passed=0 |
| 28288 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 28289 | if test "x$ac_cv_header_fftw3_h" = xyes; then : |
| 28290 | passed=`expr $passed + 1` |
| 28291 | else |
| 28292 | failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28293 | fi |
| 28294 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28295 | |
| 28296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
| 28297 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| 28298 | if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : |
| 28299 | $as_echo_n "(cached) " >&6 |
| 28300 | else |
| 28301 | ac_check_lib_save_LIBS=$LIBS |
| 28302 | LIBS="-lfftw3 $LIBS" |
| 28303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28304 | /* end confdefs.h. */ |
| 28305 | |
| 28306 | /* Override any GCC internal prototype to avoid an error. |
| 28307 | Use char because int might match the return type of a GCC |
| 28308 | builtin and then its argument prototype would still apply. */ |
| 28309 | #ifdef __cplusplus |
| 28310 | extern "C" |
| 28311 | #endif |
| 28312 | char fftw_execute (); |
| 28313 | int |
| 28314 | main () |
| 28315 | { |
| 28316 | return fftw_execute (); |
| 28317 | ; |
| 28318 | return 0; |
| 28319 | } |
| 28320 | _ACEOF |
| 28321 | if ac_fn_c_try_link "$LINENO"; then : |
| 28322 | ac_cv_lib_fftw3_fftw_execute=yes |
| 28323 | else |
| 28324 | ac_cv_lib_fftw3_fftw_execute=no |
| 28325 | fi |
| 28326 | rm -f core conftest.err conftest.$ac_objext \ |
| 28327 | conftest$ac_exeext conftest.$ac_ext |
| 28328 | LIBS=$ac_check_lib_save_LIBS |
| 28329 | fi |
| 28330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
| 28331 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| 28332 | if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : |
| 28333 | passed=`expr $passed + 1` |
| 28334 | else |
| 28335 | failed=`expr $failed + 1` |
| 28336 | fi |
| 28337 | |
| 28338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 |
| 28339 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 28340 | if test $passed -gt 0; then |
| 28341 | if test $failed -gt 0; then |
| 28342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 28343 | $as_echo "no -- some components failed test" >&6; } |
| 28344 | have_fftw='no (failed tests)' |
| 28345 | else |
| 28346 | FFTW_LIBS='-lfftw3' |
| 28347 | LIBS="$FFTW_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28348 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28349 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28350 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28352 | $as_echo "yes" >&6; } |
| 28353 | have_fftw='yes' |
| 28354 | fi |
| 28355 | else |
| 28356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28357 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28358 | fi |
| 28359 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28360 | if test "$have_fftw" = 'yes'; then |
| 28361 | FFTW_DELEGATE_TRUE= |
| 28362 | FFTW_DELEGATE_FALSE='#' |
| 28363 | else |
| 28364 | FFTW_DELEGATE_TRUE='#' |
| 28365 | FFTW_DELEGATE_FALSE= |
| 28366 | fi |
| 28367 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28368 | |
| 28369 | |
| 28370 | |
| 28371 | # |
| 28372 | # Check for FlashPIX delegate library. |
| 28373 | # |
| 28374 | |
| 28375 | # Check whether --with-fpx was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28376 | if test "${with_fpx+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28377 | withval=$with_fpx; with_fpx=$withval |
| 28378 | else |
| 28379 | with_fpx='yes' |
| 28380 | fi |
| 28381 | |
| 28382 | |
| 28383 | if test "$with_fpx" != 'yes'; then |
| 28384 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 28385 | fi |
| 28386 | |
| 28387 | have_fpx='no' |
| 28388 | FPX_LIBS='' |
| 28389 | if test "$with_fpx" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28391 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28393 | $as_echo_n "checking for FlashPIX... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28395 | $as_echo "" >&6; } |
| 28396 | failed=0 |
| 28397 | passed=0 |
| 28398 | ac_ext=cpp |
| 28399 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28400 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28401 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28402 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28403 | |
| 28404 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28405 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28406 | if test "x$ac_cv_header_fpxlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28407 | passed=`expr $passed + 1` |
| 28408 | else |
| 28409 | failed=`expr $failed + 1` |
| 28410 | fi |
| 28411 | |
| 28412 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28414 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28415 | if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28416 | $as_echo_n "(cached) " >&6 |
| 28417 | else |
| 28418 | ac_check_lib_save_LIBS=$LIBS |
| 28419 | LIBS="-lfpx $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28421 | /* end confdefs.h. */ |
| 28422 | |
| 28423 | /* Override any GCC internal prototype to avoid an error. |
| 28424 | Use char because int might match the return type of a GCC |
| 28425 | builtin and then its argument prototype would still apply. */ |
| 28426 | #ifdef __cplusplus |
| 28427 | extern "C" |
| 28428 | #endif |
| 28429 | char FPX_OpenImageByFilename (); |
| 28430 | int |
| 28431 | main () |
| 28432 | { |
| 28433 | return FPX_OpenImageByFilename (); |
| 28434 | ; |
| 28435 | return 0; |
| 28436 | } |
| 28437 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28438 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28439 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 28440 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28441 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28442 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28443 | rm -f core conftest.err conftest.$ac_objext \ |
| 28444 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28445 | LIBS=$ac_check_lib_save_LIBS |
| 28446 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28448 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28449 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28450 | passed=`expr $passed + 1` |
| 28451 | else |
| 28452 | failed=`expr $failed + 1` |
| 28453 | fi |
| 28454 | |
| 28455 | ac_ext=c |
| 28456 | ac_cpp='$CPP $CPPFLAGS' |
| 28457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 28460 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28462 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 28463 | if test $passed -gt 0; then |
| 28464 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28466 | $as_echo "no -- some components failed test" >&6; } |
| 28467 | have_fpx='no (failed tests)' |
| 28468 | else |
| 28469 | FPX_LIBS='-lfpx' |
| 28470 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28471 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28472 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28474 | $as_echo "yes" >&6; } |
| 28475 | have_fpx='yes' |
| 28476 | PERLMAINCC="$CXX" |
| 28477 | fi |
| 28478 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28480 | $as_echo "no" >&6; } |
| 28481 | fi |
| 28482 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28483 | if test "$have_fpx" = 'yes'; then |
| 28484 | FPX_DELEGATE_TRUE= |
| 28485 | FPX_DELEGATE_FALSE='#' |
| 28486 | else |
| 28487 | FPX_DELEGATE_TRUE='#' |
| 28488 | FPX_DELEGATE_FALSE= |
| 28489 | fi |
| 28490 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28491 | |
| 28492 | |
| 28493 | |
| 28494 | # |
| 28495 | # Check for fontconfig delegate library. |
| 28496 | # |
| 28497 | |
| 28498 | # Check whether --with-fontconfig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28499 | if test "${with_fontconfig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28500 | withval=$with_fontconfig; with_fontconfig=$withval |
| 28501 | else |
| 28502 | with_fontconfig=$have_x |
| 28503 | fi |
| 28504 | |
| 28505 | |
| 28506 | if test "$with_fontconfig" != 'yes'; then |
| 28507 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 28508 | fi |
| 28509 | |
| 28510 | have_fontconfig='no' |
| 28511 | FONTCONFIG_CFLAGS="" |
| 28512 | FONTCONFIG_LIBS="" |
| 28513 | FONTCONFIG_PKG="" |
| 28514 | if test "x$with_fontconfig" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28516 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28517 | |
| 28518 | pkg_failed=no |
| 28519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 |
| 28520 | $as_echo_n "checking for FONTCONFIG... " >&6; } |
| 28521 | |
| 28522 | if test -n "$FONTCONFIG_CFLAGS"; then |
| 28523 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" |
| 28524 | elif test -n "$PKG_CONFIG"; then |
| 28525 | if test -n "$PKG_CONFIG" && \ |
| 28526 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| 28527 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 28528 | ac_status=$? |
| 28529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 28530 | test $ac_status = 0; }; then |
| 28531 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` |
| 28532 | else |
| 28533 | pkg_failed=yes |
| 28534 | fi |
| 28535 | else |
| 28536 | pkg_failed=untried |
| 28537 | fi |
| 28538 | if test -n "$FONTCONFIG_LIBS"; then |
| 28539 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" |
| 28540 | elif test -n "$PKG_CONFIG"; then |
| 28541 | if test -n "$PKG_CONFIG" && \ |
| 28542 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| 28543 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 28544 | ac_status=$? |
| 28545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 28546 | test $ac_status = 0; }; then |
| 28547 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` |
| 28548 | else |
| 28549 | pkg_failed=yes |
| 28550 | fi |
| 28551 | else |
| 28552 | pkg_failed=untried |
| 28553 | fi |
| 28554 | |
| 28555 | |
| 28556 | |
| 28557 | if test $pkg_failed = yes; then |
| 28558 | |
| 28559 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 28560 | _pkg_short_errors_supported=yes |
| 28561 | else |
| 28562 | _pkg_short_errors_supported=no |
| 28563 | fi |
| 28564 | if test $_pkg_short_errors_supported = yes; then |
| 28565 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 28566 | else |
| 28567 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 28568 | fi |
| 28569 | # Put the nasty error message in config.log where it belongs |
| 28570 | echo "$FONTCONFIG_PKG_ERRORS" >&5 |
| 28571 | |
| 28572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28573 | $as_echo "no" >&6; } |
| 28574 | have_fontconfig=no |
| 28575 | elif test $pkg_failed = untried; then |
| 28576 | have_fontconfig=no |
| 28577 | else |
| 28578 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS |
| 28579 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS |
| 28580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28581 | $as_echo "yes" >&6; } |
| 28582 | have_fontconfig=yes |
| 28583 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28585 | $as_echo "" >&6; } |
| 28586 | fi |
| 28587 | |
| 28588 | if test "$have_fontconfig" = 'yes'; then |
| 28589 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28590 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28591 | |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28592 | if test "$with_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28593 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28594 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28595 | fi |
| 28596 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28597 | if test "$have_fontconfig" = 'yes'; then |
| 28598 | FONTCONFIG_DELEGATE_TRUE= |
| 28599 | FONTCONFIG_DELEGATE_FALSE='#' |
| 28600 | else |
| 28601 | FONTCONFIG_DELEGATE_TRUE='#' |
| 28602 | FONTCONFIG_DELEGATE_FALSE= |
| 28603 | fi |
| 28604 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28605 | |
| 28606 | |
| 28607 | |
| 28608 | |
| 28609 | # |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28610 | # Check for freetype delegate library. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28611 | # |
| 28612 | |
| 28613 | # Check whether --with-freetype was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28614 | if test "${with_freetype+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28615 | withval=$with_freetype; with_freetype=$withval |
| 28616 | else |
| 28617 | with_freetype='yes' |
| 28618 | fi |
| 28619 | |
| 28620 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28621 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28622 | if test "$with_freetype" != 'yes'; then |
| 28623 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 28624 | fi |
| 28625 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28626 | have_freetype='no' |
| 28627 | FREETYPE_LIBS='' |
| 28628 | if test "$with_freetype" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28630 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5 |
| 28632 | $as_echo_n "checking for FreeType 2.0 ... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28634 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28635 | failed=0 |
| 28636 | passed=0 |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28637 | PERSIST_LDFLAGS="$LDFLAGS" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28638 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28639 | freetype_config='' |
| 28640 | # Allow the user to specify the location of freetype. |
| 28641 | if test "$with_freetype" != 'yes'; then |
| 28642 | if test -x "${with_freetype}/bin/freetype-config"; then |
| 28643 | freetype_config="${with_freetype}/bin/freetype-config" |
| 28644 | elif test -x "${with_freetype}"; then |
| 28645 | freetype_config=${with_freetype} |
| 28646 | fi |
| 28647 | fi |
| 28648 | if test -z "$freetype_config"; then |
| 28649 | # Extract the first word of "freetype-config", so it can be a program name with args. |
| 28650 | set dummy freetype-config; ac_word=$2 |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 28652 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28653 | if ${ac_cv_path_freetype_config+:} false; then : |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28654 | $as_echo_n "(cached) " >&6 |
| 28655 | else |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28656 | case $freetype_config in |
| 28657 | [\\/]* | ?:[\\/]*) |
| 28658 | ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path. |
| 28659 | ;; |
| 28660 | *) |
| 28661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28662 | for as_dir in $PATH |
| 28663 | do |
| 28664 | IFS=$as_save_IFS |
| 28665 | test -z "$as_dir" && as_dir=. |
| 28666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 28667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28668 | ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 28670 | break 2 |
| 28671 | fi |
| 28672 | done |
| 28673 | done |
| 28674 | IFS=$as_save_IFS |
| 28675 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28676 | ;; |
| 28677 | esac |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28678 | fi |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28679 | freetype_config=$ac_cv_path_freetype_config |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28680 | if test -n "$freetype_config"; then |
| 28681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 |
| 28682 | $as_echo "$freetype_config" >&6; } |
| 28683 | else |
| 28684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28685 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28686 | fi |
| 28687 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28688 | fi |
| 28689 | if test -n "$freetype_config"; then |
| 28690 | freetype_prefix=`${freetype_config} --prefix` |
| 28691 | freetype_exec_prefix=`${freetype_config} --exec-prefix` |
| 28692 | LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib" |
| 28693 | CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28694 | fi |
| 28695 | |
| 28696 | if test "$FREETYPE_LIBS" = ''; then |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28698 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
| 28699 | if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : |
| 28700 | $as_echo_n "(cached) " >&6 |
| 28701 | else |
| 28702 | ac_check_lib_save_LIBS=$LIBS |
| 28703 | LIBS="-lfreetype $LIBS" |
| 28704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28705 | /* end confdefs.h. */ |
| 28706 | |
| 28707 | /* Override any GCC internal prototype to avoid an error. |
| 28708 | Use char because int might match the return type of a GCC |
| 28709 | builtin and then its argument prototype would still apply. */ |
| 28710 | #ifdef __cplusplus |
| 28711 | extern "C" |
| 28712 | #endif |
| 28713 | char FT_Init_FreeType (); |
| 28714 | int |
| 28715 | main () |
| 28716 | { |
| 28717 | return FT_Init_FreeType (); |
| 28718 | ; |
| 28719 | return 0; |
| 28720 | } |
| 28721 | _ACEOF |
| 28722 | if ac_fn_c_try_link "$LINENO"; then : |
| 28723 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 28724 | else |
| 28725 | ac_cv_lib_freetype_FT_Init_FreeType=no |
| 28726 | fi |
| 28727 | rm -f core conftest.err conftest.$ac_objext \ |
| 28728 | conftest$ac_exeext conftest.$ac_ext |
| 28729 | LIBS=$ac_check_lib_save_LIBS |
| 28730 | fi |
| 28731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
| 28732 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
| 28733 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : |
| 28734 | FREETYPE_LIBS='-lfreetype' |
| 28735 | fi |
| 28736 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28737 | if test "$FREETYPE_LIBS" != ''; then |
| 28738 | passed=`expr $passed + 1` |
| 28739 | else |
| 28740 | failed=`expr $failed + 1` |
| 28741 | LDFLAGS="$PERSIST_LDFLAGS" |
| 28742 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28743 | fi |
| 28744 | |
| 28745 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
| 28746 | if test "x$ac_cv_header_ft2build_h" = xyes; then : |
| 28747 | FT2BUILD_H='#include <ft2build.h>' |
| 28748 | else |
| 28749 | ft2build='' |
| 28750 | fi |
| 28751 | |
| 28752 | |
| 28753 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H |
| 28754 | " |
| 28755 | if test "x$ac_cv_header_freetype_freetype_h" = xyes; then : |
| 28756 | have_freetype_h='yes' |
| 28757 | else |
| 28758 | have_freetype_h='no' |
| 28759 | fi |
| 28760 | |
| 28761 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28762 | if test "$have_freetype_h" = 'yes'; then |
| 28763 | passed=`expr $passed + 1` |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28764 | else |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28765 | failed=`expr $failed + 1` |
| 28766 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28767 | fi |
| 28768 | |
| 28769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 |
| 28770 | $as_echo_n "checking if FreeType package is complete... " >&6; } |
| 28771 | if test $passed -gt 0; then |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28772 | if test $failed -gt 0; then |
| 28773 | FREETYPE_LIBS='' |
| 28774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28775 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28776 | have_freetype='no (failed tests)' |
| 28777 | else |
| 28778 | LIBS="$FREETYPE_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28779 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28780 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28781 | |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28782 | if test "$ac_cv_header_ft2build_h" = 'yes'; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28783 | |
| 28784 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h |
| 28785 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28786 | fi |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28788 | $as_echo "yes" >&6; } |
| 28789 | have_freetype='yes' |
| 28790 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28791 | else |
| cristy | 98ca0f5 | 2011-10-08 23:19:10 +0000 | [diff] [blame] | 28792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28793 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28794 | fi |
| 28795 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28796 | if test "$have_freetype" = 'yes'; then |
| 28797 | FREETYPE_DELEGATE_TRUE= |
| 28798 | FREETYPE_DELEGATE_FALSE='#' |
| 28799 | else |
| 28800 | FREETYPE_DELEGATE_TRUE='#' |
| 28801 | FREETYPE_DELEGATE_FALSE= |
| 28802 | fi |
| 28803 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28804 | |
| 28805 | |
| 28806 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28807 | # |
| 28808 | # Check for Ghostscript library or framework. |
| 28809 | # |
| 28810 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 28811 | # or -framework Ghostscript |
| 28812 | |
| 28813 | |
| 28814 | # Check whether --with-gslib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28815 | if test "${with_gslib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28816 | withval=$with_gslib; with_gslib=$withval |
| 28817 | else |
| 28818 | with_gslib='no' |
| 28819 | fi |
| 28820 | |
| 28821 | |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28822 | gslib_framework='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28823 | if test "$with_gslib" != 'yes'; then |
| 28824 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 28825 | fi |
| 28826 | |
| 28827 | have_gslib='no' |
| 28828 | GS_LIBS='' |
| 28829 | if test "$with_gslib" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28831 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28833 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28835 | $as_echo "" >&6; } |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28836 | framework=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28837 | failed=0 |
| 28838 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28839 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28840 | if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28841 | passed=`expr $passed + 1` |
| 28842 | else |
| 28843 | failed=`expr $failed + 1` |
| 28844 | fi |
| 28845 | |
| 28846 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28847 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28848 | if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28849 | passed=`expr $passed + 1` |
| 28850 | else |
| 28851 | failed=`expr $failed + 1` |
| 28852 | fi |
| 28853 | |
| 28854 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 |
| 28856 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28857 | if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28858 | $as_echo_n "(cached) " >&6 |
| 28859 | else |
| 28860 | ac_check_framework_save_LIBS=$LIBS |
| 28861 | LIBS="-framework Ghostscript $LIBS" |
| 28862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28863 | /* end confdefs.h. */ |
| 28864 | |
| 28865 | /* Override any GCC internal prototype to avoid an error. |
| 28866 | Use char because int might match the return type of a GCC |
| 28867 | builtin and then its argument prototype would still apply. */ |
| 28868 | #ifdef __cplusplus |
| 28869 | extern "C" |
| 28870 | #endif |
| 28871 | char gsapi_new_instance (); |
| 28872 | int |
| 28873 | main () |
| 28874 | { |
| 28875 | return gsapi_new_instance (); |
| 28876 | ; |
| 28877 | return 0; |
| 28878 | } |
| 28879 | _ACEOF |
| 28880 | if ac_fn_c_try_link "$LINENO"; then : |
| 28881 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes |
| 28882 | else |
| 28883 | ac_cv_framework_Ghostscript_gsapi_new_instance=no |
| 28884 | fi |
| 28885 | rm -f core conftest.err conftest.$ac_objext \ |
| 28886 | conftest$ac_exeext conftest.$ac_ext |
| 28887 | LIBS=$ac_check_framework_save_LIBS |
| 28888 | fi |
| 28889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 |
| 28890 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } |
| 28891 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : |
| 28892 | framework=`expr $framework + 1` |
| 28893 | else |
| 28894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28895 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28896 | if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28897 | $as_echo_n "(cached) " >&6 |
| 28898 | else |
| 28899 | ac_check_lib_save_LIBS=$LIBS |
| 28900 | LIBS="-lgs $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28901 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28902 | /* end confdefs.h. */ |
| 28903 | |
| 28904 | /* Override any GCC internal prototype to avoid an error. |
| 28905 | Use char because int might match the return type of a GCC |
| 28906 | builtin and then its argument prototype would still apply. */ |
| 28907 | #ifdef __cplusplus |
| 28908 | extern "C" |
| 28909 | #endif |
| 28910 | char gsapi_new_instance (); |
| 28911 | int |
| 28912 | main () |
| 28913 | { |
| 28914 | return gsapi_new_instance (); |
| 28915 | ; |
| 28916 | return 0; |
| 28917 | } |
| 28918 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28919 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28920 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 28921 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28922 | ac_cv_lib_gs_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28923 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28924 | rm -f core conftest.err conftest.$ac_objext \ |
| 28925 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28926 | LIBS=$ac_check_lib_save_LIBS |
| 28927 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28929 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28930 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28931 | passed=`expr $passed + 1` |
| 28932 | else |
| 28933 | failed=`expr $failed + 1` |
| 28934 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28935 | |
| 28936 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28938 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 28939 | if test $passed -gt 0; then |
| 28940 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28942 | $as_echo "no -- some components failed test" >&6; } |
| 28943 | have_gslib='no (failed tests)' |
| 28944 | else |
| 28945 | if test $framework -gt 0; then |
| 28946 | GS_LIBS='-framework Ghostscript' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28947 | gslib_framework='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28949 | $as_echo "yes, using framework." >&6; } |
| 28950 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28952 | $as_echo "yes, using library." >&6; } |
| 28953 | GS_LIBS='-lgs' |
| 28954 | fi |
| 28955 | LIBS="$GS_LIBS $LIBS" |
| 28956 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28957 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28958 | |
| 28959 | have_gslib='yes' |
| 28960 | fi |
| 28961 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28963 | $as_echo "no" >&6; } |
| 28964 | fi |
| 28965 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28966 | if test "$have_gslib" = 'yes'; then |
| 28967 | GS_DELEGATE_TRUE= |
| 28968 | GS_DELEGATE_FALSE='#' |
| 28969 | else |
| 28970 | GS_DELEGATE_TRUE='#' |
| 28971 | GS_DELEGATE_FALSE= |
| 28972 | fi |
| 28973 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28974 | |
| 28975 | |
| 28976 | # Set default font search path |
| 28977 | |
| 28978 | # Check whether --with-fontpath was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28979 | if test "${with_fontpath+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28980 | withval=$with_fontpath; with_fontpath=$withval |
| 28981 | else |
| 28982 | with_fontpath='' |
| 28983 | fi |
| 28984 | |
| 28985 | |
| 28986 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 28987 | with_fontpath='' |
| 28988 | else |
| 28989 | |
| 28990 | cat >>confdefs.h <<_ACEOF |
| 28991 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 28992 | _ACEOF |
| 28993 | |
| 28994 | fi |
| 28995 | if test "$with_fontpath=" != ''; then |
| 28996 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 28997 | fi |
| 28998 | |
| 28999 | # Set Ghostscript font directory |
| 29000 | |
| 29001 | # Check whether --with-gs-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29002 | if test "${with_gs_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29003 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 29004 | else |
| 29005 | with_gs_font_dir='default' |
| 29006 | fi |
| 29007 | |
| 29008 | |
| 29009 | if test "$with_gs_font_dir" != 'default'; then |
| 29010 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 29011 | fi |
| 29012 | |
| 29013 | |
| 29014 | # |
| 29015 | # Check for GVC delegate library. |
| 29016 | # |
| 29017 | |
| 29018 | # Check whether --with-gvc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29019 | if test "${with_gvc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29020 | withval=$with_gvc; with_gvc=$withval |
| 29021 | else |
| 29022 | with_gvc='yes' |
| 29023 | fi |
| 29024 | |
| 29025 | |
| 29026 | if test "$with_gvc" != 'yes'; then |
| 29027 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 29028 | fi |
| 29029 | |
| 29030 | GVC_PKG="" |
| 29031 | if test "x$with_gvc" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29033 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29034 | |
| 29035 | pkg_failed=no |
| 29036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 |
| 29037 | $as_echo_n "checking for GVC... " >&6; } |
| 29038 | |
| 29039 | if test -n "$GVC_CFLAGS"; then |
| 29040 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" |
| 29041 | elif test -n "$PKG_CONFIG"; then |
| 29042 | if test -n "$PKG_CONFIG" && \ |
| 29043 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| 29044 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 29045 | ac_status=$? |
| 29046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29047 | test $ac_status = 0; }; then |
| 29048 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` |
| 29049 | else |
| 29050 | pkg_failed=yes |
| 29051 | fi |
| 29052 | else |
| 29053 | pkg_failed=untried |
| 29054 | fi |
| 29055 | if test -n "$GVC_LIBS"; then |
| 29056 | pkg_cv_GVC_LIBS="$GVC_LIBS" |
| 29057 | elif test -n "$PKG_CONFIG"; then |
| 29058 | if test -n "$PKG_CONFIG" && \ |
| 29059 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| 29060 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 29061 | ac_status=$? |
| 29062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29063 | test $ac_status = 0; }; then |
| 29064 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` |
| 29065 | else |
| 29066 | pkg_failed=yes |
| 29067 | fi |
| 29068 | else |
| 29069 | pkg_failed=untried |
| 29070 | fi |
| 29071 | |
| 29072 | |
| 29073 | |
| 29074 | if test $pkg_failed = yes; then |
| 29075 | |
| 29076 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29077 | _pkg_short_errors_supported=yes |
| 29078 | else |
| 29079 | _pkg_short_errors_supported=no |
| 29080 | fi |
| 29081 | if test $_pkg_short_errors_supported = yes; then |
| 29082 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` |
| 29083 | else |
| 29084 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` |
| 29085 | fi |
| 29086 | # Put the nasty error message in config.log where it belongs |
| 29087 | echo "$GVC_PKG_ERRORS" >&5 |
| 29088 | |
| 29089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29090 | $as_echo "no" >&6; } |
| 29091 | have_gvc=no |
| 29092 | elif test $pkg_failed = untried; then |
| 29093 | have_gvc=no |
| 29094 | else |
| 29095 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS |
| 29096 | GVC_LIBS=$pkg_cv_GVC_LIBS |
| 29097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29098 | $as_echo "yes" >&6; } |
| 29099 | have_gvc=yes |
| 29100 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29102 | $as_echo "" >&6; } |
| 29103 | fi |
| 29104 | |
| 29105 | if test "$have_gvc" = 'yes'; then |
| 29106 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29107 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29108 | |
| 29109 | if test "$with_modules" = 'no'; then |
| 29110 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 29111 | fi |
| 29112 | fi |
| 29113 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29114 | if test "$have_gvc" = 'yes'; then |
| 29115 | GVC_DELEGATE_TRUE= |
| 29116 | GVC_DELEGATE_FALSE='#' |
| 29117 | else |
| 29118 | GVC_DELEGATE_TRUE='#' |
| 29119 | GVC_DELEGATE_FALSE= |
| 29120 | fi |
| 29121 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29122 | |
| 29123 | |
| 29124 | |
| 29125 | |
| 29126 | # |
| 29127 | # Check for JBIG delegate library. |
| 29128 | # |
| 29129 | |
| 29130 | |
| 29131 | # Check whether --with-jbig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29132 | if test "${with_jbig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29133 | withval=$with_jbig; with_jbig=$withval |
| 29134 | else |
| 29135 | with_jbig='yes' |
| 29136 | fi |
| 29137 | |
| 29138 | |
| 29139 | have_jbig='no' |
| 29140 | JBIG_LIBS='' |
| 29141 | if test "$with_jbig" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29143 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29145 | $as_echo_n "checking for JBIG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29147 | $as_echo "" >&6; } |
| 29148 | failed=0 |
| 29149 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29150 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29151 | if test "x$ac_cv_header_jbig_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29152 | passed=`expr $passed + 1` |
| 29153 | else |
| 29154 | failed=`expr $failed + 1` |
| 29155 | fi |
| 29156 | |
| 29157 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29159 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29160 | if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29161 | $as_echo_n "(cached) " >&6 |
| 29162 | else |
| 29163 | ac_check_lib_save_LIBS=$LIBS |
| 29164 | LIBS="-ljbig $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29166 | /* end confdefs.h. */ |
| 29167 | |
| 29168 | /* Override any GCC internal prototype to avoid an error. |
| 29169 | Use char because int might match the return type of a GCC |
| 29170 | builtin and then its argument prototype would still apply. */ |
| 29171 | #ifdef __cplusplus |
| 29172 | extern "C" |
| 29173 | #endif |
| 29174 | char jbg_dec_init (); |
| 29175 | int |
| 29176 | main () |
| 29177 | { |
| 29178 | return jbg_dec_init (); |
| 29179 | ; |
| 29180 | return 0; |
| 29181 | } |
| 29182 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29183 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29184 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 29185 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29186 | ac_cv_lib_jbig_jbg_dec_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29187 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29188 | rm -f core conftest.err conftest.$ac_objext \ |
| 29189 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29190 | LIBS=$ac_check_lib_save_LIBS |
| 29191 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29193 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29194 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29195 | passed=`expr $passed + 1` |
| 29196 | else |
| 29197 | failed=`expr $failed + 1` |
| 29198 | fi |
| 29199 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29201 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 29202 | if test $passed -gt 0; then |
| 29203 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29205 | $as_echo "no -- some components failed test" >&6; } |
| 29206 | have_jbig='no (failed tests)' |
| 29207 | else |
| 29208 | JBIG_LIBS='-ljbig' |
| 29209 | LIBS="$JBIG_LIBS $LIBS" |
| 29210 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29211 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29212 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29214 | $as_echo "yes" >&6; } |
| 29215 | have_jbig='yes' |
| 29216 | fi |
| 29217 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29219 | $as_echo "no" >&6; } |
| 29220 | fi |
| 29221 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29222 | if test "$have_jbig" = 'yes'; then |
| 29223 | JBIG_DELEGATE_TRUE= |
| 29224 | JBIG_DELEGATE_FALSE='#' |
| 29225 | else |
| 29226 | JBIG_DELEGATE_TRUE='#' |
| 29227 | JBIG_DELEGATE_FALSE= |
| 29228 | fi |
| 29229 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29230 | |
| 29231 | |
| 29232 | |
| 29233 | # |
| 29234 | # Check for JPEG delegate library. |
| 29235 | # |
| 29236 | |
| 29237 | # Check whether --with-jpeg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29238 | if test "${with_jpeg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29239 | withval=$with_jpeg; with_jpeg=$withval |
| 29240 | else |
| 29241 | with_jpeg='yes' |
| 29242 | fi |
| 29243 | |
| 29244 | |
| 29245 | if test "$with_jpeg" != 'yes'; then |
| 29246 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 29247 | fi |
| 29248 | |
| 29249 | have_jpeg='no' |
| 29250 | JPEG_LIBS='' |
| 29251 | if test "$with_jpeg" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29253 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29255 | $as_echo_n "checking for JPEG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29257 | $as_echo "" >&6; } |
| 29258 | failed=0 |
| 29259 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29260 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29261 | if test "x$ac_cv_header_jconfig_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29262 | passed=`expr $passed + 1` |
| 29263 | else |
| 29264 | failed=`expr $failed + 1` |
| 29265 | fi |
| 29266 | |
| 29267 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29268 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29269 | if test "x$ac_cv_header_jerror_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29270 | passed=`expr $passed + 1` |
| 29271 | else |
| 29272 | failed=`expr $failed + 1` |
| 29273 | fi |
| 29274 | |
| 29275 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29276 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29277 | if test "x$ac_cv_header_jmorecfg_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29278 | passed=`expr $passed + 1` |
| 29279 | else |
| 29280 | failed=`expr $failed + 1` |
| 29281 | fi |
| 29282 | |
| 29283 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29284 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29285 | if test "x$ac_cv_header_jpeglib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29286 | passed=`expr $passed + 1` |
| 29287 | else |
| 29288 | failed=`expr $failed + 1` |
| 29289 | fi |
| 29290 | |
| 29291 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29293 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29294 | if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29295 | $as_echo_n "(cached) " >&6 |
| 29296 | else |
| 29297 | ac_check_lib_save_LIBS=$LIBS |
| 29298 | LIBS="-ljpeg $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29300 | /* end confdefs.h. */ |
| 29301 | |
| 29302 | /* Override any GCC internal prototype to avoid an error. |
| 29303 | Use char because int might match the return type of a GCC |
| 29304 | builtin and then its argument prototype would still apply. */ |
| 29305 | #ifdef __cplusplus |
| 29306 | extern "C" |
| 29307 | #endif |
| 29308 | char jpeg_read_header (); |
| 29309 | int |
| 29310 | main () |
| 29311 | { |
| 29312 | return jpeg_read_header (); |
| 29313 | ; |
| 29314 | return 0; |
| 29315 | } |
| 29316 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29317 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29318 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 29319 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29320 | ac_cv_lib_jpeg_jpeg_read_header=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29321 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29322 | rm -f core conftest.err conftest.$ac_objext \ |
| 29323 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29324 | LIBS=$ac_check_lib_save_LIBS |
| 29325 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29327 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29328 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29329 | passed=`expr $passed + 1` |
| 29330 | else |
| 29331 | failed=`expr $failed + 1` |
| 29332 | fi |
| 29333 | |
| 29334 | |
| 29335 | # Test for compatible JPEG library |
| 29336 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29338 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29339 | if ${ac_cv_jpeg_version_ok+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29340 | $as_echo_n "(cached) " >&6 |
| 29341 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29343 | /* end confdefs.h. */ |
| 29344 | #include <stdio.h> |
| 29345 | #include <stdlib.h> |
| 29346 | #include <jpeglib.h> |
| 29347 | |
| 29348 | int |
| 29349 | main () |
| 29350 | { |
| 29351 | |
| 29352 | #if JPEG_LIB_VERSION < 62 |
| 29353 | #error IJG JPEG library must be version 6b or newer! |
| 29354 | #endif |
| 29355 | return 0; |
| 29356 | |
| 29357 | ; |
| 29358 | return 0; |
| 29359 | } |
| 29360 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29361 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29362 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 29363 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29364 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29365 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29366 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29367 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29369 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 29370 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29372 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 29373 | if test $passed -gt 0; then |
| 29374 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29376 | $as_echo "no -- some components failed test" >&6; } |
| 29377 | have_jpeg='no (failed tests)' |
| 29378 | else |
| 29379 | JPEG_LIBS='-ljpeg' |
| 29380 | LIBS="$JPEG_LIBS $LIBS" |
| 29381 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29382 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29383 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29385 | $as_echo "yes" >&6; } |
| 29386 | have_jpeg='yes' |
| 29387 | fi |
| 29388 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29390 | $as_echo "no" >&6; } |
| 29391 | fi |
| 29392 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29393 | if test "$have_jpeg" = 'yes'; then |
| 29394 | JPEG_DELEGATE_TRUE= |
| 29395 | JPEG_DELEGATE_FALSE='#' |
| 29396 | else |
| 29397 | JPEG_DELEGATE_TRUE='#' |
| 29398 | JPEG_DELEGATE_FALSE= |
| 29399 | fi |
| 29400 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29401 | |
| 29402 | |
| 29403 | |
| 29404 | # |
| 29405 | # Check for JPEG Version 2 delegate library. |
| 29406 | # |
| 29407 | |
| 29408 | # Check whether --with-jp2 was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29409 | if test "${with_jp2+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29410 | withval=$with_jp2; with_jp2=$withval |
| 29411 | else |
| 29412 | with_jp2='yes' |
| 29413 | fi |
| 29414 | |
| 29415 | |
| 29416 | if test "$with_jp2" != 'yes'; then |
| 29417 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 29418 | fi |
| 29419 | |
| 29420 | have_jp2='no' |
| 29421 | JP2_LIBS='' |
| 29422 | if test "$with_jp2" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29424 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29426 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29428 | $as_echo "" >&6; } |
| 29429 | failed=0 |
| 29430 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29431 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29432 | if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29433 | passed=`expr $passed + 1` |
| 29434 | else |
| 29435 | failed=`expr $failed + 1` |
| 29436 | fi |
| 29437 | |
| 29438 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29440 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29441 | if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29442 | $as_echo_n "(cached) " >&6 |
| 29443 | else |
| 29444 | ac_check_lib_save_LIBS=$LIBS |
| 29445 | LIBS="-ljasper $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29447 | /* end confdefs.h. */ |
| 29448 | |
| 29449 | /* Override any GCC internal prototype to avoid an error. |
| 29450 | Use char because int might match the return type of a GCC |
| 29451 | builtin and then its argument prototype would still apply. */ |
| 29452 | #ifdef __cplusplus |
| 29453 | extern "C" |
| 29454 | #endif |
| 29455 | char jas_stream_fopen (); |
| 29456 | int |
| 29457 | main () |
| 29458 | { |
| 29459 | return jas_stream_fopen (); |
| 29460 | ; |
| 29461 | return 0; |
| 29462 | } |
| 29463 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29464 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29465 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 29466 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29467 | ac_cv_lib_jasper_jas_stream_fopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29468 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29469 | rm -f core conftest.err conftest.$ac_objext \ |
| 29470 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29471 | LIBS=$ac_check_lib_save_LIBS |
| 29472 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29474 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29475 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29476 | passed=`expr $passed + 1` |
| 29477 | else |
| 29478 | failed=`expr $failed + 1` |
| 29479 | fi |
| 29480 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29482 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 29483 | if test $passed -gt 0; then |
| 29484 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29486 | $as_echo "no -- some components failed test" >&6; } |
| 29487 | have_jp2='no (failed tests)' |
| 29488 | else |
| 29489 | JP2_LIBS='-ljasper' |
| 29490 | LIBS="$JP2_LIBS $LIBS" |
| 29491 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29492 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29493 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29495 | $as_echo "yes" >&6; } |
| 29496 | have_jp2='yes' |
| 29497 | fi |
| 29498 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29500 | $as_echo "no" >&6; } |
| 29501 | fi |
| 29502 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29503 | if test "$have_jp2" = 'yes'; then |
| 29504 | JP2_DELEGATE_TRUE= |
| 29505 | JP2_DELEGATE_FALSE='#' |
| 29506 | else |
| 29507 | JP2_DELEGATE_TRUE='#' |
| 29508 | JP2_DELEGATE_FALSE= |
| 29509 | fi |
| 29510 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29511 | |
| 29512 | |
| 29513 | |
| 29514 | # |
| 29515 | # Check for LCMS delegate library. |
| 29516 | # |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29517 | # Disable LCMS. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29518 | |
| 29519 | # Check whether --with-lcms was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29520 | if test "${with_lcms+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29521 | withval=$with_lcms; with_lcms=$withval |
| 29522 | else |
| 29523 | with_lcms='yes' |
| 29524 | fi |
| 29525 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29526 | if test "$with_lcms" != 'yes' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29527 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 29528 | fi |
| 29529 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29530 | # Disable LCMS2. |
| 29531 | |
| 29532 | # Check whether --with-lcms2 was given. |
| 29533 | if test "${with_lcms2+set}" = set; then : |
| 29534 | withval=$with_lcms2; with_lcms2=$withval |
| 29535 | else |
| 29536 | with_lcms2='yes' |
| 29537 | fi |
| 29538 | |
| 29539 | if test "$with_lcms2" != 'yes' ; then |
| 29540 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " |
| 29541 | fi |
| 29542 | |
| 29543 | have_lcms2='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29544 | LCMS_LIBS='' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29545 | if test "$with_lcms2" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29547 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 |
| 29549 | $as_echo_n "checking for LCMS v2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29551 | $as_echo "" >&6; } |
| 29552 | failed=0 |
| 29553 | passed=0 |
| 29554 | have_lcms_header='no' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29555 | |
| 29556 | # Check for <lcms2.h> |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29557 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29558 | if test "x$ac_cv_header_lcms2_h" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29559 | have_lcms_header='yes' |
| 29560 | fi |
| 29561 | |
| 29562 | |
| 29563 | if test "$have_lcms_header" = 'yes'; then |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29564 | |
| 29565 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h |
| 29566 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29567 | passed=`expr $passed + 1` |
| 29568 | fi |
| 29569 | |
| 29570 | # Check for <lcms2/lcms2.h) |
| 29571 | if test "$have_lcms_header" != 'yes'; then |
| 29572 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29573 | if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29574 | have_lcms_header='yes' |
| 29575 | fi |
| 29576 | |
| 29577 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29578 | if test "$have_lcms_header" = 'yes'; then |
| 29579 | passed=`expr $passed + 1` |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29580 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29581 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29582 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29583 | fi |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29584 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29585 | |
| 29586 | # Failed to find lcms header? |
| 29587 | if test "$have_lcms_header" != 'yes'; then |
| 29588 | failed=`expr $failed + 1` |
| 29589 | fi |
| 29590 | |
| 29591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 |
| 29592 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29593 | if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29594 | $as_echo_n "(cached) " >&6 |
| 29595 | else |
| 29596 | ac_check_lib_save_LIBS=$LIBS |
| 29597 | LIBS="-llcms2 $LIBS" |
| 29598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29599 | /* end confdefs.h. */ |
| 29600 | |
| 29601 | /* Override any GCC internal prototype to avoid an error. |
| 29602 | Use char because int might match the return type of a GCC |
| 29603 | builtin and then its argument prototype would still apply. */ |
| 29604 | #ifdef __cplusplus |
| 29605 | extern "C" |
| 29606 | #endif |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29607 | char cmsSetLogErrorHandler (); |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29608 | int |
| 29609 | main () |
| 29610 | { |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29611 | return cmsSetLogErrorHandler (); |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29612 | ; |
| 29613 | return 0; |
| 29614 | } |
| 29615 | _ACEOF |
| 29616 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29617 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29618 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29619 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=no |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29620 | fi |
| 29621 | rm -f core conftest.err conftest.$ac_objext \ |
| 29622 | conftest$ac_exeext conftest.$ac_ext |
| 29623 | LIBS=$ac_check_lib_save_LIBS |
| 29624 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 |
| 29626 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29627 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29628 | passed=`expr $passed + 1` |
| 29629 | else |
| 29630 | failed=`expr $failed + 1` |
| 29631 | fi |
| 29632 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 |
| 29634 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29635 | if test $passed -gt 0; then |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29636 | if test $failed -gt 0; then |
| 29637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29638 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29639 | have_lcms2='no (failed tests)' |
| 29640 | else |
| 29641 | LCMS_LIBS='-llcms2' |
| 29642 | LIBS="$LCMS_LIBS $LIBS" |
| 29643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29644 | $as_echo "yes" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29645 | have_lcms2='yes' |
| 29646 | fi |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29647 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29649 | $as_echo "no" >&6; } |
| 29650 | fi |
| 29651 | fi |
| 29652 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29653 | # |
| 29654 | # Check for LCMS v1 (1.11 or later) |
| 29655 | # |
| 29656 | if test $have_lcms2 = 'yes'; then |
| 29657 | with_lcms='no' |
| 29658 | fi |
| 29659 | |
| 29660 | have_lcms='no' |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29661 | if test "$with_lcms" != 'no'; then |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29663 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 |
| 29665 | $as_echo_n "checking for LCMS v1.1X... " >&6; } |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29667 | $as_echo "" >&6; } |
| 29668 | failed=0 |
| 29669 | passed=0 |
| 29670 | have_lcms_header='no' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29671 | |
| 29672 | # Check for <lcms.h> |
| 29673 | if test "$have_lcms_header" != 'yes'; then |
| 29674 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29675 | if test "x$ac_cv_header_lcms_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29676 | have_lcms_header='yes' |
| 29677 | fi |
| 29678 | |
| 29679 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29680 | if test "$have_lcms_header" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29681 | passed=`expr $passed + 1` |
| 29682 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29683 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29684 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29685 | fi |
| 29686 | fi |
| 29687 | |
| 29688 | # Check for <lcms/lcms.h> |
| 29689 | if test "$have_lcms_header" != 'yes'; then |
| 29690 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29691 | if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29692 | have_lcms_header='yes' |
| 29693 | fi |
| 29694 | |
| 29695 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29696 | if test "$have_lcms_header" = 'yes'; then |
| 29697 | passed=`expr $passed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29698 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29699 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29700 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29701 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29702 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29703 | |
| 29704 | # Failed to find lcms header? |
| 29705 | if test "$have_lcms_header" != 'yes'; then |
| 29706 | failed=`expr $failed + 1` |
| 29707 | fi |
| 29708 | |
| 29709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 |
| 29710 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29711 | if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29712 | $as_echo_n "(cached) " >&6 |
| 29713 | else |
| 29714 | ac_check_lib_save_LIBS=$LIBS |
| 29715 | LIBS="-llcms $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29717 | /* end confdefs.h. */ |
| 29718 | |
| 29719 | /* Override any GCC internal prototype to avoid an error. |
| 29720 | Use char because int might match the return type of a GCC |
| 29721 | builtin and then its argument prototype would still apply. */ |
| 29722 | #ifdef __cplusplus |
| 29723 | extern "C" |
| 29724 | #endif |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29725 | char cmsSetErrorHandler (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29726 | int |
| 29727 | main () |
| 29728 | { |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29729 | return cmsSetErrorHandler (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29730 | ; |
| 29731 | return 0; |
| 29732 | } |
| 29733 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29734 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29735 | ac_cv_lib_lcms_cmsSetErrorHandler=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29736 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29737 | ac_cv_lib_lcms_cmsSetErrorHandler=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29738 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29739 | rm -f core conftest.err conftest.$ac_objext \ |
| 29740 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29741 | LIBS=$ac_check_lib_save_LIBS |
| 29742 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 |
| 29744 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29745 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29746 | passed=`expr $passed + 1` |
| 29747 | else |
| 29748 | failed=`expr $failed + 1` |
| 29749 | fi |
| 29750 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29752 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 29753 | if test $passed -gt 0; then |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29754 | if test $failed -gt 0; then |
| 29755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29756 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29757 | have_lcms='no (failed tests)' |
| 29758 | else |
| 29759 | LCMS_LIBS='-llcms' |
| 29760 | LIBS="$LCMS_LIBS $LIBS" |
| 29761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29762 | $as_echo "yes" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29763 | have_lcms='yes' |
| 29764 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29765 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29767 | $as_echo "no" >&6; } |
| 29768 | fi |
| 29769 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29770 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29771 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 29772 | LCMS_DELEGATE_TRUE= |
| 29773 | LCMS_DELEGATE_FALSE='#' |
| 29774 | else |
| 29775 | LCMS_DELEGATE_TRUE='#' |
| 29776 | LCMS_DELEGATE_FALSE= |
| 29777 | fi |
| 29778 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 29779 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 29780 | |
| 29781 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h |
| 29782 | |
| 29783 | fi |
| 29784 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29785 | |
| 29786 | |
| 29787 | |
| 29788 | # |
| 29789 | # Check for the LQR (Liquid Rescale) delegate library. |
| 29790 | # |
| 29791 | |
| 29792 | # Check whether --with-lqr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29793 | if test "${with_lqr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29794 | withval=$with_lqr; with_lqr=$withval |
| 29795 | else |
| 29796 | with_lqr='yes' |
| 29797 | fi |
| 29798 | |
| 29799 | |
| 29800 | if test "$with_lqr" != 'yes'; then |
| 29801 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 29802 | fi |
| 29803 | |
| 29804 | have_lqr='no' |
| 29805 | LQR_CFLAGS="" |
| 29806 | LQR_LIBS="" |
| 29807 | LQR_PKG="" |
| 29808 | if test "x$with_lqr" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29810 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29811 | |
| 29812 | pkg_failed=no |
| 29813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 |
| 29814 | $as_echo_n "checking for LQR... " >&6; } |
| 29815 | |
| 29816 | if test -n "$LQR_CFLAGS"; then |
| 29817 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" |
| 29818 | elif test -n "$PKG_CONFIG"; then |
| 29819 | if test -n "$PKG_CONFIG" && \ |
| 29820 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| 29821 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 29822 | ac_status=$? |
| 29823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29824 | test $ac_status = 0; }; then |
| 29825 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` |
| 29826 | else |
| 29827 | pkg_failed=yes |
| 29828 | fi |
| 29829 | else |
| 29830 | pkg_failed=untried |
| 29831 | fi |
| 29832 | if test -n "$LQR_LIBS"; then |
| 29833 | pkg_cv_LQR_LIBS="$LQR_LIBS" |
| 29834 | elif test -n "$PKG_CONFIG"; then |
| 29835 | if test -n "$PKG_CONFIG" && \ |
| 29836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| 29837 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 29838 | ac_status=$? |
| 29839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29840 | test $ac_status = 0; }; then |
| 29841 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` |
| 29842 | else |
| 29843 | pkg_failed=yes |
| 29844 | fi |
| 29845 | else |
| 29846 | pkg_failed=untried |
| 29847 | fi |
| 29848 | |
| 29849 | |
| 29850 | |
| 29851 | if test $pkg_failed = yes; then |
| 29852 | |
| 29853 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29854 | _pkg_short_errors_supported=yes |
| 29855 | else |
| 29856 | _pkg_short_errors_supported=no |
| 29857 | fi |
| 29858 | if test $_pkg_short_errors_supported = yes; then |
| 29859 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 29860 | else |
| 29861 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 29862 | fi |
| 29863 | # Put the nasty error message in config.log where it belongs |
| 29864 | echo "$LQR_PKG_ERRORS" >&5 |
| 29865 | |
| 29866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29867 | $as_echo "no" >&6; } |
| 29868 | have_lqr=no |
| 29869 | elif test $pkg_failed = untried; then |
| 29870 | have_lqr=no |
| 29871 | else |
| 29872 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS |
| 29873 | LQR_LIBS=$pkg_cv_LQR_LIBS |
| 29874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29875 | $as_echo "yes" >&6; } |
| 29876 | have_lqr=yes |
| 29877 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29879 | $as_echo "" >&6; } |
| 29880 | fi |
| 29881 | |
| 29882 | if test "$have_lqr" = 'yes'; then |
| 29883 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29884 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29885 | |
| 29886 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 29887 | fi |
| 29888 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29889 | if test "$have_lqr" = 'yes'; then |
| 29890 | LQR_DELEGATE_TRUE= |
| 29891 | LQR_DELEGATE_FALSE='#' |
| 29892 | else |
| 29893 | LQR_DELEGATE_TRUE='#' |
| 29894 | LQR_DELEGATE_FALSE= |
| 29895 | fi |
| 29896 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29897 | |
| 29898 | |
| 29899 | |
| 29900 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29901 | # Disable LZMA (lzma library) |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29902 | |
| 29903 | # Check whether --with-lzma was given. |
| 29904 | if test "${with_lzma+set}" = set; then : |
| 29905 | withval=$with_lzma; with_lzma=$withval |
| 29906 | else |
| 29907 | with_lzma='yes' |
| 29908 | fi |
| 29909 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29910 | if test "$with_lzma" != 'yes' ; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29911 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " |
| 29912 | fi |
| 29913 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29914 | # |
| 29915 | # Check for LZMA |
| 29916 | # |
| 29917 | have_lzma='no' |
| 29918 | LZMA_LIBS='' |
| 29919 | if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29921 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29923 | $as_echo_n "checking for LZMA... " >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29925 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29926 | failed=0 |
| 29927 | passed=0 |
| 29928 | ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" |
| 29929 | if test "x$ac_cv_header_lzma_h" = xyes; then : |
| 29930 | passed=`expr $passed + 1` |
| 29931 | else |
| 29932 | failed=`expr $failed + 1` |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29933 | fi |
| 29934 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29935 | |
| 29936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 |
| 29937 | $as_echo_n "checking for lzma_code in -llzma... " >&6; } |
| 29938 | if ${ac_cv_lib_lzma_lzma_code+:} false; then : |
| 29939 | $as_echo_n "(cached) " >&6 |
| 29940 | else |
| 29941 | ac_check_lib_save_LIBS=$LIBS |
| 29942 | LIBS="-llzma $LIBS" |
| 29943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29944 | /* end confdefs.h. */ |
| 29945 | |
| 29946 | /* Override any GCC internal prototype to avoid an error. |
| 29947 | Use char because int might match the return type of a GCC |
| 29948 | builtin and then its argument prototype would still apply. */ |
| 29949 | #ifdef __cplusplus |
| 29950 | extern "C" |
| 29951 | #endif |
| 29952 | char lzma_code (); |
| 29953 | int |
| 29954 | main () |
| 29955 | { |
| 29956 | return lzma_code (); |
| 29957 | ; |
| 29958 | return 0; |
| 29959 | } |
| 29960 | _ACEOF |
| 29961 | if ac_fn_c_try_link "$LINENO"; then : |
| 29962 | ac_cv_lib_lzma_lzma_code=yes |
| 29963 | else |
| 29964 | ac_cv_lib_lzma_lzma_code=no |
| 29965 | fi |
| 29966 | rm -f core conftest.err conftest.$ac_objext \ |
| 29967 | conftest$ac_exeext conftest.$ac_ext |
| 29968 | LIBS=$ac_check_lib_save_LIBS |
| 29969 | fi |
| 29970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 |
| 29971 | $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } |
| 29972 | if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : |
| 29973 | passed=`expr $passed + 1` |
| 29974 | else |
| 29975 | failed=`expr $failed + 1` |
| 29976 | fi |
| 29977 | |
| 29978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5 |
| 29979 | $as_echo_n "checking if LZMA package is complete... " >&6; } |
| 29980 | if test $passed -gt 0; then |
| 29981 | if test $failed -gt 0; then |
| 29982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 29983 | $as_echo "no -- some components failed test" >&6; } |
| 29984 | have_lzma='no (failed tests)' |
| 29985 | else |
| 29986 | LZMA_LIBS='-llzma' |
| 29987 | LIBS="$LZMA_LIBS $LIBS" |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29988 | |
| 29989 | $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h |
| 29990 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29992 | $as_echo "yes" >&6; } |
| 29993 | have_lzma='yes' |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29994 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29995 | else |
| 29996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29997 | $as_echo "no" >&6; } |
| 29998 | fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29999 | fi |
| 30000 | if test "$have_lzma" = 'yes'; then |
| 30001 | LZMA_DELEGATE_TRUE= |
| 30002 | LZMA_DELEGATE_FALSE='#' |
| 30003 | else |
| 30004 | LZMA_DELEGATE_TRUE='#' |
| 30005 | LZMA_DELEGATE_FALSE= |
| 30006 | fi |
| 30007 | |
| 30008 | |
| 30009 | |
| 30010 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30011 | # |
| 30012 | # Check for the OpenEXR delegate library. |
| 30013 | # |
| 30014 | |
| 30015 | # Check whether --with-openexr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30016 | if test "${with_openexr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30017 | withval=$with_openexr; with_openexr=$withval |
| 30018 | else |
| 30019 | with_openexr='yes' |
| 30020 | fi |
| 30021 | |
| 30022 | |
| 30023 | if test "$with_openexr" != 'yes'; then |
| 30024 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 30025 | fi |
| 30026 | |
| 30027 | have_openexr='no' |
| 30028 | OPENEXR_CFLAGS="" |
| 30029 | OPENEXR_LIBS="" |
| 30030 | OPENEXR_PKG="" |
| 30031 | if test "x$with_openexr" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30033 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30034 | |
| 30035 | pkg_failed=no |
| 30036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 |
| 30037 | $as_echo_n "checking for OPENEXR... " >&6; } |
| 30038 | |
| 30039 | if test -n "$OPENEXR_CFLAGS"; then |
| 30040 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
| 30041 | elif test -n "$PKG_CONFIG"; then |
| 30042 | if test -n "$PKG_CONFIG" && \ |
| 30043 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| 30044 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 30045 | ac_status=$? |
| 30046 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30047 | test $ac_status = 0; }; then |
| 30048 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` |
| 30049 | else |
| 30050 | pkg_failed=yes |
| 30051 | fi |
| 30052 | else |
| 30053 | pkg_failed=untried |
| 30054 | fi |
| 30055 | if test -n "$OPENEXR_LIBS"; then |
| 30056 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
| 30057 | elif test -n "$PKG_CONFIG"; then |
| 30058 | if test -n "$PKG_CONFIG" && \ |
| 30059 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| 30060 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 30061 | ac_status=$? |
| 30062 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30063 | test $ac_status = 0; }; then |
| 30064 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` |
| 30065 | else |
| 30066 | pkg_failed=yes |
| 30067 | fi |
| 30068 | else |
| 30069 | pkg_failed=untried |
| 30070 | fi |
| 30071 | |
| 30072 | |
| 30073 | |
| 30074 | if test $pkg_failed = yes; then |
| 30075 | |
| 30076 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30077 | _pkg_short_errors_supported=yes |
| 30078 | else |
| 30079 | _pkg_short_errors_supported=no |
| 30080 | fi |
| 30081 | if test $_pkg_short_errors_supported = yes; then |
| 30082 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 30083 | else |
| 30084 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 30085 | fi |
| 30086 | # Put the nasty error message in config.log where it belongs |
| 30087 | echo "$OPENEXR_PKG_ERRORS" >&5 |
| 30088 | |
| 30089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30090 | $as_echo "no" >&6; } |
| 30091 | have_openexr=no |
| 30092 | elif test $pkg_failed = untried; then |
| 30093 | have_openexr=no |
| 30094 | else |
| 30095 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
| 30096 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
| 30097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30098 | $as_echo "yes" >&6; } |
| 30099 | have_openexr=yes |
| 30100 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30102 | $as_echo "" >&6; } |
| 30103 | fi |
| 30104 | |
| 30105 | if test "$have_openexr" = 'yes'; then |
| 30106 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30107 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30108 | |
| 30109 | if test "$with_modules" = 'no'; then |
| 30110 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 30111 | fi |
| 30112 | fi |
| 30113 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30114 | if test "$have_openexr" = 'yes'; then |
| 30115 | OPENEXR_DELEGATE_TRUE= |
| 30116 | OPENEXR_DELEGATE_FALSE='#' |
| 30117 | else |
| 30118 | OPENEXR_DELEGATE_TRUE='#' |
| 30119 | OPENEXR_DELEGATE_FALSE= |
| 30120 | fi |
| 30121 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30122 | |
| 30123 | |
| 30124 | |
| 30125 | |
| 30126 | # |
| 30127 | # Check for PNG delegate library. |
| 30128 | # |
| 30129 | |
| 30130 | # Check whether --with-png was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30131 | if test "${with_png+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30132 | withval=$with_png; with_png=$withval |
| 30133 | else |
| 30134 | with_png='yes' |
| 30135 | fi |
| 30136 | |
| 30137 | |
| 30138 | if test "$with_png" != 'yes'; then |
| 30139 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 30140 | fi |
| 30141 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30142 | have_png='no' |
| 30143 | PNG_LIBS='' |
| 30144 | |
| 30145 | if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then |
| 30146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30147 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5 |
| 30149 | $as_echo_n "checking for PNG support ... " >&6; } |
| 30150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | f805afb | 2011-10-03 17:17:37 +0000 | [diff] [blame] | 30151 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30152 | failed=0 |
| 30153 | passed=0 |
| 30154 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 30155 | if test "x$ac_cv_header_png_h" = xyes; then : |
| 30156 | passed=`expr $passed + 1` |
| 30157 | else |
| 30158 | failed=`expr $failed + 1` |
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30159 | fi |
| 30160 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30161 | |
| 30162 | |
| 30163 | if test $passed -gt 0; then |
| 30164 | for var in 5 4 2 '' ; do |
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30165 | if test "$have_png" = 'no' ; then |
| 30166 | if test "x${var}" = 'x' ; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30167 | pnglib='png' |
| 30168 | else |
| 30169 | pnglib="png1${var}" |
| 30170 | fi |
| 30171 | |
| 30172 | # Test for compatible LIBPNG library |
| 30173 | failed=0 |
| 30174 | passed=0 |
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30175 | if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30176 | if test "${pnglib}" != 'png' ; then |
| 30177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5 |
| 30178 | $as_echo_n "checking for LIBPNG1${var} support ... " >&6; } |
| 30179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30180 | /* end confdefs.h. */ |
| 30181 | #include <stdio.h> |
| 30182 | #include <stdlib.h> |
| 30183 | #include <png.h> |
| 30184 | |
| 30185 | int |
| 30186 | main () |
| 30187 | { |
| 30188 | |
| 30189 | #if PNG_LIBPNG_VER_MINOR != ${var} |
| 30190 | #error LIBPNG library must be version 1${var}! |
| 30191 | Kaboom, Kaboom |
| 30192 | #endif |
| 30193 | return 0; |
| 30194 | |
| 30195 | ; |
| 30196 | return 0; |
| 30197 | } |
| 30198 | _ACEOF |
| 30199 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30200 | ac_cv_libpng_ok='yes' |
| 30201 | else |
| 30202 | ac_cv_libpng_ok='no' |
| 30203 | fi |
| 30204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30205 | if test "$ac_cv_libpng_ok" = 'yes' ; then |
| 30206 | passed=`expr $passed + 1` |
| 30207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30208 | $as_echo "yes" >&6; } |
| 30209 | else |
| 30210 | failed=`expr $failed + 1` |
| 30211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30212 | $as_echo "no" >&6; } |
| 30213 | fi |
| 30214 | else |
| 30215 | passed=`expr $passed + 1` |
| 30216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30217 | $as_echo "yes" >&6; } |
| 30218 | fi |
| 30219 | fi |
| 30220 | |
| 30221 | if test $passed -gt 0 -a $failed -le 0; then |
| 30222 | if test "1${var}" = '15' ; then |
| 30223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5 |
| 30224 | $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; } |
| 30225 | if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then : |
| 30226 | $as_echo_n "(cached) " >&6 |
| 30227 | else |
| 30228 | ac_check_lib_save_LIBS=$LIBS |
| 30229 | LIBS="-lpng15 $LIBS" |
| 30230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30231 | /* end confdefs.h. */ |
| 30232 | |
| 30233 | /* Override any GCC internal prototype to avoid an error. |
| 30234 | Use char because int might match the return type of a GCC |
| 30235 | builtin and then its argument prototype would still apply. */ |
| 30236 | #ifdef __cplusplus |
| 30237 | extern "C" |
| 30238 | #endif |
| 30239 | char png_get_io_ptr (); |
| 30240 | int |
| 30241 | main () |
| 30242 | { |
| 30243 | return png_get_io_ptr (); |
| 30244 | ; |
| 30245 | return 0; |
| 30246 | } |
| 30247 | _ACEOF |
| 30248 | if ac_fn_c_try_link "$LINENO"; then : |
| 30249 | ac_cv_lib_png15_png_get_io_ptr=yes |
| 30250 | else |
| 30251 | ac_cv_lib_png15_png_get_io_ptr=no |
| 30252 | fi |
| 30253 | rm -f core conftest.err conftest.$ac_objext \ |
| 30254 | conftest$ac_exeext conftest.$ac_ext |
| 30255 | LIBS=$ac_check_lib_save_LIBS |
| 30256 | fi |
| 30257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5 |
| 30258 | $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; } |
| 30259 | if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then : |
| 30260 | passed=`expr $passed + 1` |
| 30261 | else |
| 30262 | failed=`expr $failed + 1` |
| 30263 | fi |
| 30264 | |
| 30265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5 |
| 30266 | $as_echo_n "checking for png_longjmp in -lpng15... " >&6; } |
| 30267 | if ${ac_cv_lib_png15_png_longjmp+:} false; then : |
| 30268 | $as_echo_n "(cached) " >&6 |
| 30269 | else |
| 30270 | ac_check_lib_save_LIBS=$LIBS |
| 30271 | LIBS="-lpng15 $LIBS" |
| 30272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30273 | /* end confdefs.h. */ |
| 30274 | |
| 30275 | /* Override any GCC internal prototype to avoid an error. |
| 30276 | Use char because int might match the return type of a GCC |
| 30277 | builtin and then its argument prototype would still apply. */ |
| 30278 | #ifdef __cplusplus |
| 30279 | extern "C" |
| 30280 | #endif |
| 30281 | char png_longjmp (); |
| 30282 | int |
| 30283 | main () |
| 30284 | { |
| 30285 | return png_longjmp (); |
| 30286 | ; |
| 30287 | return 0; |
| 30288 | } |
| 30289 | _ACEOF |
| 30290 | if ac_fn_c_try_link "$LINENO"; then : |
| 30291 | ac_cv_lib_png15_png_longjmp=yes |
| 30292 | else |
| 30293 | ac_cv_lib_png15_png_longjmp=no |
| 30294 | fi |
| 30295 | rm -f core conftest.err conftest.$ac_objext \ |
| 30296 | conftest$ac_exeext conftest.$ac_ext |
| 30297 | LIBS=$ac_check_lib_save_LIBS |
| 30298 | fi |
| 30299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5 |
| 30300 | $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; } |
| 30301 | if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then : |
| 30302 | passed=`expr $passed + 1` |
| 30303 | else |
| 30304 | failed=`expr $failed + 1` |
| 30305 | fi |
| 30306 | |
| 30307 | fi |
| 30308 | if test "1${var}" = '14' ; then |
| 30309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5 |
| 30310 | $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; } |
| 30311 | if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then : |
| 30312 | $as_echo_n "(cached) " >&6 |
| 30313 | else |
| 30314 | ac_check_lib_save_LIBS=$LIBS |
| 30315 | LIBS="-lpng14 $LIBS" |
| 30316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30317 | /* end confdefs.h. */ |
| 30318 | |
| 30319 | /* Override any GCC internal prototype to avoid an error. |
| 30320 | Use char because int might match the return type of a GCC |
| 30321 | builtin and then its argument prototype would still apply. */ |
| 30322 | #ifdef __cplusplus |
| 30323 | extern "C" |
| 30324 | #endif |
| 30325 | char png_get_io_ptr (); |
| 30326 | int |
| 30327 | main () |
| 30328 | { |
| 30329 | return png_get_io_ptr (); |
| 30330 | ; |
| 30331 | return 0; |
| 30332 | } |
| 30333 | _ACEOF |
| 30334 | if ac_fn_c_try_link "$LINENO"; then : |
| 30335 | ac_cv_lib_png14_png_get_io_ptr=yes |
| 30336 | else |
| 30337 | ac_cv_lib_png14_png_get_io_ptr=no |
| 30338 | fi |
| 30339 | rm -f core conftest.err conftest.$ac_objext \ |
| 30340 | conftest$ac_exeext conftest.$ac_ext |
| 30341 | LIBS=$ac_check_lib_save_LIBS |
| 30342 | fi |
| 30343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5 |
| 30344 | $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; } |
| 30345 | if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then : |
| 30346 | passed=`expr $passed + 1` |
| 30347 | else |
| 30348 | failed=`expr $failed + 1` |
| 30349 | fi |
| 30350 | |
| 30351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5 |
| 30352 | $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; } |
| 30353 | if ${ac_cv_lib_png14_png_get_io_state+:} false; then : |
| 30354 | $as_echo_n "(cached) " >&6 |
| 30355 | else |
| 30356 | ac_check_lib_save_LIBS=$LIBS |
| 30357 | LIBS="-lpng14 $LIBS" |
| 30358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30359 | /* end confdefs.h. */ |
| 30360 | |
| 30361 | /* Override any GCC internal prototype to avoid an error. |
| 30362 | Use char because int might match the return type of a GCC |
| 30363 | builtin and then its argument prototype would still apply. */ |
| 30364 | #ifdef __cplusplus |
| 30365 | extern "C" |
| 30366 | #endif |
| 30367 | char png_get_io_state (); |
| 30368 | int |
| 30369 | main () |
| 30370 | { |
| 30371 | return png_get_io_state (); |
| 30372 | ; |
| 30373 | return 0; |
| 30374 | } |
| 30375 | _ACEOF |
| 30376 | if ac_fn_c_try_link "$LINENO"; then : |
| 30377 | ac_cv_lib_png14_png_get_io_state=yes |
| 30378 | else |
| 30379 | ac_cv_lib_png14_png_get_io_state=no |
| 30380 | fi |
| 30381 | rm -f core conftest.err conftest.$ac_objext \ |
| 30382 | conftest$ac_exeext conftest.$ac_ext |
| 30383 | LIBS=$ac_check_lib_save_LIBS |
| 30384 | fi |
| 30385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5 |
| 30386 | $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; } |
| 30387 | if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then : |
| 30388 | passed=`expr $passed + 1` |
| 30389 | else |
| 30390 | failed=`expr $failed + 1` |
| 30391 | fi |
| 30392 | |
| 30393 | fi |
| 30394 | if test "1${var}" = '12' ; then |
| 30395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5 |
| 30396 | $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; } |
| 30397 | if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then : |
| 30398 | $as_echo_n "(cached) " >&6 |
| 30399 | else |
| 30400 | ac_check_lib_save_LIBS=$LIBS |
| 30401 | LIBS="-lpng12 $LIBS" |
| 30402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30403 | /* end confdefs.h. */ |
| 30404 | |
| 30405 | /* Override any GCC internal prototype to avoid an error. |
| 30406 | Use char because int might match the return type of a GCC |
| 30407 | builtin and then its argument prototype would still apply. */ |
| 30408 | #ifdef __cplusplus |
| 30409 | extern "C" |
| 30410 | #endif |
| 30411 | char png_get_io_ptr (); |
| 30412 | int |
| 30413 | main () |
| 30414 | { |
| 30415 | return png_get_io_ptr (); |
| 30416 | ; |
| 30417 | return 0; |
| 30418 | } |
| 30419 | _ACEOF |
| 30420 | if ac_fn_c_try_link "$LINENO"; then : |
| 30421 | ac_cv_lib_png12_png_get_io_ptr=yes |
| 30422 | else |
| 30423 | ac_cv_lib_png12_png_get_io_ptr=no |
| 30424 | fi |
| 30425 | rm -f core conftest.err conftest.$ac_objext \ |
| 30426 | conftest$ac_exeext conftest.$ac_ext |
| 30427 | LIBS=$ac_check_lib_save_LIBS |
| 30428 | fi |
| 30429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5 |
| 30430 | $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; } |
| 30431 | if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then : |
| 30432 | passed=`expr $passed + 1` |
| 30433 | else |
| 30434 | failed=`expr $failed + 1` |
| 30435 | fi |
| 30436 | |
| 30437 | fi |
| 30438 | if test "1${var}" = '1' ; then |
| 30439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 |
| 30440 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
| 30441 | if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : |
| 30442 | $as_echo_n "(cached) " >&6 |
| 30443 | else |
| 30444 | ac_check_lib_save_LIBS=$LIBS |
| 30445 | LIBS="-lpng $LIBS" |
| 30446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30447 | /* end confdefs.h. */ |
| 30448 | |
| 30449 | /* Override any GCC internal prototype to avoid an error. |
| 30450 | Use char because int might match the return type of a GCC |
| 30451 | builtin and then its argument prototype would still apply. */ |
| 30452 | #ifdef __cplusplus |
| 30453 | extern "C" |
| 30454 | #endif |
| 30455 | char png_get_io_ptr (); |
| 30456 | int |
| 30457 | main () |
| 30458 | { |
| 30459 | return png_get_io_ptr (); |
| 30460 | ; |
| 30461 | return 0; |
| 30462 | } |
| 30463 | _ACEOF |
| 30464 | if ac_fn_c_try_link "$LINENO"; then : |
| 30465 | ac_cv_lib_png_png_get_io_ptr=yes |
| 30466 | else |
| 30467 | ac_cv_lib_png_png_get_io_ptr=no |
| 30468 | fi |
| 30469 | rm -f core conftest.err conftest.$ac_objext \ |
| 30470 | conftest$ac_exeext conftest.$ac_ext |
| 30471 | LIBS=$ac_check_lib_save_LIBS |
| 30472 | fi |
| 30473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 |
| 30474 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
| 30475 | if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : |
| 30476 | passed=`expr $passed + 1` |
| 30477 | else |
| 30478 | failed=`expr $failed + 1` |
| 30479 | fi |
| 30480 | |
| 30481 | fi |
| 30482 | if test $passed -gt 0 -a $failed -le 0 ; then |
| 30483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5 |
| 30484 | $as_echo_n "checking if ${pnglib} package is complete... " >&6; } |
| 30485 | if test $passed -gt 0 ; then |
| 30486 | if test $failed -gt 0 ; then |
| 30487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 30488 | $as_echo "no -- some components failed test" >&6; } |
| 30489 | have_png='no (failed tests)' |
| 30490 | else |
| 30491 | PNG_LIBS="-l${pnglib}" |
| 30492 | LIBS="$PNG_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30493 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30494 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30495 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30497 | $as_echo "yes" >&6; } |
| 30498 | have_png='yes' |
| 30499 | fi |
| 30500 | fi |
| 30501 | fi |
| 30502 | fi |
| 30503 | fi |
| 30504 | done |
| 30505 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30506 | fi |
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30507 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30508 | if test "$have_png" = 'yes'; then |
| 30509 | PNG_DELEGATE_TRUE= |
| 30510 | PNG_DELEGATE_FALSE='#' |
| 30511 | else |
| 30512 | PNG_DELEGATE_TRUE='#' |
| 30513 | PNG_DELEGATE_FALSE= |
| 30514 | fi |
| 30515 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30516 | |
| cristy | 50d3f5c | 2011-09-10 20:09:06 +0000 | [diff] [blame] | 30517 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30518 | |
| 30519 | |
| 30520 | # |
| 30521 | # Check for RSVG delegate library. |
| 30522 | # |
| 30523 | |
| 30524 | # Check whether --with-rsvg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30525 | if test "${with_rsvg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30526 | withval=$with_rsvg; with_rsvg=$withval |
| 30527 | else |
| 30528 | with_rsvg=$have_x |
| 30529 | fi |
| 30530 | |
| 30531 | |
| 30532 | if test "$with_rsvg" != 'yes'; then |
| 30533 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 30534 | fi |
| 30535 | |
| 30536 | have_rsvg='no' |
| 30537 | have_cairo='no' |
| 30538 | RSVG_CFLAGS="" |
| 30539 | RSVG_LIBS="" |
| 30540 | RSVG_PKG="" |
| 30541 | if test "x$with_rsvg" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30543 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30544 | |
| 30545 | pkg_failed=no |
| 30546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 |
| 30547 | $as_echo_n "checking for RSVG... " >&6; } |
| 30548 | |
| 30549 | if test -n "$RSVG_CFLAGS"; then |
| 30550 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" |
| 30551 | elif test -n "$PKG_CONFIG"; then |
| 30552 | if test -n "$PKG_CONFIG" && \ |
| 30553 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| 30554 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 30555 | ac_status=$? |
| 30556 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30557 | test $ac_status = 0; }; then |
| 30558 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 30559 | else |
| 30560 | pkg_failed=yes |
| 30561 | fi |
| 30562 | else |
| 30563 | pkg_failed=untried |
| 30564 | fi |
| 30565 | if test -n "$RSVG_LIBS"; then |
| 30566 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" |
| 30567 | elif test -n "$PKG_CONFIG"; then |
| 30568 | if test -n "$PKG_CONFIG" && \ |
| 30569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| 30570 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 30571 | ac_status=$? |
| 30572 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30573 | test $ac_status = 0; }; then |
| 30574 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 30575 | else |
| 30576 | pkg_failed=yes |
| 30577 | fi |
| 30578 | else |
| 30579 | pkg_failed=untried |
| 30580 | fi |
| 30581 | |
| 30582 | |
| 30583 | |
| 30584 | if test $pkg_failed = yes; then |
| 30585 | |
| 30586 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30587 | _pkg_short_errors_supported=yes |
| 30588 | else |
| 30589 | _pkg_short_errors_supported=no |
| 30590 | fi |
| 30591 | if test $_pkg_short_errors_supported = yes; then |
| 30592 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 30593 | else |
| 30594 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 30595 | fi |
| 30596 | # Put the nasty error message in config.log where it belongs |
| 30597 | echo "$RSVG_PKG_ERRORS" >&5 |
| 30598 | |
| 30599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30600 | $as_echo "no" >&6; } |
| 30601 | have_rsvg=no |
| 30602 | elif test $pkg_failed = untried; then |
| 30603 | have_rsvg=no |
| 30604 | else |
| 30605 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS |
| 30606 | RSVG_LIBS=$pkg_cv_RSVG_LIBS |
| 30607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30608 | $as_echo "yes" >&6; } |
| 30609 | have_rsvg=yes |
| 30610 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30612 | $as_echo "" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30613 | |
| 30614 | pkg_failed=no |
| 30615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 |
| 30616 | $as_echo_n "checking for CAIRO_SVG... " >&6; } |
| 30617 | |
| 30618 | if test -n "$CAIRO_SVG_CFLAGS"; then |
| 30619 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" |
| 30620 | elif test -n "$PKG_CONFIG"; then |
| 30621 | if test -n "$PKG_CONFIG" && \ |
| 30622 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| 30623 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 30624 | ac_status=$? |
| 30625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30626 | test $ac_status = 0; }; then |
| 30627 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` |
| 30628 | else |
| 30629 | pkg_failed=yes |
| 30630 | fi |
| 30631 | else |
| 30632 | pkg_failed=untried |
| 30633 | fi |
| 30634 | if test -n "$CAIRO_SVG_LIBS"; then |
| 30635 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" |
| 30636 | elif test -n "$PKG_CONFIG"; then |
| 30637 | if test -n "$PKG_CONFIG" && \ |
| 30638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| 30639 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 30640 | ac_status=$? |
| 30641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30642 | test $ac_status = 0; }; then |
| 30643 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` |
| 30644 | else |
| 30645 | pkg_failed=yes |
| 30646 | fi |
| 30647 | else |
| 30648 | pkg_failed=untried |
| 30649 | fi |
| 30650 | |
| 30651 | |
| 30652 | |
| 30653 | if test $pkg_failed = yes; then |
| 30654 | |
| 30655 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30656 | _pkg_short_errors_supported=yes |
| 30657 | else |
| 30658 | _pkg_short_errors_supported=no |
| 30659 | fi |
| 30660 | if test $_pkg_short_errors_supported = yes; then |
| 30661 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` |
| 30662 | else |
| 30663 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` |
| 30664 | fi |
| 30665 | # Put the nasty error message in config.log where it belongs |
| 30666 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 |
| 30667 | |
| 30668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30669 | $as_echo "no" >&6; } |
| 30670 | have_cairo=no |
| 30671 | elif test $pkg_failed = untried; then |
| 30672 | have_cairo=no |
| 30673 | else |
| 30674 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS |
| 30675 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS |
| 30676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30677 | $as_echo "yes" >&6; } |
| 30678 | have_cairo=yes |
| 30679 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30681 | $as_echo "" >&6; } |
| 30682 | fi |
| 30683 | |
| 30684 | if test "$have_rsvg" = 'yes'; then |
| 30685 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30686 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30687 | |
| 30688 | if test "$with_modules" = 'no'; then |
| 30689 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 30690 | fi |
| 30691 | fi |
| 30692 | |
| 30693 | if test "$have_cairo" = 'yes'; then |
| 30694 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30695 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30696 | |
| 30697 | if test "$with_modules" = 'no'; then |
| 30698 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 30699 | fi |
| 30700 | fi |
| 30701 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30702 | if test "$have_rsvg" = 'yes'; then |
| 30703 | RSVG_DELEGATE_TRUE= |
| 30704 | RSVG_DELEGATE_FALSE='#' |
| 30705 | else |
| 30706 | RSVG_DELEGATE_TRUE='#' |
| 30707 | RSVG_DELEGATE_FALSE= |
| 30708 | fi |
| 30709 | |
| 30710 | if test "$have_cairo" = 'yes'; then |
| 30711 | CAIRO_DELEGATE_TRUE= |
| 30712 | CAIRO_DELEGATE_FALSE='#' |
| 30713 | else |
| 30714 | CAIRO_DELEGATE_TRUE='#' |
| 30715 | CAIRO_DELEGATE_FALSE= |
| 30716 | fi |
| 30717 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30718 | |
| 30719 | |
| 30720 | |
| 30721 | |
| 30722 | # |
| 30723 | # Check for TIFF delegate library. |
| 30724 | # |
| 30725 | |
| 30726 | # Check whether --with-tiff was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30727 | if test "${with_tiff+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30728 | withval=$with_tiff; with_tiff=$withval |
| 30729 | else |
| 30730 | with_tiff='yes' |
| 30731 | fi |
| 30732 | |
| 30733 | |
| 30734 | if test "$with_tiff" != 'yes'; then |
| 30735 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 30736 | fi |
| 30737 | |
| 30738 | have_tiff='no' |
| 30739 | TIFF_LIBS='' |
| 30740 | if test "$with_tiff" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30742 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30744 | $as_echo_n "checking for TIFF... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30746 | $as_echo "" >&6; } |
| 30747 | failed=0 |
| 30748 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30749 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30750 | if test "x$ac_cv_header_tiff_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30751 | passed=`expr $passed + 1` |
| 30752 | else |
| 30753 | failed=`expr $failed + 1` |
| 30754 | fi |
| 30755 | |
| 30756 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30757 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30758 | if test "x$ac_cv_header_tiffio_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30759 | passed=`expr $passed + 1` |
| 30760 | else |
| 30761 | failed=`expr $failed + 1` |
| 30762 | fi |
| 30763 | |
| 30764 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30766 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30767 | if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30768 | $as_echo_n "(cached) " >&6 |
| 30769 | else |
| 30770 | ac_check_lib_save_LIBS=$LIBS |
| 30771 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30773 | /* end confdefs.h. */ |
| 30774 | |
| 30775 | /* Override any GCC internal prototype to avoid an error. |
| 30776 | Use char because int might match the return type of a GCC |
| 30777 | builtin and then its argument prototype would still apply. */ |
| 30778 | #ifdef __cplusplus |
| 30779 | extern "C" |
| 30780 | #endif |
| 30781 | char TIFFOpen (); |
| 30782 | int |
| 30783 | main () |
| 30784 | { |
| 30785 | return TIFFOpen (); |
| 30786 | ; |
| 30787 | return 0; |
| 30788 | } |
| 30789 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30790 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30791 | ac_cv_lib_tiff_TIFFOpen=yes |
| 30792 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30793 | ac_cv_lib_tiff_TIFFOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30794 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30795 | rm -f core conftest.err conftest.$ac_objext \ |
| 30796 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30797 | LIBS=$ac_check_lib_save_LIBS |
| 30798 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30800 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30801 | if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30802 | passed=`expr $passed + 1` |
| 30803 | else |
| 30804 | failed=`expr $failed + 1` |
| 30805 | fi |
| 30806 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30808 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30809 | if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30810 | $as_echo_n "(cached) " >&6 |
| 30811 | else |
| 30812 | ac_check_lib_save_LIBS=$LIBS |
| 30813 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30815 | /* end confdefs.h. */ |
| 30816 | |
| 30817 | /* Override any GCC internal prototype to avoid an error. |
| 30818 | Use char because int might match the return type of a GCC |
| 30819 | builtin and then its argument prototype would still apply. */ |
| 30820 | #ifdef __cplusplus |
| 30821 | extern "C" |
| 30822 | #endif |
| 30823 | char TIFFClientOpen (); |
| 30824 | int |
| 30825 | main () |
| 30826 | { |
| 30827 | return TIFFClientOpen (); |
| 30828 | ; |
| 30829 | return 0; |
| 30830 | } |
| 30831 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30832 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30833 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 30834 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30835 | ac_cv_lib_tiff_TIFFClientOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30836 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30837 | rm -f core conftest.err conftest.$ac_objext \ |
| 30838 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30839 | LIBS=$ac_check_lib_save_LIBS |
| 30840 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30842 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30843 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30844 | passed=`expr $passed + 1` |
| 30845 | else |
| 30846 | failed=`expr $failed + 1` |
| 30847 | fi |
| 30848 | |
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 30849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5 |
| 30850 | $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30851 | if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then : |
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 30852 | $as_echo_n "(cached) " >&6 |
| 30853 | else |
| 30854 | ac_check_lib_save_LIBS=$LIBS |
| 30855 | LIBS="-ltiff $LIBS" |
| 30856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30857 | /* end confdefs.h. */ |
| 30858 | |
| 30859 | /* Override any GCC internal prototype to avoid an error. |
| 30860 | Use char because int might match the return type of a GCC |
| 30861 | builtin and then its argument prototype would still apply. */ |
| 30862 | #ifdef __cplusplus |
| 30863 | extern "C" |
| 30864 | #endif |
| 30865 | char TIFFIsBigEndian (); |
| 30866 | int |
| 30867 | main () |
| 30868 | { |
| 30869 | return TIFFIsBigEndian (); |
| 30870 | ; |
| 30871 | return 0; |
| 30872 | } |
| 30873 | _ACEOF |
| 30874 | if ac_fn_c_try_link "$LINENO"; then : |
| 30875 | ac_cv_lib_tiff_TIFFIsBigEndian=yes |
| 30876 | else |
| 30877 | ac_cv_lib_tiff_TIFFIsBigEndian=no |
| 30878 | fi |
| 30879 | rm -f core conftest.err conftest.$ac_objext \ |
| 30880 | conftest$ac_exeext conftest.$ac_ext |
| 30881 | LIBS=$ac_check_lib_save_LIBS |
| 30882 | fi |
| 30883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5 |
| 30884 | $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30885 | if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then : |
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 30886 | passed=`expr $passed + 1` |
| 30887 | else |
| 30888 | failed=`expr $failed + 1` |
| 30889 | fi |
| 30890 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30892 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30893 | if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30894 | $as_echo_n "(cached) " >&6 |
| 30895 | else |
| 30896 | ac_check_lib_save_LIBS=$LIBS |
| 30897 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30899 | /* end confdefs.h. */ |
| 30900 | |
| 30901 | /* Override any GCC internal prototype to avoid an error. |
| 30902 | Use char because int might match the return type of a GCC |
| 30903 | builtin and then its argument prototype would still apply. */ |
| 30904 | #ifdef __cplusplus |
| 30905 | extern "C" |
| 30906 | #endif |
| 30907 | char TIFFIsByteSwapped (); |
| 30908 | int |
| 30909 | main () |
| 30910 | { |
| 30911 | return TIFFIsByteSwapped (); |
| 30912 | ; |
| 30913 | return 0; |
| 30914 | } |
| 30915 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30916 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30917 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 30918 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30919 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30920 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30921 | rm -f core conftest.err conftest.$ac_objext \ |
| 30922 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30923 | LIBS=$ac_check_lib_save_LIBS |
| 30924 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30926 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30927 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30928 | passed=`expr $passed + 1` |
| 30929 | else |
| 30930 | failed=`expr $failed + 1` |
| 30931 | fi |
| 30932 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30934 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30935 | if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30936 | $as_echo_n "(cached) " >&6 |
| 30937 | else |
| 30938 | ac_check_lib_save_LIBS=$LIBS |
| 30939 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30941 | /* end confdefs.h. */ |
| 30942 | |
| 30943 | /* Override any GCC internal prototype to avoid an error. |
| 30944 | Use char because int might match the return type of a GCC |
| 30945 | builtin and then its argument prototype would still apply. */ |
| 30946 | #ifdef __cplusplus |
| 30947 | extern "C" |
| 30948 | #endif |
| 30949 | char TIFFReadRGBATile (); |
| 30950 | int |
| 30951 | main () |
| 30952 | { |
| 30953 | return TIFFReadRGBATile (); |
| 30954 | ; |
| 30955 | return 0; |
| 30956 | } |
| 30957 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30958 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30959 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 30960 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30961 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30962 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30963 | rm -f core conftest.err conftest.$ac_objext \ |
| 30964 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30965 | LIBS=$ac_check_lib_save_LIBS |
| 30966 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30968 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30969 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30970 | passed=`expr $passed + 1` |
| 30971 | else |
| 30972 | failed=`expr $failed + 1` |
| 30973 | fi |
| 30974 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30976 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30977 | if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30978 | $as_echo_n "(cached) " >&6 |
| 30979 | else |
| 30980 | ac_check_lib_save_LIBS=$LIBS |
| 30981 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30983 | /* end confdefs.h. */ |
| 30984 | |
| 30985 | /* Override any GCC internal prototype to avoid an error. |
| 30986 | Use char because int might match the return type of a GCC |
| 30987 | builtin and then its argument prototype would still apply. */ |
| 30988 | #ifdef __cplusplus |
| 30989 | extern "C" |
| 30990 | #endif |
| 30991 | char TIFFReadRGBAStrip (); |
| 30992 | int |
| 30993 | main () |
| 30994 | { |
| 30995 | return TIFFReadRGBAStrip (); |
| 30996 | ; |
| 30997 | return 0; |
| 30998 | } |
| 30999 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31000 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31001 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 31002 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31003 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31004 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31005 | rm -f core conftest.err conftest.$ac_objext \ |
| 31006 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31007 | LIBS=$ac_check_lib_save_LIBS |
| 31008 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31010 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31011 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31012 | passed=`expr $passed + 1` |
| 31013 | else |
| 31014 | failed=`expr $failed + 1` |
| 31015 | fi |
| 31016 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31018 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 31019 | if test $passed -gt 0; then |
| 31020 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31022 | $as_echo "no -- some components failed test" >&6; } |
| 31023 | have_tiff='no (failed tests)' |
| 31024 | else |
| 31025 | TIFF_LIBS='-ltiff' |
| 31026 | LIBS="$TIFF_LIBS $LIBS" |
| 31027 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31028 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31029 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31031 | $as_echo "yes" >&6; } |
| 31032 | have_tiff='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31033 | for ac_header in tiffconf.h |
| 31034 | do : |
| 31035 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31036 | if test "x$ac_cv_header_tiffconf_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31037 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31038 | #define HAVE_TIFFCONF_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31039 | _ACEOF |
| 31040 | |
| 31041 | fi |
| 31042 | |
| 31043 | done |
| 31044 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31045 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31046 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ |
| 31047 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31048 | do : |
| 31049 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31050 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 31051 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31052 | cat >>confdefs.h <<_ACEOF |
| 31053 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31054 | _ACEOF |
| 31055 | |
| 31056 | fi |
| 31057 | done |
| 31058 | |
| 31059 | fi |
| 31060 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31062 | $as_echo "no" >&6; } |
| 31063 | fi |
| 31064 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31065 | if test "$have_tiff" = 'yes'; then |
| 31066 | TIFF_DELEGATE_TRUE= |
| 31067 | TIFF_DELEGATE_FALSE='#' |
| 31068 | else |
| 31069 | TIFF_DELEGATE_TRUE='#' |
| 31070 | TIFF_DELEGATE_FALSE= |
| 31071 | fi |
| 31072 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31073 | |
| 31074 | |
| 31075 | |
| 31076 | # |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31077 | # Check for WEBP delegate library. |
| 31078 | # |
| 31079 | |
| 31080 | # Check whether --with-webp was given. |
| 31081 | if test "${with_webp+set}" = set; then : |
| 31082 | withval=$with_webp; with_webp=$withval |
| 31083 | else |
| 31084 | with_webp='yes' |
| 31085 | fi |
| 31086 | |
| 31087 | |
| 31088 | if test "$with_webp" != 'yes'; then |
| 31089 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " |
| 31090 | fi |
| 31091 | |
| 31092 | have_webp='no' |
| 31093 | WEBP_LIBS='' |
| 31094 | if test "$with_webp" != 'no'; then |
| 31095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 31096 | $as_echo "-------------------------------------------------------------" >&6; } |
| 31097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 |
| 31098 | $as_echo_n "checking for WEBP... " >&6; } |
| 31099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 31100 | $as_echo "" >&6; } |
| 31101 | failed=0 |
| 31102 | passed=0 |
| 31103 | ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" |
| 31104 | if test "x$ac_cv_header_webp_decode_h" = xyes; then : |
| 31105 | passed=`expr $passed + 1` |
| 31106 | else |
| 31107 | failed=`expr $failed + 1` |
| 31108 | fi |
| 31109 | |
| 31110 | |
| 31111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5 |
| 31112 | $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; } |
| 31113 | if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then : |
| 31114 | $as_echo_n "(cached) " >&6 |
| 31115 | else |
| 31116 | ac_check_lib_save_LIBS=$LIBS |
| 31117 | LIBS="-lwebp $LIBS" |
| 31118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31119 | /* end confdefs.h. */ |
| 31120 | |
| 31121 | /* Override any GCC internal prototype to avoid an error. |
| 31122 | Use char because int might match the return type of a GCC |
| 31123 | builtin and then its argument prototype would still apply. */ |
| 31124 | #ifdef __cplusplus |
| 31125 | extern "C" |
| 31126 | #endif |
| 31127 | char WebPDecodeRGB (); |
| 31128 | int |
| 31129 | main () |
| 31130 | { |
| 31131 | return WebPDecodeRGB (); |
| 31132 | ; |
| 31133 | return 0; |
| 31134 | } |
| 31135 | _ACEOF |
| 31136 | if ac_fn_c_try_link "$LINENO"; then : |
| 31137 | ac_cv_lib_webp_WebPDecodeRGB=yes |
| 31138 | else |
| 31139 | ac_cv_lib_webp_WebPDecodeRGB=no |
| 31140 | fi |
| 31141 | rm -f core conftest.err conftest.$ac_objext \ |
| 31142 | conftest$ac_exeext conftest.$ac_ext |
| 31143 | LIBS=$ac_check_lib_save_LIBS |
| 31144 | fi |
| 31145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5 |
| 31146 | $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; } |
| 31147 | if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then : |
| 31148 | passed=`expr $passed + 1` |
| 31149 | else |
| 31150 | failed=`expr $failed + 1` |
| 31151 | fi |
| 31152 | |
| 31153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 |
| 31154 | $as_echo_n "checking if WEBP package is complete... " >&6; } |
| 31155 | if test $passed -gt 0; then |
| 31156 | if test $failed -gt 0; then |
| 31157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 31158 | $as_echo "no -- some components failed test" >&6; } |
| 31159 | have_webp='no (failed tests)' |
| 31160 | else |
| 31161 | WEBP_LIBS='-lwebp' |
| 31162 | LIBS="$WEBP_LIBS $LIBS" |
| 31163 | |
| 31164 | $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h |
| 31165 | |
| 31166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31167 | $as_echo "yes" >&6; } |
| 31168 | have_webp='yes' |
| 31169 | fi |
| 31170 | else |
| 31171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31172 | $as_echo "no" >&6; } |
| 31173 | fi |
| 31174 | fi |
| 31175 | if test "$have_webp" = 'yes'; then |
| 31176 | WEBP_DELEGATE_TRUE= |
| 31177 | WEBP_DELEGATE_FALSE='#' |
| 31178 | else |
| 31179 | WEBP_DELEGATE_TRUE='#' |
| 31180 | WEBP_DELEGATE_FALSE= |
| 31181 | fi |
| 31182 | |
| 31183 | |
| 31184 | |
| 31185 | |
| 31186 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31187 | # Set Windows font directory. |
| 31188 | # |
| 31189 | |
| 31190 | # Check whether --with-windows-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31191 | if test "${with_windows_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31192 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 31193 | else |
| 31194 | with_windows_font_dir='' |
| 31195 | fi |
| 31196 | |
| 31197 | if test "$with_windows_font_dir" != '' ; then |
| 31198 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 31199 | fi |
| 31200 | |
| 31201 | |
| 31202 | # |
| 31203 | # Check for WMF delegate library. |
| 31204 | # |
| 31205 | |
| 31206 | # Check whether --with-wmf was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31207 | if test "${with_wmf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31208 | withval=$with_wmf; with_wmf=$withval |
| 31209 | else |
| cristy | 8d63d1d | 2010-01-06 20:38:37 +0000 | [diff] [blame] | 31210 | with_wmf='yes' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31211 | fi |
| 31212 | |
| 31213 | |
| 31214 | if test "$with_wmf" != 'yes'; then |
| 31215 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 31216 | fi |
| 31217 | |
| 31218 | have_wmf='no' |
| 31219 | WMF_LIBS='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31220 | if test "$with_wmf" != 'no'; then |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31222 | $as_echo "-------------------------------------------------------------" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31224 | $as_echo_n "checking for WMF... " >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31226 | $as_echo "" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31227 | failed=0 |
| 31228 | passed=0 |
| 31229 | ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default" |
| 31230 | if test "x$ac_cv_header_libwmf_eps_h" = xyes; then : |
| 31231 | passed=`expr $passed + 1` |
| 31232 | else |
| 31233 | failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31234 | fi |
| 31235 | |
| 31236 | |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5 |
| 31238 | $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; } |
| 31239 | if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31240 | $as_echo_n "(cached) " >&6 |
| 31241 | else |
| 31242 | ac_check_lib_save_LIBS=$LIBS |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31243 | LIBS="-lwmf "-lwmflite" $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31245 | /* end confdefs.h. */ |
| 31246 | |
| 31247 | /* Override any GCC internal prototype to avoid an error. |
| 31248 | Use char because int might match the return type of a GCC |
| 31249 | builtin and then its argument prototype would still apply. */ |
| 31250 | #ifdef __cplusplus |
| 31251 | extern "C" |
| 31252 | #endif |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31253 | char wmf_eps_function (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31254 | int |
| 31255 | main () |
| 31256 | { |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31257 | return wmf_eps_function (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31258 | ; |
| 31259 | return 0; |
| 31260 | } |
| 31261 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31262 | if ac_fn_c_try_link "$LINENO"; then : |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31263 | ac_cv_lib_wmf_wmf_eps_function=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31264 | else |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31265 | ac_cv_lib_wmf_wmf_eps_function=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31266 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31267 | rm -f core conftest.err conftest.$ac_objext \ |
| 31268 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31269 | LIBS=$ac_check_lib_save_LIBS |
| 31270 | fi |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5 |
| 31272 | $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; } |
| 31273 | if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then : |
| 31274 | passed=`expr $passed + 1` |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31275 | else |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31276 | failed=`expr $failed + 1` |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31277 | fi |
| 31278 | |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 |
| 31280 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 31281 | if test $passed -gt 0; then |
| 31282 | if test $failed -gt 0; then |
| 31283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 31284 | $as_echo "no -- some components failed test" >&6; } |
| 31285 | have_wmf='no (failed tests)' |
| 31286 | else |
| 31287 | WMF_LIBS='-lwmf -lwmflite' |
| 31288 | LIBS="$WMF_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31289 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31290 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31291 | |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31293 | $as_echo "yes" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31294 | have_wmf='yes' |
| 31295 | fi |
| 31296 | else |
| 31297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 31298 | $as_echo "no" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 31299 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31300 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31301 | if test "$have_wmf" = 'yes'; then |
| 31302 | WMF_DELEGATE_TRUE= |
| 31303 | WMF_DELEGATE_FALSE='#' |
| 31304 | else |
| 31305 | WMF_DELEGATE_TRUE='#' |
| 31306 | WMF_DELEGATE_FALSE= |
| 31307 | fi |
| 31308 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31309 | |
| 31310 | |
| 31311 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31312 | |
| 31313 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31314 | # |
| 31315 | # Check for XML delegate library. |
| 31316 | # |
| 31317 | |
| 31318 | # Check whether --with-xml was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31319 | if test "${with_xml+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31320 | withval=$with_xml; with_xml=$withval |
| 31321 | else |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31322 | with_xml=$have_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31323 | fi |
| 31324 | |
| 31325 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31326 | if test "$with_xml" != 'yes' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31327 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 31328 | fi |
| 31329 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31330 | have_xml='no' |
| 31331 | XML_LIBS='' |
| 31332 | if test "$with_xml" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31334 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 |
| 31336 | $as_echo_n "checking for XML... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31338 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31339 | PERSIST_LDFLAGS=$LDFLAGS |
| 31340 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 31341 | xml2_config='' |
| 31342 | # Extract the first word of "xml2-config", so it can be a program name with args. |
| 31343 | set dummy xml2-config; ac_word=$2 |
| 31344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 31345 | $as_echo_n "checking for $ac_word... " >&6; } |
| 31346 | if ${ac_cv_path_xml2_config+:} false; then : |
| 31347 | $as_echo_n "(cached) " >&6 |
| 31348 | else |
| 31349 | case $xml2_config in |
| 31350 | [\\/]* | ?:[\\/]*) |
| 31351 | ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path. |
| 31352 | ;; |
| 31353 | *) |
| 31354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31355 | for as_dir in $PATH |
| 31356 | do |
| 31357 | IFS=$as_save_IFS |
| 31358 | test -z "$as_dir" && as_dir=. |
| 31359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 31360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31361 | ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext" |
| 31362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 31363 | break 2 |
| 31364 | fi |
| 31365 | done |
| 31366 | done |
| 31367 | IFS=$as_save_IFS |
| 31368 | |
| 31369 | ;; |
| 31370 | esac |
| 31371 | fi |
| 31372 | xml2_config=$ac_cv_path_xml2_config |
| 31373 | if test -n "$xml2_config"; then |
| 31374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 |
| 31375 | $as_echo "$xml2_config" >&6; } |
| 31376 | else |
| 31377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31378 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31379 | fi |
| 31380 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31381 | if test -n "$xml2_config"; then |
| 31382 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 31383 | # the shared library installed under /usr/lib, whereas the package |
| 31384 | # installs itself under $prefix/libxml and $prefix/lib. |
| 31385 | xml2_prefix=`xml2-config --prefix` |
| 31386 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 31387 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 31388 | fi |
| 31389 | if test "${xml2_prefix}" != '/usr'; then |
| 31390 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 31391 | fi |
| 31392 | fi |
| 31393 | failed=0 |
| 31394 | passed=0 |
| 31395 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 31396 | if test "x$ac_cv_header_libxml_parser_h" = xyes; then : |
| 31397 | passed=`expr $passed + 1` |
| 31398 | else |
| 31399 | failed=`expr $failed + 1` |
| 31400 | fi |
| 31401 | |
| 31402 | |
| 31403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5 |
| 31404 | $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; } |
| 31405 | if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then : |
| 31406 | $as_echo_n "(cached) " >&6 |
| 31407 | else |
| 31408 | ac_check_lib_save_LIBS=$LIBS |
| 31409 | LIBS="-lxml2 $LIBS" |
| 31410 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31411 | /* end confdefs.h. */ |
| 31412 | |
| 31413 | /* Override any GCC internal prototype to avoid an error. |
| 31414 | Use char because int might match the return type of a GCC |
| 31415 | builtin and then its argument prototype would still apply. */ |
| 31416 | #ifdef __cplusplus |
| 31417 | extern "C" |
| 31418 | #endif |
| 31419 | char xmlSAXVersion (); |
| 31420 | int |
| 31421 | main () |
| 31422 | { |
| 31423 | return xmlSAXVersion (); |
| 31424 | ; |
| 31425 | return 0; |
| 31426 | } |
| 31427 | _ACEOF |
| 31428 | if ac_fn_c_try_link "$LINENO"; then : |
| 31429 | ac_cv_lib_xml2_xmlSAXVersion=yes |
| 31430 | else |
| 31431 | ac_cv_lib_xml2_xmlSAXVersion=no |
| 31432 | fi |
| 31433 | rm -f core conftest.err conftest.$ac_objext \ |
| 31434 | conftest$ac_exeext conftest.$ac_ext |
| 31435 | LIBS=$ac_check_lib_save_LIBS |
| 31436 | fi |
| 31437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5 |
| 31438 | $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; } |
| 31439 | if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then : |
| 31440 | passed=`expr $passed + 1` |
| 31441 | else |
| 31442 | failed=`expr $failed + 1` |
| 31443 | fi |
| 31444 | |
| 31445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5 |
| 31446 | $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; } |
| 31447 | if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then : |
| 31448 | $as_echo_n "(cached) " >&6 |
| 31449 | else |
| 31450 | ac_check_lib_save_LIBS=$LIBS |
| 31451 | LIBS="-lxml2 $LIBS" |
| 31452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31453 | /* end confdefs.h. */ |
| 31454 | |
| 31455 | /* Override any GCC internal prototype to avoid an error. |
| 31456 | Use char because int might match the return type of a GCC |
| 31457 | builtin and then its argument prototype would still apply. */ |
| 31458 | #ifdef __cplusplus |
| 31459 | extern "C" |
| 31460 | #endif |
| 31461 | char xmlParseChunk (); |
| 31462 | int |
| 31463 | main () |
| 31464 | { |
| 31465 | return xmlParseChunk (); |
| 31466 | ; |
| 31467 | return 0; |
| 31468 | } |
| 31469 | _ACEOF |
| 31470 | if ac_fn_c_try_link "$LINENO"; then : |
| 31471 | ac_cv_lib_xml2_xmlParseChunk=yes |
| 31472 | else |
| 31473 | ac_cv_lib_xml2_xmlParseChunk=no |
| 31474 | fi |
| 31475 | rm -f core conftest.err conftest.$ac_objext \ |
| 31476 | conftest$ac_exeext conftest.$ac_ext |
| 31477 | LIBS=$ac_check_lib_save_LIBS |
| 31478 | fi |
| 31479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5 |
| 31480 | $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; } |
| 31481 | if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then : |
| 31482 | passed=`expr $passed + 1` |
| 31483 | else |
| 31484 | failed=`expr $failed + 1` |
| 31485 | fi |
| 31486 | |
| 31487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5 |
| 31488 | $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; } |
| 31489 | if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then : |
| 31490 | $as_echo_n "(cached) " >&6 |
| 31491 | else |
| 31492 | ac_check_lib_save_LIBS=$LIBS |
| 31493 | LIBS="-lxml2 $LIBS" |
| 31494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31495 | /* end confdefs.h. */ |
| 31496 | |
| 31497 | /* Override any GCC internal prototype to avoid an error. |
| 31498 | Use char because int might match the return type of a GCC |
| 31499 | builtin and then its argument prototype would still apply. */ |
| 31500 | #ifdef __cplusplus |
| 31501 | extern "C" |
| 31502 | #endif |
| 31503 | char xmlCreatePushParserCtxt (); |
| 31504 | int |
| 31505 | main () |
| 31506 | { |
| 31507 | return xmlCreatePushParserCtxt (); |
| 31508 | ; |
| 31509 | return 0; |
| 31510 | } |
| 31511 | _ACEOF |
| 31512 | if ac_fn_c_try_link "$LINENO"; then : |
| 31513 | ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes |
| 31514 | else |
| 31515 | ac_cv_lib_xml2_xmlCreatePushParserCtxt=no |
| 31516 | fi |
| 31517 | rm -f core conftest.err conftest.$ac_objext \ |
| 31518 | conftest$ac_exeext conftest.$ac_ext |
| 31519 | LIBS=$ac_check_lib_save_LIBS |
| 31520 | fi |
| 31521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5 |
| 31522 | $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; } |
| 31523 | if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then : |
| 31524 | passed=`expr $passed + 1` |
| 31525 | else |
| 31526 | failed=`expr $failed + 1` |
| 31527 | fi |
| 31528 | |
| 31529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 |
| 31530 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 31531 | if test $passed -gt 0; then |
| 31532 | if test $failed -gt 0; then |
| 31533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 31534 | $as_echo "no -- some components failed test" >&6; } |
| 31535 | have_xml='no (failed tests)' |
| 31536 | LDFLAGS="$PERSIST_LDFLAGS" |
| 31537 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 31538 | else |
| 31539 | XML_LIBS='-lxml2' |
| 31540 | LIBS="$XML_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31541 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31542 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31543 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31545 | $as_echo "yes" >&6; } |
| 31546 | have_xml='yes' |
| 31547 | fi |
| 31548 | else |
| 31549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31550 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31551 | fi |
| 31552 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31553 | if test "$have_xml" = 'yes'; then |
| 31554 | XML_DELEGATE_TRUE= |
| 31555 | XML_DELEGATE_FALSE='#' |
| 31556 | else |
| 31557 | XML_DELEGATE_TRUE='#' |
| 31558 | XML_DELEGATE_FALSE= |
| 31559 | fi |
| 31560 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31561 | |
| 31562 | |
| 31563 | |
| 31564 | # Substitute compiler name to build/link PerlMagick |
| 31565 | # |
| 31566 | |
| 31567 | |
| 31568 | # |
| 31569 | # Configure install Paths |
| 31570 | # |
| 31571 | |
| 31572 | # Subdirectory under lib to place ImageMagick lib files |
| 31573 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 31574 | |
| 31575 | cat >>confdefs.h <<_ACEOF |
| 31576 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 31577 | _ACEOF |
| 31578 | |
| 31579 | |
| 31580 | # Path to ImageMagick bin directory |
| 31581 | EXECUTABLE_PATH="${BIN_DIR}" |
| 31582 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 31583 | case "${build_os}" in |
| 31584 | mingw* ) |
| 31585 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 31586 | ;; |
| 31587 | esac |
| 31588 | |
| 31589 | cat >>confdefs.h <<_ACEOF |
| 31590 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 31591 | _ACEOF |
| 31592 | |
| 31593 | |
| 31594 | |
| 31595 | # Path to ImageMagick lib |
| 31596 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 31597 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 31598 | case "${build_os}" in |
| 31599 | mingw* ) |
| 31600 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 31601 | ;; |
| 31602 | esac |
| 31603 | |
| 31604 | cat >>confdefs.h <<_ACEOF |
| 31605 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 31606 | _ACEOF |
| 31607 | |
| 31608 | |
| 31609 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31610 | # |
| 31611 | # Subdirectory under lib to place ImageMagick coder module files |
| 31612 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" |
| 31613 | |
| 31614 | cat >>confdefs.h <<_ACEOF |
| 31615 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" |
| 31616 | _ACEOF |
| 31617 | |
| 31618 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" |
| 31619 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" |
| 31620 | case "${build_os}" in |
| 31621 | mingw* ) |
| 31622 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` |
| 31623 | ;; |
| 31624 | esac |
| 31625 | |
| 31626 | cat >>confdefs.h <<_ACEOF |
| 31627 | #define CODER_PATH "$DEFINE_CODER_PATH" |
| 31628 | _ACEOF |
| 31629 | |
| 31630 | |
| 31631 | |
| 31632 | # |
| 31633 | # Subdirectory under lib to place ImageMagick filter module files |
| 31634 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" |
| 31635 | |
| 31636 | cat >>confdefs.h <<_ACEOF |
| 31637 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" |
| 31638 | _ACEOF |
| 31639 | |
| 31640 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" |
| 31641 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" |
| 31642 | case "${build_os}" in |
| 31643 | mingw* ) |
| 31644 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` |
| 31645 | ;; |
| 31646 | esac |
| 31647 | |
| 31648 | cat >>confdefs.h <<_ACEOF |
| 31649 | #define FILTER_PATH "$DEFINE_FILTER_PATH" |
| 31650 | _ACEOF |
| 31651 | |
| 31652 | |
| 31653 | |
| 31654 | # |
| 31655 | # Path to ImageMagick documentation files |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 31656 | DOCUMENTATION_RELATIVE_PATH="" |
| 31657 | DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" |
| 31658 | DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31659 | case "${build_os}" in |
| 31660 | mingw* ) |
| 31661 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 31662 | ;; |
| 31663 | esac |
| 31664 | |
| 31665 | cat >>confdefs.h <<_ACEOF |
| 31666 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 31667 | _ACEOF |
| 31668 | |
| 31669 | |
| 31670 | |
| cristy | 3cf8a72 | 2011-03-20 23:32:22 +0000 | [diff] [blame] | 31671 | # Subdirectory to place ImageMagick configuration files |
| cristy | ba0f197 | 2011-03-28 12:42:52 +0000 | [diff] [blame] | 31672 | CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}" |
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 31673 | |
| 31674 | cat >>confdefs.h <<_ACEOF |
| 31675 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 31676 | _ACEOF |
| 31677 | |
| 31678 | CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 31679 | DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 31680 | case "${build_os}" in |
| 31681 | mingw* ) |
| 31682 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 31683 | ;; |
| 31684 | esac |
| 31685 | |
| 31686 | cat >>confdefs.h <<_ACEOF |
| 31687 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 31688 | _ACEOF |
| 31689 | |
| 31690 | |
| 31691 | |
| 31692 | # Subdirectory to place ImageMagick configuration files |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 31693 | SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31694 | |
| 31695 | cat >>confdefs.h <<_ACEOF |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 31696 | #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31697 | _ACEOF |
| 31698 | |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 31699 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| 31700 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31701 | case "${build_os}" in |
| 31702 | mingw* ) |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 31703 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31704 | ;; |
| 31705 | esac |
| 31706 | |
| 31707 | cat >>confdefs.h <<_ACEOF |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 31708 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31709 | _ACEOF |
| 31710 | |
| 31711 | |
| 31712 | |
| 31713 | # |
| 31714 | # program_transform_name is formed for use in a Makefile, so create a |
| 31715 | # modified version for use in a shell script. |
| 31716 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 31717 | |
| 31718 | # Default delegate definitions |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31720 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31722 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31724 | $as_echo "" >&6; } |
| 31725 | AutotraceDecodeDelegateDefault='autotrace' |
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 31726 | BlenderDecodeDelegateDefault='blender' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31727 | BZIPDelegateDefault='bzip2' |
| 31728 | BrowseDelegateDefault='xdg-open' |
| 31729 | CGMDecodeDelegateDefault='ralcgm' |
| 31730 | CatDelegateDefault='cat' |
| 31731 | DNGDecodeDelegateDefault='ufraw-batch' |
| 31732 | GVCDecodeDelegateDefault='dot' |
| 31733 | DVIDecodeDelegateDefault='dvips' |
| 31734 | EchoDelegateDefault='echo' |
| 31735 | EditorDelegateDefault='xterm' |
| 31736 | FIGDecodeDelegateDefault='fig2dev' |
| 31737 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 31738 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 31739 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 31740 | GnuplotDecodeDelegateDefault='gnuplot' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31741 | HPGLDecodeDelegateDefault='hp2xx' |
| 31742 | HTMLDecodeDelegateDefault='html2ps' |
| 31743 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 31744 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| 31745 | LPDelegateDefault='lp' |
| 31746 | LPRDelegateDefault='lpr' |
| 31747 | LZWDecodeDelegateDefault='uncompress' |
| 31748 | LZWEncodeDelegateDefault='compress' |
| 31749 | LaunchDelegateDefault='gimp' |
| 31750 | MANDelegateDefault='groff' |
| 31751 | MPEGDecodeDelegateDefault='ffmpeg' |
| 31752 | MPEGEncodeDelegateDefault='ffmpeg' |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 31753 | MrSIDDecodeDelegateDefault='mrsidgeodecode' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31754 | MVDelegateDefault='mv' |
| 31755 | PCLDelegateDefault='pcl6' |
| 31756 | PGPDecodeDelegateDefault='pgpv' |
| 31757 | POVDelegateDefault='povray' |
| 31758 | if test "$native_win32_build" = 'yes'; then |
| 31759 | PSDelegateDefault='gswin32c' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 31760 | elif test "$gslib_framework" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31761 | PSDelegateDefault='gsc' |
| 31762 | else |
| 31763 | PSDelegateDefault='gs' |
| 31764 | fi |
| 31765 | RLEEncodeDelegateDefault='rawtorle' |
| 31766 | RMDelegateDefault='rm' |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 31767 | RSVGDecodeDelegateDefault='rsvg' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31768 | SCANDecodeDelegateDefault='scanimage' |
| 31769 | TXTDelegateDefault='enscript' |
| cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 31770 | UniconvertorDelegateDefault='uniconvertor' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31771 | WMFDecodeDelegateDefault='wmf2eps' |
| 31772 | WWWDecodeDelegateDefault='curl' |
| 31773 | XPSDelegateDefault='gxps' |
| 31774 | ZipDelegateDefault='gzip' |
| 31775 | |
| 31776 | # Search for delegates |
| 31777 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 31778 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31780 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31781 | if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31782 | $as_echo_n "(cached) " >&6 |
| 31783 | else |
| 31784 | case $AutotraceDecodeDelegate in |
| 31785 | [\\/]* | ?:[\\/]*) |
| 31786 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 31787 | ;; |
| 31788 | *) |
| 31789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31790 | for as_dir in $PATH |
| 31791 | do |
| 31792 | IFS=$as_save_IFS |
| 31793 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31796 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31798 | break 2 |
| 31799 | fi |
| 31800 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31801 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31802 | IFS=$as_save_IFS |
| 31803 | |
| 31804 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 31805 | ;; |
| 31806 | esac |
| 31807 | fi |
| 31808 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 31809 | if test -n "$AutotraceDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31811 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 31812 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31814 | $as_echo "no" >&6; } |
| 31815 | fi |
| 31816 | |
| 31817 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31818 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 31819 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31821 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31822 | if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31823 | $as_echo_n "(cached) " >&6 |
| 31824 | else |
| 31825 | case $BlenderDecodeDelegate in |
| 31826 | [\\/]* | ?:[\\/]*) |
| 31827 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 31828 | ;; |
| 31829 | *) |
| 31830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31831 | for as_dir in $PATH |
| 31832 | do |
| 31833 | IFS=$as_save_IFS |
| 31834 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31837 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31839 | break 2 |
| 31840 | fi |
| 31841 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31842 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31843 | IFS=$as_save_IFS |
| 31844 | |
| 31845 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 31846 | ;; |
| 31847 | esac |
| 31848 | fi |
| 31849 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 31850 | if test -n "$BlenderDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31852 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 31853 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31855 | $as_echo "no" >&6; } |
| 31856 | fi |
| 31857 | |
| 31858 | |
| 31859 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 31860 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31862 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31863 | if ${ac_cv_path_BZIPDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31864 | $as_echo_n "(cached) " >&6 |
| 31865 | else |
| 31866 | case $BZIPDelegate in |
| 31867 | [\\/]* | ?:[\\/]*) |
| 31868 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 31869 | ;; |
| 31870 | *) |
| 31871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31872 | for as_dir in $PATH |
| 31873 | do |
| 31874 | IFS=$as_save_IFS |
| 31875 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31878 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31880 | break 2 |
| 31881 | fi |
| 31882 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31883 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31884 | IFS=$as_save_IFS |
| 31885 | |
| 31886 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 31887 | ;; |
| 31888 | esac |
| 31889 | fi |
| 31890 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 31891 | if test -n "$BZIPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31893 | $as_echo "$BZIPDelegate" >&6; } |
| 31894 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31896 | $as_echo "no" >&6; } |
| 31897 | fi |
| 31898 | |
| 31899 | |
| 31900 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. |
| 31901 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31903 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31904 | if ${ac_cv_path_BrowseDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31905 | $as_echo_n "(cached) " >&6 |
| 31906 | else |
| 31907 | case $BrowseDelegate in |
| 31908 | [\\/]* | ?:[\\/]*) |
| 31909 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 31910 | ;; |
| 31911 | *) |
| 31912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31913 | for as_dir in $PATH |
| 31914 | do |
| 31915 | IFS=$as_save_IFS |
| 31916 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31918 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31919 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31921 | break 2 |
| 31922 | fi |
| 31923 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31924 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31925 | IFS=$as_save_IFS |
| 31926 | |
| 31927 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" |
| 31928 | ;; |
| 31929 | esac |
| 31930 | fi |
| 31931 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 31932 | if test -n "$BrowseDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31934 | $as_echo "$BrowseDelegate" >&6; } |
| 31935 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31937 | $as_echo "no" >&6; } |
| 31938 | fi |
| 31939 | |
| 31940 | |
| 31941 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 31942 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31944 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31945 | if ${ac_cv_path_CGMDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31946 | $as_echo_n "(cached) " >&6 |
| 31947 | else |
| 31948 | case $CGMDecodeDelegate in |
| 31949 | [\\/]* | ?:[\\/]*) |
| 31950 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 31951 | ;; |
| 31952 | *) |
| 31953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31954 | for as_dir in $PATH |
| 31955 | do |
| 31956 | IFS=$as_save_IFS |
| 31957 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31958 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 31960 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31962 | break 2 |
| 31963 | fi |
| 31964 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31965 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31966 | IFS=$as_save_IFS |
| 31967 | |
| 31968 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 31969 | ;; |
| 31970 | esac |
| 31971 | fi |
| 31972 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 31973 | if test -n "$CGMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31975 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 31976 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31978 | $as_echo "no" >&6; } |
| 31979 | fi |
| 31980 | |
| 31981 | |
| 31982 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 31983 | set dummy "$CatDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31985 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31986 | if ${ac_cv_path_CatDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31987 | $as_echo_n "(cached) " >&6 |
| 31988 | else |
| 31989 | case $CatDelegate in |
| 31990 | [\\/]* | ?:[\\/]*) |
| 31991 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 31992 | ;; |
| 31993 | *) |
| 31994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31995 | for as_dir in $PATH |
| 31996 | do |
| 31997 | IFS=$as_save_IFS |
| 31998 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31999 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32000 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32001 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32003 | break 2 |
| 32004 | fi |
| 32005 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32006 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32007 | IFS=$as_save_IFS |
| 32008 | |
| 32009 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 32010 | ;; |
| 32011 | esac |
| 32012 | fi |
| 32013 | CatDelegate=$ac_cv_path_CatDelegate |
| 32014 | if test -n "$CatDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32016 | $as_echo "$CatDelegate" >&6; } |
| 32017 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32019 | $as_echo "no" >&6; } |
| 32020 | fi |
| 32021 | |
| 32022 | |
| 32023 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 32024 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32026 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32027 | if ${ac_cv_path_DNGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32028 | $as_echo_n "(cached) " >&6 |
| 32029 | else |
| 32030 | case $DNGDecodeDelegate in |
| 32031 | [\\/]* | ?:[\\/]*) |
| 32032 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 32033 | ;; |
| 32034 | *) |
| 32035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32036 | for as_dir in $PATH |
| 32037 | do |
| 32038 | IFS=$as_save_IFS |
| 32039 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32042 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32044 | break 2 |
| 32045 | fi |
| 32046 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32047 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32048 | IFS=$as_save_IFS |
| 32049 | |
| 32050 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 32051 | ;; |
| 32052 | esac |
| 32053 | fi |
| 32054 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 32055 | if test -n "$DNGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32057 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 32058 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32060 | $as_echo "no" >&6; } |
| 32061 | fi |
| 32062 | |
| 32063 | |
| 32064 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 32065 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32067 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32068 | if ${ac_cv_path_GVCDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32069 | $as_echo_n "(cached) " >&6 |
| 32070 | else |
| 32071 | case $GVCDecodeDelegate in |
| 32072 | [\\/]* | ?:[\\/]*) |
| 32073 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 32074 | ;; |
| 32075 | *) |
| 32076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32077 | for as_dir in $PATH |
| 32078 | do |
| 32079 | IFS=$as_save_IFS |
| 32080 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32083 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32085 | break 2 |
| 32086 | fi |
| 32087 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32088 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32089 | IFS=$as_save_IFS |
| 32090 | |
| 32091 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 32092 | ;; |
| 32093 | esac |
| 32094 | fi |
| 32095 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 32096 | if test -n "$GVCDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32098 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 32099 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32101 | $as_echo "no" >&6; } |
| 32102 | fi |
| 32103 | |
| 32104 | |
| 32105 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 32106 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32108 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32109 | if ${ac_cv_path_DVIDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32110 | $as_echo_n "(cached) " >&6 |
| 32111 | else |
| 32112 | case $DVIDecodeDelegate in |
| 32113 | [\\/]* | ?:[\\/]*) |
| 32114 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 32115 | ;; |
| 32116 | *) |
| 32117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32118 | for as_dir in $PATH |
| 32119 | do |
| 32120 | IFS=$as_save_IFS |
| 32121 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32122 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32123 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32124 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32125 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32126 | break 2 |
| 32127 | fi |
| 32128 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32129 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32130 | IFS=$as_save_IFS |
| 32131 | |
| 32132 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 32133 | ;; |
| 32134 | esac |
| 32135 | fi |
| 32136 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 32137 | if test -n "$DVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32139 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 32140 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32142 | $as_echo "no" >&6; } |
| 32143 | fi |
| 32144 | |
| 32145 | |
| 32146 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 32147 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32149 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32150 | if ${ac_cv_path_EchoDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32151 | $as_echo_n "(cached) " >&6 |
| 32152 | else |
| 32153 | case $EchoDelegate in |
| 32154 | [\\/]* | ?:[\\/]*) |
| 32155 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 32156 | ;; |
| 32157 | *) |
| 32158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32159 | for as_dir in $PATH |
| 32160 | do |
| 32161 | IFS=$as_save_IFS |
| 32162 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32163 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32165 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32167 | break 2 |
| 32168 | fi |
| 32169 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32170 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32171 | IFS=$as_save_IFS |
| 32172 | |
| 32173 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 32174 | ;; |
| 32175 | esac |
| 32176 | fi |
| 32177 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 32178 | if test -n "$EchoDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32180 | $as_echo "$EchoDelegate" >&6; } |
| 32181 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32183 | $as_echo "no" >&6; } |
| 32184 | fi |
| 32185 | |
| 32186 | |
| 32187 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 32188 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32190 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32191 | if ${ac_cv_path_EditorDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32192 | $as_echo_n "(cached) " >&6 |
| 32193 | else |
| 32194 | case $EditorDelegate in |
| 32195 | [\\/]* | ?:[\\/]*) |
| 32196 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 32197 | ;; |
| 32198 | *) |
| 32199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32200 | for as_dir in $PATH |
| 32201 | do |
| 32202 | IFS=$as_save_IFS |
| 32203 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32205 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32206 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32208 | break 2 |
| 32209 | fi |
| 32210 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32211 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32212 | IFS=$as_save_IFS |
| 32213 | |
| 32214 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 32215 | ;; |
| 32216 | esac |
| 32217 | fi |
| 32218 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 32219 | if test -n "$EditorDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32221 | $as_echo "$EditorDelegate" >&6; } |
| 32222 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32224 | $as_echo "no" >&6; } |
| 32225 | fi |
| 32226 | |
| 32227 | |
| 32228 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 32229 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32231 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32232 | if ${ac_cv_path_FIGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32233 | $as_echo_n "(cached) " >&6 |
| 32234 | else |
| 32235 | case $FIGDecodeDelegate in |
| 32236 | [\\/]* | ?:[\\/]*) |
| 32237 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 32238 | ;; |
| 32239 | *) |
| 32240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32241 | for as_dir in $PATH |
| 32242 | do |
| 32243 | IFS=$as_save_IFS |
| 32244 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32245 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32247 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32249 | break 2 |
| 32250 | fi |
| 32251 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32252 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32253 | IFS=$as_save_IFS |
| 32254 | |
| 32255 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 32256 | ;; |
| 32257 | esac |
| 32258 | fi |
| 32259 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 32260 | if test -n "$FIGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32262 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 32263 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32265 | $as_echo "no" >&6; } |
| 32266 | fi |
| 32267 | |
| 32268 | |
| 32269 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 32270 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32272 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32273 | if ${ac_cv_path_ConvertDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32274 | $as_echo_n "(cached) " >&6 |
| 32275 | else |
| 32276 | case $ConvertDelegate in |
| 32277 | [\\/]* | ?:[\\/]*) |
| 32278 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 32279 | ;; |
| 32280 | *) |
| 32281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32282 | for as_dir in $PATH |
| 32283 | do |
| 32284 | IFS=$as_save_IFS |
| 32285 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32286 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32288 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32290 | break 2 |
| 32291 | fi |
| 32292 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32293 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32294 | IFS=$as_save_IFS |
| 32295 | |
| 32296 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 32297 | ;; |
| 32298 | esac |
| 32299 | fi |
| 32300 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 32301 | if test -n "$ConvertDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32303 | $as_echo "$ConvertDelegate" >&6; } |
| 32304 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32306 | $as_echo "no" >&6; } |
| 32307 | fi |
| 32308 | |
| 32309 | |
| 32310 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 32311 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32313 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32314 | if ${ac_cv_path_DisplayDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32315 | $as_echo_n "(cached) " >&6 |
| 32316 | else |
| 32317 | case $DisplayDelegate in |
| 32318 | [\\/]* | ?:[\\/]*) |
| 32319 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 32320 | ;; |
| 32321 | *) |
| 32322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32323 | for as_dir in $PATH |
| 32324 | do |
| 32325 | IFS=$as_save_IFS |
| 32326 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32327 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32329 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32331 | break 2 |
| 32332 | fi |
| 32333 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32334 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32335 | IFS=$as_save_IFS |
| 32336 | |
| 32337 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 32338 | ;; |
| 32339 | esac |
| 32340 | fi |
| 32341 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 32342 | if test -n "$DisplayDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32344 | $as_echo "$DisplayDelegate" >&6; } |
| 32345 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32347 | $as_echo "no" >&6; } |
| 32348 | fi |
| 32349 | |
| 32350 | |
| 32351 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 32352 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32354 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32355 | if ${ac_cv_path_MogrifyDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32356 | $as_echo_n "(cached) " >&6 |
| 32357 | else |
| 32358 | case $MogrifyDelegate in |
| 32359 | [\\/]* | ?:[\\/]*) |
| 32360 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 32361 | ;; |
| 32362 | *) |
| 32363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32364 | for as_dir in $PATH |
| 32365 | do |
| 32366 | IFS=$as_save_IFS |
| 32367 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32368 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32369 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32370 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32371 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32372 | break 2 |
| 32373 | fi |
| 32374 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32375 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32376 | IFS=$as_save_IFS |
| 32377 | |
| 32378 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 32379 | ;; |
| 32380 | esac |
| 32381 | fi |
| 32382 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 32383 | if test -n "$MogrifyDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32385 | $as_echo "$MogrifyDelegate" >&6; } |
| 32386 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32388 | $as_echo "no" >&6; } |
| 32389 | fi |
| 32390 | |
| 32391 | |
| 32392 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 32393 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32395 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32396 | if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32397 | $as_echo_n "(cached) " >&6 |
| 32398 | else |
| 32399 | case $GnuplotDecodeDelegate in |
| 32400 | [\\/]* | ?:[\\/]*) |
| 32401 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 32402 | ;; |
| 32403 | *) |
| 32404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32405 | for as_dir in $PATH |
| 32406 | do |
| 32407 | IFS=$as_save_IFS |
| 32408 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32411 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32413 | break 2 |
| 32414 | fi |
| 32415 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32416 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32417 | IFS=$as_save_IFS |
| 32418 | |
| 32419 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 32420 | ;; |
| 32421 | esac |
| 32422 | fi |
| 32423 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 32424 | if test -n "$GnuplotDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32426 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 32427 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32429 | $as_echo "no" >&6; } |
| 32430 | fi |
| 32431 | |
| 32432 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32433 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 32434 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32436 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32437 | if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32438 | $as_echo_n "(cached) " >&6 |
| 32439 | else |
| 32440 | case $HPGLDecodeDelegate in |
| 32441 | [\\/]* | ?:[\\/]*) |
| 32442 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 32443 | ;; |
| 32444 | *) |
| 32445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32446 | for as_dir in $PATH |
| 32447 | do |
| 32448 | IFS=$as_save_IFS |
| 32449 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32452 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32454 | break 2 |
| 32455 | fi |
| 32456 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32457 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32458 | IFS=$as_save_IFS |
| 32459 | |
| 32460 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 32461 | ;; |
| 32462 | esac |
| 32463 | fi |
| 32464 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 32465 | if test -n "$HPGLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32467 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 32468 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32470 | $as_echo "no" >&6; } |
| 32471 | fi |
| 32472 | |
| 32473 | |
| 32474 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 32475 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32477 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32478 | if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32479 | $as_echo_n "(cached) " >&6 |
| 32480 | else |
| 32481 | case $HTMLDecodeDelegate in |
| 32482 | [\\/]* | ?:[\\/]*) |
| 32483 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 32484 | ;; |
| 32485 | *) |
| 32486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32487 | for as_dir in $PATH |
| 32488 | do |
| 32489 | IFS=$as_save_IFS |
| 32490 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32492 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32493 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32494 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32495 | break 2 |
| 32496 | fi |
| 32497 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32498 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32499 | IFS=$as_save_IFS |
| 32500 | |
| 32501 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 32502 | ;; |
| 32503 | esac |
| 32504 | fi |
| 32505 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 32506 | if test -n "$HTMLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32508 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 32509 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32511 | $as_echo "no" >&6; } |
| 32512 | fi |
| 32513 | |
| 32514 | |
| 32515 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 32516 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32518 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32519 | if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32520 | $as_echo_n "(cached) " >&6 |
| 32521 | else |
| 32522 | case $ILBMDecodeDelegate in |
| 32523 | [\\/]* | ?:[\\/]*) |
| 32524 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 32525 | ;; |
| 32526 | *) |
| 32527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32528 | for as_dir in $PATH |
| 32529 | do |
| 32530 | IFS=$as_save_IFS |
| 32531 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32533 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32534 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32536 | break 2 |
| 32537 | fi |
| 32538 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32539 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32540 | IFS=$as_save_IFS |
| 32541 | |
| 32542 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 32543 | ;; |
| 32544 | esac |
| 32545 | fi |
| 32546 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 32547 | if test -n "$ILBMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32549 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 32550 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32552 | $as_echo "no" >&6; } |
| 32553 | fi |
| 32554 | |
| 32555 | |
| 32556 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 32557 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32559 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32560 | if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32561 | $as_echo_n "(cached) " >&6 |
| 32562 | else |
| 32563 | case $ILBMEncodeDelegate in |
| 32564 | [\\/]* | ?:[\\/]*) |
| 32565 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 32566 | ;; |
| 32567 | *) |
| 32568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32569 | for as_dir in $PATH |
| 32570 | do |
| 32571 | IFS=$as_save_IFS |
| 32572 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32573 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32575 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32577 | break 2 |
| 32578 | fi |
| 32579 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32580 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32581 | IFS=$as_save_IFS |
| 32582 | |
| 32583 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 32584 | ;; |
| 32585 | esac |
| 32586 | fi |
| 32587 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 32588 | if test -n "$ILBMEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32590 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 32591 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32593 | $as_echo "no" >&6; } |
| 32594 | fi |
| 32595 | |
| 32596 | |
| 32597 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 32598 | set dummy "$LPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32600 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32601 | if ${ac_cv_path_LPDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32602 | $as_echo_n "(cached) " >&6 |
| 32603 | else |
| 32604 | case $LPDelegate in |
| 32605 | [\\/]* | ?:[\\/]*) |
| 32606 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 32607 | ;; |
| 32608 | *) |
| 32609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32610 | for as_dir in $PATH |
| 32611 | do |
| 32612 | IFS=$as_save_IFS |
| 32613 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32615 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32616 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32618 | break 2 |
| 32619 | fi |
| 32620 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32621 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32622 | IFS=$as_save_IFS |
| 32623 | |
| 32624 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 32625 | ;; |
| 32626 | esac |
| 32627 | fi |
| 32628 | LPDelegate=$ac_cv_path_LPDelegate |
| 32629 | if test -n "$LPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32631 | $as_echo "$LPDelegate" >&6; } |
| 32632 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32634 | $as_echo "no" >&6; } |
| 32635 | fi |
| 32636 | |
| 32637 | |
| 32638 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 32639 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32641 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32642 | if ${ac_cv_path_LPRDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32643 | $as_echo_n "(cached) " >&6 |
| 32644 | else |
| 32645 | case $LPRDelegate in |
| 32646 | [\\/]* | ?:[\\/]*) |
| 32647 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 32648 | ;; |
| 32649 | *) |
| 32650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32651 | for as_dir in $PATH |
| 32652 | do |
| 32653 | IFS=$as_save_IFS |
| 32654 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32657 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32659 | break 2 |
| 32660 | fi |
| 32661 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32662 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32663 | IFS=$as_save_IFS |
| 32664 | |
| 32665 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 32666 | ;; |
| 32667 | esac |
| 32668 | fi |
| 32669 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 32670 | if test -n "$LPRDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32672 | $as_echo "$LPRDelegate" >&6; } |
| 32673 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32675 | $as_echo "no" >&6; } |
| 32676 | fi |
| 32677 | |
| 32678 | |
| 32679 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. |
| 32680 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32682 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32683 | if ${ac_cv_path_LZWDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32684 | $as_echo_n "(cached) " >&6 |
| 32685 | else |
| 32686 | case $LZWDecodeDelegate in |
| 32687 | [\\/]* | ?:[\\/]*) |
| 32688 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. |
| 32689 | ;; |
| 32690 | *) |
| 32691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32692 | for as_dir in $PATH |
| 32693 | do |
| 32694 | IFS=$as_save_IFS |
| 32695 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32698 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32700 | break 2 |
| 32701 | fi |
| 32702 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32703 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32704 | IFS=$as_save_IFS |
| 32705 | |
| 32706 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" |
| 32707 | ;; |
| 32708 | esac |
| 32709 | fi |
| 32710 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate |
| 32711 | if test -n "$LZWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32713 | $as_echo "$LZWDecodeDelegate" >&6; } |
| 32714 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32716 | $as_echo "no" >&6; } |
| 32717 | fi |
| 32718 | |
| 32719 | |
| 32720 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. |
| 32721 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32723 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32724 | if ${ac_cv_path_LZWEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32725 | $as_echo_n "(cached) " >&6 |
| 32726 | else |
| 32727 | case $LZWEncodeDelegate in |
| 32728 | [\\/]* | ?:[\\/]*) |
| 32729 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. |
| 32730 | ;; |
| 32731 | *) |
| 32732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32733 | for as_dir in $PATH |
| 32734 | do |
| 32735 | IFS=$as_save_IFS |
| 32736 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32739 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32741 | break 2 |
| 32742 | fi |
| 32743 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32744 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32745 | IFS=$as_save_IFS |
| 32746 | |
| 32747 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" |
| 32748 | ;; |
| 32749 | esac |
| 32750 | fi |
| 32751 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate |
| 32752 | if test -n "$LZWEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32754 | $as_echo "$LZWEncodeDelegate" >&6; } |
| 32755 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32757 | $as_echo "no" >&6; } |
| 32758 | fi |
| 32759 | |
| 32760 | |
| 32761 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 32762 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32764 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32765 | if ${ac_cv_path_LaunchDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32766 | $as_echo_n "(cached) " >&6 |
| 32767 | else |
| 32768 | case $LaunchDelegate in |
| 32769 | [\\/]* | ?:[\\/]*) |
| 32770 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 32771 | ;; |
| 32772 | *) |
| 32773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32774 | for as_dir in $PATH |
| 32775 | do |
| 32776 | IFS=$as_save_IFS |
| 32777 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32778 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32780 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32782 | break 2 |
| 32783 | fi |
| 32784 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32785 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32786 | IFS=$as_save_IFS |
| 32787 | |
| 32788 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 32789 | ;; |
| 32790 | esac |
| 32791 | fi |
| 32792 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 32793 | if test -n "$LaunchDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32795 | $as_echo "$LaunchDelegate" >&6; } |
| 32796 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32798 | $as_echo "no" >&6; } |
| 32799 | fi |
| 32800 | |
| 32801 | |
| 32802 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 32803 | set dummy "$MANDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32805 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32806 | if ${ac_cv_path_MANDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32807 | $as_echo_n "(cached) " >&6 |
| 32808 | else |
| 32809 | case $MANDelegate in |
| 32810 | [\\/]* | ?:[\\/]*) |
| 32811 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 32812 | ;; |
| 32813 | *) |
| 32814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32815 | for as_dir in $PATH |
| 32816 | do |
| 32817 | IFS=$as_save_IFS |
| 32818 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32819 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32821 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32823 | break 2 |
| 32824 | fi |
| 32825 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32826 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32827 | IFS=$as_save_IFS |
| 32828 | |
| 32829 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 32830 | ;; |
| 32831 | esac |
| 32832 | fi |
| 32833 | MANDelegate=$ac_cv_path_MANDelegate |
| 32834 | if test -n "$MANDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32836 | $as_echo "$MANDelegate" >&6; } |
| 32837 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32839 | $as_echo "no" >&6; } |
| 32840 | fi |
| 32841 | |
| 32842 | |
| 32843 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 32844 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32846 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32847 | if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32848 | $as_echo_n "(cached) " >&6 |
| 32849 | else |
| 32850 | case $MPEGDecodeDelegate in |
| 32851 | [\\/]* | ?:[\\/]*) |
| 32852 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 32853 | ;; |
| 32854 | *) |
| 32855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32856 | for as_dir in $PATH |
| 32857 | do |
| 32858 | IFS=$as_save_IFS |
| 32859 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32860 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32862 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32864 | break 2 |
| 32865 | fi |
| 32866 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32867 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32868 | IFS=$as_save_IFS |
| 32869 | |
| 32870 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 32871 | ;; |
| 32872 | esac |
| 32873 | fi |
| 32874 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 32875 | if test -n "$MPEGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32877 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 32878 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32880 | $as_echo "no" >&6; } |
| 32881 | fi |
| 32882 | |
| 32883 | |
| 32884 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 32885 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32887 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32888 | if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32889 | $as_echo_n "(cached) " >&6 |
| 32890 | else |
| 32891 | case $MPEGEncodeDelegate in |
| 32892 | [\\/]* | ?:[\\/]*) |
| 32893 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 32894 | ;; |
| 32895 | *) |
| 32896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32897 | for as_dir in $PATH |
| 32898 | do |
| 32899 | IFS=$as_save_IFS |
| 32900 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32901 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32902 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32903 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32905 | break 2 |
| 32906 | fi |
| 32907 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32908 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32909 | IFS=$as_save_IFS |
| 32910 | |
| 32911 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 32912 | ;; |
| 32913 | esac |
| 32914 | fi |
| 32915 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 32916 | if test -n "$MPEGEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32918 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 32919 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32921 | $as_echo "no" >&6; } |
| 32922 | fi |
| 32923 | |
| 32924 | |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32925 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. |
| 32926 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 |
| 32927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 32928 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32929 | if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32930 | $as_echo_n "(cached) " >&6 |
| 32931 | else |
| 32932 | case $MrSIDDecodeDelegate in |
| 32933 | [\\/]* | ?:[\\/]*) |
| 32934 | ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. |
| 32935 | ;; |
| 32936 | *) |
| 32937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32938 | for as_dir in $PATH |
| 32939 | do |
| 32940 | IFS=$as_save_IFS |
| 32941 | test -z "$as_dir" && as_dir=. |
| 32942 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 32943 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32944 | ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 32945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 32946 | break 2 |
| 32947 | fi |
| 32948 | done |
| 32949 | done |
| 32950 | IFS=$as_save_IFS |
| 32951 | |
| 32952 | test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" |
| 32953 | ;; |
| 32954 | esac |
| 32955 | fi |
| 32956 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate |
| 32957 | if test -n "$MrSIDDecodeDelegate"; then |
| 32958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 |
| 32959 | $as_echo "$MrSIDDecodeDelegate" >&6; } |
| 32960 | else |
| 32961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32962 | $as_echo "no" >&6; } |
| 32963 | fi |
| 32964 | |
| 32965 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32966 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 32967 | set dummy "$MVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32969 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32970 | if ${ac_cv_path_MVDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32971 | $as_echo_n "(cached) " >&6 |
| 32972 | else |
| 32973 | case $MVDelegate in |
| 32974 | [\\/]* | ?:[\\/]*) |
| 32975 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 32976 | ;; |
| 32977 | *) |
| 32978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32979 | for as_dir in $PATH |
| 32980 | do |
| 32981 | IFS=$as_save_IFS |
| 32982 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 32985 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32987 | break 2 |
| 32988 | fi |
| 32989 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32990 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32991 | IFS=$as_save_IFS |
| 32992 | |
| 32993 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 32994 | ;; |
| 32995 | esac |
| 32996 | fi |
| 32997 | MVDelegate=$ac_cv_path_MVDelegate |
| 32998 | if test -n "$MVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33000 | $as_echo "$MVDelegate" >&6; } |
| 33001 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33003 | $as_echo "no" >&6; } |
| 33004 | fi |
| 33005 | |
| 33006 | |
| 33007 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 33008 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33010 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33011 | if ${ac_cv_path_PCLDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33012 | $as_echo_n "(cached) " >&6 |
| 33013 | else |
| 33014 | case $PCLDelegate in |
| 33015 | [\\/]* | ?:[\\/]*) |
| 33016 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 33017 | ;; |
| 33018 | *) |
| 33019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33020 | for as_dir in $PATH |
| 33021 | do |
| 33022 | IFS=$as_save_IFS |
| 33023 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33026 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33028 | break 2 |
| 33029 | fi |
| 33030 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33031 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33032 | IFS=$as_save_IFS |
| 33033 | |
| 33034 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 33035 | ;; |
| 33036 | esac |
| 33037 | fi |
| 33038 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 33039 | if test -n "$PCLDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33041 | $as_echo "$PCLDelegate" >&6; } |
| 33042 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33044 | $as_echo "no" >&6; } |
| 33045 | fi |
| 33046 | |
| 33047 | |
| 33048 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 33049 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33051 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33052 | if ${ac_cv_path_PGPDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33053 | $as_echo_n "(cached) " >&6 |
| 33054 | else |
| 33055 | case $PGPDecodeDelegate in |
| 33056 | [\\/]* | ?:[\\/]*) |
| 33057 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 33058 | ;; |
| 33059 | *) |
| 33060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33061 | for as_dir in $PATH |
| 33062 | do |
| 33063 | IFS=$as_save_IFS |
| 33064 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33065 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33067 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33069 | break 2 |
| 33070 | fi |
| 33071 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33072 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33073 | IFS=$as_save_IFS |
| 33074 | |
| 33075 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 33076 | ;; |
| 33077 | esac |
| 33078 | fi |
| 33079 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 33080 | if test -n "$PGPDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33082 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 33083 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33085 | $as_echo "no" >&6; } |
| 33086 | fi |
| 33087 | |
| 33088 | |
| 33089 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 33090 | set dummy "$POVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33092 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33093 | if ${ac_cv_path_POVDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33094 | $as_echo_n "(cached) " >&6 |
| 33095 | else |
| 33096 | case $POVDelegate in |
| 33097 | [\\/]* | ?:[\\/]*) |
| 33098 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 33099 | ;; |
| 33100 | *) |
| 33101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33102 | for as_dir in $PATH |
| 33103 | do |
| 33104 | IFS=$as_save_IFS |
| 33105 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33108 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33110 | break 2 |
| 33111 | fi |
| 33112 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33113 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33114 | IFS=$as_save_IFS |
| 33115 | |
| 33116 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 33117 | ;; |
| 33118 | esac |
| 33119 | fi |
| 33120 | POVDelegate=$ac_cv_path_POVDelegate |
| 33121 | if test -n "$POVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33123 | $as_echo "$POVDelegate" >&6; } |
| 33124 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33126 | $as_echo "no" >&6; } |
| 33127 | fi |
| 33128 | |
| 33129 | |
| 33130 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 33131 | do |
| 33132 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 33133 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33135 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33136 | if ${ac_cv_path_PSDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33137 | $as_echo_n "(cached) " >&6 |
| 33138 | else |
| 33139 | case $PSDelegate in |
| 33140 | [\\/]* | ?:[\\/]*) |
| 33141 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 33142 | ;; |
| 33143 | *) |
| 33144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33145 | for as_dir in $PATH |
| 33146 | do |
| 33147 | IFS=$as_save_IFS |
| 33148 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33149 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33150 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33151 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33153 | break 2 |
| 33154 | fi |
| 33155 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33156 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33157 | IFS=$as_save_IFS |
| 33158 | |
| 33159 | ;; |
| 33160 | esac |
| 33161 | fi |
| 33162 | PSDelegate=$ac_cv_path_PSDelegate |
| 33163 | if test -n "$PSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33165 | $as_echo "$PSDelegate" >&6; } |
| 33166 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33168 | $as_echo "no" >&6; } |
| 33169 | fi |
| 33170 | |
| 33171 | |
| 33172 | test -n "$PSDelegate" && break |
| 33173 | done |
| 33174 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 33175 | |
| 33176 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 33177 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33179 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33180 | if ${ac_cv_path_RLEEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33181 | $as_echo_n "(cached) " >&6 |
| 33182 | else |
| 33183 | case $RLEEncodeDelegate in |
| 33184 | [\\/]* | ?:[\\/]*) |
| 33185 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 33186 | ;; |
| 33187 | *) |
| 33188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33189 | for as_dir in $PATH |
| 33190 | do |
| 33191 | IFS=$as_save_IFS |
| 33192 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33193 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33195 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33197 | break 2 |
| 33198 | fi |
| 33199 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33200 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33201 | IFS=$as_save_IFS |
| 33202 | |
| 33203 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 33204 | ;; |
| 33205 | esac |
| 33206 | fi |
| 33207 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 33208 | if test -n "$RLEEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33210 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 33211 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33213 | $as_echo "no" >&6; } |
| 33214 | fi |
| 33215 | |
| 33216 | |
| 33217 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 33218 | set dummy "$RMDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33220 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33221 | if ${ac_cv_path_RMDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33222 | $as_echo_n "(cached) " >&6 |
| 33223 | else |
| 33224 | case $RMDelegate in |
| 33225 | [\\/]* | ?:[\\/]*) |
| 33226 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 33227 | ;; |
| 33228 | *) |
| 33229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33230 | for as_dir in $PATH |
| 33231 | do |
| 33232 | IFS=$as_save_IFS |
| 33233 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33234 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33236 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33238 | break 2 |
| 33239 | fi |
| 33240 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33241 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33242 | IFS=$as_save_IFS |
| 33243 | |
| 33244 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 33245 | ;; |
| 33246 | esac |
| 33247 | fi |
| 33248 | RMDelegate=$ac_cv_path_RMDelegate |
| 33249 | if test -n "$RMDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33251 | $as_echo "$RMDelegate" >&6; } |
| 33252 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33254 | $as_echo "no" >&6; } |
| 33255 | fi |
| 33256 | |
| 33257 | |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33258 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. |
| 33259 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 |
| 33260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33261 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33262 | if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33263 | $as_echo_n "(cached) " >&6 |
| 33264 | else |
| 33265 | case $RSVGDecodeDelegate in |
| 33266 | [\\/]* | ?:[\\/]*) |
| 33267 | ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. |
| 33268 | ;; |
| 33269 | *) |
| 33270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33271 | for as_dir in $PATH |
| 33272 | do |
| 33273 | IFS=$as_save_IFS |
| 33274 | test -z "$as_dir" && as_dir=. |
| 33275 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33277 | ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33279 | break 2 |
| 33280 | fi |
| 33281 | done |
| 33282 | done |
| 33283 | IFS=$as_save_IFS |
| 33284 | |
| 33285 | test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" |
| 33286 | ;; |
| 33287 | esac |
| 33288 | fi |
| 33289 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate |
| 33290 | if test -n "$RSVGDecodeDelegate"; then |
| 33291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 |
| 33292 | $as_echo "$RSVGDecodeDelegate" >&6; } |
| 33293 | else |
| 33294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33295 | $as_echo "no" >&6; } |
| 33296 | fi |
| 33297 | |
| 33298 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33299 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 33300 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33302 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33303 | if ${ac_cv_path_SCANDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33304 | $as_echo_n "(cached) " >&6 |
| 33305 | else |
| 33306 | case $SCANDecodeDelegate in |
| 33307 | [\\/]* | ?:[\\/]*) |
| 33308 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 33309 | ;; |
| 33310 | *) |
| 33311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33312 | for as_dir in $PATH |
| 33313 | do |
| 33314 | IFS=$as_save_IFS |
| 33315 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33318 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33320 | break 2 |
| 33321 | fi |
| 33322 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33323 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33324 | IFS=$as_save_IFS |
| 33325 | |
| 33326 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 33327 | ;; |
| 33328 | esac |
| 33329 | fi |
| 33330 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 33331 | if test -n "$SCANDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33333 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 33334 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33336 | $as_echo "no" >&6; } |
| 33337 | fi |
| 33338 | |
| 33339 | |
| 33340 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 33341 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33343 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33344 | if ${ac_cv_path_TXTDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33345 | $as_echo_n "(cached) " >&6 |
| 33346 | else |
| 33347 | case $TXTDelegate in |
| 33348 | [\\/]* | ?:[\\/]*) |
| 33349 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 33350 | ;; |
| 33351 | *) |
| 33352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33353 | for as_dir in $PATH |
| 33354 | do |
| 33355 | IFS=$as_save_IFS |
| 33356 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33359 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33361 | break 2 |
| 33362 | fi |
| 33363 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33364 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33365 | IFS=$as_save_IFS |
| 33366 | |
| 33367 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 33368 | ;; |
| 33369 | esac |
| 33370 | fi |
| 33371 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 33372 | if test -n "$TXTDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33374 | $as_echo "$TXTDelegate" >&6; } |
| 33375 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33377 | $as_echo "no" >&6; } |
| 33378 | fi |
| 33379 | |
| 33380 | |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33381 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. |
| 33382 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 |
| 33383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33384 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33385 | if ${ac_cv_path_UniconvertorDelegate+:} false; then : |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33386 | $as_echo_n "(cached) " >&6 |
| 33387 | else |
| 33388 | case $UniconvertorDelegate in |
| 33389 | [\\/]* | ?:[\\/]*) |
| 33390 | ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. |
| 33391 | ;; |
| 33392 | *) |
| 33393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33394 | for as_dir in $PATH |
| 33395 | do |
| 33396 | IFS=$as_save_IFS |
| 33397 | test -z "$as_dir" && as_dir=. |
| 33398 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33400 | ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33402 | break 2 |
| 33403 | fi |
| 33404 | done |
| 33405 | done |
| 33406 | IFS=$as_save_IFS |
| 33407 | |
| 33408 | test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" |
| 33409 | ;; |
| 33410 | esac |
| 33411 | fi |
| 33412 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate |
| 33413 | if test -n "$UniconvertorDelegate"; then |
| 33414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 |
| 33415 | $as_echo "$UniconvertorDelegate" >&6; } |
| 33416 | else |
| 33417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33418 | $as_echo "no" >&6; } |
| 33419 | fi |
| 33420 | |
| 33421 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33422 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 33423 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33425 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33426 | if ${ac_cv_path_WMFDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33427 | $as_echo_n "(cached) " >&6 |
| 33428 | else |
| 33429 | case $WMFDecodeDelegate in |
| 33430 | [\\/]* | ?:[\\/]*) |
| 33431 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 33432 | ;; |
| 33433 | *) |
| 33434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33435 | for as_dir in $PATH |
| 33436 | do |
| 33437 | IFS=$as_save_IFS |
| 33438 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33441 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33443 | break 2 |
| 33444 | fi |
| 33445 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33446 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33447 | IFS=$as_save_IFS |
| 33448 | |
| 33449 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 33450 | ;; |
| 33451 | esac |
| 33452 | fi |
| 33453 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 33454 | if test -n "$WMFDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33456 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 33457 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33459 | $as_echo "no" >&6; } |
| 33460 | fi |
| 33461 | |
| 33462 | |
| 33463 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 33464 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33466 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33467 | if ${ac_cv_path_WWWDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33468 | $as_echo_n "(cached) " >&6 |
| 33469 | else |
| 33470 | case $WWWDecodeDelegate in |
| 33471 | [\\/]* | ?:[\\/]*) |
| 33472 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 33473 | ;; |
| 33474 | *) |
| 33475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33476 | for as_dir in $PATH |
| 33477 | do |
| 33478 | IFS=$as_save_IFS |
| 33479 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33482 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33484 | break 2 |
| 33485 | fi |
| 33486 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33487 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33488 | IFS=$as_save_IFS |
| 33489 | |
| 33490 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 33491 | ;; |
| 33492 | esac |
| 33493 | fi |
| 33494 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 33495 | if test -n "$WWWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33497 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 33498 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33500 | $as_echo "no" >&6; } |
| 33501 | fi |
| 33502 | |
| 33503 | |
| 33504 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 33505 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33507 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33508 | if ${ac_cv_path_XPSDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33509 | $as_echo_n "(cached) " >&6 |
| 33510 | else |
| 33511 | case $XPSDelegate in |
| 33512 | [\\/]* | ?:[\\/]*) |
| 33513 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 33514 | ;; |
| 33515 | *) |
| 33516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33517 | for as_dir in $PATH |
| 33518 | do |
| 33519 | IFS=$as_save_IFS |
| 33520 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33521 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33522 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33523 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33524 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33525 | break 2 |
| 33526 | fi |
| 33527 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33528 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33529 | IFS=$as_save_IFS |
| 33530 | |
| 33531 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 33532 | ;; |
| 33533 | esac |
| 33534 | fi |
| 33535 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 33536 | if test -n "$XPSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33538 | $as_echo "$XPSDelegate" >&6; } |
| 33539 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33541 | $as_echo "no" >&6; } |
| 33542 | fi |
| 33543 | |
| 33544 | |
| 33545 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 33546 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33548 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33549 | if ${ac_cv_path_ZipDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33550 | $as_echo_n "(cached) " >&6 |
| 33551 | else |
| 33552 | case $ZipDelegate in |
| 33553 | [\\/]* | ?:[\\/]*) |
| 33554 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 33555 | ;; |
| 33556 | *) |
| 33557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33558 | for as_dir in $PATH |
| 33559 | do |
| 33560 | IFS=$as_save_IFS |
| 33561 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33564 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33566 | break 2 |
| 33567 | fi |
| 33568 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33569 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33570 | IFS=$as_save_IFS |
| 33571 | |
| 33572 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 33573 | ;; |
| 33574 | esac |
| 33575 | fi |
| 33576 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 33577 | if test -n "$ZipDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33579 | $as_echo "$ZipDelegate" >&6; } |
| 33580 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33582 | $as_echo "no" >&6; } |
| 33583 | fi |
| 33584 | |
| 33585 | |
| 33586 | |
| 33587 | # Prefer lpr to lp; lp needs options tacked on. |
| 33588 | if test "$LPRDelegate" != no; then |
| 33589 | PrintDelegate="$LPRDelegate" |
| 33590 | else |
| 33591 | PrintDelegate="$LPDelegate -c -s" |
| 33592 | fi |
| 33593 | |
| 33594 | |
| 33595 | # Installed ImageMagick utiltity paths |
| 33596 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 33597 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 33598 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 33599 | |
| 33600 | # Set delegate booleans |
| 33601 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 33602 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 33603 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 33604 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 33605 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33606 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33607 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 33608 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33609 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 33610 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 33611 | |
| 33612 | # |
| 33613 | # Test for font directories |
| 33614 | # |
| 33615 | type_include_files='' |
| 33616 | |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 33617 | # Dejavu fonts. |
| 33618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 |
| 33619 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } |
| 33620 | dejavu_font_dir='' |
| 33621 | if test "${with_dejavu_font_dir}" != 'default'; then |
| 33622 | dejavu_font_dir="${with_dejavu_font_dir}/" |
| 33623 | else |
| 33624 | for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do |
| 33625 | if test -f "${font_dir}DejaVuSerif.ttf"; then |
| 33626 | dejavu_font_dir="${font_dir}" |
| 33627 | break 1 |
| 33628 | fi |
| 33629 | done |
| 33630 | fi |
| 33631 | if test "${dejavu_font_dir}x" != 'x'; then |
| 33632 | type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' |
| 33633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 |
| 33634 | $as_echo "$dejavu_font_dir" >&6; } |
| 33635 | else |
| 33636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| 33637 | $as_echo "not found!" >&6; }; |
| 33638 | fi |
| 33639 | |
| 33640 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33641 | # Windows |
| 33642 | windows_font_dir='' |
| 33643 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 33644 | windows_font_dir="${with_windows_font_dir}/" |
| 33645 | fi |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 33646 | if test "${windows_font_dir}x" != 'x'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33647 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 33648 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 33649 | fi |
| 33650 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 33651 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 33652 | fi |
| 33653 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 33654 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 33655 | fi |
| 33656 | fi |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 33657 | if test "${windows_font_dir}x" != 'x'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33658 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 33659 | fi |
| 33660 | |
| 33661 | |
| 33662 | # Ghostscript |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33664 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 33665 | ghostscript_font_dir='' |
| 33666 | if test "${with_gs_font_dir}" != 'default'; then |
| 33667 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 33668 | else |
| 33669 | if test "${native_win32_build}" = 'yes'; then |
| 33670 | # Native Windows Build |
| 33671 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 33672 | if test -f "${font_dir}a010013l.pfb"; then |
| 33673 | ghostscript_font_dir="$font_dir" |
| 33674 | break 1 |
| 33675 | fi |
| 33676 | done |
| 33677 | if test "${PSDelegate}" != 'gswin32c'; then |
| 33678 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 33679 | fi |
| 33680 | else |
| 33681 | # Linux / Mac OS X / Unix Build |
| 33682 | for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do |
| 33683 | if test -f "${font_dir}a010013l.pfb"; then |
| 33684 | ghostscript_font_dir="${font_dir}" |
| 33685 | break 1 |
| 33686 | fi |
| 33687 | done |
| 33688 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 33689 | if test "$PSDelegate" != 'gs'; then |
| 33690 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 33691 | fi |
| 33692 | fi |
| 33693 | fi |
| 33694 | fi |
| 33695 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 33696 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33698 | $as_echo "$ghostscript_font_dir" >&6; } |
| 33699 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33701 | $as_echo "not found!" >&6; }; |
| 33702 | fi |
| 33703 | |
| 33704 | case "${build_os}" in |
| 33705 | mingw* ) |
| 33706 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 33707 | ;; |
| 33708 | esac |
| 33709 | |
| 33710 | |
| 33711 | |
| 33712 | # |
| 33713 | # Handle case where user doesn't want frozen paths |
| 33714 | # |
| 33715 | if test "$with_frozenpaths" != 'yes'; then |
| 33716 | # Re-set delegate definitions to default (no paths) |
| 33717 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33718 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 33719 | BZIPDelegate="$BZIPDelegateDefault" |
| 33720 | BrowseDelegate="$BrowseDelegateDefault" |
| 33721 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 33722 | CatDelegate="$CatDelegateDefault" |
| 33723 | ConvertDelegate="$ConvertDelegateDefault" |
| 33724 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| 33725 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 33726 | EchoDelegate="$EchoDelegateDefault" |
| 33727 | EditorDelegate="$EditorDelegateDefault" |
| 33728 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 33729 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| 33730 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 33731 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 33732 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 33733 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| 33734 | LPDelegate="$LPDelegateDefault" |
| 33735 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" |
| 33736 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" |
| 33737 | LaunchDelegate="$LaunchDelegateDefault" |
| 33738 | MANDelegate="$MANDelegateDefault" |
| 33739 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 33740 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33741 | MogrifyDelegate="$MogrifyDelegateDefault" |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33742 | MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" |
| 33743 | MVDelegate="$MVDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33744 | PCLDelegate="$PCLDelegateDefault" |
| 33745 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 33746 | POVDelegate="$POVDelegateDefault" |
| 33747 | PSDelegate="$PSDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33748 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 33749 | RMDelegate="$RMDelegateDefault" |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 33750 | RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33751 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| 33752 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 33753 | TXTDelegate="$TXTDelegateDefault" |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 33754 | UniconvertorDelegate="$UniconvertorDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33755 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 33756 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 33757 | XPSDelegate="$XPSDelegateDefault" |
| 33758 | ZipDelegate="$ZipDelegateDefault" |
| 33759 | fi |
| 33760 | |
| 33761 | # Delegate substitutions |
| 33762 | |
| 33763 | |
| 33764 | |
| 33765 | |
| 33766 | |
| 33767 | |
| 33768 | |
| 33769 | |
| 33770 | |
| 33771 | |
| 33772 | |
| 33773 | |
| 33774 | |
| 33775 | |
| 33776 | |
| 33777 | |
| 33778 | |
| 33779 | |
| 33780 | |
| 33781 | |
| 33782 | |
| 33783 | |
| 33784 | |
| 33785 | |
| 33786 | |
| 33787 | |
| 33788 | |
| 33789 | |
| 33790 | |
| 33791 | |
| 33792 | |
| 33793 | |
| 33794 | |
| 33795 | |
| 33796 | |
| 33797 | |
| 33798 | |
| 33799 | |
| 33800 | |
| 33801 | |
| 33802 | |
| 33803 | |
| 33804 | # |
| 33805 | # RPM support. |
| 33806 | # |
| 33807 | RPM='' |
| 33808 | for ac_prog in gnutar gtar tar |
| 33809 | do |
| 33810 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 33811 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33813 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33814 | if ${ac_cv_prog_TAR+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33815 | $as_echo_n "(cached) " >&6 |
| 33816 | else |
| 33817 | if test -n "$TAR"; then |
| 33818 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 33819 | else |
| 33820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33821 | for as_dir in $PATH |
| 33822 | do |
| 33823 | IFS=$as_save_IFS |
| 33824 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33827 | ac_cv_prog_TAR="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33829 | break 2 |
| 33830 | fi |
| 33831 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33832 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33833 | IFS=$as_save_IFS |
| 33834 | |
| 33835 | fi |
| 33836 | fi |
| 33837 | TAR=$ac_cv_prog_TAR |
| 33838 | if test -n "$TAR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33840 | $as_echo "$TAR" >&6; } |
| 33841 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33843 | $as_echo "no" >&6; } |
| 33844 | fi |
| 33845 | |
| 33846 | |
| 33847 | test -n "$TAR" && break |
| 33848 | done |
| 33849 | |
| 33850 | for ac_prog in perl |
| 33851 | do |
| 33852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 33853 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33855 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33856 | if ${ac_cv_prog_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33857 | $as_echo_n "(cached) " >&6 |
| 33858 | else |
| 33859 | if test -n "$PERL"; then |
| 33860 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 33861 | else |
| 33862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33863 | for as_dir in $PATH |
| 33864 | do |
| 33865 | IFS=$as_save_IFS |
| 33866 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33869 | ac_cv_prog_PERL="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33870 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33871 | break 2 |
| 33872 | fi |
| 33873 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33874 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33875 | IFS=$as_save_IFS |
| 33876 | |
| 33877 | fi |
| 33878 | fi |
| 33879 | PERL=$ac_cv_prog_PERL |
| 33880 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33882 | $as_echo "$PERL" >&6; } |
| 33883 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33885 | $as_echo "no" >&6; } |
| 33886 | fi |
| 33887 | |
| 33888 | |
| 33889 | test -n "$PERL" && break |
| 33890 | done |
| 33891 | |
| 33892 | for ac_prog in rpmbuild rpm |
| 33893 | do |
| 33894 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 33895 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33897 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33898 | if ${ac_cv_prog_RPM+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33899 | $as_echo_n "(cached) " >&6 |
| 33900 | else |
| 33901 | if test -n "$RPM"; then |
| 33902 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 33903 | else |
| 33904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33905 | for as_dir in $PATH |
| 33906 | do |
| 33907 | IFS=$as_save_IFS |
| 33908 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33909 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33911 | ac_cv_prog_RPM="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33913 | break 2 |
| 33914 | fi |
| 33915 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33916 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33917 | IFS=$as_save_IFS |
| 33918 | |
| 33919 | fi |
| 33920 | fi |
| 33921 | RPM=$ac_cv_prog_RPM |
| 33922 | if test -n "$RPM"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33924 | $as_echo "$RPM" >&6; } |
| 33925 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33927 | $as_echo "no" >&6; } |
| 33928 | fi |
| 33929 | |
| 33930 | |
| 33931 | test -n "$RPM" && break |
| 33932 | done |
| 33933 | |
| 33934 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33935 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 33936 | |
| 33937 | |
| 33938 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 33939 | |
| 33940 | |
| 33941 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 33942 | |
| 33943 | |
| 33944 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 33945 | |
| 33946 | |
| 33947 | if test "x$RPM" != "x" ; then |
| 33948 | RPM_DELEGATE_TRUE= |
| 33949 | RPM_DELEGATE_FALSE='#' |
| 33950 | else |
| 33951 | RPM_DELEGATE_TRUE='#' |
| 33952 | RPM_DELEGATE_FALSE= |
| 33953 | fi |
| 33954 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33955 | |
| 33956 | # |
| 33957 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 33958 | # |
| 33959 | P7ZIP='' |
| 33960 | for ac_prog in 7za |
| 33961 | do |
| 33962 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 33963 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33965 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33966 | if ${ac_cv_prog_P7ZIP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33967 | $as_echo_n "(cached) " >&6 |
| 33968 | else |
| 33969 | if test -n "$P7ZIP"; then |
| 33970 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 33971 | else |
| 33972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33973 | for as_dir in $PATH |
| 33974 | do |
| 33975 | IFS=$as_save_IFS |
| 33976 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 33979 | ac_cv_prog_P7ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33981 | break 2 |
| 33982 | fi |
| 33983 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33984 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33985 | IFS=$as_save_IFS |
| 33986 | |
| 33987 | fi |
| 33988 | fi |
| 33989 | P7ZIP=$ac_cv_prog_P7ZIP |
| 33990 | if test -n "$P7ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33992 | $as_echo "$P7ZIP" >&6; } |
| 33993 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33995 | $as_echo "no" >&6; } |
| 33996 | fi |
| 33997 | |
| 33998 | |
| 33999 | test -n "$P7ZIP" && break |
| 34000 | done |
| 34001 | |
| 34002 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34003 | if test "x$P7ZIP" != "x" ; then |
| 34004 | P7ZIP_DELEGATE_TRUE= |
| 34005 | P7ZIP_DELEGATE_FALSE='#' |
| 34006 | else |
| 34007 | P7ZIP_DELEGATE_TRUE='#' |
| 34008 | P7ZIP_DELEGATE_FALSE= |
| 34009 | fi |
| 34010 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34011 | |
| 34012 | # |
| 34013 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 34014 | # |
| 34015 | ZIP='' |
| 34016 | for ac_prog in zip |
| 34017 | do |
| 34018 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34019 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34021 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34022 | if ${ac_cv_prog_ZIP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34023 | $as_echo_n "(cached) " >&6 |
| 34024 | else |
| 34025 | if test -n "$ZIP"; then |
| 34026 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 34027 | else |
| 34028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34029 | for as_dir in $PATH |
| 34030 | do |
| 34031 | IFS=$as_save_IFS |
| 34032 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34033 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34035 | ac_cv_prog_ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34037 | break 2 |
| 34038 | fi |
| 34039 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34040 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34041 | IFS=$as_save_IFS |
| 34042 | |
| 34043 | fi |
| 34044 | fi |
| 34045 | ZIP=$ac_cv_prog_ZIP |
| 34046 | if test -n "$ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34048 | $as_echo "$ZIP" >&6; } |
| 34049 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34051 | $as_echo "no" >&6; } |
| 34052 | fi |
| 34053 | |
| 34054 | |
| 34055 | test -n "$ZIP" && break |
| 34056 | done |
| 34057 | |
| 34058 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34059 | if test "x$ZIP" != "x" ; then |
| 34060 | ZIP_DELEGATE_TRUE= |
| 34061 | ZIP_DELEGATE_FALSE='#' |
| 34062 | else |
| 34063 | ZIP_DELEGATE_TRUE='#' |
| 34064 | ZIP_DELEGATE_FALSE= |
| 34065 | fi |
| 34066 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34067 | |
| 34068 | # |
| 34069 | # GhostPCL related configuration. |
| 34070 | # |
| 34071 | PCLColorDevice=ppmraw |
| cristy | 8bc8408 | 2011-09-07 13:57:00 +0000 | [diff] [blame] | 34072 | PCLCMYKDevice=pamcmyk32 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34073 | PCLMonoDevice=pbmraw |
| 34074 | if test -z "$PCLVersion"; then |
| 34075 | PCLVersion='unknown' |
| 34076 | fi |
| 34077 | if test $have_pcl = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34079 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34081 | $as_echo_n "checking for PCL... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34083 | $as_echo "" >&6; } |
| 34084 | # PCLColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34086 | $as_echo_n "checking for pcl color device... " >&6; } |
| 34087 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34088 | : |
| 34089 | else |
| 34090 | PCLColorDevice=ppmraw |
| 34091 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34093 | $as_echo "$PCLColorDevice" >&6; } |
| 34094 | |
| 34095 | # PCLCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34097 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 34098 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34099 | : |
| 34100 | else |
| 34101 | PCLCMYKDevice=$PCLColorDevice |
| 34102 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34104 | $as_echo "$PCLCMYKDevice" >&6; } |
| 34105 | |
| 34106 | # PCLMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34108 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 34109 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34110 | : |
| 34111 | else |
| 34112 | PCLMonoDevice=$PCLColorDevice |
| 34113 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34115 | $as_echo "$PCLMonoDevice" >&6; } |
| 34116 | fi |
| 34117 | |
| 34118 | |
| 34119 | |
| 34120 | |
| 34121 | |
| 34122 | |
| 34123 | # |
| 34124 | # GhostXPS related configuration. |
| 34125 | # |
| 34126 | XPSColorDevice=ppmraw |
| 34127 | XPSCMYKDevice=bmpsep8 |
| 34128 | XPSMonoDevice=pbmraw |
| 34129 | if test -z "$XPSVersion"; then |
| 34130 | XPSVersion='unknown' |
| 34131 | fi |
| 34132 | if test $have_xps = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34134 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34136 | $as_echo_n "checking for XPS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34138 | $as_echo "" >&6; } |
| 34139 | # XPSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34141 | $as_echo_n "checking for xps color device... " >&6; } |
| 34142 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34143 | : |
| 34144 | else |
| 34145 | XPSColorDevice=ppmraw |
| 34146 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34148 | $as_echo "$XPSColorDevice" >&6; } |
| 34149 | |
| 34150 | # XPSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34152 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 34153 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34154 | : |
| 34155 | else |
| 34156 | XPSCMYKDevice=$XPSColorDevice |
| 34157 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34159 | $as_echo "$XPSCMYKDevice" >&6; } |
| 34160 | |
| 34161 | # XPSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34163 | $as_echo_n "checking for xps mono device... " >&6; } |
| 34164 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34165 | : |
| 34166 | else |
| 34167 | XPSMonoDevice=$XPSColorDevice |
| 34168 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34170 | $as_echo "$XPSMonoDevice" >&6; } |
| 34171 | fi |
| 34172 | |
| 34173 | |
| 34174 | |
| 34175 | |
| 34176 | |
| 34177 | |
| 34178 | # |
| 34179 | # Ghostscript related configuration. |
| 34180 | # |
| cristy | a97426c | 2011-02-04 01:41:27 +0000 | [diff] [blame] | 34181 | GSAlphaDevice=pngalpha |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34182 | GSColorDevice=pnmraw |
| 34183 | GSCMYKDevice=pam |
| 34184 | GSMonoDevice=pbmraw |
| 34185 | GSPDFDevice=pdfwrite |
| 34186 | GSPSDevice=pswrite |
| 34187 | GSEPSDevice=epswrite |
| 34188 | GSVersion='unknown' |
| 34189 | if test $have_gs = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34191 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34193 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34195 | $as_echo "" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34197 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 34198 | if GSVersion=`$PSDelegate --version`; then |
| 34199 | : |
| 34200 | else |
| 34201 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 34202 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34204 | $as_echo "$GSVersion" >&6; } |
| 34205 | |
| 34206 | # GSAlphaDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34208 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 34209 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34210 | : |
| 34211 | else |
| 34212 | GSAlphaDevice=pnmraw |
| 34213 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34215 | $as_echo "$GSAlphaDevice" >&6; } |
| 34216 | |
| 34217 | # GSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34219 | $as_echo_n "checking for gs color device... " >&6; } |
| 34220 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34221 | : |
| 34222 | else |
| 34223 | GSColorDevice=pnmraw |
| 34224 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34226 | $as_echo "$GSColorDevice" >&6; } |
| 34227 | |
| 34228 | # GSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34230 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 34231 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34232 | : |
| 34233 | else |
| 34234 | GSCMYKDevice=bmpsep8 |
| 34235 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34237 | $as_echo "$GSCMYKDevice" >&6; } |
| 34238 | |
| 34239 | # GSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34241 | $as_echo_n "checking for gs mono device... " >&6; } |
| 34242 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34243 | : |
| 34244 | else |
| 34245 | GSMonoDevice=$GSColorDevice |
| 34246 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34248 | $as_echo "$GSMonoDevice" >&6; } |
| 34249 | |
| 34250 | # GSPDFDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34252 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 34253 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34254 | : |
| 34255 | else |
| 34256 | GSPDFDevice=nodevice |
| 34257 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34259 | $as_echo "$GSPDFDevice" >&6; } |
| 34260 | |
| 34261 | # GSPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34263 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 34264 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34265 | : |
| 34266 | else |
| 34267 | GSPSDevice=nodevice |
| 34268 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34270 | $as_echo "$GSPSDevice" >&6; } |
| 34271 | |
| 34272 | # GSEPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34274 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 34275 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 34276 | : |
| 34277 | else |
| 34278 | GSEPSDevice=nodevice |
| 34279 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34281 | $as_echo "$GSEPSDevice" >&6; } |
| 34282 | fi |
| 34283 | |
| 34284 | |
| 34285 | |
| 34286 | |
| 34287 | |
| 34288 | |
| 34289 | |
| 34290 | |
| 34291 | |
| 34292 | |
| 34293 | # |
| 34294 | # PerlMagick-related configuration |
| 34295 | # |
| 34296 | |
| 34297 | # Look for PERL if PerlMagick requested |
| 34298 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 34299 | have_perl='no' |
| 34300 | if test "$with_perl" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34302 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34304 | $as_echo_n "checking for Perl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34306 | $as_echo "" >&6; } |
| 34307 | if test "$with_perl" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34309 | $as_echo_n "checking for perl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34310 | if ${ac_cv_path_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34311 | $as_echo_n "(cached) " >&6 |
| 34312 | else |
| 34313 | ac_cv_path_PERL="$with_perl" |
| 34314 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34316 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 34317 | PERL=$ac_cv_path_PERL |
| 34318 | have_perl="$ac_cv_path_PERL" |
| 34319 | else |
| 34320 | for ac_prog in perl perl5 |
| 34321 | do |
| 34322 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34323 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34325 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34326 | if ${ac_cv_path_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34327 | $as_echo_n "(cached) " >&6 |
| 34328 | else |
| 34329 | case $PERL in |
| 34330 | [\\/]* | ?:[\\/]*) |
| 34331 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 34332 | ;; |
| 34333 | *) |
| 34334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34335 | for as_dir in $PATH |
| 34336 | do |
| 34337 | IFS=$as_save_IFS |
| 34338 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34339 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 34341 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34343 | break 2 |
| 34344 | fi |
| 34345 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34346 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34347 | IFS=$as_save_IFS |
| 34348 | |
| 34349 | ;; |
| 34350 | esac |
| 34351 | fi |
| 34352 | PERL=$ac_cv_path_PERL |
| 34353 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34355 | $as_echo "$PERL" >&6; } |
| 34356 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34358 | $as_echo "no" >&6; } |
| 34359 | fi |
| 34360 | |
| 34361 | |
| 34362 | test -n "$PERL" && break |
| 34363 | done |
| 34364 | if test "$ac_cv_path_PERL"; then |
| 34365 | have_perl="$ac_cv_path_PERL" |
| 34366 | fi |
| 34367 | fi |
| 34368 | fi |
| 34369 | |
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 34370 | if test "$with_perl" != 'yes' ; then |
| 34371 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " |
| 34372 | fi |
| 34373 | |
| 34374 | PERL_SUPPORTS_DESTDIR='no' |
| 34375 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34376 | with_perl_static='no' |
| 34377 | with_perl_dynamic='no' |
| 34378 | if test "$have_perl" != 'no'; then |
| 34379 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 34380 | with_perl_static='yes' |
| 34381 | fi |
| 34382 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 34383 | with_perl_dynamic='yes' |
| 34384 | fi |
| 34385 | # Is PERL's MakeMaker new enough to support DESTDIR? |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34386 | |
| 34387 | |
| 34388 | |
| 34389 | |
| 34390 | if test -n "$PERL"; then : |
| 34391 | |
| 34392 | ax_perl_version="5.8.1" |
| 34393 | |
| 34394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 |
| 34395 | $as_echo_n "checking for perl version... " >&6; } |
| 34396 | |
| 34397 | perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` |
| 34398 | |
| 34399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 |
| 34400 | $as_echo "$perl_version" >&6; } |
| 34401 | |
| 34402 | PERL_VERSION=$perl_version |
| 34403 | |
| 34404 | |
| 34405 | |
| 34406 | |
| 34407 | |
| 34408 | # Used to indicate true or false condition |
| 34409 | ax_compare_version=false |
| 34410 | |
| 34411 | # Convert the two version strings to be compared into a format that |
| 34412 | # allows a simple string comparison. The end result is that a version |
| 34413 | # string of the form 1.12.5-r617 will be converted to the form |
| 34414 | # 0001001200050617. In other words, each number is zero padded to four |
| 34415 | # digits, and non digits are removed. |
| 34416 | |
| 34417 | ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 34418 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 34419 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34420 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34421 | -e 's/[^0-9]//g'` |
| 34422 | |
| 34423 | |
| 34424 | ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 34425 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 34426 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34427 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 34428 | -e 's/[^0-9]//g'` |
| 34429 | |
| 34430 | |
| 34431 | ax_compare_version=`echo "x$ax_compare_version_A |
| 34432 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` |
| 34433 | |
| 34434 | |
| 34435 | |
| 34436 | if test "$ax_compare_version" = "true" ; then |
| 34437 | |
| 34438 | : |
| 34439 | PERL_SUPPORTS_DESTDIR='yes' |
| 34440 | |
| 34441 | else |
| 34442 | : |
| 34443 | PERL_SUPPORTS_DESTDIR='no' |
| 34444 | |
| 34445 | fi |
| 34446 | |
| 34447 | |
| 34448 | else |
| 34449 | |
| 34450 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 |
| 34451 | $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} |
| 34452 | PERL_SUPPORTS_DESTDIR='no' |
| 34453 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34454 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34455 | |
| 34456 | fi |
| 34457 | if test "$have_perl" != 'no'; then |
| 34458 | WITH_PERL_TRUE= |
| 34459 | WITH_PERL_FALSE='#' |
| 34460 | else |
| 34461 | WITH_PERL_TRUE='#' |
| 34462 | WITH_PERL_FALSE= |
| 34463 | fi |
| 34464 | |
| 34465 | if test $with_perl_static = 'yes'; then |
| 34466 | WITH_PERL_STATIC_TRUE= |
| 34467 | WITH_PERL_STATIC_FALSE='#' |
| 34468 | else |
| 34469 | WITH_PERL_STATIC_TRUE='#' |
| 34470 | WITH_PERL_STATIC_FALSE= |
| 34471 | fi |
| 34472 | |
| 34473 | if test $with_perl_dynamic = 'yes'; then |
| 34474 | WITH_PERL_DYNAMIC_TRUE= |
| 34475 | WITH_PERL_DYNAMIC_FALSE='#' |
| 34476 | else |
| 34477 | WITH_PERL_DYNAMIC_TRUE='#' |
| 34478 | WITH_PERL_DYNAMIC_FALSE= |
| 34479 | fi |
| 34480 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34481 | |
| 34482 | |
| 34483 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 34484 | MAGICKCORE_PATH="${LIB_DIR}" |
| 34485 | if test $with_perl_static = 'yes'; then |
| 34486 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 34487 | libtool_objdir=$objdir |
| 34488 | |
| 34489 | # Linker search path to library, followed by -lMagickCore |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 34490 | MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34491 | fi |
| 34492 | |
| 34493 | |
| 34494 | # Create a simple string containing format names for all delegate libraries |
| 34495 | DELEGATES='' |
| 34496 | if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi |
| 34497 | if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi |
| 34498 | if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi |
| 34499 | if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi |
| 34500 | if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi |
| 34501 | if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi |
| 34502 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi |
| 34503 | if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi |
| 34504 | if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi |
| 34505 | if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi |
| 34506 | if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi |
| 34507 | if test "$have_jpeg" = 'yes'; then |
| 34508 | DELEGATES="$DELEGATES jpeg"; |
| 34509 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi |
| 34510 | fi |
| 34511 | if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 34512 | if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34513 | if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi |
| 34514 | if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 34515 | if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34516 | if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi |
| 34517 | if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi |
| 34518 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi |
| 34519 | if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi |
| 34520 | if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi |
| 34521 | if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi |
| 34522 | if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi |
| 34523 | if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi |
| 34524 | if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi |
| 34525 | |
| 34526 | |
| 34527 | |
| 34528 | # |
| 34529 | # Handle special compiler flags |
| 34530 | # |
| 34531 | |
| 34532 | # Add '-p' if prof source profiling support enabled |
| 34533 | if test "$enable_prof" = 'yes'; then |
| 34534 | CFLAGS="-p $CFLAGS" |
| 34535 | CXXFLAGS="-p $CXXFLAGS" |
| 34536 | LDFLAGS="-p $LDFLAGS" |
| 34537 | fi |
| 34538 | |
| 34539 | # Add '-pg' if gprof source profiling support enabled |
| 34540 | if test "$enable_gprof" = 'yes'; then |
| 34541 | CFLAGS="-pg $CFLAGS" |
| 34542 | CXXFLAGS="-pg $CXXFLAGS" |
| 34543 | LDFLAGS="-pg $LDFLAGS" |
| 34544 | fi |
| 34545 | |
| 34546 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 34547 | # This is a gcc-specific feature |
| 34548 | if test "$enable_gcov" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34550 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34551 | if ${ac_cv_lib_gcov__gcov_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34552 | $as_echo_n "(cached) " >&6 |
| 34553 | else |
| 34554 | ac_check_lib_save_LIBS=$LIBS |
| 34555 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34557 | /* end confdefs.h. */ |
| 34558 | |
| 34559 | /* Override any GCC internal prototype to avoid an error. |
| 34560 | Use char because int might match the return type of a GCC |
| 34561 | builtin and then its argument prototype would still apply. */ |
| 34562 | #ifdef __cplusplus |
| 34563 | extern "C" |
| 34564 | #endif |
| 34565 | char _gcov_init (); |
| 34566 | int |
| 34567 | main () |
| 34568 | { |
| 34569 | return _gcov_init (); |
| 34570 | ; |
| 34571 | return 0; |
| 34572 | } |
| 34573 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34574 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34575 | ac_cv_lib_gcov__gcov_init=yes |
| 34576 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34577 | ac_cv_lib_gcov__gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34578 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34579 | rm -f core conftest.err conftest.$ac_objext \ |
| 34580 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34581 | LIBS=$ac_check_lib_save_LIBS |
| 34582 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34584 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34585 | if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34586 | cat >>confdefs.h <<_ACEOF |
| 34587 | #define HAVE_LIBGCOV 1 |
| 34588 | _ACEOF |
| 34589 | |
| 34590 | LIBS="-lgcov $LIBS" |
| 34591 | |
| 34592 | fi |
| 34593 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34595 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34596 | if ${ac_cv_lib_gcov___gcov_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34597 | $as_echo_n "(cached) " >&6 |
| 34598 | else |
| 34599 | ac_check_lib_save_LIBS=$LIBS |
| 34600 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34602 | /* end confdefs.h. */ |
| 34603 | |
| 34604 | /* Override any GCC internal prototype to avoid an error. |
| 34605 | Use char because int might match the return type of a GCC |
| 34606 | builtin and then its argument prototype would still apply. */ |
| 34607 | #ifdef __cplusplus |
| 34608 | extern "C" |
| 34609 | #endif |
| 34610 | char __gcov_init (); |
| 34611 | int |
| 34612 | main () |
| 34613 | { |
| 34614 | return __gcov_init (); |
| 34615 | ; |
| 34616 | return 0; |
| 34617 | } |
| 34618 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34619 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34620 | ac_cv_lib_gcov___gcov_init=yes |
| 34621 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34622 | ac_cv_lib_gcov___gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34623 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34624 | rm -f core conftest.err conftest.$ac_objext \ |
| 34625 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34626 | LIBS=$ac_check_lib_save_LIBS |
| 34627 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34629 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34630 | if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34631 | cat >>confdefs.h <<_ACEOF |
| 34632 | #define HAVE_LIBGCOV 1 |
| 34633 | _ACEOF |
| 34634 | |
| 34635 | LIBS="-lgcov $LIBS" |
| 34636 | |
| 34637 | fi |
| 34638 | |
| 34639 | case "$target_os" in |
| 34640 | darwin*) |
| 34641 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 34642 | ;; |
| 34643 | *) |
| 34644 | OSX_GCOV_LDFLAG="" |
| 34645 | ;; |
| 34646 | esac |
| 34647 | |
| 34648 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 34649 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 34650 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 34651 | fi |
| 34652 | |
| 34653 | # |
| 34654 | # Build library dependency list for libMagickCore |
| 34655 | # |
| 34656 | |
| 34657 | MAGICK_LIBLTDL='' # Libltdl for build |
| 34658 | MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build |
| 34659 | MAGICK_LTDLDEPS='' # extra libltdl dependencies |
| 34660 | if test "$with_ltdl" != 'no' |
| 34661 | then |
| 34662 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then |
| 34663 | MAGICK_API_LIBLTDL='-lltdl' |
| 34664 | fi |
| 34665 | MAGICK_LIBLTDL=${LIBLTDL} |
| 34666 | MAGICK_LTDLDEPS=${LTDLDEPS} |
| 34667 | fi |
| 34668 | |
| 34669 | |
| 34670 | |
| 34671 | if test "$with_modules" != 'no'; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 34672 | MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34673 | else |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 34674 | MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34675 | fi |
| 34676 | |
| 34677 | |
| 34678 | # |
| 34679 | # Remove extraneous spaces from output variables (asthetic) |
| 34680 | # |
| 34681 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 34682 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 34683 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 34684 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 34685 | |
| 34686 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 34687 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 34688 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 34689 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| 34690 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` |
| 34691 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 34692 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 34693 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 34694 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 34695 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 34696 | |
| 34697 | # Pass only user-provided LIBS as "global" libraries |
| 34698 | LIBS=$USER_LIBS |
| 34699 | |
| 34700 | #AC_SUBST(CPPFLAGS) |
| 34701 | |
| 34702 | #AC_SUBST(LDFLAGS) |
| 34703 | #AC_SUBST(X_PRE_LIBS) |
| 34704 | #AC_SUBST(X_LIBS) |
| 34705 | #AC_SUBST(X_EXTRA_LIBS) |
| 34706 | |
| 34707 | MAGICK_CFLAGS=$CFLAGS |
| 34708 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 34709 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 34710 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 34711 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| 34712 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" |
| 34713 | |
| 34714 | |
| 34715 | |
| 34716 | |
| 34717 | |
| 34718 | |
| 34719 | |
| 34720 | |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 34721 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34722 | # Set configured scripts to executable. |
| 34723 | ac_config_commands="$ac_config_commands default" |
| 34724 | |
| 34725 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 34726 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34727 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 34728 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34729 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 34730 | |
| 34731 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 34732 | |
| 34733 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34735 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34737 | $as_echo "Update ImageMagick configuration" >&6; } |
| 34738 | cat >confcache <<\_ACEOF |
| 34739 | # This file is a shell script that caches the results of configure |
| 34740 | # tests run on this system so they can be shared between configure |
| 34741 | # scripts and configure runs, see configure's option --config-cache. |
| 34742 | # It is not useful on other systems. If it contains results you don't |
| 34743 | # want to keep, you may remove or edit it. |
| 34744 | # |
| 34745 | # config.status only pays attention to the cache file if you give it |
| 34746 | # the --recheck option to rerun configure. |
| 34747 | # |
| 34748 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 34749 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34750 | # following values. |
| 34751 | |
| 34752 | _ACEOF |
| 34753 | |
| 34754 | # The following way of writing the cache mishandles newlines in values, |
| 34755 | # but we know of no workaround that is simple, portable, and efficient. |
| 34756 | # So, we kill variables containing newlines. |
| 34757 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 34758 | # and sets the high bit in the cache file unless we assign to the vars. |
| 34759 | ( |
| 34760 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34761 | eval ac_val=\$$ac_var |
| 34762 | case $ac_val in #( |
| 34763 | *${as_nl}*) |
| 34764 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34765 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34766 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 34767 | esac |
| 34768 | case $ac_var in #( |
| 34769 | _ | IFS | as_nl) ;; #( |
| 34770 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34771 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34772 | esac ;; |
| 34773 | esac |
| 34774 | done |
| 34775 | |
| 34776 | (set) 2>&1 | |
| 34777 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34778 | *${as_nl}ac_space=\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34779 | # `set' does not quote correctly, so add quotes: double-quote |
| 34780 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34781 | sed -n \ |
| 34782 | "s/'/'\\\\''/g; |
| 34783 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 34784 | ;; #( |
| 34785 | *) |
| 34786 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 34787 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 34788 | ;; |
| 34789 | esac | |
| 34790 | sort |
| 34791 | ) | |
| 34792 | sed ' |
| 34793 | /^ac_cv_env_/b end |
| 34794 | t clear |
| 34795 | :clear |
| 34796 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 34797 | t end |
| 34798 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34799 | :end' >>confcache |
| 34800 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34801 | if test -w "$cache_file"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34802 | if test "x$cache_file" != "x/dev/null"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34803 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34804 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34805 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 34806 | cat confcache >"$cache_file" |
| 34807 | else |
| 34808 | case $cache_file in #( |
| 34809 | */* | ?:*) |
| 34810 | mv -f confcache "$cache_file"$$ && |
| 34811 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 34812 | *) |
| 34813 | mv -f confcache "$cache_file" ;; |
| 34814 | esac |
| 34815 | fi |
| 34816 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34817 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34818 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34819 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 34820 | fi |
| 34821 | fi |
| 34822 | rm -f confcache |
| 34823 | |
| 34824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34825 | # Let make expand exec_prefix. |
| 34826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34827 | |
| 34828 | DEFS=-DHAVE_CONFIG_H |
| 34829 | |
| 34830 | ac_libobjs= |
| 34831 | ac_ltlibobjs= |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34832 | U= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34833 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34834 | # 1. Remove the extension, and $U if already installed. |
| 34835 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34836 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 34837 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34838 | # will be set to the directory where LIBOBJS objects are built. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34839 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34840 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34841 | done |
| 34842 | LIBOBJS=$ac_libobjs |
| 34843 | |
| 34844 | LTLIBOBJS=$ac_ltlibobjs |
| 34845 | |
| 34846 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34847 | if test -n "$EXEEXT"; then |
| 34848 | am__EXEEXT_TRUE= |
| 34849 | am__EXEEXT_FALSE='#' |
| 34850 | else |
| 34851 | am__EXEEXT_TRUE='#' |
| 34852 | am__EXEEXT_FALSE= |
| 34853 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34854 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34855 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34856 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34857 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34858 | fi |
| 34859 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34860 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34861 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34862 | fi |
| 34863 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34864 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34865 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34866 | fi |
| 34867 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34868 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34869 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34870 | fi |
| 34871 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34872 | as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34873 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34874 | fi |
| 34875 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34876 | as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34877 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34878 | fi |
| 34879 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34880 | as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34881 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34882 | fi |
| 34883 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34884 | as_fn_error $? "conditional \"USING_CL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34885 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34886 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34887 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34888 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34889 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34890 | fi |
| 34891 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34892 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34893 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34894 | fi |
| 34895 | LT_CONFIG_H=config/config.h |
| 34896 | |
| 34897 | _ltdl_libobjs= |
| 34898 | _ltdl_ltlibobjs= |
| 34899 | if test -n "$_LT_LIBOBJS"; then |
| 34900 | # Remove the extension. |
| 34901 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 34902 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
| 34903 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
| 34904 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
| 34905 | done |
| 34906 | fi |
| 34907 | ltdl_LIBOBJS=$_ltdl_libobjs |
| 34908 | |
| 34909 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
| 34910 | |
| 34911 | |
| 34912 | if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34913 | as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34914 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34915 | fi |
| 34916 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34917 | as_fn_error $? "conditional \"WITH_MODULES\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34918 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34919 | fi |
| 34920 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34921 | as_fn_error $? "conditional \"WITH_LTDL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34922 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34923 | fi |
| 34924 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34925 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34926 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34927 | fi |
| 34928 | |
| 34929 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34930 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34931 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34932 | fi |
| 34933 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34934 | as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34935 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34936 | fi |
| 34937 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34938 | as_fn_error $? "conditional \"HasUMEM\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34939 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34940 | fi |
| 34941 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34942 | as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34943 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34944 | fi |
| 34945 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34946 | as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34947 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34948 | fi |
| 34949 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34950 | as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34951 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34952 | fi |
| 34953 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34954 | as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34955 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34956 | fi |
| 34957 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34958 | as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34959 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34960 | fi |
| 34961 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34962 | as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34963 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34964 | fi |
| 34965 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34966 | as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34967 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34968 | fi |
| 34969 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34970 | as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34971 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34972 | fi |
| 34973 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34974 | as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34975 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34976 | fi |
| 34977 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34978 | as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34979 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34980 | fi |
| 34981 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34982 | as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34983 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34984 | fi |
| 34985 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34986 | as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34987 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34988 | fi |
| 34989 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34990 | as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34991 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34992 | fi |
| 34993 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34994 | as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34995 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 34996 | fi |
| 34997 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34998 | as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34999 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35000 | fi |
| 35001 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35002 | as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35003 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35004 | fi |
| 35005 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35006 | as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35007 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35008 | fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 35009 | if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then |
| 35010 | as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. |
| 35011 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35012 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35013 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35014 | as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35015 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35016 | fi |
| 35017 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35018 | as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35019 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35020 | fi |
| 35021 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35022 | as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35023 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35024 | fi |
| 35025 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35026 | as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35027 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35028 | fi |
| 35029 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35030 | as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35031 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35032 | fi |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 35033 | if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then |
| 35034 | as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. |
| 35035 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35036 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35037 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35038 | as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35039 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35040 | fi |
| 35041 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35042 | as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35043 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35044 | fi |
| 35045 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35046 | as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35047 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35048 | fi |
| 35049 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35050 | as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35051 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35052 | fi |
| 35053 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35054 | as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35055 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35056 | fi |
| 35057 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35058 | as_fn_error $? "conditional \"WITH_PERL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35059 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35060 | fi |
| 35061 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35062 | as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35063 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35064 | fi |
| 35065 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35066 | as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35067 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35068 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35069 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35070 | : "${CONFIG_STATUS=./config.status}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35071 | ac_write_fail=0 |
| 35072 | ac_clean_files_save=$ac_clean_files |
| 35073 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35074 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35075 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35076 | as_write_fail=0 |
| 35077 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35078 | #! $SHELL |
| 35079 | # Generated by $as_me. |
| 35080 | # Run this file to recreate the current configuration. |
| 35081 | # Compiler output produced by configure, useful for debugging |
| 35082 | # configure, is in config.log if it exists. |
| 35083 | |
| 35084 | debug=false |
| 35085 | ac_cs_recheck=false |
| 35086 | ac_cs_silent=false |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35087 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35088 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 35089 | export SHELL |
| 35090 | _ASEOF |
| 35091 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 35092 | ## -------------------- ## |
| 35093 | ## M4sh Initialization. ## |
| 35094 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35095 | |
| 35096 | # Be more Bourne compatible |
| 35097 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35098 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35099 | emulate sh |
| 35100 | NULLCMD=: |
| 35101 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 35102 | # is contrary to our usage. Disable this feature. |
| 35103 | alias -g '${1+"$@"}'='"$@"' |
| 35104 | setopt NO_GLOB_SUBST |
| 35105 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35106 | case `(set -o) 2>/dev/null` in #( |
| 35107 | *posix*) : |
| 35108 | set -o posix ;; #( |
| 35109 | *) : |
| 35110 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35111 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35112 | fi |
| 35113 | |
| 35114 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35115 | as_nl=' |
| 35116 | ' |
| 35117 | export as_nl |
| 35118 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 35119 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 35120 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 35121 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35122 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 35123 | # but without wasting forks for bash or zsh. |
| 35124 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 35125 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 35126 | as_echo='print -r --' |
| 35127 | as_echo_n='print -rn --' |
| 35128 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35129 | as_echo='printf %s\n' |
| 35130 | as_echo_n='printf %s' |
| 35131 | else |
| 35132 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 35133 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 35134 | as_echo_n='/usr/ucb/echo -n' |
| 35135 | else |
| 35136 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 35137 | as_echo_n_body='eval |
| 35138 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35139 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35140 | *"$as_nl"*) |
| 35141 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 35142 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 35143 | esac; |
| 35144 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 35145 | ' |
| 35146 | export as_echo_n_body |
| 35147 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 35148 | fi |
| 35149 | export as_echo_body |
| 35150 | as_echo='sh -c $as_echo_body as_echo' |
| 35151 | fi |
| 35152 | |
| 35153 | # The user is always right. |
| 35154 | if test "${PATH_SEPARATOR+set}" != set; then |
| 35155 | PATH_SEPARATOR=: |
| 35156 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 35157 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 35158 | PATH_SEPARATOR=';' |
| 35159 | } |
| 35160 | fi |
| 35161 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35162 | |
| 35163 | # IFS |
| 35164 | # We need space, tab and new line, in precisely that order. Quoting is |
| 35165 | # there to prevent editors from complaining about space-tab. |
| 35166 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 35167 | # splitting by setting IFS to empty value.) |
| 35168 | IFS=" "" $as_nl" |
| 35169 | |
| 35170 | # Find who we are. Look in the path if we contain no directory separator. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35171 | as_myself= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35172 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35173 | *[\\/]* ) as_myself=$0 ;; |
| 35174 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 35175 | for as_dir in $PATH |
| 35176 | do |
| 35177 | IFS=$as_save_IFS |
| 35178 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35179 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 35180 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35181 | IFS=$as_save_IFS |
| 35182 | |
| 35183 | ;; |
| 35184 | esac |
| 35185 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 35186 | # in which case we are not to be found in the path. |
| 35187 | if test "x$as_myself" = x; then |
| 35188 | as_myself=$0 |
| 35189 | fi |
| 35190 | if test ! -f "$as_myself"; then |
| 35191 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35192 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35193 | fi |
| 35194 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35195 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 35196 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 35197 | # suppresses any "Segmentation fault" message there. '((' could |
| 35198 | # trigger a bug in pdksh 5.2.14. |
| 35199 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 35200 | do eval test x\${$as_var+set} = xset \ |
| 35201 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35202 | done |
| 35203 | PS1='$ ' |
| 35204 | PS2='> ' |
| 35205 | PS4='+ ' |
| 35206 | |
| 35207 | # NLS nuisances. |
| 35208 | LC_ALL=C |
| 35209 | export LC_ALL |
| 35210 | LANGUAGE=C |
| 35211 | export LANGUAGE |
| 35212 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35213 | # CDPATH. |
| 35214 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 35215 | |
| 35216 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35217 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 35218 | # ---------------------------------------- |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35219 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 35220 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35221 | # script with STATUS, using 1 if that was 0. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35222 | as_fn_error () |
| 35223 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35224 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 35225 | if test "$4"; then |
| 35226 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 35227 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35228 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35229 | $as_echo "$as_me: error: $2" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35230 | as_fn_exit $as_status |
| 35231 | } # as_fn_error |
| 35232 | |
| 35233 | |
| 35234 | # as_fn_set_status STATUS |
| 35235 | # ----------------------- |
| 35236 | # Set $? to STATUS, without forking. |
| 35237 | as_fn_set_status () |
| 35238 | { |
| 35239 | return $1 |
| 35240 | } # as_fn_set_status |
| 35241 | |
| 35242 | # as_fn_exit STATUS |
| 35243 | # ----------------- |
| 35244 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 35245 | as_fn_exit () |
| 35246 | { |
| 35247 | set +e |
| 35248 | as_fn_set_status $1 |
| 35249 | exit $1 |
| 35250 | } # as_fn_exit |
| 35251 | |
| 35252 | # as_fn_unset VAR |
| 35253 | # --------------- |
| 35254 | # Portably unset VAR. |
| 35255 | as_fn_unset () |
| 35256 | { |
| 35257 | { eval $1=; unset $1;} |
| 35258 | } |
| 35259 | as_unset=as_fn_unset |
| 35260 | # as_fn_append VAR VALUE |
| 35261 | # ---------------------- |
| 35262 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 35263 | # advantage of any shell optimizations that allow amortized linear growth over |
| 35264 | # repeated appends, instead of the typical quadratic growth present in naive |
| 35265 | # implementations. |
| 35266 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 35267 | eval 'as_fn_append () |
| 35268 | { |
| 35269 | eval $1+=\$2 |
| 35270 | }' |
| 35271 | else |
| 35272 | as_fn_append () |
| 35273 | { |
| 35274 | eval $1=\$$1\$2 |
| 35275 | } |
| 35276 | fi # as_fn_append |
| 35277 | |
| 35278 | # as_fn_arith ARG... |
| 35279 | # ------------------ |
| 35280 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 35281 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 35282 | # must be portable across $(()) and expr. |
| 35283 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 35284 | eval 'as_fn_arith () |
| 35285 | { |
| 35286 | as_val=$(( $* )) |
| 35287 | }' |
| 35288 | else |
| 35289 | as_fn_arith () |
| 35290 | { |
| 35291 | as_val=`expr "$@" || test $? -eq 1` |
| 35292 | } |
| 35293 | fi # as_fn_arith |
| 35294 | |
| 35295 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35296 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 35297 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 35298 | as_expr=expr |
| 35299 | else |
| 35300 | as_expr=false |
| 35301 | fi |
| 35302 | |
| 35303 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 35304 | as_basename=basename |
| 35305 | else |
| 35306 | as_basename=false |
| 35307 | fi |
| 35308 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35309 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 35310 | as_dirname=dirname |
| 35311 | else |
| 35312 | as_dirname=false |
| 35313 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35314 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35315 | as_me=`$as_basename -- "$0" || |
| 35316 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 35317 | X"$0" : 'X\(//\)$' \| \ |
| 35318 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 35319 | $as_echo X/"$0" | |
| 35320 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 35321 | s//\1/ |
| 35322 | q |
| 35323 | } |
| 35324 | /^X\/\(\/\/\)$/{ |
| 35325 | s//\1/ |
| 35326 | q |
| 35327 | } |
| 35328 | /^X\/\(\/\).*/{ |
| 35329 | s//\1/ |
| 35330 | q |
| 35331 | } |
| 35332 | s/.*/./; q'` |
| 35333 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35334 | # Avoid depending upon Character Ranges. |
| 35335 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35336 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 35337 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 35338 | as_cr_digits='0123456789' |
| 35339 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35340 | |
| 35341 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35342 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35343 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35344 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35345 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35346 | xy) ECHO_C='\c';; |
| 35347 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 35348 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35349 | esac;; |
| 35350 | *) |
| 35351 | ECHO_N='-n';; |
| 35352 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35353 | |
| 35354 | rm -f conf$$ conf$$.exe conf$$.file |
| 35355 | if test -d conf$$.dir; then |
| 35356 | rm -f conf$$.dir/conf$$.file |
| 35357 | else |
| 35358 | rm -f conf$$.dir |
| 35359 | mkdir conf$$.dir 2>/dev/null |
| 35360 | fi |
| 35361 | if (echo >conf$$.file) 2>/dev/null; then |
| 35362 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 35363 | as_ln_s='ln -s' |
| 35364 | # ... but there are two gotchas: |
| 35365 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 35366 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 35367 | # In both cases, we have to default to `cp -p'. |
| 35368 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 35369 | as_ln_s='cp -p' |
| 35370 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 35371 | as_ln_s=ln |
| 35372 | else |
| 35373 | as_ln_s='cp -p' |
| 35374 | fi |
| 35375 | else |
| 35376 | as_ln_s='cp -p' |
| 35377 | fi |
| 35378 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 35379 | rmdir conf$$.dir 2>/dev/null |
| 35380 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35381 | |
| 35382 | # as_fn_mkdir_p |
| 35383 | # ------------- |
| 35384 | # Create "$as_dir" as a directory, including parents if necessary. |
| 35385 | as_fn_mkdir_p () |
| 35386 | { |
| 35387 | |
| 35388 | case $as_dir in #( |
| 35389 | -*) as_dir=./$as_dir;; |
| 35390 | esac |
| 35391 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 35392 | as_dirs= |
| 35393 | while :; do |
| 35394 | case $as_dir in #( |
| 35395 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 35396 | *) as_qdir=$as_dir;; |
| 35397 | esac |
| 35398 | as_dirs="'$as_qdir' $as_dirs" |
| 35399 | as_dir=`$as_dirname -- "$as_dir" || |
| 35400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 35401 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 35402 | X"$as_dir" : 'X\(//\)$' \| \ |
| 35403 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 35404 | $as_echo X"$as_dir" | |
| 35405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35406 | s//\1/ |
| 35407 | q |
| 35408 | } |
| 35409 | /^X\(\/\/\)[^/].*/{ |
| 35410 | s//\1/ |
| 35411 | q |
| 35412 | } |
| 35413 | /^X\(\/\/\)$/{ |
| 35414 | s//\1/ |
| 35415 | q |
| 35416 | } |
| 35417 | /^X\(\/\).*/{ |
| 35418 | s//\1/ |
| 35419 | q |
| 35420 | } |
| 35421 | s/.*/./; q'` |
| 35422 | test -d "$as_dir" && break |
| 35423 | done |
| 35424 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35425 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35426 | |
| 35427 | |
| 35428 | } # as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35429 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35430 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35431 | else |
| 35432 | test -d ./-p && rmdir ./-p |
| 35433 | as_mkdir_p=false |
| 35434 | fi |
| 35435 | |
| 35436 | if test -x / >/dev/null 2>&1; then |
| 35437 | as_test_x='test -x' |
| 35438 | else |
| 35439 | if ls -dL / >/dev/null 2>&1; then |
| 35440 | as_ls_L_option=L |
| 35441 | else |
| 35442 | as_ls_L_option= |
| 35443 | fi |
| 35444 | as_test_x=' |
| 35445 | eval sh -c '\'' |
| 35446 | if test -d "$1"; then |
| 35447 | test -d "$1/."; |
| 35448 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35449 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35450 | -*)set "./$1";; |
| 35451 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35452 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35453 | ???[sx]*):;;*)false;;esac;fi |
| 35454 | '\'' sh |
| 35455 | ' |
| 35456 | fi |
| 35457 | as_executable_p=$as_test_x |
| 35458 | |
| 35459 | # Sed expression to map a string onto a valid CPP name. |
| 35460 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 35461 | |
| 35462 | # Sed expression to map a string onto a valid variable name. |
| 35463 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 35464 | |
| 35465 | |
| 35466 | exec 6>&1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35467 | ## ----------------------------------- ## |
| 35468 | ## Main body of $CONFIG_STATUS script. ## |
| 35469 | ## ----------------------------------- ## |
| 35470 | _ASEOF |
| 35471 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35472 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35474 | # Save the log message, to keep $0 and so on meaningful, and to |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35475 | # report actual input values of CONFIG_FILES etc. instead of their |
| 35476 | # values after options handling. |
| 35477 | ac_log=" |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 35478 | This file was extended by ImageMagick $as_me 7.0.0, which was |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35479 | generated by GNU Autoconf 2.68. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35480 | |
| 35481 | CONFIG_FILES = $CONFIG_FILES |
| 35482 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 35483 | CONFIG_LINKS = $CONFIG_LINKS |
| 35484 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35485 | $ $0 $@ |
| 35486 | |
| 35487 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35488 | " |
| 35489 | |
| 35490 | _ACEOF |
| 35491 | |
| 35492 | case $ac_config_files in *" |
| 35493 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 35494 | esac |
| 35495 | |
| 35496 | case $ac_config_headers in *" |
| 35497 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 35498 | esac |
| 35499 | |
| 35500 | |
| 35501 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35502 | # Files that config.status was made for. |
| 35503 | config_files="$ac_config_files" |
| 35504 | config_headers="$ac_config_headers" |
| 35505 | config_commands="$ac_config_commands" |
| 35506 | |
| 35507 | _ACEOF |
| 35508 | |
| 35509 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35510 | ac_cs_usage="\ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35511 | \`$as_me' instantiates files and other configuration actions |
| 35512 | from templates according to the current configuration. Unless the files |
| 35513 | and actions are specified as TAGs, all are instantiated by default. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35514 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35515 | Usage: $0 [OPTION]... [TAG]... |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35516 | |
| 35517 | -h, --help print this help, then exit |
| 35518 | -V, --version print version number and configuration settings, then exit |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35519 | --config print configuration, then exit |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35520 | -q, --quiet, --silent |
| 35521 | do not print progress messages |
| 35522 | -d, --debug don't remove temporary files |
| 35523 | --recheck update $as_me by reconfiguring in the same conditions |
| 35524 | --file=FILE[:TEMPLATE] |
| 35525 | instantiate the configuration file FILE |
| 35526 | --header=FILE[:TEMPLATE] |
| 35527 | instantiate the configuration header FILE |
| 35528 | |
| 35529 | Configuration files: |
| 35530 | $config_files |
| 35531 | |
| 35532 | Configuration headers: |
| 35533 | $config_headers |
| 35534 | |
| 35535 | Configuration commands: |
| 35536 | $config_commands |
| 35537 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35538 | Report bugs to <http://www.imagemagick.org>." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35539 | |
| 35540 | _ACEOF |
| 35541 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35542 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35543 | ac_cs_version="\\ |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 35544 | ImageMagick config.status 7.0.0 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35545 | configured by $0, generated by GNU Autoconf 2.68, |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35546 | with options \\"\$ac_cs_config\\" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35547 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35548 | Copyright (C) 2010 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35549 | This config.status script is free software; the Free Software Foundation |
| 35550 | gives unlimited permission to copy, distribute and modify it." |
| 35551 | |
| 35552 | ac_pwd='$ac_pwd' |
| 35553 | srcdir='$srcdir' |
| 35554 | INSTALL='$INSTALL' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35555 | MKDIR_P='$MKDIR_P' |
| 35556 | AWK='$AWK' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35557 | test -n "\$AWK" || AWK=awk |
| 35558 | _ACEOF |
| 35559 | |
| 35560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35561 | # The default lists apply if the user does not specify any file. |
| 35562 | ac_need_defaults=: |
| 35563 | while test $# != 0 |
| 35564 | do |
| 35565 | case $1 in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35566 | --*=?*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35567 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35568 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 35569 | ac_shift=: |
| 35570 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35571 | --*=) |
| 35572 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35573 | ac_optarg= |
| 35574 | ac_shift=: |
| 35575 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35576 | *) |
| 35577 | ac_option=$1 |
| 35578 | ac_optarg=$2 |
| 35579 | ac_shift=shift |
| 35580 | ;; |
| 35581 | esac |
| 35582 | |
| 35583 | case $ac_option in |
| 35584 | # Handling of the options. |
| 35585 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35586 | ac_cs_recheck=: ;; |
| 35587 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35588 | $as_echo "$ac_cs_version"; exit ;; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35589 | --config | --confi | --conf | --con | --co | --c ) |
| 35590 | $as_echo "$ac_cs_config"; exit ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35591 | --debug | --debu | --deb | --de | --d | -d ) |
| 35592 | debug=: ;; |
| 35593 | --file | --fil | --fi | --f ) |
| 35594 | $ac_shift |
| 35595 | case $ac_optarg in |
| 35596 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35597 | '') as_fn_error $? "missing file argument" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35598 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35599 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35600 | ac_need_defaults=false;; |
| 35601 | --header | --heade | --head | --hea ) |
| 35602 | $ac_shift |
| 35603 | case $ac_optarg in |
| 35604 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35605 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35606 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35607 | ac_need_defaults=false;; |
| 35608 | --he | --h) |
| 35609 | # Conflict between --help and --header |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35610 | as_fn_error $? "ambiguous option: \`$1' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35611 | Try \`$0 --help' for more information.";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35612 | --help | --hel | -h ) |
| 35613 | $as_echo "$ac_cs_usage"; exit ;; |
| 35614 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35615 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35616 | ac_cs_silent=: ;; |
| 35617 | |
| 35618 | # This is an error. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35619 | -*) as_fn_error $? "unrecognized option: \`$1' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35620 | Try \`$0 --help' for more information." ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35621 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35622 | *) as_fn_append ac_config_targets " $1" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35623 | ac_need_defaults=false ;; |
| 35624 | |
| 35625 | esac |
| 35626 | shift |
| 35627 | done |
| 35628 | |
| 35629 | ac_configure_extra_args= |
| 35630 | |
| 35631 | if $ac_cs_silent; then |
| 35632 | exec 6>/dev/null |
| 35633 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35634 | fi |
| 35635 | |
| 35636 | _ACEOF |
| 35637 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35638 | if \$ac_cs_recheck; then |
| 35639 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 35640 | shift |
| 35641 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 35642 | CONFIG_SHELL='$SHELL' |
| 35643 | export CONFIG_SHELL |
| 35644 | exec "\$@" |
| 35645 | fi |
| 35646 | |
| 35647 | _ACEOF |
| 35648 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35649 | exec 5>>config.log |
| 35650 | { |
| 35651 | echo |
| 35652 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35653 | ## Running $as_me. ## |
| 35654 | _ASBOX |
| 35655 | $as_echo "$ac_log" |
| 35656 | } >&5 |
| 35657 | |
| 35658 | _ACEOF |
| 35659 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35660 | # |
| 35661 | # INIT-COMMANDS |
| 35662 | # |
| 35663 | PACKAGE="$PACKAGE" |
| 35664 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 35665 | |
| 35666 | |
| 35667 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 35668 | # if CDPATH is set. |
| 35669 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 35670 | |
| 35671 | sed_quote_subst='$sed_quote_subst' |
| 35672 | double_quote_subst='$double_quote_subst' |
| 35673 | delay_variable_subst='$delay_variable_subst' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35674 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 35675 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 35676 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 35677 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 35678 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 35679 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 35680 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 35681 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 35682 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 35683 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 35684 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 35685 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 35686 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 35687 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 35688 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 35689 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 35690 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 35691 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 35692 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 35693 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 35694 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 35695 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 35696 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 35697 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 35698 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 35699 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 35700 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 35701 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 35702 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 35703 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 35704 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35705 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 35706 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35707 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 35708 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 35709 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 35710 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35711 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 35712 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 35713 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35714 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 35715 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35716 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35717 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 35718 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 35719 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 35720 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 35721 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 35722 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 35723 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 35724 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 35725 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 35726 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 35727 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 35728 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 35729 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 35730 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35731 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 35732 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35733 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 35734 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 35735 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35736 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35737 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35738 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 35739 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 35740 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35741 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35742 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 35743 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 35744 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 35745 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 35746 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 35747 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 35748 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 35749 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 35750 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 35751 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 35752 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 35753 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 35754 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 35755 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 35756 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 35757 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 35758 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 35759 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 35760 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 35761 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 35762 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 35763 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 35764 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 35765 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 35766 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 35767 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 35768 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 35769 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 35770 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 35771 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 35772 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 35773 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35774 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 35775 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 35776 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 35777 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 35778 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35779 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35780 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 35781 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 35782 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 35783 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 35784 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 35785 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 35786 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 35787 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 35788 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 35789 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 35790 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 35791 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 35792 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 35793 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 35794 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 35795 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 35796 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 35797 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 35798 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 35799 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 35800 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 35801 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 35802 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 35803 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 35804 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 35805 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 35806 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 35807 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 35808 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 35809 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 35810 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 35811 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 35812 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 35813 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35814 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35815 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 35816 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 35817 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35818 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35819 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35820 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 35821 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 35822 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 35823 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 35824 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 35825 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 35826 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 35827 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35828 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35829 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35830 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35831 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35832 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35833 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 35834 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 35835 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 35836 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 35837 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 35838 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 35839 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 35840 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 35841 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 35842 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 35843 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 35844 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 35845 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35846 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 35847 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 35848 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 35849 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 35850 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35851 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35852 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 35853 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 35854 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 35855 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 35856 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 35857 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 35858 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 35859 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35860 | |
| 35861 | LTCC='$LTCC' |
| 35862 | LTCFLAGS='$LTCFLAGS' |
| 35863 | compiler='$compiler_DEFAULT' |
| 35864 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35865 | # A function that is used when there is no print builtin or printf. |
| 35866 | func_fallback_echo () |
| 35867 | { |
| 35868 | eval 'cat <<_LTECHO_EOF |
| 35869 | \$1 |
| 35870 | _LTECHO_EOF' |
| 35871 | } |
| 35872 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35873 | # Quote evaled strings. |
| 35874 | for var in SED \ |
| 35875 | GREP \ |
| 35876 | EGREP \ |
| 35877 | FGREP \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35878 | SHELL \ |
| 35879 | ECHO \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35880 | LD \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35881 | AS \ |
| 35882 | DLLTOOL \ |
| 35883 | OBJDUMP \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35884 | NM \ |
| 35885 | LN_S \ |
| 35886 | lt_SP2NL \ |
| 35887 | lt_NL2SP \ |
| 35888 | reload_flag \ |
| 35889 | deplibs_check_method \ |
| 35890 | file_magic_cmd \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35891 | file_magic_glob \ |
| 35892 | want_nocaseglob \ |
| 35893 | sharedlib_from_linklib_cmd \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35894 | AR \ |
| 35895 | AR_FLAGS \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35896 | archiver_list_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35897 | STRIP \ |
| 35898 | RANLIB \ |
| 35899 | CC \ |
| 35900 | CFLAGS \ |
| 35901 | compiler \ |
| 35902 | lt_cv_sys_global_symbol_pipe \ |
| 35903 | lt_cv_sys_global_symbol_to_cdecl \ |
| 35904 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 35905 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35906 | nm_file_list_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35907 | lt_prog_compiler_no_builtin_flag \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35908 | lt_prog_compiler_pic \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35909 | lt_prog_compiler_wl \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35910 | lt_prog_compiler_static \ |
| 35911 | lt_cv_prog_compiler_c_o \ |
| 35912 | need_locks \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35913 | MANIFEST_TOOL \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35914 | DSYMUTIL \ |
| 35915 | NMEDIT \ |
| 35916 | LIPO \ |
| 35917 | OTOOL \ |
| 35918 | OTOOL64 \ |
| 35919 | shrext_cmds \ |
| 35920 | export_dynamic_flag_spec \ |
| 35921 | whole_archive_flag_spec \ |
| 35922 | compiler_needs_object \ |
| 35923 | with_gnu_ld \ |
| 35924 | allow_undefined_flag \ |
| 35925 | no_undefined_flag \ |
| 35926 | hardcode_libdir_flag_spec \ |
| 35927 | hardcode_libdir_flag_spec_ld \ |
| 35928 | hardcode_libdir_separator \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35929 | exclude_expsyms \ |
| 35930 | include_expsyms \ |
| 35931 | file_list_spec \ |
| 35932 | variables_saved_for_relink \ |
| 35933 | libname_spec \ |
| 35934 | library_names_spec \ |
| 35935 | soname_spec \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35936 | install_override_mode \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35937 | finish_eval \ |
| 35938 | old_striplib \ |
| 35939 | striplib \ |
| 35940 | compiler_lib_search_dirs \ |
| 35941 | predep_objects \ |
| 35942 | postdep_objects \ |
| 35943 | predeps \ |
| 35944 | postdeps \ |
| 35945 | compiler_lib_search_path \ |
| 35946 | LD_CXX \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35947 | reload_flag_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35948 | compiler_CXX \ |
| 35949 | lt_prog_compiler_no_builtin_flag_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35950 | lt_prog_compiler_pic_CXX \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35951 | lt_prog_compiler_wl_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35952 | lt_prog_compiler_static_CXX \ |
| 35953 | lt_cv_prog_compiler_c_o_CXX \ |
| 35954 | export_dynamic_flag_spec_CXX \ |
| 35955 | whole_archive_flag_spec_CXX \ |
| 35956 | compiler_needs_object_CXX \ |
| 35957 | with_gnu_ld_CXX \ |
| 35958 | allow_undefined_flag_CXX \ |
| 35959 | no_undefined_flag_CXX \ |
| 35960 | hardcode_libdir_flag_spec_CXX \ |
| 35961 | hardcode_libdir_flag_spec_ld_CXX \ |
| 35962 | hardcode_libdir_separator_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35963 | exclude_expsyms_CXX \ |
| 35964 | include_expsyms_CXX \ |
| 35965 | file_list_spec_CXX \ |
| 35966 | compiler_lib_search_dirs_CXX \ |
| 35967 | predep_objects_CXX \ |
| 35968 | postdep_objects_CXX \ |
| 35969 | predeps_CXX \ |
| 35970 | postdeps_CXX \ |
| 35971 | compiler_lib_search_path_CXX; do |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35972 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35973 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35974 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35975 | ;; |
| 35976 | *) |
| 35977 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 35978 | ;; |
| 35979 | esac |
| 35980 | done |
| 35981 | |
| 35982 | # Double-quote double-evaled strings. |
| 35983 | for var in reload_cmds \ |
| 35984 | old_postinstall_cmds \ |
| 35985 | old_postuninstall_cmds \ |
| 35986 | old_archive_cmds \ |
| 35987 | extract_expsyms_cmds \ |
| 35988 | old_archive_from_new_cmds \ |
| 35989 | old_archive_from_expsyms_cmds \ |
| 35990 | archive_cmds \ |
| 35991 | archive_expsym_cmds \ |
| 35992 | module_cmds \ |
| 35993 | module_expsym_cmds \ |
| 35994 | export_symbols_cmds \ |
| 35995 | prelink_cmds \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35996 | postlink_cmds \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35997 | postinstall_cmds \ |
| 35998 | postuninstall_cmds \ |
| 35999 | finish_cmds \ |
| 36000 | sys_lib_search_path_spec \ |
| 36001 | sys_lib_dlsearch_path_spec \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36002 | reload_cmds_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36003 | old_archive_cmds_CXX \ |
| 36004 | old_archive_from_new_cmds_CXX \ |
| 36005 | old_archive_from_expsyms_cmds_CXX \ |
| 36006 | archive_cmds_CXX \ |
| 36007 | archive_expsym_cmds_CXX \ |
| 36008 | module_cmds_CXX \ |
| 36009 | module_expsym_cmds_CXX \ |
| 36010 | export_symbols_cmds_CXX \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36011 | prelink_cmds_CXX \ |
| 36012 | postlink_cmds_CXX; do |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36013 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36014 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36015 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36016 | ;; |
| 36017 | *) |
| 36018 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 36019 | ;; |
| 36020 | esac |
| 36021 | done |
| 36022 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36023 | ac_aux_dir='$ac_aux_dir' |
| 36024 | xsi_shell='$xsi_shell' |
| 36025 | lt_shell_append='$lt_shell_append' |
| 36026 | |
| 36027 | # See if we are running on zsh, and set the options which allow our |
| 36028 | # commands through without removal of \ escapes INIT. |
| 36029 | if test -n "\${ZSH_VERSION+set}" ; then |
| 36030 | setopt NO_GLOB_SUBST |
| 36031 | fi |
| 36032 | |
| 36033 | |
| 36034 | PACKAGE='$PACKAGE' |
| 36035 | VERSION='$VERSION' |
| 36036 | TIMESTAMP='$TIMESTAMP' |
| 36037 | RM='$RM' |
| 36038 | ofile='$ofile' |
| 36039 | |
| 36040 | |
| 36041 | |
| 36042 | |
| 36043 | |
| 36044 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36045 | _ACEOF |
| 36046 | |
| 36047 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36048 | |
| 36049 | # Handling of arguments. |
| 36050 | for ac_config_target in $ac_config_targets |
| 36051 | do |
| 36052 | case $ac_config_target in |
| 36053 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36054 | "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36055 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 36056 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 36057 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 36058 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 36059 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 36060 | "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36061 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 36062 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 36063 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 36064 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 36065 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36066 | "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36067 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; |
| 36068 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36069 | "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; |
| 36070 | "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; |
| 36071 | "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36072 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 36073 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| 36074 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; |
| 36075 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| 36076 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| 36077 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 36078 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 36079 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 36080 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 36081 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 36082 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 36083 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 36084 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 36085 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 36086 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 36087 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 36088 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36089 | "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; |
| 36090 | "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36091 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 36092 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36093 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 36094 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36095 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36096 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 36097 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 36098 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36099 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36100 | esac |
| 36101 | done |
| 36102 | |
| 36103 | |
| 36104 | # If the user did not use the arguments to specify the items to instantiate, |
| 36105 | # then the envvar interface is used. Set only those that are not. |
| 36106 | # We use the long form for the default assignment because of an extremely |
| 36107 | # bizarre bug on SunOS 4.1.3. |
| 36108 | if $ac_need_defaults; then |
| 36109 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 36110 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 36111 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 36112 | fi |
| 36113 | |
| 36114 | # Have a temporary directory for convenience. Make it in the build tree |
| 36115 | # simply because there is no reason against having it here, and in addition, |
| 36116 | # creating and moving files from /tmp can sometimes cause problems. |
| 36117 | # Hook for its removal unless debugging. |
| 36118 | # Note that there is a small window in which the directory will not be cleaned: |
| 36119 | # after its creation but before its name has been assigned to `$tmp'. |
| 36120 | $debug || |
| 36121 | { |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36122 | tmp= ac_tmp= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36123 | trap 'exit_status=$? |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36124 | : "${ac_tmp:=$tmp}" |
| 36125 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36126 | ' 0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36127 | trap 'as_fn_exit 1' 1 2 13 15 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36128 | } |
| 36129 | # Create a (secure) tmp directory for tmp files. |
| 36130 | |
| 36131 | { |
| 36132 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36133 | test -d "$tmp" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36134 | } || |
| 36135 | { |
| 36136 | tmp=./conf$$-$RANDOM |
| 36137 | (umask 077 && mkdir "$tmp") |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36138 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36139 | ac_tmp=$tmp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36140 | |
| 36141 | # Set up the scripts for CONFIG_FILES section. |
| 36142 | # No need to generate them if there are no CONFIG_FILES. |
| 36143 | # This happens for instance with `./config.status config.h'. |
| 36144 | if test -n "$CONFIG_FILES"; then |
| 36145 | |
| 36146 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36147 | ac_cr=`echo X | tr X '\015'` |
| 36148 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 36149 | # But we know of no other shell where ac_cr would be empty at this |
| 36150 | # point, so we can use a bashism as a fallback. |
| 36151 | if test "x$ac_cr" = x; then |
| 36152 | eval ac_cr=\$\'\\r\' |
| 36153 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36154 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 36155 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36156 | ac_cs_awk_cr='\\r' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36157 | else |
| 36158 | ac_cs_awk_cr=$ac_cr |
| 36159 | fi |
| 36160 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36161 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36162 | _ACEOF |
| 36163 | |
| 36164 | |
| 36165 | { |
| 36166 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 36167 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 36168 | echo "_ACEOF" |
| 36169 | } >conf$$subs.sh || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36170 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 36171 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36172 | ac_delim='%!_!# ' |
| 36173 | for ac_last_try in false false false false false :; do |
| 36174 | . ./conf$$subs.sh || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36175 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36176 | |
| 36177 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 36178 | if test $ac_delim_n = $ac_delim_num; then |
| 36179 | break |
| 36180 | elif $ac_last_try; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36181 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36182 | else |
| 36183 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36184 | fi |
| 36185 | done |
| 36186 | rm -f conf$$subs.sh |
| 36187 | |
| 36188 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36189 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36190 | _ACEOF |
| 36191 | sed -n ' |
| 36192 | h |
| 36193 | s/^/S["/; s/!.*/"]=/ |
| 36194 | p |
| 36195 | g |
| 36196 | s/^[^!]*!// |
| 36197 | :repl |
| 36198 | t repl |
| 36199 | s/'"$ac_delim"'$// |
| 36200 | t delim |
| 36201 | :nl |
| 36202 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36203 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36204 | t more1 |
| 36205 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 36206 | p |
| 36207 | n |
| 36208 | b repl |
| 36209 | :more1 |
| 36210 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 36211 | p |
| 36212 | g |
| 36213 | s/.\{148\}// |
| 36214 | t nl |
| 36215 | :delim |
| 36216 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36217 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36218 | t more2 |
| 36219 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 36220 | p |
| 36221 | b |
| 36222 | :more2 |
| 36223 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 36224 | p |
| 36225 | g |
| 36226 | s/.\{148\}// |
| 36227 | t delim |
| 36228 | ' <conf$$subs.awk | sed ' |
| 36229 | /^[^""]/{ |
| 36230 | N |
| 36231 | s/\n// |
| 36232 | } |
| 36233 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 36234 | rm -f conf$$subs.awk |
| 36235 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36236 | _ACAWK |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36237 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36238 | for (key in S) S_is_set[key] = 1 |
| 36239 | FS = "" |
| 36240 | |
| 36241 | } |
| 36242 | { |
| 36243 | line = $ 0 |
| 36244 | nfields = split(line, field, "@") |
| 36245 | substed = 0 |
| 36246 | len = length(field[1]) |
| 36247 | for (i = 2; i < nfields; i++) { |
| 36248 | key = field[i] |
| 36249 | keylen = length(key) |
| 36250 | if (S_is_set[key]) { |
| 36251 | value = S[key] |
| 36252 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 36253 | len += length(value) + length(field[++i]) |
| 36254 | substed = 1 |
| 36255 | } else |
| 36256 | len += 1 + keylen |
| 36257 | } |
| 36258 | |
| 36259 | print line |
| 36260 | } |
| 36261 | |
| 36262 | _ACAWK |
| 36263 | _ACEOF |
| 36264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36265 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 36266 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 36267 | else |
| 36268 | cat |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36269 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36270 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36271 | _ACEOF |
| 36272 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36273 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 36274 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36275 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 36276 | # (actually we leave an empty line to preserve line numbers). |
| 36277 | if test "x$srcdir" = x.; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36278 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 36279 | h |
| 36280 | s/// |
| 36281 | s/^/:/ |
| 36282 | s/[ ]*$/:/ |
| 36283 | s/:\$(srcdir):/:/g |
| 36284 | s/:\${srcdir}:/:/g |
| 36285 | s/:@srcdir@:/:/g |
| 36286 | s/^:*// |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36287 | s/:*$// |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36288 | x |
| 36289 | s/\(=[ ]*\).*/\1/ |
| 36290 | G |
| 36291 | s/\n// |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36292 | s/^[^=]*=[ ]*$// |
| 36293 | }' |
| 36294 | fi |
| 36295 | |
| 36296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36297 | fi # test -n "$CONFIG_FILES" |
| 36298 | |
| 36299 | # Set up the scripts for CONFIG_HEADERS section. |
| 36300 | # No need to generate them if there are no CONFIG_HEADERS. |
| 36301 | # This happens for instance with `./config.status Makefile'. |
| 36302 | if test -n "$CONFIG_HEADERS"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36303 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36304 | BEGIN { |
| 36305 | _ACEOF |
| 36306 | |
| 36307 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 36308 | # here-document in config.status, that substitutes the proper values into |
| 36309 | # config.h.in to produce config.h. |
| 36310 | |
| 36311 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 36312 | # handling of long lines. |
| 36313 | ac_delim='%!_!# ' |
| 36314 | for ac_last_try in false false :; do |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36315 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 36316 | if test -z "$ac_tt"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36317 | break |
| 36318 | elif $ac_last_try; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36319 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36320 | else |
| 36321 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 36322 | fi |
| 36323 | done |
| 36324 | |
| 36325 | # For the awk script, D is an array of macro values keyed by name, |
| 36326 | # likewise P contains macro parameters if any. Preserve backslash |
| 36327 | # newline sequences. |
| 36328 | |
| 36329 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 36330 | sed -n ' |
| 36331 | s/.\{148\}/&'"$ac_delim"'/g |
| 36332 | t rset |
| 36333 | :rset |
| 36334 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 36335 | t def |
| 36336 | d |
| 36337 | :def |
| 36338 | s/\\$// |
| 36339 | t bsnl |
| 36340 | s/["\\]/\\&/g |
| 36341 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 36342 | D["\1"]=" \3"/p |
| 36343 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 36344 | d |
| 36345 | :bsnl |
| 36346 | s/["\\]/\\&/g |
| 36347 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 36348 | D["\1"]=" \3\\\\\\n"\\/p |
| 36349 | t cont |
| 36350 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 36351 | t cont |
| 36352 | d |
| 36353 | :cont |
| 36354 | n |
| 36355 | s/.\{148\}/&'"$ac_delim"'/g |
| 36356 | t clear |
| 36357 | :clear |
| 36358 | s/\\$// |
| 36359 | t bsnlc |
| 36360 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 36361 | d |
| 36362 | :bsnlc |
| 36363 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 36364 | b cont |
| 36365 | ' <confdefs.h | sed ' |
| 36366 | s/'"$ac_delim"'/"\\\ |
| 36367 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 36368 | |
| 36369 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36370 | for (key in D) D_is_set[key] = 1 |
| 36371 | FS = "" |
| 36372 | } |
| 36373 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 36374 | line = \$ 0 |
| 36375 | split(line, arg, " ") |
| 36376 | if (arg[1] == "#") { |
| 36377 | defundef = arg[2] |
| 36378 | mac1 = arg[3] |
| 36379 | } else { |
| 36380 | defundef = substr(arg[1], 2) |
| 36381 | mac1 = arg[2] |
| 36382 | } |
| 36383 | split(mac1, mac2, "(") #) |
| 36384 | macro = mac2[1] |
| 36385 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 36386 | if (D_is_set[macro]) { |
| 36387 | # Preserve the white space surrounding the "#". |
| 36388 | print prefix "define", macro P[macro] D[macro] |
| 36389 | next |
| 36390 | } else { |
| 36391 | # Replace #undef with comments. This is necessary, for example, |
| 36392 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 36393 | # on some systems where configure will not decide to define it. |
| 36394 | if (defundef == "undef") { |
| 36395 | print "/*", prefix defundef, macro, "*/" |
| 36396 | next |
| 36397 | } |
| 36398 | } |
| 36399 | } |
| 36400 | { print } |
| 36401 | _ACAWK |
| 36402 | _ACEOF |
| 36403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36404 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36405 | fi # test -n "$CONFIG_HEADERS" |
| 36406 | |
| 36407 | |
| 36408 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 36409 | shift |
| 36410 | for ac_tag |
| 36411 | do |
| 36412 | case $ac_tag in |
| 36413 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 36414 | esac |
| 36415 | case $ac_mode$ac_tag in |
| 36416 | :[FHL]*:*);; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36417 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36418 | :[FH]-) ac_tag=-:-;; |
| 36419 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 36420 | esac |
| 36421 | ac_save_IFS=$IFS |
| 36422 | IFS=: |
| 36423 | set x $ac_tag |
| 36424 | IFS=$ac_save_IFS |
| 36425 | shift |
| 36426 | ac_file=$1 |
| 36427 | shift |
| 36428 | |
| 36429 | case $ac_mode in |
| 36430 | :L) ac_source=$1;; |
| 36431 | :[FH]) |
| 36432 | ac_file_inputs= |
| 36433 | for ac_f |
| 36434 | do |
| 36435 | case $ac_f in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36436 | -) ac_f="$ac_tmp/stdin";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36437 | *) # Look for the file first in the build tree, then in the source tree |
| 36438 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 36439 | # because $ac_f cannot contain `:'. |
| 36440 | test -f "$ac_f" || |
| 36441 | case $ac_f in |
| 36442 | [\\/$]*) false;; |
| 36443 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 36444 | esac || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36445 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36446 | esac |
| 36447 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36448 | as_fn_append ac_file_inputs " '$ac_f'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36449 | done |
| 36450 | |
| 36451 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 36452 | # use $as_me), people would be surprised to read: |
| 36453 | # /* config.h. Generated by config.status. */ |
| 36454 | configure_input='Generated from '` |
| 36455 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 36456 | `' by configure.' |
| 36457 | if test x"$ac_file" != x-; then |
| 36458 | configure_input="$ac_file. $configure_input" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36459 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36460 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 36461 | fi |
| 36462 | # Neutralize special characters interpreted by sed in replacement strings. |
| 36463 | case $configure_input in #( |
| 36464 | *\&* | *\|* | *\\* ) |
| 36465 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 36466 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 36467 | *) ac_sed_conf_input=$configure_input;; |
| 36468 | esac |
| 36469 | |
| 36470 | case $ac_tag in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36471 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36472 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36473 | esac |
| 36474 | ;; |
| 36475 | esac |
| 36476 | |
| 36477 | ac_dir=`$as_dirname -- "$ac_file" || |
| 36478 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36479 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 36480 | X"$ac_file" : 'X\(//\)$' \| \ |
| 36481 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 36482 | $as_echo X"$ac_file" | |
| 36483 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36484 | s//\1/ |
| 36485 | q |
| 36486 | } |
| 36487 | /^X\(\/\/\)[^/].*/{ |
| 36488 | s//\1/ |
| 36489 | q |
| 36490 | } |
| 36491 | /^X\(\/\/\)$/{ |
| 36492 | s//\1/ |
| 36493 | q |
| 36494 | } |
| 36495 | /^X\(\/\).*/{ |
| 36496 | s//\1/ |
| 36497 | q |
| 36498 | } |
| 36499 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36500 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36501 | ac_builddir=. |
| 36502 | |
| 36503 | case "$ac_dir" in |
| 36504 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36505 | *) |
| 36506 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 36507 | # A ".." for each directory in $ac_dir_suffix. |
| 36508 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 36509 | case $ac_top_builddir_sub in |
| 36510 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 36511 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 36512 | esac ;; |
| 36513 | esac |
| 36514 | ac_abs_top_builddir=$ac_pwd |
| 36515 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 36516 | # for backward compatibility: |
| 36517 | ac_top_builddir=$ac_top_build_prefix |
| 36518 | |
| 36519 | case $srcdir in |
| 36520 | .) # We are building in place. |
| 36521 | ac_srcdir=. |
| 36522 | ac_top_srcdir=$ac_top_builddir_sub |
| 36523 | ac_abs_top_srcdir=$ac_pwd ;; |
| 36524 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 36525 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 36526 | ac_top_srcdir=$srcdir |
| 36527 | ac_abs_top_srcdir=$srcdir ;; |
| 36528 | *) # Relative name. |
| 36529 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 36530 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 36531 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 36532 | esac |
| 36533 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 36534 | |
| 36535 | |
| 36536 | case $ac_mode in |
| 36537 | :F) |
| 36538 | # |
| 36539 | # CONFIG_FILE |
| 36540 | # |
| 36541 | |
| 36542 | case $INSTALL in |
| 36543 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 36544 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 36545 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36546 | ac_MKDIR_P=$MKDIR_P |
| 36547 | case $MKDIR_P in |
| 36548 | [\\/$]* | ?:[\\/]* ) ;; |
| 36549 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 36550 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36551 | _ACEOF |
| 36552 | |
| 36553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36554 | # If the template does not know about datarootdir, expand it. |
| 36555 | # FIXME: This hack should be removed a few years after 2.60. |
| 36556 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36557 | ac_sed_dataroot=' |
| 36558 | /datarootdir/ { |
| 36559 | p |
| 36560 | q |
| 36561 | } |
| 36562 | /@datadir@/p |
| 36563 | /@docdir@/p |
| 36564 | /@infodir@/p |
| 36565 | /@localedir@/p |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36566 | /@mandir@/p' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36567 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 36568 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 36569 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36571 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 36572 | _ACEOF |
| 36573 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36574 | ac_datarootdir_hack=' |
| 36575 | s&@datadir@&$datadir&g |
| 36576 | s&@docdir@&$docdir&g |
| 36577 | s&@infodir@&$infodir&g |
| 36578 | s&@localedir@&$localedir&g |
| 36579 | s&@mandir@&$mandir&g |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36580 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36581 | esac |
| 36582 | _ACEOF |
| 36583 | |
| 36584 | # Neutralize VPATH when `$srcdir' = `.'. |
| 36585 | # Shell code in configure.ac might set extrasub. |
| 36586 | # FIXME: do we really want to maintain this feature? |
| 36587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36588 | ac_sed_extra="$ac_vpsub |
| 36589 | $extrasub |
| 36590 | _ACEOF |
| 36591 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36592 | :t |
| 36593 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 36594 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 36595 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 36596 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 36597 | s&@srcdir@&$ac_srcdir&;t t |
| 36598 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 36599 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 36600 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 36601 | s&@builddir@&$ac_builddir&;t t |
| 36602 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 36603 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 36604 | s&@INSTALL@&$ac_INSTALL&;t t |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36605 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36606 | $ac_datarootdir_hack |
| 36607 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36608 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 36609 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36610 | |
| 36611 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36612 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 36613 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 36614 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36615 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36616 | which seems to be undefined. Please make sure it is defined" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36617 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36618 | which seems to be undefined. Please make sure it is defined" >&2;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36619 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36620 | rm -f "$ac_tmp/stdin" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36621 | case $ac_file in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36622 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 36623 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36624 | esac \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36625 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36626 | ;; |
| 36627 | :H) |
| 36628 | # |
| 36629 | # CONFIG_HEADER |
| 36630 | # |
| 36631 | if test x"$ac_file" != x-; then |
| 36632 | { |
| 36633 | $as_echo "/* $configure_input */" \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36634 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 36635 | } >"$ac_tmp/config.h" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36636 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36637 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36638 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36639 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 36640 | else |
| 36641 | rm -f "$ac_file" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36642 | mv "$ac_tmp/config.h" "$ac_file" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36643 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36644 | fi |
| 36645 | else |
| 36646 | $as_echo "/* $configure_input */" \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36647 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36648 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36649 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36650 | # Compute "$ac_file"'s index in $config_headers. |
| 36651 | _am_arg="$ac_file" |
| 36652 | _am_stamp_count=1 |
| 36653 | for _am_header in $config_headers :; do |
| 36654 | case $_am_header in |
| 36655 | $_am_arg | $_am_arg:* ) |
| 36656 | break ;; |
| 36657 | * ) |
| 36658 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 36659 | esac |
| 36660 | done |
| 36661 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 36662 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36663 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 36664 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 36665 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 36666 | $as_echo X"$_am_arg" | |
| 36667 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36668 | s//\1/ |
| 36669 | q |
| 36670 | } |
| 36671 | /^X\(\/\/\)[^/].*/{ |
| 36672 | s//\1/ |
| 36673 | q |
| 36674 | } |
| 36675 | /^X\(\/\/\)$/{ |
| 36676 | s//\1/ |
| 36677 | q |
| 36678 | } |
| 36679 | /^X\(\/\).*/{ |
| 36680 | s//\1/ |
| 36681 | q |
| 36682 | } |
| 36683 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36684 | ;; |
| 36685 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36686 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36687 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 36688 | ;; |
| 36689 | esac |
| 36690 | |
| 36691 | |
| 36692 | case $ac_file$ac_mode in |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 36693 | "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36694 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 36695 | ac_prefix_conf_PKG=`echo MagickCore` |
| 36696 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 36697 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 36698 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 36699 | if test ".$ac_prefix_conf_INP" = "."; then |
| 36700 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 36701 | case "$ac_file" in |
| 36702 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 36703 | *) |
| 36704 | esac |
| 36705 | test ".$ac_prefix_conf_INP" != "." && break |
| 36706 | done |
| 36707 | fi |
| 36708 | if test ".$ac_prefix_conf_INP" = "."; then |
| 36709 | case "$ac_prefix_conf_OUT" in |
| 36710 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 36711 | ;; |
| 36712 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 36713 | ;; |
| 36714 | *) ac_prefix_conf_INP=config.h |
| 36715 | ;; |
| 36716 | esac |
| 36717 | fi |
| 36718 | if test -z "$ac_prefix_conf_PKG" ; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36719 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36720 | else |
| 36721 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 36722 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 36723 | fi fi |
| 36724 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 36725 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 36726 | if test -f $ac_prefix_conf_INP ; then |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 36727 | $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 36728 | $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 36729 | $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix |
| 36730 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix |
| 36731 | $as_echo "#endif/" >> conftest.prefix |
| 36732 | $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix |
| 36733 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix |
| 36734 | $as_echo "#endif/" >> conftest.prefix |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36735 | # now executing _script on _DEF input to create _OUT output file |
| 36736 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 36737 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 36738 | echo ' ' >>$tmp/pconfig.h |
| 36739 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 36740 | |
| 36741 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 36742 | echo ' ' >>$tmp/pconfig.h |
| 36743 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 36744 | echo "#endif" >>$tmp/pconfig.h |
| 36745 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 36746 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| 36747 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 36748 | else |
| 36749 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 36750 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36751 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 36752 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 36753 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 36754 | $as_echo X"$ac_prefix_conf_OUT" | |
| 36755 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36756 | s//\1/ |
| 36757 | q |
| 36758 | } |
| 36759 | /^X\(\/\/\)[^/].*/{ |
| 36760 | s//\1/ |
| 36761 | q |
| 36762 | } |
| 36763 | /^X\(\/\/\)$/{ |
| 36764 | s//\1/ |
| 36765 | q |
| 36766 | } |
| 36767 | /^X\(\/\).*/{ |
| 36768 | s//\1/ |
| 36769 | q |
| 36770 | } |
| 36771 | s/.*/./; q'` |
| 36772 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 36773 | rm -f "$ac_prefix_conf_OUT" |
| 36774 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 36775 | fi |
| 36776 | cp conftest.prefix _configs.sed |
| 36777 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36778 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36779 | fi |
| 36780 | rm -f conftest.* |
| 36781 | fi |
| 36782 | ;; |
| 36783 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 36784 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 36785 | # are listed without --file. Let's play safe and only enable the eval |
| 36786 | # if we detect the quoting. |
| 36787 | case $CONFIG_FILES in |
| 36788 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 36789 | *) set x $CONFIG_FILES ;; |
| 36790 | esac |
| 36791 | shift |
| 36792 | for mf |
| 36793 | do |
| 36794 | # Strip MF so we end up with the name of the file. |
| 36795 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 36796 | # Check whether this is an Automake generated Makefile or not. |
| 36797 | # We used to match only the files named `Makefile.in', but |
| 36798 | # some people rename them; so instead we look at the file content. |
| 36799 | # Grep'ing the first line is not enough: some people post-process |
| 36800 | # each Makefile.in and add a new line on top of each file to say so. |
| 36801 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 36802 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 36803 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 36804 | dirpart=`$as_dirname -- "$mf" || |
| 36805 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36806 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 36807 | X"$mf" : 'X\(//\)$' \| \ |
| 36808 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 36809 | $as_echo X"$mf" | |
| 36810 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36811 | s//\1/ |
| 36812 | q |
| 36813 | } |
| 36814 | /^X\(\/\/\)[^/].*/{ |
| 36815 | s//\1/ |
| 36816 | q |
| 36817 | } |
| 36818 | /^X\(\/\/\)$/{ |
| 36819 | s//\1/ |
| 36820 | q |
| 36821 | } |
| 36822 | /^X\(\/\).*/{ |
| 36823 | s//\1/ |
| 36824 | q |
| 36825 | } |
| 36826 | s/.*/./; q'` |
| 36827 | else |
| 36828 | continue |
| 36829 | fi |
| 36830 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 36831 | # from the Makefile without running `make'. |
| 36832 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 36833 | test -z "$DEPDIR" && continue |
| 36834 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 36835 | test -z "am__include" && continue |
| 36836 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 36837 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 36838 | U=`sed -n 's/^U = //p' < "$mf"` |
| 36839 | # Find all dependency output files, they are included files with |
| 36840 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 36841 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 36842 | # expansion. |
| 36843 | for file in `sed -n " |
| 36844 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 36845 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 36846 | # Make sure the directory exists. |
| 36847 | test -f "$dirpart/$file" && continue |
| 36848 | fdir=`$as_dirname -- "$file" || |
| 36849 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36850 | X"$file" : 'X\(//\)[^/]' \| \ |
| 36851 | X"$file" : 'X\(//\)$' \| \ |
| 36852 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 36853 | $as_echo X"$file" | |
| 36854 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36855 | s//\1/ |
| 36856 | q |
| 36857 | } |
| 36858 | /^X\(\/\/\)[^/].*/{ |
| 36859 | s//\1/ |
| 36860 | q |
| 36861 | } |
| 36862 | /^X\(\/\/\)$/{ |
| 36863 | s//\1/ |
| 36864 | q |
| 36865 | } |
| 36866 | /^X\(\/\).*/{ |
| 36867 | s//\1/ |
| 36868 | q |
| 36869 | } |
| 36870 | s/.*/./; q'` |
| 36871 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 36872 | # echo "creating $dirpart/$file" |
| 36873 | echo '# dummy' > "$dirpart/$file" |
| 36874 | done |
| 36875 | done |
| 36876 | } |
| 36877 | ;; |
| 36878 | "libtool":C) |
| 36879 | |
| 36880 | # See if we are running on zsh, and set the options which allow our |
| 36881 | # commands through without removal of \ escapes. |
| 36882 | if test -n "${ZSH_VERSION+set}" ; then |
| 36883 | setopt NO_GLOB_SUBST |
| 36884 | fi |
| 36885 | |
| 36886 | cfgfile="${ofile}T" |
| 36887 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 36888 | $RM "$cfgfile" |
| 36889 | |
| 36890 | cat <<_LT_EOF >> "$cfgfile" |
| 36891 | #! $SHELL |
| 36892 | |
| 36893 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 36894 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 36895 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 36896 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 36897 | # |
| 36898 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36899 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 36900 | # Inc. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36901 | # Written by Gordon Matzigkeit, 1996 |
| 36902 | # |
| 36903 | # This file is part of GNU Libtool. |
| 36904 | # |
| 36905 | # GNU Libtool is free software; you can redistribute it and/or |
| 36906 | # modify it under the terms of the GNU General Public License as |
| 36907 | # published by the Free Software Foundation; either version 2 of |
| 36908 | # the License, or (at your option) any later version. |
| 36909 | # |
| 36910 | # As a special exception to the GNU General Public License, |
| 36911 | # if you distribute this file as part of a program or library that |
| 36912 | # is built using GNU Libtool, you may include this file under the |
| 36913 | # same distribution terms that you use for the rest of that program. |
| 36914 | # |
| 36915 | # GNU Libtool is distributed in the hope that it will be useful, |
| 36916 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 36917 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 36918 | # GNU General Public License for more details. |
| 36919 | # |
| 36920 | # You should have received a copy of the GNU General Public License |
| 36921 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 36922 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 36923 | # obtained by writing to the Free Software Foundation, Inc., |
| 36924 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 36925 | |
| 36926 | |
| 36927 | # The names of the tagged configurations supported by this script. |
| 36928 | available_tags="CXX " |
| 36929 | |
| 36930 | # ### BEGIN LIBTOOL CONFIG |
| 36931 | |
| 36932 | # A sed program that does not truncate output. |
| 36933 | SED=$lt_SED |
| 36934 | |
| 36935 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 36936 | Xsed="\$SED -e 1s/^X//" |
| 36937 | |
| 36938 | # A grep program that handles long lines. |
| 36939 | GREP=$lt_GREP |
| 36940 | |
| 36941 | # An ERE matcher. |
| 36942 | EGREP=$lt_EGREP |
| 36943 | |
| 36944 | # A literal string matcher. |
| 36945 | FGREP=$lt_FGREP |
| 36946 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36947 | # Shell to use when invoking shell scripts. |
| 36948 | SHELL=$lt_SHELL |
| 36949 | |
| 36950 | # An echo program that protects backslashes. |
| 36951 | ECHO=$lt_ECHO |
| 36952 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36953 | # Which release of libtool.m4 was used? |
| 36954 | macro_version=$macro_version |
| 36955 | macro_revision=$macro_revision |
| 36956 | |
| 36957 | # Assembler program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36958 | AS=$lt_AS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36959 | |
| 36960 | # DLL creation program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36961 | DLLTOOL=$lt_DLLTOOL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36962 | |
| 36963 | # Object dumper program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36964 | OBJDUMP=$lt_OBJDUMP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36965 | |
| 36966 | # Whether or not to build shared libraries. |
| 36967 | build_libtool_libs=$enable_shared |
| 36968 | |
| 36969 | # Whether or not to build static libraries. |
| 36970 | build_old_libs=$enable_static |
| 36971 | |
| 36972 | # What type of objects to build. |
| 36973 | pic_mode=$pic_mode |
| 36974 | |
| 36975 | # Whether or not to optimize for fast installation. |
| 36976 | fast_install=$enable_fast_install |
| 36977 | |
| 36978 | # The host system. |
| 36979 | host_alias=$host_alias |
| 36980 | host=$host |
| 36981 | host_os=$host_os |
| 36982 | |
| 36983 | # The build system. |
| 36984 | build_alias=$build_alias |
| 36985 | build=$build |
| 36986 | build_os=$build_os |
| 36987 | |
| 36988 | # A BSD- or MS-compatible name lister. |
| 36989 | NM=$lt_NM |
| 36990 | |
| 36991 | # Whether we need soft or hard links. |
| 36992 | LN_S=$lt_LN_S |
| 36993 | |
| 36994 | # What is the maximum length of a command? |
| 36995 | max_cmd_len=$max_cmd_len |
| 36996 | |
| 36997 | # Object file suffix (normally "o"). |
| 36998 | objext=$ac_objext |
| 36999 | |
| 37000 | # Executable file suffix (normally ""). |
| 37001 | exeext=$exeext |
| 37002 | |
| 37003 | # whether the shell understands "unset". |
| 37004 | lt_unset=$lt_unset |
| 37005 | |
| 37006 | # turn spaces into newlines. |
| 37007 | SP2NL=$lt_lt_SP2NL |
| 37008 | |
| 37009 | # turn newlines into spaces. |
| 37010 | NL2SP=$lt_lt_NL2SP |
| 37011 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37012 | # convert \$build file names to \$host format. |
| 37013 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 37014 | |
| 37015 | # convert \$build files to toolchain format. |
| 37016 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 37017 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37018 | # Method to check whether dependent libraries are shared objects. |
| 37019 | deplibs_check_method=$lt_deplibs_check_method |
| 37020 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37021 | # Command to use when deplibs_check_method = "file_magic". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37022 | file_magic_cmd=$lt_file_magic_cmd |
| 37023 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37024 | # How to find potential files when deplibs_check_method = "file_magic". |
| 37025 | file_magic_glob=$lt_file_magic_glob |
| 37026 | |
| 37027 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 37028 | want_nocaseglob=$lt_want_nocaseglob |
| 37029 | |
| 37030 | # Command to associate shared and link libraries. |
| 37031 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 37032 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37033 | # The archiver. |
| 37034 | AR=$lt_AR |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37035 | |
| 37036 | # Flags to create an archive. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37037 | AR_FLAGS=$lt_AR_FLAGS |
| 37038 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37039 | # How to feed a file listing to the archiver. |
| 37040 | archiver_list_spec=$lt_archiver_list_spec |
| 37041 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37042 | # A symbol stripping program. |
| 37043 | STRIP=$lt_STRIP |
| 37044 | |
| 37045 | # Commands used to install an old-style archive. |
| 37046 | RANLIB=$lt_RANLIB |
| 37047 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 37048 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 37049 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37050 | # Whether to use a lock for old archive extraction. |
| 37051 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 37052 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37053 | # A C compiler. |
| 37054 | LTCC=$lt_CC |
| 37055 | |
| 37056 | # LTCC compiler flags. |
| 37057 | LTCFLAGS=$lt_CFLAGS |
| 37058 | |
| 37059 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 37060 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 37061 | |
| 37062 | # Transform the output of nm in a proper C declaration. |
| 37063 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 37064 | |
| 37065 | # Transform the output of nm in a C name address pair. |
| 37066 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 37067 | |
| 37068 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 37069 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 37070 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37071 | # Specify filename containing input files for \$NM. |
| 37072 | nm_file_list_spec=$lt_nm_file_list_spec |
| 37073 | |
| 37074 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 37075 | lt_sysroot=$lt_sysroot |
| 37076 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37077 | # The name of the directory that contains temporary libtool files. |
| 37078 | objdir=$objdir |
| 37079 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37080 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 37081 | MAGIC_CMD=$MAGIC_CMD |
| 37082 | |
| 37083 | # Must we lock files when doing compilation? |
| 37084 | need_locks=$lt_need_locks |
| 37085 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37086 | # Manifest tool. |
| 37087 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 37088 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37089 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 37090 | DSYMUTIL=$lt_DSYMUTIL |
| 37091 | |
| 37092 | # Tool to change global to local symbols on Mac OS X. |
| 37093 | NMEDIT=$lt_NMEDIT |
| 37094 | |
| 37095 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 37096 | LIPO=$lt_LIPO |
| 37097 | |
| 37098 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 37099 | OTOOL=$lt_OTOOL |
| 37100 | |
| 37101 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 37102 | OTOOL64=$lt_OTOOL64 |
| 37103 | |
| 37104 | # Old archive suffix (normally "a"). |
| 37105 | libext=$libext |
| 37106 | |
| 37107 | # Shared library suffix (normally ".so"). |
| 37108 | shrext_cmds=$lt_shrext_cmds |
| 37109 | |
| 37110 | # The commands to extract the exported symbol list from a shared archive. |
| 37111 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 37112 | |
| 37113 | # Variables whose values should be saved in libtool wrapper scripts and |
| 37114 | # restored at link time. |
| 37115 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 37116 | |
| 37117 | # Do we need the "lib" prefix for modules? |
| 37118 | need_lib_prefix=$need_lib_prefix |
| 37119 | |
| 37120 | # Do we need a version for libraries? |
| 37121 | need_version=$need_version |
| 37122 | |
| 37123 | # Library versioning type. |
| 37124 | version_type=$version_type |
| 37125 | |
| 37126 | # Shared library runtime path variable. |
| 37127 | runpath_var=$runpath_var |
| 37128 | |
| 37129 | # Shared library path variable. |
| 37130 | shlibpath_var=$shlibpath_var |
| 37131 | |
| 37132 | # Is shlibpath searched before the hard-coded library search path? |
| 37133 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 37134 | |
| 37135 | # Format of library name prefix. |
| 37136 | libname_spec=$lt_libname_spec |
| 37137 | |
| 37138 | # List of archive names. First name is the real one, the rest are links. |
| 37139 | # The last name is the one that the linker finds with -lNAME |
| 37140 | library_names_spec=$lt_library_names_spec |
| 37141 | |
| 37142 | # The coded name of the library, if different from the real name. |
| 37143 | soname_spec=$lt_soname_spec |
| 37144 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37145 | # Permission mode override for installation of shared libraries. |
| 37146 | install_override_mode=$lt_install_override_mode |
| 37147 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37148 | # Command to use after installation of a shared archive. |
| 37149 | postinstall_cmds=$lt_postinstall_cmds |
| 37150 | |
| 37151 | # Command to use after uninstallation of a shared archive. |
| 37152 | postuninstall_cmds=$lt_postuninstall_cmds |
| 37153 | |
| 37154 | # Commands used to finish a libtool library installation in a directory. |
| 37155 | finish_cmds=$lt_finish_cmds |
| 37156 | |
| 37157 | # As "finish_cmds", except a single script fragment to be evaled but |
| 37158 | # not shown. |
| 37159 | finish_eval=$lt_finish_eval |
| 37160 | |
| 37161 | # Whether we should hardcode library paths into libraries. |
| 37162 | hardcode_into_libs=$hardcode_into_libs |
| 37163 | |
| 37164 | # Compile-time system search path for libraries. |
| 37165 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 37166 | |
| 37167 | # Run-time system search path for libraries. |
| 37168 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 37169 | |
| 37170 | # Whether dlopen is supported. |
| 37171 | dlopen_support=$enable_dlopen |
| 37172 | |
| 37173 | # Whether dlopen of programs is supported. |
| 37174 | dlopen_self=$enable_dlopen_self |
| 37175 | |
| 37176 | # Whether dlopen of statically linked programs is supported. |
| 37177 | dlopen_self_static=$enable_dlopen_self_static |
| 37178 | |
| 37179 | # Commands to strip libraries. |
| 37180 | old_striplib=$lt_old_striplib |
| 37181 | striplib=$lt_striplib |
| 37182 | |
| 37183 | |
| 37184 | # The linker used to build libraries. |
| 37185 | LD=$lt_LD |
| 37186 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37187 | # How to create reloadable object files. |
| 37188 | reload_flag=$lt_reload_flag |
| 37189 | reload_cmds=$lt_reload_cmds |
| 37190 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37191 | # Commands used to build an old-style archive. |
| 37192 | old_archive_cmds=$lt_old_archive_cmds |
| 37193 | |
| 37194 | # A language specific compiler. |
| 37195 | CC=$lt_compiler |
| 37196 | |
| 37197 | # Is the compiler the GNU compiler? |
| 37198 | with_gcc=$GCC |
| 37199 | |
| 37200 | # Compiler flag to turn off builtin functions. |
| 37201 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 37202 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37203 | # Additional compiler flags for building library objects. |
| 37204 | pic_flag=$lt_lt_prog_compiler_pic |
| 37205 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37206 | # How to pass a linker flag through the compiler. |
| 37207 | wl=$lt_lt_prog_compiler_wl |
| 37208 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37209 | # Compiler flag to prevent dynamic linking. |
| 37210 | link_static_flag=$lt_lt_prog_compiler_static |
| 37211 | |
| 37212 | # Does compiler simultaneously support -c and -o options? |
| 37213 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 37214 | |
| 37215 | # Whether or not to add -lc for building shared libraries. |
| 37216 | build_libtool_need_lc=$archive_cmds_need_lc |
| 37217 | |
| 37218 | # Whether or not to disallow shared libs when runtime libs are static. |
| 37219 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 37220 | |
| 37221 | # Compiler flag to allow reflexive dlopens. |
| 37222 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 37223 | |
| 37224 | # Compiler flag to generate shared objects directly from archives. |
| 37225 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 37226 | |
| 37227 | # Whether the compiler copes with passing no objects directly. |
| 37228 | compiler_needs_object=$lt_compiler_needs_object |
| 37229 | |
| 37230 | # Create an old-style archive from a shared archive. |
| 37231 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 37232 | |
| 37233 | # Create a temporary old-style archive to link instead of a shared archive. |
| 37234 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 37235 | |
| 37236 | # Commands used to build a shared archive. |
| 37237 | archive_cmds=$lt_archive_cmds |
| 37238 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 37239 | |
| 37240 | # Commands used to build a loadable module if different from building |
| 37241 | # a shared archive. |
| 37242 | module_cmds=$lt_module_cmds |
| 37243 | module_expsym_cmds=$lt_module_expsym_cmds |
| 37244 | |
| 37245 | # Whether we are building with GNU ld or not. |
| 37246 | with_gnu_ld=$lt_with_gnu_ld |
| 37247 | |
| 37248 | # Flag that allows shared libraries with undefined symbols to be built. |
| 37249 | allow_undefined_flag=$lt_allow_undefined_flag |
| 37250 | |
| 37251 | # Flag that enforces no undefined symbols. |
| 37252 | no_undefined_flag=$lt_no_undefined_flag |
| 37253 | |
| 37254 | # Flag to hardcode \$libdir into a binary during linking. |
| 37255 | # This must work even if \$libdir does not exist |
| 37256 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 37257 | |
| 37258 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 37259 | # during linking. This must work even if \$libdir does not exist. |
| 37260 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 37261 | |
| 37262 | # Whether we need a single "-rpath" flag with a separated argument. |
| 37263 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 37264 | |
| 37265 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37266 | # DIR into the resulting binary. |
| 37267 | hardcode_direct=$hardcode_direct |
| 37268 | |
| 37269 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37270 | # DIR into the resulting binary and the resulting library dependency is |
| 37271 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 37272 | # library is relocated. |
| 37273 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 37274 | |
| 37275 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 37276 | # into the resulting binary. |
| 37277 | hardcode_minus_L=$hardcode_minus_L |
| 37278 | |
| 37279 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 37280 | # into the resulting binary. |
| 37281 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 37282 | |
| 37283 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 37284 | # into the library and all subsequent libraries and executables linked |
| 37285 | # against it. |
| 37286 | hardcode_automatic=$hardcode_automatic |
| 37287 | |
| 37288 | # Set to yes if linker adds runtime paths of dependent libraries |
| 37289 | # to runtime path list. |
| 37290 | inherit_rpath=$inherit_rpath |
| 37291 | |
| 37292 | # Whether libtool must link a program against all its dependency libraries. |
| 37293 | link_all_deplibs=$link_all_deplibs |
| 37294 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37295 | # Set to "yes" if exported symbols are required. |
| 37296 | always_export_symbols=$always_export_symbols |
| 37297 | |
| 37298 | # The commands to list exported symbols. |
| 37299 | export_symbols_cmds=$lt_export_symbols_cmds |
| 37300 | |
| 37301 | # Symbols that should not be listed in the preloaded symbols. |
| 37302 | exclude_expsyms=$lt_exclude_expsyms |
| 37303 | |
| 37304 | # Symbols that must always be exported. |
| 37305 | include_expsyms=$lt_include_expsyms |
| 37306 | |
| 37307 | # Commands necessary for linking programs (against libraries) with templates. |
| 37308 | prelink_cmds=$lt_prelink_cmds |
| 37309 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37310 | # Commands necessary for finishing linking programs. |
| 37311 | postlink_cmds=$lt_postlink_cmds |
| 37312 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37313 | # Specify filename containing input files. |
| 37314 | file_list_spec=$lt_file_list_spec |
| 37315 | |
| 37316 | # How to hardcode a shared library path into an executable. |
| 37317 | hardcode_action=$hardcode_action |
| 37318 | |
| 37319 | # The directories searched by this compiler when creating a shared library. |
| 37320 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 37321 | |
| 37322 | # Dependencies to place before and after the objects being linked to |
| 37323 | # create a shared library. |
| 37324 | predep_objects=$lt_predep_objects |
| 37325 | postdep_objects=$lt_postdep_objects |
| 37326 | predeps=$lt_predeps |
| 37327 | postdeps=$lt_postdeps |
| 37328 | |
| 37329 | # The library search path used internally by the compiler when linking |
| 37330 | # a shared library. |
| 37331 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 37332 | |
| 37333 | # ### END LIBTOOL CONFIG |
| 37334 | |
| 37335 | _LT_EOF |
| 37336 | |
| 37337 | case $host_os in |
| 37338 | aix3*) |
| 37339 | cat <<\_LT_EOF >> "$cfgfile" |
| 37340 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 37341 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 37342 | # vanish in a puff of smoke. |
| 37343 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 37344 | COLLECT_NAMES= |
| 37345 | export COLLECT_NAMES |
| 37346 | fi |
| 37347 | _LT_EOF |
| 37348 | ;; |
| 37349 | esac |
| 37350 | |
| 37351 | |
| 37352 | ltmain="$ac_aux_dir/ltmain.sh" |
| 37353 | |
| 37354 | |
| 37355 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 37356 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 37357 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 37358 | # is reportedly fixed, but why not run on old versions too? |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37359 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 37360 | || (rm -f "$cfgfile"; exit 1) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37361 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37362 | if test x"$xsi_shell" = xyes; then |
| 37363 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 37364 | func_dirname ()\ |
| 37365 | {\ |
| 37366 | \ case ${1} in\ |
| 37367 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 37368 | \ * ) func_dirname_result="${3}" ;;\ |
| 37369 | \ esac\ |
| 37370 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37371 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37372 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37373 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37374 | |
| 37375 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37376 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 37377 | func_basename ()\ |
| 37378 | {\ |
| 37379 | \ func_basename_result="${1##*/}"\ |
| 37380 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37381 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37382 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37383 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37384 | |
| 37385 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37386 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 37387 | func_dirname_and_basename ()\ |
| 37388 | {\ |
| 37389 | \ case ${1} in\ |
| 37390 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 37391 | \ * ) func_dirname_result="${3}" ;;\ |
| 37392 | \ esac\ |
| 37393 | \ func_basename_result="${1##*/}"\ |
| 37394 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37395 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37396 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37397 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37398 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37399 | |
| 37400 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 37401 | func_stripname ()\ |
| 37402 | {\ |
| 37403 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 37404 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 37405 | \ func_stripname_result=${3}\ |
| 37406 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 37407 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 37408 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37409 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37410 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37411 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37412 | |
| 37413 | |
| 37414 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 37415 | func_split_long_opt ()\ |
| 37416 | {\ |
| 37417 | \ func_split_long_opt_name=${1%%=*}\ |
| 37418 | \ func_split_long_opt_arg=${1#*=}\ |
| 37419 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37420 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37421 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37422 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37423 | |
| 37424 | |
| 37425 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 37426 | func_split_short_opt ()\ |
| 37427 | {\ |
| 37428 | \ func_split_short_opt_arg=${1#??}\ |
| 37429 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 37430 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37431 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37432 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37433 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37434 | |
| 37435 | |
| 37436 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 37437 | func_lo2o ()\ |
| 37438 | {\ |
| 37439 | \ case ${1} in\ |
| 37440 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 37441 | \ *) func_lo2o_result=${1} ;;\ |
| 37442 | \ esac\ |
| 37443 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37444 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37445 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37446 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37447 | |
| 37448 | |
| 37449 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 37450 | func_xform ()\ |
| 37451 | {\ |
| 37452 | func_xform_result=${1%.*}.lo\ |
| 37453 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37454 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37455 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37456 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37457 | |
| 37458 | |
| 37459 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 37460 | func_arith ()\ |
| 37461 | {\ |
| 37462 | func_arith_result=$(( $* ))\ |
| 37463 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37464 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37465 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37466 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37467 | |
| 37468 | |
| 37469 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 37470 | func_len ()\ |
| 37471 | {\ |
| 37472 | func_len_result=${#1}\ |
| 37473 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37474 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37475 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37476 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37477 | |
| 37478 | fi |
| 37479 | |
| 37480 | if test x"$lt_shell_append" = xyes; then |
| 37481 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 37482 | func_append ()\ |
| 37483 | {\ |
| 37484 | eval "${1}+=\\${2}"\ |
| 37485 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37486 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37487 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37488 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37489 | |
| 37490 | |
| 37491 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 37492 | func_append_quoted ()\ |
| 37493 | {\ |
| 37494 | \ func_quote_for_eval "${2}"\ |
| 37495 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 37496 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 37497 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37498 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37499 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37500 | |
| 37501 | |
| 37502 | # Save a `func_append' function call where possible by direct use of '+=' |
| 37503 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 37504 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37505 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37506 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37507 | else |
| 37508 | # Save a `func_append' function call even when '+=' is not available |
| 37509 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 37510 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 37511 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 37512 | test 0 -eq $? || _lt_function_replace_fail=: |
| 37513 | fi |
| 37514 | |
| 37515 | if test x"$_lt_function_replace_fail" = x":"; then |
| 37516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 37517 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 37518 | fi |
| 37519 | |
| 37520 | |
| 37521 | mv -f "$cfgfile" "$ofile" || |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37522 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 37523 | chmod +x "$ofile" |
| 37524 | |
| 37525 | |
| 37526 | cat <<_LT_EOF >> "$ofile" |
| 37527 | |
| 37528 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 37529 | |
| 37530 | # The linker used to build libraries. |
| 37531 | LD=$lt_LD_CXX |
| 37532 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37533 | # How to create reloadable object files. |
| 37534 | reload_flag=$lt_reload_flag_CXX |
| 37535 | reload_cmds=$lt_reload_cmds_CXX |
| 37536 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37537 | # Commands used to build an old-style archive. |
| 37538 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 37539 | |
| 37540 | # A language specific compiler. |
| 37541 | CC=$lt_compiler_CXX |
| 37542 | |
| 37543 | # Is the compiler the GNU compiler? |
| 37544 | with_gcc=$GCC_CXX |
| 37545 | |
| 37546 | # Compiler flag to turn off builtin functions. |
| 37547 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 37548 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37549 | # Additional compiler flags for building library objects. |
| 37550 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 37551 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37552 | # How to pass a linker flag through the compiler. |
| 37553 | wl=$lt_lt_prog_compiler_wl_CXX |
| 37554 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37555 | # Compiler flag to prevent dynamic linking. |
| 37556 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 37557 | |
| 37558 | # Does compiler simultaneously support -c and -o options? |
| 37559 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 37560 | |
| 37561 | # Whether or not to add -lc for building shared libraries. |
| 37562 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 37563 | |
| 37564 | # Whether or not to disallow shared libs when runtime libs are static. |
| 37565 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 37566 | |
| 37567 | # Compiler flag to allow reflexive dlopens. |
| 37568 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 37569 | |
| 37570 | # Compiler flag to generate shared objects directly from archives. |
| 37571 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 37572 | |
| 37573 | # Whether the compiler copes with passing no objects directly. |
| 37574 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 37575 | |
| 37576 | # Create an old-style archive from a shared archive. |
| 37577 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 37578 | |
| 37579 | # Create a temporary old-style archive to link instead of a shared archive. |
| 37580 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 37581 | |
| 37582 | # Commands used to build a shared archive. |
| 37583 | archive_cmds=$lt_archive_cmds_CXX |
| 37584 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 37585 | |
| 37586 | # Commands used to build a loadable module if different from building |
| 37587 | # a shared archive. |
| 37588 | module_cmds=$lt_module_cmds_CXX |
| 37589 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 37590 | |
| 37591 | # Whether we are building with GNU ld or not. |
| 37592 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 37593 | |
| 37594 | # Flag that allows shared libraries with undefined symbols to be built. |
| 37595 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 37596 | |
| 37597 | # Flag that enforces no undefined symbols. |
| 37598 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 37599 | |
| 37600 | # Flag to hardcode \$libdir into a binary during linking. |
| 37601 | # This must work even if \$libdir does not exist |
| 37602 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 37603 | |
| 37604 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 37605 | # during linking. This must work even if \$libdir does not exist. |
| 37606 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 37607 | |
| 37608 | # Whether we need a single "-rpath" flag with a separated argument. |
| 37609 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 37610 | |
| 37611 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37612 | # DIR into the resulting binary. |
| 37613 | hardcode_direct=$hardcode_direct_CXX |
| 37614 | |
| 37615 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 37616 | # DIR into the resulting binary and the resulting library dependency is |
| 37617 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 37618 | # library is relocated. |
| 37619 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 37620 | |
| 37621 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 37622 | # into the resulting binary. |
| 37623 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 37624 | |
| 37625 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 37626 | # into the resulting binary. |
| 37627 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 37628 | |
| 37629 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 37630 | # into the library and all subsequent libraries and executables linked |
| 37631 | # against it. |
| 37632 | hardcode_automatic=$hardcode_automatic_CXX |
| 37633 | |
| 37634 | # Set to yes if linker adds runtime paths of dependent libraries |
| 37635 | # to runtime path list. |
| 37636 | inherit_rpath=$inherit_rpath_CXX |
| 37637 | |
| 37638 | # Whether libtool must link a program against all its dependency libraries. |
| 37639 | link_all_deplibs=$link_all_deplibs_CXX |
| 37640 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37641 | # Set to "yes" if exported symbols are required. |
| 37642 | always_export_symbols=$always_export_symbols_CXX |
| 37643 | |
| 37644 | # The commands to list exported symbols. |
| 37645 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 37646 | |
| 37647 | # Symbols that should not be listed in the preloaded symbols. |
| 37648 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 37649 | |
| 37650 | # Symbols that must always be exported. |
| 37651 | include_expsyms=$lt_include_expsyms_CXX |
| 37652 | |
| 37653 | # Commands necessary for linking programs (against libraries) with templates. |
| 37654 | prelink_cmds=$lt_prelink_cmds_CXX |
| 37655 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37656 | # Commands necessary for finishing linking programs. |
| 37657 | postlink_cmds=$lt_postlink_cmds_CXX |
| 37658 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37659 | # Specify filename containing input files. |
| 37660 | file_list_spec=$lt_file_list_spec_CXX |
| 37661 | |
| 37662 | # How to hardcode a shared library path into an executable. |
| 37663 | hardcode_action=$hardcode_action_CXX |
| 37664 | |
| 37665 | # The directories searched by this compiler when creating a shared library. |
| 37666 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 37667 | |
| 37668 | # Dependencies to place before and after the objects being linked to |
| 37669 | # create a shared library. |
| 37670 | predep_objects=$lt_predep_objects_CXX |
| 37671 | postdep_objects=$lt_postdep_objects_CXX |
| 37672 | predeps=$lt_predeps_CXX |
| 37673 | postdeps=$lt_postdeps_CXX |
| 37674 | |
| 37675 | # The library search path used internally by the compiler when linking |
| 37676 | # a shared library. |
| 37677 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 37678 | |
| 37679 | # ### END LIBTOOL TAG CONFIG: CXX |
| 37680 | _LT_EOF |
| 37681 | |
| 37682 | ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37683 | "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37684 | "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37685 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 37686 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 37687 | |
| 37688 | esac |
| 37689 | done # for ac_tag |
| 37690 | |
| 37691 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37692 | as_fn_exit 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37693 | _ACEOF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37694 | ac_clean_files=$ac_clean_files_save |
| 37695 | |
| 37696 | test $ac_write_fail = 0 || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37697 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37698 | |
| 37699 | |
| 37700 | # configure is writing to config.log, and then calls config.status. |
| 37701 | # config.status does its own redirection, appending to config.log. |
| 37702 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 37703 | # by configure, so config.status won't be able to write to it; its |
| 37704 | # output is simply discarded. So we exec the FD to /dev/null, |
| 37705 | # effectively closing config.log, so it can be properly (re)opened and |
| 37706 | # appended to by config.status. When coming back to configure, we |
| 37707 | # need to make the FD available again. |
| 37708 | if test "$no_create" != yes; then |
| 37709 | ac_cs_success=: |
| 37710 | ac_config_status_args= |
| 37711 | test "$silent" = yes && |
| 37712 | ac_config_status_args="$ac_config_status_args --quiet" |
| 37713 | exec 5>/dev/null |
| 37714 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 37715 | exec 5>>config.log |
| 37716 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 37717 | # would make configure fail if this is the last instruction. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37718 | $ac_cs_success || as_fn_exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37719 | fi |
| 37720 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37721 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37722 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 37723 | fi |
| 37724 | |
| 37725 | |
| 37726 | rm -f magick-version |
| 37727 | |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 37728 | result_dejavu_font_dir='none' |
| 37729 | if test "${dejavu_font_dir}x" != 'x'; then |
| 37730 | result_dejavu_font_dir=$dejavu_font_dir |
| 37731 | fi |
| 37732 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37733 | result_ghostscript_font_dir='none' |
| 37734 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 37735 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 37736 | fi |
| 37737 | |
| 37738 | result_windows_font_dir='none' |
| 37739 | if test "${windows_font_dir}x" != 'x'; then |
| 37740 | result_windows_font_dir=${windows_font_dir} |
| 37741 | fi |
| 37742 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37744 | ImageMagick is configured as follows. Please verify that this configuration |
| 37745 | matches your expectations. |
| 37746 | |
| 37747 | Host system type: $host |
| 37748 | Build system type: $build |
| 37749 | |
| 37750 | Option Value |
| 37751 | ------------------------------------------------------------------------------- |
| 37752 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 37753 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 37754 | Module support --with-modules=$with_modules $with_modules |
| 37755 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 37756 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 37757 | High Dynamic Range Imagery |
| 37758 | --enable-hdri=$enable_hdri $enable_hdri |
| 37759 | |
| 37760 | Delegate Configuration: |
| 37761 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 37762 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 37763 | Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37764 | DJVU --with-djvu=$with_djvu $have_djvu |
| 37765 | DPS --with-dps=$with_dps $have_dps |
| 37766 | FFTW --with-fftw=$with_fftw $have_fftw |
| 37767 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 37768 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 37769 | FreeType --with-freetype=$with_freetype $have_freetype |
| 37770 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 37771 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 37772 | Ghostscript None $PSDelegate ($GSVersion) |
| 37773 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 37774 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 37775 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 37776 | JBIG --with-jbig=$with_jbig $have_jbig |
| 37777 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 37778 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 37779 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 37780 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37781 | LQR --with-lqr=$with_lqr $have_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 37782 | LZMA --with-lzma=$with_lzma $have_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37783 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 37784 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 37785 | PERL --with-perl=$with_perl $have_perl |
| 37786 | PNG --with-png=$with_png $have_png |
| 37787 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 37788 | TIFF --with-tiff=$with_tiff $have_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 37789 | WEBP --with-webp=$with_webp $have_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37790 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 37791 | WMF --with-wmf=$with_wmf $have_wmf |
| 37792 | X11 --with-x=$with_x $have_x |
| 37793 | XML --with-xml=$with_xml $have_xml |
| 37794 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 37795 | |
| 37796 | X11 Configuration: |
| 37797 | X_CFLAGS = $X_CFLAGS |
| 37798 | X_PRE_LIBS = $X_PRE_LIBS |
| 37799 | X_LIBS = $X_LIBS |
| 37800 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 37801 | |
| 37802 | Options used to compile and link: |
| 37803 | PREFIX = $PREFIX_DIR |
| 37804 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 37805 | VERSION = $PACKAGE_VERSION |
| 37806 | CC = $CC |
| 37807 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37808 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 37809 | PCFLAGS = $MAGICK_PCFLAGS |
| 37810 | DEFS = $DEFS |
| 37811 | LDFLAGS = $LDFLAGS |
| 37812 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 37813 | LIBS = $MAGICK_LIBS |
| 37814 | CXX = $CXX |
| 37815 | CXXFLAGS = $CXXFLAGS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 37816 | FEATURES = $MAGICK_FEATURES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37817 | " >&5 |
| 37818 | $as_echo " |
| 37819 | ImageMagick is configured as follows. Please verify that this configuration |
| 37820 | matches your expectations. |
| 37821 | |
| 37822 | Host system type: $host |
| 37823 | Build system type: $build |
| 37824 | |
| 37825 | Option Value |
| 37826 | ------------------------------------------------------------------------------- |
| 37827 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 37828 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 37829 | Module support --with-modules=$with_modules $with_modules |
| 37830 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 37831 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 37832 | High Dynamic Range Imagery |
| 37833 | --enable-hdri=$enable_hdri $enable_hdri |
| 37834 | |
| 37835 | Delegate Configuration: |
| 37836 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 37837 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 37838 | Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37839 | DJVU --with-djvu=$with_djvu $have_djvu |
| 37840 | DPS --with-dps=$with_dps $have_dps |
| 37841 | FFTW --with-fftw=$with_fftw $have_fftw |
| 37842 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 37843 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 37844 | FreeType --with-freetype=$with_freetype $have_freetype |
| 37845 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 37846 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 37847 | Ghostscript None $PSDelegate ($GSVersion) |
| 37848 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 37849 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 37850 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 37851 | JBIG --with-jbig=$with_jbig $have_jbig |
| 37852 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 37853 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 37854 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 37855 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37856 | LQR --with-lqr=$with_lqr $have_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 37857 | LZMA --with-lzma=$with_lzma $have_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37858 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 37859 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 37860 | PERL --with-perl=$with_perl $have_perl |
| 37861 | PNG --with-png=$with_png $have_png |
| 37862 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 37863 | TIFF --with-tiff=$with_tiff $have_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 37864 | WEBP --with-webp=$with_webp $have_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37865 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 37866 | WMF --with-wmf=$with_wmf $have_wmf |
| 37867 | X11 --with-x=$with_x $have_x |
| 37868 | XML --with-xml=$with_xml $have_xml |
| 37869 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 37870 | |
| 37871 | X11 Configuration: |
| 37872 | X_CFLAGS = $X_CFLAGS |
| 37873 | X_PRE_LIBS = $X_PRE_LIBS |
| 37874 | X_LIBS = $X_LIBS |
| 37875 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 37876 | |
| 37877 | Options used to compile and link: |
| 37878 | PREFIX = $PREFIX_DIR |
| 37879 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 37880 | VERSION = $PACKAGE_VERSION |
| 37881 | CC = $CC |
| 37882 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37883 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 37884 | PCFLAGS = $MAGICK_PCFLAGS |
| 37885 | DEFS = $DEFS |
| 37886 | LDFLAGS = $LDFLAGS |
| 37887 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 37888 | LIBS = $MAGICK_LIBS |
| 37889 | CXX = $CXX |
| 37890 | CXXFLAGS = $CXXFLAGS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 37891 | FEATURES = $MAGICK_FEATURES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37892 | " >&6; } |