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 | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4. |
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 | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # 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 | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 94 | case $0 in #(( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
| 104 | |
| 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
| 113 | $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] | 114 | exit 1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
| 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
| 134 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | if test "x$CONFIG_SHELL" = x; then |
| 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 140 | emulate sh |
| 141 | NULLCMD=: |
| 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 143 | # is contrary to our usage. Disable this feature. |
| 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 145 | setopt NO_GLOB_SUBST |
| 146 | else |
| 147 | case \`(set -o) 2>/dev/null\` in #( |
| 148 | *posix*) : |
| 149 | set -o posix ;; #( |
| 150 | *) : |
| 151 | ;; |
| 152 | esac |
| 153 | fi |
| 154 | " |
| 155 | as_required="as_fn_return () { (exit \$1); } |
| 156 | as_fn_success () { as_fn_return 0; } |
| 157 | as_fn_failure () { as_fn_return 1; } |
| 158 | as_fn_ret_success () { return 0; } |
| 159 | as_fn_ret_failure () { return 1; } |
| 160 | |
| 161 | exitcode=0 |
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 167 | |
| 168 | else |
| 169 | exitcode=1; echo positional parameters were not saved. |
| 170 | fi |
| 171 | test x\$exitcode = x0 || exit 1" |
| 172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
cristy | d0bd44a | 2010-09-24 12:38:11 +0000 | [diff] [blame] | 176 | test \$(( 1 + 1 )) = 2 || exit 1" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
| 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
| 219 | BASH_ENV=/dev/null |
| 220 | ENV=/dev/null |
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 222 | export CONFIG_SHELL |
| 223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 224 | fi |
| 225 | |
| 226 | if test x$as_have_required = xno; then : |
| 227 | $as_echo "$0: This script requires a shell more modern than all" |
| 228 | $as_echo "$0: the shells that I found on your system." |
| 229 | if test x${ZSH_VERSION+set} = xset ; then |
| 230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 232 | else |
| 233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 234 | $0: http://www.imagemagick.org about your system, including |
| 235 | $0: any error possibly output before this message. Then |
| 236 | $0: install a modern shell, or manually run the script |
| 237 | $0: under such a shell if you do have one." |
| 238 | fi |
| 239 | exit 1 |
| 240 | fi |
| 241 | fi |
| 242 | fi |
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 244 | export SHELL |
| 245 | # Unset more variables known to interfere with behavior of common tools. |
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 248 | |
| 249 | ## --------------------- ## |
| 250 | ## M4sh Shell Functions. ## |
| 251 | ## --------------------- ## |
| 252 | # as_fn_unset VAR |
| 253 | # --------------- |
| 254 | # Portably unset VAR. |
| 255 | as_fn_unset () |
| 256 | { |
| 257 | { eval $1=; unset $1;} |
| 258 | } |
| 259 | as_unset=as_fn_unset |
| 260 | |
| 261 | # as_fn_set_status STATUS |
| 262 | # ----------------------- |
| 263 | # Set $? to STATUS, without forking. |
| 264 | as_fn_set_status () |
| 265 | { |
| 266 | return $1 |
| 267 | } # as_fn_set_status |
| 268 | |
| 269 | # as_fn_exit STATUS |
| 270 | # ----------------- |
| 271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 272 | as_fn_exit () |
| 273 | { |
| 274 | set +e |
| 275 | as_fn_set_status $1 |
| 276 | exit $1 |
| 277 | } # as_fn_exit |
| 278 | |
| 279 | # as_fn_mkdir_p |
| 280 | # ------------- |
| 281 | # Create "$as_dir" as a directory, including parents if necessary. |
| 282 | as_fn_mkdir_p () |
| 283 | { |
| 284 | |
| 285 | case $as_dir in #( |
| 286 | -*) as_dir=./$as_dir;; |
| 287 | esac |
| 288 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 289 | as_dirs= |
| 290 | while :; do |
| 291 | case $as_dir in #( |
| 292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 293 | *) as_qdir=$as_dir;; |
| 294 | esac |
| 295 | as_dirs="'$as_qdir' $as_dirs" |
| 296 | as_dir=`$as_dirname -- "$as_dir" || |
| 297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 301 | $as_echo X"$as_dir" | |
| 302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 303 | s//\1/ |
| 304 | q |
| 305 | } |
| 306 | /^X\(\/\/\)[^/].*/{ |
| 307 | s//\1/ |
| 308 | q |
| 309 | } |
| 310 | /^X\(\/\/\)$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\).*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | s/.*/./; q'` |
| 319 | test -d "$as_dir" && break |
| 320 | done |
| 321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 323 | |
| 324 | |
| 325 | } # as_fn_mkdir_p |
| 326 | # as_fn_append VAR VALUE |
| 327 | # ---------------------- |
| 328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 329 | # advantage of any shell optimizations that allow amortized linear growth over |
| 330 | # repeated appends, instead of the typical quadratic growth present in naive |
| 331 | # implementations. |
| 332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 333 | eval 'as_fn_append () |
| 334 | { |
| 335 | eval $1+=\$2 |
| 336 | }' |
| 337 | else |
| 338 | as_fn_append () |
| 339 | { |
| 340 | eval $1=\$$1\$2 |
| 341 | } |
| 342 | fi # as_fn_append |
| 343 | |
| 344 | # as_fn_arith ARG... |
| 345 | # ------------------ |
| 346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 348 | # must be portable across $(()) and expr. |
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 350 | eval 'as_fn_arith () |
| 351 | { |
| 352 | as_val=$(( $* )) |
| 353 | }' |
| 354 | else |
| 355 | as_fn_arith () |
| 356 | { |
| 357 | as_val=`expr "$@" || test $? -eq 1` |
| 358 | } |
| 359 | fi # as_fn_arith |
| 360 | |
| 361 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 366 | # script with status $?, using 1 if that was 0. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 367 | as_fn_error () |
| 368 | { |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 369 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 370 | if test "$3"; then |
| 371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 373 | fi |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 374 | $as_echo "$as_me: error: $1" >&2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 375 | as_fn_exit $as_status |
| 376 | } # as_fn_error |
| 377 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 380 | as_expr=expr |
| 381 | else |
| 382 | as_expr=false |
| 383 | fi |
| 384 | |
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 386 | as_basename=basename |
| 387 | else |
| 388 | as_basename=false |
| 389 | fi |
| 390 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 392 | as_dirname=dirname |
| 393 | else |
| 394 | as_dirname=false |
| 395 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 396 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 397 | as_me=`$as_basename -- "$0" || |
| 398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 399 | X"$0" : 'X\(//\)$' \| \ |
| 400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 401 | $as_echo X/"$0" | |
| 402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 403 | s//\1/ |
| 404 | q |
| 405 | } |
| 406 | /^X\/\(\/\/\)$/{ |
| 407 | s//\1/ |
| 408 | q |
| 409 | } |
| 410 | /^X\/\(\/\).*/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | s/.*/./; q'` |
| 415 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 416 | # Avoid depending upon Character Ranges. |
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 420 | as_cr_digits='0123456789' |
| 421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 422 | |
| 423 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 429 | sed -n ' |
| 430 | p |
| 431 | /[$]LINENO/= |
| 432 | ' <$as_myself | |
| 433 | sed ' |
| 434 | s/[$]LINENO.*/&-/ |
| 435 | t lineno |
| 436 | b |
| 437 | :lineno |
| 438 | N |
| 439 | :loop |
| 440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 441 | t loop |
| 442 | s/-\n.*// |
| 443 | ' >$as_me.lineno && |
| 444 | chmod +x "$as_me.lineno" || |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 445 | { $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] | 446 | |
| 447 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 448 | # (the dirname of $[0] is not the place where we might find the |
| 449 | # original and so on. Autoconf is especially sensitive to this). |
| 450 | . "./$as_me.lineno" |
| 451 | # Exit status is that of the last command. |
| 452 | exit |
| 453 | } |
| 454 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 455 | ECHO_C= ECHO_N= ECHO_T= |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 456 | case `echo -n x` in #((((( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 457 | -n*) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 458 | case `echo 'xy\c'` in |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 460 | xy) ECHO_C='\c';; |
| 461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 462 | ECHO_T=' ';; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 463 | esac;; |
| 464 | *) |
| 465 | ECHO_N='-n';; |
| 466 | esac |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 467 | |
| 468 | rm -f conf$$ conf$$.exe conf$$.file |
| 469 | if test -d conf$$.dir; then |
| 470 | rm -f conf$$.dir/conf$$.file |
| 471 | else |
| 472 | rm -f conf$$.dir |
| 473 | mkdir conf$$.dir 2>/dev/null |
| 474 | fi |
| 475 | if (echo >conf$$.file) 2>/dev/null; then |
| 476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 477 | as_ln_s='ln -s' |
| 478 | # ... but there are two gotchas: |
| 479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 481 | # In both cases, we have to default to `cp -p'. |
| 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 483 | as_ln_s='cp -p' |
| 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
| 489 | else |
| 490 | as_ln_s='cp -p' |
| 491 | fi |
| 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 493 | rmdir conf$$.dir 2>/dev/null |
| 494 | |
| 495 | if mkdir -p . 2>/dev/null; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 496 | as_mkdir_p='mkdir -p "$as_dir"' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 497 | else |
| 498 | test -d ./-p && rmdir ./-p |
| 499 | as_mkdir_p=false |
| 500 | fi |
| 501 | |
| 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
| 504 | else |
| 505 | if ls -dL / >/dev/null 2>&1; then |
| 506 | as_ls_L_option=L |
| 507 | else |
| 508 | as_ls_L_option= |
| 509 | fi |
| 510 | as_test_x=' |
| 511 | eval sh -c '\'' |
| 512 | if test -d "$1"; then |
| 513 | test -d "$1/."; |
| 514 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 515 | case $1 in #( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 516 | -*)set "./$1";; |
| 517 | esac; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
| 522 | fi |
| 523 | as_executable_p=$as_test_x |
| 524 | |
| 525 | # Sed expression to map a string onto a valid CPP name. |
| 526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | # Sed expression to map a string onto a valid variable name. |
| 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 530 | |
cristy | d0bd44a | 2010-09-24 12:38:11 +0000 | [diff] [blame] | 531 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 532 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 533 | exec 6>&1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 534 | |
| 535 | # Name of the host. |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 536 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 537 | # so uname gets run too. |
| 538 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 539 | |
| 540 | # |
| 541 | # Initializations. |
| 542 | # |
| 543 | ac_default_prefix=/usr/local |
| 544 | ac_clean_files= |
| 545 | ac_config_libobj_dir=. |
| 546 | LIBOBJS= |
| 547 | cross_compiling=no |
| 548 | subdirs= |
| 549 | MFLAGS= |
| 550 | MAKEFLAGS= |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 551 | |
| 552 | # Identity of this package. |
| 553 | PACKAGE_NAME='ImageMagick' |
| 554 | PACKAGE_TARNAME='ImageMagick' |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 555 | PACKAGE_VERSION='6.6.4' |
| 556 | PACKAGE_STRING='ImageMagick 6.6.4' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 557 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 558 | PACKAGE_URL='' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 559 | |
| 560 | ac_unique_file="magick/MagickCore.h" |
| 561 | ac_config_libobj_dir=ltdl |
| 562 | # Factoring default headers for most tests. |
| 563 | ac_includes_default="\ |
| 564 | #include <stdio.h> |
| 565 | #ifdef HAVE_SYS_TYPES_H |
| 566 | # include <sys/types.h> |
| 567 | #endif |
| 568 | #ifdef HAVE_SYS_STAT_H |
| 569 | # include <sys/stat.h> |
| 570 | #endif |
| 571 | #ifdef STDC_HEADERS |
| 572 | # include <stdlib.h> |
| 573 | # include <stddef.h> |
| 574 | #else |
| 575 | # ifdef HAVE_STDLIB_H |
| 576 | # include <stdlib.h> |
| 577 | # endif |
| 578 | #endif |
| 579 | #ifdef HAVE_STRING_H |
| 580 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 581 | # include <memory.h> |
| 582 | # endif |
| 583 | # include <string.h> |
| 584 | #endif |
| 585 | #ifdef HAVE_STRINGS_H |
| 586 | # include <strings.h> |
| 587 | #endif |
| 588 | #ifdef HAVE_INTTYPES_H |
| 589 | # include <inttypes.h> |
| 590 | #endif |
| 591 | #ifdef HAVE_STDINT_H |
| 592 | # include <stdint.h> |
| 593 | #endif |
| 594 | #ifdef HAVE_UNISTD_H |
| 595 | # include <unistd.h> |
| 596 | #endif" |
| 597 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 598 | ac_header_list= |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 599 | ac_subst_vars='LTLIBOBJS |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 600 | MAGICK_FEATURES |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 601 | MAGICK_LIBS |
| 602 | MAGICK_LDFLAGS |
| 603 | MAGICK_PCFLAGS |
| 604 | MAGICK_CPPFLAGS |
| 605 | MAGICK_CXXFLAGS |
| 606 | MAGICK_CFLAGS |
| 607 | MAGICK_DEP_LIBS |
| 608 | MAGICK_LTDLDEPS |
| 609 | MAGICK_LIBLTDL |
| 610 | OSX_GCOV_LDFLAG |
| 611 | DELEGATES |
| 612 | MAGICKCORE_PATH |
| 613 | PERL_SUPPORTS_DESTDIR |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 614 | GSVersion |
| 615 | GSPSDevice |
| 616 | GSPDFDevice |
| 617 | GSMonoDevice |
| 618 | GSEPSDevice |
| 619 | GSColorDevice |
| 620 | GSCMYKDevice |
| 621 | GSAlphaDevice |
| 622 | XPSVersion |
| 623 | XPSCMYKDevice |
| 624 | XPSColorDevice |
| 625 | XPSMonoDevice |
| 626 | PCLVersion |
| 627 | PCLCMYKDevice |
| 628 | PCLColorDevice |
| 629 | PCLMonoDevice |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 630 | ZIP |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 631 | P7ZIP |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 632 | RPM |
| 633 | PERL |
| 634 | TAR |
| 635 | ShowImageDelegate |
| 636 | type_include_files |
| 637 | ghostscript_font_dir |
| 638 | windows_font_dir |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 639 | dejavu_font_dir |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 640 | PrintDelegate |
| 641 | ZipDelegate |
| 642 | XPSDelegate |
| 643 | WWWDecodeDelegate |
| 644 | WMFDecodeDelegate |
cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 645 | UniconvertorDelegate |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 646 | TXTDelegate |
| 647 | SCANDecodeDelegate |
cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 648 | RSVGDecodeDelegate |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 649 | RMDelegate |
| 650 | RLEEncodeDelegate |
| 651 | PSDelegate |
| 652 | POVDelegate |
| 653 | PGPDecodeDelegate |
| 654 | PCLDelegate |
| 655 | MVDelegate |
cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 656 | MrSIDDecodeDelegate |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 657 | MPEGEncodeDelegate |
| 658 | MPEGDecodeDelegate |
| 659 | MANDelegate |
| 660 | LaunchDelegate |
| 661 | LZWEncodeDelegate |
| 662 | LZWDecodeDelegate |
| 663 | LPRDelegate |
| 664 | LPDelegate |
| 665 | ILBMEncodeDelegate |
| 666 | ILBMDecodeDelegate |
| 667 | HTMLDecodeDelegate |
| 668 | HPGLDecodeDelegate |
| 669 | HDRDecodeDelegate |
| 670 | GnuplotDecodeDelegate |
| 671 | MogrifyDelegate |
| 672 | DisplayDelegate |
| 673 | ConvertDelegate |
| 674 | FIGDecodeDelegate |
| 675 | EditorDelegate |
| 676 | EchoDelegate |
| 677 | DVIDecodeDelegate |
| 678 | GVCDecodeDelegate |
| 679 | DNGDecodeDelegate |
| 680 | CatDelegate |
| 681 | CGMDecodeDelegate |
| 682 | BrowseDelegate |
| 683 | BZIPDelegate |
| 684 | BlenderDecodeDelegate |
| 685 | AVIDecodeDelegate |
| 686 | AutotraceDecodeDelegate |
| 687 | SHARE_CONFIGURE_PATH |
| 688 | SHARE_PATH |
| 689 | DOCUMENTATION_PATH |
| 690 | FILTER_PATH |
| 691 | CODER_PATH |
| 692 | CONFIGURE_PATH |
| 693 | LIBRARY_PATH |
| 694 | EXECUTABLE_PATH |
| 695 | PERLMAINCC |
| 696 | XML_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 697 | xml2_config |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 698 | WMF_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 699 | TIFF_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 700 | RSVG_LIBS |
| 701 | RSVG_CFLAGS |
| 702 | PNG_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 703 | OPENEXR_LIBS |
| 704 | OPENEXR_CFLAGS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 705 | LQR_LIBS |
| 706 | LQR_CFLAGS |
| 707 | LCMS_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 708 | JP2_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 709 | JPEG_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 710 | JBIG_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 711 | GVC_LIBS |
| 712 | GVC_CFLAGS |
| 713 | GS_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 714 | FREETYPE_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 715 | freetype_config |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 716 | FONTCONFIG_LIBS |
| 717 | FONTCONFIG_CFLAGS |
| 718 | FPX_LIBS |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 719 | CXXCPP |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 720 | FFTW_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 721 | DJVU_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 722 | DPS_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 723 | AUTOTRACE_LIBS |
| 724 | AUTOTRACE_CFLAGS |
| 725 | LIB_DL |
| 726 | ZLIB_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 727 | XEXT_LIBS |
| 728 | X11_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 729 | X_EXTRA_LIBS |
| 730 | X_LIBS |
| 731 | X_PRE_LIBS |
| 732 | X_CFLAGS |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 733 | XMKMF |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 734 | BZLIB_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 735 | CCMALLOCDelegate |
| 736 | UMEM_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 737 | THREAD_LIBS |
| 738 | GOMP_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 739 | OPENMP_CXXFLAGS |
cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 740 | MATH_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 741 | POW_LIB |
| 742 | LIBOBJS |
| 743 | UINTPTR_T |
| 744 | UINTMAX_T |
| 745 | UINT64_T |
| 746 | INT64_T |
| 747 | UINT32_T |
| 748 | INT32_T |
| 749 | UINT16_T |
| 750 | INT16_T |
| 751 | UINT8_T |
| 752 | INT8_T |
| 753 | LIBRARY_EXTRA_CPPFLAGS |
| 754 | MODULE_EXTRA_CPPFLAGS |
| 755 | LIBSTDCLDFLAGS |
| 756 | PERL_MAKE_OPTIONS |
| 757 | QUANTUM_DEPTH |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 758 | MAGICK_HDRI |
| 759 | DLLDFLAGS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 760 | LIBTOOL_DEPS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 761 | LFS_CPPFLAGS |
cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 762 | CL_CFLAGS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 763 | OPENMP_CFLAGS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 764 | WinPathScript |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 765 | GDI32_LIBS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 766 | LN_S |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 767 | SET_MAKE |
| 768 | INSTALL_DATA |
| 769 | INSTALL_SCRIPT |
| 770 | INSTALL_PROGRAM |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 771 | LD |
cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 772 | ac_ct_CXX |
| 773 | CXXFLAGS |
| 774 | CXX |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 775 | EGREP |
| 776 | GREP |
| 777 | CPP |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 778 | OBJEXT |
| 779 | EXEEXT |
| 780 | ac_ct_CC |
| 781 | CPPFLAGS |
| 782 | LDFLAGS |
| 783 | CFLAGS |
| 784 | CC |
| 785 | DIRSEP |
| 786 | MAGICK_FILTER_MODULE_PATH |
| 787 | MAGICK_CONFIGURE_BUILD_PATH |
| 788 | MAGICK_CONFIGURE_SRC_PATH |
| 789 | MAGICK_CODER_MODULE_PATH |
| 790 | MAN_DIR |
| 791 | INFO_DIR |
| 792 | PERSISTINCLUDE_DIR |
| 793 | INCLUDE_DIR |
| 794 | LIB_DIR |
| 795 | LOCALSTATE_DIR |
| 796 | SHAREDSTATE_DIR |
| 797 | SYSCONF_DIR |
| 798 | DATA_DIR |
| 799 | LIBEXEC_DIR |
| 800 | SBIN_DIR |
| 801 | BIN_DIR |
| 802 | EXEC_PREFIX_DIR |
| 803 | PREFIX_DIR |
| 804 | CONFIG_STATUS_DEPENDENCIES |
| 805 | MAGICK_LIB_VERSION_NUMBER |
| 806 | MAGICK_LIB_VERSION_TEXT |
| 807 | MAGICK_LIB_VERSION |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 808 | PACKAGE_VERSION_ADDENDUM |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 809 | PACKAGE_RELEASE_DATE |
| 810 | PACKAGE_LIB_VERSION_NUMBER |
| 811 | PACKAGE_LIB_VERSION |
| 812 | PACKAGE_CHANGE_DATE |
| 813 | PACKAGE_RELEASE |
cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 814 | MAGICK_LIBRARY_VERSION_INFO |
| 815 | MAGICK_LIBRARY_CURRENT_MIN |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 816 | MAGICK_LIBRARY_AGE |
| 817 | MAGICK_LIBRARY_REVISION |
| 818 | MAGICK_LIBRARY_CURRENT |
cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 819 | MAGICK_TARGET_OS |
| 820 | MAGICK_TARGET_VENDOR |
| 821 | MAGICK_TARGET_CPU |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 822 | target_os |
| 823 | target_vendor |
| 824 | target_cpu |
| 825 | target |
| 826 | host_os |
| 827 | host_vendor |
| 828 | host_cpu |
| 829 | host |
| 830 | build_os |
| 831 | build_vendor |
| 832 | build_cpu |
| 833 | build |
| 834 | CONFIGURE_ARGS |
| 835 | DISTCHECK_CONFIG_FLAGS |
| 836 | target_alias |
| 837 | host_alias |
| 838 | build_alias |
| 839 | LIBS |
| 840 | ECHO_T |
| 841 | ECHO_N |
| 842 | ECHO_C |
| 843 | DEFS |
| 844 | mandir |
| 845 | localedir |
| 846 | libdir |
| 847 | psdir |
| 848 | pdfdir |
| 849 | dvidir |
| 850 | htmldir |
| 851 | infodir |
| 852 | docdir |
| 853 | oldincludedir |
| 854 | includedir |
| 855 | localstatedir |
| 856 | sharedstatedir |
| 857 | sysconfdir |
| 858 | datadir |
| 859 | datarootdir |
| 860 | libexecdir |
| 861 | sbindir |
| 862 | bindir |
| 863 | program_transform_name |
| 864 | prefix |
| 865 | exec_prefix |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 866 | PACKAGE_URL |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 867 | PACKAGE_BUGREPORT |
| 868 | PACKAGE_STRING |
| 869 | PACKAGE_VERSION |
| 870 | PACKAGE_TARNAME |
| 871 | PACKAGE_NAME |
| 872 | PATH_SEPARATOR |
| 873 | SHELL' |
| 874 | ac_subst_files='' |
| 875 | ac_user_opts=' |
| 876 | enable_option_checking |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 877 | enable_bounds_checking |
| 878 | enable_osx_universal_binary |
| 879 | with_threads |
| 880 | enable_openmp |
| 881 | enable_largefile |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 882 | with_modules |
| 883 | enable_delegate_build |
| 884 | enable_deprecated |
| 885 | enable_installed |
| 886 | enable_cipher |
| 887 | enable_embeddable |
| 888 | enable_hdri |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 889 | enable_assert |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 890 | enable_ccmalloc |
| 891 | enable_efence |
| 892 | enable_prof |
| 893 | enable_gprof |
| 894 | enable_gcov |
| 895 | with_method_prefix |
| 896 | with_quantum_depth |
| 897 | with_cache |
| 898 | with_frozenpaths |
| 899 | with_magick_plus_plus |
| 900 | with_perl |
| 901 | with_perl_options |
| 902 | with_umem |
| 903 | with_libstdc |
| 904 | with_bzlib |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 905 | with_x |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 906 | with_zlib |
| 907 | with_autotrace |
| 908 | with_dps |
| 909 | with_djvu |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 910 | with_dejavu_font_dir |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 911 | with_fftw |
| 912 | with_fpx |
| 913 | with_fontconfig |
| 914 | with_freetype |
| 915 | with_gslib |
| 916 | with_fontpath |
| 917 | with_gs_font_dir |
| 918 | with_gvc |
| 919 | with_jbig |
| 920 | with_jpeg |
| 921 | with_jp2 |
| 922 | with_lcms |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 923 | with_lcms2 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 924 | with_lqr |
| 925 | with_openexr |
| 926 | with_png |
| 927 | with_rsvg |
| 928 | with_tiff |
| 929 | with_windows_font_dir |
| 930 | with_wmf |
| 931 | with_xml |
| 932 | ' |
| 933 | ac_precious_vars='build_alias |
| 934 | host_alias |
| 935 | target_alias |
| 936 | CC |
| 937 | CFLAGS |
| 938 | LDFLAGS |
| 939 | LIBS |
| 940 | CPPFLAGS |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 941 | CPP |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 942 | CXX |
| 943 | CXXFLAGS |
| 944 | CCC |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 945 | XMKMF |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 946 | CXXCPP' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 947 | |
| 948 | |
| 949 | # Initialize some variables set by options. |
| 950 | ac_init_help= |
| 951 | ac_init_version=false |
| 952 | ac_unrecognized_opts= |
| 953 | ac_unrecognized_sep= |
| 954 | # The variables have the same names as the options, with |
| 955 | # dashes changed to underlines. |
| 956 | cache_file=/dev/null |
| 957 | exec_prefix=NONE |
| 958 | no_create= |
| 959 | no_recursion= |
| 960 | prefix=NONE |
| 961 | program_prefix=NONE |
| 962 | program_suffix=NONE |
| 963 | program_transform_name=s,x,x, |
| 964 | silent= |
| 965 | site= |
| 966 | srcdir= |
| 967 | verbose= |
| 968 | x_includes=NONE |
| 969 | x_libraries=NONE |
| 970 | |
| 971 | # Installation directory options. |
| 972 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 973 | # and all the variables that are supposed to be based on exec_prefix |
| 974 | # by default will actually change. |
| 975 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 976 | # (The list follows the same order as the GNU Coding Standards.) |
| 977 | bindir='${exec_prefix}/bin' |
| 978 | sbindir='${exec_prefix}/sbin' |
| 979 | libexecdir='${exec_prefix}/libexec' |
| 980 | datarootdir='${prefix}/share' |
| 981 | datadir='${datarootdir}' |
| 982 | sysconfdir='${prefix}/etc' |
| 983 | sharedstatedir='${prefix}/com' |
| 984 | localstatedir='${prefix}/var' |
| 985 | includedir='${prefix}/include' |
| 986 | oldincludedir='/usr/include' |
| 987 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 988 | infodir='${datarootdir}/info' |
| 989 | htmldir='${docdir}' |
| 990 | dvidir='${docdir}' |
| 991 | pdfdir='${docdir}' |
| 992 | psdir='${docdir}' |
| 993 | libdir='${exec_prefix}/lib' |
| 994 | localedir='${datarootdir}/locale' |
| 995 | mandir='${datarootdir}/man' |
| 996 | |
| 997 | ac_prev= |
| 998 | ac_dashdash= |
| 999 | for ac_option |
| 1000 | do |
| 1001 | # If the previous option needs an argument, assign it. |
| 1002 | if test -n "$ac_prev"; then |
| 1003 | eval $ac_prev=\$ac_option |
| 1004 | ac_prev= |
| 1005 | continue |
| 1006 | fi |
| 1007 | |
| 1008 | case $ac_option in |
| 1009 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1010 | *) ac_optarg=yes ;; |
| 1011 | esac |
| 1012 | |
| 1013 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1014 | |
| 1015 | case $ac_dashdash$ac_option in |
| 1016 | --) |
| 1017 | ac_dashdash=yes ;; |
| 1018 | |
| 1019 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1020 | ac_prev=bindir ;; |
| 1021 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1022 | bindir=$ac_optarg ;; |
| 1023 | |
| 1024 | -build | --build | --buil | --bui | --bu) |
| 1025 | ac_prev=build_alias ;; |
| 1026 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1027 | build_alias=$ac_optarg ;; |
| 1028 | |
| 1029 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1030 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1031 | ac_prev=cache_file ;; |
| 1032 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1033 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1034 | cache_file=$ac_optarg ;; |
| 1035 | |
| 1036 | --config-cache | -C) |
| 1037 | cache_file=config.cache ;; |
| 1038 | |
| 1039 | -datadir | --datadir | --datadi | --datad) |
| 1040 | ac_prev=datadir ;; |
| 1041 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1042 | datadir=$ac_optarg ;; |
| 1043 | |
| 1044 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1045 | | --dataroo | --dataro | --datar) |
| 1046 | ac_prev=datarootdir ;; |
| 1047 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1048 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1049 | datarootdir=$ac_optarg ;; |
| 1050 | |
| 1051 | -disable-* | --disable-*) |
| 1052 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1053 | # Reject names that are not valid shell variable names. |
| 1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1055 | as_fn_error "invalid feature name: $ac_useropt" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1056 | ac_useropt_orig=$ac_useropt |
| 1057 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1058 | case $ac_user_opts in |
| 1059 | *" |
| 1060 | "enable_$ac_useropt" |
| 1061 | "*) ;; |
| 1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1063 | ac_unrecognized_sep=', ';; |
| 1064 | esac |
| 1065 | eval enable_$ac_useropt=no ;; |
| 1066 | |
| 1067 | -docdir | --docdir | --docdi | --doc | --do) |
| 1068 | ac_prev=docdir ;; |
| 1069 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1070 | docdir=$ac_optarg ;; |
| 1071 | |
| 1072 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1073 | ac_prev=dvidir ;; |
| 1074 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1075 | dvidir=$ac_optarg ;; |
| 1076 | |
| 1077 | -enable-* | --enable-*) |
| 1078 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1079 | # Reject names that are not valid shell variable names. |
| 1080 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1081 | as_fn_error "invalid feature name: $ac_useropt" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1082 | ac_useropt_orig=$ac_useropt |
| 1083 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1084 | case $ac_user_opts in |
| 1085 | *" |
| 1086 | "enable_$ac_useropt" |
| 1087 | "*) ;; |
| 1088 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1089 | ac_unrecognized_sep=', ';; |
| 1090 | esac |
| 1091 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1092 | |
| 1093 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1094 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1095 | | --exec | --exe | --ex) |
| 1096 | ac_prev=exec_prefix ;; |
| 1097 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1098 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1099 | | --exec=* | --exe=* | --ex=*) |
| 1100 | exec_prefix=$ac_optarg ;; |
| 1101 | |
| 1102 | -gas | --gas | --ga | --g) |
| 1103 | # Obsolete; use --with-gas. |
| 1104 | with_gas=yes ;; |
| 1105 | |
| 1106 | -help | --help | --hel | --he | -h) |
| 1107 | ac_init_help=long ;; |
| 1108 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1109 | ac_init_help=recursive ;; |
| 1110 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1111 | ac_init_help=short ;; |
| 1112 | |
| 1113 | -host | --host | --hos | --ho) |
| 1114 | ac_prev=host_alias ;; |
| 1115 | -host=* | --host=* | --hos=* | --ho=*) |
| 1116 | host_alias=$ac_optarg ;; |
| 1117 | |
| 1118 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1119 | ac_prev=htmldir ;; |
| 1120 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1121 | | --ht=*) |
| 1122 | htmldir=$ac_optarg ;; |
| 1123 | |
| 1124 | -includedir | --includedir | --includedi | --included | --include \ |
| 1125 | | --includ | --inclu | --incl | --inc) |
| 1126 | ac_prev=includedir ;; |
| 1127 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1128 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1129 | includedir=$ac_optarg ;; |
| 1130 | |
| 1131 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1132 | ac_prev=infodir ;; |
| 1133 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1134 | infodir=$ac_optarg ;; |
| 1135 | |
| 1136 | -libdir | --libdir | --libdi | --libd) |
| 1137 | ac_prev=libdir ;; |
| 1138 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1139 | libdir=$ac_optarg ;; |
| 1140 | |
| 1141 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1142 | | --libexe | --libex | --libe) |
| 1143 | ac_prev=libexecdir ;; |
| 1144 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1145 | | --libexe=* | --libex=* | --libe=*) |
| 1146 | libexecdir=$ac_optarg ;; |
| 1147 | |
| 1148 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1149 | ac_prev=localedir ;; |
| 1150 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1151 | localedir=$ac_optarg ;; |
| 1152 | |
| 1153 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1154 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1155 | ac_prev=localstatedir ;; |
| 1156 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1157 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1158 | localstatedir=$ac_optarg ;; |
| 1159 | |
| 1160 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1161 | ac_prev=mandir ;; |
| 1162 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1163 | mandir=$ac_optarg ;; |
| 1164 | |
| 1165 | -nfp | --nfp | --nf) |
| 1166 | # Obsolete; use --without-fp. |
| 1167 | with_fp=no ;; |
| 1168 | |
| 1169 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1170 | | --no-cr | --no-c | -n) |
| 1171 | no_create=yes ;; |
| 1172 | |
| 1173 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1174 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1175 | no_recursion=yes ;; |
| 1176 | |
| 1177 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1178 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1179 | | --oldin | --oldi | --old | --ol | --o) |
| 1180 | ac_prev=oldincludedir ;; |
| 1181 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1182 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1183 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1184 | oldincludedir=$ac_optarg ;; |
| 1185 | |
| 1186 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1187 | ac_prev=prefix ;; |
| 1188 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1189 | prefix=$ac_optarg ;; |
| 1190 | |
| 1191 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1192 | | --program-pre | --program-pr | --program-p) |
| 1193 | ac_prev=program_prefix ;; |
| 1194 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1195 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1196 | program_prefix=$ac_optarg ;; |
| 1197 | |
| 1198 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1199 | | --program-suf | --program-su | --program-s) |
| 1200 | ac_prev=program_suffix ;; |
| 1201 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1202 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1203 | program_suffix=$ac_optarg ;; |
| 1204 | |
| 1205 | -program-transform-name | --program-transform-name \ |
| 1206 | | --program-transform-nam | --program-transform-na \ |
| 1207 | | --program-transform-n | --program-transform- \ |
| 1208 | | --program-transform | --program-transfor \ |
| 1209 | | --program-transfo | --program-transf \ |
| 1210 | | --program-trans | --program-tran \ |
| 1211 | | --progr-tra | --program-tr | --program-t) |
| 1212 | ac_prev=program_transform_name ;; |
| 1213 | -program-transform-name=* | --program-transform-name=* \ |
| 1214 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1215 | | --program-transform-n=* | --program-transform-=* \ |
| 1216 | | --program-transform=* | --program-transfor=* \ |
| 1217 | | --program-transfo=* | --program-transf=* \ |
| 1218 | | --program-trans=* | --program-tran=* \ |
| 1219 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1220 | program_transform_name=$ac_optarg ;; |
| 1221 | |
| 1222 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1223 | ac_prev=pdfdir ;; |
| 1224 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1225 | pdfdir=$ac_optarg ;; |
| 1226 | |
| 1227 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1228 | ac_prev=psdir ;; |
| 1229 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1230 | psdir=$ac_optarg ;; |
| 1231 | |
| 1232 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1233 | | -silent | --silent | --silen | --sile | --sil) |
| 1234 | silent=yes ;; |
| 1235 | |
| 1236 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1237 | ac_prev=sbindir ;; |
| 1238 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1239 | | --sbi=* | --sb=*) |
| 1240 | sbindir=$ac_optarg ;; |
| 1241 | |
| 1242 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1243 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1244 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1245 | | --sha | --sh) |
| 1246 | ac_prev=sharedstatedir ;; |
| 1247 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1248 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1249 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1250 | | --sha=* | --sh=*) |
| 1251 | sharedstatedir=$ac_optarg ;; |
| 1252 | |
| 1253 | -site | --site | --sit) |
| 1254 | ac_prev=site ;; |
| 1255 | -site=* | --site=* | --sit=*) |
| 1256 | site=$ac_optarg ;; |
| 1257 | |
| 1258 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1259 | ac_prev=srcdir ;; |
| 1260 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1261 | srcdir=$ac_optarg ;; |
| 1262 | |
| 1263 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1264 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1265 | ac_prev=sysconfdir ;; |
| 1266 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1267 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1268 | sysconfdir=$ac_optarg ;; |
| 1269 | |
| 1270 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1271 | ac_prev=target_alias ;; |
| 1272 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1273 | target_alias=$ac_optarg ;; |
| 1274 | |
| 1275 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1276 | verbose=yes ;; |
| 1277 | |
| 1278 | -version | --version | --versio | --versi | --vers | -V) |
| 1279 | ac_init_version=: ;; |
| 1280 | |
| 1281 | -with-* | --with-*) |
| 1282 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1283 | # Reject names that are not valid shell variable names. |
| 1284 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1285 | as_fn_error "invalid package name: $ac_useropt" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1286 | ac_useropt_orig=$ac_useropt |
| 1287 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1288 | case $ac_user_opts in |
| 1289 | *" |
| 1290 | "with_$ac_useropt" |
| 1291 | "*) ;; |
| 1292 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1293 | ac_unrecognized_sep=', ';; |
| 1294 | esac |
| 1295 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1296 | |
| 1297 | -without-* | --without-*) |
| 1298 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1299 | # Reject names that are not valid shell variable names. |
| 1300 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1301 | as_fn_error "invalid package name: $ac_useropt" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1302 | ac_useropt_orig=$ac_useropt |
| 1303 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1304 | case $ac_user_opts in |
| 1305 | *" |
| 1306 | "with_$ac_useropt" |
| 1307 | "*) ;; |
| 1308 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1309 | ac_unrecognized_sep=', ';; |
| 1310 | esac |
| 1311 | eval with_$ac_useropt=no ;; |
| 1312 | |
| 1313 | --x) |
| 1314 | # Obsolete; use --with-x. |
| 1315 | with_x=yes ;; |
| 1316 | |
| 1317 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1318 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1319 | ac_prev=x_includes ;; |
| 1320 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1321 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1322 | x_includes=$ac_optarg ;; |
| 1323 | |
| 1324 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1325 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1326 | ac_prev=x_libraries ;; |
| 1327 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1328 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1329 | x_libraries=$ac_optarg ;; |
| 1330 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1331 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1332 | Try \`$0 --help' for more information." |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1333 | ;; |
| 1334 | |
| 1335 | *=*) |
| 1336 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1337 | # Reject names that are not valid shell variable names. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1338 | case $ac_envvar in #( |
| 1339 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1340 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1341 | esac |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1342 | eval $ac_envvar=\$ac_optarg |
| 1343 | export $ac_envvar ;; |
| 1344 | |
| 1345 | *) |
| 1346 | # FIXME: should be removed in autoconf 3.0. |
| 1347 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1348 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1349 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1350 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1351 | ;; |
| 1352 | |
| 1353 | esac |
| 1354 | done |
| 1355 | |
| 1356 | if test -n "$ac_prev"; then |
| 1357 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1358 | as_fn_error "missing argument to $ac_option" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1359 | fi |
| 1360 | |
| 1361 | if test -n "$ac_unrecognized_opts"; then |
| 1362 | case $enable_option_checking in |
| 1363 | no) ;; |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1364 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1365 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1366 | esac |
| 1367 | fi |
| 1368 | |
| 1369 | # Check all directory arguments for consistency. |
| 1370 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1371 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1372 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1373 | libdir localedir mandir |
| 1374 | do |
| 1375 | eval ac_val=\$$ac_var |
| 1376 | # Remove trailing slashes. |
| 1377 | case $ac_val in |
| 1378 | */ ) |
| 1379 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1380 | eval $ac_var=\$ac_val;; |
| 1381 | esac |
| 1382 | # Be sure to have absolute directory names. |
| 1383 | case $ac_val in |
| 1384 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1385 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1386 | esac |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1387 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1388 | done |
| 1389 | |
| 1390 | # There might be people who depend on the old broken behavior: `$host' |
| 1391 | # used to hold the argument of --host etc. |
| 1392 | # FIXME: To remove some day. |
| 1393 | build=$build_alias |
| 1394 | host=$host_alias |
| 1395 | target=$target_alias |
| 1396 | |
| 1397 | # FIXME: To remove some day. |
| 1398 | if test "x$host_alias" != x; then |
| 1399 | if test "x$build_alias" = x; then |
| 1400 | cross_compiling=maybe |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1401 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1402 | 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] | 1403 | elif test "x$build_alias" != "x$host_alias"; then |
| 1404 | cross_compiling=yes |
| 1405 | fi |
| 1406 | fi |
| 1407 | |
| 1408 | ac_tool_prefix= |
| 1409 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1410 | |
| 1411 | test "$silent" = yes && exec 6>/dev/null |
| 1412 | |
| 1413 | |
| 1414 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1415 | ac_ls_di=`ls -di .` && |
| 1416 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1417 | as_fn_error "working directory cannot be determined" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1418 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1419 | as_fn_error "pwd does not report name of working directory" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1420 | |
| 1421 | |
| 1422 | # Find the source files, if location was not specified. |
| 1423 | if test -z "$srcdir"; then |
| 1424 | ac_srcdir_defaulted=yes |
| 1425 | # Try the directory containing this script, then the parent directory. |
| 1426 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1427 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1428 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1429 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1430 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1431 | $as_echo X"$as_myself" | |
| 1432 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1433 | s//\1/ |
| 1434 | q |
| 1435 | } |
| 1436 | /^X\(\/\/\)[^/].*/{ |
| 1437 | s//\1/ |
| 1438 | q |
| 1439 | } |
| 1440 | /^X\(\/\/\)$/{ |
| 1441 | s//\1/ |
| 1442 | q |
| 1443 | } |
| 1444 | /^X\(\/\).*/{ |
| 1445 | s//\1/ |
| 1446 | q |
| 1447 | } |
| 1448 | s/.*/./; q'` |
| 1449 | srcdir=$ac_confdir |
| 1450 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1451 | srcdir=.. |
| 1452 | fi |
| 1453 | else |
| 1454 | ac_srcdir_defaulted=no |
| 1455 | fi |
| 1456 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1457 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1458 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1459 | fi |
| 1460 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1461 | ac_abs_confdir=`( |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1462 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1463 | pwd)` |
| 1464 | # When building in place, set srcdir=. |
| 1465 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1466 | srcdir=. |
| 1467 | fi |
| 1468 | # Remove unnecessary trailing slashes from srcdir. |
| 1469 | # Double slashes in file names in object file debugging info |
| 1470 | # mess up M-x gdb in Emacs. |
| 1471 | case $srcdir in |
| 1472 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1473 | esac |
| 1474 | for ac_var in $ac_precious_vars; do |
| 1475 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1476 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1477 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1478 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1479 | done |
| 1480 | |
| 1481 | # |
| 1482 | # Report the --help message. |
| 1483 | # |
| 1484 | if test "$ac_init_help" = "long"; then |
| 1485 | # Omit some internal or obsolete options to make the list less imposing. |
| 1486 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1487 | cat <<_ACEOF |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 1488 | \`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1489 | |
| 1490 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1491 | |
| 1492 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1493 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1494 | |
| 1495 | Defaults for the options are specified in brackets. |
| 1496 | |
| 1497 | Configuration: |
| 1498 | -h, --help display this help and exit |
| 1499 | --help=short display options specific to this package |
| 1500 | --help=recursive display the short help of all the included packages |
| 1501 | -V, --version display version information and exit |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1502 | -q, --quiet, --silent do not print \`checking...' messages |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1503 | --cache-file=FILE cache test results in FILE [disabled] |
| 1504 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1505 | -n, --no-create do not create output files |
| 1506 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1507 | |
| 1508 | Installation directories: |
| 1509 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1510 | [$ac_default_prefix] |
| 1511 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1512 | [PREFIX] |
| 1513 | |
| 1514 | By default, \`make install' will install all the files in |
| 1515 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1516 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1517 | for instance \`--prefix=\$HOME'. |
| 1518 | |
| 1519 | For better control, use the options below. |
| 1520 | |
| 1521 | Fine tuning of the installation directories: |
| 1522 | --bindir=DIR user executables [EPREFIX/bin] |
| 1523 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1524 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1525 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1526 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1527 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1528 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1529 | --includedir=DIR C header files [PREFIX/include] |
| 1530 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1531 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1532 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1533 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1534 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1535 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1536 | --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] |
| 1537 | --htmldir=DIR html documentation [DOCDIR] |
| 1538 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1539 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1540 | --psdir=DIR ps documentation [DOCDIR] |
| 1541 | _ACEOF |
| 1542 | |
| 1543 | cat <<\_ACEOF |
| 1544 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1545 | X features: |
| 1546 | --x-includes=DIR X include files are in DIR |
| 1547 | --x-libraries=DIR X library files are in DIR |
| 1548 | |
| 1549 | System types: |
| 1550 | --build=BUILD configure for building on BUILD [guessed] |
| 1551 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1552 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1553 | _ACEOF |
| 1554 | fi |
| 1555 | |
| 1556 | if test -n "$ac_init_help"; then |
| 1557 | case $ac_init_help in |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 1558 | short | recursive ) echo "Configuration of ImageMagick 6.6.4:";; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1559 | esac |
| 1560 | cat <<\_ACEOF |
| 1561 | |
| 1562 | Optional Features: |
| 1563 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1564 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1565 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1566 | --bounds-checking enable run-time bounds-checking |
| 1567 | --enable-osx-universal-binary |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1568 | build universal binary on OS X [[default=no]] |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1569 | --disable-openmp do not use OpenMP |
| 1570 | --disable-largefile omit support for large files |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1571 | --enable-delegate-build look for delegate libraries in build directory |
| 1572 | --disable-deprecated exclude deprecated methods in MagickCore and |
| 1573 | MagickWand API's |
| 1574 | --disable-installed Formally install ImageMagick under PREFIX |
| 1575 | --disable-cipher disable enciphering and deciphering image pixels |
| 1576 | --enable-embeddable enable self-contained, embeddable, |
| 1577 | zero-configuration ImageMagick |
| 1578 | --enable-hdri accurately represent the wide range of intensity |
| 1579 | levels found in real scenes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1580 | --disable-assert disable assert() statements in build |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1581 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1582 | --enable-efence enable 'efence' memory debug support |
| 1583 | --enable-prof enable 'prof' profiling support |
| 1584 | --enable-gprof enable 'gprof' profiling support |
| 1585 | --enable-gcov enable 'gcov' profiling support |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1586 | --disable-assert turn off assertions |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1587 | |
| 1588 | Optional Packages: |
| 1589 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1590 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1591 | --without-threads disable threads support |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1592 | --with-modules enable building dynamically loadable modules |
| 1593 | --with-method-prefix=PREFIX |
| 1594 | prefix MagickCore API methods |
| 1595 | --with-quantum-depth=DEPTH |
| 1596 | number of bits in a pixel quantum (default 16) |
| 1597 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 1598 | memory) |
| 1599 | --with-frozenpaths freeze delegate paths |
| 1600 | --without-magick-plus-plus |
| 1601 | disable build/install of Magick++ |
| 1602 | --with-perl enable build/install of PerlMagick |
| 1603 | --with-perl-options=OPTIONS |
| 1604 | options to pass on command-line when generating |
| 1605 | PerlMagick's build file |
| 1606 | --with-umem enable umem memory allocation library support |
| 1607 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 1608 | --without-bzlib disable BZLIB support |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1609 | --with-x use the X Window System |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1610 | --without-zlib disable ZLIB support |
| 1611 | --with-autotrace enable autotrace support |
| 1612 | --without-dps disable Display Postscript support |
| 1613 | --without-djvu disable DjVu support |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1614 | --with-dejavu-font-dir=DIR |
| 1615 | DejaVu font directory |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1616 | --without-fftw disable FFTW support |
| 1617 | --without-fpx disable FlashPIX support |
| 1618 | --without-fontconfig disable fontconfig support |
| 1619 | --without-freetype disable Freetype support |
| 1620 | --without-gslib enable Ghostscript library support |
| 1621 | --with-fontpath=DIR prepend to default font search path |
| 1622 | --with-gs-font-dir=DIR Ghostscript font directory |
| 1623 | --without-gvc disable GVC support |
| 1624 | --without-jbig disable JBIG support |
| 1625 | --without-jpeg disable JPEG support |
| 1626 | --without-jp2 disable JPEG-2000 support |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1627 | --without-lcms disable lcms (v1.1X) support |
| 1628 | --without-lcms2 disable lcms (v2.X) support |
cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1629 | --without-lqr disable Liquid Rescale support |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1630 | --without-openexr disable OpenEXR support |
| 1631 | --without-png disable PNG support |
| 1632 | --without-rsvg disable RSVG support |
| 1633 | --without-tiff disable TIFF support |
| 1634 | --with-windows-font-dir=DIR |
| 1635 | directory containing MS-Windows fonts |
| 1636 | --without-wmf disable WMF support |
| 1637 | --without-xml disable XML support |
| 1638 | |
| 1639 | Some influential environment variables: |
| 1640 | CC C compiler command |
| 1641 | CFLAGS C compiler flags |
| 1642 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1643 | nonstandard directory <lib dir> |
| 1644 | LIBS libraries to pass to the linker, e.g. -l<library> |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1645 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1646 | you have headers in a nonstandard directory <include dir> |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1647 | CPP C preprocessor |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1648 | CXX C++ compiler command |
| 1649 | CXXFLAGS C++ compiler flags |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1650 | XMKMF Path to xmkmf, Makefile generator for X Window System |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 1651 | CXXCPP C++ preprocessor |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1652 | |
| 1653 | Use these variables to override the choices made by `configure' or to help |
| 1654 | it to find libraries and programs with nonstandard names/locations. |
| 1655 | |
| 1656 | Report bugs to <http://www.imagemagick.org>. |
| 1657 | _ACEOF |
| 1658 | ac_status=$? |
| 1659 | fi |
| 1660 | |
| 1661 | if test "$ac_init_help" = "recursive"; then |
| 1662 | # If there are subdirs, report their specific --help. |
| 1663 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1664 | test -d "$ac_dir" || |
| 1665 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1666 | continue |
| 1667 | ac_builddir=. |
| 1668 | |
| 1669 | case "$ac_dir" in |
| 1670 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1671 | *) |
| 1672 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1673 | # A ".." for each directory in $ac_dir_suffix. |
| 1674 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1675 | case $ac_top_builddir_sub in |
| 1676 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1677 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1678 | esac ;; |
| 1679 | esac |
| 1680 | ac_abs_top_builddir=$ac_pwd |
| 1681 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1682 | # for backward compatibility: |
| 1683 | ac_top_builddir=$ac_top_build_prefix |
| 1684 | |
| 1685 | case $srcdir in |
| 1686 | .) # We are building in place. |
| 1687 | ac_srcdir=. |
| 1688 | ac_top_srcdir=$ac_top_builddir_sub |
| 1689 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1690 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1691 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1692 | ac_top_srcdir=$srcdir |
| 1693 | ac_abs_top_srcdir=$srcdir ;; |
| 1694 | *) # Relative name. |
| 1695 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1696 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1697 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1698 | esac |
| 1699 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1700 | |
| 1701 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1702 | # Check for guested configure. |
| 1703 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1704 | echo && |
| 1705 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1706 | elif test -f "$ac_srcdir/configure"; then |
| 1707 | echo && |
| 1708 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1709 | else |
| 1710 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1711 | fi || ac_status=$? |
| 1712 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1713 | done |
| 1714 | fi |
| 1715 | |
| 1716 | test -n "$ac_init_help" && exit $ac_status |
| 1717 | if $ac_init_version; then |
| 1718 | cat <<\_ACEOF |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 1719 | ImageMagick configure 6.6.4 |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1720 | generated by GNU Autoconf 2.65 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1721 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1722 | Copyright (C) 2009 Free Software Foundation, Inc. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1723 | This configure script is free software; the Free Software Foundation |
| 1724 | gives unlimited permission to copy, distribute and modify it. |
| 1725 | _ACEOF |
| 1726 | exit |
| 1727 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1728 | |
| 1729 | ## ------------------------ ## |
| 1730 | ## Autoconf initialization. ## |
| 1731 | ## ------------------------ ## |
| 1732 | |
| 1733 | # ac_fn_c_try_compile LINENO |
| 1734 | # -------------------------- |
| 1735 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1736 | ac_fn_c_try_compile () |
| 1737 | { |
| 1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1739 | rm -f conftest.$ac_objext |
| 1740 | if { { ac_try="$ac_compile" |
| 1741 | case "(($ac_try" in |
| 1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1743 | *) ac_try_echo=$ac_try;; |
| 1744 | esac |
| 1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1746 | $as_echo "$ac_try_echo"; } >&5 |
| 1747 | (eval "$ac_compile") 2>conftest.err |
| 1748 | ac_status=$? |
| 1749 | if test -s conftest.err; then |
| 1750 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1751 | cat conftest.er1 >&5 |
| 1752 | mv -f conftest.er1 conftest.err |
| 1753 | fi |
| 1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1755 | test $ac_status = 0; } && { |
| 1756 | test -z "$ac_c_werror_flag" || |
| 1757 | test ! -s conftest.err |
| 1758 | } && test -s conftest.$ac_objext; then : |
| 1759 | ac_retval=0 |
| 1760 | else |
| 1761 | $as_echo "$as_me: failed program was:" >&5 |
| 1762 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1763 | |
| 1764 | ac_retval=1 |
| 1765 | fi |
| 1766 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1767 | as_fn_set_status $ac_retval |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1768 | |
| 1769 | } # ac_fn_c_try_compile |
| 1770 | |
cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 1771 | # ac_fn_c_try_cpp LINENO |
| 1772 | # ---------------------- |
| 1773 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1774 | ac_fn_c_try_cpp () |
| 1775 | { |
| 1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1777 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1778 | case "(($ac_try" in |
| 1779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1780 | *) ac_try_echo=$ac_try;; |
| 1781 | esac |
| 1782 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1783 | $as_echo "$ac_try_echo"; } >&5 |
| 1784 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1785 | ac_status=$? |
| 1786 | if test -s conftest.err; then |
| 1787 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1788 | cat conftest.er1 >&5 |
| 1789 | mv -f conftest.er1 conftest.err |
| 1790 | fi |
| 1791 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1792 | test $ac_status = 0; } >/dev/null && { |
| 1793 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1794 | test ! -s conftest.err |
| 1795 | }; then : |
| 1796 | ac_retval=0 |
| 1797 | else |
| 1798 | $as_echo "$as_me: failed program was:" >&5 |
| 1799 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1800 | |
| 1801 | ac_retval=1 |
| 1802 | fi |
| 1803 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1804 | as_fn_set_status $ac_retval |
| 1805 | |
| 1806 | } # ac_fn_c_try_cpp |
| 1807 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1808 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1809 | # ------------------------------------------------------- |
| 1810 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1811 | # the include files in INCLUDES and setting the cache variable VAR |
| 1812 | # accordingly. |
| 1813 | ac_fn_c_check_header_mongrel () |
| 1814 | { |
| 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1816 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1818 | $as_echo_n "checking for $2... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1819 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1820 | $as_echo_n "(cached) " >&6 |
| 1821 | fi |
| 1822 | eval ac_res=\$$3 |
| 1823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1824 | $as_echo "$ac_res" >&6; } |
| 1825 | else |
| 1826 | # Is the header compilable? |
| 1827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1828 | $as_echo_n "checking $2 usability... " >&6; } |
| 1829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1830 | /* end confdefs.h. */ |
| 1831 | $4 |
| 1832 | #include <$2> |
| 1833 | _ACEOF |
| 1834 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1835 | ac_header_compiler=yes |
| 1836 | else |
| 1837 | ac_header_compiler=no |
| 1838 | fi |
| 1839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1841 | $as_echo "$ac_header_compiler" >&6; } |
| 1842 | |
| 1843 | # Is the header present? |
| 1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1845 | $as_echo_n "checking $2 presence... " >&6; } |
| 1846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1847 | /* end confdefs.h. */ |
| 1848 | #include <$2> |
| 1849 | _ACEOF |
| 1850 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1851 | ac_header_preproc=yes |
| 1852 | else |
| 1853 | ac_header_preproc=no |
| 1854 | fi |
| 1855 | rm -f conftest.err conftest.$ac_ext |
| 1856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1857 | $as_echo "$ac_header_preproc" >&6; } |
| 1858 | |
| 1859 | # So? What about this header? |
| 1860 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1861 | yes:no: ) |
| 1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1863 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1865 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1866 | ;; |
| 1867 | no:yes:* ) |
| 1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1869 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1871 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1872 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1873 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1875 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1877 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1878 | ( cat <<\_ASBOX |
| 1879 | ## ----------------------------------------- ## |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1880 | ## Report this to http://www.imagemagick.org ## |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1881 | ## ----------------------------------------- ## |
| 1882 | _ASBOX |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1883 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1884 | ;; |
| 1885 | esac |
| 1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1887 | $as_echo_n "checking for $2... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1888 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1889 | $as_echo_n "(cached) " >&6 |
| 1890 | else |
| 1891 | eval "$3=\$ac_header_compiler" |
| 1892 | fi |
| 1893 | eval ac_res=\$$3 |
| 1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1895 | $as_echo "$ac_res" >&6; } |
| 1896 | fi |
| 1897 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1898 | |
| 1899 | } # ac_fn_c_check_header_mongrel |
| 1900 | |
| 1901 | # ac_fn_c_try_run LINENO |
| 1902 | # ---------------------- |
| 1903 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1904 | # that executables *can* be run. |
| 1905 | ac_fn_c_try_run () |
| 1906 | { |
| 1907 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1908 | if { { ac_try="$ac_link" |
| 1909 | case "(($ac_try" in |
| 1910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1911 | *) ac_try_echo=$ac_try;; |
| 1912 | esac |
| 1913 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1914 | $as_echo "$ac_try_echo"; } >&5 |
| 1915 | (eval "$ac_link") 2>&5 |
| 1916 | ac_status=$? |
| 1917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1918 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1919 | { { case "(($ac_try" in |
| 1920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1921 | *) ac_try_echo=$ac_try;; |
| 1922 | esac |
| 1923 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1924 | $as_echo "$ac_try_echo"; } >&5 |
| 1925 | (eval "$ac_try") 2>&5 |
| 1926 | ac_status=$? |
| 1927 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1928 | test $ac_status = 0; }; }; then : |
| 1929 | ac_retval=0 |
| 1930 | else |
| 1931 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1932 | $as_echo "$as_me: failed program was:" >&5 |
| 1933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1934 | |
| 1935 | ac_retval=$ac_status |
| 1936 | fi |
| 1937 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1938 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1939 | as_fn_set_status $ac_retval |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1940 | |
| 1941 | } # ac_fn_c_try_run |
| 1942 | |
| 1943 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1944 | # ------------------------------------------------------- |
| 1945 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1946 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1947 | ac_fn_c_check_header_compile () |
| 1948 | { |
| 1949 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1951 | $as_echo_n "checking for $2... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 1952 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1953 | $as_echo_n "(cached) " >&6 |
| 1954 | else |
| 1955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1956 | /* end confdefs.h. */ |
| 1957 | $4 |
| 1958 | #include <$2> |
| 1959 | _ACEOF |
| 1960 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1961 | eval "$3=yes" |
| 1962 | else |
| 1963 | eval "$3=no" |
| 1964 | fi |
| 1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1966 | fi |
| 1967 | eval ac_res=\$$3 |
| 1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1969 | $as_echo "$ac_res" >&6; } |
| 1970 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1971 | |
| 1972 | } # ac_fn_c_check_header_compile |
| 1973 | |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1974 | # ac_fn_cxx_try_compile LINENO |
| 1975 | # ---------------------------- |
| 1976 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1977 | ac_fn_cxx_try_compile () |
| 1978 | { |
| 1979 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1980 | rm -f conftest.$ac_objext |
| 1981 | if { { ac_try="$ac_compile" |
| 1982 | case "(($ac_try" in |
| 1983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1984 | *) ac_try_echo=$ac_try;; |
| 1985 | esac |
| 1986 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1987 | $as_echo "$ac_try_echo"; } >&5 |
| 1988 | (eval "$ac_compile") 2>conftest.err |
| 1989 | ac_status=$? |
| 1990 | if test -s conftest.err; then |
| 1991 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1992 | cat conftest.er1 >&5 |
| 1993 | mv -f conftest.er1 conftest.err |
| 1994 | fi |
| 1995 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1996 | test $ac_status = 0; } && { |
| 1997 | test -z "$ac_cxx_werror_flag" || |
| 1998 | test ! -s conftest.err |
| 1999 | } && test -s conftest.$ac_objext; then : |
| 2000 | ac_retval=0 |
| 2001 | else |
| 2002 | $as_echo "$as_me: failed program was:" >&5 |
| 2003 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2004 | |
| 2005 | ac_retval=1 |
| 2006 | fi |
| 2007 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2008 | as_fn_set_status $ac_retval |
| 2009 | |
| 2010 | } # ac_fn_cxx_try_compile |
| 2011 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2012 | # ac_fn_c_try_link LINENO |
| 2013 | # ----------------------- |
| 2014 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2015 | ac_fn_c_try_link () |
| 2016 | { |
| 2017 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2019 | if { { ac_try="$ac_link" |
| 2020 | case "(($ac_try" in |
| 2021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2022 | *) ac_try_echo=$ac_try;; |
| 2023 | esac |
| 2024 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2025 | $as_echo "$ac_try_echo"; } >&5 |
| 2026 | (eval "$ac_link") 2>conftest.err |
| 2027 | ac_status=$? |
| 2028 | if test -s conftest.err; then |
| 2029 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2030 | cat conftest.er1 >&5 |
| 2031 | mv -f conftest.er1 conftest.err |
| 2032 | fi |
| 2033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2034 | test $ac_status = 0; } && { |
| 2035 | test -z "$ac_c_werror_flag" || |
| 2036 | test ! -s conftest.err |
| 2037 | } && test -s conftest$ac_exeext && { |
| 2038 | test "$cross_compiling" = yes || |
| 2039 | $as_test_x conftest$ac_exeext |
| 2040 | }; then : |
| 2041 | ac_retval=0 |
| 2042 | else |
| 2043 | $as_echo "$as_me: failed program was:" >&5 |
| 2044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2045 | |
| 2046 | ac_retval=1 |
| 2047 | fi |
| 2048 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2049 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2050 | # interfere with the next link command; also delete a directory that is |
| 2051 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2052 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2053 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2054 | as_fn_set_status $ac_retval |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2055 | |
| 2056 | } # ac_fn_c_try_link |
| 2057 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2058 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2059 | # ------------------------------------------- |
| 2060 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2061 | # variable VAR accordingly. |
| 2062 | ac_fn_c_check_type () |
| 2063 | { |
| 2064 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2066 | $as_echo_n "checking for $2... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2067 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2068 | $as_echo_n "(cached) " >&6 |
| 2069 | else |
| 2070 | eval "$3=no" |
| 2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2072 | /* end confdefs.h. */ |
| 2073 | $4 |
| 2074 | int |
| 2075 | main () |
| 2076 | { |
| 2077 | if (sizeof ($2)) |
| 2078 | return 0; |
| 2079 | ; |
| 2080 | return 0; |
| 2081 | } |
| 2082 | _ACEOF |
| 2083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2085 | /* end confdefs.h. */ |
| 2086 | $4 |
| 2087 | int |
| 2088 | main () |
| 2089 | { |
| 2090 | if (sizeof (($2))) |
| 2091 | return 0; |
| 2092 | ; |
| 2093 | return 0; |
| 2094 | } |
| 2095 | _ACEOF |
| 2096 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2097 | |
| 2098 | else |
| 2099 | eval "$3=yes" |
| 2100 | fi |
| 2101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2102 | fi |
| 2103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2104 | fi |
| 2105 | eval ac_res=\$$3 |
| 2106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2107 | $as_echo "$ac_res" >&6; } |
| 2108 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2109 | |
| 2110 | } # ac_fn_c_check_type |
| 2111 | |
cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2112 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2113 | # ---------------------------------------------------- |
| 2114 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2115 | # INCLUDES, setting cache variable VAR accordingly. |
| 2116 | ac_fn_c_check_member () |
| 2117 | { |
| 2118 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2120 | $as_echo_n "checking for $2.$3... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2121 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2122 | $as_echo_n "(cached) " >&6 |
| 2123 | else |
| 2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2125 | /* end confdefs.h. */ |
| 2126 | $5 |
| 2127 | int |
| 2128 | main () |
| 2129 | { |
| 2130 | static $2 ac_aggr; |
| 2131 | if (ac_aggr.$3) |
| 2132 | return 0; |
| 2133 | ; |
| 2134 | return 0; |
| 2135 | } |
| 2136 | _ACEOF |
| 2137 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2138 | eval "$4=yes" |
| 2139 | else |
| 2140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2141 | /* end confdefs.h. */ |
| 2142 | $5 |
| 2143 | int |
| 2144 | main () |
| 2145 | { |
| 2146 | static $2 ac_aggr; |
| 2147 | if (sizeof ac_aggr.$3) |
| 2148 | return 0; |
| 2149 | ; |
| 2150 | return 0; |
| 2151 | } |
| 2152 | _ACEOF |
| 2153 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2154 | eval "$4=yes" |
| 2155 | else |
| 2156 | eval "$4=no" |
| 2157 | fi |
| 2158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2159 | fi |
| 2160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2161 | fi |
| 2162 | eval ac_res=\$$4 |
| 2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2164 | $as_echo "$ac_res" >&6; } |
| 2165 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2166 | |
| 2167 | } # ac_fn_c_check_member |
| 2168 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 2169 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2170 | # ------------------------------------ |
| 2171 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2172 | ac_fn_c_check_decl () |
| 2173 | { |
| 2174 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2176 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2177 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2178 | $as_echo_n "(cached) " >&6 |
| 2179 | else |
| 2180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2181 | /* end confdefs.h. */ |
| 2182 | $4 |
| 2183 | int |
| 2184 | main () |
| 2185 | { |
| 2186 | #ifndef $2 |
| 2187 | (void) $2; |
| 2188 | #endif |
| 2189 | |
| 2190 | ; |
| 2191 | return 0; |
| 2192 | } |
| 2193 | _ACEOF |
| 2194 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2195 | eval "$3=yes" |
| 2196 | else |
| 2197 | eval "$3=no" |
| 2198 | fi |
| 2199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2200 | fi |
| 2201 | eval ac_res=\$$3 |
| 2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2203 | $as_echo "$ac_res" >&6; } |
| 2204 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2205 | |
| 2206 | } # ac_fn_c_check_decl |
| 2207 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2208 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2209 | # -------------------------------------------- |
| 2210 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2211 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2212 | # computed |
| 2213 | ac_fn_c_compute_int () |
| 2214 | { |
| 2215 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2216 | if test "$cross_compiling" = yes; then |
| 2217 | # Depending upon the size, compute the lo and hi bounds. |
| 2218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2219 | /* end confdefs.h. */ |
| 2220 | $4 |
| 2221 | int |
| 2222 | main () |
| 2223 | { |
| 2224 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2225 | test_array [0] = 0 |
| 2226 | |
| 2227 | ; |
| 2228 | return 0; |
| 2229 | } |
| 2230 | _ACEOF |
| 2231 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2232 | ac_lo=0 ac_mid=0 |
| 2233 | while :; do |
| 2234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2235 | /* end confdefs.h. */ |
| 2236 | $4 |
| 2237 | int |
| 2238 | main () |
| 2239 | { |
| 2240 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2241 | test_array [0] = 0 |
| 2242 | |
| 2243 | ; |
| 2244 | return 0; |
| 2245 | } |
| 2246 | _ACEOF |
| 2247 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2248 | ac_hi=$ac_mid; break |
| 2249 | else |
| 2250 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2251 | if test $ac_lo -le $ac_mid; then |
| 2252 | ac_lo= ac_hi= |
| 2253 | break |
| 2254 | fi |
| 2255 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2256 | fi |
| 2257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2258 | done |
| 2259 | else |
| 2260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2261 | /* end confdefs.h. */ |
| 2262 | $4 |
| 2263 | int |
| 2264 | main () |
| 2265 | { |
| 2266 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2267 | test_array [0] = 0 |
| 2268 | |
| 2269 | ; |
| 2270 | return 0; |
| 2271 | } |
| 2272 | _ACEOF |
| 2273 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2274 | ac_hi=-1 ac_mid=-1 |
| 2275 | while :; do |
| 2276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2277 | /* end confdefs.h. */ |
| 2278 | $4 |
| 2279 | int |
| 2280 | main () |
| 2281 | { |
| 2282 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2283 | test_array [0] = 0 |
| 2284 | |
| 2285 | ; |
| 2286 | return 0; |
| 2287 | } |
| 2288 | _ACEOF |
| 2289 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2290 | ac_lo=$ac_mid; break |
| 2291 | else |
| 2292 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2293 | if test $ac_mid -le $ac_hi; then |
| 2294 | ac_lo= ac_hi= |
| 2295 | break |
| 2296 | fi |
| 2297 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2298 | fi |
| 2299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2300 | done |
| 2301 | else |
| 2302 | ac_lo= ac_hi= |
| 2303 | fi |
| 2304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2305 | fi |
| 2306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2307 | # Binary search between lo and hi bounds. |
| 2308 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2309 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2311 | /* end confdefs.h. */ |
| 2312 | $4 |
| 2313 | int |
| 2314 | main () |
| 2315 | { |
| 2316 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2317 | test_array [0] = 0 |
| 2318 | |
| 2319 | ; |
| 2320 | return 0; |
| 2321 | } |
| 2322 | _ACEOF |
| 2323 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2324 | ac_hi=$ac_mid |
| 2325 | else |
| 2326 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2327 | fi |
| 2328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2329 | done |
| 2330 | case $ac_lo in #(( |
| 2331 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2332 | '') ac_retval=1 ;; |
| 2333 | esac |
| 2334 | else |
| 2335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2336 | /* end confdefs.h. */ |
| 2337 | $4 |
| 2338 | static long int longval () { return $2; } |
| 2339 | static unsigned long int ulongval () { return $2; } |
| 2340 | #include <stdio.h> |
| 2341 | #include <stdlib.h> |
| 2342 | int |
| 2343 | main () |
| 2344 | { |
| 2345 | |
| 2346 | FILE *f = fopen ("conftest.val", "w"); |
| 2347 | if (! f) |
| 2348 | return 1; |
| 2349 | if (($2) < 0) |
| 2350 | { |
| 2351 | long int i = longval (); |
| 2352 | if (i != ($2)) |
| 2353 | return 1; |
| 2354 | fprintf (f, "%ld", i); |
| 2355 | } |
| 2356 | else |
| 2357 | { |
| 2358 | unsigned long int i = ulongval (); |
| 2359 | if (i != ($2)) |
| 2360 | return 1; |
| 2361 | fprintf (f, "%lu", i); |
| 2362 | } |
| 2363 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2364 | on some platforms. */ |
| 2365 | return ferror (f) || fclose (f) != 0; |
| 2366 | |
| 2367 | ; |
| 2368 | return 0; |
| 2369 | } |
| 2370 | _ACEOF |
| 2371 | if ac_fn_c_try_run "$LINENO"; then : |
| 2372 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2373 | else |
| 2374 | ac_retval=1 |
| 2375 | fi |
| 2376 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2377 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2378 | rm -f conftest.val |
| 2379 | |
| 2380 | fi |
| 2381 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2382 | as_fn_set_status $ac_retval |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2383 | |
| 2384 | } # ac_fn_c_compute_int |
| 2385 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 2386 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2387 | # ---------------------------------- |
| 2388 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2389 | ac_fn_c_check_func () |
| 2390 | { |
| 2391 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2393 | $as_echo_n "checking for $2... " >&6; } |
| 2394 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2395 | $as_echo_n "(cached) " >&6 |
| 2396 | else |
| 2397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2398 | /* end confdefs.h. */ |
| 2399 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2401 | #define $2 innocuous_$2 |
| 2402 | |
| 2403 | /* System header to define __stub macros and hopefully few prototypes, |
| 2404 | which can conflict with char $2 (); below. |
| 2405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2406 | <limits.h> exists even on freestanding compilers. */ |
| 2407 | |
| 2408 | #ifdef __STDC__ |
| 2409 | # include <limits.h> |
| 2410 | #else |
| 2411 | # include <assert.h> |
| 2412 | #endif |
| 2413 | |
| 2414 | #undef $2 |
| 2415 | |
| 2416 | /* Override any GCC internal prototype to avoid an error. |
| 2417 | Use char because int might match the return type of a GCC |
| 2418 | builtin and then its argument prototype would still apply. */ |
| 2419 | #ifdef __cplusplus |
| 2420 | extern "C" |
| 2421 | #endif |
| 2422 | char $2 (); |
| 2423 | /* The GNU C library defines this for functions which it implements |
| 2424 | to always fail with ENOSYS. Some functions are actually named |
| 2425 | something starting with __ and the normal name is an alias. */ |
| 2426 | #if defined __stub_$2 || defined __stub___$2 |
| 2427 | choke me |
| 2428 | #endif |
| 2429 | |
| 2430 | int |
| 2431 | main () |
| 2432 | { |
| 2433 | return $2 (); |
| 2434 | ; |
| 2435 | return 0; |
| 2436 | } |
| 2437 | _ACEOF |
| 2438 | if ac_fn_c_try_link "$LINENO"; then : |
| 2439 | eval "$3=yes" |
| 2440 | else |
| 2441 | eval "$3=no" |
| 2442 | fi |
| 2443 | rm -f core conftest.err conftest.$ac_objext \ |
| 2444 | conftest$ac_exeext conftest.$ac_ext |
| 2445 | fi |
| 2446 | eval ac_res=\$$3 |
| 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2448 | $as_echo "$ac_res" >&6; } |
| 2449 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2450 | |
| 2451 | } # ac_fn_c_check_func |
| 2452 | |
| 2453 | # ac_fn_cxx_try_link LINENO |
| 2454 | # ------------------------- |
| 2455 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2456 | ac_fn_cxx_try_link () |
| 2457 | { |
| 2458 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2459 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2460 | if { { ac_try="$ac_link" |
| 2461 | case "(($ac_try" in |
| 2462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2463 | *) ac_try_echo=$ac_try;; |
| 2464 | esac |
| 2465 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2466 | $as_echo "$ac_try_echo"; } >&5 |
| 2467 | (eval "$ac_link") 2>conftest.err |
| 2468 | ac_status=$? |
| 2469 | if test -s conftest.err; then |
| 2470 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2471 | cat conftest.er1 >&5 |
| 2472 | mv -f conftest.er1 conftest.err |
| 2473 | fi |
| 2474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2475 | test $ac_status = 0; } && { |
| 2476 | test -z "$ac_cxx_werror_flag" || |
| 2477 | test ! -s conftest.err |
| 2478 | } && test -s conftest$ac_exeext && { |
| 2479 | test "$cross_compiling" = yes || |
| 2480 | $as_test_x conftest$ac_exeext |
| 2481 | }; then : |
| 2482 | ac_retval=0 |
| 2483 | else |
| 2484 | $as_echo "$as_me: failed program was:" >&5 |
| 2485 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2486 | |
| 2487 | ac_retval=1 |
| 2488 | fi |
| 2489 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2490 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2491 | # interfere with the next link command; also delete a directory that is |
| 2492 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2493 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2494 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2495 | as_fn_set_status $ac_retval |
| 2496 | |
| 2497 | } # ac_fn_cxx_try_link |
| 2498 | |
| 2499 | # ac_fn_cxx_try_cpp LINENO |
| 2500 | # ------------------------ |
| 2501 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2502 | ac_fn_cxx_try_cpp () |
| 2503 | { |
| 2504 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2505 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2506 | case "(($ac_try" in |
| 2507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2508 | *) ac_try_echo=$ac_try;; |
| 2509 | esac |
| 2510 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2511 | $as_echo "$ac_try_echo"; } >&5 |
| 2512 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2513 | ac_status=$? |
| 2514 | if test -s conftest.err; then |
| 2515 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2516 | cat conftest.er1 >&5 |
| 2517 | mv -f conftest.er1 conftest.err |
| 2518 | fi |
| 2519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2520 | test $ac_status = 0; } >/dev/null && { |
| 2521 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2522 | test ! -s conftest.err |
| 2523 | }; then : |
| 2524 | ac_retval=0 |
| 2525 | else |
| 2526 | $as_echo "$as_me: failed program was:" >&5 |
| 2527 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2528 | |
| 2529 | ac_retval=1 |
| 2530 | fi |
| 2531 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2532 | as_fn_set_status $ac_retval |
| 2533 | |
| 2534 | } # ac_fn_cxx_try_cpp |
| 2535 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2536 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2537 | # --------------------------------------------------------- |
| 2538 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2539 | # the include files in INCLUDES and setting the cache variable VAR |
| 2540 | # accordingly. |
| 2541 | ac_fn_cxx_check_header_mongrel () |
| 2542 | { |
| 2543 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2544 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2546 | $as_echo_n "checking for $2... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2547 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2548 | $as_echo_n "(cached) " >&6 |
| 2549 | fi |
| 2550 | eval ac_res=\$$3 |
| 2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2552 | $as_echo "$ac_res" >&6; } |
| 2553 | else |
| 2554 | # Is the header compilable? |
| 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2556 | $as_echo_n "checking $2 usability... " >&6; } |
| 2557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2558 | /* end confdefs.h. */ |
| 2559 | $4 |
| 2560 | #include <$2> |
| 2561 | _ACEOF |
| 2562 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2563 | ac_header_compiler=yes |
| 2564 | else |
| 2565 | ac_header_compiler=no |
| 2566 | fi |
| 2567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2569 | $as_echo "$ac_header_compiler" >&6; } |
| 2570 | |
| 2571 | # Is the header present? |
| 2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2573 | $as_echo_n "checking $2 presence... " >&6; } |
| 2574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2575 | /* end confdefs.h. */ |
| 2576 | #include <$2> |
| 2577 | _ACEOF |
| 2578 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2579 | ac_header_preproc=yes |
| 2580 | else |
| 2581 | ac_header_preproc=no |
| 2582 | fi |
| 2583 | rm -f conftest.err conftest.$ac_ext |
| 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2585 | $as_echo "$ac_header_preproc" >&6; } |
| 2586 | |
| 2587 | # So? What about this header? |
| 2588 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 2589 | yes:no: ) |
| 2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2591 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2593 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2594 | ;; |
| 2595 | no:yes:* ) |
| 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2597 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2599 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2601 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2603 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2605 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2606 | ( cat <<\_ASBOX |
| 2607 | ## ----------------------------------------- ## |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2608 | ## Report this to http://www.imagemagick.org ## |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2609 | ## ----------------------------------------- ## |
| 2610 | _ASBOX |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2611 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2612 | ;; |
| 2613 | esac |
| 2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2615 | $as_echo_n "checking for $2... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2616 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2617 | $as_echo_n "(cached) " >&6 |
| 2618 | else |
| 2619 | eval "$3=\$ac_header_compiler" |
| 2620 | fi |
| 2621 | eval ac_res=\$$3 |
| 2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2623 | $as_echo "$ac_res" >&6; } |
| 2624 | fi |
| 2625 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2626 | |
| 2627 | } # ac_fn_cxx_check_header_mongrel |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2628 | cat >config.log <<_ACEOF |
| 2629 | This file contains any messages produced by compilers while |
| 2630 | running configure, to aid debugging if configure makes a mistake. |
| 2631 | |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 2632 | It was created by ImageMagick $as_me 6.6.4, which was |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2633 | generated by GNU Autoconf 2.65. Invocation command line was |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2634 | |
| 2635 | $ $0 $@ |
| 2636 | |
| 2637 | _ACEOF |
| 2638 | exec 5>>config.log |
| 2639 | { |
| 2640 | cat <<_ASUNAME |
| 2641 | ## --------- ## |
| 2642 | ## Platform. ## |
| 2643 | ## --------- ## |
| 2644 | |
| 2645 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2646 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2647 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2648 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2649 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2650 | |
| 2651 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2652 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2653 | |
| 2654 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2655 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2656 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2657 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2658 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2659 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2660 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2661 | |
| 2662 | _ASUNAME |
| 2663 | |
| 2664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2665 | for as_dir in $PATH |
| 2666 | do |
| 2667 | IFS=$as_save_IFS |
| 2668 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2669 | $as_echo "PATH: $as_dir" |
| 2670 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2671 | IFS=$as_save_IFS |
| 2672 | |
| 2673 | } >&5 |
| 2674 | |
| 2675 | cat >&5 <<_ACEOF |
| 2676 | |
| 2677 | |
| 2678 | ## ----------- ## |
| 2679 | ## Core tests. ## |
| 2680 | ## ----------- ## |
| 2681 | |
| 2682 | _ACEOF |
| 2683 | |
| 2684 | |
| 2685 | # Keep a trace of the command line. |
| 2686 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2687 | # Strip out --silent because we don't want to record it for future runs. |
| 2688 | # Also quote any args containing shell meta-characters. |
| 2689 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2690 | ac_configure_args= |
| 2691 | ac_configure_args0= |
| 2692 | ac_configure_args1= |
| 2693 | ac_must_keep_next=false |
| 2694 | for ac_pass in 1 2 |
| 2695 | do |
| 2696 | for ac_arg |
| 2697 | do |
| 2698 | case $ac_arg in |
| 2699 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2700 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2701 | | -silent | --silent | --silen | --sile | --sil) |
| 2702 | continue ;; |
| 2703 | *\'*) |
| 2704 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2705 | esac |
| 2706 | case $ac_pass in |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2707 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2708 | 2) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2709 | as_fn_append ac_configure_args1 " '$ac_arg'" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2710 | if test $ac_must_keep_next = true; then |
| 2711 | ac_must_keep_next=false # Got value, back to normal. |
| 2712 | else |
| 2713 | case $ac_arg in |
| 2714 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2715 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2716 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2717 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2718 | case "$ac_configure_args0 " in |
| 2719 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2720 | esac |
| 2721 | ;; |
| 2722 | -* ) ac_must_keep_next=true ;; |
| 2723 | esac |
| 2724 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2725 | as_fn_append ac_configure_args " '$ac_arg'" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2726 | ;; |
| 2727 | esac |
| 2728 | done |
| 2729 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2730 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2731 | { ac_configure_args1=; unset ac_configure_args1;} |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2732 | |
| 2733 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2734 | # config.log. We remove comments because anyway the quotes in there |
| 2735 | # would cause problems or look ugly. |
| 2736 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2737 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2738 | trap 'exit_status=$? |
| 2739 | # Save into config.log some information that might help in debugging. |
| 2740 | { |
| 2741 | echo |
| 2742 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2743 | cat <<\_ASBOX |
| 2744 | ## ---------------- ## |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2745 | ## Cache variables. ## |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2746 | ## ---------------- ## |
| 2747 | _ASBOX |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2748 | echo |
| 2749 | # The following way of writing the cache mishandles newlines in values, |
| 2750 | ( |
| 2751 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2752 | eval ac_val=\$$ac_var |
| 2753 | case $ac_val in #( |
| 2754 | *${as_nl}*) |
| 2755 | case $ac_var in #( |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2756 | *_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] | 2757 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2758 | esac |
| 2759 | case $ac_var in #( |
| 2760 | _ | IFS | as_nl) ;; #( |
| 2761 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2762 | *) { eval $ac_var=; unset $ac_var;} ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2763 | esac ;; |
| 2764 | esac |
| 2765 | done |
| 2766 | (set) 2>&1 | |
| 2767 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2768 | *${as_nl}ac_space=\ *) |
| 2769 | sed -n \ |
| 2770 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2771 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2772 | ;; #( |
| 2773 | *) |
| 2774 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2775 | ;; |
| 2776 | esac | |
| 2777 | sort |
| 2778 | ) |
| 2779 | echo |
| 2780 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2781 | cat <<\_ASBOX |
| 2782 | ## ----------------- ## |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2783 | ## Output variables. ## |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2784 | ## ----------------- ## |
| 2785 | _ASBOX |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2786 | echo |
| 2787 | for ac_var in $ac_subst_vars |
| 2788 | do |
| 2789 | eval ac_val=\$$ac_var |
| 2790 | case $ac_val in |
| 2791 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2792 | esac |
| 2793 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2794 | done | sort |
| 2795 | echo |
| 2796 | |
| 2797 | if test -n "$ac_subst_files"; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2798 | cat <<\_ASBOX |
| 2799 | ## ------------------- ## |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2800 | ## File substitutions. ## |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2801 | ## ------------------- ## |
| 2802 | _ASBOX |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2803 | echo |
| 2804 | for ac_var in $ac_subst_files |
| 2805 | do |
| 2806 | eval ac_val=\$$ac_var |
| 2807 | case $ac_val in |
| 2808 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2809 | esac |
| 2810 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2811 | done | sort |
| 2812 | echo |
| 2813 | fi |
| 2814 | |
| 2815 | if test -s confdefs.h; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2816 | cat <<\_ASBOX |
| 2817 | ## ----------- ## |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2818 | ## confdefs.h. ## |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2819 | ## ----------- ## |
| 2820 | _ASBOX |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2821 | echo |
| 2822 | cat confdefs.h |
| 2823 | echo |
| 2824 | fi |
| 2825 | test "$ac_signal" != 0 && |
| 2826 | $as_echo "$as_me: caught signal $ac_signal" |
| 2827 | $as_echo "$as_me: exit $exit_status" |
| 2828 | } >&5 |
| 2829 | rm -f core *.core core.conftest.* && |
| 2830 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2831 | exit $exit_status |
| 2832 | ' 0 |
| 2833 | for ac_signal in 1 2 13 15; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2834 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2835 | done |
| 2836 | ac_signal=0 |
| 2837 | |
| 2838 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2839 | rm -f -r conftest* confdefs.h |
| 2840 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2841 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2842 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2843 | # Predefined preprocessor variables. |
| 2844 | |
| 2845 | cat >>confdefs.h <<_ACEOF |
| 2846 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2847 | _ACEOF |
| 2848 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2849 | cat >>confdefs.h <<_ACEOF |
| 2850 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2851 | _ACEOF |
| 2852 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2853 | cat >>confdefs.h <<_ACEOF |
| 2854 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2855 | _ACEOF |
| 2856 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2857 | cat >>confdefs.h <<_ACEOF |
| 2858 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2859 | _ACEOF |
| 2860 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2861 | cat >>confdefs.h <<_ACEOF |
| 2862 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2863 | _ACEOF |
| 2864 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2865 | cat >>confdefs.h <<_ACEOF |
| 2866 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2867 | _ACEOF |
| 2868 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2869 | |
| 2870 | # Let the site file select an alternate cache file if it wants to. |
| 2871 | # Prefer an explicitly selected file to automatically selected ones. |
| 2872 | ac_site_file1=NONE |
| 2873 | ac_site_file2=NONE |
| 2874 | if test -n "$CONFIG_SITE"; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2875 | ac_site_file1=$CONFIG_SITE |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2876 | elif test "x$prefix" != xNONE; then |
| 2877 | ac_site_file1=$prefix/share/config.site |
| 2878 | ac_site_file2=$prefix/etc/config.site |
| 2879 | else |
| 2880 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2881 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2882 | fi |
| 2883 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2884 | do |
| 2885 | test "x$ac_site_file" = xNONE && continue |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2886 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2887 | { $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] | 2888 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2889 | sed 's/^/| /' "$ac_site_file" >&5 |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2890 | . "$ac_site_file" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2891 | fi |
| 2892 | done |
| 2893 | |
| 2894 | if test -r "$cache_file"; then |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2895 | # Some versions of bash will fail to source /dev/null (special files |
| 2896 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2897 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2899 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2900 | case $cache_file in |
| 2901 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2902 | *) . "./$cache_file";; |
| 2903 | esac |
| 2904 | fi |
| 2905 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2907 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2908 | >$cache_file |
| 2909 | fi |
| 2910 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2911 | as_fn_append ac_header_list " stdlib.h" |
| 2912 | as_fn_append ac_header_list " unistd.h" |
| 2913 | as_fn_append ac_header_list " sys/param.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2914 | # Check that the precious variables saved in the cache have kept the same |
| 2915 | # value. |
| 2916 | ac_cache_corrupted=false |
| 2917 | for ac_var in $ac_precious_vars; do |
| 2918 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2919 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2920 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2921 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2922 | case $ac_old_set,$ac_new_set in |
| 2923 | set,) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2924 | { $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] | 2925 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2926 | ac_cache_corrupted=: ;; |
| 2927 | ,set) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2928 | { $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] | 2929 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2930 | ac_cache_corrupted=: ;; |
| 2931 | ,);; |
| 2932 | *) |
| 2933 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2934 | # differences in whitespace do not lead to failure. |
| 2935 | ac_old_val_w=`echo x $ac_old_val` |
| 2936 | ac_new_val_w=`echo x $ac_new_val` |
| 2937 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2938 | { $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] | 2939 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2940 | ac_cache_corrupted=: |
| 2941 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2942 | { $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] | 2943 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2944 | eval $ac_var=\$ac_old_val |
| 2945 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2947 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2948 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2949 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2950 | fi;; |
| 2951 | esac |
| 2952 | # Pass precious variables to config.status. |
| 2953 | if test "$ac_new_set" = set; then |
| 2954 | case $ac_new_val in |
| 2955 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2956 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2957 | esac |
| 2958 | case " $ac_configure_args " in |
| 2959 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2960 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2961 | esac |
| 2962 | fi |
| 2963 | done |
| 2964 | if $ac_cache_corrupted; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2966 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2967 | { $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] | 2968 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2969 | 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] | 2970 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2971 | ## -------------------- ## |
| 2972 | ## Main body of script. ## |
| 2973 | ## -------------------- ## |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2974 | |
| 2975 | ac_ext=c |
| 2976 | ac_cpp='$CPP $CPPFLAGS' |
| 2977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2980 | |
| 2981 | |
| 2982 | |
| 2983 | ac_aux_dir= |
| 2984 | for ac_dir in config "$srcdir"/config; do |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2985 | for ac_t in install-sh install.sh shtool; do |
| 2986 | if test -f "$ac_dir/$ac_t"; then |
| 2987 | ac_aux_dir=$ac_dir |
| 2988 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2989 | break 2 |
| 2990 | fi |
| 2991 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2992 | done |
| 2993 | if test -z "$ac_aux_dir"; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 2994 | 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] | 2995 | fi |
| 2996 | |
| 2997 | # These three variables are undocumented and unsupported, |
| 2998 | # and are intended to be withdrawn in a future Autoconf release. |
| 2999 | # They can cause serious problems if a builder's source tree is in a directory |
| 3000 | # whose full name contains unusual characters. |
| 3001 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3002 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3003 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3004 | |
| 3005 | |
| 3006 | |
| 3007 | |
| 3008 | ac_config_headers="$ac_config_headers config/config.h" |
| 3009 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 3010 | AX_PREFIX_CONFIG_H(magick/magick-config.h,MagickCore) |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 3011 | 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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3012 | |
| 3013 | |
| 3014 | # |
| 3015 | # Save initial user-tunable values |
| 3016 | # |
| 3017 | USER_LIBS=$LIBS |
| 3018 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 3019 | eval isset=\${$var+set} |
| 3020 | if test "$isset" = 'set'; then |
| 3021 | eval val=$`echo $var` |
| 3022 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 3023 | fi |
| 3024 | done |
| 3025 | |
| 3026 | |
| 3027 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 3028 | |
| 3029 | |
| 3030 | # Source file containing package/library versioning information. |
| 3031 | . ${srcdir}/version.sh |
| 3032 | |
cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3033 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3034 | # Make sure we can run config.sub. |
| 3035 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3036 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3037 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3039 | $as_echo_n "checking build system type... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3040 | if test "${ac_cv_build+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3041 | $as_echo_n "(cached) " >&6 |
| 3042 | else |
| 3043 | ac_build_alias=$build_alias |
| 3044 | test "x$ac_build_alias" = x && |
| 3045 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3046 | test "x$ac_build_alias" = x && |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3047 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3048 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3049 | 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] | 3050 | |
| 3051 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3053 | $as_echo "$ac_cv_build" >&6; } |
| 3054 | case $ac_cv_build in |
| 3055 | *-*-*) ;; |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3056 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3057 | esac |
| 3058 | build=$ac_cv_build |
| 3059 | ac_save_IFS=$IFS; IFS='-' |
| 3060 | set x $ac_cv_build |
| 3061 | shift |
| 3062 | build_cpu=$1 |
| 3063 | build_vendor=$2 |
| 3064 | shift; shift |
| 3065 | # Remember, the first character of IFS is used to create $*, |
| 3066 | # except with old shells: |
| 3067 | build_os=$* |
| 3068 | IFS=$ac_save_IFS |
| 3069 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3070 | |
| 3071 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3073 | $as_echo_n "checking host system type... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3074 | if test "${ac_cv_host+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3075 | $as_echo_n "(cached) " >&6 |
| 3076 | else |
| 3077 | if test "x$host_alias" = x; then |
| 3078 | ac_cv_host=$ac_cv_build |
| 3079 | else |
| 3080 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3081 | 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] | 3082 | fi |
| 3083 | |
| 3084 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3086 | $as_echo "$ac_cv_host" >&6; } |
| 3087 | case $ac_cv_host in |
| 3088 | *-*-*) ;; |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3089 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3090 | esac |
| 3091 | host=$ac_cv_host |
| 3092 | ac_save_IFS=$IFS; IFS='-' |
| 3093 | set x $ac_cv_host |
| 3094 | shift |
| 3095 | host_cpu=$1 |
| 3096 | host_vendor=$2 |
| 3097 | shift; shift |
| 3098 | # Remember, the first character of IFS is used to create $*, |
| 3099 | # except with old shells: |
| 3100 | host_os=$* |
| 3101 | IFS=$ac_save_IFS |
| 3102 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3103 | |
| 3104 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3106 | $as_echo_n "checking target system type... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3107 | if test "${ac_cv_target+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3108 | $as_echo_n "(cached) " >&6 |
| 3109 | else |
| 3110 | if test "x$target_alias" = x; then |
| 3111 | ac_cv_target=$ac_cv_host |
| 3112 | else |
| 3113 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3114 | 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] | 3115 | fi |
| 3116 | |
| 3117 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3119 | $as_echo "$ac_cv_target" >&6; } |
| 3120 | case $ac_cv_target in |
| 3121 | *-*-*) ;; |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3122 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3123 | esac |
| 3124 | target=$ac_cv_target |
| 3125 | ac_save_IFS=$IFS; IFS='-' |
| 3126 | set x $ac_cv_target |
| 3127 | shift |
| 3128 | target_cpu=$1 |
| 3129 | target_vendor=$2 |
| 3130 | shift; shift |
| 3131 | # Remember, the first character of IFS is used to create $*, |
| 3132 | # except with old shells: |
| 3133 | target_os=$* |
| 3134 | IFS=$ac_save_IFS |
| 3135 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3136 | |
| 3137 | |
| 3138 | # The aliases save the names the user supplied, while $host etc. |
| 3139 | # will get canonicalized. |
| 3140 | test -n "$target_alias" && |
| 3141 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3142 | NONENONEs,x,x, && |
| 3143 | program_prefix=${target_alias}- |
| 3144 | |
cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3145 | |
| 3146 | |
| 3147 | |
| 3148 | |
cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3149 | MAGICK_TARGET_CPU=$target_cpu |
| 3150 | |
| 3151 | |
| 3152 | MAGICK_TARGET_VENDOR=$target_vendor |
| 3153 | |
| 3154 | |
| 3155 | MAGICK_TARGET_OS=$target_os |
| 3156 | |
| 3157 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3158 | # Substitute library versioning |
cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3159 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` |
| 3160 | |
| 3161 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE |
| 3162 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3163 | |
| 3164 | |
| 3165 | # Ensure that make can run correctly |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 3166 | AM_SANITY_CHECK |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3167 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 3168 | AM_INIT_AUTOMAKE($PACKAGE_NAME,"${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}", ' ') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3169 | |
| 3170 | # Enable support for silent build rules |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 3171 | AM_SILENT_RULES(yes) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3172 | |
| 3173 | MAGICK_LIB_VERSION="0x" |
| 3174 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 3175 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3176 | fi |
| 3177 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 3178 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 3179 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3180 | fi |
| 3181 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 3182 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 3183 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3184 | fi |
| 3185 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 3186 | |
| 3187 | |
| 3188 | # Definition used to define MagickLibVersionText in version.h |
| 3189 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 3190 | |
| 3191 | |
| 3192 | # Definition used to define MagickLibVersionNumber in version.h |
| 3193 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 3194 | |
| 3195 | |
| 3196 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 3197 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 3198 | |
| 3199 | |
| 3200 | PERLMAINCC=$CC |
| 3201 | |
| 3202 | MAGICK_CFLAGS='' |
| 3203 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 3204 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 3205 | MAGICK_LDFLAGS='' |
| 3206 | MAGICK_LIBS='' |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 3207 | MAGICK_FEATURES='' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3208 | |
| 3209 | # |
| 3210 | # Evaluate shell variable equivalents to Makefile directory variables |
| 3211 | # |
| 3212 | if test "x$prefix" = xNONE; then |
| 3213 | prefix=$ac_default_prefix |
| 3214 | fi |
| 3215 | # Let make expand exec_prefix. |
| 3216 | if test "x$exec_prefix" = xNONE; then |
| 3217 | exec_prefix='${prefix}' |
| 3218 | fi |
| 3219 | |
| 3220 | # |
| 3221 | eval "eval PREFIX_DIR=${prefix}" |
| 3222 | |
| 3223 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 3224 | |
| 3225 | eval "eval BIN_DIR=$bindir" |
| 3226 | |
| 3227 | eval "eval SBIN_DIR=$sbindir" |
| 3228 | |
| 3229 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 3230 | |
| 3231 | eval "eval DATA_DIR=$datadir" |
| 3232 | |
| 3233 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 3234 | |
| 3235 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 3236 | |
| 3237 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 3238 | |
| 3239 | eval "eval LIB_DIR=$libdir" |
| 3240 | |
| 3241 | eval "eval INCLUDE_DIR=$includedir" |
| 3242 | |
| 3243 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 3244 | |
| 3245 | eval "eval INFO_DIR=$infodir" |
| 3246 | |
| 3247 | eval "eval MAN_DIR=$mandir" |
| 3248 | |
| 3249 | |
| 3250 | # Get full paths to source and build directories |
| 3251 | srcdirfull="`cd $srcdir && pwd`" |
| 3252 | builddir="`pwd`" |
| 3253 | |
| 3254 | # |
| 3255 | # Compute variables useful for running uninstalled software. |
| 3256 | # |
| 3257 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 3258 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 3259 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 3260 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 3261 | DIRSEP=':' |
| 3262 | case "${build_os}" in |
| 3263 | mingw* ) |
| 3264 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 3265 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 3266 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 3267 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 3268 | DIRSEP=';' |
| 3269 | ;; |
| 3270 | esac |
| 3271 | case "${host_os}" in |
| 3272 | mingw* ) |
| 3273 | DIRSEP=';' |
| 3274 | ;; |
| 3275 | esac |
| 3276 | |
| 3277 | |
| 3278 | |
| 3279 | |
| 3280 | |
| 3281 | |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 3282 | |
| 3283 | # |
| 3284 | # Enable OS features. |
| 3285 | # |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3286 | ac_ext=c |
| 3287 | ac_cpp='$CPP $CPPFLAGS' |
| 3288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3291 | if test -n "$ac_tool_prefix"; then |
| 3292 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3293 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3295 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3296 | if test "${ac_cv_prog_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3297 | $as_echo_n "(cached) " >&6 |
| 3298 | else |
| 3299 | if test -n "$CC"; then |
| 3300 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3301 | else |
| 3302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3303 | for as_dir in $PATH |
| 3304 | do |
| 3305 | IFS=$as_save_IFS |
| 3306 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3307 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3309 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3310 | $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] | 3311 | break 2 |
| 3312 | fi |
| 3313 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3314 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3315 | IFS=$as_save_IFS |
| 3316 | |
| 3317 | fi |
| 3318 | fi |
| 3319 | CC=$ac_cv_prog_CC |
| 3320 | if test -n "$CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3322 | $as_echo "$CC" >&6; } |
| 3323 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3325 | $as_echo "no" >&6; } |
| 3326 | fi |
| 3327 | |
| 3328 | |
| 3329 | fi |
| 3330 | if test -z "$ac_cv_prog_CC"; then |
| 3331 | ac_ct_CC=$CC |
| 3332 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3333 | set dummy gcc; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3335 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3336 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3337 | $as_echo_n "(cached) " >&6 |
| 3338 | else |
| 3339 | if test -n "$ac_ct_CC"; then |
| 3340 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3341 | else |
| 3342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3343 | for as_dir in $PATH |
| 3344 | do |
| 3345 | IFS=$as_save_IFS |
| 3346 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3347 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3349 | ac_cv_prog_ac_ct_CC="gcc" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3350 | $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] | 3351 | break 2 |
| 3352 | fi |
| 3353 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3354 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3355 | IFS=$as_save_IFS |
| 3356 | |
| 3357 | fi |
| 3358 | fi |
| 3359 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3360 | if test -n "$ac_ct_CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3362 | $as_echo "$ac_ct_CC" >&6; } |
| 3363 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3365 | $as_echo "no" >&6; } |
| 3366 | fi |
| 3367 | |
| 3368 | if test "x$ac_ct_CC" = x; then |
| 3369 | CC="" |
| 3370 | else |
| 3371 | case $cross_compiling:$ac_tool_warned in |
| 3372 | yes:) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3373 | { $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] | 3374 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3375 | ac_tool_warned=yes ;; |
| 3376 | esac |
| 3377 | CC=$ac_ct_CC |
| 3378 | fi |
| 3379 | else |
| 3380 | CC="$ac_cv_prog_CC" |
| 3381 | fi |
| 3382 | |
| 3383 | if test -z "$CC"; then |
| 3384 | if test -n "$ac_tool_prefix"; then |
| 3385 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3386 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3388 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3389 | if test "${ac_cv_prog_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3390 | $as_echo_n "(cached) " >&6 |
| 3391 | else |
| 3392 | if test -n "$CC"; then |
| 3393 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3394 | else |
| 3395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3396 | for as_dir in $PATH |
| 3397 | do |
| 3398 | IFS=$as_save_IFS |
| 3399 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3400 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3402 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3403 | $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] | 3404 | break 2 |
| 3405 | fi |
| 3406 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3407 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3408 | IFS=$as_save_IFS |
| 3409 | |
| 3410 | fi |
| 3411 | fi |
| 3412 | CC=$ac_cv_prog_CC |
| 3413 | if test -n "$CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3415 | $as_echo "$CC" >&6; } |
| 3416 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3418 | $as_echo "no" >&6; } |
| 3419 | fi |
| 3420 | |
| 3421 | |
| 3422 | fi |
| 3423 | fi |
| 3424 | if test -z "$CC"; then |
| 3425 | # Extract the first word of "cc", so it can be a program name with args. |
| 3426 | set dummy cc; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3428 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3429 | if test "${ac_cv_prog_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3430 | $as_echo_n "(cached) " >&6 |
| 3431 | else |
| 3432 | if test -n "$CC"; then |
| 3433 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3434 | else |
| 3435 | ac_prog_rejected=no |
| 3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3437 | for as_dir in $PATH |
| 3438 | do |
| 3439 | IFS=$as_save_IFS |
| 3440 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3443 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3444 | ac_prog_rejected=yes |
| 3445 | continue |
| 3446 | fi |
| 3447 | ac_cv_prog_CC="cc" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3448 | $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] | 3449 | break 2 |
| 3450 | fi |
| 3451 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3452 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3453 | IFS=$as_save_IFS |
| 3454 | |
| 3455 | if test $ac_prog_rejected = yes; then |
| 3456 | # We found a bogon in the path, so make sure we never use it. |
| 3457 | set dummy $ac_cv_prog_CC |
| 3458 | shift |
| 3459 | if test $# != 0; then |
| 3460 | # We chose a different compiler from the bogus one. |
| 3461 | # However, it has the same basename, so the bogon will be chosen |
| 3462 | # first if we set CC to just the basename; use the full file name. |
| 3463 | shift |
| 3464 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3465 | fi |
| 3466 | fi |
| 3467 | fi |
| 3468 | fi |
| 3469 | CC=$ac_cv_prog_CC |
| 3470 | if test -n "$CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3472 | $as_echo "$CC" >&6; } |
| 3473 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3475 | $as_echo "no" >&6; } |
| 3476 | fi |
| 3477 | |
| 3478 | |
| 3479 | fi |
| 3480 | if test -z "$CC"; then |
| 3481 | if test -n "$ac_tool_prefix"; then |
| 3482 | for ac_prog in cl.exe |
| 3483 | do |
| 3484 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3485 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3487 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3488 | if test "${ac_cv_prog_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3489 | $as_echo_n "(cached) " >&6 |
| 3490 | else |
| 3491 | if test -n "$CC"; then |
| 3492 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3493 | else |
| 3494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3495 | for as_dir in $PATH |
| 3496 | do |
| 3497 | IFS=$as_save_IFS |
| 3498 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3499 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3501 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3502 | $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] | 3503 | break 2 |
| 3504 | fi |
| 3505 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3506 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3507 | IFS=$as_save_IFS |
| 3508 | |
| 3509 | fi |
| 3510 | fi |
| 3511 | CC=$ac_cv_prog_CC |
| 3512 | if test -n "$CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3514 | $as_echo "$CC" >&6; } |
| 3515 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3517 | $as_echo "no" >&6; } |
| 3518 | fi |
| 3519 | |
| 3520 | |
| 3521 | test -n "$CC" && break |
| 3522 | done |
| 3523 | fi |
| 3524 | if test -z "$CC"; then |
| 3525 | ac_ct_CC=$CC |
| 3526 | for ac_prog in cl.exe |
| 3527 | do |
| 3528 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3529 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3531 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3532 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3533 | $as_echo_n "(cached) " >&6 |
| 3534 | else |
| 3535 | if test -n "$ac_ct_CC"; then |
| 3536 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3537 | else |
| 3538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3539 | for as_dir in $PATH |
| 3540 | do |
| 3541 | IFS=$as_save_IFS |
| 3542 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3543 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3544 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3545 | ac_cv_prog_ac_ct_CC="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3546 | $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] | 3547 | break 2 |
| 3548 | fi |
| 3549 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3550 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3551 | IFS=$as_save_IFS |
| 3552 | |
| 3553 | fi |
| 3554 | fi |
| 3555 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3556 | if test -n "$ac_ct_CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3558 | $as_echo "$ac_ct_CC" >&6; } |
| 3559 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3561 | $as_echo "no" >&6; } |
| 3562 | fi |
| 3563 | |
| 3564 | |
| 3565 | test -n "$ac_ct_CC" && break |
| 3566 | done |
| 3567 | |
| 3568 | if test "x$ac_ct_CC" = x; then |
| 3569 | CC="" |
| 3570 | else |
| 3571 | case $cross_compiling:$ac_tool_warned in |
| 3572 | yes:) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3573 | { $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] | 3574 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3575 | ac_tool_warned=yes ;; |
| 3576 | esac |
| 3577 | CC=$ac_ct_CC |
| 3578 | fi |
| 3579 | fi |
| 3580 | |
| 3581 | fi |
| 3582 | |
| 3583 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3584 | 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] | 3585 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3586 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3587 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3588 | |
| 3589 | # Provide some information about the compiler. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3590 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3591 | set X $ac_compile |
| 3592 | ac_compiler=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3593 | for ac_option in --version -v -V -qversion; do |
| 3594 | { { ac_try="$ac_compiler $ac_option >&5" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3595 | case "(($ac_try" in |
| 3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3597 | *) ac_try_echo=$ac_try;; |
| 3598 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3599 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3600 | $as_echo "$ac_try_echo"; } >&5 |
| 3601 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3602 | ac_status=$? |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3603 | if test -s conftest.err; then |
| 3604 | sed '10a\ |
| 3605 | ... rest of stderr output deleted ... |
| 3606 | 10q' conftest.err >conftest.er1 |
| 3607 | cat conftest.er1 >&5 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3608 | fi |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3609 | rm -f conftest.er1 conftest.err |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3610 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3611 | test $ac_status = 0; } |
| 3612 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3613 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3615 | /* end confdefs.h. */ |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3616 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3617 | int |
| 3618 | main () |
| 3619 | { |
| 3620 | |
| 3621 | ; |
| 3622 | return 0; |
| 3623 | } |
| 3624 | _ACEOF |
| 3625 | ac_clean_files_save=$ac_clean_files |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3626 | 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] | 3627 | # Try to create an executable without -o first, disregard a.out. |
| 3628 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3629 | # of exeext. |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3631 | $as_echo_n "checking whether the C compiler works... " >&6; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3632 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3633 | |
| 3634 | # The possible output files: |
| 3635 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3636 | |
| 3637 | ac_rmfiles= |
| 3638 | for ac_file in $ac_files |
| 3639 | do |
| 3640 | case $ac_file in |
| 3641 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3642 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3643 | esac |
| 3644 | done |
| 3645 | rm -f $ac_rmfiles |
| 3646 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3647 | if { { ac_try="$ac_link_default" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3648 | case "(($ac_try" in |
| 3649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3650 | *) ac_try_echo=$ac_try;; |
| 3651 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3652 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3653 | $as_echo "$ac_try_echo"; } >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3654 | (eval "$ac_link_default") 2>&5 |
| 3655 | ac_status=$? |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3656 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3657 | test $ac_status = 0; }; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3658 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3659 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3660 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3661 | # so that the user can short-circuit this test for compilers unknown to |
| 3662 | # Autoconf. |
| 3663 | for ac_file in $ac_files '' |
| 3664 | do |
| 3665 | test -f "$ac_file" || continue |
| 3666 | case $ac_file in |
| 3667 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3668 | ;; |
| 3669 | [ab].out ) |
| 3670 | # We found the default executable, but exeext='' is most |
| 3671 | # certainly right. |
| 3672 | break;; |
| 3673 | *.* ) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3674 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3675 | then :; else |
| 3676 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3677 | fi |
| 3678 | # We set ac_cv_exeext here because the later test for it is not |
| 3679 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3680 | # argument, so we may need to know it at that point already. |
| 3681 | # Even if this section looks crufty: it has the advantage of |
| 3682 | # actually working. |
| 3683 | break;; |
| 3684 | * ) |
| 3685 | break;; |
| 3686 | esac |
| 3687 | done |
| 3688 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3689 | |
| 3690 | else |
| 3691 | ac_file='' |
| 3692 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3693 | if test -z "$ac_file"; then : |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3695 | $as_echo "no" >&6; } |
| 3696 | $as_echo "$as_me: failed program was:" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3698 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3699 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3701 | { as_fn_set_status 77 |
| 3702 | as_fn_error "C compiler cannot create executables |
| 3703 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3704 | else |
| 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3706 | $as_echo "yes" >&6; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3707 | fi |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3709 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3711 | $as_echo "$ac_file" >&6; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3712 | ac_exeext=$ac_cv_exeext |
| 3713 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3714 | 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] | 3715 | ac_clean_files=$ac_clean_files_save |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3717 | $as_echo_n "checking for suffix of executables... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3718 | if { { ac_try="$ac_link" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3719 | case "(($ac_try" in |
| 3720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3721 | *) ac_try_echo=$ac_try;; |
| 3722 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3723 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3724 | $as_echo "$ac_try_echo"; } >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3725 | (eval "$ac_link") 2>&5 |
| 3726 | ac_status=$? |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3727 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3728 | test $ac_status = 0; }; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3729 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3730 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3731 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3732 | # `rm'. |
| 3733 | for ac_file in conftest.exe conftest conftest.*; do |
| 3734 | test -f "$ac_file" || continue |
| 3735 | case $ac_file in |
| 3736 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3737 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3738 | break;; |
| 3739 | * ) break;; |
| 3740 | esac |
| 3741 | done |
| 3742 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3743 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3744 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3745 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3746 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3747 | fi |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3748 | rm -f conftest conftest$ac_cv_exeext |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3750 | $as_echo "$ac_cv_exeext" >&6; } |
| 3751 | |
| 3752 | rm -f conftest.$ac_ext |
| 3753 | EXEEXT=$ac_cv_exeext |
| 3754 | ac_exeext=$EXEEXT |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3756 | /* end confdefs.h. */ |
| 3757 | #include <stdio.h> |
| 3758 | int |
| 3759 | main () |
| 3760 | { |
| 3761 | FILE *f = fopen ("conftest.out", "w"); |
| 3762 | return ferror (f) || fclose (f) != 0; |
| 3763 | |
| 3764 | ; |
| 3765 | return 0; |
| 3766 | } |
| 3767 | _ACEOF |
| 3768 | ac_clean_files="$ac_clean_files conftest.out" |
| 3769 | # Check that the compiler produces executables we can run. If not, either |
| 3770 | # the compiler is broken, or we cross compile. |
| 3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3772 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3773 | if test "$cross_compiling" != yes; then |
| 3774 | { { ac_try="$ac_link" |
| 3775 | case "(($ac_try" in |
| 3776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3777 | *) ac_try_echo=$ac_try;; |
| 3778 | esac |
| 3779 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3780 | $as_echo "$ac_try_echo"; } >&5 |
| 3781 | (eval "$ac_link") 2>&5 |
| 3782 | ac_status=$? |
| 3783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3784 | test $ac_status = 0; } |
| 3785 | if { ac_try='./conftest$ac_cv_exeext' |
| 3786 | { { case "(($ac_try" in |
| 3787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3788 | *) ac_try_echo=$ac_try;; |
| 3789 | esac |
| 3790 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3791 | $as_echo "$ac_try_echo"; } >&5 |
| 3792 | (eval "$ac_try") 2>&5 |
| 3793 | ac_status=$? |
| 3794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3795 | test $ac_status = 0; }; }; then |
| 3796 | cross_compiling=no |
| 3797 | else |
| 3798 | if test "$cross_compiling" = maybe; then |
| 3799 | cross_compiling=yes |
| 3800 | else |
| 3801 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3802 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3803 | as_fn_error "cannot run C compiled programs. |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3804 | If you meant to cross compile, use \`--host'. |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3805 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3806 | fi |
| 3807 | fi |
| 3808 | fi |
| 3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3810 | $as_echo "$cross_compiling" >&6; } |
| 3811 | |
| 3812 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3813 | ac_clean_files=$ac_clean_files_save |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3814 | { $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] | 3815 | $as_echo_n "checking for suffix of object files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3816 | if test "${ac_cv_objext+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3817 | $as_echo_n "(cached) " >&6 |
| 3818 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3820 | /* end confdefs.h. */ |
| 3821 | |
| 3822 | int |
| 3823 | main () |
| 3824 | { |
| 3825 | |
| 3826 | ; |
| 3827 | return 0; |
| 3828 | } |
| 3829 | _ACEOF |
| 3830 | rm -f conftest.o conftest.obj |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3831 | if { { ac_try="$ac_compile" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3832 | case "(($ac_try" in |
| 3833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3834 | *) ac_try_echo=$ac_try;; |
| 3835 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3836 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3837 | $as_echo "$ac_try_echo"; } >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3838 | (eval "$ac_compile") 2>&5 |
| 3839 | ac_status=$? |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3841 | test $ac_status = 0; }; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3842 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3843 | test -f "$ac_file" || continue; |
| 3844 | case $ac_file in |
| 3845 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3846 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3847 | break;; |
| 3848 | esac |
| 3849 | done |
| 3850 | else |
| 3851 | $as_echo "$as_me: failed program was:" >&5 |
| 3852 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3853 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3854 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3855 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 3856 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3857 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3858 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3859 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3860 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3862 | $as_echo "$ac_cv_objext" >&6; } |
| 3863 | OBJEXT=$ac_cv_objext |
| 3864 | ac_objext=$OBJEXT |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3865 | { $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] | 3866 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3867 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3868 | $as_echo_n "(cached) " >&6 |
| 3869 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3871 | /* end confdefs.h. */ |
| 3872 | |
| 3873 | int |
| 3874 | main () |
| 3875 | { |
| 3876 | #ifndef __GNUC__ |
| 3877 | choke me |
| 3878 | #endif |
| 3879 | |
| 3880 | ; |
| 3881 | return 0; |
| 3882 | } |
| 3883 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3884 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3885 | ac_compiler_gnu=yes |
| 3886 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3887 | ac_compiler_gnu=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3888 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3890 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3891 | |
| 3892 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3893 | { $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] | 3894 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3895 | if test $ac_compiler_gnu = yes; then |
| 3896 | GCC=yes |
| 3897 | else |
| 3898 | GCC= |
| 3899 | fi |
| 3900 | ac_test_CFLAGS=${CFLAGS+set} |
| 3901 | ac_save_CFLAGS=$CFLAGS |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3903 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3904 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3905 | $as_echo_n "(cached) " >&6 |
| 3906 | else |
| 3907 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3908 | ac_c_werror_flag=yes |
| 3909 | ac_cv_prog_cc_g=no |
| 3910 | CFLAGS="-g" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3912 | /* end confdefs.h. */ |
| 3913 | |
| 3914 | int |
| 3915 | main () |
| 3916 | { |
| 3917 | |
| 3918 | ; |
| 3919 | return 0; |
| 3920 | } |
| 3921 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3922 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3923 | ac_cv_prog_cc_g=yes |
| 3924 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3925 | CFLAGS="" |
| 3926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3927 | /* end confdefs.h. */ |
| 3928 | |
| 3929 | int |
| 3930 | main () |
| 3931 | { |
| 3932 | |
| 3933 | ; |
| 3934 | return 0; |
| 3935 | } |
| 3936 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3937 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3938 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3939 | else |
| 3940 | ac_c_werror_flag=$ac_save_c_werror_flag |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3941 | CFLAGS="-g" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3943 | /* end confdefs.h. */ |
| 3944 | |
| 3945 | int |
| 3946 | main () |
| 3947 | { |
| 3948 | |
| 3949 | ; |
| 3950 | return 0; |
| 3951 | } |
| 3952 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3953 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3954 | ac_cv_prog_cc_g=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3955 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3957 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3959 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3961 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3962 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3963 | { $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] | 3964 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3965 | if test "$ac_test_CFLAGS" = set; then |
| 3966 | CFLAGS=$ac_save_CFLAGS |
| 3967 | elif test $ac_cv_prog_cc_g = yes; then |
| 3968 | if test "$GCC" = yes; then |
| 3969 | CFLAGS="-g -O2" |
| 3970 | else |
| 3971 | CFLAGS="-g" |
| 3972 | fi |
| 3973 | else |
| 3974 | if test "$GCC" = yes; then |
| 3975 | CFLAGS="-O2" |
| 3976 | else |
| 3977 | CFLAGS= |
| 3978 | fi |
| 3979 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3980 | { $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] | 3981 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3982 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3983 | $as_echo_n "(cached) " >&6 |
| 3984 | else |
| 3985 | ac_cv_prog_cc_c89=no |
| 3986 | ac_save_CC=$CC |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3988 | /* end confdefs.h. */ |
| 3989 | #include <stdarg.h> |
| 3990 | #include <stdio.h> |
| 3991 | #include <sys/types.h> |
| 3992 | #include <sys/stat.h> |
| 3993 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3994 | struct buf { int x; }; |
| 3995 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3996 | static char *e (p, i) |
| 3997 | char **p; |
| 3998 | int i; |
| 3999 | { |
| 4000 | return p[i]; |
| 4001 | } |
| 4002 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4003 | { |
| 4004 | char *s; |
| 4005 | va_list v; |
| 4006 | va_start (v,p); |
| 4007 | s = g (p, va_arg (v,int)); |
| 4008 | va_end (v); |
| 4009 | return s; |
| 4010 | } |
| 4011 | |
| 4012 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4013 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4014 | These don't provoke an error unfortunately, instead are silently treated |
| 4015 | as 'x'. The following induces an error, until -std is added to get |
| 4016 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4017 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4018 | that's true only with -std. */ |
| 4019 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4020 | |
| 4021 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4022 | inside strings and character constants. */ |
| 4023 | #define FOO(x) 'x' |
| 4024 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4025 | |
| 4026 | int test (int i, double x); |
| 4027 | struct s1 {int (*f) (int a);}; |
| 4028 | struct s2 {int (*f) (double a);}; |
| 4029 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4030 | int argc; |
| 4031 | char **argv; |
| 4032 | int |
| 4033 | main () |
| 4034 | { |
| 4035 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4036 | ; |
| 4037 | return 0; |
| 4038 | } |
| 4039 | _ACEOF |
| 4040 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4041 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4042 | do |
| 4043 | CC="$ac_save_CC $ac_arg" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4044 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4045 | ac_cv_prog_cc_c89=$ac_arg |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4046 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4047 | rm -f core conftest.err conftest.$ac_objext |
| 4048 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4049 | done |
| 4050 | rm -f conftest.$ac_ext |
| 4051 | CC=$ac_save_CC |
| 4052 | |
| 4053 | fi |
| 4054 | # AC_CACHE_VAL |
| 4055 | case "x$ac_cv_prog_cc_c89" in |
| 4056 | x) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4058 | $as_echo "none needed" >&6; } ;; |
| 4059 | xno) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4061 | $as_echo "unsupported" >&6; } ;; |
| 4062 | *) |
| 4063 | CC="$CC $ac_cv_prog_cc_c89" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4064 | { $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] | 4065 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4066 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4067 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4068 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4069 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4070 | |
| 4071 | ac_ext=c |
| 4072 | ac_cpp='$CPP $CPPFLAGS' |
| 4073 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4074 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4075 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4076 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4077 | |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4078 | ac_ext=c |
| 4079 | ac_cpp='$CPP $CPPFLAGS' |
| 4080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 4084 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 4085 | # On Suns, sometimes $CPP names a directory. |
| 4086 | if test -n "$CPP" && test -d "$CPP"; then |
| 4087 | CPP= |
| 4088 | fi |
| 4089 | if test -z "$CPP"; then |
| 4090 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 4091 | $as_echo_n "(cached) " >&6 |
| 4092 | else |
| 4093 | # Double quotes because CPP needs to be expanded |
| 4094 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4095 | do |
| 4096 | ac_preproc_ok=false |
| 4097 | for ac_c_preproc_warn_flag in '' yes |
| 4098 | do |
| 4099 | # Use a header file that comes with gcc, so configuring glibc |
| 4100 | # with a fresh cross-compiler works. |
| 4101 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4102 | # <limits.h> exists even on freestanding compilers. |
| 4103 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4104 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4106 | /* end confdefs.h. */ |
| 4107 | #ifdef __STDC__ |
| 4108 | # include <limits.h> |
| 4109 | #else |
| 4110 | # include <assert.h> |
| 4111 | #endif |
| 4112 | Syntax error |
| 4113 | _ACEOF |
| 4114 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4115 | |
| 4116 | else |
| 4117 | # Broken: fails on valid input. |
| 4118 | continue |
| 4119 | fi |
| 4120 | rm -f conftest.err conftest.$ac_ext |
| 4121 | |
| 4122 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4123 | # can be detected and how. |
| 4124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4125 | /* end confdefs.h. */ |
| 4126 | #include <ac_nonexistent.h> |
| 4127 | _ACEOF |
| 4128 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4129 | # Broken: success on invalid input. |
| 4130 | continue |
| 4131 | else |
| 4132 | # Passes both tests. |
| 4133 | ac_preproc_ok=: |
| 4134 | break |
| 4135 | fi |
| 4136 | rm -f conftest.err conftest.$ac_ext |
| 4137 | |
| 4138 | done |
| 4139 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4140 | rm -f conftest.err conftest.$ac_ext |
| 4141 | if $ac_preproc_ok; then : |
| 4142 | break |
| 4143 | fi |
| 4144 | |
| 4145 | done |
| 4146 | ac_cv_prog_CPP=$CPP |
| 4147 | |
| 4148 | fi |
| 4149 | CPP=$ac_cv_prog_CPP |
| 4150 | else |
| 4151 | ac_cv_prog_CPP=$CPP |
| 4152 | fi |
| 4153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4154 | $as_echo "$CPP" >&6; } |
| 4155 | ac_preproc_ok=false |
| 4156 | for ac_c_preproc_warn_flag in '' yes |
| 4157 | do |
| 4158 | # Use a header file that comes with gcc, so configuring glibc |
| 4159 | # with a fresh cross-compiler works. |
| 4160 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4161 | # <limits.h> exists even on freestanding compilers. |
| 4162 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4163 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4165 | /* end confdefs.h. */ |
| 4166 | #ifdef __STDC__ |
| 4167 | # include <limits.h> |
| 4168 | #else |
| 4169 | # include <assert.h> |
| 4170 | #endif |
| 4171 | Syntax error |
| 4172 | _ACEOF |
| 4173 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4174 | |
| 4175 | else |
| 4176 | # Broken: fails on valid input. |
| 4177 | continue |
| 4178 | fi |
| 4179 | rm -f conftest.err conftest.$ac_ext |
| 4180 | |
| 4181 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4182 | # can be detected and how. |
| 4183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4184 | /* end confdefs.h. */ |
| 4185 | #include <ac_nonexistent.h> |
| 4186 | _ACEOF |
| 4187 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 4188 | # Broken: success on invalid input. |
| 4189 | continue |
| 4190 | else |
| 4191 | # Passes both tests. |
| 4192 | ac_preproc_ok=: |
| 4193 | break |
| 4194 | fi |
| 4195 | rm -f conftest.err conftest.$ac_ext |
| 4196 | |
| 4197 | done |
| 4198 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4199 | rm -f conftest.err conftest.$ac_ext |
| 4200 | if $ac_preproc_ok; then : |
| 4201 | |
| 4202 | else |
| 4203 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4204 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 4205 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4206 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4207 | fi |
| 4208 | |
| 4209 | ac_ext=c |
| 4210 | ac_cpp='$CPP $CPPFLAGS' |
| 4211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4214 | |
| 4215 | |
| 4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4217 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4218 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4219 | $as_echo_n "(cached) " >&6 |
| 4220 | else |
| 4221 | if test -z "$GREP"; then |
| 4222 | ac_path_GREP_found=false |
| 4223 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4225 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4226 | do |
| 4227 | IFS=$as_save_IFS |
| 4228 | test -z "$as_dir" && as_dir=. |
| 4229 | for ac_prog in grep ggrep; do |
| 4230 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4231 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4232 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4233 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4234 | # Check for GNU $ac_path_GREP |
| 4235 | case `"$ac_path_GREP" --version 2>&1` in |
| 4236 | *GNU*) |
| 4237 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4238 | *) |
| 4239 | ac_count=0 |
| 4240 | $as_echo_n 0123456789 >"conftest.in" |
| 4241 | while : |
| 4242 | do |
| 4243 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4244 | mv "conftest.tmp" "conftest.in" |
| 4245 | cp "conftest.in" "conftest.nl" |
| 4246 | $as_echo 'GREP' >> "conftest.nl" |
| 4247 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4248 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4249 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4250 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4251 | # Best one so far, save it but keep looking for a better one |
| 4252 | ac_cv_path_GREP="$ac_path_GREP" |
| 4253 | ac_path_GREP_max=$ac_count |
| 4254 | fi |
| 4255 | # 10*(2^10) chars as input seems more than enough |
| 4256 | test $ac_count -gt 10 && break |
| 4257 | done |
| 4258 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4259 | esac |
| 4260 | |
| 4261 | $ac_path_GREP_found && break 3 |
| 4262 | done |
| 4263 | done |
| 4264 | done |
| 4265 | IFS=$as_save_IFS |
| 4266 | if test -z "$ac_cv_path_GREP"; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 4267 | 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] | 4268 | fi |
| 4269 | else |
| 4270 | ac_cv_path_GREP=$GREP |
| 4271 | fi |
| 4272 | |
| 4273 | fi |
| 4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4275 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4276 | GREP="$ac_cv_path_GREP" |
| 4277 | |
| 4278 | |
| 4279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4280 | $as_echo_n "checking for egrep... " >&6; } |
| 4281 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4282 | $as_echo_n "(cached) " >&6 |
| 4283 | else |
| 4284 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4285 | then ac_cv_path_EGREP="$GREP -E" |
| 4286 | else |
| 4287 | if test -z "$EGREP"; then |
| 4288 | ac_path_EGREP_found=false |
| 4289 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4291 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4292 | do |
| 4293 | IFS=$as_save_IFS |
| 4294 | test -z "$as_dir" && as_dir=. |
| 4295 | for ac_prog in egrep; do |
| 4296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4297 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4298 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4299 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4300 | # Check for GNU $ac_path_EGREP |
| 4301 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4302 | *GNU*) |
| 4303 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4304 | *) |
| 4305 | ac_count=0 |
| 4306 | $as_echo_n 0123456789 >"conftest.in" |
| 4307 | while : |
| 4308 | do |
| 4309 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4310 | mv "conftest.tmp" "conftest.in" |
| 4311 | cp "conftest.in" "conftest.nl" |
| 4312 | $as_echo 'EGREP' >> "conftest.nl" |
| 4313 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4314 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4315 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4316 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4317 | # Best one so far, save it but keep looking for a better one |
| 4318 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4319 | ac_path_EGREP_max=$ac_count |
| 4320 | fi |
| 4321 | # 10*(2^10) chars as input seems more than enough |
| 4322 | test $ac_count -gt 10 && break |
| 4323 | done |
| 4324 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4325 | esac |
| 4326 | |
| 4327 | $ac_path_EGREP_found && break 3 |
| 4328 | done |
| 4329 | done |
| 4330 | done |
| 4331 | IFS=$as_save_IFS |
| 4332 | if test -z "$ac_cv_path_EGREP"; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 4333 | 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] | 4334 | fi |
| 4335 | else |
| 4336 | ac_cv_path_EGREP=$EGREP |
| 4337 | fi |
| 4338 | |
| 4339 | fi |
| 4340 | fi |
| 4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4342 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4343 | EGREP="$ac_cv_path_EGREP" |
| 4344 | |
| 4345 | |
| 4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 4347 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 4348 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 4349 | $as_echo_n "(cached) " >&6 |
| 4350 | else |
| 4351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4352 | /* end confdefs.h. */ |
| 4353 | #include <stdlib.h> |
| 4354 | #include <stdarg.h> |
| 4355 | #include <string.h> |
| 4356 | #include <float.h> |
| 4357 | |
| 4358 | int |
| 4359 | main () |
| 4360 | { |
| 4361 | |
| 4362 | ; |
| 4363 | return 0; |
| 4364 | } |
| 4365 | _ACEOF |
| 4366 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4367 | ac_cv_header_stdc=yes |
| 4368 | else |
| 4369 | ac_cv_header_stdc=no |
| 4370 | fi |
| 4371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4372 | |
| 4373 | if test $ac_cv_header_stdc = yes; then |
| 4374 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4376 | /* end confdefs.h. */ |
| 4377 | #include <string.h> |
| 4378 | |
| 4379 | _ACEOF |
| 4380 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4381 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 4382 | |
| 4383 | else |
| 4384 | ac_cv_header_stdc=no |
| 4385 | fi |
| 4386 | rm -f conftest* |
| 4387 | |
| 4388 | fi |
| 4389 | |
| 4390 | if test $ac_cv_header_stdc = yes; then |
| 4391 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4393 | /* end confdefs.h. */ |
| 4394 | #include <stdlib.h> |
| 4395 | |
| 4396 | _ACEOF |
| 4397 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4398 | $EGREP "free" >/dev/null 2>&1; then : |
| 4399 | |
| 4400 | else |
| 4401 | ac_cv_header_stdc=no |
| 4402 | fi |
| 4403 | rm -f conftest* |
| 4404 | |
| 4405 | fi |
| 4406 | |
| 4407 | if test $ac_cv_header_stdc = yes; then |
| 4408 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4409 | if test "$cross_compiling" = yes; then : |
| 4410 | : |
| 4411 | else |
| 4412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4413 | /* end confdefs.h. */ |
| 4414 | #include <ctype.h> |
| 4415 | #include <stdlib.h> |
| 4416 | #if ((' ' & 0x0FF) == 0x020) |
| 4417 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4418 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4419 | #else |
| 4420 | # define ISLOWER(c) \ |
| 4421 | (('a' <= (c) && (c) <= 'i') \ |
| 4422 | || ('j' <= (c) && (c) <= 'r') \ |
| 4423 | || ('s' <= (c) && (c) <= 'z')) |
| 4424 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4425 | #endif |
| 4426 | |
| 4427 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4428 | int |
| 4429 | main () |
| 4430 | { |
| 4431 | int i; |
| 4432 | for (i = 0; i < 256; i++) |
| 4433 | if (XOR (islower (i), ISLOWER (i)) |
| 4434 | || toupper (i) != TOUPPER (i)) |
| 4435 | return 2; |
| 4436 | return 0; |
| 4437 | } |
| 4438 | _ACEOF |
| 4439 | if ac_fn_c_try_run "$LINENO"; then : |
| 4440 | |
| 4441 | else |
| 4442 | ac_cv_header_stdc=no |
| 4443 | fi |
| 4444 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 4445 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4446 | fi |
| 4447 | |
| 4448 | fi |
| 4449 | fi |
| 4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 4451 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 4452 | if test $ac_cv_header_stdc = yes; then |
| 4453 | |
| 4454 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 4455 | |
| 4456 | fi |
| 4457 | |
| 4458 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4459 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4460 | inttypes.h stdint.h unistd.h |
| 4461 | do : |
| 4462 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4463 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 4464 | " |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 4465 | eval as_val=\$$as_ac_Header |
| 4466 | if test "x$as_val" = x""yes; then : |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4467 | cat >>confdefs.h <<_ACEOF |
| 4468 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4469 | _ACEOF |
| 4470 | |
| 4471 | fi |
| 4472 | |
| 4473 | done |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 4478 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 4479 | MINIX=yes |
| 4480 | else |
| 4481 | MINIX= |
| 4482 | fi |
| 4483 | |
| 4484 | |
| 4485 | if test "$MINIX" = yes; then |
| 4486 | |
| 4487 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 4488 | |
| 4489 | |
| 4490 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 4491 | |
| 4492 | |
| 4493 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 4494 | |
| 4495 | fi |
| 4496 | |
| 4497 | |
| 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 4499 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 4500 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 4501 | $as_echo_n "(cached) " >&6 |
| 4502 | else |
| 4503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4504 | /* end confdefs.h. */ |
| 4505 | |
| 4506 | # define __EXTENSIONS__ 1 |
| 4507 | $ac_includes_default |
| 4508 | int |
| 4509 | main () |
| 4510 | { |
| 4511 | |
| 4512 | ; |
| 4513 | return 0; |
| 4514 | } |
| 4515 | _ACEOF |
| 4516 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4517 | ac_cv_safe_to_define___extensions__=yes |
| 4518 | else |
| 4519 | ac_cv_safe_to_define___extensions__=no |
| 4520 | fi |
| 4521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4522 | fi |
| 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 4524 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 4525 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 4526 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 4527 | |
| 4528 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 4529 | |
| 4530 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 4531 | |
| 4532 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4533 | |
| 4534 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | # Check for programs |
| 4539 | ac_ext=c |
| 4540 | ac_cpp='$CPP $CPPFLAGS' |
| 4541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4544 | if test -n "$ac_tool_prefix"; then |
| 4545 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4546 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4548 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4549 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4550 | $as_echo_n "(cached) " >&6 |
| 4551 | else |
| 4552 | if test -n "$CC"; then |
| 4553 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4554 | else |
| 4555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4556 | for as_dir in $PATH |
| 4557 | do |
| 4558 | IFS=$as_save_IFS |
| 4559 | test -z "$as_dir" && as_dir=. |
| 4560 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4562 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4564 | break 2 |
| 4565 | fi |
| 4566 | done |
| 4567 | done |
| 4568 | IFS=$as_save_IFS |
| 4569 | |
| 4570 | fi |
| 4571 | fi |
| 4572 | CC=$ac_cv_prog_CC |
| 4573 | if test -n "$CC"; then |
| 4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4575 | $as_echo "$CC" >&6; } |
| 4576 | else |
| 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4578 | $as_echo "no" >&6; } |
| 4579 | fi |
| 4580 | |
| 4581 | |
| 4582 | fi |
| 4583 | if test -z "$ac_cv_prog_CC"; then |
| 4584 | ac_ct_CC=$CC |
| 4585 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4586 | set dummy gcc; ac_word=$2 |
| 4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4588 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4589 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4590 | $as_echo_n "(cached) " >&6 |
| 4591 | else |
| 4592 | if test -n "$ac_ct_CC"; then |
| 4593 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4594 | else |
| 4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4596 | for as_dir in $PATH |
| 4597 | do |
| 4598 | IFS=$as_save_IFS |
| 4599 | test -z "$as_dir" && as_dir=. |
| 4600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4602 | ac_cv_prog_ac_ct_CC="gcc" |
| 4603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4604 | break 2 |
| 4605 | fi |
| 4606 | done |
| 4607 | done |
| 4608 | IFS=$as_save_IFS |
| 4609 | |
| 4610 | fi |
| 4611 | fi |
| 4612 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4613 | if test -n "$ac_ct_CC"; then |
| 4614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4615 | $as_echo "$ac_ct_CC" >&6; } |
| 4616 | else |
| 4617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4618 | $as_echo "no" >&6; } |
| 4619 | fi |
| 4620 | |
| 4621 | if test "x$ac_ct_CC" = x; then |
| 4622 | CC="" |
| 4623 | else |
| 4624 | case $cross_compiling:$ac_tool_warned in |
| 4625 | yes:) |
| 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4627 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4628 | ac_tool_warned=yes ;; |
| 4629 | esac |
| 4630 | CC=$ac_ct_CC |
| 4631 | fi |
| 4632 | else |
| 4633 | CC="$ac_cv_prog_CC" |
| 4634 | fi |
| 4635 | |
| 4636 | if test -z "$CC"; then |
| 4637 | if test -n "$ac_tool_prefix"; then |
| 4638 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4639 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4641 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4642 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4643 | $as_echo_n "(cached) " >&6 |
| 4644 | else |
| 4645 | if test -n "$CC"; then |
| 4646 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4647 | else |
| 4648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4649 | for as_dir in $PATH |
| 4650 | do |
| 4651 | IFS=$as_save_IFS |
| 4652 | test -z "$as_dir" && as_dir=. |
| 4653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4655 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4657 | break 2 |
| 4658 | fi |
| 4659 | done |
| 4660 | done |
| 4661 | IFS=$as_save_IFS |
| 4662 | |
| 4663 | fi |
| 4664 | fi |
| 4665 | CC=$ac_cv_prog_CC |
| 4666 | if test -n "$CC"; then |
| 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4668 | $as_echo "$CC" >&6; } |
| 4669 | else |
| 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4671 | $as_echo "no" >&6; } |
| 4672 | fi |
| 4673 | |
| 4674 | |
| 4675 | fi |
| 4676 | fi |
| 4677 | if test -z "$CC"; then |
| 4678 | # Extract the first word of "cc", so it can be a program name with args. |
| 4679 | set dummy cc; ac_word=$2 |
| 4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4681 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4682 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4683 | $as_echo_n "(cached) " >&6 |
| 4684 | else |
| 4685 | if test -n "$CC"; then |
| 4686 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4687 | else |
| 4688 | ac_prog_rejected=no |
| 4689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4690 | for as_dir in $PATH |
| 4691 | do |
| 4692 | IFS=$as_save_IFS |
| 4693 | test -z "$as_dir" && as_dir=. |
| 4694 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4696 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4697 | ac_prog_rejected=yes |
| 4698 | continue |
| 4699 | fi |
| 4700 | ac_cv_prog_CC="cc" |
| 4701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4702 | break 2 |
| 4703 | fi |
| 4704 | done |
| 4705 | done |
| 4706 | IFS=$as_save_IFS |
| 4707 | |
| 4708 | if test $ac_prog_rejected = yes; then |
| 4709 | # We found a bogon in the path, so make sure we never use it. |
| 4710 | set dummy $ac_cv_prog_CC |
| 4711 | shift |
| 4712 | if test $# != 0; then |
| 4713 | # We chose a different compiler from the bogus one. |
| 4714 | # However, it has the same basename, so the bogon will be chosen |
| 4715 | # first if we set CC to just the basename; use the full file name. |
| 4716 | shift |
| 4717 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4718 | fi |
| 4719 | fi |
| 4720 | fi |
| 4721 | fi |
| 4722 | CC=$ac_cv_prog_CC |
| 4723 | if test -n "$CC"; then |
| 4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4725 | $as_echo "$CC" >&6; } |
| 4726 | else |
| 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4728 | $as_echo "no" >&6; } |
| 4729 | fi |
| 4730 | |
| 4731 | |
| 4732 | fi |
| 4733 | if test -z "$CC"; then |
| 4734 | if test -n "$ac_tool_prefix"; then |
| 4735 | for ac_prog in cl.exe |
| 4736 | do |
| 4737 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4738 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4740 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4741 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4742 | $as_echo_n "(cached) " >&6 |
| 4743 | else |
| 4744 | if test -n "$CC"; then |
| 4745 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4746 | else |
| 4747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4748 | for as_dir in $PATH |
| 4749 | do |
| 4750 | IFS=$as_save_IFS |
| 4751 | test -z "$as_dir" && as_dir=. |
| 4752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4754 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4755 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4756 | break 2 |
| 4757 | fi |
| 4758 | done |
| 4759 | done |
| 4760 | IFS=$as_save_IFS |
| 4761 | |
| 4762 | fi |
| 4763 | fi |
| 4764 | CC=$ac_cv_prog_CC |
| 4765 | if test -n "$CC"; then |
| 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4767 | $as_echo "$CC" >&6; } |
| 4768 | else |
| 4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4770 | $as_echo "no" >&6; } |
| 4771 | fi |
| 4772 | |
| 4773 | |
| 4774 | test -n "$CC" && break |
| 4775 | done |
| 4776 | fi |
| 4777 | if test -z "$CC"; then |
| 4778 | ac_ct_CC=$CC |
| 4779 | for ac_prog in cl.exe |
| 4780 | do |
| 4781 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4782 | set dummy $ac_prog; ac_word=$2 |
| 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4784 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4785 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4786 | $as_echo_n "(cached) " >&6 |
| 4787 | else |
| 4788 | if test -n "$ac_ct_CC"; then |
| 4789 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4790 | else |
| 4791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4792 | for as_dir in $PATH |
| 4793 | do |
| 4794 | IFS=$as_save_IFS |
| 4795 | test -z "$as_dir" && as_dir=. |
| 4796 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4798 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4800 | break 2 |
| 4801 | fi |
| 4802 | done |
| 4803 | done |
| 4804 | IFS=$as_save_IFS |
| 4805 | |
| 4806 | fi |
| 4807 | fi |
| 4808 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4809 | if test -n "$ac_ct_CC"; then |
| 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4811 | $as_echo "$ac_ct_CC" >&6; } |
| 4812 | else |
| 4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4814 | $as_echo "no" >&6; } |
| 4815 | fi |
| 4816 | |
| 4817 | |
| 4818 | test -n "$ac_ct_CC" && break |
| 4819 | done |
| 4820 | |
| 4821 | if test "x$ac_ct_CC" = x; then |
| 4822 | CC="" |
| 4823 | else |
| 4824 | case $cross_compiling:$ac_tool_warned in |
| 4825 | yes:) |
| 4826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4827 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4828 | ac_tool_warned=yes ;; |
| 4829 | esac |
| 4830 | CC=$ac_ct_CC |
| 4831 | fi |
| 4832 | fi |
| 4833 | |
| 4834 | fi |
| 4835 | |
| 4836 | |
| 4837 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4838 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 4839 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4840 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4841 | |
| 4842 | # Provide some information about the compiler. |
| 4843 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4844 | set X $ac_compile |
| 4845 | ac_compiler=$2 |
| 4846 | for ac_option in --version -v -V -qversion; do |
| 4847 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4848 | case "(($ac_try" in |
| 4849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4850 | *) ac_try_echo=$ac_try;; |
| 4851 | esac |
| 4852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4853 | $as_echo "$ac_try_echo"; } >&5 |
| 4854 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4855 | ac_status=$? |
| 4856 | if test -s conftest.err; then |
| 4857 | sed '10a\ |
| 4858 | ... rest of stderr output deleted ... |
| 4859 | 10q' conftest.err >conftest.er1 |
| 4860 | cat conftest.er1 >&5 |
| 4861 | fi |
| 4862 | rm -f conftest.er1 conftest.err |
| 4863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4864 | test $ac_status = 0; } |
| 4865 | done |
| 4866 | |
| 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 4868 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 4869 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 4870 | $as_echo_n "(cached) " >&6 |
| 4871 | else |
| 4872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4873 | /* end confdefs.h. */ |
| 4874 | |
| 4875 | int |
| 4876 | main () |
| 4877 | { |
| 4878 | #ifndef __GNUC__ |
| 4879 | choke me |
| 4880 | #endif |
| 4881 | |
| 4882 | ; |
| 4883 | return 0; |
| 4884 | } |
| 4885 | _ACEOF |
| 4886 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4887 | ac_compiler_gnu=yes |
| 4888 | else |
| 4889 | ac_compiler_gnu=no |
| 4890 | fi |
| 4891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4892 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4893 | |
| 4894 | fi |
| 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4896 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4897 | if test $ac_compiler_gnu = yes; then |
| 4898 | GCC=yes |
| 4899 | else |
| 4900 | GCC= |
| 4901 | fi |
| 4902 | ac_test_CFLAGS=${CFLAGS+set} |
| 4903 | ac_save_CFLAGS=$CFLAGS |
| 4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4905 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4906 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4907 | $as_echo_n "(cached) " >&6 |
| 4908 | else |
| 4909 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4910 | ac_c_werror_flag=yes |
| 4911 | ac_cv_prog_cc_g=no |
| 4912 | CFLAGS="-g" |
| 4913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4914 | /* end confdefs.h. */ |
| 4915 | |
| 4916 | int |
| 4917 | main () |
| 4918 | { |
| 4919 | |
| 4920 | ; |
| 4921 | return 0; |
| 4922 | } |
| 4923 | _ACEOF |
| 4924 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4925 | ac_cv_prog_cc_g=yes |
| 4926 | else |
| 4927 | CFLAGS="" |
| 4928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4929 | /* end confdefs.h. */ |
| 4930 | |
| 4931 | int |
| 4932 | main () |
| 4933 | { |
| 4934 | |
| 4935 | ; |
| 4936 | return 0; |
| 4937 | } |
| 4938 | _ACEOF |
| 4939 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4940 | |
| 4941 | else |
| 4942 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4943 | CFLAGS="-g" |
| 4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4945 | /* end confdefs.h. */ |
| 4946 | |
| 4947 | int |
| 4948 | main () |
| 4949 | { |
| 4950 | |
| 4951 | ; |
| 4952 | return 0; |
| 4953 | } |
| 4954 | _ACEOF |
| 4955 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4956 | ac_cv_prog_cc_g=yes |
| 4957 | fi |
| 4958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4959 | fi |
| 4960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4961 | fi |
| 4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4963 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4964 | fi |
| 4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4966 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4967 | if test "$ac_test_CFLAGS" = set; then |
| 4968 | CFLAGS=$ac_save_CFLAGS |
| 4969 | elif test $ac_cv_prog_cc_g = yes; then |
| 4970 | if test "$GCC" = yes; then |
| 4971 | CFLAGS="-g -O2" |
| 4972 | else |
| 4973 | CFLAGS="-g" |
| 4974 | fi |
| 4975 | else |
| 4976 | if test "$GCC" = yes; then |
| 4977 | CFLAGS="-O2" |
| 4978 | else |
| 4979 | CFLAGS= |
| 4980 | fi |
| 4981 | fi |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4983 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4984 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4985 | $as_echo_n "(cached) " >&6 |
| 4986 | else |
| 4987 | ac_cv_prog_cc_c89=no |
| 4988 | ac_save_CC=$CC |
| 4989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4990 | /* end confdefs.h. */ |
| 4991 | #include <stdarg.h> |
| 4992 | #include <stdio.h> |
| 4993 | #include <sys/types.h> |
| 4994 | #include <sys/stat.h> |
| 4995 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4996 | struct buf { int x; }; |
| 4997 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4998 | static char *e (p, i) |
| 4999 | char **p; |
| 5000 | int i; |
| 5001 | { |
| 5002 | return p[i]; |
| 5003 | } |
| 5004 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5005 | { |
| 5006 | char *s; |
| 5007 | va_list v; |
| 5008 | va_start (v,p); |
| 5009 | s = g (p, va_arg (v,int)); |
| 5010 | va_end (v); |
| 5011 | return s; |
| 5012 | } |
| 5013 | |
| 5014 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5015 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5016 | These don't provoke an error unfortunately, instead are silently treated |
| 5017 | as 'x'. The following induces an error, until -std is added to get |
| 5018 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5019 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5020 | that's true only with -std. */ |
| 5021 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5022 | |
| 5023 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5024 | inside strings and character constants. */ |
| 5025 | #define FOO(x) 'x' |
| 5026 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5027 | |
| 5028 | int test (int i, double x); |
| 5029 | struct s1 {int (*f) (int a);}; |
| 5030 | struct s2 {int (*f) (double a);}; |
| 5031 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5032 | int argc; |
| 5033 | char **argv; |
| 5034 | int |
| 5035 | main () |
| 5036 | { |
| 5037 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5038 | ; |
| 5039 | return 0; |
| 5040 | } |
| 5041 | _ACEOF |
| 5042 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5043 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5044 | do |
| 5045 | CC="$ac_save_CC $ac_arg" |
| 5046 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5047 | ac_cv_prog_cc_c89=$ac_arg |
| 5048 | fi |
| 5049 | rm -f core conftest.err conftest.$ac_objext |
| 5050 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5051 | done |
| 5052 | rm -f conftest.$ac_ext |
| 5053 | CC=$ac_save_CC |
| 5054 | |
| 5055 | fi |
| 5056 | # AC_CACHE_VAL |
| 5057 | case "x$ac_cv_prog_cc_c89" in |
| 5058 | x) |
| 5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5060 | $as_echo "none needed" >&6; } ;; |
| 5061 | xno) |
| 5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5063 | $as_echo "unsupported" >&6; } ;; |
| 5064 | *) |
| 5065 | CC="$CC $ac_cv_prog_cc_c89" |
| 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5067 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5068 | esac |
| 5069 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5070 | |
| 5071 | fi |
| 5072 | |
| 5073 | ac_ext=c |
| 5074 | ac_cpp='$CPP $CPPFLAGS' |
| 5075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5078 | |
cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 5079 | ac_ext=cpp |
| 5080 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5081 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5082 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5083 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5084 | if test -z "$CXX"; then |
| 5085 | if test -n "$CCC"; then |
| 5086 | CXX=$CCC |
| 5087 | else |
| 5088 | if test -n "$ac_tool_prefix"; then |
| 5089 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5090 | do |
| 5091 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5092 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5094 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5095 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 5096 | $as_echo_n "(cached) " >&6 |
| 5097 | else |
| 5098 | if test -n "$CXX"; then |
| 5099 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5100 | else |
| 5101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5102 | for as_dir in $PATH |
| 5103 | do |
| 5104 | IFS=$as_save_IFS |
| 5105 | test -z "$as_dir" && as_dir=. |
| 5106 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5108 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5110 | break 2 |
| 5111 | fi |
| 5112 | done |
| 5113 | done |
| 5114 | IFS=$as_save_IFS |
| 5115 | |
| 5116 | fi |
| 5117 | fi |
| 5118 | CXX=$ac_cv_prog_CXX |
| 5119 | if test -n "$CXX"; then |
| 5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5121 | $as_echo "$CXX" >&6; } |
| 5122 | else |
| 5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5124 | $as_echo "no" >&6; } |
| 5125 | fi |
| 5126 | |
| 5127 | |
| 5128 | test -n "$CXX" && break |
| 5129 | done |
| 5130 | fi |
| 5131 | if test -z "$CXX"; then |
| 5132 | ac_ct_CXX=$CXX |
| 5133 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5134 | do |
| 5135 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5136 | set dummy $ac_prog; ac_word=$2 |
| 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5138 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5139 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 5140 | $as_echo_n "(cached) " >&6 |
| 5141 | else |
| 5142 | if test -n "$ac_ct_CXX"; then |
| 5143 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5144 | else |
| 5145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5146 | for as_dir in $PATH |
| 5147 | do |
| 5148 | IFS=$as_save_IFS |
| 5149 | test -z "$as_dir" && as_dir=. |
| 5150 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5152 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5154 | break 2 |
| 5155 | fi |
| 5156 | done |
| 5157 | done |
| 5158 | IFS=$as_save_IFS |
| 5159 | |
| 5160 | fi |
| 5161 | fi |
| 5162 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5163 | if test -n "$ac_ct_CXX"; then |
| 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5165 | $as_echo "$ac_ct_CXX" >&6; } |
| 5166 | else |
| 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5168 | $as_echo "no" >&6; } |
| 5169 | fi |
| 5170 | |
| 5171 | |
| 5172 | test -n "$ac_ct_CXX" && break |
| 5173 | done |
| 5174 | |
| 5175 | if test "x$ac_ct_CXX" = x; then |
| 5176 | CXX="g++" |
| 5177 | else |
| 5178 | case $cross_compiling:$ac_tool_warned in |
| 5179 | yes:) |
| 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5181 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5182 | ac_tool_warned=yes ;; |
| 5183 | esac |
| 5184 | CXX=$ac_ct_CXX |
| 5185 | fi |
| 5186 | fi |
| 5187 | |
| 5188 | fi |
| 5189 | fi |
| 5190 | # Provide some information about the compiler. |
| 5191 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5192 | set X $ac_compile |
| 5193 | ac_compiler=$2 |
| 5194 | for ac_option in --version -v -V -qversion; do |
| 5195 | { { ac_try="$ac_compiler $ac_option >&5" |
| 5196 | case "(($ac_try" in |
| 5197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5198 | *) ac_try_echo=$ac_try;; |
| 5199 | esac |
| 5200 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5201 | $as_echo "$ac_try_echo"; } >&5 |
| 5202 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5203 | ac_status=$? |
| 5204 | if test -s conftest.err; then |
| 5205 | sed '10a\ |
| 5206 | ... rest of stderr output deleted ... |
| 5207 | 10q' conftest.err >conftest.er1 |
| 5208 | cat conftest.er1 >&5 |
| 5209 | fi |
| 5210 | rm -f conftest.er1 conftest.err |
| 5211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5212 | test $ac_status = 0; } |
| 5213 | done |
| 5214 | |
| 5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 5216 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 5217 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 5218 | $as_echo_n "(cached) " >&6 |
| 5219 | else |
| 5220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5221 | /* end confdefs.h. */ |
| 5222 | |
| 5223 | int |
| 5224 | main () |
| 5225 | { |
| 5226 | #ifndef __GNUC__ |
| 5227 | choke me |
| 5228 | #endif |
| 5229 | |
| 5230 | ; |
| 5231 | return 0; |
| 5232 | } |
| 5233 | _ACEOF |
| 5234 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5235 | ac_compiler_gnu=yes |
| 5236 | else |
| 5237 | ac_compiler_gnu=no |
| 5238 | fi |
| 5239 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5240 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5241 | |
| 5242 | fi |
| 5243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5244 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5245 | if test $ac_compiler_gnu = yes; then |
| 5246 | GXX=yes |
| 5247 | else |
| 5248 | GXX= |
| 5249 | fi |
| 5250 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5251 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5253 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 5254 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 5255 | $as_echo_n "(cached) " >&6 |
| 5256 | else |
| 5257 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5258 | ac_cxx_werror_flag=yes |
| 5259 | ac_cv_prog_cxx_g=no |
| 5260 | CXXFLAGS="-g" |
| 5261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5262 | /* end confdefs.h. */ |
| 5263 | |
| 5264 | int |
| 5265 | main () |
| 5266 | { |
| 5267 | |
| 5268 | ; |
| 5269 | return 0; |
| 5270 | } |
| 5271 | _ACEOF |
| 5272 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5273 | ac_cv_prog_cxx_g=yes |
| 5274 | else |
| 5275 | CXXFLAGS="" |
| 5276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5277 | /* end confdefs.h. */ |
| 5278 | |
| 5279 | int |
| 5280 | main () |
| 5281 | { |
| 5282 | |
| 5283 | ; |
| 5284 | return 0; |
| 5285 | } |
| 5286 | _ACEOF |
| 5287 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5288 | |
| 5289 | else |
| 5290 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5291 | CXXFLAGS="-g" |
| 5292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5293 | /* end confdefs.h. */ |
| 5294 | |
| 5295 | int |
| 5296 | main () |
| 5297 | { |
| 5298 | |
| 5299 | ; |
| 5300 | return 0; |
| 5301 | } |
| 5302 | _ACEOF |
| 5303 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5304 | ac_cv_prog_cxx_g=yes |
| 5305 | fi |
| 5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5307 | fi |
| 5308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5309 | fi |
| 5310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5311 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5312 | fi |
| 5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5314 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 5315 | if test "$ac_test_CXXFLAGS" = set; then |
| 5316 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5317 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5318 | if test "$GXX" = yes; then |
| 5319 | CXXFLAGS="-g -O2" |
| 5320 | else |
| 5321 | CXXFLAGS="-g" |
| 5322 | fi |
| 5323 | else |
| 5324 | if test "$GXX" = yes; then |
| 5325 | CXXFLAGS="-O2" |
| 5326 | else |
| 5327 | CXXFLAGS= |
| 5328 | fi |
| 5329 | fi |
| 5330 | ac_ext=c |
| 5331 | ac_cpp='$CPP $CPPFLAGS' |
| 5332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5335 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5336 | case $ac_cv_prog_cc_stdc in #( |
| 5337 | no) : |
| 5338 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 5339 | *) : |
| 5340 | { $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] | 5341 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5342 | if test "${ac_cv_prog_cc_c99+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5343 | $as_echo_n "(cached) " >&6 |
| 5344 | else |
| 5345 | ac_cv_prog_cc_c99=no |
| 5346 | ac_save_CC=$CC |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5348 | /* end confdefs.h. */ |
| 5349 | #include <stdarg.h> |
| 5350 | #include <stdbool.h> |
| 5351 | #include <stdlib.h> |
| 5352 | #include <wchar.h> |
| 5353 | #include <stdio.h> |
| 5354 | |
| 5355 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 5356 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 5357 | #define showlist(...) puts (#__VA_ARGS__) |
| 5358 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 5359 | static void |
| 5360 | test_varargs_macros (void) |
| 5361 | { |
| 5362 | int x = 1234; |
| 5363 | int y = 5678; |
| 5364 | debug ("Flag"); |
| 5365 | debug ("X = %d\n", x); |
| 5366 | showlist (The first, second, and third items.); |
| 5367 | report (x>y, "x is %d but y is %d", x, y); |
| 5368 | } |
| 5369 | |
| 5370 | // Check long long types. |
| 5371 | #define BIG64 18446744073709551615ull |
| 5372 | #define BIG32 4294967295ul |
| 5373 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 5374 | #if !BIG_OK |
| 5375 | your preprocessor is broken; |
| 5376 | #endif |
| 5377 | #if BIG_OK |
| 5378 | #else |
| 5379 | your preprocessor is broken; |
| 5380 | #endif |
| 5381 | static long long int bignum = -9223372036854775807LL; |
| 5382 | static unsigned long long int ubignum = BIG64; |
| 5383 | |
| 5384 | struct incomplete_array |
| 5385 | { |
| 5386 | int datasize; |
| 5387 | double data[]; |
| 5388 | }; |
| 5389 | |
| 5390 | struct named_init { |
| 5391 | int number; |
| 5392 | const wchar_t *name; |
| 5393 | double average; |
| 5394 | }; |
| 5395 | |
| 5396 | typedef const char *ccp; |
| 5397 | |
| 5398 | static inline int |
| 5399 | test_restrict (ccp restrict text) |
| 5400 | { |
| 5401 | // See if C++-style comments work. |
| 5402 | // Iterate through items via the restricted pointer. |
| 5403 | // Also check for declarations in for loops. |
| 5404 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 5405 | continue; |
| 5406 | return 0; |
| 5407 | } |
| 5408 | |
| 5409 | // Check varargs and va_copy. |
| 5410 | static void |
| 5411 | test_varargs (const char *format, ...) |
| 5412 | { |
| 5413 | va_list args; |
| 5414 | va_start (args, format); |
| 5415 | va_list args_copy; |
| 5416 | va_copy (args_copy, args); |
| 5417 | |
| 5418 | const char *str; |
| 5419 | int number; |
| 5420 | float fnumber; |
| 5421 | |
| 5422 | while (*format) |
| 5423 | { |
| 5424 | switch (*format++) |
| 5425 | { |
| 5426 | case 's': // string |
| 5427 | str = va_arg (args_copy, const char *); |
| 5428 | break; |
| 5429 | case 'd': // int |
| 5430 | number = va_arg (args_copy, int); |
| 5431 | break; |
| 5432 | case 'f': // float |
| 5433 | fnumber = va_arg (args_copy, double); |
| 5434 | break; |
| 5435 | default: |
| 5436 | break; |
| 5437 | } |
| 5438 | } |
| 5439 | va_end (args_copy); |
| 5440 | va_end (args); |
| 5441 | } |
| 5442 | |
| 5443 | int |
| 5444 | main () |
| 5445 | { |
| 5446 | |
| 5447 | // Check bool. |
| 5448 | _Bool success = false; |
| 5449 | |
| 5450 | // Check restrict. |
| 5451 | if (test_restrict ("String literal") == 0) |
| 5452 | success = true; |
| 5453 | char *restrict newvar = "Another string"; |
| 5454 | |
| 5455 | // Check varargs. |
| 5456 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 5457 | test_varargs_macros (); |
| 5458 | |
| 5459 | // Check flexible array members. |
| 5460 | struct incomplete_array *ia = |
| 5461 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 5462 | ia->datasize = 10; |
| 5463 | for (int i = 0; i < ia->datasize; ++i) |
| 5464 | ia->data[i] = i * 1.234; |
| 5465 | |
| 5466 | // Check named initializers. |
| 5467 | struct named_init ni = { |
| 5468 | .number = 34, |
| 5469 | .name = L"Test wide string", |
| 5470 | .average = 543.34343, |
| 5471 | }; |
| 5472 | |
| 5473 | ni.number = 58; |
| 5474 | |
| 5475 | int dynamic_array[ni.number]; |
| 5476 | dynamic_array[ni.number - 1] = 543; |
| 5477 | |
| 5478 | // work around unused variable warnings |
| 5479 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 5480 | || dynamic_array[ni.number - 1] != 543); |
| 5481 | |
| 5482 | ; |
| 5483 | return 0; |
| 5484 | } |
| 5485 | _ACEOF |
| 5486 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 5487 | do |
| 5488 | CC="$ac_save_CC $ac_arg" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5489 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5490 | ac_cv_prog_cc_c99=$ac_arg |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5491 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5492 | rm -f core conftest.err conftest.$ac_objext |
| 5493 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5494 | done |
| 5495 | rm -f conftest.$ac_ext |
| 5496 | CC=$ac_save_CC |
| 5497 | |
| 5498 | fi |
| 5499 | # AC_CACHE_VAL |
| 5500 | case "x$ac_cv_prog_cc_c99" in |
| 5501 | x) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5503 | $as_echo "none needed" >&6; } ;; |
| 5504 | xno) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5506 | $as_echo "unsupported" >&6; } ;; |
| 5507 | *) |
| 5508 | CC="$CC $ac_cv_prog_cc_c99" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5509 | { $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] | 5510 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 5511 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5512 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5513 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5514 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5515 | { $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] | 5516 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5517 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5518 | $as_echo_n "(cached) " >&6 |
| 5519 | else |
| 5520 | ac_cv_prog_cc_c89=no |
| 5521 | ac_save_CC=$CC |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5523 | /* end confdefs.h. */ |
| 5524 | #include <stdarg.h> |
| 5525 | #include <stdio.h> |
| 5526 | #include <sys/types.h> |
| 5527 | #include <sys/stat.h> |
| 5528 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5529 | struct buf { int x; }; |
| 5530 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5531 | static char *e (p, i) |
| 5532 | char **p; |
| 5533 | int i; |
| 5534 | { |
| 5535 | return p[i]; |
| 5536 | } |
| 5537 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5538 | { |
| 5539 | char *s; |
| 5540 | va_list v; |
| 5541 | va_start (v,p); |
| 5542 | s = g (p, va_arg (v,int)); |
| 5543 | va_end (v); |
| 5544 | return s; |
| 5545 | } |
| 5546 | |
| 5547 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5548 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5549 | These don't provoke an error unfortunately, instead are silently treated |
| 5550 | as 'x'. The following induces an error, until -std is added to get |
| 5551 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5552 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5553 | that's true only with -std. */ |
| 5554 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5555 | |
| 5556 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5557 | inside strings and character constants. */ |
| 5558 | #define FOO(x) 'x' |
| 5559 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5560 | |
| 5561 | int test (int i, double x); |
| 5562 | struct s1 {int (*f) (int a);}; |
| 5563 | struct s2 {int (*f) (double a);}; |
| 5564 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5565 | int argc; |
| 5566 | char **argv; |
| 5567 | int |
| 5568 | main () |
| 5569 | { |
| 5570 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5571 | ; |
| 5572 | return 0; |
| 5573 | } |
| 5574 | _ACEOF |
| 5575 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5576 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5577 | do |
| 5578 | CC="$ac_save_CC $ac_arg" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5579 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5580 | ac_cv_prog_cc_c89=$ac_arg |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5581 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5582 | rm -f core conftest.err conftest.$ac_objext |
| 5583 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5584 | done |
| 5585 | rm -f conftest.$ac_ext |
| 5586 | CC=$ac_save_CC |
| 5587 | |
| 5588 | fi |
| 5589 | # AC_CACHE_VAL |
| 5590 | case "x$ac_cv_prog_cc_c89" in |
| 5591 | x) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5593 | $as_echo "none needed" >&6; } ;; |
| 5594 | xno) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5596 | $as_echo "unsupported" >&6; } ;; |
| 5597 | *) |
| 5598 | CC="$CC $ac_cv_prog_cc_c89" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5599 | { $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] | 5600 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5601 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5602 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5603 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5604 | else |
| 5605 | ac_cv_prog_cc_stdc=no |
| 5606 | fi |
| 5607 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5608 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5609 | ;; |
| 5610 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5611 | { $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] | 5612 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5613 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5614 | $as_echo_n "(cached) " >&6 |
| 5615 | fi |
| 5616 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5617 | case $ac_cv_prog_cc_stdc in #( |
| 5618 | no) : |
| 5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5620 | $as_echo "unsupported" >&6; } ;; #( |
| 5621 | '') : |
| 5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5623 | $as_echo "none needed" >&6; } ;; #( |
| 5624 | *) : |
| 5625 | { $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] | 5626 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 5627 | esac |
| 5628 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5629 | ac_ext=c |
| 5630 | ac_cpp='$CPP $CPPFLAGS' |
| 5631 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5632 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5633 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5634 | { $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] | 5635 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5636 | # On Suns, sometimes $CPP names a directory. |
| 5637 | if test -n "$CPP" && test -d "$CPP"; then |
| 5638 | CPP= |
| 5639 | fi |
| 5640 | if test -z "$CPP"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5641 | if test "${ac_cv_prog_CPP+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5642 | $as_echo_n "(cached) " >&6 |
| 5643 | else |
| 5644 | # Double quotes because CPP needs to be expanded |
| 5645 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5646 | do |
| 5647 | ac_preproc_ok=false |
| 5648 | for ac_c_preproc_warn_flag in '' yes |
| 5649 | do |
| 5650 | # Use a header file that comes with gcc, so configuring glibc |
| 5651 | # with a fresh cross-compiler works. |
| 5652 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5653 | # <limits.h> exists even on freestanding compilers. |
| 5654 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5655 | # not just through cpp. "Syntax error" is here to catch this case. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5657 | /* end confdefs.h. */ |
| 5658 | #ifdef __STDC__ |
| 5659 | # include <limits.h> |
| 5660 | #else |
| 5661 | # include <assert.h> |
| 5662 | #endif |
| 5663 | Syntax error |
| 5664 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5665 | if ac_fn_c_try_cpp "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5666 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5667 | else |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5668 | # Broken: fails on valid input. |
| 5669 | continue |
| 5670 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5671 | rm -f conftest.err conftest.$ac_ext |
| 5672 | |
| 5673 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5674 | # can be detected and how. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5676 | /* end confdefs.h. */ |
| 5677 | #include <ac_nonexistent.h> |
| 5678 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5679 | if ac_fn_c_try_cpp "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5680 | # Broken: success on invalid input. |
| 5681 | continue |
| 5682 | else |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5683 | # Passes both tests. |
| 5684 | ac_preproc_ok=: |
| 5685 | break |
| 5686 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5687 | rm -f conftest.err conftest.$ac_ext |
| 5688 | |
| 5689 | done |
| 5690 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5691 | rm -f conftest.err conftest.$ac_ext |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5692 | if $ac_preproc_ok; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5693 | break |
| 5694 | fi |
| 5695 | |
| 5696 | done |
| 5697 | ac_cv_prog_CPP=$CPP |
| 5698 | |
| 5699 | fi |
| 5700 | CPP=$ac_cv_prog_CPP |
| 5701 | else |
| 5702 | ac_cv_prog_CPP=$CPP |
| 5703 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5705 | $as_echo "$CPP" >&6; } |
| 5706 | ac_preproc_ok=false |
| 5707 | for ac_c_preproc_warn_flag in '' yes |
| 5708 | do |
| 5709 | # Use a header file that comes with gcc, so configuring glibc |
| 5710 | # with a fresh cross-compiler works. |
| 5711 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5712 | # <limits.h> exists even on freestanding compilers. |
| 5713 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5714 | # not just through cpp. "Syntax error" is here to catch this case. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5716 | /* end confdefs.h. */ |
| 5717 | #ifdef __STDC__ |
| 5718 | # include <limits.h> |
| 5719 | #else |
| 5720 | # include <assert.h> |
| 5721 | #endif |
| 5722 | Syntax error |
| 5723 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5724 | if ac_fn_c_try_cpp "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5725 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5726 | else |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5727 | # Broken: fails on valid input. |
| 5728 | continue |
| 5729 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5730 | rm -f conftest.err conftest.$ac_ext |
| 5731 | |
| 5732 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5733 | # can be detected and how. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5734 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5735 | /* end confdefs.h. */ |
| 5736 | #include <ac_nonexistent.h> |
| 5737 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5738 | if ac_fn_c_try_cpp "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5739 | # Broken: success on invalid input. |
| 5740 | continue |
| 5741 | else |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5742 | # Passes both tests. |
| 5743 | ac_preproc_ok=: |
| 5744 | break |
| 5745 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5746 | rm -f conftest.err conftest.$ac_ext |
| 5747 | |
| 5748 | done |
| 5749 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5750 | rm -f conftest.err conftest.$ac_ext |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5751 | if $ac_preproc_ok; then : |
| 5752 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5753 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5755 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 5756 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5757 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5758 | fi |
| 5759 | |
| 5760 | ac_ext=c |
| 5761 | ac_cpp='$CPP $CPPFLAGS' |
| 5762 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5763 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5764 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5765 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 5766 | AC_PROG_LD |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5767 | |
cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 5769 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| 5770 | if test "${ac_cv_prog_cc_c99+set}" = set; then : |
| 5771 | $as_echo_n "(cached) " >&6 |
| 5772 | else |
| 5773 | ac_cv_prog_cc_c99=no |
| 5774 | ac_save_CC=$CC |
| 5775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5776 | /* end confdefs.h. */ |
| 5777 | #include <stdarg.h> |
| 5778 | #include <stdbool.h> |
| 5779 | #include <stdlib.h> |
| 5780 | #include <wchar.h> |
| 5781 | #include <stdio.h> |
| 5782 | |
| 5783 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 5784 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 5785 | #define showlist(...) puts (#__VA_ARGS__) |
| 5786 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 5787 | static void |
| 5788 | test_varargs_macros (void) |
| 5789 | { |
| 5790 | int x = 1234; |
| 5791 | int y = 5678; |
| 5792 | debug ("Flag"); |
| 5793 | debug ("X = %d\n", x); |
| 5794 | showlist (The first, second, and third items.); |
| 5795 | report (x>y, "x is %d but y is %d", x, y); |
| 5796 | } |
| 5797 | |
| 5798 | // Check long long types. |
| 5799 | #define BIG64 18446744073709551615ull |
| 5800 | #define BIG32 4294967295ul |
| 5801 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 5802 | #if !BIG_OK |
| 5803 | your preprocessor is broken; |
| 5804 | #endif |
| 5805 | #if BIG_OK |
| 5806 | #else |
| 5807 | your preprocessor is broken; |
| 5808 | #endif |
| 5809 | static long long int bignum = -9223372036854775807LL; |
| 5810 | static unsigned long long int ubignum = BIG64; |
| 5811 | |
| 5812 | struct incomplete_array |
| 5813 | { |
| 5814 | int datasize; |
| 5815 | double data[]; |
| 5816 | }; |
| 5817 | |
| 5818 | struct named_init { |
| 5819 | int number; |
| 5820 | const wchar_t *name; |
| 5821 | double average; |
| 5822 | }; |
| 5823 | |
| 5824 | typedef const char *ccp; |
| 5825 | |
| 5826 | static inline int |
| 5827 | test_restrict (ccp restrict text) |
| 5828 | { |
| 5829 | // See if C++-style comments work. |
| 5830 | // Iterate through items via the restricted pointer. |
| 5831 | // Also check for declarations in for loops. |
| 5832 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 5833 | continue; |
| 5834 | return 0; |
| 5835 | } |
| 5836 | |
| 5837 | // Check varargs and va_copy. |
| 5838 | static void |
| 5839 | test_varargs (const char *format, ...) |
| 5840 | { |
| 5841 | va_list args; |
| 5842 | va_start (args, format); |
| 5843 | va_list args_copy; |
| 5844 | va_copy (args_copy, args); |
| 5845 | |
| 5846 | const char *str; |
| 5847 | int number; |
| 5848 | float fnumber; |
| 5849 | |
| 5850 | while (*format) |
| 5851 | { |
| 5852 | switch (*format++) |
| 5853 | { |
| 5854 | case 's': // string |
| 5855 | str = va_arg (args_copy, const char *); |
| 5856 | break; |
| 5857 | case 'd': // int |
| 5858 | number = va_arg (args_copy, int); |
| 5859 | break; |
| 5860 | case 'f': // float |
| 5861 | fnumber = va_arg (args_copy, double); |
| 5862 | break; |
| 5863 | default: |
| 5864 | break; |
| 5865 | } |
| 5866 | } |
| 5867 | va_end (args_copy); |
| 5868 | va_end (args); |
| 5869 | } |
| 5870 | |
| 5871 | int |
| 5872 | main () |
| 5873 | { |
| 5874 | |
| 5875 | // Check bool. |
| 5876 | _Bool success = false; |
| 5877 | |
| 5878 | // Check restrict. |
| 5879 | if (test_restrict ("String literal") == 0) |
| 5880 | success = true; |
| 5881 | char *restrict newvar = "Another string"; |
| 5882 | |
| 5883 | // Check varargs. |
| 5884 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 5885 | test_varargs_macros (); |
| 5886 | |
| 5887 | // Check flexible array members. |
| 5888 | struct incomplete_array *ia = |
| 5889 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 5890 | ia->datasize = 10; |
| 5891 | for (int i = 0; i < ia->datasize; ++i) |
| 5892 | ia->data[i] = i * 1.234; |
| 5893 | |
| 5894 | // Check named initializers. |
| 5895 | struct named_init ni = { |
| 5896 | .number = 34, |
| 5897 | .name = L"Test wide string", |
| 5898 | .average = 543.34343, |
| 5899 | }; |
| 5900 | |
| 5901 | ni.number = 58; |
| 5902 | |
| 5903 | int dynamic_array[ni.number]; |
| 5904 | dynamic_array[ni.number - 1] = 543; |
| 5905 | |
| 5906 | // work around unused variable warnings |
| 5907 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 5908 | || dynamic_array[ni.number - 1] != 543); |
| 5909 | |
| 5910 | ; |
| 5911 | return 0; |
| 5912 | } |
| 5913 | _ACEOF |
| 5914 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 5915 | do |
| 5916 | CC="$ac_save_CC $ac_arg" |
| 5917 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5918 | ac_cv_prog_cc_c99=$ac_arg |
| 5919 | fi |
| 5920 | rm -f core conftest.err conftest.$ac_objext |
| 5921 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5922 | done |
| 5923 | rm -f conftest.$ac_ext |
| 5924 | CC=$ac_save_CC |
| 5925 | |
| 5926 | fi |
| 5927 | # AC_CACHE_VAL |
| 5928 | case "x$ac_cv_prog_cc_c99" in |
| 5929 | x) |
| 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5931 | $as_echo "none needed" >&6; } ;; |
| 5932 | xno) |
| 5933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5934 | $as_echo "unsupported" >&6; } ;; |
| 5935 | *) |
| 5936 | CC="$CC $ac_cv_prog_cc_c99" |
| 5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 5938 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 5939 | esac |
| 5940 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 5941 | |
| 5942 | fi |
| 5943 | |
| 5944 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 5945 | AM_PROG_CC_C_O |
| 5946 | AX_CFLAGS_WARN_ALL |
| 5947 | # Find a good install program. We prefer a C program (faster), |
| 5948 | # so one script is as good as another. But avoid the broken or |
| 5949 | # incompatible versions: |
| 5950 | # SysV /etc/install, /usr/sbin/install |
| 5951 | # SunOS /usr/etc/install |
| 5952 | # IRIX /sbin/install |
| 5953 | # AIX /bin/install |
| 5954 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 5955 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5956 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5957 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5958 | # OS/2's system install, which has a completely different semantic |
| 5959 | # ./install, which can be erroneously created by make from ./install.sh. |
| 5960 | # Reject install programs that cannot install multiple files. |
| 5961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 5962 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 5963 | if test -z "$INSTALL"; then |
| 5964 | if test "${ac_cv_path_install+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5965 | $as_echo_n "(cached) " >&6 |
| 5966 | else |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 5967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5968 | for as_dir in $PATH |
| 5969 | do |
| 5970 | IFS=$as_save_IFS |
| 5971 | test -z "$as_dir" && as_dir=. |
| 5972 | # Account for people who put trailing slashes in PATH elements. |
| 5973 | case $as_dir/ in #(( |
| 5974 | ./ | .// | /[cC]/* | \ |
| 5975 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 5976 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 5977 | /usr/ucb/* ) ;; |
| 5978 | *) |
| 5979 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5980 | # Don't use installbsd from OSF since it installs stuff as root |
| 5981 | # by default. |
| 5982 | for ac_prog in ginstall scoinst install; do |
| 5983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5984 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 5985 | if test $ac_prog = install && |
| 5986 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5987 | # AIX install. It has an incompatible calling convention. |
| 5988 | : |
| 5989 | elif test $ac_prog = install && |
| 5990 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5991 | # program-specific install script used by HP pwplus--don't use. |
| 5992 | : |
| 5993 | else |
| 5994 | rm -rf conftest.one conftest.two conftest.dir |
| 5995 | echo one > conftest.one |
| 5996 | echo two > conftest.two |
| 5997 | mkdir conftest.dir |
| 5998 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5999 | test -s conftest.one && test -s conftest.two && |
| 6000 | test -s conftest.dir/conftest.one && |
| 6001 | test -s conftest.dir/conftest.two |
| 6002 | then |
| 6003 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 6004 | break 3 |
| 6005 | fi |
| 6006 | fi |
| 6007 | fi |
| 6008 | done |
| 6009 | done |
| 6010 | ;; |
| 6011 | esac |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6012 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6013 | done |
| 6014 | IFS=$as_save_IFS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6015 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6016 | rm -rf conftest.one conftest.two conftest.dir |
| 6017 | |
| 6018 | fi |
| 6019 | if test "${ac_cv_path_install+set}" = set; then |
| 6020 | INSTALL=$ac_cv_path_install |
| 6021 | else |
| 6022 | # As a last resort, use the slow shell script. Don't cache a |
| 6023 | # value for INSTALL within a source directory, because that will |
| 6024 | # break other packages using the cache if that directory is |
| 6025 | # removed, or if the value is a relative name. |
| 6026 | INSTALL=$ac_install_sh |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6027 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6028 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 6030 | $as_echo "$INSTALL" >&6; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6031 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6032 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 6033 | # It thinks the first close brace ends the variable substitution. |
| 6034 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6035 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6036 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6037 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6038 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6039 | |
| 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 6041 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6042 | set x ${MAKE-make} |
| 6043 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 6044 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6045 | $as_echo_n "(cached) " >&6 |
| 6046 | else |
| 6047 | cat >conftest.make <<\_ACEOF |
| 6048 | SHELL = /bin/sh |
| 6049 | all: |
| 6050 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 6051 | _ACEOF |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 6052 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6053 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6054 | *@@@%%%=?*=@@@%%%*) |
| 6055 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6056 | *) |
| 6057 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6058 | esac |
| 6059 | rm -f conftest.make |
| 6060 | fi |
| 6061 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6063 | $as_echo "yes" >&6; } |
| 6064 | SET_MAKE= |
| 6065 | else |
| 6066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6067 | $as_echo "no" >&6; } |
| 6068 | SET_MAKE="MAKE=${MAKE-make}" |
| 6069 | fi |
| 6070 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6072 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6073 | LN_S=$as_ln_s |
| 6074 | if test "$LN_S" = "ln -s"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6076 | $as_echo "yes" >&6; } |
| 6077 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6079 | $as_echo "no, using $LN_S" >&6; } |
| 6080 | fi |
| 6081 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6082 | AM_WITH_DMALLOC |
| 6083 | AX_C___ATTRIBUTE__ |
| 6084 | PKG_PROG_PKG_CONFIG |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6085 | |
| 6086 | # |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6087 | # Enable run-time checking. |
| 6088 | # |
| 6089 | # Check whether --enable-bounds-checking was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6090 | if test "${enable_bounds_checking+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6091 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 6092 | else |
| 6093 | enable_bounds_checking='no' |
| 6094 | fi |
| 6095 | |
| 6096 | |
| 6097 | if test "$enable_bounds_checking" = yes; then |
| 6098 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6099 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6100 | |
| 6101 | fi |
| 6102 | |
| 6103 | # |
| 6104 | # Tests for Windows |
| 6105 | # |
| 6106 | |
| 6107 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6108 | AX_LANG_COMPILER_MS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6109 | |
| 6110 | GDI32_LIBS='' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6111 | native_win32_build='no' |
| 6112 | cygwin_build='no' |
| 6113 | case "${host_os}" in |
| 6114 | cygwin* ) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6115 | cygwin_build='yes' |
| 6116 | GDI32_LIBS='-lgdi32' |
| 6117 | ;; |
| 6118 | mingw* ) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6119 | native_win32_build='yes' |
| 6120 | GDI32_LIBS='-lgdi32' |
| 6121 | ;; |
| 6122 | esac |
| 6123 | if test "${GDI32_LIBS}x" != 'x'; then |
| 6124 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6125 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6126 | |
| 6127 | fi |
| 6128 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6129 | AM_CONDITIONAL(WINGDI32_DELEGATE, test "${GDI32_LIBS}x" != 'x' ) |
| 6130 | AM_CONDITIONAL(WIN32_NATIVE_BUILD, test "${native_win32_build}" = 'yes' ) |
| 6131 | AM_CONDITIONAL(CYGWIN_BUILD, test "${cygwin_build}" = 'yes' ) |
| 6132 | AM_CONDITIONAL(USING_CL, test "x${CC}" = 'xcl.exe' ) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6133 | |
| 6134 | WinPathScript="${srcdirfull}/winpath.sh" |
| 6135 | |
| 6136 | |
| 6137 | # |
| 6138 | # Compiler flags tweaks |
| 6139 | # |
| 6140 | if test "${GCC}" != "yes"; then |
| 6141 | case "${host}" in |
| 6142 | *-*-hpux* ) |
| 6143 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 6144 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 6145 | if test -n "${CXXFLAGS}"; then |
| 6146 | CXXFLAGS='-AA' |
| 6147 | else |
| 6148 | CXXFLAGS="${CXXFLAGS} -AA" |
| 6149 | fi |
| 6150 | ;; |
| 6151 | *-dec-osf5.* ) |
| 6152 | # Compaq alphaev68-dec-osf5.1 compiler |
| 6153 | if test -n "${CXXFLAGS}"; then |
| 6154 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 6155 | else |
| 6156 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 6157 | fi |
| 6158 | esac |
| 6159 | fi |
| 6160 | |
| 6161 | # Check for lazy-loading. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6163 | $as_echo_n "checking for linker lazyload option... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6164 | if test "${im_cv_ld_lazyload+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6165 | $as_echo_n "(cached) " >&6 |
| 6166 | else |
| 6167 | |
| 6168 | im_cv_ld_lazyload='none' |
| 6169 | case "${host}" in |
| 6170 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 6171 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 6172 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 6173 | fi |
| 6174 | ;; |
| 6175 | esac |
| 6176 | |
| 6177 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6179 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 6180 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 6181 | if test -z "${LDFLAGS}" ; then |
| 6182 | LDFLAGS="${im_cv_ld_lazyload}" |
| 6183 | else |
| 6184 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 6185 | fi |
| 6186 | fi |
| 6187 | |
| 6188 | case "$host" in |
| 6189 | *darwin* | *-macos10*) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6190 | # Check whether --enable-osx-universal-binary was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6191 | if test "${enable_osx_universal_binary+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6192 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 6193 | else |
| 6194 | build_osxuniversal=no |
| 6195 | fi |
| 6196 | |
| 6197 | |
| 6198 | if test "${build_osxuniversal}" != no ; then |
| 6199 | if test "$enable_dependency_tracking" != no ; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 6200 | as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6201 | Please re-run configure with these options: |
| 6202 | --disable-dependency-tracking --enable-osx-universal-binary |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6203 | " "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6204 | fi |
| 6205 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 6206 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 6207 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 6208 | fi |
| 6209 | ;; |
| 6210 | esac |
| 6211 | |
| 6212 | # Enable support for threads |
| 6213 | |
| 6214 | # Check whether --with-threads was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6215 | if test "${with_threads+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6216 | withval=$with_threads; with_threads=$withval |
| 6217 | else |
| 6218 | with_threads='yes' |
| 6219 | fi |
| 6220 | |
| 6221 | |
| 6222 | have_threads=no |
| 6223 | if test "$with_threads" != 'no'; then |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6224 | AX_PTHREAD() |
cristy | 7acf8fb | 2010-09-23 19:58:53 +0000 | [diff] [blame] | 6225 | if test "$ax_pthread_ok" = yes; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6226 | have_threads=yes |
| 6227 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 6228 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 6229 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 6230 | if test "$CC" != "$PTHREAD_CC"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6231 | { $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] | 6232 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 6233 | CC="$PTHREAD_CC" |
| 6234 | fi |
cristy | b9de14a | 2010-09-23 16:02:17 +0000 | [diff] [blame] | 6235 | if test "$CXX" != "$PTHREAD_CXX"; then |
| 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5 |
| 6237 | $as_echo "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;} |
| 6238 | CXX="$PTHREAD_CXX" |
| 6239 | fi |
cristy | 55bf91c | 2010-09-24 00:29:41 +0000 | [diff] [blame] | 6240 | |
| 6241 | $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h |
| 6242 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6243 | fi |
| 6244 | fi |
| 6245 | |
| 6246 | # Enable support for OpenMP |
| 6247 | if test "$have_threads" != 'yes'; then |
| 6248 | ac_cv_prog_c_openmp=unsupported |
| 6249 | fi |
| 6250 | |
| 6251 | OPENMP_CFLAGS= |
| 6252 | # Check whether --enable-openmp was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6253 | if test "${enable_openmp+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6254 | enableval=$enable_openmp; |
| 6255 | fi |
| 6256 | |
| 6257 | if test "$enable_openmp" != no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6258 | { $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] | 6259 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6260 | if test "${ac_cv_prog_c_openmp+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6261 | $as_echo_n "(cached) " >&6 |
| 6262 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6264 | /* end confdefs.h. */ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6265 | |
| 6266 | #ifndef _OPENMP |
| 6267 | choke me |
| 6268 | #endif |
| 6269 | #include <omp.h> |
| 6270 | int main () { return omp_get_num_threads (); } |
| 6271 | |
| 6272 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6273 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6274 | ac_cv_prog_c_openmp='none needed' |
| 6275 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6276 | ac_cv_prog_c_openmp='unsupported' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6277 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 6278 | ac_save_CFLAGS=$CFLAGS |
| 6279 | CFLAGS="$CFLAGS $ac_option" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6281 | /* end confdefs.h. */ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6282 | |
| 6283 | #ifndef _OPENMP |
| 6284 | choke me |
| 6285 | #endif |
| 6286 | #include <omp.h> |
| 6287 | int main () { return omp_get_num_threads (); } |
| 6288 | |
| 6289 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6290 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6291 | ac_cv_prog_c_openmp=$ac_option |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6292 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6293 | rm -f core conftest.err conftest.$ac_objext \ |
| 6294 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6295 | CFLAGS=$ac_save_CFLAGS |
| 6296 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 6297 | break |
| 6298 | fi |
| 6299 | done |
| 6300 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6301 | rm -f core conftest.err conftest.$ac_objext \ |
| 6302 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6303 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6304 | { $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] | 6305 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 6306 | case $ac_cv_prog_c_openmp in #( |
| 6307 | "none needed" | unsupported) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6308 | ;; #( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6309 | *) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6310 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6311 | esac |
| 6312 | fi |
| 6313 | |
| 6314 | |
| 6315 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 6316 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 6317 | |
cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 6318 | if test "$enable_openmp" != no; then |
| 6319 | if test "$ac_cv_prog_c_openmp" != 'unsupported'; then |
| 6320 | MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" |
| 6321 | fi |
| 6322 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6323 | |
cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 6324 | # Enable support for OpenCL |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6325 | AX_OPENCL(C) |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 6326 | CFLAGS="$CL_CFLAGS $CFLAGS" |
| 6327 | LIBS="$CL_LIBS $LIBS" |
cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 6328 | |
cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 6329 | if test "$enable_opencl" != no; then |
| 6330 | if test "_OPENCL" = '1'; then |
| 6331 | MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" |
| 6332 | fi |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 6333 | fi |
cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 6334 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6335 | ######## |
| 6336 | # |
| 6337 | # Check for large file support |
| 6338 | # |
| 6339 | ######## |
| 6340 | # Check whether --enable-largefile was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6341 | if test "${enable_largefile+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6342 | enableval=$enable_largefile; |
| 6343 | fi |
| 6344 | |
| 6345 | if test "$enable_largefile" != no; then |
| 6346 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6347 | { $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] | 6348 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6349 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6350 | $as_echo_n "(cached) " >&6 |
| 6351 | else |
| 6352 | ac_cv_sys_largefile_CC=no |
| 6353 | if test "$GCC" != yes; then |
| 6354 | ac_save_CC=$CC |
| 6355 | while :; do |
| 6356 | # IRIX 6.2 and later do not support large files by default, |
| 6357 | # so use the C compiler's -n32 option if that helps. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6359 | /* end confdefs.h. */ |
| 6360 | #include <sys/types.h> |
| 6361 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6362 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6363 | since some C++ compilers masquerading as C compilers |
| 6364 | incorrectly reject 9223372036854775807. */ |
| 6365 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6366 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6367 | && LARGE_OFF_T % 2147483647 == 1) |
| 6368 | ? 1 : -1]; |
| 6369 | int |
| 6370 | main () |
| 6371 | { |
| 6372 | |
| 6373 | ; |
| 6374 | return 0; |
| 6375 | } |
| 6376 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6377 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6378 | break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6379 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6380 | rm -f core conftest.err conftest.$ac_objext |
| 6381 | CC="$CC -n32" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6382 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6383 | ac_cv_sys_largefile_CC=' -n32'; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6384 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6385 | rm -f core conftest.err conftest.$ac_objext |
| 6386 | break |
| 6387 | done |
| 6388 | CC=$ac_save_CC |
| 6389 | rm -f conftest.$ac_ext |
| 6390 | fi |
| 6391 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6392 | { $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] | 6393 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 6394 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 6395 | CC=$CC$ac_cv_sys_largefile_CC |
| 6396 | fi |
| 6397 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6398 | { $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] | 6399 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6400 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6401 | $as_echo_n "(cached) " >&6 |
| 6402 | else |
| 6403 | while :; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6405 | /* end confdefs.h. */ |
| 6406 | #include <sys/types.h> |
| 6407 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6408 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6409 | since some C++ compilers masquerading as C compilers |
| 6410 | incorrectly reject 9223372036854775807. */ |
| 6411 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6412 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6413 | && LARGE_OFF_T % 2147483647 == 1) |
| 6414 | ? 1 : -1]; |
| 6415 | int |
| 6416 | main () |
| 6417 | { |
| 6418 | |
| 6419 | ; |
| 6420 | return 0; |
| 6421 | } |
| 6422 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6423 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6424 | ac_cv_sys_file_offset_bits=no; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6425 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6428 | /* end confdefs.h. */ |
| 6429 | #define _FILE_OFFSET_BITS 64 |
| 6430 | #include <sys/types.h> |
| 6431 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6432 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6433 | since some C++ compilers masquerading as C compilers |
| 6434 | incorrectly reject 9223372036854775807. */ |
| 6435 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6436 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6437 | && LARGE_OFF_T % 2147483647 == 1) |
| 6438 | ? 1 : -1]; |
| 6439 | int |
| 6440 | main () |
| 6441 | { |
| 6442 | |
| 6443 | ; |
| 6444 | return 0; |
| 6445 | } |
| 6446 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6447 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6448 | ac_cv_sys_file_offset_bits=64; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6449 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6451 | ac_cv_sys_file_offset_bits=unknown |
| 6452 | break |
| 6453 | done |
| 6454 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6455 | { $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] | 6456 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 6457 | case $ac_cv_sys_file_offset_bits in #( |
| 6458 | no | unknown) ;; |
| 6459 | *) |
| 6460 | cat >>confdefs.h <<_ACEOF |
| 6461 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 6462 | _ACEOF |
| 6463 | ;; |
| 6464 | esac |
| 6465 | rm -rf conftest* |
| 6466 | if test $ac_cv_sys_file_offset_bits = unknown; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6467 | { $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] | 6468 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6469 | if test "${ac_cv_sys_large_files+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6470 | $as_echo_n "(cached) " >&6 |
| 6471 | else |
| 6472 | while :; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6474 | /* end confdefs.h. */ |
| 6475 | #include <sys/types.h> |
| 6476 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6477 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6478 | since some C++ compilers masquerading as C compilers |
| 6479 | incorrectly reject 9223372036854775807. */ |
| 6480 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6481 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6482 | && LARGE_OFF_T % 2147483647 == 1) |
| 6483 | ? 1 : -1]; |
| 6484 | int |
| 6485 | main () |
| 6486 | { |
| 6487 | |
| 6488 | ; |
| 6489 | return 0; |
| 6490 | } |
| 6491 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6492 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6493 | ac_cv_sys_large_files=no; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6494 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6497 | /* end confdefs.h. */ |
| 6498 | #define _LARGE_FILES 1 |
| 6499 | #include <sys/types.h> |
| 6500 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6501 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6502 | since some C++ compilers masquerading as C compilers |
| 6503 | incorrectly reject 9223372036854775807. */ |
| 6504 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6505 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6506 | && LARGE_OFF_T % 2147483647 == 1) |
| 6507 | ? 1 : -1]; |
| 6508 | int |
| 6509 | main () |
| 6510 | { |
| 6511 | |
| 6512 | ; |
| 6513 | return 0; |
| 6514 | } |
| 6515 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6516 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6517 | ac_cv_sys_large_files=1; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6518 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6520 | ac_cv_sys_large_files=unknown |
| 6521 | break |
| 6522 | done |
| 6523 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6524 | { $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] | 6525 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 6526 | case $ac_cv_sys_large_files in #( |
| 6527 | no | unknown) ;; |
| 6528 | *) |
| 6529 | cat >>confdefs.h <<_ACEOF |
| 6530 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 6531 | _ACEOF |
| 6532 | ;; |
| 6533 | esac |
| 6534 | rm -rf conftest* |
| 6535 | fi |
| 6536 | fi |
| 6537 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6538 | { $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] | 6539 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6540 | if test "${ac_cv_sys_largefile_source+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6541 | $as_echo_n "(cached) " >&6 |
| 6542 | else |
| 6543 | while :; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6545 | /* end confdefs.h. */ |
| 6546 | #include <sys/types.h> /* for off_t */ |
| 6547 | #include <stdio.h> |
| 6548 | int |
| 6549 | main () |
| 6550 | { |
| 6551 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 6552 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 6553 | ; |
| 6554 | return 0; |
| 6555 | } |
| 6556 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6557 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6558 | ac_cv_sys_largefile_source=no; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6559 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6560 | rm -f core conftest.err conftest.$ac_objext \ |
| 6561 | conftest$ac_exeext conftest.$ac_ext |
| 6562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6563 | /* end confdefs.h. */ |
| 6564 | #define _LARGEFILE_SOURCE 1 |
| 6565 | #include <sys/types.h> /* for off_t */ |
| 6566 | #include <stdio.h> |
| 6567 | int |
| 6568 | main () |
| 6569 | { |
| 6570 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 6571 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 6572 | ; |
| 6573 | return 0; |
| 6574 | } |
| 6575 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6576 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6577 | ac_cv_sys_largefile_source=1; break |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6578 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6579 | rm -f core conftest.err conftest.$ac_objext \ |
| 6580 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6581 | ac_cv_sys_largefile_source=unknown |
| 6582 | break |
| 6583 | done |
| 6584 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6585 | { $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] | 6586 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 6587 | case $ac_cv_sys_largefile_source in #( |
| 6588 | no | unknown) ;; |
| 6589 | *) |
| 6590 | cat >>confdefs.h <<_ACEOF |
| 6591 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 6592 | _ACEOF |
| 6593 | ;; |
| 6594 | esac |
| 6595 | rm -rf conftest* |
| 6596 | |
| 6597 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 6598 | # in glibc 2.1.3, but that breaks too many other things. |
| 6599 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 6600 | if test $ac_cv_sys_largefile_source != unknown; then |
| 6601 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6602 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6603 | |
| 6604 | fi |
| 6605 | |
| 6606 | LFS_CPPFLAGS='' |
| 6607 | if test "$enable_largefile" != no; then |
| 6608 | if test "$ac_cv_sys_file_offset_bits" != 'no'; then |
| 6609 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 6610 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6611 | { $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] | 6612 | $as_echo_n "checking for native large file support... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6613 | if test "$cross_compiling" = yes; then : |
| 6614 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6615 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 6616 | as_fn_error "cannot run test program while cross compiling |
| 6617 | See \`config.log' for more details." "$LINENO" 5; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6618 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6620 | /* end confdefs.h. */ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6621 | #include <unistd.h> |
| 6622 | main () { |
| 6623 | exit(!(sizeof(off_t) == 8)); |
| 6624 | } |
| 6625 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6626 | if ac_fn_c_try_run "$LINENO"; then : |
| 6627 | 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] | 6628 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6630 | $as_echo "yes" >&6; } |
| 6631 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6633 | $as_echo "no" >&6; } |
| 6634 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6635 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6636 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6637 | fi |
| 6638 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6639 | fi |
| 6640 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 6641 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 6642 | fi |
| 6643 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 6644 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 6645 | fi |
| 6646 | fi |
| 6647 | |
| 6648 | |
| 6649 | # |
| 6650 | # Configure libtool & libltdl |
| 6651 | # |
| 6652 | # Configure libtool |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6653 | AC_LIBTOOL_DLOPEN |
| 6654 | LT_INIT(win32-dll) |
| 6655 | LT_LANG(C++) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6656 | |
| 6657 | |
| 6658 | # Configure libltdl |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6659 | LT_CONFIG_LTDL_DIR(ltdl) |
| 6660 | LTDL_INIT(convenience nonrecursive) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6661 | |
| 6662 | # Check to see if building shared libraries |
| 6663 | libtool_build_shared_libs='no' |
| 6664 | if test "$enable_shared" = 'yes'; then |
| 6665 | libtool_build_shared_libs='yes' |
| 6666 | fi |
| 6667 | |
| 6668 | # Check to see if building static libraries |
| 6669 | libtool_build_static_libs='no' |
| 6670 | if test "$enable_static" = 'yes'; then |
| 6671 | libtool_build_static_libs='yes' |
| 6672 | fi |
| 6673 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6674 | AM_CONDITIONAL(WITH_SHARED_LIBS, test "${libtool_build_shared_libs}" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6675 | # |
| 6676 | # Enable support for building loadable modules |
| 6677 | # |
| 6678 | |
| 6679 | # Check whether --with-modules was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6680 | if test "${with_modules+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6681 | withval=$with_modules; with_modules=$withval |
| 6682 | else |
cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 6683 | with_modules='no' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6684 | fi |
| 6685 | |
| 6686 | |
| 6687 | # Only allow building loadable modules if we are building shared libraries |
| 6688 | if test "$with_modules" != 'no' ; then |
| 6689 | if test "$libtool_build_shared_libs" = 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6690 | { $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] | 6691 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| 6692 | with_modules='no' |
| 6693 | fi |
| 6694 | fi |
| 6695 | if test "$with_modules" != 'no'; then |
| 6696 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6697 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6698 | |
| 6699 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6700 | AM_CONDITIONAL(WITH_MODULES, test "$with_modules" != 'no') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6701 | |
| 6702 | # Enable building/use of libltdl if we are building shared libraries regardless |
| 6703 | # of whether modules are built or not. |
| 6704 | with_ltdl='no' |
| 6705 | if test "$libtool_build_shared_libs" != 'no'; then |
| 6706 | with_ltdl='yes' |
| 6707 | fi |
| 6708 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6709 | AM_CONDITIONAL(WITH_LTDL, test "$with_ltdl" != 'no') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6710 | if test "$with_ltdl" != 'no'; then |
| 6711 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6712 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6713 | |
| 6714 | |
| 6715 | # Set DLLDFLAGS |
| 6716 | if test X"$enable_shared" = Xyes; then |
| 6717 | DLLDFLAGS=-export-dynamic |
| 6718 | |
| 6719 | fi |
| 6720 | fi |
| 6721 | |
| 6722 | # Enable build using delegate libraries built in subdirectories rather than installed |
cristy | 5850e4b | 2010-01-08 14:28:24 +0000 | [diff] [blame] | 6723 | # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6724 | # Check whether --enable-delegate-build was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6725 | if test "${enable_delegate_build+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6726 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 6727 | else |
| 6728 | enable_delegate_build='no' |
| 6729 | fi |
| 6730 | |
| 6731 | |
| 6732 | # Check whether --enable-deprecated was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6733 | if test "${enable_deprecated+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6734 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 6735 | else |
| 6736 | enable_deprecated='no' |
| 6737 | fi |
| 6738 | |
| 6739 | |
| 6740 | if test "$enable_deprecated" = 'yes'; then |
| 6741 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6742 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6743 | |
| 6744 | else |
| 6745 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 6746 | fi |
| 6747 | |
| 6748 | # Build a version of ImageMagick which operates uninstalled. |
| 6749 | # Used to build distributions located via MAGICK_HOME / executable path |
| 6750 | # Check whether --enable-installed was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6751 | if test "${enable_installed+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6752 | enableval=$enable_installed; enable_installed=$enableval |
| 6753 | else |
| 6754 | enable_installed='yes' |
| 6755 | fi |
| 6756 | |
| 6757 | |
| 6758 | if test "$enable_installed" = 'yes'; then |
| 6759 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6760 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6761 | |
| 6762 | else |
| 6763 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 6764 | fi |
| 6765 | |
| 6766 | # Permit enciphering and deciphering image pixels. |
| 6767 | # Check whether --enable-cipher was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6768 | if test "${enable_cipher+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6769 | enableval=$enable_cipher; enable_cipher=$enableval |
| 6770 | else |
| 6771 | enable_cipher='yes' |
| 6772 | fi |
| 6773 | |
| 6774 | |
| 6775 | if test "$enable_cipher" = 'yes'; then |
| 6776 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6777 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6778 | |
| 6779 | fi |
| 6780 | |
| 6781 | # Build an embeddable version of ImageMagick. |
| 6782 | # Check whether --enable-embeddable was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6783 | if test "${enable_embeddable+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6784 | enableval=$enable_embeddable; enable_embeddable=$enableval |
| 6785 | else |
| 6786 | enable_embeddable='no' |
| 6787 | fi |
| 6788 | |
| 6789 | |
| 6790 | if test "$enable_embeddable" = 'yes'; then |
| 6791 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6792 | $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6793 | |
| 6794 | fi |
| 6795 | |
| 6796 | # Build a high dynamic range version of ImageMagick. |
| 6797 | # Check whether --enable-hdri was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6798 | if test "${enable_hdri+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6799 | enableval=$enable_hdri; enable_hdri=$enableval |
| 6800 | else |
| 6801 | enable_hdri='no' |
| 6802 | fi |
| 6803 | |
| 6804 | |
| 6805 | MAGICK_HDRI="" |
| 6806 | if test "$enable_hdri" = 'yes'; then |
| 6807 | MAGICK_HDRI="HDRI" |
| 6808 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6809 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6810 | |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 6811 | MAGICK_FEATURES="HDRI $MAGICK_FEATURES" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6812 | fi |
| 6813 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6814 | # Build a version of ImageMagick with assert statements. |
| 6815 | # Check whether --enable-assert was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6816 | if test "${enable_assert+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6817 | enableval=$enable_assert; enable_assert=$enableval |
| 6818 | else |
| 6819 | enable_assert='yes' |
| 6820 | fi |
| 6821 | |
| 6822 | |
| 6823 | if test "$enable_assert" = 'no'; then |
| 6824 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6825 | $as_echo "#define NDEBUG 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6826 | |
| 6827 | fi |
| 6828 | |
| 6829 | # Add configure option --enable-maintainer-mode which enables dependency |
| 6830 | # checking and generation useful to package maintainers. This is made an |
| 6831 | # option to avoid confusing end users. |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 6832 | AM_MAINTAINER_MODE |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6833 | |
| 6834 | |
| 6835 | # Enable ccmalloc memory debugging support |
| 6836 | # Check whether --enable-ccmalloc was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6837 | if test "${enable_ccmalloc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6838 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 6839 | else |
| 6840 | enable_ccmalloc='no' |
| 6841 | fi |
| 6842 | |
| 6843 | |
| 6844 | # Enable Electric Fence memory debugging support |
| 6845 | # Check whether --enable-efence was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6846 | if test "${enable_efence+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6847 | enableval=$enable_efence; enable_efence=$enableval |
| 6848 | else |
| 6849 | enable_efence='no' |
| 6850 | fi |
| 6851 | |
| 6852 | |
| 6853 | # Enable prof-based profiling support |
| 6854 | # Check whether --enable-prof was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6855 | if test "${enable_prof+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6856 | enableval=$enable_prof; enable_prof=$enableval |
| 6857 | else |
| 6858 | enable_prof='no' |
| 6859 | fi |
| 6860 | |
| 6861 | |
| 6862 | # Enable gprof-based profiling support |
| 6863 | # Check whether --enable-gprof was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6864 | if test "${enable_gprof+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6865 | enableval=$enable_gprof; enable_gprof=$enableval |
| 6866 | else |
| 6867 | enable_gprof='no' |
| 6868 | fi |
| 6869 | |
| 6870 | |
| 6871 | # Enable gcov-based profiling support |
| 6872 | # Check whether --enable-gcov was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6873 | if test "${enable_gcov+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6874 | enableval=$enable_gcov; enable_gcov=$enableval |
| 6875 | else |
| 6876 | enable_gcov='no' |
| 6877 | fi |
| 6878 | |
| 6879 | |
| 6880 | enable_profiling='no' |
| 6881 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 6882 | enable_profiling='yes' |
| 6883 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 6884 | echo "Warning: Can not profile code using shared libraries" |
| 6885 | fi |
| 6886 | fi |
| 6887 | |
| 6888 | # Magick API method prefix |
| 6889 | |
| 6890 | # Check whether --with-method-prefix was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6891 | if test "${with_method_prefix+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6892 | withval=$with_method_prefix; with_method_prefix=$enableval |
| 6893 | else |
| 6894 | with_method_prefix='' |
| 6895 | fi |
| 6896 | |
| 6897 | |
| 6898 | if test "$with_method_prefix" != ''; then |
| 6899 | |
| 6900 | cat >>confdefs.h <<_ACEOF |
| 6901 | #define NAMESPACE_PREFIX $with_method_prefix |
| 6902 | _ACEOF |
| 6903 | |
| 6904 | fi |
| 6905 | |
| 6906 | # Number of bits in a Quantum |
| 6907 | |
| 6908 | # Check whether --with-quantum-depth was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6909 | if test "${with_quantum_depth+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6910 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 6911 | else |
| 6912 | with_quantum_depth=16 |
| 6913 | fi |
| 6914 | |
| 6915 | |
| 6916 | if test "$with_quantum_depth" != '8'; then |
| 6917 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 6918 | fi |
| 6919 | |
| 6920 | case "${with_quantum_depth}" in |
| 6921 | 8 ) ;; |
| 6922 | 16 ) ;; |
| 6923 | 32 ) ;; |
| 6924 | 64 ) ;; |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 6925 | * ) { as_fn_set_status 16 |
| 6926 | as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6927 | esac |
cristy | cdae12a | 2010-09-19 02:24:31 +0000 | [diff] [blame] | 6928 | if test "$enable_hdri" = 'yes'; then |
| 6929 | with_quantum_depth=16 |
| 6930 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6931 | QUANTUM_DEPTH="$with_quantum_depth" |
| 6932 | |
| 6933 | cat >>confdefs.h <<_ACEOF |
| 6934 | #define QUANTUM_DEPTH $QUANTUM_DEPTH |
| 6935 | _ACEOF |
| 6936 | |
| 6937 | |
| 6938 | # Set pixel cache threshold |
| 6939 | |
| 6940 | # Check whether --with-cache was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6941 | if test "${with_cache+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6942 | withval=$with_cache; with_cache=$withval |
| 6943 | else |
| 6944 | with_cache='' |
| 6945 | fi |
| 6946 | |
| 6947 | |
| 6948 | if test "$with_cache" != ''; then |
| 6949 | |
| 6950 | cat >>confdefs.h <<_ACEOF |
| 6951 | #define PixelCacheThreshold $with_cache |
| 6952 | _ACEOF |
| 6953 | |
| 6954 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 6955 | fi |
| 6956 | |
| 6957 | # Disable/Enable support for full delegate paths |
| 6958 | |
| 6959 | # Check whether --with-frozenpaths was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6960 | if test "${with_frozenpaths+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6961 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 6962 | else |
| 6963 | with_frozenpaths='no' |
| 6964 | fi |
| 6965 | |
| 6966 | |
| 6967 | # Enable build/install of Magick++ |
| 6968 | |
| 6969 | # Check whether --with-magick-plus-plus was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6970 | if test "${with_magick_plus_plus+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6971 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 6972 | else |
| 6973 | with_magick_plus_plus='yes' |
| 6974 | fi |
| 6975 | |
| 6976 | |
| 6977 | # Disable build/install of PerlMagick. |
| 6978 | |
| 6979 | # Check whether --with-perl was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6980 | if test "${with_perl+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6981 | withval=$with_perl; with_perl=$withval |
| 6982 | else |
cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 6983 | with_perl='no' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6984 | fi |
| 6985 | |
| 6986 | |
| 6987 | # Options to pass when configuring PerlMagick |
| 6988 | |
| 6989 | # Check whether --with-perl-options was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6990 | if test "${with_perl_options+set}" = set; then : |
cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 6991 | withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6992 | fi |
| 6993 | |
| 6994 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6995 | |
| 6996 | # Enable umem, object-caching memory allocation library. |
| 6997 | |
| 6998 | # Check whether --with-umem was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6999 | if test "${with_umem+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7000 | withval=$with_umem; with_umem=$withval |
| 7001 | else |
| 7002 | with_umem='no' |
| 7003 | fi |
| 7004 | |
| 7005 | if test "$with_umem" != 'yes' ; then |
| 7006 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 7007 | fi |
| 7008 | |
| 7009 | # |
| 7010 | # Specify path to shared libstdc++ if not in normal location |
| 7011 | # |
| 7012 | |
| 7013 | # Check whether --with-libstdc was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7014 | if test "${with_libstdc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7015 | withval=$with_libstdc; with_libstdc=$withval |
| 7016 | else |
| 7017 | with_libstdc='' |
| 7018 | fi |
| 7019 | |
| 7020 | |
| 7021 | if test "$with_libstdc" != ''; then |
| 7022 | if test -d "$with_libstdc"; then |
| 7023 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 7024 | fi |
| 7025 | fi |
| 7026 | |
| 7027 | |
| 7028 | # Does gcc required -traditional? |
| 7029 | if test $ac_cv_c_compiler_gnu = yes; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7031 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7032 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7033 | $as_echo_n "(cached) " >&6 |
| 7034 | else |
| 7035 | ac_pattern="Autoconf.*'x'" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7036 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7037 | /* end confdefs.h. */ |
| 7038 | #include <sgtty.h> |
| 7039 | Autoconf TIOCGETP |
| 7040 | _ACEOF |
| 7041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7042 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7043 | ac_cv_prog_gcc_traditional=yes |
| 7044 | else |
| 7045 | ac_cv_prog_gcc_traditional=no |
| 7046 | fi |
| 7047 | rm -f conftest* |
| 7048 | |
| 7049 | |
| 7050 | if test $ac_cv_prog_gcc_traditional = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7052 | /* end confdefs.h. */ |
| 7053 | #include <termio.h> |
| 7054 | Autoconf TCGETA |
| 7055 | _ACEOF |
| 7056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7057 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7058 | ac_cv_prog_gcc_traditional=yes |
| 7059 | fi |
| 7060 | rm -f conftest* |
| 7061 | |
| 7062 | fi |
| 7063 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7064 | { $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] | 7065 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 7066 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 7067 | CC="$CC -traditional" |
| 7068 | fi |
| 7069 | fi |
| 7070 | |
| 7071 | |
| 7072 | ######## |
| 7073 | # |
| 7074 | # Set defines required to build DLLs and modules using MinGW |
| 7075 | # |
| 7076 | ######## |
| 7077 | # These options are set for multi-thread DLL module build |
| 7078 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 7079 | # module: _DLL |
| 7080 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 7081 | MODULE_EXTRA_CPPFLAGS='' |
| 7082 | LIBRARY_EXTRA_CPPFLAGS='' |
| 7083 | if test "${native_win32_build}" = 'yes'; then |
| 7084 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 7085 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 7086 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 7087 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 7088 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 7089 | if test "$with_modules" = 'yes'; then |
| 7090 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 7091 | else |
| 7092 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 7093 | fi |
| 7094 | else |
| 7095 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 7096 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 7097 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 7098 | fi |
| 7099 | if test "$with_threads" = 'yes'; then |
| 7100 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 7101 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 7102 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 7103 | fi |
| 7104 | fi |
| 7105 | |
| 7106 | |
| 7107 | |
| 7108 | # Check standard headers |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7109 | { $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] | 7110 | $as_echo_n "checking for ANSI C header files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7111 | if test "${ac_cv_header_stdc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7112 | $as_echo_n "(cached) " >&6 |
| 7113 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7115 | /* end confdefs.h. */ |
| 7116 | #include <stdlib.h> |
| 7117 | #include <stdarg.h> |
| 7118 | #include <string.h> |
| 7119 | #include <float.h> |
| 7120 | |
| 7121 | int |
| 7122 | main () |
| 7123 | { |
| 7124 | |
| 7125 | ; |
| 7126 | return 0; |
| 7127 | } |
| 7128 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7129 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7130 | ac_cv_header_stdc=yes |
| 7131 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7132 | ac_cv_header_stdc=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7133 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7135 | |
| 7136 | if test $ac_cv_header_stdc = yes; then |
| 7137 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7139 | /* end confdefs.h. */ |
| 7140 | #include <string.h> |
| 7141 | |
| 7142 | _ACEOF |
| 7143 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7144 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7145 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7146 | else |
| 7147 | ac_cv_header_stdc=no |
| 7148 | fi |
| 7149 | rm -f conftest* |
| 7150 | |
| 7151 | fi |
| 7152 | |
| 7153 | if test $ac_cv_header_stdc = yes; then |
| 7154 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7156 | /* end confdefs.h. */ |
| 7157 | #include <stdlib.h> |
| 7158 | |
| 7159 | _ACEOF |
| 7160 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7161 | $EGREP "free" >/dev/null 2>&1; then : |
| 7162 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7163 | else |
| 7164 | ac_cv_header_stdc=no |
| 7165 | fi |
| 7166 | rm -f conftest* |
| 7167 | |
| 7168 | fi |
| 7169 | |
| 7170 | if test $ac_cv_header_stdc = yes; then |
| 7171 | # /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] | 7172 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7173 | : |
| 7174 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7176 | /* end confdefs.h. */ |
| 7177 | #include <ctype.h> |
| 7178 | #include <stdlib.h> |
| 7179 | #if ((' ' & 0x0FF) == 0x020) |
| 7180 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7181 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7182 | #else |
| 7183 | # define ISLOWER(c) \ |
| 7184 | (('a' <= (c) && (c) <= 'i') \ |
| 7185 | || ('j' <= (c) && (c) <= 'r') \ |
| 7186 | || ('s' <= (c) && (c) <= 'z')) |
| 7187 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7188 | #endif |
| 7189 | |
| 7190 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7191 | int |
| 7192 | main () |
| 7193 | { |
| 7194 | int i; |
| 7195 | for (i = 0; i < 256; i++) |
| 7196 | if (XOR (islower (i), ISLOWER (i)) |
| 7197 | || toupper (i) != TOUPPER (i)) |
| 7198 | return 2; |
| 7199 | return 0; |
| 7200 | } |
| 7201 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7202 | if ac_fn_c_try_run "$LINENO"; then : |
| 7203 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7204 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7205 | ac_cv_header_stdc=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7206 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7207 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7208 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7209 | fi |
| 7210 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7211 | fi |
| 7212 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7214 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7215 | if test $ac_cv_header_stdc = yes; then |
| 7216 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7217 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7218 | |
| 7219 | fi |
| 7220 | |
| 7221 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7222 | { $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] | 7223 | header files. Compilation cannot proceed. Please install the ANSI C |
| 7224 | headers and rerun this script." >&5 |
| 7225 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 7226 | header files. Compilation cannot proceed. Please install the ANSI C |
| 7227 | headers and rerun this script." >&2;}; |
| 7228 | fi |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7229 | |
| 7230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 |
| 7231 | $as_echo_n "checking whether to enable assertions... " >&6; } |
| 7232 | # Check whether --enable-assert was given. |
| 7233 | if test "${enable_assert+set}" = set; then : |
| 7234 | enableval=$enable_assert; ac_enable_assert=$enableval |
| 7235 | if test "x$enableval" = xno; then : |
| 7236 | |
| 7237 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| 7238 | |
| 7239 | elif test "x$enableval" != xyes; then : |
| 7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 |
| 7241 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} |
| 7242 | ac_enable_assert=yes |
| 7243 | fi |
| 7244 | else |
| 7245 | ac_enable_assert=yes |
| 7246 | fi |
| 7247 | |
| 7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 |
| 7249 | $as_echo "$ac_enable_assert" >&6; } |
| 7250 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7251 | ac_header_dirent=no |
| 7252 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 7253 | 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] | 7254 | { $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] | 7255 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 7256 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7257 | $as_echo_n "(cached) " >&6 |
| 7258 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7260 | /* end confdefs.h. */ |
| 7261 | #include <sys/types.h> |
| 7262 | #include <$ac_hdr> |
| 7263 | |
| 7264 | int |
| 7265 | main () |
| 7266 | { |
| 7267 | if ((DIR *) 0) |
| 7268 | return 0; |
| 7269 | ; |
| 7270 | return 0; |
| 7271 | } |
| 7272 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7273 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7274 | eval "$as_ac_Header=yes" |
| 7275 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7276 | eval "$as_ac_Header=no" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7277 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7279 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7280 | eval ac_res=\$$as_ac_Header |
| 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7282 | $as_echo "$ac_res" >&6; } |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 7283 | eval as_val=\$$as_ac_Header |
| 7284 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7285 | cat >>confdefs.h <<_ACEOF |
| 7286 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 7287 | _ACEOF |
| 7288 | |
| 7289 | ac_header_dirent=$ac_hdr; break |
| 7290 | fi |
| 7291 | |
| 7292 | done |
| 7293 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 7294 | if test $ac_header_dirent = dirent.h; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7296 | $as_echo_n "checking for library containing opendir... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7297 | if test "${ac_cv_search_opendir+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7298 | $as_echo_n "(cached) " >&6 |
| 7299 | else |
| 7300 | ac_func_search_save_LIBS=$LIBS |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7302 | /* end confdefs.h. */ |
| 7303 | |
| 7304 | /* Override any GCC internal prototype to avoid an error. |
| 7305 | Use char because int might match the return type of a GCC |
| 7306 | builtin and then its argument prototype would still apply. */ |
| 7307 | #ifdef __cplusplus |
| 7308 | extern "C" |
| 7309 | #endif |
| 7310 | char opendir (); |
| 7311 | int |
| 7312 | main () |
| 7313 | { |
| 7314 | return opendir (); |
| 7315 | ; |
| 7316 | return 0; |
| 7317 | } |
| 7318 | _ACEOF |
| 7319 | for ac_lib in '' dir; do |
| 7320 | if test -z "$ac_lib"; then |
| 7321 | ac_res="none required" |
| 7322 | else |
| 7323 | ac_res=-l$ac_lib |
| 7324 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7325 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7326 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7327 | ac_cv_search_opendir=$ac_res |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7328 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7329 | rm -f core conftest.err conftest.$ac_objext \ |
| 7330 | conftest$ac_exeext |
| 7331 | if test "${ac_cv_search_opendir+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7332 | break |
| 7333 | fi |
| 7334 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7335 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 7336 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7337 | else |
| 7338 | ac_cv_search_opendir=no |
| 7339 | fi |
| 7340 | rm conftest.$ac_ext |
| 7341 | LIBS=$ac_func_search_save_LIBS |
| 7342 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7344 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 7345 | ac_res=$ac_cv_search_opendir |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7346 | if test "$ac_res" != no; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7347 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7348 | |
| 7349 | fi |
| 7350 | |
| 7351 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7353 | $as_echo_n "checking for library containing opendir... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7354 | if test "${ac_cv_search_opendir+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7355 | $as_echo_n "(cached) " >&6 |
| 7356 | else |
| 7357 | ac_func_search_save_LIBS=$LIBS |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7359 | /* end confdefs.h. */ |
| 7360 | |
| 7361 | /* Override any GCC internal prototype to avoid an error. |
| 7362 | Use char because int might match the return type of a GCC |
| 7363 | builtin and then its argument prototype would still apply. */ |
| 7364 | #ifdef __cplusplus |
| 7365 | extern "C" |
| 7366 | #endif |
| 7367 | char opendir (); |
| 7368 | int |
| 7369 | main () |
| 7370 | { |
| 7371 | return opendir (); |
| 7372 | ; |
| 7373 | return 0; |
| 7374 | } |
| 7375 | _ACEOF |
| 7376 | for ac_lib in '' x; do |
| 7377 | if test -z "$ac_lib"; then |
| 7378 | ac_res="none required" |
| 7379 | else |
| 7380 | ac_res=-l$ac_lib |
| 7381 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 7382 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7383 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7384 | ac_cv_search_opendir=$ac_res |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7385 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7386 | rm -f core conftest.err conftest.$ac_objext \ |
| 7387 | conftest$ac_exeext |
| 7388 | if test "${ac_cv_search_opendir+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7389 | break |
| 7390 | fi |
| 7391 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7392 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 7393 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7394 | else |
| 7395 | ac_cv_search_opendir=no |
| 7396 | fi |
| 7397 | rm conftest.$ac_ext |
| 7398 | LIBS=$ac_func_search_save_LIBS |
| 7399 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7401 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 7402 | ac_res=$ac_cv_search_opendir |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7403 | if test "$ac_res" != no; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7404 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 7405 | |
| 7406 | fi |
| 7407 | |
| 7408 | fi |
| 7409 | |
| 7410 | |
| 7411 | # Check additional headers |
cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7412 | 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 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7413 | do : |
| 7414 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7415 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 7416 | eval as_val=\$$as_ac_Header |
| 7417 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7418 | cat >>confdefs.h <<_ACEOF |
| 7419 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7420 | _ACEOF |
| 7421 | |
| 7422 | fi |
| 7423 | |
| 7424 | done |
| 7425 | |
| 7426 | |
| 7427 | ######## |
| 7428 | # |
| 7429 | # Checks for typedefs, structures, and compiler characteristics. |
| 7430 | # |
| 7431 | ######## |
| 7432 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7433 | { $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] | 7434 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7435 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7436 | $as_echo_n "(cached) " >&6 |
| 7437 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7439 | /* end confdefs.h. */ |
| 7440 | |
| 7441 | #include <stdbool.h> |
| 7442 | #ifndef bool |
| 7443 | "error: bool is not defined" |
| 7444 | #endif |
| 7445 | #ifndef false |
| 7446 | "error: false is not defined" |
| 7447 | #endif |
| 7448 | #if false |
| 7449 | "error: false is not 0" |
| 7450 | #endif |
| 7451 | #ifndef true |
| 7452 | "error: true is not defined" |
| 7453 | #endif |
| 7454 | #if true != 1 |
| 7455 | "error: true is not 1" |
| 7456 | #endif |
| 7457 | #ifndef __bool_true_false_are_defined |
| 7458 | "error: __bool_true_false_are_defined is not defined" |
| 7459 | #endif |
| 7460 | |
| 7461 | struct s { _Bool s: 1; _Bool t; } s; |
| 7462 | |
| 7463 | char a[true == 1 ? 1 : -1]; |
| 7464 | char b[false == 0 ? 1 : -1]; |
| 7465 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 7466 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 7467 | bool e = &s; |
| 7468 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 7469 | char g[true]; |
| 7470 | char h[sizeof (_Bool)]; |
| 7471 | char i[sizeof s.t]; |
| 7472 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 7473 | /* The following fails for |
| 7474 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 7475 | _Bool n[m]; |
| 7476 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 7477 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 7478 | # if defined __xlc__ || defined __GNUC__ |
| 7479 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
| 7480 | reported by James Lemley on 2005-10-05; see |
| 7481 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
| 7482 | This test is not quite right, since xlc is allowed to |
| 7483 | reject this program, as the initializer for xlcbug is |
| 7484 | not one of the forms that C requires support for. |
| 7485 | However, doing the test right would require a runtime |
| 7486 | test, and that would make cross-compilation harder. |
| 7487 | Let us hope that IBM fixes the xlc bug, and also adds |
| 7488 | support for this kind of constant expression. In the |
| 7489 | meantime, this test will reject xlc, which is OK, since |
| 7490 | our stdbool.h substitute should suffice. We also test |
| 7491 | this with GCC, where it should work, to detect more |
| 7492 | quickly whether someone messes up the test in the |
| 7493 | future. */ |
| 7494 | char digs[] = "0123456789"; |
| 7495 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
| 7496 | # endif |
| 7497 | /* Catch a bug in an HP-UX C compiler. See |
| 7498 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 7499 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 7500 | */ |
| 7501 | _Bool q = true; |
| 7502 | _Bool *pq = &q; |
| 7503 | |
| 7504 | int |
| 7505 | main () |
| 7506 | { |
| 7507 | |
| 7508 | *pq |= q; |
| 7509 | *pq |= ! q; |
| 7510 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 7511 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 7512 | + !m + !n + !o + !p + !q + !pq); |
| 7513 | |
| 7514 | ; |
| 7515 | return 0; |
| 7516 | } |
| 7517 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7518 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7519 | ac_cv_header_stdbool_h=yes |
| 7520 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7521 | ac_cv_header_stdbool_h=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7522 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7524 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7525 | { $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] | 7526 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7527 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 7528 | if test "x$ac_cv_type__Bool" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7529 | |
| 7530 | cat >>confdefs.h <<_ACEOF |
| 7531 | #define HAVE__BOOL 1 |
| 7532 | _ACEOF |
| 7533 | |
| 7534 | |
| 7535 | fi |
| 7536 | |
| 7537 | if test $ac_cv_header_stdbool_h = yes; then |
| 7538 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7539 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7540 | |
| 7541 | fi |
| 7542 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7544 | $as_echo_n "checking for working volatile... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7545 | if test "${ac_cv_c_volatile+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7546 | $as_echo_n "(cached) " >&6 |
| 7547 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7549 | /* end confdefs.h. */ |
| 7550 | |
| 7551 | int |
| 7552 | main () |
| 7553 | { |
| 7554 | |
| 7555 | volatile int x; |
| 7556 | int * volatile y = (int *) 0; |
| 7557 | return !x && !y; |
| 7558 | ; |
| 7559 | return 0; |
| 7560 | } |
| 7561 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7562 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7563 | ac_cv_c_volatile=yes |
| 7564 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7565 | ac_cv_c_volatile=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7566 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7568 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7570 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 7571 | if test $ac_cv_c_volatile = no; then |
| 7572 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7573 | $as_echo "#define volatile /**/" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7574 | |
| 7575 | fi |
| 7576 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7578 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7579 | if test "${ac_cv_c_stringize+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7580 | $as_echo_n "(cached) " >&6 |
| 7581 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7583 | /* end confdefs.h. */ |
| 7584 | #define x(y) #y |
| 7585 | |
| 7586 | char *s = x(teststring); |
| 7587 | _ACEOF |
| 7588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7589 | $EGREP "#teststring" >/dev/null 2>&1; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7590 | ac_cv_c_stringize=no |
| 7591 | else |
| 7592 | ac_cv_c_stringize=yes |
| 7593 | fi |
| 7594 | rm -f conftest* |
| 7595 | |
| 7596 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7598 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 7599 | if test $ac_cv_c_stringize = yes; then |
| 7600 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7601 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7602 | |
| 7603 | fi |
| 7604 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7605 | { $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] | 7606 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7607 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7608 | $as_echo_n "(cached) " >&6 |
| 7609 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7611 | /* end confdefs.h. */ |
| 7612 | #include <sys/types.h> |
| 7613 | #include <sys/stat.h> |
| 7614 | |
| 7615 | #if defined S_ISBLK && defined S_IFDIR |
| 7616 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 7617 | #endif |
| 7618 | |
| 7619 | #if defined S_ISBLK && defined S_IFCHR |
| 7620 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 7621 | #endif |
| 7622 | |
| 7623 | #if defined S_ISLNK && defined S_IFREG |
| 7624 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 7625 | #endif |
| 7626 | |
| 7627 | #if defined S_ISSOCK && defined S_IFREG |
| 7628 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 7629 | #endif |
| 7630 | |
| 7631 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7632 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7633 | ac_cv_header_stat_broken=no |
| 7634 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7635 | ac_cv_header_stat_broken=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7636 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7638 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7639 | { $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] | 7640 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 7641 | if test $ac_cv_header_stat_broken = yes; then |
| 7642 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7643 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7644 | |
| 7645 | fi |
| 7646 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7647 | { $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] | 7648 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7649 | if test "${ac_cv_header_time+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7650 | $as_echo_n "(cached) " >&6 |
| 7651 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7653 | /* end confdefs.h. */ |
| 7654 | #include <sys/types.h> |
| 7655 | #include <sys/time.h> |
| 7656 | #include <time.h> |
| 7657 | |
| 7658 | int |
| 7659 | main () |
| 7660 | { |
| 7661 | if ((struct tm *) 0) |
| 7662 | return 0; |
| 7663 | ; |
| 7664 | return 0; |
| 7665 | } |
| 7666 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7667 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7668 | ac_cv_header_time=yes |
| 7669 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7670 | ac_cv_header_time=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7671 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7672 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7673 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7675 | $as_echo "$ac_cv_header_time" >&6; } |
| 7676 | if test $ac_cv_header_time = yes; then |
| 7677 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7678 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7679 | |
| 7680 | fi |
| 7681 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7682 | { $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] | 7683 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7684 | if test "${ac_cv_struct_tm+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7685 | $as_echo_n "(cached) " >&6 |
| 7686 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7688 | /* end confdefs.h. */ |
| 7689 | #include <sys/types.h> |
| 7690 | #include <time.h> |
| 7691 | |
| 7692 | int |
| 7693 | main () |
| 7694 | { |
| 7695 | struct tm tm; |
| 7696 | int *p = &tm.tm_sec; |
| 7697 | return !p; |
| 7698 | ; |
| 7699 | return 0; |
| 7700 | } |
| 7701 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7702 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7703 | ac_cv_struct_tm=time.h |
| 7704 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7705 | ac_cv_struct_tm=sys/time.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7706 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7707 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7708 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7710 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 7711 | if test $ac_cv_struct_tm = sys/time.h; then |
| 7712 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7713 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7714 | |
| 7715 | fi |
| 7716 | |
cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 7717 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 7718 | #include <$ac_cv_struct_tm> |
| 7719 | |
| 7720 | " |
| 7721 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
| 7722 | |
| 7723 | cat >>confdefs.h <<_ACEOF |
| 7724 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 7725 | _ACEOF |
| 7726 | |
| 7727 | |
| 7728 | fi |
| 7729 | |
| 7730 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 7731 | |
| 7732 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 7733 | |
| 7734 | else |
| 7735 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 7736 | " |
| 7737 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 7738 | ac_have_decl=1 |
| 7739 | else |
| 7740 | ac_have_decl=0 |
| 7741 | fi |
| 7742 | |
| 7743 | cat >>confdefs.h <<_ACEOF |
| 7744 | #define HAVE_DECL_TZNAME $ac_have_decl |
| 7745 | _ACEOF |
| 7746 | |
| 7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 7748 | $as_echo_n "checking for tzname... " >&6; } |
| 7749 | if test "${ac_cv_var_tzname+set}" = set; then : |
| 7750 | $as_echo_n "(cached) " >&6 |
| 7751 | else |
| 7752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7753 | /* end confdefs.h. */ |
| 7754 | #include <time.h> |
| 7755 | #if !HAVE_DECL_TZNAME |
| 7756 | extern char *tzname[]; |
| 7757 | #endif |
| 7758 | |
| 7759 | int |
| 7760 | main () |
| 7761 | { |
| 7762 | return tzname[0][0]; |
| 7763 | ; |
| 7764 | return 0; |
| 7765 | } |
| 7766 | _ACEOF |
| 7767 | if ac_fn_c_try_link "$LINENO"; then : |
| 7768 | ac_cv_var_tzname=yes |
| 7769 | else |
| 7770 | ac_cv_var_tzname=no |
| 7771 | fi |
| 7772 | rm -f core conftest.err conftest.$ac_objext \ |
| 7773 | conftest$ac_exeext conftest.$ac_ext |
| 7774 | fi |
| 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 7776 | $as_echo "$ac_cv_var_tzname" >&6; } |
| 7777 | if test $ac_cv_var_tzname = yes; then |
| 7778 | |
| 7779 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
| 7780 | |
| 7781 | fi |
| 7782 | fi |
| 7783 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7784 | { $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] | 7785 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7786 | if test "${ac_cv_sys_interpreter+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7787 | $as_echo_n "(cached) " >&6 |
| 7788 | else |
| 7789 | echo '#! /bin/cat |
| 7790 | exit 69 |
| 7791 | ' >conftest |
| 7792 | chmod u+x conftest |
| 7793 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 7794 | if test $? -ne 69; then |
| 7795 | ac_cv_sys_interpreter=yes |
| 7796 | else |
| 7797 | ac_cv_sys_interpreter=no |
| 7798 | fi |
| 7799 | rm -f conftest |
| 7800 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7802 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 7803 | interpval=$ac_cv_sys_interpreter |
| 7804 | |
| 7805 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7806 | # If the C compiler supports the keyword inline, do nothing. Otherwise |
| 7807 | # define inline to __inline__ or __inline if it accepts one of those, |
| 7808 | # otherwise define inline to be empty. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7810 | $as_echo_n "checking for inline... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7811 | if test "${ac_cv_c_inline+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7812 | $as_echo_n "(cached) " >&6 |
| 7813 | else |
| 7814 | ac_cv_c_inline=no |
| 7815 | for ac_kw in inline __inline__ __inline; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7817 | /* end confdefs.h. */ |
| 7818 | #ifndef __cplusplus |
| 7819 | typedef int foo_t; |
| 7820 | static $ac_kw foo_t static_foo () {return 0; } |
| 7821 | $ac_kw foo_t foo () {return 0; } |
| 7822 | #endif |
| 7823 | |
| 7824 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7825 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7826 | ac_cv_c_inline=$ac_kw |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7827 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7829 | test "$ac_cv_c_inline" != no && break |
| 7830 | done |
| 7831 | |
| 7832 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7834 | $as_echo "$ac_cv_c_inline" >&6; } |
| 7835 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7836 | case $ac_cv_c_inline in |
| 7837 | inline | yes) ;; |
| 7838 | *) |
| 7839 | case $ac_cv_c_inline in |
| 7840 | no) ac_val=;; |
| 7841 | *) ac_val=$ac_cv_c_inline;; |
| 7842 | esac |
| 7843 | cat >>confdefs.h <<_ACEOF |
| 7844 | #ifndef __cplusplus |
| 7845 | #define inline $ac_val |
| 7846 | #endif |
| 7847 | _ACEOF |
| 7848 | ;; |
| 7849 | esac |
| 7850 | |
| 7851 | |
| 7852 | # If the C compiler supports the keyword restrict, do nothing. Otherwise |
| 7853 | # define restrict to __restrict__ or __restrict if it accepts one of those, |
| 7854 | # otherwise define restrict to be empty. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7855 | { $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] | 7856 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7857 | if test "${ac_cv_c_restrict+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7858 | $as_echo_n "(cached) " >&6 |
| 7859 | else |
| 7860 | ac_cv_c_restrict=no |
| 7861 | # The order here caters to the fact that C++ does not require restrict. |
| 7862 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7864 | /* end confdefs.h. */ |
| 7865 | typedef int * int_ptr; |
| 7866 | int foo (int_ptr $ac_kw ip) { |
| 7867 | return ip[0]; |
| 7868 | } |
| 7869 | int |
| 7870 | main () |
| 7871 | { |
| 7872 | int s[1]; |
| 7873 | int * $ac_kw t = s; |
| 7874 | t[0] = 0; |
| 7875 | return foo(t) |
| 7876 | ; |
| 7877 | return 0; |
| 7878 | } |
| 7879 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7880 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7881 | ac_cv_c_restrict=$ac_kw |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7882 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7884 | test "$ac_cv_c_restrict" != no && break |
| 7885 | done |
| 7886 | |
| 7887 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7889 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 7890 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7891 | case $ac_cv_c_restrict in |
| 7892 | restrict) ;; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7893 | no) $as_echo "#define restrict /**/" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7894 | ;; |
| 7895 | *) cat >>confdefs.h <<_ACEOF |
| 7896 | #define restrict $ac_cv_c_restrict |
| 7897 | _ACEOF |
| 7898 | ;; |
| 7899 | esac |
| 7900 | |
| 7901 | |
| 7902 | # If words are stored with the most significant byte first (like |
| 7903 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7904 | { $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] | 7905 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7906 | if test "${ac_cv_c_bigendian+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7907 | $as_echo_n "(cached) " >&6 |
| 7908 | else |
| 7909 | ac_cv_c_bigendian=unknown |
| 7910 | # See if we're dealing with a universal compiler. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7912 | /* end confdefs.h. */ |
| 7913 | #ifndef __APPLE_CC__ |
| 7914 | not a universal capable compiler |
| 7915 | #endif |
| 7916 | typedef int dummy; |
| 7917 | |
| 7918 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7919 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7920 | |
| 7921 | # Check for potential -arch flags. It is not universal unless |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7922 | # there are at least two -arch flags with different values. |
| 7923 | ac_arch= |
| 7924 | ac_prev= |
| 7925 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 7926 | if test -n "$ac_prev"; then |
| 7927 | case $ac_word in |
| 7928 | i?86 | x86_64 | ppc | ppc64) |
| 7929 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 7930 | ac_arch=$ac_word |
| 7931 | else |
| 7932 | ac_cv_c_bigendian=universal |
| 7933 | break |
| 7934 | fi |
| 7935 | ;; |
| 7936 | esac |
| 7937 | ac_prev= |
| 7938 | elif test "x$ac_word" = "x-arch"; then |
| 7939 | ac_prev=arch |
| 7940 | fi |
| 7941 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7942 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7944 | if test $ac_cv_c_bigendian = unknown; then |
| 7945 | # See if sys/param.h defines the BYTE_ORDER macro. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7947 | /* end confdefs.h. */ |
| 7948 | #include <sys/types.h> |
| 7949 | #include <sys/param.h> |
| 7950 | |
| 7951 | int |
| 7952 | main () |
| 7953 | { |
| 7954 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 7955 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 7956 | && LITTLE_ENDIAN) |
| 7957 | bogus endian macros |
| 7958 | #endif |
| 7959 | |
| 7960 | ; |
| 7961 | return 0; |
| 7962 | } |
| 7963 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7964 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7965 | # It does; now see whether it defined to BIG_ENDIAN or not. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7967 | /* end confdefs.h. */ |
| 7968 | #include <sys/types.h> |
| 7969 | #include <sys/param.h> |
| 7970 | |
| 7971 | int |
| 7972 | main () |
| 7973 | { |
| 7974 | #if BYTE_ORDER != BIG_ENDIAN |
| 7975 | not big endian |
| 7976 | #endif |
| 7977 | |
| 7978 | ; |
| 7979 | return 0; |
| 7980 | } |
| 7981 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7982 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7983 | ac_cv_c_bigendian=yes |
| 7984 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7985 | ac_cv_c_bigendian=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7986 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7988 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7990 | fi |
| 7991 | if test $ac_cv_c_bigendian = unknown; then |
| 7992 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7994 | /* end confdefs.h. */ |
| 7995 | #include <limits.h> |
| 7996 | |
| 7997 | int |
| 7998 | main () |
| 7999 | { |
| 8000 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 8001 | bogus endian macros |
| 8002 | #endif |
| 8003 | |
| 8004 | ; |
| 8005 | return 0; |
| 8006 | } |
| 8007 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8008 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8009 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8011 | /* end confdefs.h. */ |
| 8012 | #include <limits.h> |
| 8013 | |
| 8014 | int |
| 8015 | main () |
| 8016 | { |
| 8017 | #ifndef _BIG_ENDIAN |
| 8018 | not big endian |
| 8019 | #endif |
| 8020 | |
| 8021 | ; |
| 8022 | return 0; |
| 8023 | } |
| 8024 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8025 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8026 | ac_cv_c_bigendian=yes |
| 8027 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8028 | ac_cv_c_bigendian=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8029 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8031 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8033 | fi |
| 8034 | if test $ac_cv_c_bigendian = unknown; then |
| 8035 | # Compile a test program. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8036 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8037 | # Try to guess by grepping values from an object file. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8039 | /* end confdefs.h. */ |
| 8040 | short int ascii_mm[] = |
| 8041 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 8042 | short int ascii_ii[] = |
| 8043 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 8044 | int use_ascii (int i) { |
| 8045 | return ascii_mm[i] + ascii_ii[i]; |
| 8046 | } |
| 8047 | short int ebcdic_ii[] = |
| 8048 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 8049 | short int ebcdic_mm[] = |
| 8050 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 8051 | int use_ebcdic (int i) { |
| 8052 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 8053 | } |
| 8054 | extern int foo; |
| 8055 | |
| 8056 | int |
| 8057 | main () |
| 8058 | { |
| 8059 | return use_ascii (foo) == use_ebcdic (foo); |
| 8060 | ; |
| 8061 | return 0; |
| 8062 | } |
| 8063 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8064 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8065 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 8066 | ac_cv_c_bigendian=yes |
| 8067 | fi |
| 8068 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 8069 | if test "$ac_cv_c_bigendian" = unknown; then |
| 8070 | ac_cv_c_bigendian=no |
| 8071 | else |
| 8072 | # finding both strings is unlikely to happen, but who knows? |
| 8073 | ac_cv_c_bigendian=unknown |
| 8074 | fi |
| 8075 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8076 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8078 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8080 | /* end confdefs.h. */ |
| 8081 | $ac_includes_default |
| 8082 | int |
| 8083 | main () |
| 8084 | { |
| 8085 | |
| 8086 | /* Are we little or big endian? From Harbison&Steele. */ |
| 8087 | union |
| 8088 | { |
| 8089 | long int l; |
| 8090 | char c[sizeof (long int)]; |
| 8091 | } u; |
| 8092 | u.l = 1; |
| 8093 | return u.c[sizeof (long int) - 1] == 1; |
| 8094 | |
| 8095 | ; |
| 8096 | return 0; |
| 8097 | } |
| 8098 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8099 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8100 | ac_cv_c_bigendian=no |
| 8101 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8102 | ac_cv_c_bigendian=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8103 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8104 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8105 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8106 | fi |
| 8107 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8108 | fi |
| 8109 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8111 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 8112 | case $ac_cv_c_bigendian in #( |
| 8113 | yes) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8114 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8115 | ;; #( |
| 8116 | no) |
| 8117 | ;; #( |
| 8118 | universal) |
| 8119 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8120 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8121 | |
| 8122 | ;; #( |
| 8123 | *) |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8124 | as_fn_error "unknown endianness |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8125 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8126 | esac |
| 8127 | |
| 8128 | |
| 8129 | # Define mode_t to a suitable type, if standard headers do not define it. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8130 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 8131 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8132 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8133 | else |
| 8134 | |
| 8135 | cat >>confdefs.h <<_ACEOF |
| 8136 | #define mode_t int |
| 8137 | _ACEOF |
| 8138 | |
| 8139 | fi |
| 8140 | |
| 8141 | |
| 8142 | # Define off_t to a suitable type, if standard headers do not define it. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8143 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 8144 | if test "x$ac_cv_type_off_t" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8145 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8146 | else |
| 8147 | |
| 8148 | cat >>confdefs.h <<_ACEOF |
| 8149 | #define off_t long int |
| 8150 | _ACEOF |
| 8151 | |
| 8152 | fi |
| 8153 | |
| 8154 | |
| 8155 | # Define pid_t to a suitable type, if standard headers do not define it. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8156 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 8157 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8158 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8159 | else |
| 8160 | |
| 8161 | cat >>confdefs.h <<_ACEOF |
| 8162 | #define pid_t int |
| 8163 | _ACEOF |
| 8164 | |
| 8165 | fi |
| 8166 | |
| 8167 | |
| 8168 | # Define size_t to a suitable type, if standard headers do not define it. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8169 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 8170 | if test "x$ac_cv_type_size_t" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8171 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8172 | else |
| 8173 | |
| 8174 | cat >>confdefs.h <<_ACEOF |
| 8175 | #define size_t unsigned int |
| 8176 | _ACEOF |
| 8177 | |
| 8178 | fi |
| 8179 | |
| 8180 | |
| 8181 | # Define ssize_t to a suitable type, if standard headers do not define it. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8182 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 8183 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8184 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8185 | else |
| 8186 | |
| 8187 | cat >>confdefs.h <<_ACEOF |
| 8188 | #define ssize_t int |
| 8189 | _ACEOF |
| 8190 | |
| 8191 | fi |
| 8192 | |
| 8193 | |
| 8194 | # If the C compiler supports a working long double type with more range |
| 8195 | # or precision than the double type, define HAVE_LONG_DOUBLE. |
| 8196 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8197 | { $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] | 8198 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8199 | if test "${ac_cv_type_long_double_wider+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8200 | $as_echo_n "(cached) " >&6 |
| 8201 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8203 | /* end confdefs.h. */ |
| 8204 | #include <float.h> |
| 8205 | long double const a[] = |
| 8206 | { |
| 8207 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 8208 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 8209 | }; |
| 8210 | long double |
| 8211 | f (long double x) |
| 8212 | { |
| 8213 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 8214 | + (x ? f (x) : 'c')); |
| 8215 | } |
| 8216 | |
| 8217 | int |
| 8218 | main () |
| 8219 | { |
| 8220 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 8221 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 8222 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 8223 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 8224 | && (int) LDBL_EPSILON == 0 |
| 8225 | )]; |
| 8226 | test_array [0] = 0 |
| 8227 | |
| 8228 | ; |
| 8229 | return 0; |
| 8230 | } |
| 8231 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8232 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8233 | ac_cv_type_long_double_wider=yes |
| 8234 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8235 | ac_cv_type_long_double_wider=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8236 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8237 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8238 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8239 | { $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] | 8240 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 8241 | if test $ac_cv_type_long_double_wider = yes; then |
| 8242 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8243 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8244 | |
| 8245 | fi |
| 8246 | |
| 8247 | |
| 8248 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the |
| 8249 | # C compiler predefines it. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8251 | $as_echo_n "checking whether char is unsigned... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8252 | if test "${ac_cv_c_char_unsigned+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8253 | $as_echo_n "(cached) " >&6 |
| 8254 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8256 | /* end confdefs.h. */ |
| 8257 | $ac_includes_default |
| 8258 | int |
| 8259 | main () |
| 8260 | { |
| 8261 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 8262 | test_array [0] = 0 |
| 8263 | |
| 8264 | ; |
| 8265 | return 0; |
| 8266 | } |
| 8267 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8268 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8269 | ac_cv_c_char_unsigned=no |
| 8270 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8271 | ac_cv_c_char_unsigned=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8272 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8274 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8275 | { $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] | 8276 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 8277 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8278 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8279 | |
| 8280 | fi |
| 8281 | |
| 8282 | |
| 8283 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 8284 | # The cast to long int works around a bug in the HP C Compiler |
| 8285 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8286 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8287 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8289 | $as_echo_n "checking size of signed short... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8290 | if test "${ac_cv_sizeof_signed_short+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8291 | $as_echo_n "(cached) " >&6 |
| 8292 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8293 | 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] | 8294 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8295 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8296 | if test "$ac_cv_type_signed_short" = yes; then |
| 8297 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8298 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8299 | { as_fn_set_status 77 |
| 8300 | as_fn_error "cannot compute sizeof (signed short) |
| 8301 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8302 | else |
| 8303 | ac_cv_sizeof_signed_short=0 |
| 8304 | fi |
| 8305 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8306 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8307 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8308 | { $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] | 8309 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | cat >>confdefs.h <<_ACEOF |
| 8314 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 8315 | _ACEOF |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 8320 | # The cast to long int works around a bug in the HP C Compiler |
| 8321 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8322 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8323 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8325 | $as_echo_n "checking size of unsigned short... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8326 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8327 | $as_echo_n "(cached) " >&6 |
| 8328 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8329 | 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] | 8330 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8331 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8332 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 8333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8335 | { as_fn_set_status 77 |
| 8336 | as_fn_error "cannot compute sizeof (unsigned short) |
| 8337 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8338 | else |
| 8339 | ac_cv_sizeof_unsigned_short=0 |
| 8340 | fi |
| 8341 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8342 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8343 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8344 | { $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] | 8345 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 8346 | |
| 8347 | |
| 8348 | |
| 8349 | cat >>confdefs.h <<_ACEOF |
| 8350 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 8351 | _ACEOF |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 8356 | # The cast to long int works around a bug in the HP C Compiler |
| 8357 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8358 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8359 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8361 | $as_echo_n "checking size of signed int... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8362 | if test "${ac_cv_sizeof_signed_int+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8363 | $as_echo_n "(cached) " >&6 |
| 8364 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8365 | 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] | 8366 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8367 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8368 | if test "$ac_cv_type_signed_int" = yes; then |
| 8369 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8370 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8371 | { as_fn_set_status 77 |
| 8372 | as_fn_error "cannot compute sizeof (signed int) |
| 8373 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8374 | else |
| 8375 | ac_cv_sizeof_signed_int=0 |
| 8376 | fi |
| 8377 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8378 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8379 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8380 | { $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] | 8381 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | cat >>confdefs.h <<_ACEOF |
| 8386 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 8387 | _ACEOF |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 8392 | # The cast to long int works around a bug in the HP C Compiler |
| 8393 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8394 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8395 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8397 | $as_echo_n "checking size of unsigned int... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8398 | if test "${ac_cv_sizeof_unsigned_int+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8399 | $as_echo_n "(cached) " >&6 |
| 8400 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8401 | 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] | 8402 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8403 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8404 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 8405 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8406 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8407 | { as_fn_set_status 77 |
| 8408 | as_fn_error "cannot compute sizeof (unsigned int) |
| 8409 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8410 | else |
| 8411 | ac_cv_sizeof_unsigned_int=0 |
| 8412 | fi |
| 8413 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8414 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8415 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8416 | { $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] | 8417 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | cat >>confdefs.h <<_ACEOF |
| 8422 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 8423 | _ACEOF |
| 8424 | |
| 8425 | |
| 8426 | |
| 8427 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 8428 | # The cast to long int works around a bug in the HP C Compiler |
| 8429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8431 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8433 | $as_echo_n "checking size of signed long... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8434 | if test "${ac_cv_sizeof_signed_long+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8435 | $as_echo_n "(cached) " >&6 |
| 8436 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8437 | 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] | 8438 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8439 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8440 | if test "$ac_cv_type_signed_long" = yes; then |
| 8441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8443 | { as_fn_set_status 77 |
| 8444 | as_fn_error "cannot compute sizeof (signed long) |
| 8445 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8446 | else |
| 8447 | ac_cv_sizeof_signed_long=0 |
| 8448 | fi |
| 8449 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8450 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8451 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8452 | { $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] | 8453 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 8454 | |
| 8455 | |
| 8456 | |
| 8457 | cat >>confdefs.h <<_ACEOF |
| 8458 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 8459 | _ACEOF |
| 8460 | |
| 8461 | |
| 8462 | |
| 8463 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 8464 | # The cast to long int works around a bug in the HP C Compiler |
| 8465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8467 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8469 | $as_echo_n "checking size of unsigned long... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8470 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8471 | $as_echo_n "(cached) " >&6 |
| 8472 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8473 | 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] | 8474 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8475 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8476 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 8477 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8478 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8479 | { as_fn_set_status 77 |
| 8480 | as_fn_error "cannot compute sizeof (unsigned long) |
| 8481 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8482 | else |
| 8483 | ac_cv_sizeof_unsigned_long=0 |
| 8484 | fi |
| 8485 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8486 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8487 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8488 | { $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] | 8489 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 8490 | |
| 8491 | |
| 8492 | |
| 8493 | cat >>confdefs.h <<_ACEOF |
| 8494 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 8495 | _ACEOF |
| 8496 | |
| 8497 | |
| 8498 | |
| 8499 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 8500 | # 'signed long long' is not supported then the value defined is zero. |
| 8501 | # The cast to long int works around a bug in the HP C Compiler |
| 8502 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8503 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8504 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8505 | { $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] | 8506 | $as_echo_n "checking size of signed long long... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8507 | if test "${ac_cv_sizeof_signed_long_long+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8508 | $as_echo_n "(cached) " >&6 |
| 8509 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8510 | 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] | 8511 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8512 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8513 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 8514 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8515 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8516 | { as_fn_set_status 77 |
| 8517 | as_fn_error "cannot compute sizeof (signed long long) |
| 8518 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8519 | else |
| 8520 | ac_cv_sizeof_signed_long_long=0 |
| 8521 | fi |
| 8522 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8523 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8524 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8525 | { $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] | 8526 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 8527 | |
| 8528 | |
| 8529 | |
| 8530 | cat >>confdefs.h <<_ACEOF |
| 8531 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 8532 | _ACEOF |
| 8533 | |
| 8534 | |
| 8535 | |
| 8536 | # Obtain size of a 'unsigned long long' and define as |
| 8537 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 8538 | # supported then the value defined is zero. |
| 8539 | # The cast to long int works around a bug in the HP C Compiler |
| 8540 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8541 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8542 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8543 | { $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] | 8544 | $as_echo_n "checking size of unsigned long long... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8545 | if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8546 | $as_echo_n "(cached) " >&6 |
| 8547 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8548 | 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] | 8549 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8550 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8551 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 8552 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8553 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8554 | { as_fn_set_status 77 |
| 8555 | as_fn_error "cannot compute sizeof (unsigned long long) |
| 8556 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8557 | else |
| 8558 | ac_cv_sizeof_unsigned_long_long=0 |
| 8559 | fi |
| 8560 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8561 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8562 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8563 | { $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] | 8564 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 8565 | |
| 8566 | |
| 8567 | |
| 8568 | cat >>confdefs.h <<_ACEOF |
| 8569 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 8570 | _ACEOF |
| 8571 | |
| 8572 | |
| 8573 | |
| 8574 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 8575 | # The cast to long int works around a bug in the HP C Compiler |
| 8576 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8577 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8578 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8580 | $as_echo_n "checking size of off_t... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8581 | if test "${ac_cv_sizeof_off_t+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8582 | $as_echo_n "(cached) " >&6 |
| 8583 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8584 | 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] | 8585 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8586 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8587 | if test "$ac_cv_type_off_t" = yes; then |
| 8588 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8589 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8590 | { as_fn_set_status 77 |
| 8591 | as_fn_error "cannot compute sizeof (off_t) |
| 8592 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8593 | else |
| 8594 | ac_cv_sizeof_off_t=0 |
| 8595 | fi |
| 8596 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8597 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8598 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8599 | { $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] | 8600 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 8601 | |
| 8602 | |
| 8603 | |
| 8604 | cat >>confdefs.h <<_ACEOF |
| 8605 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 8606 | _ACEOF |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 8611 | # The cast to long int works around a bug in the HP C Compiler |
| 8612 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8613 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8614 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8616 | $as_echo_n "checking size of size_t... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8617 | if test "${ac_cv_sizeof_size_t+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8618 | $as_echo_n "(cached) " >&6 |
| 8619 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8620 | 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] | 8621 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8622 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8623 | if test "$ac_cv_type_size_t" = yes; then |
| 8624 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8625 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8626 | { as_fn_set_status 77 |
| 8627 | as_fn_error "cannot compute sizeof (size_t) |
| 8628 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8629 | else |
| 8630 | ac_cv_sizeof_size_t=0 |
| 8631 | fi |
| 8632 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8633 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8634 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8635 | { $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] | 8636 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 8637 | |
| 8638 | |
| 8639 | |
| 8640 | cat >>confdefs.h <<_ACEOF |
| 8641 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 8642 | _ACEOF |
| 8643 | |
| 8644 | |
| 8645 | |
cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 8646 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T |
| 8647 | # The cast to long int works around a bug in the HP C Compiler |
| 8648 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8649 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8650 | # This bug is HP SR number 8606223364. |
| 8651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
| 8652 | $as_echo_n "checking size of ssize_t... " >&6; } |
| 8653 | if test "${ac_cv_sizeof_ssize_t+set}" = set; then : |
| 8654 | $as_echo_n "(cached) " >&6 |
| 8655 | else |
| 8656 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : |
| 8657 | |
| 8658 | else |
| 8659 | if test "$ac_cv_type_ssize_t" = yes; then |
| 8660 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8661 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8662 | { as_fn_set_status 77 |
| 8663 | as_fn_error "cannot compute sizeof (ssize_t) |
| 8664 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 8665 | else |
| 8666 | ac_cv_sizeof_ssize_t=0 |
| 8667 | fi |
| 8668 | fi |
| 8669 | |
| 8670 | fi |
| 8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
| 8672 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | cat >>confdefs.h <<_ACEOF |
| 8677 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t |
| 8678 | _ACEOF |
| 8679 | |
| 8680 | |
| 8681 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8682 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 8683 | # The cast to long int works around a bug in the HP C Compiler |
| 8684 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8685 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8686 | # This bug is HP SR number 8606223364. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8688 | $as_echo_n "checking size of unsigned int*... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8689 | if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8690 | $as_echo_n "(cached) " >&6 |
| 8691 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8692 | 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] | 8693 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8694 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8695 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 8696 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8697 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8698 | { as_fn_set_status 77 |
| 8699 | as_fn_error "cannot compute sizeof (unsigned int*) |
| 8700 | See \`config.log' for more details." "$LINENO" 5; }; } |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8701 | else |
| 8702 | ac_cv_sizeof_unsigned_intp=0 |
| 8703 | fi |
| 8704 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8705 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8706 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8707 | { $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] | 8708 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 8709 | |
| 8710 | |
| 8711 | |
| 8712 | cat >>confdefs.h <<_ACEOF |
| 8713 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 8714 | _ACEOF |
| 8715 | |
| 8716 | |
| 8717 | |
| 8718 | # |
| 8719 | # Compute sized types for current CPU and compiler options. |
| 8720 | # |
| 8721 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8722 | { $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] | 8723 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 8724 | INT8_T='signed char' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8726 | $as_echo "$INT8_T" >&6; } |
| 8727 | |
| 8728 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8729 | { $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] | 8730 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 8731 | UINT8_T='unsigned char' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8733 | $as_echo "$UINT8_T" >&6; } |
| 8734 | |
| 8735 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8736 | { $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] | 8737 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 8738 | INT16_T='signed short' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8740 | $as_echo "$INT16_T" >&6; } |
| 8741 | |
| 8742 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8743 | { $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] | 8744 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 8745 | UINT16_T='unsigned short' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8747 | $as_echo "$UINT16_T" >&6; } |
| 8748 | |
| 8749 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8750 | { $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] | 8751 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 8752 | INT32_T='none' |
| 8753 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 8754 | INT32_T='signed int' |
| 8755 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 8756 | INT32_T='signed long' |
| 8757 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8759 | $as_echo "$INT32_T" >&6; } |
| 8760 | |
| 8761 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8762 | { $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] | 8763 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 8764 | UINT32_T='none' |
| 8765 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 8766 | UINT32_T='unsigned int' |
| 8767 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 8768 | UINT32_T='unsigned long' |
| 8769 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8771 | $as_echo "$UINT32_T" >&6; } |
| 8772 | |
| 8773 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8774 | { $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] | 8775 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 8776 | INT64_T='none' |
| 8777 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 8778 | INT64_T='signed long' |
| 8779 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 8780 | INT64_T='signed long long' |
| 8781 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8783 | $as_echo "$INT64_T" >&6; } |
| 8784 | |
| 8785 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8786 | { $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] | 8787 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 8788 | UINT64_T='none' |
| 8789 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 8790 | UINT64_T='unsigned long' |
| 8791 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 8792 | UINT64_T='unsigned long long' |
| 8793 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8795 | $as_echo "$UINT64_T" >&6; } |
| 8796 | |
| 8797 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8799 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 8800 | UINTMAX_T='none' |
| 8801 | if test "$UINT64_T" != 'none'; then |
| 8802 | UINTMAX_T=$UINT64_T |
| 8803 | elif test "$UINT32_T" != 'none'; then |
| 8804 | UINTMAX_T=$UINT32_T |
| 8805 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8807 | $as_echo "$UINTMAX_T" >&6; } |
| 8808 | |
| 8809 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8811 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 8812 | UINTPTR_T='none' |
| 8813 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 8814 | UINTPTR_T='unsigned long' |
| 8815 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 8816 | UINTPTR_T='unsigned long long' |
| 8817 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8819 | $as_echo "$UINTPTR_T" >&6; } |
| 8820 | |
| 8821 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8822 | { $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] | 8823 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8825 | /* end confdefs.h. */ |
| 8826 | |
| 8827 | int |
| 8828 | main () |
| 8829 | { |
| 8830 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 8831 | ; |
| 8832 | return 0; |
| 8833 | } |
| 8834 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8835 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8837 | $as_echo "yes" >&6; } |
| 8838 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8840 | $as_echo "no" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8841 | { $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] | 8842 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8844 | /* end confdefs.h. */ |
| 8845 | |
| 8846 | int |
| 8847 | main () |
| 8848 | { |
| 8849 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 8850 | ; |
| 8851 | return 0; |
| 8852 | } |
| 8853 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8854 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8856 | $as_echo "yes" >&6; } |
| 8857 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8858 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8859 | |
| 8860 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8862 | $as_echo "no" >&6; } |
| 8863 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8864 | $as_echo "#define __func__ __FILE__" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8865 | |
| 8866 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8868 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8870 | |
| 8871 | ######## |
| 8872 | # |
| 8873 | # Check for functions |
| 8874 | # |
| 8875 | ######## |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 8876 | MAGICK_FUNC_MMAP_FILEIO |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8878 | $as_echo_n "checking whether closedir returns void... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8879 | if test "${ac_cv_func_closedir_void+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8880 | $as_echo_n "(cached) " >&6 |
| 8881 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8882 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8883 | ac_cv_func_closedir_void=yes |
| 8884 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8886 | /* end confdefs.h. */ |
| 8887 | $ac_includes_default |
| 8888 | #include <$ac_header_dirent> |
| 8889 | #ifndef __cplusplus |
| 8890 | int closedir (); |
| 8891 | #endif |
| 8892 | |
| 8893 | int |
| 8894 | main () |
| 8895 | { |
| 8896 | return closedir (opendir (".")) != 0; |
| 8897 | ; |
| 8898 | return 0; |
| 8899 | } |
| 8900 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8901 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8902 | ac_cv_func_closedir_void=no |
| 8903 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8904 | ac_cv_func_closedir_void=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8905 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8906 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8907 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8908 | fi |
| 8909 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8910 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8911 | { $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] | 8912 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 8913 | if test $ac_cv_func_closedir_void = yes; then |
| 8914 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8915 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8916 | |
| 8917 | fi |
| 8918 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 8919 | |
| 8920 | |
| 8921 | |
| 8922 | for ac_header in $ac_header_list |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8923 | do : |
| 8924 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 8925 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8926 | " |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 8927 | eval as_val=\$$as_ac_Header |
| 8928 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8929 | cat >>confdefs.h <<_ACEOF |
| 8930 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8931 | _ACEOF |
| 8932 | |
| 8933 | fi |
| 8934 | |
| 8935 | done |
| 8936 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 8937 | |
| 8938 | |
| 8939 | |
| 8940 | |
| 8941 | |
| 8942 | |
| 8943 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8944 | for ac_func in getpagesize |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8945 | do : |
| 8946 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 8947 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8948 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8949 | #define HAVE_GETPAGESIZE 1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8950 | _ACEOF |
| 8951 | |
| 8952 | fi |
| 8953 | done |
| 8954 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8956 | $as_echo_n "checking for working mmap... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8957 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8958 | $as_echo_n "(cached) " >&6 |
| 8959 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8960 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8961 | ac_cv_func_mmap_fixed_mapped=no |
| 8962 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8964 | /* end confdefs.h. */ |
| 8965 | $ac_includes_default |
| 8966 | /* malloc might have been renamed as rpl_malloc. */ |
| 8967 | #undef malloc |
| 8968 | |
| 8969 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 8970 | Here is a matrix of mmap possibilities: |
| 8971 | mmap private not fixed |
| 8972 | mmap private fixed at somewhere currently unmapped |
| 8973 | mmap private fixed at somewhere already mapped |
| 8974 | mmap shared not fixed |
| 8975 | mmap shared fixed at somewhere currently unmapped |
| 8976 | mmap shared fixed at somewhere already mapped |
| 8977 | For private mappings, we should verify that changes cannot be read() |
| 8978 | back from the file, nor mmap's back from the file at a different |
| 8979 | address. (There have been systems where private was not correctly |
| 8980 | implemented like the infamous i386 svr4.0, and systems where the |
| 8981 | VM page cache was not coherent with the file system buffer cache |
| 8982 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 8983 | For shared mappings, we should conversely verify that changes get |
| 8984 | propagated back to all the places they're supposed to be. |
| 8985 | |
| 8986 | Grep wants private fixed already mapped. |
| 8987 | The main things grep needs to know about mmap are: |
| 8988 | * does it exist and is it safe to write into the mmap'd area |
| 8989 | * how to use it (BSD variants) */ |
| 8990 | |
| 8991 | #include <fcntl.h> |
| 8992 | #include <sys/mman.h> |
| 8993 | |
| 8994 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 8995 | char *malloc (); |
| 8996 | #endif |
| 8997 | |
| 8998 | /* This mess was copied from the GNU getpagesize.h. */ |
| 8999 | #ifndef HAVE_GETPAGESIZE |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9000 | # ifdef _SC_PAGESIZE |
| 9001 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 9002 | # else /* no _SC_PAGESIZE */ |
| 9003 | # ifdef HAVE_SYS_PARAM_H |
| 9004 | # include <sys/param.h> |
| 9005 | # ifdef EXEC_PAGESIZE |
| 9006 | # define getpagesize() EXEC_PAGESIZE |
| 9007 | # else /* no EXEC_PAGESIZE */ |
| 9008 | # ifdef NBPG |
| 9009 | # define getpagesize() NBPG * CLSIZE |
| 9010 | # ifndef CLSIZE |
| 9011 | # define CLSIZE 1 |
| 9012 | # endif /* no CLSIZE */ |
| 9013 | # else /* no NBPG */ |
| 9014 | # ifdef NBPC |
| 9015 | # define getpagesize() NBPC |
| 9016 | # else /* no NBPC */ |
| 9017 | # ifdef PAGESIZE |
| 9018 | # define getpagesize() PAGESIZE |
| 9019 | # endif /* PAGESIZE */ |
| 9020 | # endif /* no NBPC */ |
| 9021 | # endif /* no NBPG */ |
| 9022 | # endif /* no EXEC_PAGESIZE */ |
| 9023 | # else /* no HAVE_SYS_PARAM_H */ |
| 9024 | # define getpagesize() 8192 /* punt totally */ |
| 9025 | # endif /* no HAVE_SYS_PARAM_H */ |
| 9026 | # endif /* no _SC_PAGESIZE */ |
| 9027 | |
| 9028 | #endif /* no HAVE_GETPAGESIZE */ |
| 9029 | |
| 9030 | int |
| 9031 | main () |
| 9032 | { |
| 9033 | char *data, *data2, *data3; |
cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 9034 | const char *cdata2; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9035 | int i, pagesize; |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9036 | int fd, fd2; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9037 | |
| 9038 | pagesize = getpagesize (); |
| 9039 | |
| 9040 | /* First, make a file with some known garbage in it. */ |
| 9041 | data = (char *) malloc (pagesize); |
| 9042 | if (!data) |
| 9043 | return 1; |
| 9044 | for (i = 0; i < pagesize; ++i) |
| 9045 | *(data + i) = rand (); |
| 9046 | umask (0); |
| 9047 | fd = creat ("conftest.mmap", 0600); |
| 9048 | if (fd < 0) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9049 | return 2; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9050 | if (write (fd, data, pagesize) != pagesize) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9051 | return 3; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9052 | close (fd); |
| 9053 | |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9054 | /* Next, check that the tail of a page is zero-filled. File must have |
| 9055 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 9056 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 9057 | if (fd2 < 0) |
| 9058 | return 4; |
cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 9059 | cdata2 = ""; |
| 9060 | if (write (fd2, cdata2, 1) != 1) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9061 | return 5; |
cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 9062 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9063 | if (data2 == MAP_FAILED) |
| 9064 | return 6; |
| 9065 | for (i = 0; i < pagesize; ++i) |
| 9066 | if (*(data2 + i)) |
| 9067 | return 7; |
| 9068 | close (fd2); |
| 9069 | if (munmap (data2, pagesize)) |
| 9070 | return 8; |
| 9071 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9072 | /* Next, try to mmap the file at a fixed address which already has |
| 9073 | something else allocated at it. If we can, also make sure that |
| 9074 | we see the same garbage. */ |
| 9075 | fd = open ("conftest.mmap", O_RDWR); |
| 9076 | if (fd < 0) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9077 | return 9; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9078 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 9079 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9080 | return 10; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9081 | for (i = 0; i < pagesize; ++i) |
| 9082 | if (*(data + i) != *(data2 + i)) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9083 | return 11; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9084 | |
| 9085 | /* Finally, make sure that changes to the mapped area do not |
| 9086 | percolate back to the file as seen by read(). (This is a bug on |
| 9087 | some variants of i386 svr4.0.) */ |
| 9088 | for (i = 0; i < pagesize; ++i) |
| 9089 | *(data2 + i) = *(data2 + i) + 1; |
| 9090 | data3 = (char *) malloc (pagesize); |
| 9091 | if (!data3) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9092 | return 12; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9093 | if (read (fd, data3, pagesize) != pagesize) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9094 | return 13; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9095 | for (i = 0; i < pagesize; ++i) |
| 9096 | if (*(data + i) != *(data3 + i)) |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9097 | return 14; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9098 | close (fd); |
| 9099 | return 0; |
| 9100 | } |
| 9101 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9102 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9103 | ac_cv_func_mmap_fixed_mapped=yes |
| 9104 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9105 | ac_cv_func_mmap_fixed_mapped=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9106 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9107 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9108 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9109 | fi |
| 9110 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9111 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9112 | { $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] | 9113 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 9114 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 9115 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9116 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9117 | |
| 9118 | fi |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9119 | rm -f conftest.mmap conftest.txt |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9120 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9121 | for ac_header in vfork.h |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9122 | do : |
| 9123 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| 9124 | if test "x$ac_cv_header_vfork_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9125 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9126 | #define HAVE_VFORK_H 1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9127 | _ACEOF |
| 9128 | |
| 9129 | fi |
| 9130 | |
| 9131 | done |
| 9132 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9133 | for ac_func in fork vfork |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9134 | do : |
| 9135 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9136 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 9137 | eval as_val=\$$as_ac_var |
| 9138 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9139 | cat >>confdefs.h <<_ACEOF |
| 9140 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9141 | _ACEOF |
| 9142 | |
| 9143 | fi |
| 9144 | done |
| 9145 | |
| 9146 | if test "x$ac_cv_func_fork" = xyes; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9148 | $as_echo_n "checking for working fork... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9149 | if test "${ac_cv_func_fork_works+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9150 | $as_echo_n "(cached) " >&6 |
| 9151 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9152 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9153 | ac_cv_func_fork_works=cross |
| 9154 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9155 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9156 | /* end confdefs.h. */ |
| 9157 | $ac_includes_default |
| 9158 | int |
| 9159 | main () |
| 9160 | { |
| 9161 | |
| 9162 | /* By Ruediger Kuhlmann. */ |
| 9163 | return fork () < 0; |
| 9164 | |
| 9165 | ; |
| 9166 | return 0; |
| 9167 | } |
| 9168 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9169 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9170 | ac_cv_func_fork_works=yes |
| 9171 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9172 | ac_cv_func_fork_works=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9173 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9175 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9176 | fi |
| 9177 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9178 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9179 | { $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] | 9180 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 9181 | |
| 9182 | else |
| 9183 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 9184 | fi |
| 9185 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 9186 | case $host in |
| 9187 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 9188 | # Override, as these systems have only a dummy fork() stub |
| 9189 | ac_cv_func_fork_works=no |
| 9190 | ;; |
| 9191 | *) |
| 9192 | ac_cv_func_fork_works=yes |
| 9193 | ;; |
| 9194 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9195 | { $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] | 9196 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 9197 | fi |
| 9198 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 9199 | if test "x$ac_cv_func_vfork" = xyes; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9201 | $as_echo_n "checking for working vfork... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9202 | if test "${ac_cv_func_vfork_works+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9203 | $as_echo_n "(cached) " >&6 |
| 9204 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9205 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9206 | ac_cv_func_vfork_works=cross |
| 9207 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9209 | /* end confdefs.h. */ |
| 9210 | /* Thanks to Paul Eggert for this test. */ |
| 9211 | $ac_includes_default |
| 9212 | #include <sys/wait.h> |
| 9213 | #ifdef HAVE_VFORK_H |
| 9214 | # include <vfork.h> |
| 9215 | #endif |
| 9216 | /* On some sparc systems, changes by the child to local and incoming |
| 9217 | argument registers are propagated back to the parent. The compiler |
| 9218 | is told about this with #include <vfork.h>, but some compilers |
| 9219 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 9220 | static variable whose address is put into a register that is |
| 9221 | clobbered by the vfork. */ |
| 9222 | static void |
| 9223 | #ifdef __cplusplus |
| 9224 | sparc_address_test (int arg) |
| 9225 | # else |
| 9226 | sparc_address_test (arg) int arg; |
| 9227 | #endif |
| 9228 | { |
| 9229 | static pid_t child; |
| 9230 | if (!child) { |
| 9231 | child = vfork (); |
| 9232 | if (child < 0) { |
| 9233 | perror ("vfork"); |
| 9234 | _exit(2); |
| 9235 | } |
| 9236 | if (!child) { |
| 9237 | arg = getpid(); |
| 9238 | write(-1, "", 0); |
| 9239 | _exit (arg); |
| 9240 | } |
| 9241 | } |
| 9242 | } |
| 9243 | |
| 9244 | int |
| 9245 | main () |
| 9246 | { |
| 9247 | pid_t parent = getpid (); |
| 9248 | pid_t child; |
| 9249 | |
| 9250 | sparc_address_test (0); |
| 9251 | |
| 9252 | child = vfork (); |
| 9253 | |
| 9254 | if (child == 0) { |
| 9255 | /* Here is another test for sparc vfork register problems. This |
| 9256 | test uses lots of local variables, at least as many local |
| 9257 | variables as main has allocated so far including compiler |
| 9258 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 9259 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 9260 | reuse the register of parent for one of the local variables, |
| 9261 | since it will think that parent can't possibly be used any more |
| 9262 | in this routine. Assigning to the local variable will thus |
| 9263 | munge parent in the parent process. */ |
| 9264 | pid_t |
| 9265 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 9266 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 9267 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 9268 | use the same hardware register for all 8 local variables. */ |
| 9269 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 9270 | || p != p5 || p != p6 || p != p7) |
| 9271 | _exit(1); |
| 9272 | |
| 9273 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 9274 | from child file descriptors. If the child closes a descriptor |
| 9275 | before it execs or exits, this munges the parent's descriptor |
| 9276 | as well. Test for this by closing stdout in the child. */ |
| 9277 | _exit(close(fileno(stdout)) != 0); |
| 9278 | } else { |
| 9279 | int status; |
| 9280 | struct stat st; |
| 9281 | |
| 9282 | while (wait(&status) != child) |
| 9283 | ; |
| 9284 | return ( |
| 9285 | /* Was there some problem with vforking? */ |
| 9286 | child < 0 |
| 9287 | |
| 9288 | /* Did the child fail? (This shouldn't happen.) */ |
| 9289 | || status |
| 9290 | |
| 9291 | /* Did the vfork/compiler bug occur? */ |
| 9292 | || parent != getpid() |
| 9293 | |
| 9294 | /* Did the file descriptor bug occur? */ |
| 9295 | || fstat(fileno(stdout), &st) != 0 |
| 9296 | ); |
| 9297 | } |
| 9298 | } |
| 9299 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9300 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9301 | ac_cv_func_vfork_works=yes |
| 9302 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9303 | ac_cv_func_vfork_works=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9304 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9305 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9306 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9307 | fi |
| 9308 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9309 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9310 | { $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] | 9311 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 9312 | |
| 9313 | fi; |
| 9314 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 9315 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9316 | { $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] | 9317 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 9318 | fi |
| 9319 | |
| 9320 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 9321 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9322 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9323 | |
| 9324 | else |
| 9325 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9326 | $as_echo "#define vfork fork" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9327 | |
| 9328 | fi |
| 9329 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 9330 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9331 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9332 | |
| 9333 | fi |
| 9334 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9336 | $as_echo_n "checking for working memcmp... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9337 | if test "${ac_cv_func_memcmp_working+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9338 | $as_echo_n "(cached) " >&6 |
| 9339 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9340 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9341 | ac_cv_func_memcmp_working=no |
| 9342 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9344 | /* end confdefs.h. */ |
| 9345 | $ac_includes_default |
| 9346 | int |
| 9347 | main () |
| 9348 | { |
| 9349 | |
| 9350 | /* Some versions of memcmp are not 8-bit clean. */ |
| 9351 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 9352 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 9353 | return 1; |
| 9354 | |
| 9355 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 9356 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 9357 | William Lewis provided this test program. */ |
| 9358 | { |
| 9359 | char foo[21]; |
| 9360 | char bar[21]; |
| 9361 | int i; |
| 9362 | for (i = 0; i < 4; i++) |
| 9363 | { |
| 9364 | char *a = foo + i; |
| 9365 | char *b = bar + i; |
| 9366 | strcpy (a, "--------01111111"); |
| 9367 | strcpy (b, "--------10000000"); |
| 9368 | if (memcmp (a, b, 16) >= 0) |
| 9369 | return 1; |
| 9370 | } |
| 9371 | return 0; |
| 9372 | } |
| 9373 | |
| 9374 | ; |
| 9375 | return 0; |
| 9376 | } |
| 9377 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9378 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9379 | ac_cv_func_memcmp_working=yes |
| 9380 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9381 | ac_cv_func_memcmp_working=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9382 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9384 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9385 | fi |
| 9386 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9387 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9388 | { $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] | 9389 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 9390 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 9391 | *" memcmp.$ac_objext "* ) ;; |
| 9392 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 9393 | ;; |
| 9394 | esac |
| 9395 | |
| 9396 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9397 | for ac_header in sys/select.h sys/socket.h |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9398 | do : |
| 9399 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9400 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 9401 | eval as_val=\$$as_ac_Header |
| 9402 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9403 | cat >>confdefs.h <<_ACEOF |
| 9404 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9405 | _ACEOF |
| 9406 | |
| 9407 | fi |
| 9408 | |
| 9409 | done |
| 9410 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9411 | { $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] | 9412 | $as_echo_n "checking types of arguments for select... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9413 | if test "${ac_cv_func_select_args+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9414 | $as_echo_n "(cached) " >&6 |
| 9415 | else |
| 9416 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 9417 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 9418 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9420 | /* end confdefs.h. */ |
| 9421 | $ac_includes_default |
| 9422 | #ifdef HAVE_SYS_SELECT_H |
| 9423 | # include <sys/select.h> |
| 9424 | #endif |
| 9425 | #ifdef HAVE_SYS_SOCKET_H |
| 9426 | # include <sys/socket.h> |
| 9427 | #endif |
| 9428 | |
| 9429 | int |
| 9430 | main () |
| 9431 | { |
| 9432 | extern int select ($ac_arg1, |
| 9433 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 9434 | $ac_arg5); |
| 9435 | ; |
| 9436 | return 0; |
| 9437 | } |
| 9438 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9439 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9440 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9441 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9443 | done |
| 9444 | done |
| 9445 | done |
| 9446 | # Provide a safe default value. |
| 9447 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
| 9448 | |
| 9449 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9450 | { $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] | 9451 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 9452 | ac_save_IFS=$IFS; IFS=',' |
| 9453 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 9454 | IFS=$ac_save_IFS |
| 9455 | shift |
| 9456 | |
| 9457 | cat >>confdefs.h <<_ACEOF |
| 9458 | #define SELECT_TYPE_ARG1 $1 |
| 9459 | _ACEOF |
| 9460 | |
| 9461 | |
| 9462 | cat >>confdefs.h <<_ACEOF |
| 9463 | #define SELECT_TYPE_ARG234 ($2) |
| 9464 | _ACEOF |
| 9465 | |
| 9466 | |
| 9467 | cat >>confdefs.h <<_ACEOF |
| 9468 | #define SELECT_TYPE_ARG5 ($3) |
| 9469 | _ACEOF |
| 9470 | |
| 9471 | rm -f conftest* |
| 9472 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9473 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9474 | $as_echo_n "(cached) " >&6 |
| 9475 | else |
| 9476 | ac_cv_func_setvbuf_reversed=no |
| 9477 | fi |
| 9478 | |
| 9479 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9480 | { $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] | 9481 | $as_echo_n "checking return type of signal handlers... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9482 | if test "${ac_cv_type_signal+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9483 | $as_echo_n "(cached) " >&6 |
| 9484 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9486 | /* end confdefs.h. */ |
| 9487 | #include <sys/types.h> |
| 9488 | #include <signal.h> |
| 9489 | |
| 9490 | int |
| 9491 | main () |
| 9492 | { |
| 9493 | return *(signal (0, 0)) (0) == 1; |
| 9494 | ; |
| 9495 | return 0; |
| 9496 | } |
| 9497 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9498 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9499 | ac_cv_type_signal=int |
| 9500 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9501 | ac_cv_type_signal=void |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9502 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9503 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9504 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9506 | $as_echo "$ac_cv_type_signal" >&6; } |
| 9507 | |
| 9508 | cat >>confdefs.h <<_ACEOF |
| 9509 | #define RETSIGTYPE $ac_cv_type_signal |
| 9510 | _ACEOF |
| 9511 | |
| 9512 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9514 | $as_echo_n "checking for working strtod... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9515 | if test "${ac_cv_func_strtod+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9516 | $as_echo_n "(cached) " >&6 |
| 9517 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9518 | if test "$cross_compiling" = yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9519 | ac_cv_func_strtod=no |
| 9520 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9522 | /* end confdefs.h. */ |
| 9523 | |
| 9524 | $ac_includes_default |
| 9525 | #ifndef strtod |
| 9526 | double strtod (); |
| 9527 | #endif |
| 9528 | int |
| 9529 | main() |
| 9530 | { |
| 9531 | { |
| 9532 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 9533 | char *string = " +69"; |
| 9534 | char *term; |
| 9535 | double value; |
| 9536 | value = strtod (string, &term); |
| 9537 | if (value != 69 || term != (string + 4)) |
| 9538 | return 1; |
| 9539 | } |
| 9540 | |
| 9541 | { |
| 9542 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 9543 | terminating character under some conditions. */ |
| 9544 | char *string = "NaN"; |
| 9545 | char *term; |
| 9546 | strtod (string, &term); |
| 9547 | if (term != string && *(term - 1) == 0) |
| 9548 | return 1; |
| 9549 | } |
| 9550 | return 0; |
| 9551 | } |
| 9552 | |
| 9553 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9554 | if ac_fn_c_try_run "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9555 | ac_cv_func_strtod=yes |
| 9556 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9557 | ac_cv_func_strtod=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9558 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9559 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9560 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9561 | fi |
| 9562 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9563 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9565 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 9566 | if test $ac_cv_func_strtod = no; then |
| 9567 | case " $LIBOBJS " in |
| 9568 | *" strtod.$ac_objext "* ) ;; |
| 9569 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 9570 | ;; |
| 9571 | esac |
| 9572 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9573 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| 9574 | if test "x$ac_cv_func_pow" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9575 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9576 | fi |
| 9577 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9578 | if test $ac_cv_func_pow = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9580 | $as_echo_n "checking for pow in -lm... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9581 | if test "${ac_cv_lib_m_pow+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9582 | $as_echo_n "(cached) " >&6 |
| 9583 | else |
| 9584 | ac_check_lib_save_LIBS=$LIBS |
| 9585 | LIBS="-lm $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9587 | /* end confdefs.h. */ |
| 9588 | |
| 9589 | /* Override any GCC internal prototype to avoid an error. |
| 9590 | Use char because int might match the return type of a GCC |
| 9591 | builtin and then its argument prototype would still apply. */ |
| 9592 | #ifdef __cplusplus |
| 9593 | extern "C" |
| 9594 | #endif |
| 9595 | char pow (); |
| 9596 | int |
| 9597 | main () |
| 9598 | { |
| 9599 | return pow (); |
| 9600 | ; |
| 9601 | return 0; |
| 9602 | } |
| 9603 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9604 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9605 | ac_cv_lib_m_pow=yes |
| 9606 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9607 | ac_cv_lib_m_pow=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9608 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9609 | rm -f core conftest.err conftest.$ac_objext \ |
| 9610 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9611 | LIBS=$ac_check_lib_save_LIBS |
| 9612 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9613 | { $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] | 9614 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9615 | if test "x$ac_cv_lib_m_pow" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9616 | POW_LIB=-lm |
| 9617 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9618 | { $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] | 9619 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 9620 | fi |
| 9621 | |
| 9622 | fi |
| 9623 | |
| 9624 | fi |
| 9625 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9626 | for ac_func in vprintf |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9627 | do : |
| 9628 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 9629 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9630 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9631 | #define HAVE_VPRINTF 1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9632 | _ACEOF |
| 9633 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9634 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 9635 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9636 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9637 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9638 | |
| 9639 | fi |
| 9640 | |
| 9641 | fi |
| 9642 | done |
| 9643 | |
| 9644 | |
| 9645 | |
cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 9646 | # |
| 9647 | # Find math library |
| 9648 | # |
| 9649 | MATH_LIBS='' |
| 9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 9651 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| 9652 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
| 9653 | $as_echo_n "(cached) " >&6 |
| 9654 | else |
| 9655 | ac_check_lib_save_LIBS=$LIBS |
| 9656 | LIBS="-lm $LIBS" |
| 9657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9658 | /* end confdefs.h. */ |
| 9659 | |
| 9660 | /* Override any GCC internal prototype to avoid an error. |
| 9661 | Use char because int might match the return type of a GCC |
| 9662 | builtin and then its argument prototype would still apply. */ |
| 9663 | #ifdef __cplusplus |
| 9664 | extern "C" |
| 9665 | #endif |
| 9666 | char sqrt (); |
| 9667 | int |
| 9668 | main () |
| 9669 | { |
| 9670 | return sqrt (); |
| 9671 | ; |
| 9672 | return 0; |
| 9673 | } |
| 9674 | _ACEOF |
| 9675 | if ac_fn_c_try_link "$LINENO"; then : |
| 9676 | ac_cv_lib_m_sqrt=yes |
| 9677 | else |
| 9678 | ac_cv_lib_m_sqrt=no |
| 9679 | fi |
| 9680 | rm -f core conftest.err conftest.$ac_objext \ |
| 9681 | conftest$ac_exeext conftest.$ac_ext |
| 9682 | LIBS=$ac_check_lib_save_LIBS |
| 9683 | fi |
| 9684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 9685 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| 9686 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
| 9687 | MATH_LIBS="-lm" |
| 9688 | fi |
| 9689 | |
| 9690 | LIBS="$MATH_LIBS $LIBS" |
| 9691 | |
| 9692 | |
cristy | f1897e3 | 2010-08-29 19:59:09 +0000 | [diff] [blame] | 9693 | for ac_func in atoll atexit cimag 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 _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 strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9694 | do : |
| 9695 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9696 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 9697 | eval as_val=\$$as_ac_var |
| 9698 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9699 | cat >>confdefs.h <<_ACEOF |
| 9700 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9701 | _ACEOF |
| 9702 | |
| 9703 | fi |
| 9704 | done |
| 9705 | |
| 9706 | |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9707 | # |
| 9708 | # Check for clock_gettime(). |
| 9709 | # |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9710 | { $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] | 9711 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9712 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9713 | $as_echo_n "(cached) " >&6 |
| 9714 | else |
| 9715 | ac_func_search_save_LIBS=$LIBS |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9717 | /* end confdefs.h. */ |
| 9718 | |
| 9719 | /* Override any GCC internal prototype to avoid an error. |
| 9720 | Use char because int might match the return type of a GCC |
| 9721 | builtin and then its argument prototype would still apply. */ |
| 9722 | #ifdef __cplusplus |
| 9723 | extern "C" |
| 9724 | #endif |
| 9725 | char clock_gettime (); |
| 9726 | int |
| 9727 | main () |
| 9728 | { |
| 9729 | return clock_gettime (); |
| 9730 | ; |
| 9731 | return 0; |
| 9732 | } |
| 9733 | _ACEOF |
| 9734 | for ac_lib in '' rt; do |
| 9735 | if test -z "$ac_lib"; then |
| 9736 | ac_res="none required" |
| 9737 | else |
| 9738 | ac_res=-l$ac_lib |
| 9739 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9740 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9741 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9742 | ac_cv_search_clock_gettime=$ac_res |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9743 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9744 | rm -f core conftest.err conftest.$ac_objext \ |
| 9745 | conftest$ac_exeext |
| 9746 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9747 | break |
| 9748 | fi |
| 9749 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9750 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 9751 | |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9752 | else |
| 9753 | ac_cv_search_clock_gettime=no |
| 9754 | fi |
| 9755 | rm conftest.$ac_ext |
| 9756 | LIBS=$ac_func_search_save_LIBS |
| 9757 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9758 | { $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] | 9759 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 9760 | ac_res=$ac_cv_search_clock_gettime |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9761 | if test "$ac_res" != no; then : |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9762 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 9763 | |
| 9764 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9765 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9766 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9767 | { $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] | 9768 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9770 | /* end confdefs.h. */ |
| 9771 | #include <time.h> |
| 9772 | int |
| 9773 | main () |
| 9774 | { |
| 9775 | clockid_t clockType = CLOCK_REALTIME; |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9776 | ; |
| 9777 | return 0; |
| 9778 | } |
| 9779 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9780 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9781 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9783 | $as_echo "yes" >&6; } |
| 9784 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9785 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9786 | |
| 9787 | |
| 9788 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9790 | $as_echo "no" >&6; } |
| 9791 | |
| 9792 | fi |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9794 | |
| 9795 | else |
| 9796 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9797 | for ac_func in gettimeofday ftime |
| 9798 | do : |
| 9799 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9800 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 9801 | eval as_val=\$$as_ac_var |
| 9802 | if test "x$as_val" = x""yes; then : |
cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 9803 | cat >>confdefs.h <<_ACEOF |
| 9804 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9805 | _ACEOF |
| 9806 | break |
| 9807 | fi |
| 9808 | done |
| 9809 | |
| 9810 | |
| 9811 | |
| 9812 | fi |
| 9813 | |
| 9814 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9815 | ######## |
| 9816 | # |
| 9817 | # Check for function prototypes |
| 9818 | # |
| 9819 | ######## |
| 9820 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9821 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9822 | #include <unistd.h> |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9823 | " |
| 9824 | if test "x$ac_cv_have_decl_pread" = x""yes; then : |
| 9825 | ac_have_decl=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9826 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9827 | ac_have_decl=0 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9828 | fi |
| 9829 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9830 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9831 | #define HAVE_DECL_PREAD $ac_have_decl |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9832 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9833 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9834 | #include <unistd.h> |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9835 | " |
| 9836 | if test "x$ac_cv_have_decl_pwrite" = x""yes; then : |
| 9837 | ac_have_decl=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9838 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9839 | ac_have_decl=0 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9840 | fi |
| 9841 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9842 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9843 | #define HAVE_DECL_PWRITE $ac_have_decl |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9844 | _ACEOF |
| 9845 | |
| 9846 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9847 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9848 | #include <strings.h> |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9849 | " |
| 9850 | if test "x$ac_cv_have_decl_strlcpy" = x""yes; then : |
| 9851 | ac_have_decl=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9852 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9853 | ac_have_decl=0 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9854 | fi |
| 9855 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9856 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9857 | #define HAVE_DECL_STRLCPY $ac_have_decl |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9858 | _ACEOF |
| 9859 | |
| 9860 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9861 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9862 | #include <stdio.h> |
| 9863 | #include <stdarg.h> |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9864 | " |
| 9865 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : |
| 9866 | ac_have_decl=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9867 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9868 | ac_have_decl=0 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9869 | fi |
| 9870 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9871 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9872 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9873 | _ACEOF |
| 9874 | |
| 9875 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9876 | ######## |
| 9877 | # |
| 9878 | # C++ Support Tests (For Magick++) |
| 9879 | # |
| 9880 | ######## |
| 9881 | have_magick_plus_plus='no' |
| 9882 | if test "$with_magick_plus_plus" = 'yes'; then |
| 9883 | OLIBS="$LIBS" |
| 9884 | LIBS='' |
| 9885 | ac_ext=cpp |
| 9886 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9887 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9888 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9889 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9890 | |
| 9891 | |
| 9892 | # Full set of headers used... |
| 9893 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 9894 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 9895 | ac_ext=cpp |
| 9896 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9897 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9898 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9899 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9900 | |
| 9901 | ac_ext=cpp |
| 9902 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 9903 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9904 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9905 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 9906 | if test -z "$CXX"; then |
| 9907 | if test -n "$CCC"; then |
| 9908 | CXX=$CCC |
| 9909 | else |
| 9910 | if test -n "$ac_tool_prefix"; then |
| 9911 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 9912 | do |
| 9913 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 9914 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9916 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9917 | if test "${ac_cv_prog_CXX+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9918 | $as_echo_n "(cached) " >&6 |
| 9919 | else |
| 9920 | if test -n "$CXX"; then |
| 9921 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 9922 | else |
| 9923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9924 | for as_dir in $PATH |
| 9925 | do |
| 9926 | IFS=$as_save_IFS |
| 9927 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9928 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9930 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9931 | $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] | 9932 | break 2 |
| 9933 | fi |
| 9934 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9935 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9936 | IFS=$as_save_IFS |
| 9937 | |
| 9938 | fi |
| 9939 | fi |
| 9940 | CXX=$ac_cv_prog_CXX |
| 9941 | if test -n "$CXX"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9943 | $as_echo "$CXX" >&6; } |
| 9944 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9946 | $as_echo "no" >&6; } |
| 9947 | fi |
| 9948 | |
| 9949 | |
| 9950 | test -n "$CXX" && break |
| 9951 | done |
| 9952 | fi |
| 9953 | if test -z "$CXX"; then |
| 9954 | ac_ct_CXX=$CXX |
| 9955 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 9956 | do |
| 9957 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9958 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9960 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9961 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9962 | $as_echo_n "(cached) " >&6 |
| 9963 | else |
| 9964 | if test -n "$ac_ct_CXX"; then |
| 9965 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 9966 | else |
| 9967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9968 | for as_dir in $PATH |
| 9969 | do |
| 9970 | IFS=$as_save_IFS |
| 9971 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9972 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9974 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9975 | $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] | 9976 | break 2 |
| 9977 | fi |
| 9978 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9979 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9980 | IFS=$as_save_IFS |
| 9981 | |
| 9982 | fi |
| 9983 | fi |
| 9984 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 9985 | if test -n "$ac_ct_CXX"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9987 | $as_echo "$ac_ct_CXX" >&6; } |
| 9988 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9990 | $as_echo "no" >&6; } |
| 9991 | fi |
| 9992 | |
| 9993 | |
| 9994 | test -n "$ac_ct_CXX" && break |
| 9995 | done |
| 9996 | |
| 9997 | if test "x$ac_ct_CXX" = x; then |
| 9998 | CXX="g++" |
| 9999 | else |
| 10000 | case $cross_compiling:$ac_tool_warned in |
| 10001 | yes:) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10002 | { $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] | 10003 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10004 | ac_tool_warned=yes ;; |
| 10005 | esac |
| 10006 | CXX=$ac_ct_CXX |
| 10007 | fi |
| 10008 | fi |
| 10009 | |
| 10010 | fi |
| 10011 | fi |
| 10012 | # Provide some information about the compiler. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10013 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10014 | set X $ac_compile |
| 10015 | ac_compiler=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10016 | for ac_option in --version -v -V -qversion; do |
| 10017 | { { ac_try="$ac_compiler $ac_option >&5" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10018 | case "(($ac_try" in |
| 10019 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10020 | *) ac_try_echo=$ac_try;; |
| 10021 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10022 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 10023 | $as_echo "$ac_try_echo"; } >&5 |
| 10024 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10025 | ac_status=$? |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10026 | if test -s conftest.err; then |
| 10027 | sed '10a\ |
| 10028 | ... rest of stderr output deleted ... |
| 10029 | 10q' conftest.err >conftest.er1 |
| 10030 | cat conftest.er1 >&5 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10031 | fi |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 10032 | rm -f conftest.er1 conftest.err |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10034 | test $ac_status = 0; } |
| 10035 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10036 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10037 | { $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] | 10038 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10039 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10040 | $as_echo_n "(cached) " >&6 |
| 10041 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10043 | /* end confdefs.h. */ |
| 10044 | |
| 10045 | int |
| 10046 | main () |
| 10047 | { |
| 10048 | #ifndef __GNUC__ |
| 10049 | choke me |
| 10050 | #endif |
| 10051 | |
| 10052 | ; |
| 10053 | return 0; |
| 10054 | } |
| 10055 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10056 | if ac_fn_cxx_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10057 | ac_compiler_gnu=yes |
| 10058 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10059 | ac_compiler_gnu=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10060 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10062 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 10063 | |
| 10064 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10065 | { $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] | 10066 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 10067 | if test $ac_compiler_gnu = yes; then |
| 10068 | GXX=yes |
| 10069 | else |
| 10070 | GXX= |
| 10071 | fi |
| 10072 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 10073 | ac_save_CXXFLAGS=$CXXFLAGS |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10075 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10076 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10077 | $as_echo_n "(cached) " >&6 |
| 10078 | else |
| 10079 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 10080 | ac_cxx_werror_flag=yes |
| 10081 | ac_cv_prog_cxx_g=no |
| 10082 | CXXFLAGS="-g" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10084 | /* end confdefs.h. */ |
| 10085 | |
| 10086 | int |
| 10087 | main () |
| 10088 | { |
| 10089 | |
| 10090 | ; |
| 10091 | return 0; |
| 10092 | } |
| 10093 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10094 | if ac_fn_cxx_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10095 | ac_cv_prog_cxx_g=yes |
| 10096 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10097 | CXXFLAGS="" |
| 10098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10099 | /* end confdefs.h. */ |
| 10100 | |
| 10101 | int |
| 10102 | main () |
| 10103 | { |
| 10104 | |
| 10105 | ; |
| 10106 | return 0; |
| 10107 | } |
| 10108 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10109 | if ac_fn_cxx_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10110 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10111 | else |
| 10112 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10113 | CXXFLAGS="-g" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10115 | /* end confdefs.h. */ |
| 10116 | |
| 10117 | int |
| 10118 | main () |
| 10119 | { |
| 10120 | |
| 10121 | ; |
| 10122 | return 0; |
| 10123 | } |
| 10124 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10125 | if ac_fn_cxx_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10126 | ac_cv_prog_cxx_g=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10127 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10129 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10130 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10131 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10133 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 10134 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10135 | { $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] | 10136 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 10137 | if test "$ac_test_CXXFLAGS" = set; then |
| 10138 | CXXFLAGS=$ac_save_CXXFLAGS |
| 10139 | elif test $ac_cv_prog_cxx_g = yes; then |
| 10140 | if test "$GXX" = yes; then |
| 10141 | CXXFLAGS="-g -O2" |
| 10142 | else |
| 10143 | CXXFLAGS="-g" |
| 10144 | fi |
| 10145 | else |
| 10146 | if test "$GXX" = yes; then |
| 10147 | CXXFLAGS="-O2" |
| 10148 | else |
| 10149 | CXXFLAGS= |
| 10150 | fi |
| 10151 | fi |
| 10152 | ac_ext=cpp |
| 10153 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10154 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10155 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10156 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10157 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 10158 | AX_CXX_BOOL |
| 10159 | AX_CXX_NAMESPACES |
| 10160 | AX_CXX_NAMESPACE_STD |
| 10161 | AC_CXX_HAVE_STD_LIBS |
| 10162 | AC_CXX_HAVE_LSTRING |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10163 | |
| 10164 | |
| 10165 | OPENMP_CXXFLAGS= |
| 10166 | # Check whether --enable-openmp was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10167 | if test "${enable_openmp+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10168 | enableval=$enable_openmp; |
| 10169 | fi |
| 10170 | |
| 10171 | if test "$enable_openmp" != no; then |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 |
| 10173 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10174 | if test "${ac_cv_prog_cxx_openmp+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10175 | $as_echo_n "(cached) " >&6 |
| 10176 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10178 | /* end confdefs.h. */ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10179 | |
| 10180 | #ifndef _OPENMP |
| 10181 | choke me |
| 10182 | #endif |
| 10183 | #include <omp.h> |
| 10184 | int main () { return omp_get_num_threads (); } |
| 10185 | |
| 10186 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10187 | if ac_fn_cxx_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10188 | ac_cv_prog_cxx_openmp='none needed' |
| 10189 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10190 | ac_cv_prog_cxx_openmp='unsupported' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10191 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 10192 | ac_save_CXXFLAGS=$CXXFLAGS |
| 10193 | CXXFLAGS="$CXXFLAGS $ac_option" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10195 | /* end confdefs.h. */ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10196 | |
| 10197 | #ifndef _OPENMP |
| 10198 | choke me |
| 10199 | #endif |
| 10200 | #include <omp.h> |
| 10201 | int main () { return omp_get_num_threads (); } |
| 10202 | |
| 10203 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10204 | if ac_fn_cxx_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10205 | ac_cv_prog_cxx_openmp=$ac_option |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10206 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10207 | rm -f core conftest.err conftest.$ac_objext \ |
| 10208 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10209 | CXXFLAGS=$ac_save_CXXFLAGS |
| 10210 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 10211 | break |
| 10212 | fi |
| 10213 | done |
| 10214 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10215 | rm -f core conftest.err conftest.$ac_objext \ |
| 10216 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10217 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10218 | { $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] | 10219 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 10220 | case $ac_cv_prog_cxx_openmp in #( |
| 10221 | "none needed" | unsupported) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10222 | ;; #( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10223 | *) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10224 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10225 | esac |
| 10226 | fi |
| 10227 | |
| 10228 | |
| 10229 | ac_ext=c |
| 10230 | ac_cpp='$CPP $CPPFLAGS' |
| 10231 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10232 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10233 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10234 | |
| 10235 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10236 | { $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] | 10237 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 10238 | if \ |
cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 10239 | test $ax_cv_cxx_bool = 'yes' && \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10240 | test $ac_cv_cxx_have_lstring = 'yes' && \ |
cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 10241 | test $ax_cv_cxx_namespaces = 'yes' && \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10242 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 10243 | test $ax_cv_cxx_have_std_namespace = 'yes'; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10244 | have_magick_plus_plus='yes' |
| 10245 | else |
| 10246 | have_magick_plus_plus='no (failed tests)' |
| 10247 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10249 | $as_echo "$have_magick_plus_plus" >&6; } |
| 10250 | LIBS="$OLIBS" |
| 10251 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 10252 | AM_CONDITIONAL(WITH_MAGICK_PLUS_PLUS, test "$have_magick_plus_plus" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10253 | |
| 10254 | # Only check for delegate libraries in subdirectories if requested. |
| 10255 | if test "$enable_delegate_build" != 'no'; then |
| 10256 | # Check for delegate sub-directories and add -I & -L options as required. |
| 10257 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 10258 | # README. If delegates are installed in a standard location where the |
| 10259 | # compiler will automatically find them then these options should not be |
| 10260 | # required. |
| 10261 | |
| 10262 | # |
| 10263 | # Most delegates have includes in the same directory as the library, but not all... |
| 10264 | # |
| 10265 | # Includes |
cristy | 5850e4b | 2010-01-08 14:28:24 +0000 | [diff] [blame] | 10266 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10267 | if test -d "$builddir/$dir"; then |
| 10268 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 10269 | else |
| 10270 | if test -d "$srcdirfull/$dir"; then |
| 10271 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 10272 | fi |
| 10273 | fi |
| 10274 | done |
| 10275 | |
| 10276 | # Libraries |
cristy | 5850e4b | 2010-01-08 14:28:24 +0000 | [diff] [blame] | 10277 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10278 | if test -d "$builddir/$dir/.libs"; then |
| 10279 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 10280 | else |
| 10281 | if test -d "$srcdirfull/$dir/.libs"; then |
| 10282 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 10283 | fi |
| 10284 | fi |
| 10285 | if test -d "$builddir/$dir"; then |
| 10286 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 10287 | else |
| 10288 | if test -d "$srcdirfull/$dir"; then |
| 10289 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 10290 | fi |
| 10291 | fi |
| 10292 | done |
| 10293 | fi |
| 10294 | |
| 10295 | # Assume that delegate headers reside under same directory as ImageMagick |
| 10296 | # installation prefix. |
| 10297 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" |
| 10298 | |
| 10299 | # |
| 10300 | # Find the X11 RGB database |
| 10301 | # |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10303 | $as_echo_n "checking for X11 configure files... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10304 | if test "${im_cv_x_configure+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10305 | $as_echo_n "(cached) " >&6 |
| 10306 | else |
| 10307 | # Look for the header file in a standard set of common directories. |
| 10308 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 10309 | for ac_dir in \ |
| 10310 | /lib/usr/lib/X11 \ |
| 10311 | /usr/X11/lib \ |
| 10312 | /usr/X11R4/lib \ |
| 10313 | /usr/X11R5/lib \ |
| 10314 | /usr/X11R6/lib \ |
| 10315 | /usr/X11R7/lib \ |
| 10316 | /usr/X386/lib \ |
| 10317 | /usr/XFree86/lib/X11 \ |
| 10318 | /usr/athena/lib \ |
| 10319 | /usr/lib \ |
| 10320 | /usr/lib/X11 \ |
| 10321 | /usr/lib/X11R4 \ |
| 10322 | /usr/lib/X11R5 \ |
| 10323 | /usr/lib/X11R6 \ |
| 10324 | /usr/lib/X11R7 \ |
| 10325 | /usr/local/X11/lib \ |
| 10326 | /usr/local/X11R4/lib \ |
| 10327 | /usr/local/X11R5/lib \ |
| 10328 | /usr/local/X11R6/lib \ |
| 10329 | /usr/local/lib \ |
| 10330 | /usr/local/lib/X11 \ |
| 10331 | /usr/local/lib/X11R4 \ |
| 10332 | /usr/local/lib/X11R5 \ |
| 10333 | /usr/local/lib/X11R6 \ |
| 10334 | /usr/local/lib/X11R7 \ |
| 10335 | /usr/local/x11r5/lib \ |
| 10336 | /usr/lpp/Xamples/lib \ |
| 10337 | /usr/openwin/lib \ |
| 10338 | /usr/openwin/share/lib \ |
| 10339 | /usr/unsupported/lib \ |
| 10340 | /usr/x386/lib \ |
| 10341 | ; do |
| 10342 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 10343 | im_cv_x_configure="$ac_dir/X11/" |
| 10344 | break |
| 10345 | elif test -f "$ac_dir/rgb.txt"; then |
| 10346 | im_cv_x_configure="$ac_dir/" |
| 10347 | break |
| 10348 | fi |
| 10349 | |
| 10350 | done |
| 10351 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10353 | $as_echo "$im_cv_x_configure" >&6; } |
| 10354 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 10355 | case "${build_os}" in |
| 10356 | mingw* ) |
| 10357 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 10358 | ;; |
| 10359 | esac |
| 10360 | |
| 10361 | cat >>confdefs.h <<_ACEOF |
| 10362 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 10363 | _ACEOF |
| 10364 | |
| 10365 | |
| 10366 | # |
| 10367 | # Find OpenMP library |
| 10368 | # |
| 10369 | GOMP_LIBS='' |
| 10370 | if test "$enable_openmp" != 'no'; then |
| 10371 | if test "${GCC}" = "yes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10372 | { $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] | 10373 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10374 | if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10375 | $as_echo_n "(cached) " >&6 |
| 10376 | else |
| 10377 | ac_check_lib_save_LIBS=$LIBS |
| 10378 | LIBS="-lgomp $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10380 | /* end confdefs.h. */ |
| 10381 | |
| 10382 | /* Override any GCC internal prototype to avoid an error. |
| 10383 | Use char because int might match the return type of a GCC |
| 10384 | builtin and then its argument prototype would still apply. */ |
| 10385 | #ifdef __cplusplus |
| 10386 | extern "C" |
| 10387 | #endif |
| 10388 | char GOMP_parallel_start (); |
| 10389 | int |
| 10390 | main () |
| 10391 | { |
| 10392 | return GOMP_parallel_start (); |
| 10393 | ; |
| 10394 | return 0; |
| 10395 | } |
| 10396 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10397 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10398 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 10399 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10400 | ac_cv_lib_gomp_GOMP_parallel_start=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10401 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10402 | rm -f core conftest.err conftest.$ac_objext \ |
| 10403 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10404 | LIBS=$ac_check_lib_save_LIBS |
| 10405 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10406 | { $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] | 10407 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10408 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10409 | GOMP_LIBS="-lgomp" |
| 10410 | fi |
| 10411 | # gcc |
| 10412 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10413 | { $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] | 10414 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10415 | if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10416 | $as_echo_n "(cached) " >&6 |
| 10417 | else |
| 10418 | ac_check_lib_save_LIBS=$LIBS |
| 10419 | LIBS="-lmtsk $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10421 | /* end confdefs.h. */ |
| 10422 | |
| 10423 | /* Override any GCC internal prototype to avoid an error. |
| 10424 | Use char because int might match the return type of a GCC |
| 10425 | builtin and then its argument prototype would still apply. */ |
| 10426 | #ifdef __cplusplus |
| 10427 | extern "C" |
| 10428 | #endif |
| 10429 | char sunw_mp_register_warn (); |
| 10430 | int |
| 10431 | main () |
| 10432 | { |
| 10433 | return sunw_mp_register_warn (); |
| 10434 | ; |
| 10435 | return 0; |
| 10436 | } |
| 10437 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10438 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10439 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 10440 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10441 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10442 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10443 | rm -f core conftest.err conftest.$ac_objext \ |
| 10444 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10445 | LIBS=$ac_check_lib_save_LIBS |
| 10446 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10447 | { $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] | 10448 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10449 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10450 | GOMP_LIBS="-lmtsk" |
| 10451 | fi |
| 10452 | # solaris cc |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10454 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10455 | if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10456 | $as_echo_n "(cached) " >&6 |
| 10457 | else |
| 10458 | ac_check_lib_save_LIBS=$LIBS |
| 10459 | LIBS="-lxlsmp $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10461 | /* end confdefs.h. */ |
| 10462 | |
| 10463 | /* Override any GCC internal prototype to avoid an error. |
| 10464 | Use char because int might match the return type of a GCC |
| 10465 | builtin and then its argument prototype would still apply. */ |
| 10466 | #ifdef __cplusplus |
| 10467 | extern "C" |
| 10468 | #endif |
| 10469 | char _xlsmpFlush (); |
| 10470 | int |
| 10471 | main () |
| 10472 | { |
| 10473 | return _xlsmpFlush (); |
| 10474 | ; |
| 10475 | return 0; |
| 10476 | } |
| 10477 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10478 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10479 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 10480 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10481 | ac_cv_lib_xlsmp__xlsmpFlush=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10482 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10483 | rm -f core conftest.err conftest.$ac_objext \ |
| 10484 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10485 | LIBS=$ac_check_lib_save_LIBS |
| 10486 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10487 | { $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] | 10488 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10489 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10490 | GOMP_LIBS="-lxlsmp" |
| 10491 | fi |
| 10492 | # AIX xlc |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10493 | { $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] | 10494 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10495 | if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10496 | $as_echo_n "(cached) " >&6 |
| 10497 | else |
| 10498 | ac_check_lib_save_LIBS=$LIBS |
| 10499 | LIBS="-lmp $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10501 | /* end confdefs.h. */ |
| 10502 | |
| 10503 | /* Override any GCC internal prototype to avoid an error. |
| 10504 | Use char because int might match the return type of a GCC |
| 10505 | builtin and then its argument prototype would still apply. */ |
| 10506 | #ifdef __cplusplus |
| 10507 | extern "C" |
| 10508 | #endif |
| 10509 | char mp_destroy (); |
| 10510 | int |
| 10511 | main () |
| 10512 | { |
| 10513 | return mp_destroy (); |
| 10514 | ; |
| 10515 | return 0; |
| 10516 | } |
| 10517 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10518 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10519 | ac_cv_lib_mp_mp_destroy=yes |
| 10520 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10521 | ac_cv_lib_mp_mp_destroy=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10522 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10523 | rm -f core conftest.err conftest.$ac_objext \ |
| 10524 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10525 | LIBS=$ac_check_lib_save_LIBS |
| 10526 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10527 | { $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] | 10528 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10529 | if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10530 | GOMP_LIBS="-lmp" |
| 10531 | fi |
| 10532 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 10533 | fi |
| 10534 | LIBS="$GOMP_LIBS $LIBS" |
| 10535 | fi |
| 10536 | |
| 10537 | |
| 10538 | # |
| 10539 | # Find Posix threads library |
| 10540 | # |
| 10541 | THREAD_LIBS='' |
| 10542 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 10543 | |
| 10544 | if test "x$PTHREAD_LIBS" = "x"; then |
| 10545 | case "${host_cpu}-${host_os}" in |
| 10546 | *-freebsd*) |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 10547 | MAGICK_CHECK_PTHREAD_LIB(c_r,PTHREAD_LIBS=-lc_r) ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10548 | esac |
| 10549 | fi |
| 10550 | |
| 10551 | for lib in pthread pthreads; do |
| 10552 | if test "x$PTHREAD_LIBS" = "x"; then |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 10553 | MAGICK_CHECK_PTHREAD_LIB($lib,PTHREAD_LIBS=-l$lib) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10554 | fi |
| 10555 | done |
| 10556 | |
| 10557 | THREAD_LIBS="$PTHREAD_LIBS" |
| 10558 | LIBS="$LIBS $THREAD_LIBS" |
| 10559 | fi |
| 10560 | |
| 10561 | |
| 10562 | # |
| 10563 | # Check for umem. |
| 10564 | # |
| 10565 | have_umem='no' |
| 10566 | UMEM_LIBS='' |
| 10567 | if test "$with_umem" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10569 | $as_echo_n "checking for UMEM support ... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10571 | $as_echo "" >&6; } |
| 10572 | failed=0 |
| 10573 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10574 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" |
| 10575 | if test "x$ac_cv_header_umem_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10576 | passed=`expr $passed + 1` |
| 10577 | else |
| 10578 | failed=`expr $failed + 1` |
| 10579 | fi |
| 10580 | |
| 10581 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10582 | { $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] | 10583 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10584 | if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10585 | $as_echo_n "(cached) " >&6 |
| 10586 | else |
| 10587 | ac_check_lib_save_LIBS=$LIBS |
| 10588 | LIBS="-lumem $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10590 | /* end confdefs.h. */ |
| 10591 | |
| 10592 | /* Override any GCC internal prototype to avoid an error. |
| 10593 | Use char because int might match the return type of a GCC |
| 10594 | builtin and then its argument prototype would still apply. */ |
| 10595 | #ifdef __cplusplus |
| 10596 | extern "C" |
| 10597 | #endif |
| 10598 | char umem_alloc (); |
| 10599 | int |
| 10600 | main () |
| 10601 | { |
| 10602 | return umem_alloc (); |
| 10603 | ; |
| 10604 | return 0; |
| 10605 | } |
| 10606 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10607 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10608 | ac_cv_lib_umem_umem_alloc=yes |
| 10609 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10610 | ac_cv_lib_umem_umem_alloc=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10611 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10612 | rm -f core conftest.err conftest.$ac_objext \ |
| 10613 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10614 | LIBS=$ac_check_lib_save_LIBS |
| 10615 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10616 | { $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] | 10617 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10618 | if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10619 | passed=`expr $passed + 1` |
| 10620 | else |
| 10621 | failed=`expr $failed + 1` |
| 10622 | fi |
| 10623 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10624 | { $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] | 10625 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10626 | if test "${ac_cv_lib_umem_umem_free+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10627 | $as_echo_n "(cached) " >&6 |
| 10628 | else |
| 10629 | ac_check_lib_save_LIBS=$LIBS |
| 10630 | LIBS="-lumem $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10632 | /* end confdefs.h. */ |
| 10633 | |
| 10634 | /* Override any GCC internal prototype to avoid an error. |
| 10635 | Use char because int might match the return type of a GCC |
| 10636 | builtin and then its argument prototype would still apply. */ |
| 10637 | #ifdef __cplusplus |
| 10638 | extern "C" |
| 10639 | #endif |
| 10640 | char umem_free (); |
| 10641 | int |
| 10642 | main () |
| 10643 | { |
| 10644 | return umem_free (); |
| 10645 | ; |
| 10646 | return 0; |
| 10647 | } |
| 10648 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10649 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10650 | ac_cv_lib_umem_umem_free=yes |
| 10651 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10652 | ac_cv_lib_umem_umem_free=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10653 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10654 | rm -f core conftest.err conftest.$ac_objext \ |
| 10655 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10656 | LIBS=$ac_check_lib_save_LIBS |
| 10657 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10658 | { $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] | 10659 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10660 | if test "x$ac_cv_lib_umem_umem_free" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10661 | passed=`expr $passed + 1` |
| 10662 | else |
| 10663 | failed=`expr $failed + 1` |
| 10664 | fi |
| 10665 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10666 | { $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] | 10667 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 10668 | if test $passed -gt 0; then |
| 10669 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10670 | { $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] | 10671 | $as_echo "no -- some components failed test" >&6; } |
| 10672 | have_umem='no (failed tests)' |
| 10673 | else |
| 10674 | UMEM_LIBS='-lumem' |
| 10675 | LIBS="$UMEM_LIBS $LIBS" |
| 10676 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10677 | $as_echo "#define HasUMEM 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10678 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10680 | $as_echo "yes" >&6; } |
| 10681 | have_umem='yes' |
| 10682 | fi |
| 10683 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10685 | $as_echo "no" >&6; } |
| 10686 | fi |
| 10687 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 10688 | AM_CONDITIONAL(HasUMEM, test "$have_umem" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10689 | |
| 10690 | |
| 10691 | # |
| 10692 | # Add support for ccmalloc memory debugging library if requested |
| 10693 | # |
| 10694 | have_ccmalloc='no' |
| 10695 | CCMALLOC_LIBS='' |
| 10696 | if test "$enable_ccmalloc" = 'yes'; then |
| 10697 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 10698 | set dummy ccmalloc; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10700 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10701 | if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10702 | $as_echo_n "(cached) " >&6 |
| 10703 | else |
| 10704 | case $CCMALLOCDelegate in |
| 10705 | [\\/]* | ?:[\\/]*) |
| 10706 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 10707 | ;; |
| 10708 | *) |
| 10709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10710 | for as_dir in $PATH |
| 10711 | do |
| 10712 | IFS=$as_save_IFS |
| 10713 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10714 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10716 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10717 | $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] | 10718 | break 2 |
| 10719 | fi |
| 10720 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10721 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10722 | IFS=$as_save_IFS |
| 10723 | |
| 10724 | ;; |
| 10725 | esac |
| 10726 | fi |
| 10727 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 10728 | if test -n "$CCMALLOCDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10730 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 10731 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10733 | $as_echo "no" >&6; } |
| 10734 | fi |
| 10735 | |
| 10736 | |
| 10737 | if test -n "$CCMALLOCDelegate"; then |
| 10738 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 10739 | OLIBS="$LIBS" |
| 10740 | # Assume that gcc is used with ccmalloc. |
| 10741 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10742 | { $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] | 10743 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10744 | if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10745 | $as_echo_n "(cached) " >&6 |
| 10746 | else |
| 10747 | ac_check_lib_save_LIBS=$LIBS |
| 10748 | LIBS="-lccmalloc -ldl $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10749 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10750 | /* end confdefs.h. */ |
| 10751 | |
| 10752 | /* Override any GCC internal prototype to avoid an error. |
| 10753 | Use char because int might match the return type of a GCC |
| 10754 | builtin and then its argument prototype would still apply. */ |
| 10755 | #ifdef __cplusplus |
| 10756 | extern "C" |
| 10757 | #endif |
| 10758 | char ccmalloc_malloc (); |
| 10759 | int |
| 10760 | main () |
| 10761 | { |
| 10762 | return ccmalloc_malloc (); |
| 10763 | ; |
| 10764 | return 0; |
| 10765 | } |
| 10766 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10767 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10768 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 10769 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10770 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10771 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10772 | rm -f core conftest.err conftest.$ac_objext \ |
| 10773 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10774 | LIBS=$ac_check_lib_save_LIBS |
| 10775 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10776 | { $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] | 10777 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10778 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10779 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 10780 | fi |
| 10781 | |
| 10782 | if test -n "$CCMALLOC_LIBS"; then |
| 10783 | LIBS="$OLIBS" |
| 10784 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 10785 | have_ccmalloc='yes' |
| 10786 | else |
| 10787 | LIBS="$OLIBS" |
| 10788 | fi |
| 10789 | fi |
| 10790 | fi |
| 10791 | |
| 10792 | # |
| 10793 | # Add support for efence memory debugging library if requested |
| 10794 | # |
| 10795 | if test "$enable_efence" = 'yes'; then |
| 10796 | EFENCE_LIBS='-lefence' |
| 10797 | LIBS="$EFENCE_LIBS $LIBS" |
| 10798 | fi |
| 10799 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10800 | |
| 10801 | # |
| 10802 | # Check for BZLIB |
| 10803 | # |
| 10804 | |
| 10805 | |
| 10806 | # Check whether --with-bzlib was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10807 | if test "${with_bzlib+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10808 | withval=$with_bzlib; with_bzlib=$withval |
| 10809 | else |
| 10810 | with_bzlib='yes' |
| 10811 | fi |
| 10812 | |
| 10813 | |
| 10814 | if test "$with_bzlib" != 'yes'; then |
| 10815 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 10816 | fi |
| 10817 | |
| 10818 | have_bzlib='no' |
| 10819 | if test "$with_bzlib" != 'no'; then |
| 10820 | BZLIB_LIBS='' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10822 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10824 | $as_echo_n "checking for BZLIB... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10826 | $as_echo "" >&6; } |
| 10827 | failed=0 |
| 10828 | passed=0 |
| 10829 | found_libbz=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10830 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
| 10831 | if test "x$ac_cv_header_bzlib_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10832 | passed=`expr $passed + 1` |
| 10833 | else |
| 10834 | failed=`expr $failed + 1` |
| 10835 | fi |
| 10836 | |
| 10837 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10838 | { $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] | 10839 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10840 | if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10841 | $as_echo_n "(cached) " >&6 |
| 10842 | else |
| 10843 | ac_check_lib_save_LIBS=$LIBS |
| 10844 | LIBS="-lbz2 $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10846 | /* end confdefs.h. */ |
| 10847 | |
| 10848 | /* Override any GCC internal prototype to avoid an error. |
| 10849 | Use char because int might match the return type of a GCC |
| 10850 | builtin and then its argument prototype would still apply. */ |
| 10851 | #ifdef __cplusplus |
| 10852 | extern "C" |
| 10853 | #endif |
| 10854 | char BZ2_bzDecompress (); |
| 10855 | int |
| 10856 | main () |
| 10857 | { |
| 10858 | return BZ2_bzDecompress (); |
| 10859 | ; |
| 10860 | return 0; |
| 10861 | } |
| 10862 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10863 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10864 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 10865 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10866 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10867 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10868 | rm -f core conftest.err conftest.$ac_objext \ |
| 10869 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10870 | LIBS=$ac_check_lib_save_LIBS |
| 10871 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10872 | { $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] | 10873 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10874 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10875 | found_libbz=`expr $found_libbz + 1` |
| 10876 | fi |
| 10877 | |
| 10878 | if test "$native_win32_build" = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10879 | { $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] | 10880 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10881 | if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10882 | $as_echo_n "(cached) " >&6 |
| 10883 | else |
| 10884 | ac_check_lib_save_LIBS=$LIBS |
| 10885 | LIBS="-lbz2 $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10887 | /* end confdefs.h. */ |
| 10888 | |
| 10889 | /* Override any GCC internal prototype to avoid an error. |
| 10890 | Use char because int might match the return type of a GCC |
| 10891 | builtin and then its argument prototype would still apply. */ |
| 10892 | #ifdef __cplusplus |
| 10893 | extern "C" |
| 10894 | #endif |
| 10895 | char _imp__BZ2_decompress (); |
| 10896 | int |
| 10897 | main () |
| 10898 | { |
| 10899 | return _imp__BZ2_decompress (); |
| 10900 | ; |
| 10901 | return 0; |
| 10902 | } |
| 10903 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10904 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10905 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 10906 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10907 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10908 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10909 | rm -f core conftest.err conftest.$ac_objext \ |
| 10910 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10911 | LIBS=$ac_check_lib_save_LIBS |
| 10912 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10913 | { $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] | 10914 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10915 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10916 | found_libbz=`expr $found_libbz + 1` |
| 10917 | fi |
| 10918 | |
| 10919 | fi |
| 10920 | if test $found_libbz -gt 0; then |
| 10921 | passed=`expr $passed + 1` |
| 10922 | else |
| 10923 | failed=`expr $failed + 1` |
| 10924 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10925 | { $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] | 10926 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 10927 | if test $passed -gt 0; then |
| 10928 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10929 | { $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] | 10930 | $as_echo "no -- some components failed test" >&6; } |
| 10931 | have_bzlib='no (failed tests)' |
| 10932 | else |
| 10933 | BZLIB_LIBS='-lbz2' |
| 10934 | LIBS="$BZLIB_LIBS $LIBS" |
| 10935 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10936 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10937 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10939 | $as_echo "yes" >&6; } |
| 10940 | have_bzlib='yes' |
| 10941 | fi |
| 10942 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10944 | $as_echo "no" >&6; } |
| 10945 | fi |
| 10946 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 10947 | AM_CONDITIONAL(BZLIB_DELEGATE, test "$have_bzlib" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10948 | |
| 10949 | |
| 10950 | # |
| 10951 | # Find the X11 include and library directories. |
| 10952 | # |
| 10953 | IPC_LIBS='' |
| 10954 | X11_LIBS='' |
| 10955 | XEXT_LIBS='' |
| 10956 | XT_LIBS='' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 10958 | $as_echo_n "checking for X... " >&6; } |
| 10959 | |
| 10960 | |
| 10961 | # Check whether --with-x was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10962 | if test "${with_x+set}" = set; then : |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 10963 | withval=$with_x; |
| 10964 | fi |
| 10965 | |
| 10966 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 10967 | if test "x$with_x" = xno; then |
| 10968 | # The user explicitly disabled X. |
| 10969 | have_x=disabled |
| 10970 | else |
| 10971 | case $x_includes,$x_libraries in #( |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 10972 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10973 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 10974 | $as_echo_n "(cached) " >&6 |
| 10975 | else |
| 10976 | # One or both of the vars are not set, and there is no cached value. |
| 10977 | ac_x_includes=no ac_x_libraries=no |
| 10978 | rm -f -r conftest.dir |
| 10979 | if mkdir conftest.dir; then |
| 10980 | cd conftest.dir |
| 10981 | cat >Imakefile <<'_ACEOF' |
| 10982 | incroot: |
| 10983 | @echo incroot='${INCROOT}' |
| 10984 | usrlibdir: |
| 10985 | @echo usrlibdir='${USRLIBDIR}' |
| 10986 | libdir: |
| 10987 | @echo libdir='${LIBDIR}' |
| 10988 | _ACEOF |
| 10989 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 10990 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 10991 | for ac_var in incroot usrlibdir libdir; do |
| 10992 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 10993 | done |
| 10994 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 10995 | for ac_extension in a so sl dylib la dll; do |
| 10996 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 10997 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 10998 | ac_im_usrlibdir=$ac_im_libdir; break |
| 10999 | fi |
| 11000 | done |
| 11001 | # Screen out bogus values from the imake configuration. They are |
| 11002 | # bogus both because they are the default anyway, and because |
| 11003 | # using them would break gcc on systems where it needs fixed includes. |
| 11004 | case $ac_im_incroot in |
| 11005 | /usr/include) ac_x_includes= ;; |
| 11006 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 11007 | esac |
| 11008 | case $ac_im_usrlibdir in |
| 11009 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 11010 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 11011 | esac |
| 11012 | fi |
| 11013 | cd .. |
| 11014 | rm -f -r conftest.dir |
| 11015 | fi |
| 11016 | |
| 11017 | # Standard set of common directories for X headers. |
| 11018 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 11019 | ac_x_header_dirs=' |
| 11020 | /usr/X11/include |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11021 | /usr/X11R7/include |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11022 | /usr/X11R6/include |
| 11023 | /usr/X11R5/include |
| 11024 | /usr/X11R4/include |
| 11025 | |
| 11026 | /usr/include/X11 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11027 | /usr/include/X11R7 |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11028 | /usr/include/X11R6 |
| 11029 | /usr/include/X11R5 |
| 11030 | /usr/include/X11R4 |
| 11031 | |
| 11032 | /usr/local/X11/include |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11033 | /usr/local/X11R7/include |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11034 | /usr/local/X11R6/include |
| 11035 | /usr/local/X11R5/include |
| 11036 | /usr/local/X11R4/include |
| 11037 | |
| 11038 | /usr/local/include/X11 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11039 | /usr/local/include/X11R7 |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11040 | /usr/local/include/X11R6 |
| 11041 | /usr/local/include/X11R5 |
| 11042 | /usr/local/include/X11R4 |
| 11043 | |
| 11044 | /usr/X386/include |
| 11045 | /usr/x386/include |
| 11046 | /usr/XFree86/include/X11 |
| 11047 | |
| 11048 | /usr/include |
| 11049 | /usr/local/include |
| 11050 | /usr/unsupported/include |
| 11051 | /usr/athena/include |
| 11052 | /usr/local/x11r5/include |
| 11053 | /usr/lpp/Xamples/include |
| 11054 | |
| 11055 | /usr/openwin/include |
| 11056 | /usr/openwin/share/include' |
| 11057 | |
| 11058 | if test "$ac_x_includes" = no; then |
| 11059 | # Guess where to find include files, by looking for Xlib.h. |
| 11060 | # First, try using that file with no special directory specified. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11062 | /* end confdefs.h. */ |
| 11063 | #include <X11/Xlib.h> |
| 11064 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11065 | if ac_fn_c_try_cpp "$LINENO"; then : |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11066 | # We can compile using X headers with no special include directory. |
| 11067 | ac_x_includes= |
| 11068 | else |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11069 | for ac_dir in $ac_x_header_dirs; do |
| 11070 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 11071 | ac_x_includes=$ac_dir |
| 11072 | break |
| 11073 | fi |
| 11074 | done |
| 11075 | fi |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11076 | rm -f conftest.err conftest.$ac_ext |
| 11077 | fi # $ac_x_includes = no |
| 11078 | |
| 11079 | if test "$ac_x_libraries" = no; then |
| 11080 | # Check for the libraries. |
| 11081 | # See if we find them without any special options. |
| 11082 | # Don't add to $LIBS permanently. |
| 11083 | ac_save_LIBS=$LIBS |
| 11084 | LIBS="-lX11 $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11086 | /* end confdefs.h. */ |
| 11087 | #include <X11/Xlib.h> |
| 11088 | int |
| 11089 | main () |
| 11090 | { |
| 11091 | XrmInitialize () |
| 11092 | ; |
| 11093 | return 0; |
| 11094 | } |
| 11095 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11096 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11097 | LIBS=$ac_save_LIBS |
| 11098 | # We can link X programs with no special library path. |
| 11099 | ac_x_libraries= |
| 11100 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11101 | LIBS=$ac_save_LIBS |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11102 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 11103 | do |
| 11104 | # Don't even attempt the hair of trying to link an X program! |
| 11105 | for ac_extension in a so sl dylib la dll; do |
| 11106 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 11107 | ac_x_libraries=$ac_dir |
| 11108 | break 2 |
| 11109 | fi |
| 11110 | done |
| 11111 | done |
| 11112 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11113 | rm -f core conftest.err conftest.$ac_objext \ |
| 11114 | conftest$ac_exeext conftest.$ac_ext |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11115 | fi # $ac_x_libraries = no |
| 11116 | |
| 11117 | case $ac_x_includes,$ac_x_libraries in #( |
| 11118 | no,* | *,no | *\'*) |
| 11119 | # Didn't find X, or a directory has "'" in its name. |
| 11120 | ac_cv_have_x="have_x=no";; #( |
| 11121 | *) |
| 11122 | # Record where we found X for the cache. |
| 11123 | ac_cv_have_x="have_x=yes\ |
| 11124 | ac_x_includes='$ac_x_includes'\ |
| 11125 | ac_x_libraries='$ac_x_libraries'" |
| 11126 | esac |
| 11127 | fi |
| 11128 | ;; #( |
| 11129 | *) have_x=yes;; |
| 11130 | esac |
| 11131 | eval "$ac_cv_have_x" |
| 11132 | fi # $with_x != no |
| 11133 | |
| 11134 | if test "$have_x" != yes; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 11136 | $as_echo "$have_x" >&6; } |
| 11137 | no_x=yes |
| 11138 | else |
| 11139 | # If each of the values was on the command line, it overrides each guess. |
| 11140 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 11141 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 11142 | # Update the cache value to reflect the command line values. |
| 11143 | ac_cv_have_x="have_x=yes\ |
| 11144 | ac_x_includes='$x_includes'\ |
| 11145 | ac_x_libraries='$x_libraries'" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11146 | { $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] | 11147 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 11148 | fi |
| 11149 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11150 | if test "$no_x" = yes; then |
| 11151 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 11152 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11153 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11154 | |
| 11155 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 11156 | else |
| 11157 | if test -n "$x_includes"; then |
| 11158 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 11159 | fi |
| 11160 | |
| 11161 | # It would also be nice to do this for all -L options, not just this one. |
| 11162 | if test -n "$x_libraries"; then |
| 11163 | X_LIBS="$X_LIBS -L$x_libraries" |
| 11164 | # For Solaris; some versions of Sun CC require a space after -R and |
| 11165 | # others require no space. Words are not sufficient . . . . |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11166 | { $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] | 11167 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 11168 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 11169 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 11170 | ac_c_werror_flag=yes |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11172 | /* end confdefs.h. */ |
| 11173 | |
| 11174 | int |
| 11175 | main () |
| 11176 | { |
| 11177 | |
| 11178 | ; |
| 11179 | return 0; |
| 11180 | } |
| 11181 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11182 | if ac_fn_c_try_link "$LINENO"; then : |
| 11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11184 | $as_echo "no" >&6; } |
| 11185 | X_LIBS="$X_LIBS -R$x_libraries" |
| 11186 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11187 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 11188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11189 | /* end confdefs.h. */ |
| 11190 | |
| 11191 | int |
| 11192 | main () |
| 11193 | { |
| 11194 | |
| 11195 | ; |
| 11196 | return 0; |
| 11197 | } |
| 11198 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11199 | if ac_fn_c_try_link "$LINENO"; then : |
| 11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11201 | $as_echo "yes" >&6; } |
| 11202 | X_LIBS="$X_LIBS -R $x_libraries" |
| 11203 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11205 | $as_echo "neither works" >&6; } |
| 11206 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11207 | rm -f core conftest.err conftest.$ac_objext \ |
| 11208 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11209 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11210 | rm -f core conftest.err conftest.$ac_objext \ |
| 11211 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11212 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 11213 | LIBS=$ac_xsave_LIBS |
| 11214 | fi |
| 11215 | |
| 11216 | # Check for system-dependent libraries X programs must link with. |
| 11217 | # Do this before checking for the system-independent R6 libraries |
| 11218 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 11219 | |
| 11220 | if test "$ISC" = yes; then |
| 11221 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 11222 | else |
| 11223 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 11224 | # libraries were built with DECnet support. And Karl Berry says |
| 11225 | # the Alpha needs dnet_stub (dnet does not exist). |
| 11226 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11228 | /* end confdefs.h. */ |
| 11229 | |
| 11230 | /* Override any GCC internal prototype to avoid an error. |
| 11231 | Use char because int might match the return type of a GCC |
| 11232 | builtin and then its argument prototype would still apply. */ |
| 11233 | #ifdef __cplusplus |
| 11234 | extern "C" |
| 11235 | #endif |
| 11236 | char XOpenDisplay (); |
| 11237 | int |
| 11238 | main () |
| 11239 | { |
| 11240 | return XOpenDisplay (); |
| 11241 | ; |
| 11242 | return 0; |
| 11243 | } |
| 11244 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11245 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11246 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11247 | else |
| 11248 | { $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] | 11249 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11250 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11251 | $as_echo_n "(cached) " >&6 |
| 11252 | else |
| 11253 | ac_check_lib_save_LIBS=$LIBS |
| 11254 | LIBS="-ldnet $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11256 | /* end confdefs.h. */ |
| 11257 | |
| 11258 | /* Override any GCC internal prototype to avoid an error. |
| 11259 | Use char because int might match the return type of a GCC |
| 11260 | builtin and then its argument prototype would still apply. */ |
| 11261 | #ifdef __cplusplus |
| 11262 | extern "C" |
| 11263 | #endif |
| 11264 | char dnet_ntoa (); |
| 11265 | int |
| 11266 | main () |
| 11267 | { |
| 11268 | return dnet_ntoa (); |
| 11269 | ; |
| 11270 | return 0; |
| 11271 | } |
| 11272 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11273 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11274 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 11275 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11276 | ac_cv_lib_dnet_dnet_ntoa=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11277 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11278 | rm -f core conftest.err conftest.$ac_objext \ |
| 11279 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11280 | LIBS=$ac_check_lib_save_LIBS |
| 11281 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11282 | { $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] | 11283 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11284 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11285 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 11286 | fi |
| 11287 | |
| 11288 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11289 | { $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] | 11290 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11291 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11292 | $as_echo_n "(cached) " >&6 |
| 11293 | else |
| 11294 | ac_check_lib_save_LIBS=$LIBS |
| 11295 | LIBS="-ldnet_stub $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11297 | /* end confdefs.h. */ |
| 11298 | |
| 11299 | /* Override any GCC internal prototype to avoid an error. |
| 11300 | Use char because int might match the return type of a GCC |
| 11301 | builtin and then its argument prototype would still apply. */ |
| 11302 | #ifdef __cplusplus |
| 11303 | extern "C" |
| 11304 | #endif |
| 11305 | char dnet_ntoa (); |
| 11306 | int |
| 11307 | main () |
| 11308 | { |
| 11309 | return dnet_ntoa (); |
| 11310 | ; |
| 11311 | return 0; |
| 11312 | } |
| 11313 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11314 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11315 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 11316 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11317 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11318 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11319 | rm -f core conftest.err conftest.$ac_objext \ |
| 11320 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11321 | LIBS=$ac_check_lib_save_LIBS |
| 11322 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11323 | { $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] | 11324 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11325 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11326 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 11327 | fi |
| 11328 | |
| 11329 | fi |
| 11330 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11331 | rm -f core conftest.err conftest.$ac_objext \ |
| 11332 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11333 | LIBS="$ac_xsave_LIBS" |
| 11334 | |
| 11335 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 11336 | # to get the SysV transport functions. |
| 11337 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 11338 | # needs -lnsl. |
| 11339 | # The nsl library prevents programs from opening the X display |
| 11340 | # on Irix 5.2, according to T.E. Dickey. |
| 11341 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 11342 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11343 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 11344 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11345 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11346 | fi |
| 11347 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11348 | if test $ac_cv_func_gethostbyname = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11350 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11351 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11352 | $as_echo_n "(cached) " >&6 |
| 11353 | else |
| 11354 | ac_check_lib_save_LIBS=$LIBS |
| 11355 | LIBS="-lnsl $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11357 | /* end confdefs.h. */ |
| 11358 | |
| 11359 | /* Override any GCC internal prototype to avoid an error. |
| 11360 | Use char because int might match the return type of a GCC |
| 11361 | builtin and then its argument prototype would still apply. */ |
| 11362 | #ifdef __cplusplus |
| 11363 | extern "C" |
| 11364 | #endif |
| 11365 | char gethostbyname (); |
| 11366 | int |
| 11367 | main () |
| 11368 | { |
| 11369 | return gethostbyname (); |
| 11370 | ; |
| 11371 | return 0; |
| 11372 | } |
| 11373 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11374 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11375 | ac_cv_lib_nsl_gethostbyname=yes |
| 11376 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11377 | ac_cv_lib_nsl_gethostbyname=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11378 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11379 | rm -f core conftest.err conftest.$ac_objext \ |
| 11380 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11381 | LIBS=$ac_check_lib_save_LIBS |
| 11382 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11383 | { $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] | 11384 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11385 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11386 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 11387 | fi |
| 11388 | |
| 11389 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11391 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11392 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11393 | $as_echo_n "(cached) " >&6 |
| 11394 | else |
| 11395 | ac_check_lib_save_LIBS=$LIBS |
| 11396 | LIBS="-lbsd $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11398 | /* end confdefs.h. */ |
| 11399 | |
| 11400 | /* Override any GCC internal prototype to avoid an error. |
| 11401 | Use char because int might match the return type of a GCC |
| 11402 | builtin and then its argument prototype would still apply. */ |
| 11403 | #ifdef __cplusplus |
| 11404 | extern "C" |
| 11405 | #endif |
| 11406 | char gethostbyname (); |
| 11407 | int |
| 11408 | main () |
| 11409 | { |
| 11410 | return gethostbyname (); |
| 11411 | ; |
| 11412 | return 0; |
| 11413 | } |
| 11414 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11415 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11416 | ac_cv_lib_bsd_gethostbyname=yes |
| 11417 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11418 | ac_cv_lib_bsd_gethostbyname=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11419 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11420 | rm -f core conftest.err conftest.$ac_objext \ |
| 11421 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11422 | LIBS=$ac_check_lib_save_LIBS |
| 11423 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11424 | { $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] | 11425 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11426 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11427 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 11428 | fi |
| 11429 | |
| 11430 | fi |
| 11431 | fi |
| 11432 | |
| 11433 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 11434 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 11435 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 11436 | # on later versions), says Simon Leinen: it contains gethostby* |
| 11437 | # variants that don't use the name server (or something). -lsocket |
| 11438 | # must be given before -lnsl if both are needed. We assume that |
| 11439 | # if connect needs -lnsl, so does gethostbyname. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11440 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 11441 | if test "x$ac_cv_func_connect" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11442 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11443 | fi |
| 11444 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11445 | if test $ac_cv_func_connect = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11447 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11448 | if test "${ac_cv_lib_socket_connect+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11449 | $as_echo_n "(cached) " >&6 |
| 11450 | else |
| 11451 | ac_check_lib_save_LIBS=$LIBS |
| 11452 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11454 | /* end confdefs.h. */ |
| 11455 | |
| 11456 | /* Override any GCC internal prototype to avoid an error. |
| 11457 | Use char because int might match the return type of a GCC |
| 11458 | builtin and then its argument prototype would still apply. */ |
| 11459 | #ifdef __cplusplus |
| 11460 | extern "C" |
| 11461 | #endif |
| 11462 | char connect (); |
| 11463 | int |
| 11464 | main () |
| 11465 | { |
| 11466 | return connect (); |
| 11467 | ; |
| 11468 | return 0; |
| 11469 | } |
| 11470 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11471 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11472 | ac_cv_lib_socket_connect=yes |
| 11473 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11474 | ac_cv_lib_socket_connect=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11475 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11476 | rm -f core conftest.err conftest.$ac_objext \ |
| 11477 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11478 | LIBS=$ac_check_lib_save_LIBS |
| 11479 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11480 | { $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] | 11481 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11482 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11483 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 11484 | fi |
| 11485 | |
| 11486 | fi |
| 11487 | |
| 11488 | # Guillermo Gomez says -lposix is necessary on A/UX. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11489 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 11490 | if test "x$ac_cv_func_remove" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11491 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11492 | fi |
| 11493 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11494 | if test $ac_cv_func_remove = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11496 | $as_echo_n "checking for remove in -lposix... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11497 | if test "${ac_cv_lib_posix_remove+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11498 | $as_echo_n "(cached) " >&6 |
| 11499 | else |
| 11500 | ac_check_lib_save_LIBS=$LIBS |
| 11501 | LIBS="-lposix $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11503 | /* end confdefs.h. */ |
| 11504 | |
| 11505 | /* Override any GCC internal prototype to avoid an error. |
| 11506 | Use char because int might match the return type of a GCC |
| 11507 | builtin and then its argument prototype would still apply. */ |
| 11508 | #ifdef __cplusplus |
| 11509 | extern "C" |
| 11510 | #endif |
| 11511 | char remove (); |
| 11512 | int |
| 11513 | main () |
| 11514 | { |
| 11515 | return remove (); |
| 11516 | ; |
| 11517 | return 0; |
| 11518 | } |
| 11519 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11520 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11521 | ac_cv_lib_posix_remove=yes |
| 11522 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11523 | ac_cv_lib_posix_remove=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11524 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11525 | rm -f core conftest.err conftest.$ac_objext \ |
| 11526 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11527 | LIBS=$ac_check_lib_save_LIBS |
| 11528 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11529 | { $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] | 11530 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11531 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11532 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 11533 | fi |
| 11534 | |
| 11535 | fi |
| 11536 | |
| 11537 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11538 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 11539 | if test "x$ac_cv_func_shmat" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11540 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11541 | fi |
| 11542 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11543 | if test $ac_cv_func_shmat = no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11545 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11546 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11547 | $as_echo_n "(cached) " >&6 |
| 11548 | else |
| 11549 | ac_check_lib_save_LIBS=$LIBS |
| 11550 | LIBS="-lipc $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11552 | /* end confdefs.h. */ |
| 11553 | |
| 11554 | /* Override any GCC internal prototype to avoid an error. |
| 11555 | Use char because int might match the return type of a GCC |
| 11556 | builtin and then its argument prototype would still apply. */ |
| 11557 | #ifdef __cplusplus |
| 11558 | extern "C" |
| 11559 | #endif |
| 11560 | char shmat (); |
| 11561 | int |
| 11562 | main () |
| 11563 | { |
| 11564 | return shmat (); |
| 11565 | ; |
| 11566 | return 0; |
| 11567 | } |
| 11568 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11569 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11570 | ac_cv_lib_ipc_shmat=yes |
| 11571 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11572 | ac_cv_lib_ipc_shmat=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11573 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11574 | rm -f core conftest.err conftest.$ac_objext \ |
| 11575 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11576 | LIBS=$ac_check_lib_save_LIBS |
| 11577 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11578 | { $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] | 11579 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11580 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11581 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 11582 | fi |
| 11583 | |
| 11584 | fi |
| 11585 | fi |
| 11586 | |
| 11587 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 11588 | ac_save_LDFLAGS=$LDFLAGS |
| 11589 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 11590 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 11591 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 11592 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 11593 | # These have to be linked with before -lX11, unlike the other |
| 11594 | # libraries we check for below, so use a different variable. |
| 11595 | # John Interrante, Karl Berry |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11597 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11598 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11599 | $as_echo_n "(cached) " >&6 |
| 11600 | else |
| 11601 | ac_check_lib_save_LIBS=$LIBS |
| 11602 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11604 | /* end confdefs.h. */ |
| 11605 | |
| 11606 | /* Override any GCC internal prototype to avoid an error. |
| 11607 | Use char because int might match the return type of a GCC |
| 11608 | builtin and then its argument prototype would still apply. */ |
| 11609 | #ifdef __cplusplus |
| 11610 | extern "C" |
| 11611 | #endif |
| 11612 | char IceConnectionNumber (); |
| 11613 | int |
| 11614 | main () |
| 11615 | { |
| 11616 | return IceConnectionNumber (); |
| 11617 | ; |
| 11618 | return 0; |
| 11619 | } |
| 11620 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11621 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11622 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 11623 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11624 | ac_cv_lib_ICE_IceConnectionNumber=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11625 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11626 | rm -f core conftest.err conftest.$ac_objext \ |
| 11627 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11628 | LIBS=$ac_check_lib_save_LIBS |
| 11629 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11630 | { $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] | 11631 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11632 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11633 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 11634 | fi |
| 11635 | |
| 11636 | LDFLAGS=$ac_save_LDFLAGS |
| 11637 | |
| 11638 | fi |
| 11639 | |
| 11640 | if test "$no_x" != 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11642 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11644 | $as_echo_n "checking for X11... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11646 | $as_echo "" >&6; } |
| 11647 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 11648 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 11649 | LIBS="$X11_LIBS $LIBS" |
| 11650 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 11651 | |
| 11652 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11653 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11654 | |
| 11655 | # |
| 11656 | # Check for X11 shared memory extension |
| 11657 | # |
| 11658 | # shmctl is required to support the shared memory extension |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11659 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" |
| 11660 | if test "x$ac_cv_func_shmctl" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11661 | have_shmctl='yes' |
| 11662 | fi |
| 11663 | |
| 11664 | if test "$have_shmctl" != 'yes'; then |
| 11665 | PERSIST_LIBS=$LIBS |
| 11666 | LIBS="$LIBS -lcygipc" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11668 | /* end confdefs.h. */ |
| 11669 | |
| 11670 | /* Override any GCC internal prototype to avoid an error. |
| 11671 | Use char because int might match the return type of a GCC |
| 11672 | builtin and then its argument prototype would still apply. */ |
| 11673 | #ifdef __cplusplus |
| 11674 | extern "C" |
| 11675 | #endif |
| 11676 | char shmctl (); |
| 11677 | int |
| 11678 | main () |
| 11679 | { |
| 11680 | return shmctl (); |
| 11681 | ; |
| 11682 | return 0; |
| 11683 | } |
| 11684 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11685 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11686 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11687 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11688 | rm -f core conftest.err conftest.$ac_objext \ |
| 11689 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11690 | LIBS=$PERSIST_LIBS |
| 11691 | fi |
| 11692 | |
| 11693 | if test "$have_shmctl" = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11695 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11696 | if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11697 | $as_echo_n "(cached) " >&6 |
| 11698 | else |
| 11699 | ac_check_lib_save_LIBS=$LIBS |
| 11700 | LIBS="-lXext $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11702 | /* end confdefs.h. */ |
| 11703 | |
| 11704 | /* Override any GCC internal prototype to avoid an error. |
| 11705 | Use char because int might match the return type of a GCC |
| 11706 | builtin and then its argument prototype would still apply. */ |
| 11707 | #ifdef __cplusplus |
| 11708 | extern "C" |
| 11709 | #endif |
| 11710 | char XShmAttach (); |
| 11711 | int |
| 11712 | main () |
| 11713 | { |
| 11714 | return XShmAttach (); |
| 11715 | ; |
| 11716 | return 0; |
| 11717 | } |
| 11718 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11719 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11720 | ac_cv_lib_Xext_XShmAttach=yes |
| 11721 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11722 | ac_cv_lib_Xext_XShmAttach=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11723 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11724 | rm -f core conftest.err conftest.$ac_objext \ |
| 11725 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11726 | LIBS=$ac_check_lib_save_LIBS |
| 11727 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11728 | { $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] | 11729 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11730 | if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11731 | XEXT_LIBS='-lXext' ; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11732 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11733 | |
| 11734 | fi |
| 11735 | |
| 11736 | fi |
| 11737 | |
| 11738 | # |
| 11739 | # Check for X11 shape extension |
| 11740 | # |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11742 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11743 | if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11744 | $as_echo_n "(cached) " >&6 |
| 11745 | else |
| 11746 | ac_check_lib_save_LIBS=$LIBS |
| 11747 | LIBS="-lXext $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11749 | /* end confdefs.h. */ |
| 11750 | |
| 11751 | /* Override any GCC internal prototype to avoid an error. |
| 11752 | Use char because int might match the return type of a GCC |
| 11753 | builtin and then its argument prototype would still apply. */ |
| 11754 | #ifdef __cplusplus |
| 11755 | extern "C" |
| 11756 | #endif |
| 11757 | char XShapeCombineMask (); |
| 11758 | int |
| 11759 | main () |
| 11760 | { |
| 11761 | return XShapeCombineMask (); |
| 11762 | ; |
| 11763 | return 0; |
| 11764 | } |
| 11765 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11766 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11767 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 11768 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11769 | ac_cv_lib_Xext_XShapeCombineMask=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11770 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11771 | rm -f core conftest.err conftest.$ac_objext \ |
| 11772 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11773 | LIBS=$ac_check_lib_save_LIBS |
| 11774 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11775 | { $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] | 11776 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11777 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11778 | XEXT_LIBS='-lXext' ; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11779 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11780 | |
| 11781 | fi |
| 11782 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11784 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11785 | if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11786 | $as_echo_n "(cached) " >&6 |
| 11787 | else |
| 11788 | ac_check_lib_save_LIBS=$LIBS |
| 11789 | LIBS="-lXt $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11791 | /* end confdefs.h. */ |
| 11792 | |
| 11793 | /* Override any GCC internal prototype to avoid an error. |
| 11794 | Use char because int might match the return type of a GCC |
| 11795 | builtin and then its argument prototype would still apply. */ |
| 11796 | #ifdef __cplusplus |
| 11797 | extern "C" |
| 11798 | #endif |
| 11799 | char XtSetEventDispatcher (); |
| 11800 | int |
| 11801 | main () |
| 11802 | { |
| 11803 | return XtSetEventDispatcher (); |
| 11804 | ; |
| 11805 | return 0; |
| 11806 | } |
| 11807 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11808 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11809 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 11810 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11811 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11812 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11813 | rm -f core conftest.err conftest.$ac_objext \ |
| 11814 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11815 | LIBS=$ac_check_lib_save_LIBS |
| 11816 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11817 | { $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] | 11818 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11819 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11820 | XT_LIBS='-lXt' |
| 11821 | fi |
| 11822 | |
| 11823 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 11824 | fi |
| 11825 | if test "$no_x" != 'yes'; then |
| 11826 | have_x='yes' |
| 11827 | else |
| 11828 | have_x='no' |
| 11829 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 11830 | AM_CONDITIONAL(X11_DELEGATE, test "$have_x" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11831 | |
| 11832 | |
| 11833 | |
| 11834 | |
| 11835 | # |
| 11836 | # Check for ZLIB |
| 11837 | # |
| 11838 | |
| 11839 | # Check whether --with-zlib was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11840 | if test "${with_zlib+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11841 | withval=$with_zlib; with_zlib=$withval |
| 11842 | else |
| 11843 | with_zlib='yes' |
| 11844 | fi |
| 11845 | |
| 11846 | |
| 11847 | if test "$with_zlib" != 'yes'; then |
| 11848 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 11849 | fi |
| 11850 | |
| 11851 | have_zlib='no' |
| 11852 | ZLIB_LIBS='' |
| 11853 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11855 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11857 | $as_echo_n "checking for ZLIB... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11859 | $as_echo "" >&6; } |
| 11860 | ZLIB_LIBS='' |
| 11861 | failed=0 |
| 11862 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11863 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" |
| 11864 | if test "x$ac_cv_header_zconf_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11865 | passed=`expr $passed + 1` |
| 11866 | else |
| 11867 | failed=`expr $failed + 1` |
| 11868 | fi |
| 11869 | |
| 11870 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11871 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 11872 | if test "x$ac_cv_header_zlib_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11873 | passed=`expr $passed + 1` |
| 11874 | else |
| 11875 | failed=`expr $failed + 1` |
| 11876 | fi |
| 11877 | |
| 11878 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11880 | $as_echo_n "checking for compress in -lz... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11881 | if test "${ac_cv_lib_z_compress+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11882 | $as_echo_n "(cached) " >&6 |
| 11883 | else |
| 11884 | ac_check_lib_save_LIBS=$LIBS |
| 11885 | LIBS="-lz $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11887 | /* end confdefs.h. */ |
| 11888 | |
| 11889 | /* Override any GCC internal prototype to avoid an error. |
| 11890 | Use char because int might match the return type of a GCC |
| 11891 | builtin and then its argument prototype would still apply. */ |
| 11892 | #ifdef __cplusplus |
| 11893 | extern "C" |
| 11894 | #endif |
| 11895 | char compress (); |
| 11896 | int |
| 11897 | main () |
| 11898 | { |
| 11899 | return compress (); |
| 11900 | ; |
| 11901 | return 0; |
| 11902 | } |
| 11903 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11904 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11905 | ac_cv_lib_z_compress=yes |
| 11906 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11907 | ac_cv_lib_z_compress=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11908 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11909 | rm -f core conftest.err conftest.$ac_objext \ |
| 11910 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11911 | LIBS=$ac_check_lib_save_LIBS |
| 11912 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11913 | { $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] | 11914 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11915 | if test "x$ac_cv_lib_z_compress" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11916 | passed=`expr $passed + 1` |
| 11917 | else |
| 11918 | failed=`expr $failed + 1` |
| 11919 | fi |
| 11920 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11922 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11923 | if test "${ac_cv_lib_z_uncompress+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11924 | $as_echo_n "(cached) " >&6 |
| 11925 | else |
| 11926 | ac_check_lib_save_LIBS=$LIBS |
| 11927 | LIBS="-lz $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11929 | /* end confdefs.h. */ |
| 11930 | |
| 11931 | /* Override any GCC internal prototype to avoid an error. |
| 11932 | Use char because int might match the return type of a GCC |
| 11933 | builtin and then its argument prototype would still apply. */ |
| 11934 | #ifdef __cplusplus |
| 11935 | extern "C" |
| 11936 | #endif |
| 11937 | char uncompress (); |
| 11938 | int |
| 11939 | main () |
| 11940 | { |
| 11941 | return uncompress (); |
| 11942 | ; |
| 11943 | return 0; |
| 11944 | } |
| 11945 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11946 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11947 | ac_cv_lib_z_uncompress=yes |
| 11948 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11949 | ac_cv_lib_z_uncompress=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11950 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11951 | rm -f core conftest.err conftest.$ac_objext \ |
| 11952 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11953 | LIBS=$ac_check_lib_save_LIBS |
| 11954 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11955 | { $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] | 11956 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11957 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11958 | passed=`expr $passed + 1` |
| 11959 | else |
| 11960 | failed=`expr $failed + 1` |
| 11961 | fi |
| 11962 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11964 | $as_echo_n "checking for deflate in -lz... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11965 | if test "${ac_cv_lib_z_deflate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11966 | $as_echo_n "(cached) " >&6 |
| 11967 | else |
| 11968 | ac_check_lib_save_LIBS=$LIBS |
| 11969 | LIBS="-lz $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11971 | /* end confdefs.h. */ |
| 11972 | |
| 11973 | /* Override any GCC internal prototype to avoid an error. |
| 11974 | Use char because int might match the return type of a GCC |
| 11975 | builtin and then its argument prototype would still apply. */ |
| 11976 | #ifdef __cplusplus |
| 11977 | extern "C" |
| 11978 | #endif |
| 11979 | char deflate (); |
| 11980 | int |
| 11981 | main () |
| 11982 | { |
| 11983 | return deflate (); |
| 11984 | ; |
| 11985 | return 0; |
| 11986 | } |
| 11987 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11988 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11989 | ac_cv_lib_z_deflate=yes |
| 11990 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11991 | ac_cv_lib_z_deflate=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11992 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11993 | rm -f core conftest.err conftest.$ac_objext \ |
| 11994 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11995 | LIBS=$ac_check_lib_save_LIBS |
| 11996 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11997 | { $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] | 11998 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11999 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12000 | passed=`expr $passed + 1` |
| 12001 | else |
| 12002 | failed=`expr $failed + 1` |
| 12003 | fi |
| 12004 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12006 | $as_echo_n "checking for inflate in -lz... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12007 | if test "${ac_cv_lib_z_inflate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12008 | $as_echo_n "(cached) " >&6 |
| 12009 | else |
| 12010 | ac_check_lib_save_LIBS=$LIBS |
| 12011 | LIBS="-lz $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12013 | /* end confdefs.h. */ |
| 12014 | |
| 12015 | /* Override any GCC internal prototype to avoid an error. |
| 12016 | Use char because int might match the return type of a GCC |
| 12017 | builtin and then its argument prototype would still apply. */ |
| 12018 | #ifdef __cplusplus |
| 12019 | extern "C" |
| 12020 | #endif |
| 12021 | char inflate (); |
| 12022 | int |
| 12023 | main () |
| 12024 | { |
| 12025 | return inflate (); |
| 12026 | ; |
| 12027 | return 0; |
| 12028 | } |
| 12029 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12030 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12031 | ac_cv_lib_z_inflate=yes |
| 12032 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12033 | ac_cv_lib_z_inflate=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12034 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12035 | rm -f core conftest.err conftest.$ac_objext \ |
| 12036 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12037 | LIBS=$ac_check_lib_save_LIBS |
| 12038 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12039 | { $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] | 12040 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12041 | if test "x$ac_cv_lib_z_inflate" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12042 | passed=`expr $passed + 1` |
| 12043 | else |
| 12044 | failed=`expr $failed + 1` |
| 12045 | fi |
| 12046 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12048 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12049 | if test "${ac_cv_lib_z_gzseek+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12050 | $as_echo_n "(cached) " >&6 |
| 12051 | else |
| 12052 | ac_check_lib_save_LIBS=$LIBS |
| 12053 | LIBS="-lz $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12055 | /* end confdefs.h. */ |
| 12056 | |
| 12057 | /* Override any GCC internal prototype to avoid an error. |
| 12058 | Use char because int might match the return type of a GCC |
| 12059 | builtin and then its argument prototype would still apply. */ |
| 12060 | #ifdef __cplusplus |
| 12061 | extern "C" |
| 12062 | #endif |
| 12063 | char gzseek (); |
| 12064 | int |
| 12065 | main () |
| 12066 | { |
| 12067 | return gzseek (); |
| 12068 | ; |
| 12069 | return 0; |
| 12070 | } |
| 12071 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12072 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12073 | ac_cv_lib_z_gzseek=yes |
| 12074 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12075 | ac_cv_lib_z_gzseek=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12076 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12077 | rm -f core conftest.err conftest.$ac_objext \ |
| 12078 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12079 | LIBS=$ac_check_lib_save_LIBS |
| 12080 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12081 | { $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] | 12082 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12083 | if test "x$ac_cv_lib_z_gzseek" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12084 | passed=`expr $passed + 1` |
| 12085 | else |
| 12086 | failed=`expr $failed + 1` |
| 12087 | fi |
| 12088 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12090 | $as_echo_n "checking for gztell in -lz... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12091 | if test "${ac_cv_lib_z_gztell+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12092 | $as_echo_n "(cached) " >&6 |
| 12093 | else |
| 12094 | ac_check_lib_save_LIBS=$LIBS |
| 12095 | LIBS="-lz $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12097 | /* end confdefs.h. */ |
| 12098 | |
| 12099 | /* Override any GCC internal prototype to avoid an error. |
| 12100 | Use char because int might match the return type of a GCC |
| 12101 | builtin and then its argument prototype would still apply. */ |
| 12102 | #ifdef __cplusplus |
| 12103 | extern "C" |
| 12104 | #endif |
| 12105 | char gztell (); |
| 12106 | int |
| 12107 | main () |
| 12108 | { |
| 12109 | return gztell (); |
| 12110 | ; |
| 12111 | return 0; |
| 12112 | } |
| 12113 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12114 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12115 | ac_cv_lib_z_gztell=yes |
| 12116 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12117 | ac_cv_lib_z_gztell=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12118 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12119 | rm -f core conftest.err conftest.$ac_objext \ |
| 12120 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12121 | LIBS=$ac_check_lib_save_LIBS |
| 12122 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12123 | { $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] | 12124 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12125 | if test "x$ac_cv_lib_z_gztell" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12126 | passed=`expr $passed + 1` |
| 12127 | else |
| 12128 | failed=`expr $failed + 1` |
| 12129 | fi |
| 12130 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12131 | { $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] | 12132 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 12133 | if test $passed -gt 0; then |
| 12134 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12135 | { $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] | 12136 | $as_echo "no -- some components failed test" >&6; } |
| 12137 | have_zlib='no (failed tests)' |
| 12138 | else |
| 12139 | ZLIB_LIBS='-lz' |
| 12140 | LIBS="$ZLIB_LIBS $LIBS" |
| 12141 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12142 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12143 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12145 | $as_echo "yes" >&6; } |
| 12146 | have_zlib='yes' |
| 12147 | fi |
| 12148 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12150 | $as_echo "no" >&6; } |
| 12151 | fi |
| 12152 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12153 | AM_CONDITIONAL(ZLIB_DELEGATE, test "$have_zlib" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12154 | |
| 12155 | |
| 12156 | # |
| 12157 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 12158 | # |
| 12159 | LIB_DL='' |
| 12160 | if test "$enable_profiling" = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12162 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12163 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12164 | $as_echo_n "(cached) " >&6 |
| 12165 | else |
| 12166 | ac_check_lib_save_LIBS=$LIBS |
| 12167 | LIBS="-ldl $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12169 | /* end confdefs.h. */ |
| 12170 | |
| 12171 | /* Override any GCC internal prototype to avoid an error. |
| 12172 | Use char because int might match the return type of a GCC |
| 12173 | builtin and then its argument prototype would still apply. */ |
| 12174 | #ifdef __cplusplus |
| 12175 | extern "C" |
| 12176 | #endif |
| 12177 | char dlopen (); |
| 12178 | int |
| 12179 | main () |
| 12180 | { |
| 12181 | return dlopen (); |
| 12182 | ; |
| 12183 | return 0; |
| 12184 | } |
| 12185 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12186 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12187 | ac_cv_lib_dl_dlopen=yes |
| 12188 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12189 | ac_cv_lib_dl_dlopen=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12190 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12191 | rm -f core conftest.err conftest.$ac_objext \ |
| 12192 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12193 | LIBS=$ac_check_lib_save_LIBS |
| 12194 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12195 | { $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] | 12196 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12197 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12198 | LIB_DL='-ldl' |
| 12199 | fi |
| 12200 | |
| 12201 | LIBS="$LIB_DL $LIBS" |
| 12202 | fi |
| 12203 | |
| 12204 | |
| 12205 | |
| 12206 | # |
| 12207 | # Check for Autotrace delegate library. |
| 12208 | # |
| 12209 | |
| 12210 | # Check whether --with-autotrace was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12211 | if test "${with_autotrace+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12212 | withval=$with_autotrace; with_autotrace=$withval |
| 12213 | else |
| 12214 | with_autotrace='no' |
| 12215 | fi |
| 12216 | |
| 12217 | |
| 12218 | if test "$with_autotrace" != 'yes'; then |
| 12219 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 12220 | fi |
| 12221 | |
| 12222 | have_autotrace='no' |
| 12223 | AUTOTRACE_CFLAGS="" |
| 12224 | AUTOTRACE_LIBS="" |
| 12225 | AUTOTRACE_PKG="" |
| 12226 | if test "x$with_autotrace" = "xyes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12228 | $as_echo "-------------------------------------------------------------" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12229 | PKG_CHECK_MODULES(AUTOTRACE,autotrace >= 0.31.1, have_autotrace=yes, have_autotrace=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12231 | $as_echo "" >&6; } |
| 12232 | fi |
| 12233 | |
| 12234 | if test "$have_autotrace" = 'yes'; then |
| 12235 | failed=0 |
| 12236 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12237 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12238 | |
| 12239 | if test "$with_modules" = 'no'; then |
| 12240 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| 12241 | fi |
| 12242 | fi |
| 12243 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12244 | AM_CONDITIONAL(AUTOTRACE_DELEGATE,test "$have_autotrace" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12245 | |
| 12246 | |
| 12247 | |
| 12248 | |
| 12249 | # |
| 12250 | # Check for Display Postscript delegate library. |
| 12251 | # |
| 12252 | |
| 12253 | # Check whether --with-dps was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12254 | if test "${with_dps+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12255 | withval=$with_dps; with_dps=$withval |
| 12256 | else |
| 12257 | with_dps='yes' |
| 12258 | fi |
| 12259 | |
| 12260 | |
| 12261 | if test "$with_dps" != 'yes'; then |
| 12262 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 12263 | fi |
| 12264 | |
| 12265 | have_dps='no' |
| 12266 | DPS_LIBS='' |
| 12267 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12269 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12271 | $as_echo_n "checking for DPS... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12273 | $as_echo "" >&6; } |
| 12274 | failed=0 |
| 12275 | passed=0 |
| 12276 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 12277 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12278 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" |
| 12279 | if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12280 | passed=`expr $passed + 1` |
| 12281 | else |
| 12282 | failed=`expr $failed + 1` |
| 12283 | fi |
| 12284 | |
| 12285 | |
| 12286 | # DPS issues: |
| 12287 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 12288 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 12289 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 12290 | # ImageMagick itself doesn't use -lXt. |
| 12291 | have_libdps='no' |
| 12292 | LIBDPS_XT='' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12294 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12295 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12296 | $as_echo_n "(cached) " >&6 |
| 12297 | else |
| 12298 | ac_check_lib_save_LIBS=$LIBS |
| 12299 | LIBS="-ldps $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12301 | /* end confdefs.h. */ |
| 12302 | |
| 12303 | /* Override any GCC internal prototype to avoid an error. |
| 12304 | Use char because int might match the return type of a GCC |
| 12305 | builtin and then its argument prototype would still apply. */ |
| 12306 | #ifdef __cplusplus |
| 12307 | extern "C" |
| 12308 | #endif |
| 12309 | char DPSInitialize (); |
| 12310 | int |
| 12311 | main () |
| 12312 | { |
| 12313 | return DPSInitialize (); |
| 12314 | ; |
| 12315 | return 0; |
| 12316 | } |
| 12317 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12318 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12319 | ac_cv_lib_dps_DPSInitialize=yes |
| 12320 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12321 | ac_cv_lib_dps_DPSInitialize=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12322 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12323 | rm -f core conftest.err conftest.$ac_objext \ |
| 12324 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12325 | LIBS=$ac_check_lib_save_LIBS |
| 12326 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12327 | { $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] | 12328 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12329 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12330 | have_libdps='yes' |
| 12331 | else |
| 12332 | have_libdps='no' |
| 12333 | fi |
| 12334 | |
| 12335 | if test "$have_libdps" != 'yes'; then |
| 12336 | # Unset cache variable so we can try again. |
| 12337 | unset ac_cv_lib_dps_DPSInitialize |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12339 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12340 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12341 | $as_echo_n "(cached) " >&6 |
| 12342 | else |
| 12343 | ac_check_lib_save_LIBS=$LIBS |
| 12344 | LIBS="-ldps -lXt $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12346 | /* end confdefs.h. */ |
| 12347 | |
| 12348 | /* Override any GCC internal prototype to avoid an error. |
| 12349 | Use char because int might match the return type of a GCC |
| 12350 | builtin and then its argument prototype would still apply. */ |
| 12351 | #ifdef __cplusplus |
| 12352 | extern "C" |
| 12353 | #endif |
| 12354 | char DPSInitialize (); |
| 12355 | int |
| 12356 | main () |
| 12357 | { |
| 12358 | return DPSInitialize (); |
| 12359 | ; |
| 12360 | return 0; |
| 12361 | } |
| 12362 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12363 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12364 | ac_cv_lib_dps_DPSInitialize=yes |
| 12365 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12366 | ac_cv_lib_dps_DPSInitialize=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12367 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12368 | rm -f core conftest.err conftest.$ac_objext \ |
| 12369 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12370 | LIBS=$ac_check_lib_save_LIBS |
| 12371 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12372 | { $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] | 12373 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12374 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12375 | have_libdps='yes' |
| 12376 | else |
| 12377 | have_libdps='no' |
| 12378 | fi |
| 12379 | |
| 12380 | if test "$have_libdps" = 'yes'; then |
| 12381 | LIBDPS_XT='-lXt' |
| 12382 | fi |
| 12383 | fi |
| 12384 | if test "$have_libdps" = 'yes'; then |
| 12385 | passed=`expr $passed + 1` |
| 12386 | else |
| 12387 | failed=`expr $failed + 1` |
| 12388 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12390 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12391 | if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12392 | $as_echo_n "(cached) " >&6 |
| 12393 | else |
| 12394 | ac_check_lib_save_LIBS=$LIBS |
| 12395 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12397 | /* end confdefs.h. */ |
| 12398 | |
| 12399 | /* Override any GCC internal prototype to avoid an error. |
| 12400 | Use char because int might match the return type of a GCC |
| 12401 | builtin and then its argument prototype would still apply. */ |
| 12402 | #ifdef __cplusplus |
| 12403 | extern "C" |
| 12404 | #endif |
| 12405 | char XDPSPixelsPerPoint (); |
| 12406 | int |
| 12407 | main () |
| 12408 | { |
| 12409 | return XDPSPixelsPerPoint (); |
| 12410 | ; |
| 12411 | return 0; |
| 12412 | } |
| 12413 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12414 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12415 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 12416 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12417 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12418 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12419 | rm -f core conftest.err conftest.$ac_objext \ |
| 12420 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12421 | LIBS=$ac_check_lib_save_LIBS |
| 12422 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12423 | { $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] | 12424 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12425 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12426 | passed=`expr $passed + 1` |
| 12427 | else |
| 12428 | failed=`expr $failed + 1` |
| 12429 | fi |
| 12430 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12431 | { $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] | 12432 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 12433 | if test $passed -gt 0; then |
| 12434 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12435 | { $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] | 12436 | $as_echo "no -- some components failed test" >&6; } |
| 12437 | have_dps='no (failed tests)' |
| 12438 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 12439 | else |
| 12440 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 12441 | LIBS="$DPS_LIBS $LIBS" |
| 12442 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12443 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12444 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12446 | $as_echo "yes" >&6; } |
| 12447 | have_dps='yes' |
| 12448 | fi |
| 12449 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12451 | $as_echo "no" >&6; } |
| 12452 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 12453 | fi |
| 12454 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12455 | AM_CONDITIONAL(DPS_DELEGATE, test "$have_dps" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12456 | |
| 12457 | |
| 12458 | |
| 12459 | # |
| 12460 | # Check for DJVU delegate library. |
| 12461 | # |
| 12462 | |
| 12463 | # Check whether --with-djvu was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12464 | if test "${with_djvu+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12465 | withval=$with_djvu; with_djvu=$withval |
| 12466 | else |
| 12467 | with_djvu='yes' |
| 12468 | fi |
| 12469 | |
| 12470 | |
| 12471 | if test "$with_djvu" != 'yes'; then |
| 12472 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 12473 | fi |
| 12474 | |
| 12475 | have_djvu='no' |
| 12476 | DJVU_LIBS='' |
| 12477 | if test "$with_djvu" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12479 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12481 | $as_echo_n "checking for DJVU... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12483 | $as_echo "" >&6; } |
| 12484 | failed=0 |
| 12485 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12486 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" |
| 12487 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12488 | passed=`expr $passed + 1` |
| 12489 | else |
| 12490 | failed=`expr $failed + 1` |
| 12491 | fi |
| 12492 | |
| 12493 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12494 | { $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] | 12495 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12496 | if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12497 | $as_echo_n "(cached) " >&6 |
| 12498 | else |
| 12499 | ac_check_lib_save_LIBS=$LIBS |
| 12500 | LIBS="-ldjvulibre $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12502 | /* end confdefs.h. */ |
| 12503 | |
| 12504 | /* Override any GCC internal prototype to avoid an error. |
| 12505 | Use char because int might match the return type of a GCC |
| 12506 | builtin and then its argument prototype would still apply. */ |
| 12507 | #ifdef __cplusplus |
| 12508 | extern "C" |
| 12509 | #endif |
| 12510 | char ddjvu_context_create (); |
| 12511 | int |
| 12512 | main () |
| 12513 | { |
| 12514 | return ddjvu_context_create (); |
| 12515 | ; |
| 12516 | return 0; |
| 12517 | } |
| 12518 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12519 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12520 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 12521 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12522 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12523 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12524 | rm -f core conftest.err conftest.$ac_objext \ |
| 12525 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12526 | LIBS=$ac_check_lib_save_LIBS |
| 12527 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12528 | { $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] | 12529 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12530 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12531 | passed=`expr $passed + 1` |
| 12532 | else |
| 12533 | failed=`expr $failed + 1` |
| 12534 | fi |
| 12535 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12536 | { $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] | 12537 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 12538 | if test $passed -gt 0; then |
| 12539 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12540 | { $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] | 12541 | $as_echo "no -- some components failed test" >&6; } |
| 12542 | have_djvu='no (failed tests)' |
| 12543 | else |
| 12544 | DJVU_LIBS='-ldjvulibre' |
| 12545 | LIBS="$DJVU_LIBS $LIBS" |
| 12546 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12547 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12548 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12550 | $as_echo "yes" >&6; } |
| 12551 | have_djvu='yes' |
| 12552 | fi |
| 12553 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12555 | $as_echo "no" >&6; } |
| 12556 | fi |
| 12557 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12558 | AM_CONDITIONAL(DJVU_DELEGATE, test "$have_djvu" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12559 | |
| 12560 | |
| 12561 | |
| 12562 | # |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 12563 | # Set DejaVu font directory. |
| 12564 | # |
| 12565 | |
| 12566 | # Check whether --with-dejavu-font-dir was given. |
| 12567 | if test "${with_dejavu_font_dir+set}" = set; then : |
| 12568 | withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval |
| 12569 | else |
| 12570 | with_dejavu_font_dir='default' |
| 12571 | fi |
| 12572 | |
| 12573 | |
| 12574 | if test "$with_dejavu_font_dir" != 'default'; then |
| 12575 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " |
| 12576 | fi |
| 12577 | |
| 12578 | |
| 12579 | # |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12580 | # Check for FFTW delegate library. |
| 12581 | # |
| 12582 | |
| 12583 | # Check whether --with-fftw was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12584 | if test "${with_fftw+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12585 | withval=$with_fftw; with_fftw=$withval |
| 12586 | else |
| 12587 | with_fftw='yes' |
| 12588 | fi |
| 12589 | |
| 12590 | |
| 12591 | if test "$with_fftw" != 'yes'; then |
| 12592 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 12593 | fi |
| 12594 | |
| 12595 | have_fftw='no' |
| 12596 | FFTW_LIBS='' |
| 12597 | if test "$with_fftw" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12599 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12601 | $as_echo_n "checking for FFTW... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12603 | $as_echo "" >&6; } |
| 12604 | failed=0 |
| 12605 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12606 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 12607 | if test "x$ac_cv_header_fftw3_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12608 | passed=`expr $passed + 1` |
| 12609 | else |
| 12610 | failed=`expr $failed + 1` |
| 12611 | fi |
| 12612 | |
| 12613 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12615 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12616 | if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12617 | $as_echo_n "(cached) " >&6 |
| 12618 | else |
| 12619 | ac_check_lib_save_LIBS=$LIBS |
| 12620 | LIBS="-lfftw3 $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12622 | /* end confdefs.h. */ |
| 12623 | |
| 12624 | /* Override any GCC internal prototype to avoid an error. |
| 12625 | Use char because int might match the return type of a GCC |
| 12626 | builtin and then its argument prototype would still apply. */ |
| 12627 | #ifdef __cplusplus |
| 12628 | extern "C" |
| 12629 | #endif |
| 12630 | char fftw_execute (); |
| 12631 | int |
| 12632 | main () |
| 12633 | { |
| 12634 | return fftw_execute (); |
| 12635 | ; |
| 12636 | return 0; |
| 12637 | } |
| 12638 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12639 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12640 | ac_cv_lib_fftw3_fftw_execute=yes |
| 12641 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12642 | ac_cv_lib_fftw3_fftw_execute=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12643 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12644 | rm -f core conftest.err conftest.$ac_objext \ |
| 12645 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12646 | LIBS=$ac_check_lib_save_LIBS |
| 12647 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12649 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12650 | if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12651 | passed=`expr $passed + 1` |
| 12652 | else |
| 12653 | failed=`expr $failed + 1` |
| 12654 | fi |
| 12655 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12657 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 12658 | if test $passed -gt 0; then |
| 12659 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12660 | { $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] | 12661 | $as_echo "no -- some components failed test" >&6; } |
| 12662 | have_fftw='no (failed tests)' |
| 12663 | else |
| 12664 | FFTW_LIBS='-lfftw3' |
| 12665 | LIBS="$FFTW_LIBS $LIBS" |
| 12666 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12667 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12668 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12670 | $as_echo "yes" >&6; } |
| 12671 | have_fftw='yes' |
| 12672 | fi |
| 12673 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12675 | $as_echo "no" >&6; } |
| 12676 | fi |
| 12677 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12678 | AM_CONDITIONAL(FFTW_DELEGATE, test "$have_fftw" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12679 | |
| 12680 | |
| 12681 | |
| 12682 | # |
| 12683 | # Check for FlashPIX delegate library. |
| 12684 | # |
| 12685 | |
| 12686 | # Check whether --with-fpx was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12687 | if test "${with_fpx+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12688 | withval=$with_fpx; with_fpx=$withval |
| 12689 | else |
| 12690 | with_fpx='yes' |
| 12691 | fi |
| 12692 | |
| 12693 | |
| 12694 | if test "$with_fpx" != 'yes'; then |
| 12695 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 12696 | fi |
| 12697 | |
| 12698 | have_fpx='no' |
| 12699 | FPX_LIBS='' |
| 12700 | if test "$with_fpx" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12702 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12704 | $as_echo_n "checking for FlashPIX... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12706 | $as_echo "" >&6; } |
| 12707 | failed=0 |
| 12708 | passed=0 |
| 12709 | ac_ext=cpp |
| 12710 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12711 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12712 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12713 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12714 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12715 | ac_ext=cpp |
| 12716 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 12721 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 12722 | if test -z "$CXXCPP"; then |
| 12723 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 12724 | $as_echo_n "(cached) " >&6 |
| 12725 | else |
| 12726 | # Double quotes because CXXCPP needs to be expanded |
| 12727 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12728 | do |
| 12729 | ac_preproc_ok=false |
| 12730 | for ac_cxx_preproc_warn_flag in '' yes |
| 12731 | do |
| 12732 | # Use a header file that comes with gcc, so configuring glibc |
| 12733 | # with a fresh cross-compiler works. |
| 12734 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12735 | # <limits.h> exists even on freestanding compilers. |
| 12736 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12737 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12739 | /* end confdefs.h. */ |
| 12740 | #ifdef __STDC__ |
| 12741 | # include <limits.h> |
| 12742 | #else |
| 12743 | # include <assert.h> |
| 12744 | #endif |
| 12745 | Syntax error |
| 12746 | _ACEOF |
| 12747 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12748 | |
| 12749 | else |
| 12750 | # Broken: fails on valid input. |
| 12751 | continue |
| 12752 | fi |
| 12753 | rm -f conftest.err conftest.$ac_ext |
| 12754 | |
| 12755 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12756 | # can be detected and how. |
| 12757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12758 | /* end confdefs.h. */ |
| 12759 | #include <ac_nonexistent.h> |
| 12760 | _ACEOF |
| 12761 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12762 | # Broken: success on invalid input. |
| 12763 | continue |
| 12764 | else |
| 12765 | # Passes both tests. |
| 12766 | ac_preproc_ok=: |
| 12767 | break |
| 12768 | fi |
| 12769 | rm -f conftest.err conftest.$ac_ext |
| 12770 | |
| 12771 | done |
| 12772 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12773 | rm -f conftest.err conftest.$ac_ext |
| 12774 | if $ac_preproc_ok; then : |
| 12775 | break |
| 12776 | fi |
| 12777 | |
| 12778 | done |
| 12779 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12780 | |
| 12781 | fi |
| 12782 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12783 | else |
| 12784 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12785 | fi |
| 12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 12787 | $as_echo "$CXXCPP" >&6; } |
| 12788 | ac_preproc_ok=false |
| 12789 | for ac_cxx_preproc_warn_flag in '' yes |
| 12790 | do |
| 12791 | # Use a header file that comes with gcc, so configuring glibc |
| 12792 | # with a fresh cross-compiler works. |
| 12793 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12794 | # <limits.h> exists even on freestanding compilers. |
| 12795 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12796 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12798 | /* end confdefs.h. */ |
| 12799 | #ifdef __STDC__ |
| 12800 | # include <limits.h> |
| 12801 | #else |
| 12802 | # include <assert.h> |
| 12803 | #endif |
| 12804 | Syntax error |
| 12805 | _ACEOF |
| 12806 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12807 | |
| 12808 | else |
| 12809 | # Broken: fails on valid input. |
| 12810 | continue |
| 12811 | fi |
| 12812 | rm -f conftest.err conftest.$ac_ext |
| 12813 | |
| 12814 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12815 | # can be detected and how. |
| 12816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12817 | /* end confdefs.h. */ |
| 12818 | #include <ac_nonexistent.h> |
| 12819 | _ACEOF |
| 12820 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12821 | # Broken: success on invalid input. |
| 12822 | continue |
| 12823 | else |
| 12824 | # Passes both tests. |
| 12825 | ac_preproc_ok=: |
| 12826 | break |
| 12827 | fi |
| 12828 | rm -f conftest.err conftest.$ac_ext |
| 12829 | |
| 12830 | done |
| 12831 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12832 | rm -f conftest.err conftest.$ac_ext |
| 12833 | if $ac_preproc_ok; then : |
| 12834 | |
| 12835 | else |
| 12836 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12837 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12838 | as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12839 | See \`config.log' for more details." "$LINENO" 5; } |
| 12840 | fi |
| 12841 | |
| 12842 | ac_ext=cpp |
| 12843 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12844 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12845 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12846 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12847 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12848 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12849 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" |
| 12850 | if test "x$ac_cv_header_fpxlib_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12851 | passed=`expr $passed + 1` |
| 12852 | else |
| 12853 | failed=`expr $failed + 1` |
| 12854 | fi |
| 12855 | |
| 12856 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12857 | { $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] | 12858 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12859 | if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12860 | $as_echo_n "(cached) " >&6 |
| 12861 | else |
| 12862 | ac_check_lib_save_LIBS=$LIBS |
| 12863 | LIBS="-lfpx $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12865 | /* end confdefs.h. */ |
| 12866 | |
| 12867 | /* Override any GCC internal prototype to avoid an error. |
| 12868 | Use char because int might match the return type of a GCC |
| 12869 | builtin and then its argument prototype would still apply. */ |
| 12870 | #ifdef __cplusplus |
| 12871 | extern "C" |
| 12872 | #endif |
| 12873 | char FPX_OpenImageByFilename (); |
| 12874 | int |
| 12875 | main () |
| 12876 | { |
| 12877 | return FPX_OpenImageByFilename (); |
| 12878 | ; |
| 12879 | return 0; |
| 12880 | } |
| 12881 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12882 | if ac_fn_cxx_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12883 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 12884 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12885 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12886 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12887 | rm -f core conftest.err conftest.$ac_objext \ |
| 12888 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12889 | LIBS=$ac_check_lib_save_LIBS |
| 12890 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12891 | { $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] | 12892 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12893 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12894 | passed=`expr $passed + 1` |
| 12895 | else |
| 12896 | failed=`expr $failed + 1` |
| 12897 | fi |
| 12898 | |
| 12899 | ac_ext=c |
| 12900 | ac_cpp='$CPP $CPPFLAGS' |
| 12901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12904 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12905 | { $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] | 12906 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 12907 | if test $passed -gt 0; then |
| 12908 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12909 | { $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] | 12910 | $as_echo "no -- some components failed test" >&6; } |
| 12911 | have_fpx='no (failed tests)' |
| 12912 | else |
| 12913 | FPX_LIBS='-lfpx' |
| 12914 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12915 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12916 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12918 | $as_echo "yes" >&6; } |
| 12919 | have_fpx='yes' |
| 12920 | PERLMAINCC="$CXX" |
| 12921 | fi |
| 12922 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12924 | $as_echo "no" >&6; } |
| 12925 | fi |
| 12926 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12927 | AM_CONDITIONAL(FPX_DELEGATE, test "$have_fpx" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12928 | |
| 12929 | |
| 12930 | |
| 12931 | # |
| 12932 | # Check for fontconfig delegate library. |
| 12933 | # |
| 12934 | |
| 12935 | # Check whether --with-fontconfig was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12936 | if test "${with_fontconfig+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12937 | withval=$with_fontconfig; with_fontconfig=$withval |
| 12938 | else |
| 12939 | with_fontconfig=$have_x |
| 12940 | fi |
| 12941 | |
| 12942 | |
| 12943 | if test "$with_fontconfig" != 'yes'; then |
| 12944 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 12945 | fi |
| 12946 | |
| 12947 | have_fontconfig='no' |
| 12948 | FONTCONFIG_CFLAGS="" |
| 12949 | FONTCONFIG_LIBS="" |
| 12950 | FONTCONFIG_PKG="" |
| 12951 | if test "x$with_fontconfig" = "xyes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12953 | $as_echo "-------------------------------------------------------------" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12954 | PKG_CHECK_MODULES(FONTCONFIG,fontconfig >= 2.1.0, have_fontconfig=yes, have_fontconfig=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12956 | $as_echo "" >&6; } |
| 12957 | fi |
| 12958 | |
| 12959 | if test "$have_fontconfig" = 'yes'; then |
| 12960 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12961 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12962 | |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 12963 | if test "$with_modules" = 'no'; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12964 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 12965 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12966 | fi |
| 12967 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 12968 | AM_CONDITIONAL(FONTCONFIG_DELEGATE,test "$have_fontconfig" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12969 | |
| 12970 | |
| 12971 | |
| 12972 | |
| 12973 | # |
| 12974 | # Check for freetype delegate library. |
| 12975 | # |
| 12976 | |
| 12977 | # Check whether --with-freetype was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12978 | if test "${with_freetype+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12979 | withval=$with_freetype; with_freetype=$withval |
| 12980 | else |
| 12981 | with_freetype='yes' |
| 12982 | fi |
| 12983 | |
| 12984 | |
| 12985 | |
| 12986 | if test "$with_freetype" != 'yes'; then |
| 12987 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 12988 | fi |
| 12989 | |
| 12990 | have_freetype='no' |
| 12991 | FREETYPE_LIBS='' |
| 12992 | if test "$with_freetype" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12994 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12996 | $as_echo_n "checking for FreeType 2.0... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12998 | $as_echo "" >&6; } |
| 12999 | failed=0 |
| 13000 | passed=0 |
cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 13001 | PERSIST_LIBS="$LIBS" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13002 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 13003 | if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then |
| 13004 | : |
| 13005 | else |
| 13006 | freetype_config='' |
| 13007 | for ac_prog in freetype-config |
| 13008 | do |
| 13009 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 13010 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13012 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13013 | if test "${ac_cv_prog_freetype_config+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13014 | $as_echo_n "(cached) " >&6 |
| 13015 | else |
| 13016 | if test -n "$freetype_config"; then |
| 13017 | ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test. |
| 13018 | else |
| 13019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13020 | for as_dir in $PATH |
| 13021 | do |
| 13022 | IFS=$as_save_IFS |
| 13023 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13024 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13026 | ac_cv_prog_freetype_config="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13027 | $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] | 13028 | break 2 |
| 13029 | fi |
| 13030 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13031 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13032 | IFS=$as_save_IFS |
| 13033 | |
| 13034 | fi |
| 13035 | fi |
| 13036 | freetype_config=$ac_cv_prog_freetype_config |
| 13037 | if test -n "$freetype_config"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13039 | $as_echo "$freetype_config" >&6; } |
| 13040 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13042 | $as_echo "no" >&6; } |
| 13043 | fi |
| 13044 | |
| 13045 | |
| 13046 | test -n "$freetype_config" && break |
| 13047 | done |
| 13048 | if test -n "$freetype_config"; then |
| 13049 | freetype_cflags=`$freetype_config --cflags` |
| 13050 | freetype_libs=`$freetype_config --libs` |
cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 13051 | LIBS="$LIBS $freetype_libs" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13052 | CPPFLAGS="$freetype_cflags $CPPFLAGS" |
| 13053 | fi |
| 13054 | fi |
| 13055 | |
| 13056 | if test "$FREETYPE_LIBS" = ''; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13058 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13059 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13060 | $as_echo_n "(cached) " >&6 |
| 13061 | else |
| 13062 | ac_check_lib_save_LIBS=$LIBS |
| 13063 | LIBS="-lfreetype $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13065 | /* end confdefs.h. */ |
| 13066 | |
| 13067 | /* Override any GCC internal prototype to avoid an error. |
| 13068 | Use char because int might match the return type of a GCC |
| 13069 | builtin and then its argument prototype would still apply. */ |
| 13070 | #ifdef __cplusplus |
| 13071 | extern "C" |
| 13072 | #endif |
| 13073 | char FT_Init_FreeType (); |
| 13074 | int |
| 13075 | main () |
| 13076 | { |
| 13077 | return FT_Init_FreeType (); |
| 13078 | ; |
| 13079 | return 0; |
| 13080 | } |
| 13081 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13082 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13083 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 13084 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13085 | ac_cv_lib_freetype_FT_Init_FreeType=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13086 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13087 | rm -f core conftest.err conftest.$ac_objext \ |
| 13088 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13089 | LIBS=$ac_check_lib_save_LIBS |
| 13090 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13092 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13093 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13094 | FREETYPE_LIBS='-lfreetype' |
| 13095 | fi |
| 13096 | |
| 13097 | if test "$FREETYPE_LIBS" != ''; then |
| 13098 | passed=`expr $passed + 1` |
| 13099 | else |
| 13100 | failed=`expr $failed + 1` |
cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 13101 | LIBS="$PERSIST_LIBS" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13102 | fi |
| 13103 | fi |
| 13104 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13105 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
| 13106 | if test "x$ac_cv_header_ft2build_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13107 | FT2BUILD_H='#include <ft2build.h>' |
| 13108 | else |
| 13109 | ft2build='' |
| 13110 | fi |
| 13111 | |
| 13112 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13113 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H |
| 13114 | " |
| 13115 | if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13116 | have_freetype_h='yes' |
| 13117 | else |
| 13118 | have_freetype_h='no' |
| 13119 | fi |
| 13120 | |
| 13121 | |
| 13122 | if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then |
| 13123 | passed=`expr $passed + 1` |
| 13124 | else |
| 13125 | failed=`expr $failed + 1` |
| 13126 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 13127 | fi |
| 13128 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13130 | $as_echo_n "checking if FreeType package is complete... " >&6; } |
| 13131 | if test $passed -gt 0; then |
| 13132 | if test $failed -gt 0; then |
| 13133 | FREETYPE_LIBS='' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13134 | { $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] | 13135 | $as_echo "no -- some components failed test" >&6; } |
| 13136 | have_freetype='no (failed tests)' |
| 13137 | else |
| 13138 | LIBS="$FREETYPE_LIBS $LIBS" |
| 13139 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13140 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13141 | |
| 13142 | if test "$ac_cv_header_ft2build_h" = 'yes'; then |
| 13143 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13144 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13145 | |
| 13146 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13148 | $as_echo "yes" >&6; } |
| 13149 | have_freetype='yes' |
| 13150 | fi |
| 13151 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13153 | $as_echo "no" >&6; } |
| 13154 | fi |
| 13155 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13156 | AM_CONDITIONAL(FREETYPE_DELEGATE,test "$have_freetype" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13157 | |
| 13158 | |
| 13159 | |
| 13160 | |
| 13161 | # |
| 13162 | # Check for Ghostscript library or framework. |
| 13163 | # |
| 13164 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 13165 | # or -framework Ghostscript |
| 13166 | |
| 13167 | |
| 13168 | # Check whether --with-gslib was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13169 | if test "${with_gslib+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13170 | withval=$with_gslib; with_gslib=$withval |
| 13171 | else |
| 13172 | with_gslib='no' |
| 13173 | fi |
| 13174 | |
| 13175 | |
cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 13176 | gslib_framework='no' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13177 | if test "$with_gslib" != 'yes'; then |
| 13178 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 13179 | fi |
| 13180 | |
| 13181 | have_gslib='no' |
| 13182 | GS_LIBS='' |
| 13183 | if test "$with_gslib" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13185 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13187 | $as_echo_n "checking for Ghostscript... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13189 | $as_echo "" >&6; } |
cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 13190 | framework=0 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13191 | failed=0 |
| 13192 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13193 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" |
| 13194 | if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13195 | passed=`expr $passed + 1` |
| 13196 | else |
| 13197 | failed=`expr $failed + 1` |
| 13198 | fi |
| 13199 | |
| 13200 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13201 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" |
| 13202 | if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13203 | passed=`expr $passed + 1` |
| 13204 | else |
| 13205 | failed=`expr $failed + 1` |
| 13206 | fi |
| 13207 | |
| 13208 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13209 | AC_CHECK_FRAMEWORK(Ghostscript,gsapi_new_instance,framework=`expr $framework + 1`, |
| 13210 | { $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] | 13211 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13212 | if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13213 | $as_echo_n "(cached) " >&6 |
| 13214 | else |
| 13215 | ac_check_lib_save_LIBS=$LIBS |
| 13216 | LIBS="-lgs $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13218 | /* end confdefs.h. */ |
| 13219 | |
| 13220 | /* Override any GCC internal prototype to avoid an error. |
| 13221 | Use char because int might match the return type of a GCC |
| 13222 | builtin and then its argument prototype would still apply. */ |
| 13223 | #ifdef __cplusplus |
| 13224 | extern "C" |
| 13225 | #endif |
| 13226 | char gsapi_new_instance (); |
| 13227 | int |
| 13228 | main () |
| 13229 | { |
| 13230 | return gsapi_new_instance (); |
| 13231 | ; |
| 13232 | return 0; |
| 13233 | } |
| 13234 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13235 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13236 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 13237 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13238 | ac_cv_lib_gs_gsapi_new_instance=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13239 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13240 | rm -f core conftest.err conftest.$ac_objext \ |
| 13241 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13242 | LIBS=$ac_check_lib_save_LIBS |
| 13243 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13244 | { $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] | 13245 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13246 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13247 | passed=`expr $passed + 1` |
| 13248 | else |
| 13249 | failed=`expr $failed + 1` |
| 13250 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13251 | ,) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13252 | { $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] | 13253 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 13254 | if test $passed -gt 0; then |
| 13255 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13256 | { $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] | 13257 | $as_echo "no -- some components failed test" >&6; } |
| 13258 | have_gslib='no (failed tests)' |
| 13259 | else |
| 13260 | if test $framework -gt 0; then |
| 13261 | GS_LIBS='-framework Ghostscript' |
cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 13262 | gslib_framework='yes' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13264 | $as_echo "yes, using framework." >&6; } |
| 13265 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13267 | $as_echo "yes, using library." >&6; } |
| 13268 | GS_LIBS='-lgs' |
| 13269 | fi |
| 13270 | LIBS="$GS_LIBS $LIBS" |
| 13271 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13272 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13273 | |
| 13274 | have_gslib='yes' |
| 13275 | fi |
| 13276 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13278 | $as_echo "no" >&6; } |
| 13279 | fi |
| 13280 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13281 | AM_CONDITIONAL(GS_DELEGATE, test "$have_gslib" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13282 | |
| 13283 | |
| 13284 | # Set default font search path |
| 13285 | |
| 13286 | # Check whether --with-fontpath was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13287 | if test "${with_fontpath+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13288 | withval=$with_fontpath; with_fontpath=$withval |
| 13289 | else |
| 13290 | with_fontpath='' |
| 13291 | fi |
| 13292 | |
| 13293 | |
| 13294 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 13295 | with_fontpath='' |
| 13296 | else |
| 13297 | |
| 13298 | cat >>confdefs.h <<_ACEOF |
| 13299 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 13300 | _ACEOF |
| 13301 | |
| 13302 | fi |
| 13303 | if test "$with_fontpath=" != ''; then |
| 13304 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 13305 | fi |
| 13306 | |
| 13307 | # Set Ghostscript font directory |
| 13308 | |
| 13309 | # Check whether --with-gs-font-dir was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13310 | if test "${with_gs_font_dir+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13311 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 13312 | else |
| 13313 | with_gs_font_dir='default' |
| 13314 | fi |
| 13315 | |
| 13316 | |
| 13317 | if test "$with_gs_font_dir" != 'default'; then |
| 13318 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 13319 | fi |
| 13320 | |
| 13321 | |
| 13322 | # |
| 13323 | # Check for GVC delegate library. |
| 13324 | # |
| 13325 | |
| 13326 | # Check whether --with-gvc was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13327 | if test "${with_gvc+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13328 | withval=$with_gvc; with_gvc=$withval |
| 13329 | else |
| 13330 | with_gvc='yes' |
| 13331 | fi |
| 13332 | |
| 13333 | |
| 13334 | if test "$with_gvc" != 'yes'; then |
| 13335 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 13336 | fi |
| 13337 | |
| 13338 | GVC_PKG="" |
| 13339 | if test "x$with_gvc" = "xyes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13341 | $as_echo "-------------------------------------------------------------" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13342 | PKG_CHECK_MODULES(GVC,libgvc >= 2.9.0, have_gvc=yes, have_gvc=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13344 | $as_echo "" >&6; } |
| 13345 | fi |
| 13346 | |
| 13347 | if test "$have_gvc" = 'yes'; then |
| 13348 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13349 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13350 | |
| 13351 | if test "$with_modules" = 'no'; then |
| 13352 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 13353 | fi |
| 13354 | fi |
| 13355 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13356 | AM_CONDITIONAL(GVC_DELEGATE, test "$have_gvc" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13357 | |
| 13358 | |
| 13359 | |
| 13360 | |
| 13361 | # |
| 13362 | # Check for JBIG delegate library. |
| 13363 | # |
| 13364 | |
| 13365 | |
| 13366 | # Check whether --with-jbig was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13367 | if test "${with_jbig+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13368 | withval=$with_jbig; with_jbig=$withval |
| 13369 | else |
| 13370 | with_jbig='yes' |
| 13371 | fi |
| 13372 | |
| 13373 | |
| 13374 | have_jbig='no' |
| 13375 | JBIG_LIBS='' |
| 13376 | if test "$with_jbig" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13378 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13380 | $as_echo_n "checking for JBIG... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13382 | $as_echo "" >&6; } |
| 13383 | failed=0 |
| 13384 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13385 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" |
| 13386 | if test "x$ac_cv_header_jbig_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13387 | passed=`expr $passed + 1` |
| 13388 | else |
| 13389 | failed=`expr $failed + 1` |
| 13390 | fi |
| 13391 | |
| 13392 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13393 | { $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] | 13394 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13395 | if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13396 | $as_echo_n "(cached) " >&6 |
| 13397 | else |
| 13398 | ac_check_lib_save_LIBS=$LIBS |
| 13399 | LIBS="-ljbig $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13401 | /* end confdefs.h. */ |
| 13402 | |
| 13403 | /* Override any GCC internal prototype to avoid an error. |
| 13404 | Use char because int might match the return type of a GCC |
| 13405 | builtin and then its argument prototype would still apply. */ |
| 13406 | #ifdef __cplusplus |
| 13407 | extern "C" |
| 13408 | #endif |
| 13409 | char jbg_dec_init (); |
| 13410 | int |
| 13411 | main () |
| 13412 | { |
| 13413 | return jbg_dec_init (); |
| 13414 | ; |
| 13415 | return 0; |
| 13416 | } |
| 13417 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13418 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13419 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 13420 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13421 | ac_cv_lib_jbig_jbg_dec_init=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13422 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13423 | rm -f core conftest.err conftest.$ac_objext \ |
| 13424 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13425 | LIBS=$ac_check_lib_save_LIBS |
| 13426 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13427 | { $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] | 13428 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13429 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13430 | passed=`expr $passed + 1` |
| 13431 | else |
| 13432 | failed=`expr $failed + 1` |
| 13433 | fi |
| 13434 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13435 | { $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] | 13436 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 13437 | if test $passed -gt 0; then |
| 13438 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13439 | { $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] | 13440 | $as_echo "no -- some components failed test" >&6; } |
| 13441 | have_jbig='no (failed tests)' |
| 13442 | else |
| 13443 | JBIG_LIBS='-ljbig' |
| 13444 | LIBS="$JBIG_LIBS $LIBS" |
| 13445 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13446 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13447 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13449 | $as_echo "yes" >&6; } |
| 13450 | have_jbig='yes' |
| 13451 | fi |
| 13452 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13454 | $as_echo "no" >&6; } |
| 13455 | fi |
| 13456 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13457 | AM_CONDITIONAL(JBIG_DELEGATE, test "$have_jbig" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13458 | |
| 13459 | |
| 13460 | |
| 13461 | # |
| 13462 | # Check for JPEG delegate library. |
| 13463 | # |
| 13464 | |
| 13465 | # Check whether --with-jpeg was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13466 | if test "${with_jpeg+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13467 | withval=$with_jpeg; with_jpeg=$withval |
| 13468 | else |
| 13469 | with_jpeg='yes' |
| 13470 | fi |
| 13471 | |
| 13472 | |
| 13473 | if test "$with_jpeg" != 'yes'; then |
| 13474 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 13475 | fi |
| 13476 | |
| 13477 | have_jpeg='no' |
| 13478 | JPEG_LIBS='' |
| 13479 | if test "$with_jpeg" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13481 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13483 | $as_echo_n "checking for JPEG... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13485 | $as_echo "" >&6; } |
| 13486 | failed=0 |
| 13487 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13488 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" |
| 13489 | if test "x$ac_cv_header_jconfig_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13490 | passed=`expr $passed + 1` |
| 13491 | else |
| 13492 | failed=`expr $failed + 1` |
| 13493 | fi |
| 13494 | |
| 13495 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13496 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| 13497 | if test "x$ac_cv_header_jerror_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13498 | passed=`expr $passed + 1` |
| 13499 | else |
| 13500 | failed=`expr $failed + 1` |
| 13501 | fi |
| 13502 | |
| 13503 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13504 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" |
| 13505 | if test "x$ac_cv_header_jmorecfg_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13506 | passed=`expr $passed + 1` |
| 13507 | else |
| 13508 | failed=`expr $failed + 1` |
| 13509 | fi |
| 13510 | |
| 13511 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13512 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
| 13513 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13514 | passed=`expr $passed + 1` |
| 13515 | else |
| 13516 | failed=`expr $failed + 1` |
| 13517 | fi |
| 13518 | |
| 13519 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13520 | { $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] | 13521 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13522 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13523 | $as_echo_n "(cached) " >&6 |
| 13524 | else |
| 13525 | ac_check_lib_save_LIBS=$LIBS |
| 13526 | LIBS="-ljpeg $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13528 | /* end confdefs.h. */ |
| 13529 | |
| 13530 | /* Override any GCC internal prototype to avoid an error. |
| 13531 | Use char because int might match the return type of a GCC |
| 13532 | builtin and then its argument prototype would still apply. */ |
| 13533 | #ifdef __cplusplus |
| 13534 | extern "C" |
| 13535 | #endif |
| 13536 | char jpeg_read_header (); |
| 13537 | int |
| 13538 | main () |
| 13539 | { |
| 13540 | return jpeg_read_header (); |
| 13541 | ; |
| 13542 | return 0; |
| 13543 | } |
| 13544 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13545 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13546 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 13547 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13548 | ac_cv_lib_jpeg_jpeg_read_header=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13549 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13550 | rm -f core conftest.err conftest.$ac_objext \ |
| 13551 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13552 | LIBS=$ac_check_lib_save_LIBS |
| 13553 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13554 | { $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] | 13555 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13556 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13557 | passed=`expr $passed + 1` |
| 13558 | else |
| 13559 | failed=`expr $failed + 1` |
| 13560 | fi |
| 13561 | |
| 13562 | |
| 13563 | # Test for compatible JPEG library |
| 13564 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13565 | { $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] | 13566 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13567 | if test "${ac_cv_jpeg_version_ok+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13568 | $as_echo_n "(cached) " >&6 |
| 13569 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13571 | /* end confdefs.h. */ |
| 13572 | #include <stdio.h> |
| 13573 | #include <stdlib.h> |
| 13574 | #include <jpeglib.h> |
| 13575 | |
| 13576 | int |
| 13577 | main () |
| 13578 | { |
| 13579 | |
| 13580 | #if JPEG_LIB_VERSION < 62 |
| 13581 | #error IJG JPEG library must be version 6b or newer! |
| 13582 | #endif |
| 13583 | return 0; |
| 13584 | |
| 13585 | ; |
| 13586 | return 0; |
| 13587 | } |
| 13588 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13589 | if ac_fn_c_try_compile "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13590 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 13591 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13592 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13593 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13595 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13596 | { $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] | 13597 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 13598 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13599 | { $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] | 13600 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 13601 | if test $passed -gt 0; then |
| 13602 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13603 | { $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] | 13604 | $as_echo "no -- some components failed test" >&6; } |
| 13605 | have_jpeg='no (failed tests)' |
| 13606 | else |
| 13607 | JPEG_LIBS='-ljpeg' |
| 13608 | LIBS="$JPEG_LIBS $LIBS" |
| 13609 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13610 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13611 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13613 | $as_echo "yes" >&6; } |
| 13614 | have_jpeg='yes' |
| 13615 | fi |
| 13616 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13618 | $as_echo "no" >&6; } |
| 13619 | fi |
| 13620 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13621 | AM_CONDITIONAL(JPEG_DELEGATE, test "$have_jpeg" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13622 | |
| 13623 | |
| 13624 | |
| 13625 | # |
| 13626 | # Check for JPEG Version 2 delegate library. |
| 13627 | # |
| 13628 | |
| 13629 | # Check whether --with-jp2 was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13630 | if test "${with_jp2+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13631 | withval=$with_jp2; with_jp2=$withval |
| 13632 | else |
| 13633 | with_jp2='yes' |
| 13634 | fi |
| 13635 | |
| 13636 | |
| 13637 | if test "$with_jp2" != 'yes'; then |
| 13638 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 13639 | fi |
| 13640 | |
| 13641 | have_jp2='no' |
| 13642 | JP2_LIBS='' |
| 13643 | if test "$with_jp2" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13645 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13647 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13649 | $as_echo "" >&6; } |
| 13650 | failed=0 |
| 13651 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13652 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" |
| 13653 | if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13654 | passed=`expr $passed + 1` |
| 13655 | else |
| 13656 | failed=`expr $failed + 1` |
| 13657 | fi |
| 13658 | |
| 13659 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13660 | { $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] | 13661 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13662 | if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13663 | $as_echo_n "(cached) " >&6 |
| 13664 | else |
| 13665 | ac_check_lib_save_LIBS=$LIBS |
| 13666 | LIBS="-ljasper $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13668 | /* end confdefs.h. */ |
| 13669 | |
| 13670 | /* Override any GCC internal prototype to avoid an error. |
| 13671 | Use char because int might match the return type of a GCC |
| 13672 | builtin and then its argument prototype would still apply. */ |
| 13673 | #ifdef __cplusplus |
| 13674 | extern "C" |
| 13675 | #endif |
| 13676 | char jas_stream_fopen (); |
| 13677 | int |
| 13678 | main () |
| 13679 | { |
| 13680 | return jas_stream_fopen (); |
| 13681 | ; |
| 13682 | return 0; |
| 13683 | } |
| 13684 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13685 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13686 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 13687 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13688 | ac_cv_lib_jasper_jas_stream_fopen=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13689 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13690 | rm -f core conftest.err conftest.$ac_objext \ |
| 13691 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13692 | LIBS=$ac_check_lib_save_LIBS |
| 13693 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13694 | { $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] | 13695 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13696 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13697 | passed=`expr $passed + 1` |
| 13698 | else |
| 13699 | failed=`expr $failed + 1` |
| 13700 | fi |
| 13701 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13702 | { $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] | 13703 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 13704 | if test $passed -gt 0; then |
| 13705 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13706 | { $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] | 13707 | $as_echo "no -- some components failed test" >&6; } |
| 13708 | have_jp2='no (failed tests)' |
| 13709 | else |
| 13710 | JP2_LIBS='-ljasper' |
| 13711 | LIBS="$JP2_LIBS $LIBS" |
| 13712 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13713 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13714 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13716 | $as_echo "yes" >&6; } |
| 13717 | have_jp2='yes' |
| 13718 | fi |
| 13719 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13721 | $as_echo "no" >&6; } |
| 13722 | fi |
| 13723 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13724 | AM_CONDITIONAL(JP2_DELEGATE, test "$have_jp2" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13725 | |
| 13726 | |
| 13727 | |
| 13728 | # |
| 13729 | # Check for LCMS delegate library. |
| 13730 | # |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13731 | # Disable LCMS. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13732 | |
| 13733 | # Check whether --with-lcms was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13734 | if test "${with_lcms+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13735 | withval=$with_lcms; with_lcms=$withval |
| 13736 | else |
| 13737 | with_lcms='yes' |
| 13738 | fi |
| 13739 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13740 | if test "$with_lcms" != 'yes' ; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13741 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 13742 | fi |
| 13743 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13744 | # Disable LCMS2. |
| 13745 | |
| 13746 | # Check whether --with-lcms2 was given. |
| 13747 | if test "${with_lcms2+set}" = set; then : |
| 13748 | withval=$with_lcms2; with_lcms2=$withval |
| 13749 | else |
| 13750 | with_lcms2='yes' |
| 13751 | fi |
| 13752 | |
| 13753 | if test "$with_lcms2" != 'yes' ; then |
| 13754 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " |
| 13755 | fi |
| 13756 | |
| 13757 | have_lcms2='no' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13758 | LCMS_LIBS='' |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13759 | if test "$with_lcms2" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13761 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 |
| 13763 | $as_echo_n "checking for LCMS v2... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13765 | $as_echo "" >&6; } |
| 13766 | failed=0 |
| 13767 | passed=0 |
| 13768 | have_lcms_header='no' |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13769 | |
| 13770 | # Check for <lcms2.h> |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13771 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" |
| 13772 | if test "x$ac_cv_header_lcms2_h" = x""yes; then : |
| 13773 | have_lcms_header='yes' |
| 13774 | fi |
| 13775 | |
| 13776 | |
| 13777 | if test "$have_lcms_header" = 'yes'; then |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13778 | |
| 13779 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h |
| 13780 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13781 | passed=`expr $passed + 1` |
| 13782 | fi |
| 13783 | |
| 13784 | # Check for <lcms2/lcms2.h) |
| 13785 | if test "$have_lcms_header" != 'yes'; then |
| 13786 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" |
| 13787 | if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then : |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13788 | have_lcms_header='yes' |
| 13789 | fi |
| 13790 | |
| 13791 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13792 | if test "$have_lcms_header" = 'yes'; then |
| 13793 | passed=`expr $passed + 1` |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13794 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13795 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13796 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13797 | fi |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13798 | fi |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13799 | |
| 13800 | # Failed to find lcms header? |
| 13801 | if test "$have_lcms_header" != 'yes'; then |
| 13802 | failed=`expr $failed + 1` |
| 13803 | fi |
| 13804 | |
| 13805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 |
| 13806 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } |
| 13807 | if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then : |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13808 | $as_echo_n "(cached) " >&6 |
| 13809 | else |
| 13810 | ac_check_lib_save_LIBS=$LIBS |
| 13811 | LIBS="-llcms2 $LIBS" |
| 13812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13813 | /* end confdefs.h. */ |
| 13814 | |
| 13815 | /* Override any GCC internal prototype to avoid an error. |
| 13816 | Use char because int might match the return type of a GCC |
| 13817 | builtin and then its argument prototype would still apply. */ |
| 13818 | #ifdef __cplusplus |
| 13819 | extern "C" |
| 13820 | #endif |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13821 | char cmsSetLogErrorHandler (); |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13822 | int |
| 13823 | main () |
| 13824 | { |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13825 | return cmsSetLogErrorHandler (); |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13826 | ; |
| 13827 | return 0; |
| 13828 | } |
| 13829 | _ACEOF |
| 13830 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13831 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13832 | else |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13833 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=no |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13834 | fi |
| 13835 | rm -f core conftest.err conftest.$ac_objext \ |
| 13836 | conftest$ac_exeext conftest.$ac_ext |
| 13837 | LIBS=$ac_check_lib_save_LIBS |
| 13838 | fi |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 |
| 13840 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } |
| 13841 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then : |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13842 | passed=`expr $passed + 1` |
| 13843 | else |
| 13844 | failed=`expr $failed + 1` |
| 13845 | fi |
| 13846 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 |
| 13848 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13849 | if test $passed -gt 0; then |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13850 | if test $failed -gt 0; then |
| 13851 | { $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] | 13852 | $as_echo "no -- some components failed test" >&6; } |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13853 | have_lcms2='no (failed tests)' |
| 13854 | else |
| 13855 | LCMS_LIBS='-llcms2' |
| 13856 | LIBS="$LCMS_LIBS $LIBS" |
| 13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13858 | $as_echo "yes" >&6; } |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13859 | have_lcms2='yes' |
| 13860 | fi |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13861 | else |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13863 | $as_echo "no" >&6; } |
| 13864 | fi |
| 13865 | fi |
| 13866 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13867 | # |
| 13868 | # Check for LCMS v1 (1.11 or later) |
| 13869 | # |
| 13870 | if test $have_lcms2 = 'yes'; then |
| 13871 | with_lcms='no' |
| 13872 | fi |
| 13873 | |
| 13874 | have_lcms='no' |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13875 | if test "$with_lcms" != 'no'; then |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 13877 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 |
| 13879 | $as_echo_n "checking for LCMS v1.1X... " >&6; } |
cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 13881 | $as_echo "" >&6; } |
| 13882 | failed=0 |
| 13883 | passed=0 |
| 13884 | have_lcms_header='no' |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13885 | |
| 13886 | # Check for <lcms.h> |
| 13887 | if test "$have_lcms_header" != 'yes'; then |
| 13888 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13889 | if test "x$ac_cv_header_lcms_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13890 | have_lcms_header='yes' |
| 13891 | fi |
| 13892 | |
| 13893 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13894 | if test "$have_lcms_header" = 'yes'; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13895 | passed=`expr $passed + 1` |
| 13896 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13897 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13898 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13899 | fi |
| 13900 | fi |
| 13901 | |
| 13902 | # Check for <lcms/lcms.h> |
| 13903 | if test "$have_lcms_header" != 'yes'; then |
| 13904 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13905 | if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13906 | have_lcms_header='yes' |
| 13907 | fi |
| 13908 | |
| 13909 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13910 | if test "$have_lcms_header" = 'yes'; then |
| 13911 | passed=`expr $passed + 1` |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13912 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13913 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13914 | |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13915 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13916 | fi |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13917 | |
| 13918 | # Failed to find lcms header? |
| 13919 | if test "$have_lcms_header" != 'yes'; then |
| 13920 | failed=`expr $failed + 1` |
| 13921 | fi |
| 13922 | |
| 13923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 |
| 13924 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } |
| 13925 | if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13926 | $as_echo_n "(cached) " >&6 |
| 13927 | else |
| 13928 | ac_check_lib_save_LIBS=$LIBS |
| 13929 | LIBS="-llcms $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13931 | /* end confdefs.h. */ |
| 13932 | |
| 13933 | /* Override any GCC internal prototype to avoid an error. |
| 13934 | Use char because int might match the return type of a GCC |
| 13935 | builtin and then its argument prototype would still apply. */ |
| 13936 | #ifdef __cplusplus |
| 13937 | extern "C" |
| 13938 | #endif |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13939 | char cmsSetErrorHandler (); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13940 | int |
| 13941 | main () |
| 13942 | { |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13943 | return cmsSetErrorHandler (); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13944 | ; |
| 13945 | return 0; |
| 13946 | } |
| 13947 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13948 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13949 | ac_cv_lib_lcms_cmsSetErrorHandler=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13950 | else |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13951 | ac_cv_lib_lcms_cmsSetErrorHandler=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13952 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13953 | rm -f core conftest.err conftest.$ac_objext \ |
| 13954 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13955 | LIBS=$ac_check_lib_save_LIBS |
| 13956 | fi |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 |
| 13958 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } |
| 13959 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13960 | passed=`expr $passed + 1` |
| 13961 | else |
| 13962 | failed=`expr $failed + 1` |
| 13963 | fi |
| 13964 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13965 | { $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] | 13966 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 13967 | if test $passed -gt 0; then |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13968 | if test $failed -gt 0; then |
| 13969 | { $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] | 13970 | $as_echo "no -- some components failed test" >&6; } |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13971 | have_lcms='no (failed tests)' |
| 13972 | else |
| 13973 | LCMS_LIBS='-llcms' |
| 13974 | LIBS="$LCMS_LIBS $LIBS" |
| 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13976 | $as_echo "yes" >&6; } |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13977 | have_lcms='yes' |
| 13978 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13979 | else |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13981 | $as_echo "no" >&6; } |
| 13982 | fi |
| 13983 | fi |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13984 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 13985 | AM_CONDITIONAL(LCMS_DELEGATE, test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes') |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 13986 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 13987 | |
| 13988 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h |
| 13989 | |
| 13990 | fi |
| 13991 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13992 | |
| 13993 | |
| 13994 | |
| 13995 | # |
| 13996 | # Check for the LQR (Liquid Rescale) delegate library. |
| 13997 | # |
| 13998 | |
| 13999 | # Check whether --with-lqr was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14000 | if test "${with_lqr+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14001 | withval=$with_lqr; with_lqr=$withval |
| 14002 | else |
| 14003 | with_lqr='yes' |
| 14004 | fi |
| 14005 | |
| 14006 | |
| 14007 | if test "$with_lqr" != 'yes'; then |
| 14008 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 14009 | fi |
| 14010 | |
| 14011 | have_lqr='no' |
| 14012 | LQR_CFLAGS="" |
| 14013 | LQR_LIBS="" |
| 14014 | LQR_PKG="" |
| 14015 | if test "x$with_lqr" = "xyes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14017 | $as_echo "-------------------------------------------------------------" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14018 | PKG_CHECK_MODULES(LQR,lqr-1 >= 0.1.0, have_lqr=yes, have_lqr=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14020 | $as_echo "" >&6; } |
| 14021 | fi |
| 14022 | |
| 14023 | if test "$have_lqr" = 'yes'; then |
| 14024 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14025 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14026 | |
| 14027 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 14028 | fi |
| 14029 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14030 | AM_CONDITIONAL(LQR_DELEGATE, test "$have_lqr" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14031 | |
| 14032 | |
| 14033 | |
| 14034 | |
| 14035 | # |
| 14036 | # Check for the OpenEXR delegate library. |
| 14037 | # |
| 14038 | |
| 14039 | # Check whether --with-openexr was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14040 | if test "${with_openexr+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14041 | withval=$with_openexr; with_openexr=$withval |
| 14042 | else |
| 14043 | with_openexr='yes' |
| 14044 | fi |
| 14045 | |
| 14046 | |
| 14047 | if test "$with_openexr" != 'yes'; then |
| 14048 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 14049 | fi |
| 14050 | |
| 14051 | have_openexr='no' |
| 14052 | OPENEXR_CFLAGS="" |
| 14053 | OPENEXR_LIBS="" |
| 14054 | OPENEXR_PKG="" |
| 14055 | if test "x$with_openexr" = "xyes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14057 | $as_echo "-------------------------------------------------------------" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14058 | PKG_CHECK_MODULES(OPENEXR,OpenEXR >= 1.0.6, have_openexr=yes, have_openexr=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14060 | $as_echo "" >&6; } |
| 14061 | fi |
| 14062 | |
| 14063 | if test "$have_openexr" = 'yes'; then |
| 14064 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14065 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14066 | |
| 14067 | if test "$with_modules" = 'no'; then |
| 14068 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 14069 | fi |
| 14070 | fi |
| 14071 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14072 | AM_CONDITIONAL(OPENEXR_DELEGATE, test "$have_openexr" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14073 | |
| 14074 | |
| 14075 | |
| 14076 | |
| 14077 | # |
| 14078 | # Check for PNG delegate library. |
| 14079 | # |
| 14080 | |
| 14081 | # Check whether --with-png was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14082 | if test "${with_png+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14083 | withval=$with_png; with_png=$withval |
| 14084 | else |
| 14085 | with_png='yes' |
| 14086 | fi |
| 14087 | |
| 14088 | |
| 14089 | if test "$with_png" != 'yes'; then |
| 14090 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 14091 | fi |
| 14092 | |
| 14093 | have_png='no' |
| 14094 | PNG_LIBS='' |
| 14095 | if test "$with_png" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14097 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14099 | $as_echo_n "checking for PNG... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14101 | $as_echo "" >&6; } |
| 14102 | failed=0 |
| 14103 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14104 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 14105 | if test "x$ac_cv_header_png_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14106 | passed=`expr $passed + 1` |
| 14107 | else |
| 14108 | failed=`expr $failed + 1` |
| 14109 | fi |
| 14110 | |
| 14111 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14113 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14114 | if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14115 | $as_echo_n "(cached) " >&6 |
| 14116 | else |
| 14117 | ac_check_lib_save_LIBS=$LIBS |
| 14118 | LIBS="-lpng $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14120 | /* end confdefs.h. */ |
| 14121 | |
| 14122 | /* Override any GCC internal prototype to avoid an error. |
| 14123 | Use char because int might match the return type of a GCC |
| 14124 | builtin and then its argument prototype would still apply. */ |
| 14125 | #ifdef __cplusplus |
| 14126 | extern "C" |
| 14127 | #endif |
| 14128 | char png_get_io_ptr (); |
| 14129 | int |
| 14130 | main () |
| 14131 | { |
| 14132 | return png_get_io_ptr (); |
| 14133 | ; |
| 14134 | return 0; |
| 14135 | } |
| 14136 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14137 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14138 | ac_cv_lib_png_png_get_io_ptr=yes |
| 14139 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14140 | ac_cv_lib_png_png_get_io_ptr=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14141 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14142 | rm -f core conftest.err conftest.$ac_objext \ |
| 14143 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14144 | LIBS=$ac_check_lib_save_LIBS |
| 14145 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14147 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14148 | if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14149 | passed=`expr $passed + 1` |
| 14150 | else |
| 14151 | failed=`expr $failed + 1` |
| 14152 | fi |
| 14153 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14155 | $as_echo_n "checking if PNG package is complete... " >&6; } |
| 14156 | if test $passed -gt 0; then |
| 14157 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14158 | { $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] | 14159 | $as_echo "no -- some components failed test" >&6; } |
| 14160 | have_png='no (failed tests)' |
| 14161 | else |
| 14162 | PNG_LIBS='-lpng' |
| 14163 | LIBS="$PNG_LIBS $LIBS" |
| 14164 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14165 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14166 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14168 | $as_echo "yes" >&6; } |
| 14169 | have_png='yes' |
| 14170 | fi |
| 14171 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14173 | $as_echo "no" >&6; } |
| 14174 | fi |
| 14175 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14176 | AM_CONDITIONAL(PNG_DELEGATE,test "$have_png" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14177 | |
| 14178 | |
| 14179 | |
| 14180 | # |
| 14181 | # Check for RSVG delegate library. |
| 14182 | # |
| 14183 | |
| 14184 | # Check whether --with-rsvg was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14185 | if test "${with_rsvg+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14186 | withval=$with_rsvg; with_rsvg=$withval |
| 14187 | else |
| 14188 | with_rsvg=$have_x |
| 14189 | fi |
| 14190 | |
| 14191 | |
| 14192 | if test "$with_rsvg" != 'yes'; then |
| 14193 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 14194 | fi |
| 14195 | |
| 14196 | have_rsvg='no' |
| 14197 | have_cairo='no' |
| 14198 | RSVG_CFLAGS="" |
| 14199 | RSVG_LIBS="" |
| 14200 | RSVG_PKG="" |
| 14201 | if test "x$with_rsvg" = "xyes"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14203 | $as_echo "-------------------------------------------------------------" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14204 | PKG_CHECK_MODULES(RSVG,librsvg-2.0 >= 2.9.0, have_rsvg=yes, have_rsvg=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14206 | $as_echo "" >&6; } |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14207 | PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg, have_cairo=yes, have_cairo=no) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14209 | $as_echo "" >&6; } |
| 14210 | fi |
| 14211 | |
| 14212 | if test "$have_rsvg" = 'yes'; then |
| 14213 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14214 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14215 | |
| 14216 | if test "$with_modules" = 'no'; then |
| 14217 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 14218 | fi |
| 14219 | fi |
| 14220 | |
| 14221 | if test "$have_cairo" = 'yes'; then |
| 14222 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14223 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14224 | |
| 14225 | if test "$with_modules" = 'no'; then |
| 14226 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 14227 | fi |
| 14228 | fi |
| 14229 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14230 | AM_CONDITIONAL(RSVG_DELEGATE, test "$have_rsvg" = 'yes') |
| 14231 | AM_CONDITIONAL(CAIRO_DELEGATE, test "$have_cairo" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14232 | |
| 14233 | |
| 14234 | |
| 14235 | |
| 14236 | # |
| 14237 | # Check for TIFF delegate library. |
| 14238 | # |
| 14239 | |
| 14240 | # Check whether --with-tiff was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14241 | if test "${with_tiff+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14242 | withval=$with_tiff; with_tiff=$withval |
| 14243 | else |
| 14244 | with_tiff='yes' |
| 14245 | fi |
| 14246 | |
| 14247 | |
| 14248 | if test "$with_tiff" != 'yes'; then |
| 14249 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 14250 | fi |
| 14251 | |
| 14252 | have_tiff='no' |
| 14253 | TIFF_LIBS='' |
| 14254 | if test "$with_tiff" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14256 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14258 | $as_echo_n "checking for TIFF... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14260 | $as_echo "" >&6; } |
| 14261 | failed=0 |
| 14262 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14263 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| 14264 | if test "x$ac_cv_header_tiff_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14265 | passed=`expr $passed + 1` |
| 14266 | else |
| 14267 | failed=`expr $failed + 1` |
| 14268 | fi |
| 14269 | |
| 14270 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14271 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| 14272 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14273 | passed=`expr $passed + 1` |
| 14274 | else |
| 14275 | failed=`expr $failed + 1` |
| 14276 | fi |
| 14277 | |
| 14278 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14280 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14281 | if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14282 | $as_echo_n "(cached) " >&6 |
| 14283 | else |
| 14284 | ac_check_lib_save_LIBS=$LIBS |
| 14285 | LIBS="-ltiff $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14287 | /* end confdefs.h. */ |
| 14288 | |
| 14289 | /* Override any GCC internal prototype to avoid an error. |
| 14290 | Use char because int might match the return type of a GCC |
| 14291 | builtin and then its argument prototype would still apply. */ |
| 14292 | #ifdef __cplusplus |
| 14293 | extern "C" |
| 14294 | #endif |
| 14295 | char TIFFOpen (); |
| 14296 | int |
| 14297 | main () |
| 14298 | { |
| 14299 | return TIFFOpen (); |
| 14300 | ; |
| 14301 | return 0; |
| 14302 | } |
| 14303 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14304 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14305 | ac_cv_lib_tiff_TIFFOpen=yes |
| 14306 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14307 | ac_cv_lib_tiff_TIFFOpen=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14308 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14309 | rm -f core conftest.err conftest.$ac_objext \ |
| 14310 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14311 | LIBS=$ac_check_lib_save_LIBS |
| 14312 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14313 | { $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] | 14314 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14315 | if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14316 | passed=`expr $passed + 1` |
| 14317 | else |
| 14318 | failed=`expr $failed + 1` |
| 14319 | fi |
| 14320 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14322 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14323 | if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14324 | $as_echo_n "(cached) " >&6 |
| 14325 | else |
| 14326 | ac_check_lib_save_LIBS=$LIBS |
| 14327 | LIBS="-ltiff $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14329 | /* end confdefs.h. */ |
| 14330 | |
| 14331 | /* Override any GCC internal prototype to avoid an error. |
| 14332 | Use char because int might match the return type of a GCC |
| 14333 | builtin and then its argument prototype would still apply. */ |
| 14334 | #ifdef __cplusplus |
| 14335 | extern "C" |
| 14336 | #endif |
| 14337 | char TIFFClientOpen (); |
| 14338 | int |
| 14339 | main () |
| 14340 | { |
| 14341 | return TIFFClientOpen (); |
| 14342 | ; |
| 14343 | return 0; |
| 14344 | } |
| 14345 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14346 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14347 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 14348 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14349 | ac_cv_lib_tiff_TIFFClientOpen=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14350 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14351 | rm -f core conftest.err conftest.$ac_objext \ |
| 14352 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14353 | LIBS=$ac_check_lib_save_LIBS |
| 14354 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14355 | { $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] | 14356 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14357 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14358 | passed=`expr $passed + 1` |
| 14359 | else |
| 14360 | failed=`expr $failed + 1` |
| 14361 | fi |
| 14362 | |
cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5 |
| 14364 | $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; } |
| 14365 | if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then : |
| 14366 | $as_echo_n "(cached) " >&6 |
| 14367 | else |
| 14368 | ac_check_lib_save_LIBS=$LIBS |
| 14369 | LIBS="-ltiff $LIBS" |
| 14370 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14371 | /* end confdefs.h. */ |
| 14372 | |
| 14373 | /* Override any GCC internal prototype to avoid an error. |
| 14374 | Use char because int might match the return type of a GCC |
| 14375 | builtin and then its argument prototype would still apply. */ |
| 14376 | #ifdef __cplusplus |
| 14377 | extern "C" |
| 14378 | #endif |
| 14379 | char TIFFIsBigEndian (); |
| 14380 | int |
| 14381 | main () |
| 14382 | { |
| 14383 | return TIFFIsBigEndian (); |
| 14384 | ; |
| 14385 | return 0; |
| 14386 | } |
| 14387 | _ACEOF |
| 14388 | if ac_fn_c_try_link "$LINENO"; then : |
| 14389 | ac_cv_lib_tiff_TIFFIsBigEndian=yes |
| 14390 | else |
| 14391 | ac_cv_lib_tiff_TIFFIsBigEndian=no |
| 14392 | fi |
| 14393 | rm -f core conftest.err conftest.$ac_objext \ |
| 14394 | conftest$ac_exeext conftest.$ac_ext |
| 14395 | LIBS=$ac_check_lib_save_LIBS |
| 14396 | fi |
| 14397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5 |
| 14398 | $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; } |
| 14399 | if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then : |
| 14400 | passed=`expr $passed + 1` |
| 14401 | else |
| 14402 | failed=`expr $failed + 1` |
| 14403 | fi |
| 14404 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14406 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14407 | if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14408 | $as_echo_n "(cached) " >&6 |
| 14409 | else |
| 14410 | ac_check_lib_save_LIBS=$LIBS |
| 14411 | LIBS="-ltiff $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14413 | /* end confdefs.h. */ |
| 14414 | |
| 14415 | /* Override any GCC internal prototype to avoid an error. |
| 14416 | Use char because int might match the return type of a GCC |
| 14417 | builtin and then its argument prototype would still apply. */ |
| 14418 | #ifdef __cplusplus |
| 14419 | extern "C" |
| 14420 | #endif |
| 14421 | char TIFFIsByteSwapped (); |
| 14422 | int |
| 14423 | main () |
| 14424 | { |
| 14425 | return TIFFIsByteSwapped (); |
| 14426 | ; |
| 14427 | return 0; |
| 14428 | } |
| 14429 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14430 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14431 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 14432 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14433 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14434 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14435 | rm -f core conftest.err conftest.$ac_objext \ |
| 14436 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14437 | LIBS=$ac_check_lib_save_LIBS |
| 14438 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14439 | { $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] | 14440 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14441 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14442 | passed=`expr $passed + 1` |
| 14443 | else |
| 14444 | failed=`expr $failed + 1` |
| 14445 | fi |
| 14446 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14448 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14449 | if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14450 | $as_echo_n "(cached) " >&6 |
| 14451 | else |
| 14452 | ac_check_lib_save_LIBS=$LIBS |
| 14453 | LIBS="-ltiff $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14455 | /* end confdefs.h. */ |
| 14456 | |
| 14457 | /* Override any GCC internal prototype to avoid an error. |
| 14458 | Use char because int might match the return type of a GCC |
| 14459 | builtin and then its argument prototype would still apply. */ |
| 14460 | #ifdef __cplusplus |
| 14461 | extern "C" |
| 14462 | #endif |
| 14463 | char TIFFReadRGBATile (); |
| 14464 | int |
| 14465 | main () |
| 14466 | { |
| 14467 | return TIFFReadRGBATile (); |
| 14468 | ; |
| 14469 | return 0; |
| 14470 | } |
| 14471 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14472 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14473 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 14474 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14475 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14476 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14477 | rm -f core conftest.err conftest.$ac_objext \ |
| 14478 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14479 | LIBS=$ac_check_lib_save_LIBS |
| 14480 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14481 | { $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] | 14482 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14483 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14484 | passed=`expr $passed + 1` |
| 14485 | else |
| 14486 | failed=`expr $failed + 1` |
| 14487 | fi |
| 14488 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14490 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14491 | if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14492 | $as_echo_n "(cached) " >&6 |
| 14493 | else |
| 14494 | ac_check_lib_save_LIBS=$LIBS |
| 14495 | LIBS="-ltiff $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14497 | /* end confdefs.h. */ |
| 14498 | |
| 14499 | /* Override any GCC internal prototype to avoid an error. |
| 14500 | Use char because int might match the return type of a GCC |
| 14501 | builtin and then its argument prototype would still apply. */ |
| 14502 | #ifdef __cplusplus |
| 14503 | extern "C" |
| 14504 | #endif |
| 14505 | char TIFFReadRGBAStrip (); |
| 14506 | int |
| 14507 | main () |
| 14508 | { |
| 14509 | return TIFFReadRGBAStrip (); |
| 14510 | ; |
| 14511 | return 0; |
| 14512 | } |
| 14513 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14514 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14515 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 14516 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14517 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14518 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14519 | rm -f core conftest.err conftest.$ac_objext \ |
| 14520 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14521 | LIBS=$ac_check_lib_save_LIBS |
| 14522 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14523 | { $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] | 14524 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14525 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14526 | passed=`expr $passed + 1` |
| 14527 | else |
| 14528 | failed=`expr $failed + 1` |
| 14529 | fi |
| 14530 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14531 | { $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] | 14532 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 14533 | if test $passed -gt 0; then |
| 14534 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14535 | { $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] | 14536 | $as_echo "no -- some components failed test" >&6; } |
| 14537 | have_tiff='no (failed tests)' |
| 14538 | else |
| 14539 | TIFF_LIBS='-ltiff' |
| 14540 | LIBS="$TIFF_LIBS $LIBS" |
| 14541 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14542 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14543 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14545 | $as_echo "yes" >&6; } |
| 14546 | have_tiff='yes' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14547 | for ac_header in tiffconf.h |
| 14548 | do : |
| 14549 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" |
| 14550 | if test "x$ac_cv_header_tiffconf_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14551 | cat >>confdefs.h <<_ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14552 | #define HAVE_TIFFCONF_H 1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14553 | _ACEOF |
| 14554 | |
| 14555 | fi |
| 14556 | |
| 14557 | done |
| 14558 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14559 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14560 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ |
| 14561 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14562 | do : |
| 14563 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14564 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 14565 | eval as_val=\$$as_ac_var |
| 14566 | if test "x$as_val" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14567 | cat >>confdefs.h <<_ACEOF |
| 14568 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14569 | _ACEOF |
| 14570 | |
| 14571 | fi |
| 14572 | done |
| 14573 | |
| 14574 | fi |
| 14575 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14577 | $as_echo "no" >&6; } |
| 14578 | fi |
| 14579 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14580 | AM_CONDITIONAL(TIFF_DELEGATE, test "$have_tiff" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14581 | |
| 14582 | |
| 14583 | |
| 14584 | # |
| 14585 | # Set Windows font directory. |
| 14586 | # |
| 14587 | |
| 14588 | # Check whether --with-windows-font-dir was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14589 | if test "${with_windows_font_dir+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14590 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 14591 | else |
| 14592 | with_windows_font_dir='' |
| 14593 | fi |
| 14594 | |
| 14595 | if test "$with_windows_font_dir" != '' ; then |
| 14596 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 14597 | fi |
| 14598 | |
| 14599 | |
| 14600 | # |
| 14601 | # Check for WMF delegate library. |
| 14602 | # |
| 14603 | |
| 14604 | # Check whether --with-wmf was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14605 | if test "${with_wmf+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14606 | withval=$with_wmf; with_wmf=$withval |
| 14607 | else |
cristy | 8d63d1d | 2010-01-06 20:38:37 +0000 | [diff] [blame] | 14608 | with_wmf='yes' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14609 | fi |
| 14610 | |
| 14611 | |
| 14612 | if test "$with_wmf" != 'yes'; then |
| 14613 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 14614 | fi |
| 14615 | |
| 14616 | have_wmf='no' |
| 14617 | WMF_LIBS='' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14618 | if test "$with_wmf" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14620 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14622 | $as_echo_n "checking for WMF... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14624 | $as_echo "" >&6; } |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14625 | failed=0 |
| 14626 | passed=0 |
| 14627 | ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default" |
| 14628 | if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then : |
| 14629 | passed=`expr $passed + 1` |
| 14630 | else |
| 14631 | failed=`expr $failed + 1` |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14632 | fi |
| 14633 | |
| 14634 | |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5 |
| 14636 | $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; } |
| 14637 | if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14638 | $as_echo_n "(cached) " >&6 |
| 14639 | else |
| 14640 | ac_check_lib_save_LIBS=$LIBS |
cristy | 2265236 | 2010-04-02 23:22:31 +0000 | [diff] [blame] | 14641 | LIBS="-lwmf "-lwmflite" $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14643 | /* end confdefs.h. */ |
| 14644 | |
| 14645 | /* Override any GCC internal prototype to avoid an error. |
| 14646 | Use char because int might match the return type of a GCC |
| 14647 | builtin and then its argument prototype would still apply. */ |
| 14648 | #ifdef __cplusplus |
| 14649 | extern "C" |
| 14650 | #endif |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14651 | char wmf_eps_function (); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14652 | int |
| 14653 | main () |
| 14654 | { |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14655 | return wmf_eps_function (); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14656 | ; |
| 14657 | return 0; |
| 14658 | } |
| 14659 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14660 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14661 | ac_cv_lib_wmf_wmf_eps_function=yes |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14662 | else |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14663 | ac_cv_lib_wmf_wmf_eps_function=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14664 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14665 | rm -f core conftest.err conftest.$ac_objext \ |
| 14666 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14667 | LIBS=$ac_check_lib_save_LIBS |
| 14668 | fi |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5 |
| 14670 | $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; } |
| 14671 | if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then : |
| 14672 | passed=`expr $passed + 1` |
| 14673 | else |
| 14674 | failed=`expr $failed + 1` |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14675 | fi |
| 14676 | |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 |
| 14678 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 14679 | if test $passed -gt 0; then |
| 14680 | if test $failed -gt 0; then |
| 14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 14682 | $as_echo "no -- some components failed test" >&6; } |
| 14683 | have_wmf='no (failed tests)' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14684 | else |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14685 | WMF_LIBS='-lwmf -lwmflite' |
| 14686 | LIBS="$WMF_LIBS $LIBS" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14687 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14688 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14689 | |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14691 | $as_echo "yes" >&6; } |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14692 | have_wmf='yes' |
| 14693 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14694 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14696 | $as_echo "no" >&6; } |
| 14697 | fi |
| 14698 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14699 | AM_CONDITIONAL(WMF_DELEGATE,test "$have_wmf" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14700 | |
| 14701 | |
| 14702 | |
| 14703 | |
cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 14704 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14705 | # |
| 14706 | # Check for XML delegate library. |
| 14707 | # |
| 14708 | |
| 14709 | # Check whether --with-xml was given. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14710 | if test "${with_xml+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14711 | withval=$with_xml; with_xml=$withval |
| 14712 | else |
| 14713 | with_xml=$have_x |
| 14714 | fi |
| 14715 | |
| 14716 | |
| 14717 | if test "$with_xml" != 'yes' ; then |
| 14718 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 14719 | fi |
| 14720 | |
| 14721 | have_xml='no' |
| 14722 | XML_LIBS='' |
| 14723 | if test "$with_xml" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14725 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14727 | $as_echo_n "checking for XML... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14729 | $as_echo "" >&6; } |
| 14730 | PERSIST_LDFLAGS=$LDFLAGS |
| 14731 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 14732 | xml2_config='' |
| 14733 | for ac_prog in xml2-config |
| 14734 | do |
| 14735 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14736 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14738 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14739 | if test "${ac_cv_prog_xml2_config+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14740 | $as_echo_n "(cached) " >&6 |
| 14741 | else |
| 14742 | if test -n "$xml2_config"; then |
| 14743 | ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test. |
| 14744 | else |
| 14745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14746 | for as_dir in $PATH |
| 14747 | do |
| 14748 | IFS=$as_save_IFS |
| 14749 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14750 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14752 | ac_cv_prog_xml2_config="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14753 | $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] | 14754 | break 2 |
| 14755 | fi |
| 14756 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14757 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14758 | IFS=$as_save_IFS |
| 14759 | |
| 14760 | fi |
| 14761 | fi |
| 14762 | xml2_config=$ac_cv_prog_xml2_config |
| 14763 | if test -n "$xml2_config"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14765 | $as_echo "$xml2_config" >&6; } |
| 14766 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14768 | $as_echo "no" >&6; } |
| 14769 | fi |
| 14770 | |
| 14771 | |
| 14772 | test -n "$xml2_config" && break |
| 14773 | done |
| 14774 | if test -n "$xml2_config"; then |
| 14775 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 14776 | # the shared library installed under /usr/lib, whereas the package |
| 14777 | # installs itself under $prefix/libxml and $prefix/lib. |
| 14778 | xml2_prefix=`xml2-config --prefix` |
| 14779 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 14780 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 14781 | fi |
| 14782 | if test "${xml2_prefix}" != '/usr'; then |
| 14783 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 14784 | fi |
| 14785 | fi |
| 14786 | failed=0 |
| 14787 | passed=0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14788 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 14789 | if test "x$ac_cv_header_libxml_parser_h" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14790 | passed=`expr $passed + 1` |
| 14791 | else |
| 14792 | failed=`expr $failed + 1` |
| 14793 | fi |
| 14794 | |
| 14795 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14797 | $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14798 | if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14799 | $as_echo_n "(cached) " >&6 |
| 14800 | else |
| 14801 | ac_check_lib_save_LIBS=$LIBS |
| 14802 | LIBS="-lxml2 $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14804 | /* end confdefs.h. */ |
| 14805 | |
| 14806 | /* Override any GCC internal prototype to avoid an error. |
| 14807 | Use char because int might match the return type of a GCC |
| 14808 | builtin and then its argument prototype would still apply. */ |
| 14809 | #ifdef __cplusplus |
| 14810 | extern "C" |
| 14811 | #endif |
| 14812 | char xmlParseExternalEntity (); |
| 14813 | int |
| 14814 | main () |
| 14815 | { |
| 14816 | return xmlParseExternalEntity (); |
| 14817 | ; |
| 14818 | return 0; |
| 14819 | } |
| 14820 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14821 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14822 | ac_cv_lib_xml2_xmlParseExternalEntity=yes |
| 14823 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14824 | ac_cv_lib_xml2_xmlParseExternalEntity=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14825 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14826 | rm -f core conftest.err conftest.$ac_objext \ |
| 14827 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14828 | LIBS=$ac_check_lib_save_LIBS |
| 14829 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14831 | $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14832 | if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14833 | passed=`expr $passed + 1` |
| 14834 | else |
| 14835 | failed=`expr $failed + 1` |
| 14836 | fi |
| 14837 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14839 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 14840 | if test $passed -gt 0; then |
| 14841 | if test $failed -gt 0; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14842 | { $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] | 14843 | $as_echo "no -- some components failed test" >&6; } |
| 14844 | have_xml='no (failed tests)' |
| 14845 | LDFLAGS="$PERSIST_LDFLAGS" |
| 14846 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 14847 | else |
| 14848 | XML_LIBS='-lxml2' |
| 14849 | LIBS="$XML_LIBS $LIBS" |
| 14850 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14851 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14852 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14854 | $as_echo "yes" >&6; } |
| 14855 | have_xml='yes' |
| 14856 | fi |
| 14857 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14859 | $as_echo "no" >&6; } |
| 14860 | fi |
| 14861 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 14862 | AM_CONDITIONAL(XML_DELEGATE,test "$have_xml" = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14863 | |
| 14864 | |
| 14865 | |
| 14866 | # Substitute compiler name to build/link PerlMagick |
| 14867 | # |
| 14868 | |
| 14869 | |
| 14870 | # |
| 14871 | # Configure install Paths |
| 14872 | # |
| 14873 | |
| 14874 | # Subdirectory under lib to place ImageMagick lib files |
| 14875 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 14876 | |
| 14877 | cat >>confdefs.h <<_ACEOF |
| 14878 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 14879 | _ACEOF |
| 14880 | |
| 14881 | |
| 14882 | # Path to ImageMagick bin directory |
| 14883 | EXECUTABLE_PATH="${BIN_DIR}" |
| 14884 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 14885 | case "${build_os}" in |
| 14886 | mingw* ) |
| 14887 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 14888 | ;; |
| 14889 | esac |
| 14890 | |
| 14891 | cat >>confdefs.h <<_ACEOF |
| 14892 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 14893 | _ACEOF |
| 14894 | |
| 14895 | |
| 14896 | |
| 14897 | # Path to ImageMagick lib |
| 14898 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 14899 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 14900 | case "${build_os}" in |
| 14901 | mingw* ) |
| 14902 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 14903 | ;; |
| 14904 | esac |
| 14905 | |
| 14906 | cat >>confdefs.h <<_ACEOF |
| 14907 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 14908 | _ACEOF |
| 14909 | |
| 14910 | |
| 14911 | |
| 14912 | # Subdirectory under lib to place ImageMagick configuration files |
| 14913 | CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 14914 | |
| 14915 | cat >>confdefs.h <<_ACEOF |
| 14916 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 14917 | _ACEOF |
| 14918 | |
| 14919 | CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 14920 | DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 14921 | case "${build_os}" in |
| 14922 | mingw* ) |
| 14923 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 14924 | ;; |
| 14925 | esac |
| 14926 | |
| 14927 | cat >>confdefs.h <<_ACEOF |
| 14928 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 14929 | _ACEOF |
| 14930 | |
| 14931 | |
| 14932 | |
| 14933 | # |
| 14934 | # Subdirectory under lib to place ImageMagick coder module files |
| 14935 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" |
| 14936 | |
| 14937 | cat >>confdefs.h <<_ACEOF |
| 14938 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" |
| 14939 | _ACEOF |
| 14940 | |
| 14941 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" |
| 14942 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" |
| 14943 | case "${build_os}" in |
| 14944 | mingw* ) |
| 14945 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` |
| 14946 | ;; |
| 14947 | esac |
| 14948 | |
| 14949 | cat >>confdefs.h <<_ACEOF |
| 14950 | #define CODER_PATH "$DEFINE_CODER_PATH" |
| 14951 | _ACEOF |
| 14952 | |
| 14953 | |
| 14954 | |
| 14955 | # |
| 14956 | # Subdirectory under lib to place ImageMagick filter module files |
| 14957 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" |
| 14958 | |
| 14959 | cat >>confdefs.h <<_ACEOF |
| 14960 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" |
| 14961 | _ACEOF |
| 14962 | |
| 14963 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" |
| 14964 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" |
| 14965 | case "${build_os}" in |
| 14966 | mingw* ) |
| 14967 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` |
| 14968 | ;; |
| 14969 | esac |
| 14970 | |
| 14971 | cat >>confdefs.h <<_ACEOF |
| 14972 | #define FILTER_PATH "$DEFINE_FILTER_PATH" |
| 14973 | _ACEOF |
| 14974 | |
| 14975 | |
| 14976 | |
| 14977 | # |
| 14978 | # Path to ImageMagick documentation files |
| 14979 | DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 14980 | DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}" |
| 14981 | DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/" |
| 14982 | case "${build_os}" in |
| 14983 | mingw* ) |
| 14984 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 14985 | ;; |
| 14986 | esac |
| 14987 | |
| 14988 | cat >>confdefs.h <<_ACEOF |
| 14989 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 14990 | _ACEOF |
| 14991 | |
| 14992 | |
| 14993 | |
| 14994 | # |
| 14995 | # Path to ImageMagick share files |
| 14996 | SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 14997 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| 14998 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| 14999 | case "${build_os}" in |
| 15000 | mingw* ) |
| 15001 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| 15002 | ;; |
| 15003 | esac |
| 15004 | |
| 15005 | cat >>confdefs.h <<_ACEOF |
| 15006 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| 15007 | _ACEOF |
| 15008 | |
| 15009 | |
| 15010 | |
| 15011 | # Subdirectory under share to place ImageMagick configuration files |
| 15012 | SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 15013 | |
| 15014 | cat >>confdefs.h <<_ACEOF |
| 15015 | #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH" |
| 15016 | _ACEOF |
| 15017 | |
| 15018 | SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}" |
| 15019 | DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/" |
| 15020 | case "${build_os}" in |
| 15021 | mingw* ) |
| 15022 | DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1` |
| 15023 | ;; |
| 15024 | esac |
| 15025 | |
| 15026 | cat >>confdefs.h <<_ACEOF |
| 15027 | #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH" |
| 15028 | _ACEOF |
| 15029 | |
| 15030 | |
| 15031 | |
| 15032 | # |
| 15033 | # program_transform_name is formed for use in a Makefile, so create a |
| 15034 | # modified version for use in a shell script. |
| 15035 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 15036 | |
| 15037 | # Default delegate definitions |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15039 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15041 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15043 | $as_echo "" >&6; } |
| 15044 | AutotraceDecodeDelegateDefault='autotrace' |
| 15045 | AVIDecodeDelegateDefault='mplayer' |
cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 15046 | BlenderDecodeDelegateDefault='blender' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15047 | BZIPDelegateDefault='bzip2' |
| 15048 | BrowseDelegateDefault='xdg-open' |
| 15049 | CGMDecodeDelegateDefault='ralcgm' |
| 15050 | CatDelegateDefault='cat' |
| 15051 | DNGDecodeDelegateDefault='ufraw-batch' |
| 15052 | GVCDecodeDelegateDefault='dot' |
| 15053 | DVIDecodeDelegateDefault='dvips' |
| 15054 | EchoDelegateDefault='echo' |
| 15055 | EditorDelegateDefault='xterm' |
| 15056 | FIGDecodeDelegateDefault='fig2dev' |
| 15057 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 15058 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 15059 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 15060 | GnuplotDecodeDelegateDefault='gnuplot' |
| 15061 | HDRDecodeDelegateDefault='ra_pfm' |
| 15062 | HPGLDecodeDelegateDefault='hp2xx' |
| 15063 | HTMLDecodeDelegateDefault='html2ps' |
| 15064 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 15065 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| 15066 | LPDelegateDefault='lp' |
| 15067 | LPRDelegateDefault='lpr' |
| 15068 | LZWDecodeDelegateDefault='uncompress' |
| 15069 | LZWEncodeDelegateDefault='compress' |
| 15070 | LaunchDelegateDefault='gimp' |
| 15071 | MANDelegateDefault='groff' |
| 15072 | MPEGDecodeDelegateDefault='ffmpeg' |
| 15073 | MPEGEncodeDelegateDefault='ffmpeg' |
cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 15074 | MrSIDDecodeDelegateDefault='mrsidgeodecode' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15075 | MVDelegateDefault='mv' |
| 15076 | PCLDelegateDefault='pcl6' |
| 15077 | PGPDecodeDelegateDefault='pgpv' |
| 15078 | POVDelegateDefault='povray' |
| 15079 | if test "$native_win32_build" = 'yes'; then |
| 15080 | PSDelegateDefault='gswin32c' |
cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 15081 | elif test "$gslib_framework" = 'yes'; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15082 | PSDelegateDefault='gsc' |
| 15083 | else |
| 15084 | PSDelegateDefault='gs' |
| 15085 | fi |
| 15086 | RLEEncodeDelegateDefault='rawtorle' |
| 15087 | RMDelegateDefault='rm' |
cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 15088 | RSVGDecodeDelegateDefault='rsvg' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15089 | SCANDecodeDelegateDefault='scanimage' |
| 15090 | TXTDelegateDefault='enscript' |
cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 15091 | UniconvertorDelegateDefault='uniconvertor' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15092 | WMFDecodeDelegateDefault='wmf2eps' |
| 15093 | WWWDecodeDelegateDefault='curl' |
| 15094 | XPSDelegateDefault='gxps' |
| 15095 | ZipDelegateDefault='gzip' |
| 15096 | |
| 15097 | # Search for delegates |
| 15098 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 15099 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15101 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15102 | if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15103 | $as_echo_n "(cached) " >&6 |
| 15104 | else |
| 15105 | case $AutotraceDecodeDelegate in |
| 15106 | [\\/]* | ?:[\\/]*) |
| 15107 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 15108 | ;; |
| 15109 | *) |
| 15110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15111 | for as_dir in $PATH |
| 15112 | do |
| 15113 | IFS=$as_save_IFS |
| 15114 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15115 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15117 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15118 | $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] | 15119 | break 2 |
| 15120 | fi |
| 15121 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15122 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15123 | IFS=$as_save_IFS |
| 15124 | |
| 15125 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 15126 | ;; |
| 15127 | esac |
| 15128 | fi |
| 15129 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 15130 | if test -n "$AutotraceDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15132 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 15133 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15135 | $as_echo "no" >&6; } |
| 15136 | fi |
| 15137 | |
| 15138 | |
| 15139 | # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args. |
| 15140 | set dummy "$AVIDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15142 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15143 | if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15144 | $as_echo_n "(cached) " >&6 |
| 15145 | else |
| 15146 | case $AVIDecodeDelegate in |
| 15147 | [\\/]* | ?:[\\/]*) |
| 15148 | ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path. |
| 15149 | ;; |
| 15150 | *) |
| 15151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15152 | for as_dir in $PATH |
| 15153 | do |
| 15154 | IFS=$as_save_IFS |
| 15155 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15156 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15158 | ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15159 | $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] | 15160 | break 2 |
| 15161 | fi |
| 15162 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15163 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15164 | IFS=$as_save_IFS |
| 15165 | |
| 15166 | test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault"" |
| 15167 | ;; |
| 15168 | esac |
| 15169 | fi |
| 15170 | AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate |
| 15171 | if test -n "$AVIDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15173 | $as_echo "$AVIDecodeDelegate" >&6; } |
| 15174 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15176 | $as_echo "no" >&6; } |
| 15177 | fi |
| 15178 | |
| 15179 | |
| 15180 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 15181 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15183 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15184 | if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15185 | $as_echo_n "(cached) " >&6 |
| 15186 | else |
| 15187 | case $BlenderDecodeDelegate in |
| 15188 | [\\/]* | ?:[\\/]*) |
| 15189 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 15190 | ;; |
| 15191 | *) |
| 15192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15193 | for as_dir in $PATH |
| 15194 | do |
| 15195 | IFS=$as_save_IFS |
| 15196 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15197 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15199 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15200 | $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] | 15201 | break 2 |
| 15202 | fi |
| 15203 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15204 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15205 | IFS=$as_save_IFS |
| 15206 | |
| 15207 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 15208 | ;; |
| 15209 | esac |
| 15210 | fi |
| 15211 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 15212 | if test -n "$BlenderDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15214 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 15215 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15217 | $as_echo "no" >&6; } |
| 15218 | fi |
| 15219 | |
| 15220 | |
| 15221 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 15222 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15224 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15225 | if test "${ac_cv_path_BZIPDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15226 | $as_echo_n "(cached) " >&6 |
| 15227 | else |
| 15228 | case $BZIPDelegate in |
| 15229 | [\\/]* | ?:[\\/]*) |
| 15230 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 15231 | ;; |
| 15232 | *) |
| 15233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15234 | for as_dir in $PATH |
| 15235 | do |
| 15236 | IFS=$as_save_IFS |
| 15237 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15238 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15240 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15241 | $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] | 15242 | break 2 |
| 15243 | fi |
| 15244 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15245 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15246 | IFS=$as_save_IFS |
| 15247 | |
| 15248 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 15249 | ;; |
| 15250 | esac |
| 15251 | fi |
| 15252 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 15253 | if test -n "$BZIPDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15255 | $as_echo "$BZIPDelegate" >&6; } |
| 15256 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15258 | $as_echo "no" >&6; } |
| 15259 | fi |
| 15260 | |
| 15261 | |
| 15262 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. |
| 15263 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15265 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15266 | if test "${ac_cv_path_BrowseDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15267 | $as_echo_n "(cached) " >&6 |
| 15268 | else |
| 15269 | case $BrowseDelegate in |
| 15270 | [\\/]* | ?:[\\/]*) |
| 15271 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 15272 | ;; |
| 15273 | *) |
| 15274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15275 | for as_dir in $PATH |
| 15276 | do |
| 15277 | IFS=$as_save_IFS |
| 15278 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15279 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15281 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15282 | $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] | 15283 | break 2 |
| 15284 | fi |
| 15285 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15286 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15287 | IFS=$as_save_IFS |
| 15288 | |
| 15289 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" |
| 15290 | ;; |
| 15291 | esac |
| 15292 | fi |
| 15293 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 15294 | if test -n "$BrowseDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15296 | $as_echo "$BrowseDelegate" >&6; } |
| 15297 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15299 | $as_echo "no" >&6; } |
| 15300 | fi |
| 15301 | |
| 15302 | |
| 15303 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 15304 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15306 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15307 | if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15308 | $as_echo_n "(cached) " >&6 |
| 15309 | else |
| 15310 | case $CGMDecodeDelegate in |
| 15311 | [\\/]* | ?:[\\/]*) |
| 15312 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 15313 | ;; |
| 15314 | *) |
| 15315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15316 | for as_dir in $PATH |
| 15317 | do |
| 15318 | IFS=$as_save_IFS |
| 15319 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15320 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15322 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15323 | $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] | 15324 | break 2 |
| 15325 | fi |
| 15326 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15327 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15328 | IFS=$as_save_IFS |
| 15329 | |
| 15330 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 15331 | ;; |
| 15332 | esac |
| 15333 | fi |
| 15334 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 15335 | if test -n "$CGMDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15337 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 15338 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15340 | $as_echo "no" >&6; } |
| 15341 | fi |
| 15342 | |
| 15343 | |
| 15344 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 15345 | set dummy "$CatDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15347 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15348 | if test "${ac_cv_path_CatDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15349 | $as_echo_n "(cached) " >&6 |
| 15350 | else |
| 15351 | case $CatDelegate in |
| 15352 | [\\/]* | ?:[\\/]*) |
| 15353 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 15354 | ;; |
| 15355 | *) |
| 15356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15357 | for as_dir in $PATH |
| 15358 | do |
| 15359 | IFS=$as_save_IFS |
| 15360 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15361 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15362 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15363 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15364 | $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] | 15365 | break 2 |
| 15366 | fi |
| 15367 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15368 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15369 | IFS=$as_save_IFS |
| 15370 | |
| 15371 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 15372 | ;; |
| 15373 | esac |
| 15374 | fi |
| 15375 | CatDelegate=$ac_cv_path_CatDelegate |
| 15376 | if test -n "$CatDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15378 | $as_echo "$CatDelegate" >&6; } |
| 15379 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15381 | $as_echo "no" >&6; } |
| 15382 | fi |
| 15383 | |
| 15384 | |
| 15385 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 15386 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15388 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15389 | if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15390 | $as_echo_n "(cached) " >&6 |
| 15391 | else |
| 15392 | case $DNGDecodeDelegate in |
| 15393 | [\\/]* | ?:[\\/]*) |
| 15394 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 15395 | ;; |
| 15396 | *) |
| 15397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15398 | for as_dir in $PATH |
| 15399 | do |
| 15400 | IFS=$as_save_IFS |
| 15401 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15402 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15403 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15404 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15405 | $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] | 15406 | break 2 |
| 15407 | fi |
| 15408 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15409 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15410 | IFS=$as_save_IFS |
| 15411 | |
| 15412 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 15413 | ;; |
| 15414 | esac |
| 15415 | fi |
| 15416 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 15417 | if test -n "$DNGDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15419 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 15420 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15422 | $as_echo "no" >&6; } |
| 15423 | fi |
| 15424 | |
| 15425 | |
| 15426 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 15427 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15429 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15430 | if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15431 | $as_echo_n "(cached) " >&6 |
| 15432 | else |
| 15433 | case $GVCDecodeDelegate in |
| 15434 | [\\/]* | ?:[\\/]*) |
| 15435 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 15436 | ;; |
| 15437 | *) |
| 15438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15439 | for as_dir in $PATH |
| 15440 | do |
| 15441 | IFS=$as_save_IFS |
| 15442 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15443 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15445 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15446 | $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] | 15447 | break 2 |
| 15448 | fi |
| 15449 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15450 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15451 | IFS=$as_save_IFS |
| 15452 | |
| 15453 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 15454 | ;; |
| 15455 | esac |
| 15456 | fi |
| 15457 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 15458 | if test -n "$GVCDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15460 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 15461 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15463 | $as_echo "no" >&6; } |
| 15464 | fi |
| 15465 | |
| 15466 | |
| 15467 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 15468 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15470 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15471 | if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15472 | $as_echo_n "(cached) " >&6 |
| 15473 | else |
| 15474 | case $DVIDecodeDelegate in |
| 15475 | [\\/]* | ?:[\\/]*) |
| 15476 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 15477 | ;; |
| 15478 | *) |
| 15479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15480 | for as_dir in $PATH |
| 15481 | do |
| 15482 | IFS=$as_save_IFS |
| 15483 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15484 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15486 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15487 | $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] | 15488 | break 2 |
| 15489 | fi |
| 15490 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15491 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15492 | IFS=$as_save_IFS |
| 15493 | |
| 15494 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 15495 | ;; |
| 15496 | esac |
| 15497 | fi |
| 15498 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 15499 | if test -n "$DVIDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15501 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 15502 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15504 | $as_echo "no" >&6; } |
| 15505 | fi |
| 15506 | |
| 15507 | |
| 15508 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 15509 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15511 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15512 | if test "${ac_cv_path_EchoDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15513 | $as_echo_n "(cached) " >&6 |
| 15514 | else |
| 15515 | case $EchoDelegate in |
| 15516 | [\\/]* | ?:[\\/]*) |
| 15517 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 15518 | ;; |
| 15519 | *) |
| 15520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15521 | for as_dir in $PATH |
| 15522 | do |
| 15523 | IFS=$as_save_IFS |
| 15524 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15525 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15527 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15528 | $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] | 15529 | break 2 |
| 15530 | fi |
| 15531 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15532 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15533 | IFS=$as_save_IFS |
| 15534 | |
| 15535 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 15536 | ;; |
| 15537 | esac |
| 15538 | fi |
| 15539 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 15540 | if test -n "$EchoDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15542 | $as_echo "$EchoDelegate" >&6; } |
| 15543 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15545 | $as_echo "no" >&6; } |
| 15546 | fi |
| 15547 | |
| 15548 | |
| 15549 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 15550 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15552 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15553 | if test "${ac_cv_path_EditorDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15554 | $as_echo_n "(cached) " >&6 |
| 15555 | else |
| 15556 | case $EditorDelegate in |
| 15557 | [\\/]* | ?:[\\/]*) |
| 15558 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 15559 | ;; |
| 15560 | *) |
| 15561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15562 | for as_dir in $PATH |
| 15563 | do |
| 15564 | IFS=$as_save_IFS |
| 15565 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15566 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15568 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15569 | $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] | 15570 | break 2 |
| 15571 | fi |
| 15572 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15573 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15574 | IFS=$as_save_IFS |
| 15575 | |
| 15576 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 15577 | ;; |
| 15578 | esac |
| 15579 | fi |
| 15580 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 15581 | if test -n "$EditorDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15583 | $as_echo "$EditorDelegate" >&6; } |
| 15584 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15586 | $as_echo "no" >&6; } |
| 15587 | fi |
| 15588 | |
| 15589 | |
| 15590 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 15591 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15593 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15594 | if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15595 | $as_echo_n "(cached) " >&6 |
| 15596 | else |
| 15597 | case $FIGDecodeDelegate in |
| 15598 | [\\/]* | ?:[\\/]*) |
| 15599 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 15600 | ;; |
| 15601 | *) |
| 15602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15603 | for as_dir in $PATH |
| 15604 | do |
| 15605 | IFS=$as_save_IFS |
| 15606 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15607 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15609 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15610 | $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] | 15611 | break 2 |
| 15612 | fi |
| 15613 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15614 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15615 | IFS=$as_save_IFS |
| 15616 | |
| 15617 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 15618 | ;; |
| 15619 | esac |
| 15620 | fi |
| 15621 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 15622 | if test -n "$FIGDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15624 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 15625 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15627 | $as_echo "no" >&6; } |
| 15628 | fi |
| 15629 | |
| 15630 | |
| 15631 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 15632 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15634 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15635 | if test "${ac_cv_path_ConvertDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15636 | $as_echo_n "(cached) " >&6 |
| 15637 | else |
| 15638 | case $ConvertDelegate in |
| 15639 | [\\/]* | ?:[\\/]*) |
| 15640 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 15641 | ;; |
| 15642 | *) |
| 15643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15644 | for as_dir in $PATH |
| 15645 | do |
| 15646 | IFS=$as_save_IFS |
| 15647 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15648 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15650 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15651 | $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] | 15652 | break 2 |
| 15653 | fi |
| 15654 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15655 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15656 | IFS=$as_save_IFS |
| 15657 | |
| 15658 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 15659 | ;; |
| 15660 | esac |
| 15661 | fi |
| 15662 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 15663 | if test -n "$ConvertDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15665 | $as_echo "$ConvertDelegate" >&6; } |
| 15666 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15668 | $as_echo "no" >&6; } |
| 15669 | fi |
| 15670 | |
| 15671 | |
| 15672 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 15673 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15675 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15676 | if test "${ac_cv_path_DisplayDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15677 | $as_echo_n "(cached) " >&6 |
| 15678 | else |
| 15679 | case $DisplayDelegate in |
| 15680 | [\\/]* | ?:[\\/]*) |
| 15681 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 15682 | ;; |
| 15683 | *) |
| 15684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15685 | for as_dir in $PATH |
| 15686 | do |
| 15687 | IFS=$as_save_IFS |
| 15688 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15689 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15691 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15692 | $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] | 15693 | break 2 |
| 15694 | fi |
| 15695 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15696 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15697 | IFS=$as_save_IFS |
| 15698 | |
| 15699 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 15700 | ;; |
| 15701 | esac |
| 15702 | fi |
| 15703 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 15704 | if test -n "$DisplayDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15706 | $as_echo "$DisplayDelegate" >&6; } |
| 15707 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15709 | $as_echo "no" >&6; } |
| 15710 | fi |
| 15711 | |
| 15712 | |
| 15713 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 15714 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15716 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15717 | if test "${ac_cv_path_MogrifyDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15718 | $as_echo_n "(cached) " >&6 |
| 15719 | else |
| 15720 | case $MogrifyDelegate in |
| 15721 | [\\/]* | ?:[\\/]*) |
| 15722 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 15723 | ;; |
| 15724 | *) |
| 15725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15726 | for as_dir in $PATH |
| 15727 | do |
| 15728 | IFS=$as_save_IFS |
| 15729 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15730 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15732 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15733 | $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] | 15734 | break 2 |
| 15735 | fi |
| 15736 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15737 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15738 | IFS=$as_save_IFS |
| 15739 | |
| 15740 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 15741 | ;; |
| 15742 | esac |
| 15743 | fi |
| 15744 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 15745 | if test -n "$MogrifyDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15747 | $as_echo "$MogrifyDelegate" >&6; } |
| 15748 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15750 | $as_echo "no" >&6; } |
| 15751 | fi |
| 15752 | |
| 15753 | |
| 15754 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 15755 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15757 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15758 | if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15759 | $as_echo_n "(cached) " >&6 |
| 15760 | else |
| 15761 | case $GnuplotDecodeDelegate in |
| 15762 | [\\/]* | ?:[\\/]*) |
| 15763 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 15764 | ;; |
| 15765 | *) |
| 15766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15767 | for as_dir in $PATH |
| 15768 | do |
| 15769 | IFS=$as_save_IFS |
| 15770 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15771 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15773 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15774 | $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] | 15775 | break 2 |
| 15776 | fi |
| 15777 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15778 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15779 | IFS=$as_save_IFS |
| 15780 | |
| 15781 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 15782 | ;; |
| 15783 | esac |
| 15784 | fi |
| 15785 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 15786 | if test -n "$GnuplotDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15788 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 15789 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15791 | $as_echo "no" >&6; } |
| 15792 | fi |
| 15793 | |
| 15794 | |
| 15795 | # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args. |
| 15796 | set dummy "$HDRDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15798 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15799 | if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15800 | $as_echo_n "(cached) " >&6 |
| 15801 | else |
| 15802 | case $HDRDecodeDelegate in |
| 15803 | [\\/]* | ?:[\\/]*) |
| 15804 | ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path. |
| 15805 | ;; |
| 15806 | *) |
| 15807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15808 | for as_dir in $PATH |
| 15809 | do |
| 15810 | IFS=$as_save_IFS |
| 15811 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15812 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15814 | ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15815 | $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] | 15816 | break 2 |
| 15817 | fi |
| 15818 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15819 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15820 | IFS=$as_save_IFS |
| 15821 | |
| 15822 | test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault"" |
| 15823 | ;; |
| 15824 | esac |
| 15825 | fi |
| 15826 | HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate |
| 15827 | if test -n "$HDRDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15829 | $as_echo "$HDRDecodeDelegate" >&6; } |
| 15830 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15832 | $as_echo "no" >&6; } |
| 15833 | fi |
| 15834 | |
| 15835 | |
| 15836 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 15837 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15839 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15840 | if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15841 | $as_echo_n "(cached) " >&6 |
| 15842 | else |
| 15843 | case $HPGLDecodeDelegate in |
| 15844 | [\\/]* | ?:[\\/]*) |
| 15845 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 15846 | ;; |
| 15847 | *) |
| 15848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15849 | for as_dir in $PATH |
| 15850 | do |
| 15851 | IFS=$as_save_IFS |
| 15852 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15853 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15855 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15856 | $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] | 15857 | break 2 |
| 15858 | fi |
| 15859 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15860 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15861 | IFS=$as_save_IFS |
| 15862 | |
| 15863 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 15864 | ;; |
| 15865 | esac |
| 15866 | fi |
| 15867 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 15868 | if test -n "$HPGLDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15870 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 15871 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15873 | $as_echo "no" >&6; } |
| 15874 | fi |
| 15875 | |
| 15876 | |
| 15877 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 15878 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15880 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15881 | if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15882 | $as_echo_n "(cached) " >&6 |
| 15883 | else |
| 15884 | case $HTMLDecodeDelegate in |
| 15885 | [\\/]* | ?:[\\/]*) |
| 15886 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 15887 | ;; |
| 15888 | *) |
| 15889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15890 | for as_dir in $PATH |
| 15891 | do |
| 15892 | IFS=$as_save_IFS |
| 15893 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15894 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15896 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15897 | $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] | 15898 | break 2 |
| 15899 | fi |
| 15900 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15901 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15902 | IFS=$as_save_IFS |
| 15903 | |
| 15904 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 15905 | ;; |
| 15906 | esac |
| 15907 | fi |
| 15908 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 15909 | if test -n "$HTMLDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15911 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 15912 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15914 | $as_echo "no" >&6; } |
| 15915 | fi |
| 15916 | |
| 15917 | |
| 15918 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 15919 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15921 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15922 | if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15923 | $as_echo_n "(cached) " >&6 |
| 15924 | else |
| 15925 | case $ILBMDecodeDelegate in |
| 15926 | [\\/]* | ?:[\\/]*) |
| 15927 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 15928 | ;; |
| 15929 | *) |
| 15930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15931 | for as_dir in $PATH |
| 15932 | do |
| 15933 | IFS=$as_save_IFS |
| 15934 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15935 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15937 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15938 | $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] | 15939 | break 2 |
| 15940 | fi |
| 15941 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15942 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15943 | IFS=$as_save_IFS |
| 15944 | |
| 15945 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 15946 | ;; |
| 15947 | esac |
| 15948 | fi |
| 15949 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 15950 | if test -n "$ILBMDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15952 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 15953 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15955 | $as_echo "no" >&6; } |
| 15956 | fi |
| 15957 | |
| 15958 | |
| 15959 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 15960 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15962 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15963 | if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15964 | $as_echo_n "(cached) " >&6 |
| 15965 | else |
| 15966 | case $ILBMEncodeDelegate in |
| 15967 | [\\/]* | ?:[\\/]*) |
| 15968 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 15969 | ;; |
| 15970 | *) |
| 15971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15972 | for as_dir in $PATH |
| 15973 | do |
| 15974 | IFS=$as_save_IFS |
| 15975 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15976 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 15978 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15979 | $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] | 15980 | break 2 |
| 15981 | fi |
| 15982 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15983 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15984 | IFS=$as_save_IFS |
| 15985 | |
| 15986 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 15987 | ;; |
| 15988 | esac |
| 15989 | fi |
| 15990 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 15991 | if test -n "$ILBMEncodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15993 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 15994 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15996 | $as_echo "no" >&6; } |
| 15997 | fi |
| 15998 | |
| 15999 | |
| 16000 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 16001 | set dummy "$LPDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16003 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16004 | if test "${ac_cv_path_LPDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16005 | $as_echo_n "(cached) " >&6 |
| 16006 | else |
| 16007 | case $LPDelegate in |
| 16008 | [\\/]* | ?:[\\/]*) |
| 16009 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 16010 | ;; |
| 16011 | *) |
| 16012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16013 | for as_dir in $PATH |
| 16014 | do |
| 16015 | IFS=$as_save_IFS |
| 16016 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16017 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16019 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16020 | $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] | 16021 | break 2 |
| 16022 | fi |
| 16023 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16024 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16025 | IFS=$as_save_IFS |
| 16026 | |
| 16027 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 16028 | ;; |
| 16029 | esac |
| 16030 | fi |
| 16031 | LPDelegate=$ac_cv_path_LPDelegate |
| 16032 | if test -n "$LPDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16034 | $as_echo "$LPDelegate" >&6; } |
| 16035 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16037 | $as_echo "no" >&6; } |
| 16038 | fi |
| 16039 | |
| 16040 | |
| 16041 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 16042 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16044 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16045 | if test "${ac_cv_path_LPRDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16046 | $as_echo_n "(cached) " >&6 |
| 16047 | else |
| 16048 | case $LPRDelegate in |
| 16049 | [\\/]* | ?:[\\/]*) |
| 16050 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 16051 | ;; |
| 16052 | *) |
| 16053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16054 | for as_dir in $PATH |
| 16055 | do |
| 16056 | IFS=$as_save_IFS |
| 16057 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16058 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16060 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16061 | $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] | 16062 | break 2 |
| 16063 | fi |
| 16064 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16065 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16066 | IFS=$as_save_IFS |
| 16067 | |
| 16068 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 16069 | ;; |
| 16070 | esac |
| 16071 | fi |
| 16072 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 16073 | if test -n "$LPRDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16075 | $as_echo "$LPRDelegate" >&6; } |
| 16076 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16078 | $as_echo "no" >&6; } |
| 16079 | fi |
| 16080 | |
| 16081 | |
| 16082 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. |
| 16083 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16085 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16086 | if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16087 | $as_echo_n "(cached) " >&6 |
| 16088 | else |
| 16089 | case $LZWDecodeDelegate in |
| 16090 | [\\/]* | ?:[\\/]*) |
| 16091 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. |
| 16092 | ;; |
| 16093 | *) |
| 16094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16095 | for as_dir in $PATH |
| 16096 | do |
| 16097 | IFS=$as_save_IFS |
| 16098 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16099 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16101 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16102 | $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] | 16103 | break 2 |
| 16104 | fi |
| 16105 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16106 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16107 | IFS=$as_save_IFS |
| 16108 | |
| 16109 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" |
| 16110 | ;; |
| 16111 | esac |
| 16112 | fi |
| 16113 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate |
| 16114 | if test -n "$LZWDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16116 | $as_echo "$LZWDecodeDelegate" >&6; } |
| 16117 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16119 | $as_echo "no" >&6; } |
| 16120 | fi |
| 16121 | |
| 16122 | |
| 16123 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. |
| 16124 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16126 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16127 | if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16128 | $as_echo_n "(cached) " >&6 |
| 16129 | else |
| 16130 | case $LZWEncodeDelegate in |
| 16131 | [\\/]* | ?:[\\/]*) |
| 16132 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. |
| 16133 | ;; |
| 16134 | *) |
| 16135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16136 | for as_dir in $PATH |
| 16137 | do |
| 16138 | IFS=$as_save_IFS |
| 16139 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16140 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16142 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16143 | $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] | 16144 | break 2 |
| 16145 | fi |
| 16146 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16147 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16148 | IFS=$as_save_IFS |
| 16149 | |
| 16150 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" |
| 16151 | ;; |
| 16152 | esac |
| 16153 | fi |
| 16154 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate |
| 16155 | if test -n "$LZWEncodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16157 | $as_echo "$LZWEncodeDelegate" >&6; } |
| 16158 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16160 | $as_echo "no" >&6; } |
| 16161 | fi |
| 16162 | |
| 16163 | |
| 16164 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 16165 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16167 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16168 | if test "${ac_cv_path_LaunchDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16169 | $as_echo_n "(cached) " >&6 |
| 16170 | else |
| 16171 | case $LaunchDelegate in |
| 16172 | [\\/]* | ?:[\\/]*) |
| 16173 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 16174 | ;; |
| 16175 | *) |
| 16176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16177 | for as_dir in $PATH |
| 16178 | do |
| 16179 | IFS=$as_save_IFS |
| 16180 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16181 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16183 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16184 | $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] | 16185 | break 2 |
| 16186 | fi |
| 16187 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16188 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16189 | IFS=$as_save_IFS |
| 16190 | |
| 16191 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 16192 | ;; |
| 16193 | esac |
| 16194 | fi |
| 16195 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 16196 | if test -n "$LaunchDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16198 | $as_echo "$LaunchDelegate" >&6; } |
| 16199 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16201 | $as_echo "no" >&6; } |
| 16202 | fi |
| 16203 | |
| 16204 | |
| 16205 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 16206 | set dummy "$MANDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16208 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16209 | if test "${ac_cv_path_MANDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16210 | $as_echo_n "(cached) " >&6 |
| 16211 | else |
| 16212 | case $MANDelegate in |
| 16213 | [\\/]* | ?:[\\/]*) |
| 16214 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 16215 | ;; |
| 16216 | *) |
| 16217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16218 | for as_dir in $PATH |
| 16219 | do |
| 16220 | IFS=$as_save_IFS |
| 16221 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16222 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16224 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16225 | $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] | 16226 | break 2 |
| 16227 | fi |
| 16228 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16229 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16230 | IFS=$as_save_IFS |
| 16231 | |
| 16232 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 16233 | ;; |
| 16234 | esac |
| 16235 | fi |
| 16236 | MANDelegate=$ac_cv_path_MANDelegate |
| 16237 | if test -n "$MANDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16239 | $as_echo "$MANDelegate" >&6; } |
| 16240 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16242 | $as_echo "no" >&6; } |
| 16243 | fi |
| 16244 | |
| 16245 | |
| 16246 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 16247 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16249 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16250 | if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16251 | $as_echo_n "(cached) " >&6 |
| 16252 | else |
| 16253 | case $MPEGDecodeDelegate in |
| 16254 | [\\/]* | ?:[\\/]*) |
| 16255 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 16256 | ;; |
| 16257 | *) |
| 16258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16259 | for as_dir in $PATH |
| 16260 | do |
| 16261 | IFS=$as_save_IFS |
| 16262 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16263 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16264 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16265 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16266 | $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] | 16267 | break 2 |
| 16268 | fi |
| 16269 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16270 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16271 | IFS=$as_save_IFS |
| 16272 | |
| 16273 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 16274 | ;; |
| 16275 | esac |
| 16276 | fi |
| 16277 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 16278 | if test -n "$MPEGDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16280 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 16281 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16283 | $as_echo "no" >&6; } |
| 16284 | fi |
| 16285 | |
| 16286 | |
| 16287 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 16288 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16290 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16291 | if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16292 | $as_echo_n "(cached) " >&6 |
| 16293 | else |
| 16294 | case $MPEGEncodeDelegate in |
| 16295 | [\\/]* | ?:[\\/]*) |
| 16296 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 16297 | ;; |
| 16298 | *) |
| 16299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16300 | for as_dir in $PATH |
| 16301 | do |
| 16302 | IFS=$as_save_IFS |
| 16303 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16304 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16306 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16307 | $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] | 16308 | break 2 |
| 16309 | fi |
| 16310 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16311 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16312 | IFS=$as_save_IFS |
| 16313 | |
| 16314 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 16315 | ;; |
| 16316 | esac |
| 16317 | fi |
| 16318 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 16319 | if test -n "$MPEGEncodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16321 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 16322 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16324 | $as_echo "no" >&6; } |
| 16325 | fi |
| 16326 | |
| 16327 | |
cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 16328 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. |
| 16329 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 |
| 16330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16331 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16332 | if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then : |
| 16333 | $as_echo_n "(cached) " >&6 |
| 16334 | else |
| 16335 | case $MrSIDDecodeDelegate in |
| 16336 | [\\/]* | ?:[\\/]*) |
| 16337 | ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. |
| 16338 | ;; |
| 16339 | *) |
| 16340 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16341 | for as_dir in $PATH |
| 16342 | do |
| 16343 | IFS=$as_save_IFS |
| 16344 | test -z "$as_dir" && as_dir=. |
| 16345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16346 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16347 | ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 16348 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16349 | break 2 |
| 16350 | fi |
| 16351 | done |
| 16352 | done |
| 16353 | IFS=$as_save_IFS |
| 16354 | |
| 16355 | test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" |
| 16356 | ;; |
| 16357 | esac |
| 16358 | fi |
| 16359 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate |
| 16360 | if test -n "$MrSIDDecodeDelegate"; then |
| 16361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 |
| 16362 | $as_echo "$MrSIDDecodeDelegate" >&6; } |
| 16363 | else |
| 16364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16365 | $as_echo "no" >&6; } |
| 16366 | fi |
| 16367 | |
| 16368 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16369 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 16370 | set dummy "$MVDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16372 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16373 | if test "${ac_cv_path_MVDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16374 | $as_echo_n "(cached) " >&6 |
| 16375 | else |
| 16376 | case $MVDelegate in |
| 16377 | [\\/]* | ?:[\\/]*) |
| 16378 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 16379 | ;; |
| 16380 | *) |
| 16381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16382 | for as_dir in $PATH |
| 16383 | do |
| 16384 | IFS=$as_save_IFS |
| 16385 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16386 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16388 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16389 | $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] | 16390 | break 2 |
| 16391 | fi |
| 16392 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16393 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16394 | IFS=$as_save_IFS |
| 16395 | |
| 16396 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 16397 | ;; |
| 16398 | esac |
| 16399 | fi |
| 16400 | MVDelegate=$ac_cv_path_MVDelegate |
| 16401 | if test -n "$MVDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16403 | $as_echo "$MVDelegate" >&6; } |
| 16404 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16406 | $as_echo "no" >&6; } |
| 16407 | fi |
| 16408 | |
| 16409 | |
| 16410 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 16411 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16413 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16414 | if test "${ac_cv_path_PCLDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16415 | $as_echo_n "(cached) " >&6 |
| 16416 | else |
| 16417 | case $PCLDelegate in |
| 16418 | [\\/]* | ?:[\\/]*) |
| 16419 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 16420 | ;; |
| 16421 | *) |
| 16422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16423 | for as_dir in $PATH |
| 16424 | do |
| 16425 | IFS=$as_save_IFS |
| 16426 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16427 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16429 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16430 | $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] | 16431 | break 2 |
| 16432 | fi |
| 16433 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16434 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16435 | IFS=$as_save_IFS |
| 16436 | |
| 16437 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 16438 | ;; |
| 16439 | esac |
| 16440 | fi |
| 16441 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 16442 | if test -n "$PCLDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16444 | $as_echo "$PCLDelegate" >&6; } |
| 16445 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16447 | $as_echo "no" >&6; } |
| 16448 | fi |
| 16449 | |
| 16450 | |
| 16451 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 16452 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16454 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16455 | if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16456 | $as_echo_n "(cached) " >&6 |
| 16457 | else |
| 16458 | case $PGPDecodeDelegate in |
| 16459 | [\\/]* | ?:[\\/]*) |
| 16460 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 16461 | ;; |
| 16462 | *) |
| 16463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16464 | for as_dir in $PATH |
| 16465 | do |
| 16466 | IFS=$as_save_IFS |
| 16467 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16468 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16470 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16471 | $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] | 16472 | break 2 |
| 16473 | fi |
| 16474 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16475 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16476 | IFS=$as_save_IFS |
| 16477 | |
| 16478 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 16479 | ;; |
| 16480 | esac |
| 16481 | fi |
| 16482 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 16483 | if test -n "$PGPDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16485 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 16486 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16488 | $as_echo "no" >&6; } |
| 16489 | fi |
| 16490 | |
| 16491 | |
| 16492 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 16493 | set dummy "$POVDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16495 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16496 | if test "${ac_cv_path_POVDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16497 | $as_echo_n "(cached) " >&6 |
| 16498 | else |
| 16499 | case $POVDelegate in |
| 16500 | [\\/]* | ?:[\\/]*) |
| 16501 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 16502 | ;; |
| 16503 | *) |
| 16504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16505 | for as_dir in $PATH |
| 16506 | do |
| 16507 | IFS=$as_save_IFS |
| 16508 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16509 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16511 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16512 | $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] | 16513 | break 2 |
| 16514 | fi |
| 16515 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16516 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16517 | IFS=$as_save_IFS |
| 16518 | |
| 16519 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 16520 | ;; |
| 16521 | esac |
| 16522 | fi |
| 16523 | POVDelegate=$ac_cv_path_POVDelegate |
| 16524 | if test -n "$POVDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16526 | $as_echo "$POVDelegate" >&6; } |
| 16527 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16529 | $as_echo "no" >&6; } |
| 16530 | fi |
| 16531 | |
| 16532 | |
| 16533 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 16534 | do |
| 16535 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 16536 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16538 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16539 | if test "${ac_cv_path_PSDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16540 | $as_echo_n "(cached) " >&6 |
| 16541 | else |
| 16542 | case $PSDelegate in |
| 16543 | [\\/]* | ?:[\\/]*) |
| 16544 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 16545 | ;; |
| 16546 | *) |
| 16547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16548 | for as_dir in $PATH |
| 16549 | do |
| 16550 | IFS=$as_save_IFS |
| 16551 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16552 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16553 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16554 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16555 | $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] | 16556 | break 2 |
| 16557 | fi |
| 16558 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16559 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16560 | IFS=$as_save_IFS |
| 16561 | |
| 16562 | ;; |
| 16563 | esac |
| 16564 | fi |
| 16565 | PSDelegate=$ac_cv_path_PSDelegate |
| 16566 | if test -n "$PSDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16568 | $as_echo "$PSDelegate" >&6; } |
| 16569 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16571 | $as_echo "no" >&6; } |
| 16572 | fi |
| 16573 | |
| 16574 | |
| 16575 | test -n "$PSDelegate" && break |
| 16576 | done |
| 16577 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 16578 | |
| 16579 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 16580 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16582 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16583 | if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16584 | $as_echo_n "(cached) " >&6 |
| 16585 | else |
| 16586 | case $RLEEncodeDelegate in |
| 16587 | [\\/]* | ?:[\\/]*) |
| 16588 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 16589 | ;; |
| 16590 | *) |
| 16591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16592 | for as_dir in $PATH |
| 16593 | do |
| 16594 | IFS=$as_save_IFS |
| 16595 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16596 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16598 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16599 | $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] | 16600 | break 2 |
| 16601 | fi |
| 16602 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16603 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16604 | IFS=$as_save_IFS |
| 16605 | |
| 16606 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 16607 | ;; |
| 16608 | esac |
| 16609 | fi |
| 16610 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 16611 | if test -n "$RLEEncodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16613 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 16614 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16616 | $as_echo "no" >&6; } |
| 16617 | fi |
| 16618 | |
| 16619 | |
| 16620 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 16621 | set dummy "$RMDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16623 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16624 | if test "${ac_cv_path_RMDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16625 | $as_echo_n "(cached) " >&6 |
| 16626 | else |
| 16627 | case $RMDelegate in |
| 16628 | [\\/]* | ?:[\\/]*) |
| 16629 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 16630 | ;; |
| 16631 | *) |
| 16632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16633 | for as_dir in $PATH |
| 16634 | do |
| 16635 | IFS=$as_save_IFS |
| 16636 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16637 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16638 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16639 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16640 | $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] | 16641 | break 2 |
| 16642 | fi |
| 16643 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16644 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16645 | IFS=$as_save_IFS |
| 16646 | |
| 16647 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 16648 | ;; |
| 16649 | esac |
| 16650 | fi |
| 16651 | RMDelegate=$ac_cv_path_RMDelegate |
| 16652 | if test -n "$RMDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16654 | $as_echo "$RMDelegate" >&6; } |
| 16655 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16657 | $as_echo "no" >&6; } |
| 16658 | fi |
| 16659 | |
| 16660 | |
cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 16661 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. |
| 16662 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 |
| 16663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16664 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16665 | if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then : |
| 16666 | $as_echo_n "(cached) " >&6 |
| 16667 | else |
| 16668 | case $RSVGDecodeDelegate in |
| 16669 | [\\/]* | ?:[\\/]*) |
| 16670 | ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. |
| 16671 | ;; |
| 16672 | *) |
| 16673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16674 | for as_dir in $PATH |
| 16675 | do |
| 16676 | IFS=$as_save_IFS |
| 16677 | test -z "$as_dir" && as_dir=. |
| 16678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16680 | ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 16681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16682 | break 2 |
| 16683 | fi |
| 16684 | done |
| 16685 | done |
| 16686 | IFS=$as_save_IFS |
| 16687 | |
| 16688 | test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" |
| 16689 | ;; |
| 16690 | esac |
| 16691 | fi |
| 16692 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate |
| 16693 | if test -n "$RSVGDecodeDelegate"; then |
| 16694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 |
| 16695 | $as_echo "$RSVGDecodeDelegate" >&6; } |
| 16696 | else |
| 16697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16698 | $as_echo "no" >&6; } |
| 16699 | fi |
| 16700 | |
| 16701 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16702 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 16703 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16705 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16706 | if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16707 | $as_echo_n "(cached) " >&6 |
| 16708 | else |
| 16709 | case $SCANDecodeDelegate in |
| 16710 | [\\/]* | ?:[\\/]*) |
| 16711 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 16712 | ;; |
| 16713 | *) |
| 16714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16715 | for as_dir in $PATH |
| 16716 | do |
| 16717 | IFS=$as_save_IFS |
| 16718 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16719 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16721 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16722 | $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] | 16723 | break 2 |
| 16724 | fi |
| 16725 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16726 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16727 | IFS=$as_save_IFS |
| 16728 | |
| 16729 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 16730 | ;; |
| 16731 | esac |
| 16732 | fi |
| 16733 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 16734 | if test -n "$SCANDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16736 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 16737 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16739 | $as_echo "no" >&6; } |
| 16740 | fi |
| 16741 | |
| 16742 | |
| 16743 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 16744 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16746 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16747 | if test "${ac_cv_path_TXTDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16748 | $as_echo_n "(cached) " >&6 |
| 16749 | else |
| 16750 | case $TXTDelegate in |
| 16751 | [\\/]* | ?:[\\/]*) |
| 16752 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 16753 | ;; |
| 16754 | *) |
| 16755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16756 | for as_dir in $PATH |
| 16757 | do |
| 16758 | IFS=$as_save_IFS |
| 16759 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16760 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16762 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16763 | $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] | 16764 | break 2 |
| 16765 | fi |
| 16766 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16767 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16768 | IFS=$as_save_IFS |
| 16769 | |
| 16770 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 16771 | ;; |
| 16772 | esac |
| 16773 | fi |
| 16774 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 16775 | if test -n "$TXTDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16777 | $as_echo "$TXTDelegate" >&6; } |
| 16778 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16780 | $as_echo "no" >&6; } |
| 16781 | fi |
| 16782 | |
| 16783 | |
cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 16784 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. |
| 16785 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 |
| 16786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16787 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16788 | if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then : |
| 16789 | $as_echo_n "(cached) " >&6 |
| 16790 | else |
| 16791 | case $UniconvertorDelegate in |
| 16792 | [\\/]* | ?:[\\/]*) |
| 16793 | ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. |
| 16794 | ;; |
| 16795 | *) |
| 16796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16797 | for as_dir in $PATH |
| 16798 | do |
| 16799 | IFS=$as_save_IFS |
| 16800 | test -z "$as_dir" && as_dir=. |
| 16801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16802 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16803 | ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 16804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16805 | break 2 |
| 16806 | fi |
| 16807 | done |
| 16808 | done |
| 16809 | IFS=$as_save_IFS |
| 16810 | |
| 16811 | test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" |
| 16812 | ;; |
| 16813 | esac |
| 16814 | fi |
| 16815 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate |
| 16816 | if test -n "$UniconvertorDelegate"; then |
| 16817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 |
| 16818 | $as_echo "$UniconvertorDelegate" >&6; } |
| 16819 | else |
| 16820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16821 | $as_echo "no" >&6; } |
| 16822 | fi |
| 16823 | |
| 16824 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16825 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 16826 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16828 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16829 | if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16830 | $as_echo_n "(cached) " >&6 |
| 16831 | else |
| 16832 | case $WMFDecodeDelegate in |
| 16833 | [\\/]* | ?:[\\/]*) |
| 16834 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 16835 | ;; |
| 16836 | *) |
| 16837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16838 | for as_dir in $PATH |
| 16839 | do |
| 16840 | IFS=$as_save_IFS |
| 16841 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16842 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16844 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16845 | $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] | 16846 | break 2 |
| 16847 | fi |
| 16848 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16849 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16850 | IFS=$as_save_IFS |
| 16851 | |
| 16852 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 16853 | ;; |
| 16854 | esac |
| 16855 | fi |
| 16856 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 16857 | if test -n "$WMFDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16859 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 16860 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16862 | $as_echo "no" >&6; } |
| 16863 | fi |
| 16864 | |
| 16865 | |
| 16866 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 16867 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16869 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16870 | if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16871 | $as_echo_n "(cached) " >&6 |
| 16872 | else |
| 16873 | case $WWWDecodeDelegate in |
| 16874 | [\\/]* | ?:[\\/]*) |
| 16875 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 16876 | ;; |
| 16877 | *) |
| 16878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16879 | for as_dir in $PATH |
| 16880 | do |
| 16881 | IFS=$as_save_IFS |
| 16882 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16883 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16885 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16886 | $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] | 16887 | break 2 |
| 16888 | fi |
| 16889 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16890 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16891 | IFS=$as_save_IFS |
| 16892 | |
| 16893 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 16894 | ;; |
| 16895 | esac |
| 16896 | fi |
| 16897 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 16898 | if test -n "$WWWDecodeDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16900 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 16901 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16903 | $as_echo "no" >&6; } |
| 16904 | fi |
| 16905 | |
| 16906 | |
| 16907 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 16908 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16910 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16911 | if test "${ac_cv_path_XPSDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16912 | $as_echo_n "(cached) " >&6 |
| 16913 | else |
| 16914 | case $XPSDelegate in |
| 16915 | [\\/]* | ?:[\\/]*) |
| 16916 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 16917 | ;; |
| 16918 | *) |
| 16919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16920 | for as_dir in $PATH |
| 16921 | do |
| 16922 | IFS=$as_save_IFS |
| 16923 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16924 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16926 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16927 | $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] | 16928 | break 2 |
| 16929 | fi |
| 16930 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16931 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16932 | IFS=$as_save_IFS |
| 16933 | |
| 16934 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 16935 | ;; |
| 16936 | esac |
| 16937 | fi |
| 16938 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 16939 | if test -n "$XPSDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16941 | $as_echo "$XPSDelegate" >&6; } |
| 16942 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16944 | $as_echo "no" >&6; } |
| 16945 | fi |
| 16946 | |
| 16947 | |
| 16948 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 16949 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16951 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16952 | if test "${ac_cv_path_ZipDelegate+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16953 | $as_echo_n "(cached) " >&6 |
| 16954 | else |
| 16955 | case $ZipDelegate in |
| 16956 | [\\/]* | ?:[\\/]*) |
| 16957 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 16958 | ;; |
| 16959 | *) |
| 16960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16961 | for as_dir in $PATH |
| 16962 | do |
| 16963 | IFS=$as_save_IFS |
| 16964 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16965 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 16967 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16968 | $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] | 16969 | break 2 |
| 16970 | fi |
| 16971 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16972 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16973 | IFS=$as_save_IFS |
| 16974 | |
| 16975 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 16976 | ;; |
| 16977 | esac |
| 16978 | fi |
| 16979 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 16980 | if test -n "$ZipDelegate"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16982 | $as_echo "$ZipDelegate" >&6; } |
| 16983 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16985 | $as_echo "no" >&6; } |
| 16986 | fi |
| 16987 | |
| 16988 | |
| 16989 | |
| 16990 | # Prefer lpr to lp; lp needs options tacked on. |
| 16991 | if test "$LPRDelegate" != no; then |
| 16992 | PrintDelegate="$LPRDelegate" |
| 16993 | else |
| 16994 | PrintDelegate="$LPDelegate -c -s" |
| 16995 | fi |
| 16996 | |
| 16997 | |
| 16998 | # Installed ImageMagick utiltity paths |
| 16999 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 17000 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 17001 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 17002 | |
| 17003 | # Set delegate booleans |
| 17004 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 17005 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 17006 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 17007 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 17008 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| 17009 | have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi |
cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 17010 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17011 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 17012 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| 17013 | have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi |
| 17014 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 17015 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 17016 | |
| 17017 | # |
| 17018 | # Test for font directories |
| 17019 | # |
| 17020 | type_include_files='' |
| 17021 | |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 17022 | # Dejavu fonts. |
| 17023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 |
| 17024 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } |
| 17025 | dejavu_font_dir='' |
| 17026 | if test "${with_dejavu_font_dir}" != 'default'; then |
| 17027 | dejavu_font_dir="${with_dejavu_font_dir}/" |
| 17028 | else |
| 17029 | for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do |
| 17030 | if test -f "${font_dir}DejaVuSerif.ttf"; then |
| 17031 | dejavu_font_dir="${font_dir}" |
| 17032 | break 1 |
| 17033 | fi |
| 17034 | done |
| 17035 | fi |
| 17036 | if test "${dejavu_font_dir}x" != 'x'; then |
| 17037 | type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' |
| 17038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 |
| 17039 | $as_echo "$dejavu_font_dir" >&6; } |
| 17040 | else |
| 17041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| 17042 | $as_echo "not found!" >&6; }; |
| 17043 | fi |
| 17044 | |
| 17045 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17046 | # Windows |
| 17047 | windows_font_dir='' |
| 17048 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 17049 | windows_font_dir="${with_windows_font_dir}/" |
| 17050 | fi |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 17051 | if test "${windows_font_dir}x" != 'x'; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17052 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 17053 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 17054 | fi |
| 17055 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 17056 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 17057 | fi |
| 17058 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 17059 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 17060 | fi |
| 17061 | fi |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 17062 | if test "${windows_font_dir}x" != 'x'; then |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17063 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 17064 | fi |
| 17065 | |
| 17066 | |
| 17067 | # Ghostscript |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17069 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 17070 | ghostscript_font_dir='' |
| 17071 | if test "${with_gs_font_dir}" != 'default'; then |
| 17072 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 17073 | else |
| 17074 | if test "${native_win32_build}" = 'yes'; then |
| 17075 | # Native Windows Build |
| 17076 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 17077 | if test -f "${font_dir}a010013l.pfb"; then |
| 17078 | ghostscript_font_dir="$font_dir" |
| 17079 | break 1 |
| 17080 | fi |
| 17081 | done |
| 17082 | if test "${PSDelegate}" != 'gswin32c'; then |
| 17083 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 17084 | fi |
| 17085 | else |
| 17086 | # Linux / Mac OS X / Unix Build |
| 17087 | 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 |
| 17088 | if test -f "${font_dir}a010013l.pfb"; then |
| 17089 | ghostscript_font_dir="${font_dir}" |
| 17090 | break 1 |
| 17091 | fi |
| 17092 | done |
| 17093 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 17094 | if test "$PSDelegate" != 'gs'; then |
| 17095 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 17096 | fi |
| 17097 | fi |
| 17098 | fi |
| 17099 | fi |
| 17100 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 17101 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17103 | $as_echo "$ghostscript_font_dir" >&6; } |
| 17104 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17106 | $as_echo "not found!" >&6; }; |
| 17107 | fi |
| 17108 | |
| 17109 | case "${build_os}" in |
| 17110 | mingw* ) |
| 17111 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 17112 | ;; |
| 17113 | esac |
| 17114 | |
| 17115 | |
| 17116 | |
| 17117 | # |
| 17118 | # Handle case where user doesn't want frozen paths |
| 17119 | # |
| 17120 | if test "$with_frozenpaths" != 'yes'; then |
| 17121 | # Re-set delegate definitions to default (no paths) |
| 17122 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| 17123 | AVIDecodeDelegate="$AVIDecodeDelegateDefault" |
| 17124 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 17125 | BZIPDelegate="$BZIPDelegateDefault" |
| 17126 | BrowseDelegate="$BrowseDelegateDefault" |
| 17127 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 17128 | CatDelegate="$CatDelegateDefault" |
| 17129 | ConvertDelegate="$ConvertDelegateDefault" |
| 17130 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| 17131 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 17132 | EchoDelegate="$EchoDelegateDefault" |
| 17133 | EditorDelegate="$EditorDelegateDefault" |
| 17134 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 17135 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| 17136 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 17137 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 17138 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 17139 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| 17140 | LPDelegate="$LPDelegateDefault" |
| 17141 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" |
| 17142 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" |
| 17143 | LaunchDelegate="$LaunchDelegateDefault" |
| 17144 | MANDelegate="$MANDelegateDefault" |
| 17145 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 17146 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17147 | MogrifyDelegate="$MogrifyDelegateDefault" |
cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 17148 | MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" |
| 17149 | MVDelegate="$MVDelegateDefault" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17150 | PCLDelegate="$PCLDelegateDefault" |
| 17151 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 17152 | POVDelegate="$POVDelegateDefault" |
| 17153 | PSDelegate="$PSDelegateDefault" |
| 17154 | HDRDecodeDelegate="$HDRDecodeDelegateDefault" |
| 17155 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 17156 | RMDelegate="$RMDelegateDefault" |
cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 17157 | RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17158 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| 17159 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 17160 | TXTDelegate="$TXTDelegateDefault" |
cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 17161 | UniconvertorDelegate="$UniconvertorDelegateDefault" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17162 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 17163 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 17164 | XPSDelegate="$XPSDelegateDefault" |
| 17165 | ZipDelegate="$ZipDelegateDefault" |
| 17166 | fi |
| 17167 | |
| 17168 | # Delegate substitutions |
| 17169 | |
| 17170 | |
| 17171 | |
| 17172 | |
| 17173 | |
| 17174 | |
| 17175 | |
| 17176 | |
| 17177 | |
| 17178 | |
| 17179 | |
| 17180 | |
| 17181 | |
| 17182 | |
| 17183 | |
| 17184 | |
| 17185 | |
| 17186 | |
| 17187 | |
| 17188 | |
| 17189 | |
| 17190 | |
| 17191 | |
| 17192 | |
| 17193 | |
| 17194 | |
| 17195 | |
| 17196 | |
| 17197 | |
| 17198 | |
| 17199 | |
| 17200 | |
| 17201 | |
| 17202 | |
| 17203 | |
| 17204 | |
| 17205 | |
| 17206 | |
| 17207 | |
| 17208 | |
| 17209 | |
| 17210 | |
cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 17211 | |
cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 17212 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17213 | # |
| 17214 | # RPM support. |
| 17215 | # |
| 17216 | RPM='' |
| 17217 | for ac_prog in gnutar gtar tar |
| 17218 | do |
| 17219 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17220 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17222 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17223 | if test "${ac_cv_prog_TAR+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17224 | $as_echo_n "(cached) " >&6 |
| 17225 | else |
| 17226 | if test -n "$TAR"; then |
| 17227 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 17228 | else |
| 17229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17230 | for as_dir in $PATH |
| 17231 | do |
| 17232 | IFS=$as_save_IFS |
| 17233 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17234 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17236 | ac_cv_prog_TAR="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17237 | $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] | 17238 | break 2 |
| 17239 | fi |
| 17240 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17241 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17242 | IFS=$as_save_IFS |
| 17243 | |
| 17244 | fi |
| 17245 | fi |
| 17246 | TAR=$ac_cv_prog_TAR |
| 17247 | if test -n "$TAR"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17249 | $as_echo "$TAR" >&6; } |
| 17250 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17252 | $as_echo "no" >&6; } |
| 17253 | fi |
| 17254 | |
| 17255 | |
| 17256 | test -n "$TAR" && break |
| 17257 | done |
| 17258 | |
| 17259 | for ac_prog in perl |
| 17260 | do |
| 17261 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17262 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17264 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17265 | if test "${ac_cv_prog_PERL+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17266 | $as_echo_n "(cached) " >&6 |
| 17267 | else |
| 17268 | if test -n "$PERL"; then |
| 17269 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 17270 | else |
| 17271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17272 | for as_dir in $PATH |
| 17273 | do |
| 17274 | IFS=$as_save_IFS |
| 17275 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17276 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17278 | ac_cv_prog_PERL="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17279 | $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] | 17280 | break 2 |
| 17281 | fi |
| 17282 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17283 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17284 | IFS=$as_save_IFS |
| 17285 | |
| 17286 | fi |
| 17287 | fi |
| 17288 | PERL=$ac_cv_prog_PERL |
| 17289 | if test -n "$PERL"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17291 | $as_echo "$PERL" >&6; } |
| 17292 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17294 | $as_echo "no" >&6; } |
| 17295 | fi |
| 17296 | |
| 17297 | |
| 17298 | test -n "$PERL" && break |
| 17299 | done |
| 17300 | |
| 17301 | for ac_prog in rpmbuild rpm |
| 17302 | do |
| 17303 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17304 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17306 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17307 | if test "${ac_cv_prog_RPM+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17308 | $as_echo_n "(cached) " >&6 |
| 17309 | else |
| 17310 | if test -n "$RPM"; then |
| 17311 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 17312 | else |
| 17313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17314 | for as_dir in $PATH |
| 17315 | do |
| 17316 | IFS=$as_save_IFS |
| 17317 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17318 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17320 | ac_cv_prog_RPM="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17321 | $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] | 17322 | break 2 |
| 17323 | fi |
| 17324 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17325 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17326 | IFS=$as_save_IFS |
| 17327 | |
| 17328 | fi |
| 17329 | fi |
| 17330 | RPM=$ac_cv_prog_RPM |
| 17331 | if test -n "$RPM"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17333 | $as_echo "$RPM" >&6; } |
| 17334 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17336 | $as_echo "no" >&6; } |
| 17337 | fi |
| 17338 | |
| 17339 | |
| 17340 | test -n "$RPM" && break |
| 17341 | done |
| 17342 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 17343 | AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) |
| 17344 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
| 17345 | AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) |
| 17346 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17347 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 17348 | AM_CONDITIONAL(RPM_DELEGATE, test "x$RPM" != "x" ) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17349 | |
| 17350 | # |
| 17351 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 17352 | # |
| 17353 | P7ZIP='' |
| 17354 | for ac_prog in 7za |
| 17355 | do |
| 17356 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17357 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17359 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17360 | if test "${ac_cv_prog_P7ZIP+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17361 | $as_echo_n "(cached) " >&6 |
| 17362 | else |
| 17363 | if test -n "$P7ZIP"; then |
| 17364 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 17365 | else |
| 17366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17367 | for as_dir in $PATH |
| 17368 | do |
| 17369 | IFS=$as_save_IFS |
| 17370 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17371 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17373 | ac_cv_prog_P7ZIP="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17374 | $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] | 17375 | break 2 |
| 17376 | fi |
| 17377 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17378 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17379 | IFS=$as_save_IFS |
| 17380 | |
| 17381 | fi |
| 17382 | fi |
| 17383 | P7ZIP=$ac_cv_prog_P7ZIP |
| 17384 | if test -n "$P7ZIP"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17386 | $as_echo "$P7ZIP" >&6; } |
| 17387 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17389 | $as_echo "no" >&6; } |
| 17390 | fi |
| 17391 | |
| 17392 | |
| 17393 | test -n "$P7ZIP" && break |
| 17394 | done |
| 17395 | |
| 17396 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 17397 | AM_CONDITIONAL(P7ZIP_DELEGATE, test "x$P7ZIP" != "x" ) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17398 | |
| 17399 | # |
| 17400 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 17401 | # |
| 17402 | ZIP='' |
| 17403 | for ac_prog in zip |
| 17404 | do |
| 17405 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17406 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17408 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17409 | if test "${ac_cv_prog_ZIP+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17410 | $as_echo_n "(cached) " >&6 |
| 17411 | else |
| 17412 | if test -n "$ZIP"; then |
| 17413 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 17414 | else |
| 17415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17416 | for as_dir in $PATH |
| 17417 | do |
| 17418 | IFS=$as_save_IFS |
| 17419 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17420 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17421 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17422 | ac_cv_prog_ZIP="$ac_prog" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17423 | $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] | 17424 | break 2 |
| 17425 | fi |
| 17426 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17427 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17428 | IFS=$as_save_IFS |
| 17429 | |
| 17430 | fi |
| 17431 | fi |
| 17432 | ZIP=$ac_cv_prog_ZIP |
| 17433 | if test -n "$ZIP"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17435 | $as_echo "$ZIP" >&6; } |
| 17436 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17438 | $as_echo "no" >&6; } |
| 17439 | fi |
| 17440 | |
| 17441 | |
| 17442 | test -n "$ZIP" && break |
| 17443 | done |
| 17444 | |
| 17445 | |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 17446 | AM_CONDITIONAL(ZIP_DELEGATE, test "x$ZIP" != "x" ) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17447 | |
| 17448 | # |
| 17449 | # GhostPCL related configuration. |
| 17450 | # |
| 17451 | PCLColorDevice=ppmraw |
| 17452 | PCLCMYKDevice=bmpsep8 |
| 17453 | PCLMonoDevice=pbmraw |
| 17454 | if test -z "$PCLVersion"; then |
| 17455 | PCLVersion='unknown' |
| 17456 | fi |
| 17457 | if test $have_pcl = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17459 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17461 | $as_echo_n "checking for PCL... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17463 | $as_echo "" >&6; } |
| 17464 | # PCLColorDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17466 | $as_echo_n "checking for pcl color device... " >&6; } |
| 17467 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17468 | : |
| 17469 | else |
| 17470 | PCLColorDevice=ppmraw |
| 17471 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17473 | $as_echo "$PCLColorDevice" >&6; } |
| 17474 | |
| 17475 | # PCLCMYKDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17477 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 17478 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17479 | : |
| 17480 | else |
| 17481 | PCLCMYKDevice=$PCLColorDevice |
| 17482 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17484 | $as_echo "$PCLCMYKDevice" >&6; } |
| 17485 | |
| 17486 | # PCLMonoDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17488 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 17489 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17490 | : |
| 17491 | else |
| 17492 | PCLMonoDevice=$PCLColorDevice |
| 17493 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17495 | $as_echo "$PCLMonoDevice" >&6; } |
| 17496 | fi |
| 17497 | |
| 17498 | |
| 17499 | |
| 17500 | |
| 17501 | |
| 17502 | |
| 17503 | # |
| 17504 | # GhostXPS related configuration. |
| 17505 | # |
| 17506 | XPSColorDevice=ppmraw |
| 17507 | XPSCMYKDevice=bmpsep8 |
| 17508 | XPSMonoDevice=pbmraw |
| 17509 | if test -z "$XPSVersion"; then |
| 17510 | XPSVersion='unknown' |
| 17511 | fi |
| 17512 | if test $have_xps = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17514 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17516 | $as_echo_n "checking for XPS... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17518 | $as_echo "" >&6; } |
| 17519 | # XPSColorDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17521 | $as_echo_n "checking for xps color device... " >&6; } |
| 17522 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17523 | : |
| 17524 | else |
| 17525 | XPSColorDevice=ppmraw |
| 17526 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17528 | $as_echo "$XPSColorDevice" >&6; } |
| 17529 | |
| 17530 | # XPSCMYKDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17532 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 17533 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17534 | : |
| 17535 | else |
| 17536 | XPSCMYKDevice=$XPSColorDevice |
| 17537 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17539 | $as_echo "$XPSCMYKDevice" >&6; } |
| 17540 | |
| 17541 | # XPSMonoDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17543 | $as_echo_n "checking for xps mono device... " >&6; } |
| 17544 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17545 | : |
| 17546 | else |
| 17547 | XPSMonoDevice=$XPSColorDevice |
| 17548 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17550 | $as_echo "$XPSMonoDevice" >&6; } |
| 17551 | fi |
| 17552 | |
| 17553 | |
| 17554 | |
| 17555 | |
| 17556 | |
| 17557 | |
| 17558 | # |
| 17559 | # Ghostscript related configuration. |
| 17560 | # |
| 17561 | if test "$have_png" = 'yes'; then |
| 17562 | GSAlphaDevice=pngalpha |
| 17563 | else |
| 17564 | GSAlphaDevice=pnmraw |
| 17565 | fi |
| 17566 | GSColorDevice=pnmraw |
| 17567 | GSCMYKDevice=pam |
| 17568 | GSMonoDevice=pbmraw |
| 17569 | GSPDFDevice=pdfwrite |
| 17570 | GSPSDevice=pswrite |
| 17571 | GSEPSDevice=epswrite |
| 17572 | GSVersion='unknown' |
| 17573 | if test $have_gs = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17575 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17577 | $as_echo_n "checking for Ghostscript... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17579 | $as_echo "" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17581 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 17582 | if GSVersion=`$PSDelegate --version`; then |
| 17583 | : |
| 17584 | else |
| 17585 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 17586 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17588 | $as_echo "$GSVersion" >&6; } |
| 17589 | |
| 17590 | # GSAlphaDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17592 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 17593 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17594 | : |
| 17595 | else |
| 17596 | GSAlphaDevice=pnmraw |
| 17597 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17599 | $as_echo "$GSAlphaDevice" >&6; } |
| 17600 | |
| 17601 | # GSColorDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17603 | $as_echo_n "checking for gs color device... " >&6; } |
| 17604 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17605 | : |
| 17606 | else |
| 17607 | GSColorDevice=pnmraw |
| 17608 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17610 | $as_echo "$GSColorDevice" >&6; } |
| 17611 | |
| 17612 | # GSCMYKDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17614 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 17615 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17616 | : |
| 17617 | else |
| 17618 | GSCMYKDevice=bmpsep8 |
| 17619 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17621 | $as_echo "$GSCMYKDevice" >&6; } |
| 17622 | |
| 17623 | # GSMonoDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17625 | $as_echo_n "checking for gs mono device... " >&6; } |
| 17626 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17627 | : |
| 17628 | else |
| 17629 | GSMonoDevice=$GSColorDevice |
| 17630 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17632 | $as_echo "$GSMonoDevice" >&6; } |
| 17633 | |
| 17634 | # GSPDFDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17635 | { $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] | 17636 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 17637 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17638 | : |
| 17639 | else |
| 17640 | GSPDFDevice=nodevice |
| 17641 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17643 | $as_echo "$GSPDFDevice" >&6; } |
| 17644 | |
| 17645 | # GSPSDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17646 | { $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] | 17647 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 17648 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17649 | : |
| 17650 | else |
| 17651 | GSPSDevice=nodevice |
| 17652 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17654 | $as_echo "$GSPSDevice" >&6; } |
| 17655 | |
| 17656 | # GSEPSDevice |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17657 | { $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] | 17658 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 17659 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 17660 | : |
| 17661 | else |
| 17662 | GSEPSDevice=nodevice |
| 17663 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17665 | $as_echo "$GSEPSDevice" >&6; } |
| 17666 | fi |
| 17667 | |
| 17668 | |
| 17669 | |
| 17670 | |
| 17671 | |
| 17672 | |
| 17673 | |
| 17674 | |
| 17675 | |
| 17676 | |
| 17677 | # |
| 17678 | # PerlMagick-related configuration |
| 17679 | # |
| 17680 | |
| 17681 | # Look for PERL if PerlMagick requested |
| 17682 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 17683 | have_perl='no' |
| 17684 | if test "$with_perl" != 'no'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17686 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17688 | $as_echo_n "checking for Perl... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17690 | $as_echo "" >&6; } |
| 17691 | if test "$with_perl" != 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17693 | $as_echo_n "checking for perl... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17694 | if test "${ac_cv_path_PERL+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17695 | $as_echo_n "(cached) " >&6 |
| 17696 | else |
| 17697 | ac_cv_path_PERL="$with_perl" |
| 17698 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17700 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 17701 | PERL=$ac_cv_path_PERL |
| 17702 | have_perl="$ac_cv_path_PERL" |
| 17703 | else |
| 17704 | for ac_prog in perl perl5 |
| 17705 | do |
| 17706 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 17707 | set dummy $ac_prog; ac_word=$2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17709 | $as_echo_n "checking for $ac_word... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17710 | if test "${ac_cv_path_PERL+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17711 | $as_echo_n "(cached) " >&6 |
| 17712 | else |
| 17713 | case $PERL in |
| 17714 | [\\/]* | ?:[\\/]*) |
| 17715 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 17716 | ;; |
| 17717 | *) |
| 17718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17719 | for as_dir in $PATH |
| 17720 | do |
| 17721 | IFS=$as_save_IFS |
| 17722 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17723 | for ac_exec_ext in '' $ac_executable_extensions; do |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 17725 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17726 | $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] | 17727 | break 2 |
| 17728 | fi |
| 17729 | done |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17730 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17731 | IFS=$as_save_IFS |
| 17732 | |
| 17733 | ;; |
| 17734 | esac |
| 17735 | fi |
| 17736 | PERL=$ac_cv_path_PERL |
| 17737 | if test -n "$PERL"; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17739 | $as_echo "$PERL" >&6; } |
| 17740 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17742 | $as_echo "no" >&6; } |
| 17743 | fi |
| 17744 | |
| 17745 | |
| 17746 | test -n "$PERL" && break |
| 17747 | done |
| 17748 | if test "$ac_cv_path_PERL"; then |
| 17749 | have_perl="$ac_cv_path_PERL" |
| 17750 | fi |
| 17751 | fi |
| 17752 | fi |
| 17753 | |
cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 17754 | if test "$with_perl" != 'yes' ; then |
| 17755 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " |
| 17756 | fi |
| 17757 | |
| 17758 | PERL_SUPPORTS_DESTDIR='no' |
| 17759 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17760 | with_perl_static='no' |
| 17761 | with_perl_dynamic='no' |
| 17762 | if test "$have_perl" != 'no'; then |
| 17763 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 17764 | with_perl_static='yes' |
| 17765 | fi |
| 17766 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 17767 | with_perl_dynamic='yes' |
| 17768 | fi |
| 17769 | # Is PERL's MakeMaker new enough to support DESTDIR? |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 17770 | AX_PROG_PERL_VERSION(5.8.1,PERL_SUPPORTS_DESTDIR='yes',PERL_SUPPORTS_DESTDIR='no') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17771 | fi |
nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 17772 | AM_CONDITIONAL(WITH_PERL, test "$have_perl" != 'no') |
| 17773 | AM_CONDITIONAL(WITH_PERL_STATIC, test $with_perl_static = 'yes') |
| 17774 | AM_CONDITIONAL(WITH_PERL_DYNAMIC, test $with_perl_dynamic = 'yes') |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17775 | |
| 17776 | |
| 17777 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 17778 | MAGICKCORE_PATH="${LIB_DIR}" |
| 17779 | if test $with_perl_static = 'yes'; then |
| 17780 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 17781 | libtool_objdir=$objdir |
| 17782 | |
| 17783 | # Linker search path to library, followed by -lMagickCore |
| 17784 | MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" |
| 17785 | fi |
| 17786 | |
| 17787 | |
| 17788 | # Create a simple string containing format names for all delegate libraries |
| 17789 | DELEGATES='' |
| 17790 | if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi |
| 17791 | if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi |
| 17792 | if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi |
| 17793 | if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi |
| 17794 | if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi |
| 17795 | if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi |
| 17796 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi |
| 17797 | if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi |
| 17798 | if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi |
| 17799 | if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi |
| 17800 | if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi |
| 17801 | if test "$have_jpeg" = 'yes'; then |
| 17802 | DELEGATES="$DELEGATES jpeg"; |
| 17803 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi |
| 17804 | fi |
| 17805 | if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 17806 | if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17807 | if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi |
| 17808 | if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi |
| 17809 | if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi |
| 17810 | if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi |
| 17811 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi |
| 17812 | if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi |
| 17813 | if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi |
| 17814 | if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi |
| 17815 | if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi |
| 17816 | if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi |
| 17817 | if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi |
| 17818 | |
| 17819 | |
| 17820 | |
| 17821 | # |
| 17822 | # Handle special compiler flags |
| 17823 | # |
| 17824 | |
| 17825 | # Add '-p' if prof source profiling support enabled |
| 17826 | if test "$enable_prof" = 'yes'; then |
| 17827 | CFLAGS="-p $CFLAGS" |
| 17828 | CXXFLAGS="-p $CXXFLAGS" |
| 17829 | LDFLAGS="-p $LDFLAGS" |
| 17830 | fi |
| 17831 | |
| 17832 | # Add '-pg' if gprof source profiling support enabled |
| 17833 | if test "$enable_gprof" = 'yes'; then |
| 17834 | CFLAGS="-pg $CFLAGS" |
| 17835 | CXXFLAGS="-pg $CXXFLAGS" |
| 17836 | LDFLAGS="-pg $LDFLAGS" |
| 17837 | fi |
| 17838 | |
| 17839 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 17840 | # This is a gcc-specific feature |
| 17841 | if test "$enable_gcov" = 'yes'; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17842 | { $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] | 17843 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17844 | if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17845 | $as_echo_n "(cached) " >&6 |
| 17846 | else |
| 17847 | ac_check_lib_save_LIBS=$LIBS |
| 17848 | LIBS="-lgcov $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17850 | /* end confdefs.h. */ |
| 17851 | |
| 17852 | /* Override any GCC internal prototype to avoid an error. |
| 17853 | Use char because int might match the return type of a GCC |
| 17854 | builtin and then its argument prototype would still apply. */ |
| 17855 | #ifdef __cplusplus |
| 17856 | extern "C" |
| 17857 | #endif |
| 17858 | char _gcov_init (); |
| 17859 | int |
| 17860 | main () |
| 17861 | { |
| 17862 | return _gcov_init (); |
| 17863 | ; |
| 17864 | return 0; |
| 17865 | } |
| 17866 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17867 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17868 | ac_cv_lib_gcov__gcov_init=yes |
| 17869 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17870 | ac_cv_lib_gcov__gcov_init=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17871 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17872 | rm -f core conftest.err conftest.$ac_objext \ |
| 17873 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17874 | LIBS=$ac_check_lib_save_LIBS |
| 17875 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17876 | { $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] | 17877 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17878 | if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17879 | cat >>confdefs.h <<_ACEOF |
| 17880 | #define HAVE_LIBGCOV 1 |
| 17881 | _ACEOF |
| 17882 | |
| 17883 | LIBS="-lgcov $LIBS" |
| 17884 | |
| 17885 | fi |
| 17886 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17887 | { $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] | 17888 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17889 | if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17890 | $as_echo_n "(cached) " >&6 |
| 17891 | else |
| 17892 | ac_check_lib_save_LIBS=$LIBS |
| 17893 | LIBS="-lgcov $LIBS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17895 | /* end confdefs.h. */ |
| 17896 | |
| 17897 | /* Override any GCC internal prototype to avoid an error. |
| 17898 | Use char because int might match the return type of a GCC |
| 17899 | builtin and then its argument prototype would still apply. */ |
| 17900 | #ifdef __cplusplus |
| 17901 | extern "C" |
| 17902 | #endif |
| 17903 | char __gcov_init (); |
| 17904 | int |
| 17905 | main () |
| 17906 | { |
| 17907 | return __gcov_init (); |
| 17908 | ; |
| 17909 | return 0; |
| 17910 | } |
| 17911 | _ACEOF |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17912 | if ac_fn_c_try_link "$LINENO"; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17913 | ac_cv_lib_gcov___gcov_init=yes |
| 17914 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17915 | ac_cv_lib_gcov___gcov_init=no |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17916 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17917 | rm -f core conftest.err conftest.$ac_objext \ |
| 17918 | conftest$ac_exeext conftest.$ac_ext |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17919 | LIBS=$ac_check_lib_save_LIBS |
| 17920 | fi |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17921 | { $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] | 17922 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17923 | if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17924 | cat >>confdefs.h <<_ACEOF |
| 17925 | #define HAVE_LIBGCOV 1 |
| 17926 | _ACEOF |
| 17927 | |
| 17928 | LIBS="-lgcov $LIBS" |
| 17929 | |
| 17930 | fi |
| 17931 | |
| 17932 | case "$target_os" in |
| 17933 | darwin*) |
| 17934 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 17935 | ;; |
| 17936 | *) |
| 17937 | OSX_GCOV_LDFLAG="" |
| 17938 | ;; |
| 17939 | esac |
| 17940 | |
| 17941 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 17942 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 17943 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 17944 | fi |
| 17945 | |
| 17946 | # |
| 17947 | # Build library dependency list for libMagickCore |
| 17948 | # |
| 17949 | |
| 17950 | MAGICK_LIBLTDL='' # Libltdl for build |
| 17951 | MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build |
| 17952 | MAGICK_LTDLDEPS='' # extra libltdl dependencies |
| 17953 | if test "$with_ltdl" != 'no' |
| 17954 | then |
| 17955 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then |
| 17956 | MAGICK_API_LIBLTDL='-lltdl' |
| 17957 | fi |
| 17958 | MAGICK_LIBLTDL=${LIBLTDL} |
| 17959 | MAGICK_LTDLDEPS=${LTDLDEPS} |
| 17960 | fi |
| 17961 | |
| 17962 | |
| 17963 | |
| 17964 | if test "$with_modules" != 'no'; then |
cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 17965 | 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 $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] | 17966 | else |
cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 17967 | 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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_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] | 17968 | fi |
| 17969 | |
| 17970 | |
| 17971 | # |
| 17972 | # Remove extraneous spaces from output variables (asthetic) |
| 17973 | # |
| 17974 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 17975 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 17976 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 17977 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 17978 | |
| 17979 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 17980 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 17981 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 17982 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| 17983 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` |
| 17984 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 17985 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 17986 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 17987 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 17988 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 17989 | |
| 17990 | # Pass only user-provided LIBS as "global" libraries |
| 17991 | LIBS=$USER_LIBS |
| 17992 | |
| 17993 | #AC_SUBST(CPPFLAGS) |
| 17994 | |
| 17995 | #AC_SUBST(LDFLAGS) |
| 17996 | #AC_SUBST(X_PRE_LIBS) |
| 17997 | #AC_SUBST(X_LIBS) |
| 17998 | #AC_SUBST(X_EXTRA_LIBS) |
| 17999 | |
| 18000 | MAGICK_CFLAGS=$CFLAGS |
| 18001 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 18002 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 18003 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 18004 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| 18005 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" |
| 18006 | |
| 18007 | |
| 18008 | |
| 18009 | |
| 18010 | |
| 18011 | |
| 18012 | |
| 18013 | |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 18014 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18015 | # Set configured scripts to executable. |
| 18016 | ac_config_commands="$ac_config_commands default" |
| 18017 | |
| 18018 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 18019 | |
| 18020 | ac_config_commands="$ac_config_commands Magick-config.in" |
| 18021 | |
| 18022 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 18023 | |
| 18024 | ac_config_commands="$ac_config_commands Wand-config.in" |
| 18025 | |
| 18026 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 18027 | |
| 18028 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 18029 | |
| 18030 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18032 | $as_echo "-------------------------------------------------------------" >&6; } |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18034 | $as_echo "Update ImageMagick configuration" >&6; } |
| 18035 | cat >confcache <<\_ACEOF |
| 18036 | # This file is a shell script that caches the results of configure |
| 18037 | # tests run on this system so they can be shared between configure |
| 18038 | # scripts and configure runs, see configure's option --config-cache. |
| 18039 | # It is not useful on other systems. If it contains results you don't |
| 18040 | # want to keep, you may remove or edit it. |
| 18041 | # |
| 18042 | # config.status only pays attention to the cache file if you give it |
| 18043 | # the --recheck option to rerun configure. |
| 18044 | # |
| 18045 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18046 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18047 | # following values. |
| 18048 | |
| 18049 | _ACEOF |
| 18050 | |
| 18051 | # The following way of writing the cache mishandles newlines in values, |
| 18052 | # but we know of no workaround that is simple, portable, and efficient. |
| 18053 | # So, we kill variables containing newlines. |
| 18054 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18055 | # and sets the high bit in the cache file unless we assign to the vars. |
| 18056 | ( |
| 18057 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18058 | eval ac_val=\$$ac_var |
| 18059 | case $ac_val in #( |
| 18060 | *${as_nl}*) |
| 18061 | case $ac_var in #( |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18062 | *_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] | 18063 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 18064 | esac |
| 18065 | case $ac_var in #( |
| 18066 | _ | IFS | as_nl) ;; #( |
| 18067 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18068 | *) { eval $ac_var=; unset $ac_var;} ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18069 | esac ;; |
| 18070 | esac |
| 18071 | done |
| 18072 | |
| 18073 | (set) 2>&1 | |
| 18074 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18075 | *${as_nl}ac_space=\ *) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18076 | # `set' does not quote correctly, so add quotes: double-quote |
| 18077 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18078 | sed -n \ |
| 18079 | "s/'/'\\\\''/g; |
| 18080 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18081 | ;; #( |
| 18082 | *) |
| 18083 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18084 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 18085 | ;; |
| 18086 | esac | |
| 18087 | sort |
| 18088 | ) | |
| 18089 | sed ' |
| 18090 | /^ac_cv_env_/b end |
| 18091 | t clear |
| 18092 | :clear |
| 18093 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18094 | t end |
| 18095 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18096 | :end' >>confcache |
| 18097 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18098 | if test -w "$cache_file"; then |
| 18099 | test "x$cache_file" != "x/dev/null" && |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18100 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18101 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 18102 | cat confcache >$cache_file |
| 18103 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18104 | { $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] | 18105 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 18106 | fi |
| 18107 | fi |
| 18108 | rm -f confcache |
| 18109 | |
| 18110 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18111 | # Let make expand exec_prefix. |
| 18112 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18113 | |
| 18114 | DEFS=-DHAVE_CONFIG_H |
| 18115 | |
| 18116 | ac_libobjs= |
| 18117 | ac_ltlibobjs= |
| 18118 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18119 | # 1. Remove the extension, and $U if already installed. |
| 18120 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 18121 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 18122 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18123 | # will be set to the directory where LIBOBJS objects are built. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18124 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18125 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18126 | done |
| 18127 | LIBOBJS=$ac_libobjs |
| 18128 | |
| 18129 | LTLIBOBJS=$ac_ltlibobjs |
| 18130 | |
| 18131 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18132 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18133 | |
| 18134 | : ${CONFIG_STATUS=./config.status} |
| 18135 | ac_write_fail=0 |
| 18136 | ac_clean_files_save=$ac_clean_files |
| 18137 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18138 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18139 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18140 | as_write_fail=0 |
| 18141 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18142 | #! $SHELL |
| 18143 | # Generated by $as_me. |
| 18144 | # Run this file to recreate the current configuration. |
| 18145 | # Compiler output produced by configure, useful for debugging |
| 18146 | # configure, is in config.log if it exists. |
| 18147 | |
| 18148 | debug=false |
| 18149 | ac_cs_recheck=false |
| 18150 | ac_cs_silent=false |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18151 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18152 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18153 | export SHELL |
| 18154 | _ASEOF |
| 18155 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 18156 | ## -------------------- ## |
| 18157 | ## M4sh Initialization. ## |
| 18158 | ## -------------------- ## |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18159 | |
| 18160 | # Be more Bourne compatible |
| 18161 | DUALCASE=1; export DUALCASE # for MKS sh |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18162 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18163 | emulate sh |
| 18164 | NULLCMD=: |
| 18165 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 18166 | # is contrary to our usage. Disable this feature. |
| 18167 | alias -g '${1+"$@"}'='"$@"' |
| 18168 | setopt NO_GLOB_SUBST |
| 18169 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18170 | case `(set -o) 2>/dev/null` in #( |
| 18171 | *posix*) : |
| 18172 | set -o posix ;; #( |
| 18173 | *) : |
| 18174 | ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18175 | esac |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18176 | fi |
| 18177 | |
| 18178 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18179 | as_nl=' |
| 18180 | ' |
| 18181 | export as_nl |
| 18182 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 18183 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 18184 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18185 | 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] | 18186 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 18187 | # but without wasting forks for bash or zsh. |
| 18188 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 18189 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18190 | as_echo='print -r --' |
| 18191 | as_echo_n='print -rn --' |
| 18192 | 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] | 18193 | as_echo='printf %s\n' |
| 18194 | as_echo_n='printf %s' |
| 18195 | else |
| 18196 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 18197 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 18198 | as_echo_n='/usr/ucb/echo -n' |
| 18199 | else |
| 18200 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 18201 | as_echo_n_body='eval |
| 18202 | arg=$1; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18203 | case $arg in #( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18204 | *"$as_nl"*) |
| 18205 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 18206 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 18207 | esac; |
| 18208 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 18209 | ' |
| 18210 | export as_echo_n_body |
| 18211 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 18212 | fi |
| 18213 | export as_echo_body |
| 18214 | as_echo='sh -c $as_echo_body as_echo' |
| 18215 | fi |
| 18216 | |
| 18217 | # The user is always right. |
| 18218 | if test "${PATH_SEPARATOR+set}" != set; then |
| 18219 | PATH_SEPARATOR=: |
| 18220 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 18221 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 18222 | PATH_SEPARATOR=';' |
| 18223 | } |
| 18224 | fi |
| 18225 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18226 | |
| 18227 | # IFS |
| 18228 | # We need space, tab and new line, in precisely that order. Quoting is |
| 18229 | # there to prevent editors from complaining about space-tab. |
| 18230 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 18231 | # splitting by setting IFS to empty value.) |
| 18232 | IFS=" "" $as_nl" |
| 18233 | |
| 18234 | # Find who we are. Look in the path if we contain no directory separator. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18235 | case $0 in #(( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18236 | *[\\/]* ) as_myself=$0 ;; |
| 18237 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18238 | for as_dir in $PATH |
| 18239 | do |
| 18240 | IFS=$as_save_IFS |
| 18241 | test -z "$as_dir" && as_dir=. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18242 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18243 | done |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18244 | IFS=$as_save_IFS |
| 18245 | |
| 18246 | ;; |
| 18247 | esac |
| 18248 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18249 | # in which case we are not to be found in the path. |
| 18250 | if test "x$as_myself" = x; then |
| 18251 | as_myself=$0 |
| 18252 | fi |
| 18253 | if test ! -f "$as_myself"; then |
| 18254 | $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] | 18255 | exit 1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18256 | fi |
| 18257 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18258 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 18259 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 18260 | # suppresses any "Segmentation fault" message there. '((' could |
| 18261 | # trigger a bug in pdksh 5.2.14. |
| 18262 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 18263 | do eval test x\${$as_var+set} = xset \ |
| 18264 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18265 | done |
| 18266 | PS1='$ ' |
| 18267 | PS2='> ' |
| 18268 | PS4='+ ' |
| 18269 | |
| 18270 | # NLS nuisances. |
| 18271 | LC_ALL=C |
| 18272 | export LC_ALL |
| 18273 | LANGUAGE=C |
| 18274 | export LANGUAGE |
| 18275 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18276 | # CDPATH. |
| 18277 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18278 | |
| 18279 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18280 | # as_fn_error ERROR [LINENO LOG_FD] |
| 18281 | # --------------------------------- |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18282 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 18283 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18284 | # script with status $?, using 1 if that was 0. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18285 | as_fn_error () |
| 18286 | { |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18287 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 18288 | if test "$3"; then |
| 18289 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 18290 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18291 | fi |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18292 | $as_echo "$as_me: error: $1" >&2 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18293 | as_fn_exit $as_status |
| 18294 | } # as_fn_error |
| 18295 | |
| 18296 | |
| 18297 | # as_fn_set_status STATUS |
| 18298 | # ----------------------- |
| 18299 | # Set $? to STATUS, without forking. |
| 18300 | as_fn_set_status () |
| 18301 | { |
| 18302 | return $1 |
| 18303 | } # as_fn_set_status |
| 18304 | |
| 18305 | # as_fn_exit STATUS |
| 18306 | # ----------------- |
| 18307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 18308 | as_fn_exit () |
| 18309 | { |
| 18310 | set +e |
| 18311 | as_fn_set_status $1 |
| 18312 | exit $1 |
| 18313 | } # as_fn_exit |
| 18314 | |
| 18315 | # as_fn_unset VAR |
| 18316 | # --------------- |
| 18317 | # Portably unset VAR. |
| 18318 | as_fn_unset () |
| 18319 | { |
| 18320 | { eval $1=; unset $1;} |
| 18321 | } |
| 18322 | as_unset=as_fn_unset |
| 18323 | # as_fn_append VAR VALUE |
| 18324 | # ---------------------- |
| 18325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 18326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 18327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 18328 | # implementations. |
| 18329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 18330 | eval 'as_fn_append () |
| 18331 | { |
| 18332 | eval $1+=\$2 |
| 18333 | }' |
| 18334 | else |
| 18335 | as_fn_append () |
| 18336 | { |
| 18337 | eval $1=\$$1\$2 |
| 18338 | } |
| 18339 | fi # as_fn_append |
| 18340 | |
| 18341 | # as_fn_arith ARG... |
| 18342 | # ------------------ |
| 18343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 18344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 18345 | # must be portable across $(()) and expr. |
| 18346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 18347 | eval 'as_fn_arith () |
| 18348 | { |
| 18349 | as_val=$(( $* )) |
| 18350 | }' |
| 18351 | else |
| 18352 | as_fn_arith () |
| 18353 | { |
| 18354 | as_val=`expr "$@" || test $? -eq 1` |
| 18355 | } |
| 18356 | fi # as_fn_arith |
| 18357 | |
| 18358 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18359 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 18360 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 18361 | as_expr=expr |
| 18362 | else |
| 18363 | as_expr=false |
| 18364 | fi |
| 18365 | |
| 18366 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 18367 | as_basename=basename |
| 18368 | else |
| 18369 | as_basename=false |
| 18370 | fi |
| 18371 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18372 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 18373 | as_dirname=dirname |
| 18374 | else |
| 18375 | as_dirname=false |
| 18376 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18377 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18378 | as_me=`$as_basename -- "$0" || |
| 18379 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 18380 | X"$0" : 'X\(//\)$' \| \ |
| 18381 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 18382 | $as_echo X/"$0" | |
| 18383 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 18384 | s//\1/ |
| 18385 | q |
| 18386 | } |
| 18387 | /^X\/\(\/\/\)$/{ |
| 18388 | s//\1/ |
| 18389 | q |
| 18390 | } |
| 18391 | /^X\/\(\/\).*/{ |
| 18392 | s//\1/ |
| 18393 | q |
| 18394 | } |
| 18395 | s/.*/./; q'` |
| 18396 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18397 | # Avoid depending upon Character Ranges. |
| 18398 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 18399 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 18400 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 18401 | as_cr_digits='0123456789' |
| 18402 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18403 | |
| 18404 | ECHO_C= ECHO_N= ECHO_T= |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18405 | case `echo -n x` in #((((( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18406 | -n*) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18407 | case `echo 'xy\c'` in |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18408 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18409 | xy) ECHO_C='\c';; |
| 18410 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 18411 | ECHO_T=' ';; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18412 | esac;; |
| 18413 | *) |
| 18414 | ECHO_N='-n';; |
| 18415 | esac |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18416 | |
| 18417 | rm -f conf$$ conf$$.exe conf$$.file |
| 18418 | if test -d conf$$.dir; then |
| 18419 | rm -f conf$$.dir/conf$$.file |
| 18420 | else |
| 18421 | rm -f conf$$.dir |
| 18422 | mkdir conf$$.dir 2>/dev/null |
| 18423 | fi |
| 18424 | if (echo >conf$$.file) 2>/dev/null; then |
| 18425 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 18426 | as_ln_s='ln -s' |
| 18427 | # ... but there are two gotchas: |
| 18428 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 18429 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 18430 | # In both cases, we have to default to `cp -p'. |
| 18431 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 18432 | as_ln_s='cp -p' |
| 18433 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 18434 | as_ln_s=ln |
| 18435 | else |
| 18436 | as_ln_s='cp -p' |
| 18437 | fi |
| 18438 | else |
| 18439 | as_ln_s='cp -p' |
| 18440 | fi |
| 18441 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 18442 | rmdir conf$$.dir 2>/dev/null |
| 18443 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18444 | |
| 18445 | # as_fn_mkdir_p |
| 18446 | # ------------- |
| 18447 | # Create "$as_dir" as a directory, including parents if necessary. |
| 18448 | as_fn_mkdir_p () |
| 18449 | { |
| 18450 | |
| 18451 | case $as_dir in #( |
| 18452 | -*) as_dir=./$as_dir;; |
| 18453 | esac |
| 18454 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 18455 | as_dirs= |
| 18456 | while :; do |
| 18457 | case $as_dir in #( |
| 18458 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 18459 | *) as_qdir=$as_dir;; |
| 18460 | esac |
| 18461 | as_dirs="'$as_qdir' $as_dirs" |
| 18462 | as_dir=`$as_dirname -- "$as_dir" || |
| 18463 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18464 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 18465 | X"$as_dir" : 'X\(//\)$' \| \ |
| 18466 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 18467 | $as_echo X"$as_dir" | |
| 18468 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 18469 | s//\1/ |
| 18470 | q |
| 18471 | } |
| 18472 | /^X\(\/\/\)[^/].*/{ |
| 18473 | s//\1/ |
| 18474 | q |
| 18475 | } |
| 18476 | /^X\(\/\/\)$/{ |
| 18477 | s//\1/ |
| 18478 | q |
| 18479 | } |
| 18480 | /^X\(\/\).*/{ |
| 18481 | s//\1/ |
| 18482 | q |
| 18483 | } |
| 18484 | s/.*/./; q'` |
| 18485 | test -d "$as_dir" && break |
| 18486 | done |
| 18487 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18488 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18489 | |
| 18490 | |
| 18491 | } # as_fn_mkdir_p |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18492 | if mkdir -p . 2>/dev/null; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18493 | as_mkdir_p='mkdir -p "$as_dir"' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18494 | else |
| 18495 | test -d ./-p && rmdir ./-p |
| 18496 | as_mkdir_p=false |
| 18497 | fi |
| 18498 | |
| 18499 | if test -x / >/dev/null 2>&1; then |
| 18500 | as_test_x='test -x' |
| 18501 | else |
| 18502 | if ls -dL / >/dev/null 2>&1; then |
| 18503 | as_ls_L_option=L |
| 18504 | else |
| 18505 | as_ls_L_option= |
| 18506 | fi |
| 18507 | as_test_x=' |
| 18508 | eval sh -c '\'' |
| 18509 | if test -d "$1"; then |
| 18510 | test -d "$1/."; |
| 18511 | else |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18512 | case $1 in #( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18513 | -*)set "./$1";; |
| 18514 | esac; |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18516 | ???[sx]*):;;*)false;;esac;fi |
| 18517 | '\'' sh |
| 18518 | ' |
| 18519 | fi |
| 18520 | as_executable_p=$as_test_x |
| 18521 | |
| 18522 | # Sed expression to map a string onto a valid CPP name. |
| 18523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 18524 | |
| 18525 | # Sed expression to map a string onto a valid variable name. |
| 18526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 18527 | |
| 18528 | |
| 18529 | exec 6>&1 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18530 | ## ----------------------------------- ## |
| 18531 | ## Main body of $CONFIG_STATUS script. ## |
| 18532 | ## ----------------------------------- ## |
| 18533 | _ASEOF |
| 18534 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18535 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18536 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18537 | # Save the log message, to keep $0 and so on meaningful, and to |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18538 | # report actual input values of CONFIG_FILES etc. instead of their |
| 18539 | # values after options handling. |
| 18540 | ac_log=" |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 18541 | This file was extended by ImageMagick $as_me 6.6.4, which was |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18542 | generated by GNU Autoconf 2.65. Invocation command line was |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18543 | |
| 18544 | CONFIG_FILES = $CONFIG_FILES |
| 18545 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 18546 | CONFIG_LINKS = $CONFIG_LINKS |
| 18547 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 18548 | $ $0 $@ |
| 18549 | |
| 18550 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 18551 | " |
| 18552 | |
| 18553 | _ACEOF |
| 18554 | |
| 18555 | case $ac_config_files in *" |
| 18556 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 18557 | esac |
| 18558 | |
| 18559 | case $ac_config_headers in *" |
| 18560 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 18561 | esac |
| 18562 | |
| 18563 | |
| 18564 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18565 | # Files that config.status was made for. |
| 18566 | config_files="$ac_config_files" |
| 18567 | config_headers="$ac_config_headers" |
| 18568 | config_commands="$ac_config_commands" |
| 18569 | |
| 18570 | _ACEOF |
| 18571 | |
| 18572 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18573 | ac_cs_usage="\ |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18574 | \`$as_me' instantiates files and other configuration actions |
| 18575 | from templates according to the current configuration. Unless the files |
| 18576 | and actions are specified as TAGs, all are instantiated by default. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18577 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18578 | Usage: $0 [OPTION]... [TAG]... |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18579 | |
| 18580 | -h, --help print this help, then exit |
| 18581 | -V, --version print version number and configuration settings, then exit |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 18582 | --config print configuration, then exit |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18583 | -q, --quiet, --silent |
| 18584 | do not print progress messages |
| 18585 | -d, --debug don't remove temporary files |
| 18586 | --recheck update $as_me by reconfiguring in the same conditions |
| 18587 | --file=FILE[:TEMPLATE] |
| 18588 | instantiate the configuration file FILE |
| 18589 | --header=FILE[:TEMPLATE] |
| 18590 | instantiate the configuration header FILE |
| 18591 | |
| 18592 | Configuration files: |
| 18593 | $config_files |
| 18594 | |
| 18595 | Configuration headers: |
| 18596 | $config_headers |
| 18597 | |
| 18598 | Configuration commands: |
| 18599 | $config_commands |
| 18600 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18601 | Report bugs to <http://www.imagemagick.org>." |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18602 | |
| 18603 | _ACEOF |
| 18604 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 18605 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18606 | ac_cs_version="\\ |
cristy | 5622573 | 2010-09-04 23:44:25 +0000 | [diff] [blame] | 18607 | ImageMagick config.status 6.6.4 |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18608 | configured by $0, generated by GNU Autoconf 2.65, |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 18609 | with options \\"\$ac_cs_config\\" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18610 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18611 | Copyright (C) 2009 Free Software Foundation, Inc. |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18612 | This config.status script is free software; the Free Software Foundation |
| 18613 | gives unlimited permission to copy, distribute and modify it." |
| 18614 | |
| 18615 | ac_pwd='$ac_pwd' |
| 18616 | srcdir='$srcdir' |
| 18617 | INSTALL='$INSTALL' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18618 | test -n "\$AWK" || AWK=awk |
| 18619 | _ACEOF |
| 18620 | |
| 18621 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18622 | # The default lists apply if the user does not specify any file. |
| 18623 | ac_need_defaults=: |
| 18624 | while test $# != 0 |
| 18625 | do |
| 18626 | case $1 in |
| 18627 | --*=*) |
| 18628 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 18629 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 18630 | ac_shift=: |
| 18631 | ;; |
| 18632 | *) |
| 18633 | ac_option=$1 |
| 18634 | ac_optarg=$2 |
| 18635 | ac_shift=shift |
| 18636 | ;; |
| 18637 | esac |
| 18638 | |
| 18639 | case $ac_option in |
| 18640 | # Handling of the options. |
| 18641 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18642 | ac_cs_recheck=: ;; |
| 18643 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 18644 | $as_echo "$ac_cs_version"; exit ;; |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 18645 | --config | --confi | --conf | --con | --co | --c ) |
| 18646 | $as_echo "$ac_cs_config"; exit ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18647 | --debug | --debu | --deb | --de | --d | -d ) |
| 18648 | debug=: ;; |
| 18649 | --file | --fil | --fi | --f ) |
| 18650 | $ac_shift |
| 18651 | case $ac_optarg in |
| 18652 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18653 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18654 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18655 | ac_need_defaults=false;; |
| 18656 | --header | --heade | --head | --hea ) |
| 18657 | $ac_shift |
| 18658 | case $ac_optarg in |
| 18659 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 18660 | esac |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18661 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18662 | ac_need_defaults=false;; |
| 18663 | --he | --h) |
| 18664 | # Conflict between --help and --header |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18665 | as_fn_error "ambiguous option: \`$1' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18666 | Try \`$0 --help' for more information.";; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18667 | --help | --hel | -h ) |
| 18668 | $as_echo "$ac_cs_usage"; exit ;; |
| 18669 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 18670 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 18671 | ac_cs_silent=: ;; |
| 18672 | |
| 18673 | # This is an error. |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18674 | -*) as_fn_error "unrecognized option: \`$1' |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18675 | Try \`$0 --help' for more information." ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18676 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18677 | *) as_fn_append ac_config_targets " $1" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18678 | ac_need_defaults=false ;; |
| 18679 | |
| 18680 | esac |
| 18681 | shift |
| 18682 | done |
| 18683 | |
| 18684 | ac_configure_extra_args= |
| 18685 | |
| 18686 | if $ac_cs_silent; then |
| 18687 | exec 6>/dev/null |
| 18688 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 18689 | fi |
| 18690 | |
| 18691 | _ACEOF |
| 18692 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18693 | if \$ac_cs_recheck; then |
| 18694 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 18695 | shift |
| 18696 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 18697 | CONFIG_SHELL='$SHELL' |
| 18698 | export CONFIG_SHELL |
| 18699 | exec "\$@" |
| 18700 | fi |
| 18701 | |
| 18702 | _ACEOF |
| 18703 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18704 | exec 5>>config.log |
| 18705 | { |
| 18706 | echo |
| 18707 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 18708 | ## Running $as_me. ## |
| 18709 | _ASBOX |
| 18710 | $as_echo "$ac_log" |
| 18711 | } >&5 |
| 18712 | |
| 18713 | _ACEOF |
| 18714 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18715 | _ACEOF |
| 18716 | |
| 18717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18718 | |
| 18719 | # Handling of arguments. |
| 18720 | for ac_config_target in $ac_config_targets |
| 18721 | do |
| 18722 | case $ac_config_target in |
| 18723 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18724 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 18725 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 18726 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 18727 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 18728 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 18729 | "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18730 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 18731 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 18732 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 18733 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 18734 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| 18735 | "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;; |
| 18736 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; |
| 18737 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| 18738 | "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;; |
| 18739 | "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;; |
| 18740 | "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;; |
| 18741 | "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;; |
| 18742 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 18743 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| 18744 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; |
| 18745 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| 18746 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| 18747 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 18748 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 18749 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 18750 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 18751 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 18752 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 18753 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 18754 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 18755 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 18756 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 18757 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 18758 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| 18759 | "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;; |
| 18760 | "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;; |
| 18761 | "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;; |
| 18762 | "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18763 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 18764 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| 18765 | "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;; |
| 18766 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| 18767 | "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;; |
| 18768 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 18769 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 18770 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18771 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18772 | esac |
| 18773 | done |
| 18774 | |
| 18775 | |
| 18776 | # If the user did not use the arguments to specify the items to instantiate, |
| 18777 | # then the envvar interface is used. Set only those that are not. |
| 18778 | # We use the long form for the default assignment because of an extremely |
| 18779 | # bizarre bug on SunOS 4.1.3. |
| 18780 | if $ac_need_defaults; then |
| 18781 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18782 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18783 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 18784 | fi |
| 18785 | |
| 18786 | # Have a temporary directory for convenience. Make it in the build tree |
| 18787 | # simply because there is no reason against having it here, and in addition, |
| 18788 | # creating and moving files from /tmp can sometimes cause problems. |
| 18789 | # Hook for its removal unless debugging. |
| 18790 | # Note that there is a small window in which the directory will not be cleaned: |
| 18791 | # after its creation but before its name has been assigned to `$tmp'. |
| 18792 | $debug || |
| 18793 | { |
| 18794 | tmp= |
| 18795 | trap 'exit_status=$? |
| 18796 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 18797 | ' 0 |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18798 | trap 'as_fn_exit 1' 1 2 13 15 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18799 | } |
| 18800 | # Create a (secure) tmp directory for tmp files. |
| 18801 | |
| 18802 | { |
| 18803 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 18804 | test -n "$tmp" && test -d "$tmp" |
| 18805 | } || |
| 18806 | { |
| 18807 | tmp=./conf$$-$RANDOM |
| 18808 | (umask 077 && mkdir "$tmp") |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18809 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18810 | |
| 18811 | # Set up the scripts for CONFIG_FILES section. |
| 18812 | # No need to generate them if there are no CONFIG_FILES. |
| 18813 | # This happens for instance with `./config.status config.h'. |
| 18814 | if test -n "$CONFIG_FILES"; then |
| 18815 | |
| 18816 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18817 | ac_cr=`echo X | tr X '\015'` |
| 18818 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 18819 | # But we know of no other shell where ac_cr would be empty at this |
| 18820 | # point, so we can use a bashism as a fallback. |
| 18821 | if test "x$ac_cr" = x; then |
| 18822 | eval ac_cr=\$\'\\r\' |
| 18823 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18824 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 18825 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18826 | ac_cs_awk_cr='\r' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18827 | else |
| 18828 | ac_cs_awk_cr=$ac_cr |
| 18829 | fi |
| 18830 | |
| 18831 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 18832 | _ACEOF |
| 18833 | |
| 18834 | |
| 18835 | { |
| 18836 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 18837 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 18838 | echo "_ACEOF" |
| 18839 | } >conf$$subs.sh || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18840 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 18841 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18842 | ac_delim='%!_!# ' |
| 18843 | for ac_last_try in false false false false false :; do |
| 18844 | . ./conf$$subs.sh || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18845 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18846 | |
| 18847 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 18848 | if test $ac_delim_n = $ac_delim_num; then |
| 18849 | break |
| 18850 | elif $ac_last_try; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18851 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18852 | else |
| 18853 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18854 | fi |
| 18855 | done |
| 18856 | rm -f conf$$subs.sh |
| 18857 | |
| 18858 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18859 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 18860 | _ACEOF |
| 18861 | sed -n ' |
| 18862 | h |
| 18863 | s/^/S["/; s/!.*/"]=/ |
| 18864 | p |
| 18865 | g |
| 18866 | s/^[^!]*!// |
| 18867 | :repl |
| 18868 | t repl |
| 18869 | s/'"$ac_delim"'$// |
| 18870 | t delim |
| 18871 | :nl |
| 18872 | h |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 18873 | s/\(.\{148\}\)..*/\1/ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18874 | t more1 |
| 18875 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 18876 | p |
| 18877 | n |
| 18878 | b repl |
| 18879 | :more1 |
| 18880 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18881 | p |
| 18882 | g |
| 18883 | s/.\{148\}// |
| 18884 | t nl |
| 18885 | :delim |
| 18886 | h |
cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 18887 | s/\(.\{148\}\)..*/\1/ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18888 | t more2 |
| 18889 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 18890 | p |
| 18891 | b |
| 18892 | :more2 |
| 18893 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 18894 | p |
| 18895 | g |
| 18896 | s/.\{148\}// |
| 18897 | t delim |
| 18898 | ' <conf$$subs.awk | sed ' |
| 18899 | /^[^""]/{ |
| 18900 | N |
| 18901 | s/\n// |
| 18902 | } |
| 18903 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 18904 | rm -f conf$$subs.awk |
| 18905 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 18906 | _ACAWK |
| 18907 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 18908 | for (key in S) S_is_set[key] = 1 |
| 18909 | FS = "" |
| 18910 | |
| 18911 | } |
| 18912 | { |
| 18913 | line = $ 0 |
| 18914 | nfields = split(line, field, "@") |
| 18915 | substed = 0 |
| 18916 | len = length(field[1]) |
| 18917 | for (i = 2; i < nfields; i++) { |
| 18918 | key = field[i] |
| 18919 | keylen = length(key) |
| 18920 | if (S_is_set[key]) { |
| 18921 | value = S[key] |
| 18922 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 18923 | len += length(value) + length(field[++i]) |
| 18924 | substed = 1 |
| 18925 | } else |
| 18926 | len += 1 + keylen |
| 18927 | } |
| 18928 | |
| 18929 | print line |
| 18930 | } |
| 18931 | |
| 18932 | _ACAWK |
| 18933 | _ACEOF |
| 18934 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18935 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 18936 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 18937 | else |
| 18938 | cat |
| 18939 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18940 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18941 | _ACEOF |
| 18942 | |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18943 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 18944 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18945 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 18946 | # (actually we leave an empty line to preserve line numbers). |
| 18947 | if test "x$srcdir" = x.; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18948 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 18949 | s/:*\$(srcdir):*/:/ |
| 18950 | s/:*\${srcdir}:*/:/ |
| 18951 | s/:*@srcdir@:*/:/ |
| 18952 | s/^\([^=]*=[ ]*\):*/\1/ |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18953 | s/:*$// |
| 18954 | s/^[^=]*=[ ]*$// |
| 18955 | }' |
| 18956 | fi |
| 18957 | |
| 18958 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 18959 | fi # test -n "$CONFIG_FILES" |
| 18960 | |
| 18961 | # Set up the scripts for CONFIG_HEADERS section. |
| 18962 | # No need to generate them if there are no CONFIG_HEADERS. |
| 18963 | # This happens for instance with `./config.status Makefile'. |
| 18964 | if test -n "$CONFIG_HEADERS"; then |
| 18965 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 18966 | BEGIN { |
| 18967 | _ACEOF |
| 18968 | |
| 18969 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 18970 | # here-document in config.status, that substitutes the proper values into |
| 18971 | # config.h.in to produce config.h. |
| 18972 | |
| 18973 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 18974 | # handling of long lines. |
| 18975 | ac_delim='%!_!# ' |
| 18976 | for ac_last_try in false false :; do |
| 18977 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 18978 | if test -z "$ac_t"; then |
| 18979 | break |
| 18980 | elif $ac_last_try; then |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 18981 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18982 | else |
| 18983 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 18984 | fi |
| 18985 | done |
| 18986 | |
| 18987 | # For the awk script, D is an array of macro values keyed by name, |
| 18988 | # likewise P contains macro parameters if any. Preserve backslash |
| 18989 | # newline sequences. |
| 18990 | |
| 18991 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 18992 | sed -n ' |
| 18993 | s/.\{148\}/&'"$ac_delim"'/g |
| 18994 | t rset |
| 18995 | :rset |
| 18996 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 18997 | t def |
| 18998 | d |
| 18999 | :def |
| 19000 | s/\\$// |
| 19001 | t bsnl |
| 19002 | s/["\\]/\\&/g |
| 19003 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19004 | D["\1"]=" \3"/p |
| 19005 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 19006 | d |
| 19007 | :bsnl |
| 19008 | s/["\\]/\\&/g |
| 19009 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 19010 | D["\1"]=" \3\\\\\\n"\\/p |
| 19011 | t cont |
| 19012 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 19013 | t cont |
| 19014 | d |
| 19015 | :cont |
| 19016 | n |
| 19017 | s/.\{148\}/&'"$ac_delim"'/g |
| 19018 | t clear |
| 19019 | :clear |
| 19020 | s/\\$// |
| 19021 | t bsnlc |
| 19022 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 19023 | d |
| 19024 | :bsnlc |
| 19025 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 19026 | b cont |
| 19027 | ' <confdefs.h | sed ' |
| 19028 | s/'"$ac_delim"'/"\\\ |
| 19029 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19030 | |
| 19031 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19032 | for (key in D) D_is_set[key] = 1 |
| 19033 | FS = "" |
| 19034 | } |
| 19035 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 19036 | line = \$ 0 |
| 19037 | split(line, arg, " ") |
| 19038 | if (arg[1] == "#") { |
| 19039 | defundef = arg[2] |
| 19040 | mac1 = arg[3] |
| 19041 | } else { |
| 19042 | defundef = substr(arg[1], 2) |
| 19043 | mac1 = arg[2] |
| 19044 | } |
| 19045 | split(mac1, mac2, "(") #) |
| 19046 | macro = mac2[1] |
| 19047 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 19048 | if (D_is_set[macro]) { |
| 19049 | # Preserve the white space surrounding the "#". |
| 19050 | print prefix "define", macro P[macro] D[macro] |
| 19051 | next |
| 19052 | } else { |
| 19053 | # Replace #undef with comments. This is necessary, for example, |
| 19054 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 19055 | # on some systems where configure will not decide to define it. |
| 19056 | if (defundef == "undef") { |
| 19057 | print "/*", prefix defundef, macro, "*/" |
| 19058 | next |
| 19059 | } |
| 19060 | } |
| 19061 | } |
| 19062 | { print } |
| 19063 | _ACAWK |
| 19064 | _ACEOF |
| 19065 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19066 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19067 | fi # test -n "$CONFIG_HEADERS" |
| 19068 | |
| 19069 | |
| 19070 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 19071 | shift |
| 19072 | for ac_tag |
| 19073 | do |
| 19074 | case $ac_tag in |
| 19075 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 19076 | esac |
| 19077 | case $ac_mode$ac_tag in |
| 19078 | :[FHL]*:*);; |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19079 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19080 | :[FH]-) ac_tag=-:-;; |
| 19081 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 19082 | esac |
| 19083 | ac_save_IFS=$IFS |
| 19084 | IFS=: |
| 19085 | set x $ac_tag |
| 19086 | IFS=$ac_save_IFS |
| 19087 | shift |
| 19088 | ac_file=$1 |
| 19089 | shift |
| 19090 | |
| 19091 | case $ac_mode in |
| 19092 | :L) ac_source=$1;; |
| 19093 | :[FH]) |
| 19094 | ac_file_inputs= |
| 19095 | for ac_f |
| 19096 | do |
| 19097 | case $ac_f in |
| 19098 | -) ac_f="$tmp/stdin";; |
| 19099 | *) # Look for the file first in the build tree, then in the source tree |
| 19100 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 19101 | # because $ac_f cannot contain `:'. |
| 19102 | test -f "$ac_f" || |
| 19103 | case $ac_f in |
| 19104 | [\\/$]*) false;; |
| 19105 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 19106 | esac || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19107 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19108 | esac |
| 19109 | 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] | 19110 | as_fn_append ac_file_inputs " '$ac_f'" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19111 | done |
| 19112 | |
| 19113 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 19114 | # use $as_me), people would be surprised to read: |
| 19115 | # /* config.h. Generated by config.status. */ |
| 19116 | configure_input='Generated from '` |
| 19117 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 19118 | `' by configure.' |
| 19119 | if test x"$ac_file" != x-; then |
| 19120 | configure_input="$ac_file. $configure_input" |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19121 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19122 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 19123 | fi |
| 19124 | # Neutralize special characters interpreted by sed in replacement strings. |
| 19125 | case $configure_input in #( |
| 19126 | *\&* | *\|* | *\\* ) |
| 19127 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 19128 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 19129 | *) ac_sed_conf_input=$configure_input;; |
| 19130 | esac |
| 19131 | |
| 19132 | case $ac_tag in |
| 19133 | *:-:* | *:-) cat >"$tmp/stdin" \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19134 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19135 | esac |
| 19136 | ;; |
| 19137 | esac |
| 19138 | |
| 19139 | ac_dir=`$as_dirname -- "$ac_file" || |
| 19140 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19141 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 19142 | X"$ac_file" : 'X\(//\)$' \| \ |
| 19143 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 19144 | $as_echo X"$ac_file" | |
| 19145 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19146 | s//\1/ |
| 19147 | q |
| 19148 | } |
| 19149 | /^X\(\/\/\)[^/].*/{ |
| 19150 | s//\1/ |
| 19151 | q |
| 19152 | } |
| 19153 | /^X\(\/\/\)$/{ |
| 19154 | s//\1/ |
| 19155 | q |
| 19156 | } |
| 19157 | /^X\(\/\).*/{ |
| 19158 | s//\1/ |
| 19159 | q |
| 19160 | } |
| 19161 | s/.*/./; q'` |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19162 | as_dir="$ac_dir"; as_fn_mkdir_p |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19163 | ac_builddir=. |
| 19164 | |
| 19165 | case "$ac_dir" in |
| 19166 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19167 | *) |
| 19168 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 19169 | # A ".." for each directory in $ac_dir_suffix. |
| 19170 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 19171 | case $ac_top_builddir_sub in |
| 19172 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 19173 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 19174 | esac ;; |
| 19175 | esac |
| 19176 | ac_abs_top_builddir=$ac_pwd |
| 19177 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 19178 | # for backward compatibility: |
| 19179 | ac_top_builddir=$ac_top_build_prefix |
| 19180 | |
| 19181 | case $srcdir in |
| 19182 | .) # We are building in place. |
| 19183 | ac_srcdir=. |
| 19184 | ac_top_srcdir=$ac_top_builddir_sub |
| 19185 | ac_abs_top_srcdir=$ac_pwd ;; |
| 19186 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 19187 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 19188 | ac_top_srcdir=$srcdir |
| 19189 | ac_abs_top_srcdir=$srcdir ;; |
| 19190 | *) # Relative name. |
| 19191 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 19192 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 19193 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 19194 | esac |
| 19195 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 19196 | |
| 19197 | |
| 19198 | case $ac_mode in |
| 19199 | :F) |
| 19200 | # |
| 19201 | # CONFIG_FILE |
| 19202 | # |
| 19203 | |
| 19204 | case $INSTALL in |
| 19205 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 19206 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 19207 | esac |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19208 | _ACEOF |
| 19209 | |
| 19210 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19211 | # If the template does not know about datarootdir, expand it. |
| 19212 | # FIXME: This hack should be removed a few years after 2.60. |
| 19213 | ac_datarootdir_hack=; ac_datarootdir_seen= |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19214 | ac_sed_dataroot=' |
| 19215 | /datarootdir/ { |
| 19216 | p |
| 19217 | q |
| 19218 | } |
| 19219 | /@datadir@/p |
| 19220 | /@docdir@/p |
| 19221 | /@infodir@/p |
| 19222 | /@localedir@/p |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19223 | /@mandir@/p' |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19224 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 19225 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 19226 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19227 | { $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] | 19228 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 19229 | _ACEOF |
| 19230 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19231 | ac_datarootdir_hack=' |
| 19232 | s&@datadir@&$datadir&g |
| 19233 | s&@docdir@&$docdir&g |
| 19234 | s&@infodir@&$infodir&g |
| 19235 | s&@localedir@&$localedir&g |
| 19236 | s&@mandir@&$mandir&g |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19237 | s&\\\${datarootdir}&$datarootdir&g' ;; |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19238 | esac |
| 19239 | _ACEOF |
| 19240 | |
| 19241 | # Neutralize VPATH when `$srcdir' = `.'. |
| 19242 | # Shell code in configure.ac might set extrasub. |
| 19243 | # FIXME: do we really want to maintain this feature? |
| 19244 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19245 | ac_sed_extra="$ac_vpsub |
| 19246 | $extrasub |
| 19247 | _ACEOF |
| 19248 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19249 | :t |
| 19250 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 19251 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 19252 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 19253 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 19254 | s&@srcdir@&$ac_srcdir&;t t |
| 19255 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 19256 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 19257 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 19258 | s&@builddir@&$ac_builddir&;t t |
| 19259 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 19260 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 19261 | s&@INSTALL@&$ac_INSTALL&;t t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19262 | $ac_datarootdir_hack |
| 19263 | " |
| 19264 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19265 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19266 | |
| 19267 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 19268 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 19269 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19270 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19271 | which seems to be undefined. Please make sure it is defined." >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19272 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19273 | which seems to be undefined. Please make sure it is defined." >&2;} |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19274 | |
| 19275 | rm -f "$tmp/stdin" |
| 19276 | case $ac_file in |
| 19277 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 19278 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 19279 | esac \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19280 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19281 | ;; |
| 19282 | :H) |
| 19283 | # |
| 19284 | # CONFIG_HEADER |
| 19285 | # |
| 19286 | if test x"$ac_file" != x-; then |
| 19287 | { |
| 19288 | $as_echo "/* $configure_input */" \ |
| 19289 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 19290 | } >"$tmp/config.h" \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19291 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19292 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19293 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19294 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 19295 | else |
| 19296 | rm -f "$ac_file" |
| 19297 | mv "$tmp/config.h" "$ac_file" \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19298 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19299 | fi |
| 19300 | else |
| 19301 | $as_echo "/* $configure_input */" \ |
| 19302 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19303 | || as_fn_error "could not create -" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19304 | fi |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19305 | ;; |
| 19306 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19307 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19308 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 19309 | ;; |
| 19310 | esac |
| 19311 | |
| 19312 | |
| 19313 | case $ac_file$ac_mode in |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19314 | "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;; |
| 19315 | "Magick-config.in":C) chmod +x magick/Magick-config ;; |
| 19316 | "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;; |
| 19317 | "Wand-config.in":C) chmod +x wand/Wand-config ;; |
| 19318 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 19319 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 19320 | |
| 19321 | esac |
| 19322 | done # for ac_tag |
| 19323 | |
| 19324 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19325 | as_fn_exit 0 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19326 | _ACEOF |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19327 | ac_clean_files=$ac_clean_files_save |
| 19328 | |
| 19329 | test $ac_write_fail = 0 || |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19330 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19331 | |
| 19332 | |
| 19333 | # configure is writing to config.log, and then calls config.status. |
| 19334 | # config.status does its own redirection, appending to config.log. |
| 19335 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 19336 | # by configure, so config.status won't be able to write to it; its |
| 19337 | # output is simply discarded. So we exec the FD to /dev/null, |
| 19338 | # effectively closing config.log, so it can be properly (re)opened and |
| 19339 | # appended to by config.status. When coming back to configure, we |
| 19340 | # need to make the FD available again. |
| 19341 | if test "$no_create" != yes; then |
| 19342 | ac_cs_success=: |
| 19343 | ac_config_status_args= |
| 19344 | test "$silent" = yes && |
| 19345 | ac_config_status_args="$ac_config_status_args --quiet" |
| 19346 | exec 5>/dev/null |
| 19347 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 19348 | exec 5>>config.log |
| 19349 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 19350 | # would make configure fail if this is the last instruction. |
cristy | f6fcb5d | 2010-09-24 01:19:13 +0000 | [diff] [blame] | 19351 | $ac_cs_success || as_fn_exit $? |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19352 | fi |
| 19353 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19354 | { $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] | 19355 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 19356 | fi |
| 19357 | |
| 19358 | |
| 19359 | rm -f magick-version |
| 19360 | |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 19361 | result_dejavu_font_dir='none' |
| 19362 | if test "${dejavu_font_dir}x" != 'x'; then |
| 19363 | result_dejavu_font_dir=$dejavu_font_dir |
| 19364 | fi |
| 19365 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19366 | result_ghostscript_font_dir='none' |
| 19367 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 19368 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 19369 | fi |
| 19370 | |
| 19371 | result_windows_font_dir='none' |
| 19372 | if test "${windows_font_dir}x" != 'x'; then |
| 19373 | result_windows_font_dir=${windows_font_dir} |
| 19374 | fi |
| 19375 | |
cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19377 | ImageMagick is configured as follows. Please verify that this configuration |
| 19378 | matches your expectations. |
| 19379 | |
| 19380 | Host system type: $host |
| 19381 | Build system type: $build |
| 19382 | |
| 19383 | Option Value |
| 19384 | ------------------------------------------------------------------------------- |
| 19385 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 19386 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 19387 | Module support --with-modules=$with_modules $with_modules |
| 19388 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 19389 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 19390 | High Dynamic Range Imagery |
| 19391 | --enable-hdri=$enable_hdri $enable_hdri |
| 19392 | |
| 19393 | Delegate Configuration: |
| 19394 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 19395 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 19396 | 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] | 19397 | DJVU --with-djvu=$with_djvu $have_djvu |
| 19398 | DPS --with-dps=$with_dps $have_dps |
| 19399 | FFTW --with-fftw=$with_fftw $have_fftw |
| 19400 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 19401 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 19402 | FreeType --with-freetype=$with_freetype $have_freetype |
| 19403 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 19404 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 19405 | Ghostscript None $PSDelegate ($GSVersion) |
| 19406 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 19407 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 19408 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 19409 | JBIG --with-jbig=$with_jbig $have_jbig |
| 19410 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 19411 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 19412 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 19413 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19414 | LQR --with-lqr=$with_lqr $have_lqr |
| 19415 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 19416 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 19417 | PERL --with-perl=$with_perl $have_perl |
| 19418 | PNG --with-png=$with_png $have_png |
| 19419 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 19420 | TIFF --with-tiff=$with_tiff $have_tiff |
| 19421 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 19422 | WMF --with-wmf=$with_wmf $have_wmf |
| 19423 | X11 --with-x=$with_x $have_x |
| 19424 | XML --with-xml=$with_xml $have_xml |
| 19425 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 19426 | |
| 19427 | X11 Configuration: |
| 19428 | X_CFLAGS = $X_CFLAGS |
| 19429 | X_PRE_LIBS = $X_PRE_LIBS |
| 19430 | X_LIBS = $X_LIBS |
| 19431 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 19432 | |
| 19433 | Options used to compile and link: |
| 19434 | PREFIX = $PREFIX_DIR |
| 19435 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 19436 | VERSION = $PACKAGE_VERSION |
| 19437 | CC = $CC |
| 19438 | CFLAGS = $CFLAGS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19439 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 19440 | PCFLAGS = $MAGICK_PCFLAGS |
| 19441 | DEFS = $DEFS |
| 19442 | LDFLAGS = $LDFLAGS |
| 19443 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 19444 | LIBS = $MAGICK_LIBS |
| 19445 | CXX = $CXX |
| 19446 | CXXFLAGS = $CXXFLAGS |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 19447 | FEATURES = $MAGICK_FEATURES |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19448 | " >&5 |
| 19449 | $as_echo " |
| 19450 | ImageMagick is configured as follows. Please verify that this configuration |
| 19451 | matches your expectations. |
| 19452 | |
| 19453 | Host system type: $host |
| 19454 | Build system type: $build |
| 19455 | |
| 19456 | Option Value |
| 19457 | ------------------------------------------------------------------------------- |
| 19458 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 19459 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 19460 | Module support --with-modules=$with_modules $with_modules |
| 19461 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 19462 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 19463 | High Dynamic Range Imagery |
| 19464 | --enable-hdri=$enable_hdri $enable_hdri |
| 19465 | |
| 19466 | Delegate Configuration: |
| 19467 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 19468 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 19469 | 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] | 19470 | DJVU --with-djvu=$with_djvu $have_djvu |
| 19471 | DPS --with-dps=$with_dps $have_dps |
| 19472 | FFTW --with-fftw=$with_fftw $have_fftw |
| 19473 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 19474 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 19475 | FreeType --with-freetype=$with_freetype $have_freetype |
| 19476 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 19477 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 19478 | Ghostscript None $PSDelegate ($GSVersion) |
| 19479 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 19480 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 19481 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 19482 | JBIG --with-jbig=$with_jbig $have_jbig |
| 19483 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 19484 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 19485 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 19486 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19487 | LQR --with-lqr=$with_lqr $have_lqr |
| 19488 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 19489 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 19490 | PERL --with-perl=$with_perl $have_perl |
| 19491 | PNG --with-png=$with_png $have_png |
| 19492 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 19493 | TIFF --with-tiff=$with_tiff $have_tiff |
| 19494 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 19495 | WMF --with-wmf=$with_wmf $have_wmf |
| 19496 | X11 --with-x=$with_x $have_x |
| 19497 | XML --with-xml=$with_xml $have_xml |
| 19498 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 19499 | |
| 19500 | X11 Configuration: |
| 19501 | X_CFLAGS = $X_CFLAGS |
| 19502 | X_PRE_LIBS = $X_PRE_LIBS |
| 19503 | X_LIBS = $X_LIBS |
| 19504 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 19505 | |
| 19506 | Options used to compile and link: |
| 19507 | PREFIX = $PREFIX_DIR |
| 19508 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 19509 | VERSION = $PACKAGE_VERSION |
| 19510 | CC = $CC |
| 19511 | CFLAGS = $CFLAGS |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19512 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 19513 | PCFLAGS = $MAGICK_PCFLAGS |
| 19514 | DEFS = $DEFS |
| 19515 | LDFLAGS = $LDFLAGS |
| 19516 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 19517 | LIBS = $MAGICK_LIBS |
| 19518 | CXX = $CXX |
| 19519 | CXXFLAGS = $CXXFLAGS |
cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 19520 | FEATURES = $MAGICK_FEATURES |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19521 | " >&6; } |