| 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 | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for ImageMagick 6.5.9. |
| 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 | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
| 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 | 18304f9 | 2009-11-22 15:48:26 +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" |
| 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 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 | |
| 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
| 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 |
| 366 | # script with status $?, using 1 if that was 0. |
| 367 | as_fn_error () |
| 368 | { |
| 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 |
| 373 | fi |
| 374 | $as_echo "$as_me: error: $1" >&2 |
| 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 | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 531 | |
| 532 | |
| 533 | # Check that we are running under the correct shell. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 534 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 535 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 536 | case X$lt_ECHO in |
| 537 | X*--fallback-echo) |
| 538 | # Remove one level of quotation (which was required for Make). |
| 539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
| 540 | ;; |
| 541 | esac |
| 542 | |
| 543 | ECHO=${lt_ECHO-echo} |
| 544 | if test "X$1" = X--no-reexec; then |
| 545 | # Discard the --no-reexec flag, and continue. |
| 546 | shift |
| 547 | elif test "X$1" = X--fallback-echo; then |
| 548 | # Avoid inline document here, it may be left over |
| 549 | : |
| 550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 551 | # Yippee, $ECHO works! |
| 552 | : |
| 553 | else |
| 554 | # Restart under the correct shell. |
| 555 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 556 | fi |
| 557 | |
| 558 | if test "X$1" = X--fallback-echo; then |
| 559 | # used as fallback echo |
| 560 | shift |
| 561 | cat <<_LT_EOF |
| 562 | $* |
| 563 | _LT_EOF |
| 564 | exit 0 |
| 565 | fi |
| 566 | |
| 567 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 568 | # if CDPATH is set. |
| 569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 570 | |
| 571 | if test -z "$lt_ECHO"; then |
| 572 | if test "X${echo_test_string+set}" != Xset; then |
| 573 | # find a string as large as possible, as long as the shell can cope with it |
| 574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 578 | then |
| 579 | break |
| 580 | fi |
| 581 | done |
| 582 | fi |
| 583 | |
| 584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 586 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 587 | : |
| 588 | else |
| 589 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 590 | # backslashes. This makes it impossible to quote backslashes using |
| 591 | # echo "$something" | sed 's/\\/\\\\/g' |
| 592 | # |
| 593 | # So, first we look for a working echo in the user's PATH. |
| 594 | |
| 595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 596 | for dir in $PATH /usr/ucb; do |
| 597 | IFS="$lt_save_ifs" |
| 598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 601 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 602 | ECHO="$dir/echo" |
| 603 | break |
| 604 | fi |
| 605 | done |
| 606 | IFS="$lt_save_ifs" |
| 607 | |
| 608 | if test "X$ECHO" = Xecho; then |
| 609 | # We didn't find a better echo, so look for alternatives. |
| 610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 612 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 613 | # This shell has a builtin print -r that does the trick. |
| 614 | ECHO='print -r' |
| 615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 616 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 617 | # If we have ksh, try running configure again with it. |
| 618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 619 | export ORIGINAL_CONFIG_SHELL |
| 620 | CONFIG_SHELL=/bin/ksh |
| 621 | export CONFIG_SHELL |
| 622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
| 623 | else |
| 624 | # Try using printf. |
| 625 | ECHO='printf %s\n' |
| 626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 628 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 629 | # Cool, printf works |
| 630 | : |
| 631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 632 | test "X$echo_testing_string" = 'X\t' && |
| 633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 636 | export CONFIG_SHELL |
| 637 | SHELL="$CONFIG_SHELL" |
| 638 | export SHELL |
| 639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 641 | test "X$echo_testing_string" = 'X\t' && |
| 642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 643 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 645 | else |
| 646 | # maybe with a smaller string... |
| 647 | prev=: |
| 648 | |
| 649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 651 | then |
| 652 | break |
| 653 | fi |
| 654 | prev="$cmd" |
| 655 | done |
| 656 | |
| 657 | if test "$prev" != 'sed 50q "$0"'; then |
| 658 | echo_test_string=`eval $prev` |
| 659 | export echo_test_string |
| 660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 661 | else |
| 662 | # Oops. We lost completely, so just stick with echo. |
| 663 | ECHO=echo |
| 664 | fi |
| 665 | fi |
| 666 | fi |
| 667 | fi |
| 668 | fi |
| 669 | fi |
| 670 | |
| 671 | # Copy echo and quote the copy suitably for passing to libtool from |
| 672 | # the Makefile, instead of quoting the original, which is used later. |
| 673 | lt_ECHO=$ECHO |
| 674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
| 676 | fi |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 681 | lt_ltdl_dir='ltdl' |
| 682 | |
| 683 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" |
| 684 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 685 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 686 | exec 6>&1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 687 | |
| 688 | # Name of the host. |
| 689 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 690 | # so uname gets run too. |
| 691 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 692 | |
| 693 | # |
| 694 | # Initializations. |
| 695 | # |
| 696 | ac_default_prefix=/usr/local |
| 697 | ac_clean_files= |
| 698 | ac_config_libobj_dir=. |
| 699 | LIBOBJS= |
| 700 | cross_compiling=no |
| 701 | subdirs= |
| 702 | MFLAGS= |
| 703 | MAKEFLAGS= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 704 | |
| 705 | # Identity of this package. |
| 706 | PACKAGE_NAME='ImageMagick' |
| 707 | PACKAGE_TARNAME='ImageMagick' |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 708 | PACKAGE_VERSION='6.5.9' |
| 709 | PACKAGE_STRING='ImageMagick 6.5.9' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 710 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 711 | PACKAGE_URL='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 712 | |
| 713 | ac_unique_file="magick/MagickCore.h" |
| 714 | ac_config_libobj_dir=ltdl |
| 715 | # Factoring default headers for most tests. |
| 716 | ac_includes_default="\ |
| 717 | #include <stdio.h> |
| 718 | #ifdef HAVE_SYS_TYPES_H |
| 719 | # include <sys/types.h> |
| 720 | #endif |
| 721 | #ifdef HAVE_SYS_STAT_H |
| 722 | # include <sys/stat.h> |
| 723 | #endif |
| 724 | #ifdef STDC_HEADERS |
| 725 | # include <stdlib.h> |
| 726 | # include <stddef.h> |
| 727 | #else |
| 728 | # ifdef HAVE_STDLIB_H |
| 729 | # include <stdlib.h> |
| 730 | # endif |
| 731 | #endif |
| 732 | #ifdef HAVE_STRING_H |
| 733 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 734 | # include <memory.h> |
| 735 | # endif |
| 736 | # include <string.h> |
| 737 | #endif |
| 738 | #ifdef HAVE_STRINGS_H |
| 739 | # include <strings.h> |
| 740 | #endif |
| 741 | #ifdef HAVE_INTTYPES_H |
| 742 | # include <inttypes.h> |
| 743 | #endif |
| 744 | #ifdef HAVE_STDINT_H |
| 745 | # include <stdint.h> |
| 746 | #endif |
| 747 | #ifdef HAVE_UNISTD_H |
| 748 | # include <unistd.h> |
| 749 | #endif" |
| 750 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 751 | ac_header_list= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 752 | ac_subst_vars='ltdl_LTLIBOBJS |
| 753 | ltdl_LIBOBJS |
| 754 | am__EXEEXT_FALSE |
| 755 | am__EXEEXT_TRUE |
| 756 | LTLIBOBJS |
| 757 | MAGICK_LIBS |
| 758 | MAGICK_LDFLAGS |
| 759 | MAGICK_PCFLAGS |
| 760 | MAGICK_CPPFLAGS |
| 761 | MAGICK_CXXFLAGS |
| 762 | MAGICK_CFLAGS |
| 763 | MAGICK_DEP_LIBS |
| 764 | MAGICK_LTDLDEPS |
| 765 | MAGICK_LIBLTDL |
| 766 | OSX_GCOV_LDFLAG |
| 767 | DELEGATES |
| 768 | MAGICKCORE_PATH |
| 769 | PERL_SUPPORTS_DESTDIR |
| 770 | WITH_PERL_DYNAMIC_FALSE |
| 771 | WITH_PERL_DYNAMIC_TRUE |
| 772 | WITH_PERL_STATIC_FALSE |
| 773 | WITH_PERL_STATIC_TRUE |
| 774 | WITH_PERL_FALSE |
| 775 | WITH_PERL_TRUE |
| 776 | GSVersion |
| 777 | GSPSDevice |
| 778 | GSPDFDevice |
| 779 | GSMonoDevice |
| 780 | GSEPSDevice |
| 781 | GSColorDevice |
| 782 | GSCMYKDevice |
| 783 | GSAlphaDevice |
| 784 | XPSVersion |
| 785 | XPSCMYKDevice |
| 786 | XPSColorDevice |
| 787 | XPSMonoDevice |
| 788 | PCLVersion |
| 789 | PCLCMYKDevice |
| 790 | PCLColorDevice |
| 791 | PCLMonoDevice |
| 792 | ZIP_DELEGATE_FALSE |
| 793 | ZIP_DELEGATE_TRUE |
| 794 | ZIP |
| 795 | P7ZIP_DELEGATE_FALSE |
| 796 | P7ZIP_DELEGATE_TRUE |
| 797 | P7ZIP |
| 798 | RPM_DELEGATE_FALSE |
| 799 | RPM_DELEGATE_TRUE |
| 800 | RPM |
| 801 | PERL |
| 802 | TAR |
| 803 | ShowImageDelegate |
| 804 | type_include_files |
| 805 | ghostscript_font_dir |
| 806 | windows_font_dir |
| 807 | PrintDelegate |
| 808 | ZipDelegate |
| 809 | XPSDelegate |
| 810 | WWWDecodeDelegate |
| 811 | WMFDecodeDelegate |
| 812 | TXTDelegate |
| 813 | SCANDecodeDelegate |
| 814 | RMDelegate |
| 815 | RLEEncodeDelegate |
| 816 | PSDelegate |
| 817 | POVDelegate |
| 818 | PGPDecodeDelegate |
| 819 | PCLDelegate |
| 820 | MVDelegate |
| 821 | MPEGEncodeDelegate |
| 822 | MPEGDecodeDelegate |
| 823 | MANDelegate |
| 824 | LaunchDelegate |
| 825 | LZWEncodeDelegate |
| 826 | LZWDecodeDelegate |
| 827 | LPRDelegate |
| 828 | LPDelegate |
| 829 | ILBMEncodeDelegate |
| 830 | ILBMDecodeDelegate |
| 831 | HTMLDecodeDelegate |
| 832 | HPGLDecodeDelegate |
| 833 | HDRDecodeDelegate |
| 834 | GnuplotDecodeDelegate |
| 835 | MogrifyDelegate |
| 836 | DisplayDelegate |
| 837 | ConvertDelegate |
| 838 | FIGDecodeDelegate |
| 839 | EditorDelegate |
| 840 | EchoDelegate |
| 841 | DVIDecodeDelegate |
| 842 | GVCDecodeDelegate |
| 843 | DNGDecodeDelegate |
| 844 | CatDelegate |
| 845 | CGMDecodeDelegate |
| 846 | BrowseDelegate |
| 847 | BZIPDelegate |
| 848 | BlenderDecodeDelegate |
| 849 | AVIDecodeDelegate |
| 850 | AutotraceDecodeDelegate |
| 851 | SHARE_CONFIGURE_PATH |
| 852 | SHARE_PATH |
| 853 | DOCUMENTATION_PATH |
| 854 | FILTER_PATH |
| 855 | CODER_PATH |
| 856 | CONFIGURE_PATH |
| 857 | LIBRARY_PATH |
| 858 | EXECUTABLE_PATH |
| 859 | PERLMAINCC |
| 860 | XML_LIBS |
| 861 | XML_DELEGATE_FALSE |
| 862 | XML_DELEGATE_TRUE |
| 863 | xml2_config |
| 864 | WMF_LIBS_DEPS |
| 865 | WMF_LIBS |
| 866 | WMF_DELEGATE_FALSE |
| 867 | WMF_DELEGATE_TRUE |
| 868 | TIFF_LIBS |
| 869 | TIFF_DELEGATE_FALSE |
| 870 | TIFF_DELEGATE_TRUE |
| 871 | CAIRO_DELEGATE_FALSE |
| 872 | CAIRO_DELEGATE_TRUE |
| 873 | RSVG_DELEGATE_FALSE |
| 874 | RSVG_DELEGATE_TRUE |
| 875 | CAIRO_SVG_LIBS |
| 876 | CAIRO_SVG_CFLAGS |
| 877 | RSVG_LIBS |
| 878 | RSVG_CFLAGS |
| 879 | PNG_LIBS |
| 880 | PNG_DELEGATE_FALSE |
| 881 | PNG_DELEGATE_TRUE |
| 882 | OPENEXR_DELEGATE_FALSE |
| 883 | OPENEXR_DELEGATE_TRUE |
| 884 | OPENEXR_LIBS |
| 885 | OPENEXR_CFLAGS |
| 886 | LQR_DELEGATE_FALSE |
| 887 | LQR_DELEGATE_TRUE |
| 888 | LQR_LIBS |
| 889 | LQR_CFLAGS |
| 890 | LCMS_LIBS |
| 891 | LCMS_DELEGATE_FALSE |
| 892 | LCMS_DELEGATE_TRUE |
| 893 | JP2_LIBS |
| 894 | JP2_DELEGATE_FALSE |
| 895 | JP2_DELEGATE_TRUE |
| 896 | JPEG_LIBS |
| 897 | JPEG_DELEGATE_FALSE |
| 898 | JPEG_DELEGATE_TRUE |
| 899 | JBIG_LIBS |
| 900 | JBIG_DELEGATE_FALSE |
| 901 | JBIG_DELEGATE_TRUE |
| 902 | GVC_DELEGATE_FALSE |
| 903 | GVC_DELEGATE_TRUE |
| 904 | GVC_LIBS |
| 905 | GVC_CFLAGS |
| 906 | GS_LIBS |
| 907 | GS_DELEGATE_FALSE |
| 908 | GS_DELEGATE_TRUE |
| 909 | FREETYPE_LIBS |
| 910 | FREETYPE_DELEGATE_FALSE |
| 911 | FREETYPE_DELEGATE_TRUE |
| 912 | freetype_config |
| 913 | FONTCONFIG_DELEGATE_FALSE |
| 914 | FONTCONFIG_DELEGATE_TRUE |
| 915 | FONTCONFIG_LIBS |
| 916 | FONTCONFIG_CFLAGS |
| 917 | FPX_LIBS |
| 918 | FPX_DELEGATE_FALSE |
| 919 | FPX_DELEGATE_TRUE |
| 920 | FFTW_LIBS |
| 921 | FFTW_DELEGATE_FALSE |
| 922 | FFTW_DELEGATE_TRUE |
| 923 | DJVU_LIBS |
| 924 | DJVU_DELEGATE_FALSE |
| 925 | DJVU_DELEGATE_TRUE |
| 926 | DPS_LIBS |
| 927 | DPS_DELEGATE_FALSE |
| 928 | DPS_DELEGATE_TRUE |
| 929 | AUTOTRACE_DELEGATE_FALSE |
| 930 | AUTOTRACE_DELEGATE_TRUE |
| 931 | AUTOTRACE_LIBS |
| 932 | AUTOTRACE_CFLAGS |
| 933 | LIB_DL |
| 934 | ZLIB_LIBS |
| 935 | ZLIB_DELEGATE_FALSE |
| 936 | ZLIB_DELEGATE_TRUE |
| 937 | XEXT_LIBS |
| 938 | X11_LIBS |
| 939 | X11_DELEGATE_FALSE |
| 940 | X11_DELEGATE_TRUE |
| 941 | X_EXTRA_LIBS |
| 942 | X_LIBS |
| 943 | X_PRE_LIBS |
| 944 | X_CFLAGS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 945 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 946 | BZLIB_LIBS |
| 947 | BZLIB_DELEGATE_FALSE |
| 948 | BZLIB_DELEGATE_TRUE |
| 949 | MATH_LIBS |
| 950 | CCMALLOCDelegate |
| 951 | UMEM_LIBS |
| 952 | HasUMEM_FALSE |
| 953 | HasUMEM_TRUE |
| 954 | THREAD_LIBS |
| 955 | GOMP_LIBS |
| 956 | WITH_MAGICK_PLUS_PLUS_FALSE |
| 957 | WITH_MAGICK_PLUS_PLUS_TRUE |
| 958 | OPENMP_CXXFLAGS |
| 959 | POW_LIB |
| 960 | LIBOBJS |
| 961 | UINTPTR_T |
| 962 | UINTMAX_T |
| 963 | UINT64_T |
| 964 | INT64_T |
| 965 | UINT32_T |
| 966 | INT32_T |
| 967 | UINT16_T |
| 968 | INT16_T |
| 969 | UINT8_T |
| 970 | INT8_T |
| 971 | LIBRARY_EXTRA_CPPFLAGS |
| 972 | MODULE_EXTRA_CPPFLAGS |
| 973 | LIBSTDCLDFLAGS |
| 974 | PERL_MAKE_OPTIONS |
| 975 | QUANTUM_DEPTH |
| 976 | MAINT |
| 977 | MAINTAINER_MODE_FALSE |
| 978 | MAINTAINER_MODE_TRUE |
| 979 | MAGICK_HDRI |
| 980 | DLLDFLAGS |
| 981 | WITH_LTDL_FALSE |
| 982 | WITH_LTDL_TRUE |
| 983 | WITH_MODULES_FALSE |
| 984 | WITH_MODULES_TRUE |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 985 | WITH_SHARED_LIBS_FALSE |
| 986 | WITH_SHARED_LIBS_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 987 | LTDLOPEN |
| 988 | LT_CONFIG_H |
| 989 | CONVENIENCE_LTDL_FALSE |
| 990 | CONVENIENCE_LTDL_TRUE |
| 991 | INSTALL_LTDL_FALSE |
| 992 | INSTALL_LTDL_TRUE |
| 993 | ARGZ_H |
| 994 | sys_symbol_underscore |
| 995 | LIBADD_DL |
| 996 | LT_DLPREOPEN |
| 997 | LIBADD_DLD_LINK |
| 998 | LIBADD_SHL_LOAD |
| 999 | LIBADD_DLOPEN |
| 1000 | LT_DLLOADERS |
| 1001 | INCLTDL |
| 1002 | LTDLINCL |
| 1003 | LTDLDEPS |
| 1004 | LIBLTDL |
| 1005 | LIBTOOL_DEPS |
| 1006 | CXXCPP |
| 1007 | OTOOL64 |
| 1008 | OTOOL |
| 1009 | LIPO |
| 1010 | NMEDIT |
| 1011 | DSYMUTIL |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 1012 | lt_ECHO |
| cristy | 4dc4443 | 2009-12-30 23:30:06 +0000 | [diff] [blame] | 1013 | RANLIB |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1014 | AR |
| 1015 | NM |
| 1016 | ac_ct_DUMPBIN |
| 1017 | DUMPBIN |
| 1018 | LIBTOOL |
| 1019 | OBJDUMP |
| 1020 | DLLTOOL |
| 1021 | AS |
| 1022 | LFS_CPPFLAGS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 1023 | CL_LIBS |
| 1024 | CL_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1025 | OPENMP_CFLAGS |
| 1026 | PTHREAD_CFLAGS |
| 1027 | PTHREAD_LIBS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1028 | PTHREAD_CC |
| 1029 | acx_pthread_config |
| 1030 | WinPathScript |
| 1031 | USING_CL_FALSE |
| 1032 | USING_CL_TRUE |
| 1033 | CYGWIN_BUILD_FALSE |
| 1034 | CYGWIN_BUILD_TRUE |
| 1035 | WIN32_NATIVE_BUILD_FALSE |
| 1036 | WIN32_NATIVE_BUILD_TRUE |
| 1037 | WINGDI32_DELEGATE_FALSE |
| 1038 | WINGDI32_DELEGATE_TRUE |
| 1039 | GDI32_LIBS |
| 1040 | PKG_CONFIG |
| 1041 | LN_S |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1042 | LD |
| 1043 | FGREP |
| 1044 | EGREP |
| 1045 | GREP |
| 1046 | SED |
| 1047 | CPP |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 1048 | am__fastdepCXX_FALSE |
| 1049 | am__fastdepCXX_TRUE |
| 1050 | CXXDEPMODE |
| 1051 | ac_ct_CXX |
| 1052 | CXXFLAGS |
| 1053 | CXX |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1054 | am__fastdepCC_FALSE |
| 1055 | am__fastdepCC_TRUE |
| 1056 | CCDEPMODE |
| 1057 | AMDEPBACKSLASH |
| 1058 | AMDEP_FALSE |
| 1059 | AMDEP_TRUE |
| 1060 | am__quote |
| 1061 | am__include |
| 1062 | DEPDIR |
| 1063 | OBJEXT |
| 1064 | EXEEXT |
| 1065 | ac_ct_CC |
| 1066 | CPPFLAGS |
| 1067 | LDFLAGS |
| 1068 | CFLAGS |
| 1069 | CC |
| 1070 | DIRSEP |
| 1071 | MAGICK_FILTER_MODULE_PATH |
| 1072 | MAGICK_CONFIGURE_BUILD_PATH |
| 1073 | MAGICK_CONFIGURE_SRC_PATH |
| 1074 | MAGICK_CODER_MODULE_PATH |
| 1075 | MAN_DIR |
| 1076 | INFO_DIR |
| 1077 | PERSISTINCLUDE_DIR |
| 1078 | INCLUDE_DIR |
| 1079 | LIB_DIR |
| 1080 | LOCALSTATE_DIR |
| 1081 | SHAREDSTATE_DIR |
| 1082 | SYSCONF_DIR |
| 1083 | DATA_DIR |
| 1084 | LIBEXEC_DIR |
| 1085 | SBIN_DIR |
| 1086 | BIN_DIR |
| 1087 | EXEC_PREFIX_DIR |
| 1088 | PREFIX_DIR |
| 1089 | CONFIG_STATUS_DEPENDENCIES |
| 1090 | MAGICK_LIB_VERSION_NUMBER |
| 1091 | MAGICK_LIB_VERSION_TEXT |
| 1092 | MAGICK_LIB_VERSION |
| 1093 | AM_BACKSLASH |
| 1094 | AM_DEFAULT_VERBOSITY |
| 1095 | am__untar |
| 1096 | am__tar |
| 1097 | AMTAR |
| 1098 | am__leading_dot |
| 1099 | SET_MAKE |
| 1100 | AWK |
| 1101 | mkdir_p |
| 1102 | MKDIR_P |
| 1103 | INSTALL_STRIP_PROGRAM |
| 1104 | STRIP |
| 1105 | install_sh |
| 1106 | MAKEINFO |
| 1107 | AUTOHEADER |
| 1108 | AUTOMAKE |
| 1109 | AUTOCONF |
| 1110 | ACLOCAL |
| 1111 | VERSION |
| 1112 | PACKAGE |
| 1113 | CYGPATH_W |
| 1114 | am__isrc |
| 1115 | INSTALL_DATA |
| 1116 | INSTALL_SCRIPT |
| 1117 | INSTALL_PROGRAM |
| 1118 | PACKAGE_LIB_SUBVERSION |
| 1119 | PACKAGE_RELEASE_DATE |
| 1120 | PACKAGE_LIB_VERSION_NUMBER |
| 1121 | PACKAGE_LIB_VERSION |
| 1122 | PACKAGE_CHANGE_DATE |
| 1123 | PACKAGE_RELEASE |
| 1124 | MAGICK_LIBRARY_AGE |
| 1125 | MAGICK_LIBRARY_REVISION |
| 1126 | MAGICK_LIBRARY_CURRENT |
| 1127 | target_os |
| 1128 | target_vendor |
| 1129 | target_cpu |
| 1130 | target |
| 1131 | host_os |
| 1132 | host_vendor |
| 1133 | host_cpu |
| 1134 | host |
| 1135 | build_os |
| 1136 | build_vendor |
| 1137 | build_cpu |
| 1138 | build |
| 1139 | CONFIGURE_ARGS |
| 1140 | DISTCHECK_CONFIG_FLAGS |
| 1141 | target_alias |
| 1142 | host_alias |
| 1143 | build_alias |
| 1144 | LIBS |
| 1145 | ECHO_T |
| 1146 | ECHO_N |
| 1147 | ECHO_C |
| 1148 | DEFS |
| 1149 | mandir |
| 1150 | localedir |
| 1151 | libdir |
| 1152 | psdir |
| 1153 | pdfdir |
| 1154 | dvidir |
| 1155 | htmldir |
| 1156 | infodir |
| 1157 | docdir |
| 1158 | oldincludedir |
| 1159 | includedir |
| 1160 | localstatedir |
| 1161 | sharedstatedir |
| 1162 | sysconfdir |
| 1163 | datadir |
| 1164 | datarootdir |
| 1165 | libexecdir |
| 1166 | sbindir |
| 1167 | bindir |
| 1168 | program_transform_name |
| 1169 | prefix |
| 1170 | exec_prefix |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1171 | PACKAGE_URL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1172 | PACKAGE_BUGREPORT |
| 1173 | PACKAGE_STRING |
| 1174 | PACKAGE_VERSION |
| 1175 | PACKAGE_TARNAME |
| 1176 | PACKAGE_NAME |
| 1177 | PATH_SEPARATOR |
| 1178 | SHELL' |
| 1179 | ac_subst_files='' |
| 1180 | ac_user_opts=' |
| 1181 | enable_option_checking |
| 1182 | enable_silent_rules |
| 1183 | enable_dependency_tracking |
| 1184 | with_gnu_ld |
| 1185 | with_maximum_compile_warnings |
| 1186 | with_dmalloc |
| 1187 | enable_bounds_checking |
| 1188 | enable_osx_universal_binary |
| 1189 | with_threads |
| 1190 | enable_openmp |
| 1191 | enable_largefile |
| 1192 | enable_shared |
| 1193 | enable_static |
| 1194 | with_pic |
| 1195 | enable_fast_install |
| 1196 | enable_libtool_lock |
| 1197 | with_included_ltdl |
| 1198 | with_ltdl_include |
| 1199 | with_ltdl_lib |
| 1200 | enable_ltdl_install |
| 1201 | with_modules |
| 1202 | enable_delegate_build |
| 1203 | enable_deprecated |
| 1204 | enable_installed |
| 1205 | enable_cipher |
| 1206 | enable_embeddable |
| 1207 | enable_hdri |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1208 | enable_assert |
| 1209 | enable_maintainer_mode |
| 1210 | enable_ccmalloc |
| 1211 | enable_efence |
| 1212 | enable_prof |
| 1213 | enable_gprof |
| 1214 | enable_gcov |
| 1215 | with_method_prefix |
| 1216 | with_quantum_depth |
| 1217 | with_cache |
| 1218 | with_frozenpaths |
| 1219 | with_magick_plus_plus |
| 1220 | with_perl |
| 1221 | with_perl_options |
| 1222 | with_umem |
| 1223 | with_libstdc |
| 1224 | with_bzlib |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1225 | with_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1226 | with_zlib |
| 1227 | with_autotrace |
| 1228 | with_dps |
| 1229 | with_djvu |
| 1230 | with_fftw |
| 1231 | with_fpx |
| 1232 | with_fontconfig |
| 1233 | with_freetype |
| 1234 | with_gslib |
| 1235 | with_fontpath |
| 1236 | with_gs_font_dir |
| 1237 | with_gvc |
| 1238 | with_jbig |
| 1239 | with_jpeg |
| 1240 | with_jp2 |
| 1241 | with_lcms |
| 1242 | with_lqr |
| 1243 | with_openexr |
| 1244 | with_png |
| 1245 | with_rsvg |
| 1246 | with_tiff |
| 1247 | with_windows_font_dir |
| 1248 | with_wmf |
| 1249 | with_xml |
| 1250 | ' |
| 1251 | ac_precious_vars='build_alias |
| 1252 | host_alias |
| 1253 | target_alias |
| 1254 | CC |
| 1255 | CFLAGS |
| 1256 | LDFLAGS |
| 1257 | LIBS |
| 1258 | CPPFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1259 | CXX |
| 1260 | CXXFLAGS |
| 1261 | CCC |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 1262 | CPP |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1263 | PKG_CONFIG |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 1264 | CXXCPP |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1265 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1266 | AUTOTRACE_CFLAGS |
| 1267 | AUTOTRACE_LIBS |
| 1268 | FONTCONFIG_CFLAGS |
| 1269 | FONTCONFIG_LIBS |
| 1270 | GVC_CFLAGS |
| 1271 | GVC_LIBS |
| 1272 | LQR_CFLAGS |
| 1273 | LQR_LIBS |
| 1274 | OPENEXR_CFLAGS |
| 1275 | OPENEXR_LIBS |
| 1276 | RSVG_CFLAGS |
| 1277 | RSVG_LIBS |
| 1278 | CAIRO_SVG_CFLAGS |
| 1279 | CAIRO_SVG_LIBS' |
| 1280 | |
| 1281 | |
| 1282 | # Initialize some variables set by options. |
| 1283 | ac_init_help= |
| 1284 | ac_init_version=false |
| 1285 | ac_unrecognized_opts= |
| 1286 | ac_unrecognized_sep= |
| 1287 | # The variables have the same names as the options, with |
| 1288 | # dashes changed to underlines. |
| 1289 | cache_file=/dev/null |
| 1290 | exec_prefix=NONE |
| 1291 | no_create= |
| 1292 | no_recursion= |
| 1293 | prefix=NONE |
| 1294 | program_prefix=NONE |
| 1295 | program_suffix=NONE |
| 1296 | program_transform_name=s,x,x, |
| 1297 | silent= |
| 1298 | site= |
| 1299 | srcdir= |
| 1300 | verbose= |
| 1301 | x_includes=NONE |
| 1302 | x_libraries=NONE |
| 1303 | |
| 1304 | # Installation directory options. |
| 1305 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1306 | # and all the variables that are supposed to be based on exec_prefix |
| 1307 | # by default will actually change. |
| 1308 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1309 | # (The list follows the same order as the GNU Coding Standards.) |
| 1310 | bindir='${exec_prefix}/bin' |
| 1311 | sbindir='${exec_prefix}/sbin' |
| 1312 | libexecdir='${exec_prefix}/libexec' |
| 1313 | datarootdir='${prefix}/share' |
| 1314 | datadir='${datarootdir}' |
| 1315 | sysconfdir='${prefix}/etc' |
| 1316 | sharedstatedir='${prefix}/com' |
| 1317 | localstatedir='${prefix}/var' |
| 1318 | includedir='${prefix}/include' |
| 1319 | oldincludedir='/usr/include' |
| 1320 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1321 | infodir='${datarootdir}/info' |
| 1322 | htmldir='${docdir}' |
| 1323 | dvidir='${docdir}' |
| 1324 | pdfdir='${docdir}' |
| 1325 | psdir='${docdir}' |
| 1326 | libdir='${exec_prefix}/lib' |
| 1327 | localedir='${datarootdir}/locale' |
| 1328 | mandir='${datarootdir}/man' |
| 1329 | |
| 1330 | ac_prev= |
| 1331 | ac_dashdash= |
| 1332 | for ac_option |
| 1333 | do |
| 1334 | # If the previous option needs an argument, assign it. |
| 1335 | if test -n "$ac_prev"; then |
| 1336 | eval $ac_prev=\$ac_option |
| 1337 | ac_prev= |
| 1338 | continue |
| 1339 | fi |
| 1340 | |
| 1341 | case $ac_option in |
| 1342 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1343 | *) ac_optarg=yes ;; |
| 1344 | esac |
| 1345 | |
| 1346 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1347 | |
| 1348 | case $ac_dashdash$ac_option in |
| 1349 | --) |
| 1350 | ac_dashdash=yes ;; |
| 1351 | |
| 1352 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1353 | ac_prev=bindir ;; |
| 1354 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1355 | bindir=$ac_optarg ;; |
| 1356 | |
| 1357 | -build | --build | --buil | --bui | --bu) |
| 1358 | ac_prev=build_alias ;; |
| 1359 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1360 | build_alias=$ac_optarg ;; |
| 1361 | |
| 1362 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1363 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1364 | ac_prev=cache_file ;; |
| 1365 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1366 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1367 | cache_file=$ac_optarg ;; |
| 1368 | |
| 1369 | --config-cache | -C) |
| 1370 | cache_file=config.cache ;; |
| 1371 | |
| 1372 | -datadir | --datadir | --datadi | --datad) |
| 1373 | ac_prev=datadir ;; |
| 1374 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1375 | datadir=$ac_optarg ;; |
| 1376 | |
| 1377 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1378 | | --dataroo | --dataro | --datar) |
| 1379 | ac_prev=datarootdir ;; |
| 1380 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1381 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1382 | datarootdir=$ac_optarg ;; |
| 1383 | |
| 1384 | -disable-* | --disable-*) |
| 1385 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1386 | # Reject names that are not valid shell variable names. |
| 1387 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1388 | as_fn_error "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1389 | ac_useropt_orig=$ac_useropt |
| 1390 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1391 | case $ac_user_opts in |
| 1392 | *" |
| 1393 | "enable_$ac_useropt" |
| 1394 | "*) ;; |
| 1395 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1396 | ac_unrecognized_sep=', ';; |
| 1397 | esac |
| 1398 | eval enable_$ac_useropt=no ;; |
| 1399 | |
| 1400 | -docdir | --docdir | --docdi | --doc | --do) |
| 1401 | ac_prev=docdir ;; |
| 1402 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1403 | docdir=$ac_optarg ;; |
| 1404 | |
| 1405 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1406 | ac_prev=dvidir ;; |
| 1407 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1408 | dvidir=$ac_optarg ;; |
| 1409 | |
| 1410 | -enable-* | --enable-*) |
| 1411 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1412 | # Reject names that are not valid shell variable names. |
| 1413 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1414 | as_fn_error "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1415 | ac_useropt_orig=$ac_useropt |
| 1416 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1417 | case $ac_user_opts in |
| 1418 | *" |
| 1419 | "enable_$ac_useropt" |
| 1420 | "*) ;; |
| 1421 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1422 | ac_unrecognized_sep=', ';; |
| 1423 | esac |
| 1424 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1425 | |
| 1426 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1427 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1428 | | --exec | --exe | --ex) |
| 1429 | ac_prev=exec_prefix ;; |
| 1430 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1431 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1432 | | --exec=* | --exe=* | --ex=*) |
| 1433 | exec_prefix=$ac_optarg ;; |
| 1434 | |
| 1435 | -gas | --gas | --ga | --g) |
| 1436 | # Obsolete; use --with-gas. |
| 1437 | with_gas=yes ;; |
| 1438 | |
| 1439 | -help | --help | --hel | --he | -h) |
| 1440 | ac_init_help=long ;; |
| 1441 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1442 | ac_init_help=recursive ;; |
| 1443 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1444 | ac_init_help=short ;; |
| 1445 | |
| 1446 | -host | --host | --hos | --ho) |
| 1447 | ac_prev=host_alias ;; |
| 1448 | -host=* | --host=* | --hos=* | --ho=*) |
| 1449 | host_alias=$ac_optarg ;; |
| 1450 | |
| 1451 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1452 | ac_prev=htmldir ;; |
| 1453 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1454 | | --ht=*) |
| 1455 | htmldir=$ac_optarg ;; |
| 1456 | |
| 1457 | -includedir | --includedir | --includedi | --included | --include \ |
| 1458 | | --includ | --inclu | --incl | --inc) |
| 1459 | ac_prev=includedir ;; |
| 1460 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1461 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1462 | includedir=$ac_optarg ;; |
| 1463 | |
| 1464 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1465 | ac_prev=infodir ;; |
| 1466 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1467 | infodir=$ac_optarg ;; |
| 1468 | |
| 1469 | -libdir | --libdir | --libdi | --libd) |
| 1470 | ac_prev=libdir ;; |
| 1471 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1472 | libdir=$ac_optarg ;; |
| 1473 | |
| 1474 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1475 | | --libexe | --libex | --libe) |
| 1476 | ac_prev=libexecdir ;; |
| 1477 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1478 | | --libexe=* | --libex=* | --libe=*) |
| 1479 | libexecdir=$ac_optarg ;; |
| 1480 | |
| 1481 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1482 | ac_prev=localedir ;; |
| 1483 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1484 | localedir=$ac_optarg ;; |
| 1485 | |
| 1486 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1487 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1488 | ac_prev=localstatedir ;; |
| 1489 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1490 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1491 | localstatedir=$ac_optarg ;; |
| 1492 | |
| 1493 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1494 | ac_prev=mandir ;; |
| 1495 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1496 | mandir=$ac_optarg ;; |
| 1497 | |
| 1498 | -nfp | --nfp | --nf) |
| 1499 | # Obsolete; use --without-fp. |
| 1500 | with_fp=no ;; |
| 1501 | |
| 1502 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1503 | | --no-cr | --no-c | -n) |
| 1504 | no_create=yes ;; |
| 1505 | |
| 1506 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1507 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1508 | no_recursion=yes ;; |
| 1509 | |
| 1510 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1511 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1512 | | --oldin | --oldi | --old | --ol | --o) |
| 1513 | ac_prev=oldincludedir ;; |
| 1514 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1515 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1516 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1517 | oldincludedir=$ac_optarg ;; |
| 1518 | |
| 1519 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1520 | ac_prev=prefix ;; |
| 1521 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1522 | prefix=$ac_optarg ;; |
| 1523 | |
| 1524 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1525 | | --program-pre | --program-pr | --program-p) |
| 1526 | ac_prev=program_prefix ;; |
| 1527 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1528 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1529 | program_prefix=$ac_optarg ;; |
| 1530 | |
| 1531 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1532 | | --program-suf | --program-su | --program-s) |
| 1533 | ac_prev=program_suffix ;; |
| 1534 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1535 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1536 | program_suffix=$ac_optarg ;; |
| 1537 | |
| 1538 | -program-transform-name | --program-transform-name \ |
| 1539 | | --program-transform-nam | --program-transform-na \ |
| 1540 | | --program-transform-n | --program-transform- \ |
| 1541 | | --program-transform | --program-transfor \ |
| 1542 | | --program-transfo | --program-transf \ |
| 1543 | | --program-trans | --program-tran \ |
| 1544 | | --progr-tra | --program-tr | --program-t) |
| 1545 | ac_prev=program_transform_name ;; |
| 1546 | -program-transform-name=* | --program-transform-name=* \ |
| 1547 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1548 | | --program-transform-n=* | --program-transform-=* \ |
| 1549 | | --program-transform=* | --program-transfor=* \ |
| 1550 | | --program-transfo=* | --program-transf=* \ |
| 1551 | | --program-trans=* | --program-tran=* \ |
| 1552 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1553 | program_transform_name=$ac_optarg ;; |
| 1554 | |
| 1555 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1556 | ac_prev=pdfdir ;; |
| 1557 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1558 | pdfdir=$ac_optarg ;; |
| 1559 | |
| 1560 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1561 | ac_prev=psdir ;; |
| 1562 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1563 | psdir=$ac_optarg ;; |
| 1564 | |
| 1565 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1566 | | -silent | --silent | --silen | --sile | --sil) |
| 1567 | silent=yes ;; |
| 1568 | |
| 1569 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1570 | ac_prev=sbindir ;; |
| 1571 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1572 | | --sbi=* | --sb=*) |
| 1573 | sbindir=$ac_optarg ;; |
| 1574 | |
| 1575 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1576 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1577 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1578 | | --sha | --sh) |
| 1579 | ac_prev=sharedstatedir ;; |
| 1580 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1581 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1582 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1583 | | --sha=* | --sh=*) |
| 1584 | sharedstatedir=$ac_optarg ;; |
| 1585 | |
| 1586 | -site | --site | --sit) |
| 1587 | ac_prev=site ;; |
| 1588 | -site=* | --site=* | --sit=*) |
| 1589 | site=$ac_optarg ;; |
| 1590 | |
| 1591 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1592 | ac_prev=srcdir ;; |
| 1593 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1594 | srcdir=$ac_optarg ;; |
| 1595 | |
| 1596 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1597 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1598 | ac_prev=sysconfdir ;; |
| 1599 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1600 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1601 | sysconfdir=$ac_optarg ;; |
| 1602 | |
| 1603 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1604 | ac_prev=target_alias ;; |
| 1605 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1606 | target_alias=$ac_optarg ;; |
| 1607 | |
| 1608 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1609 | verbose=yes ;; |
| 1610 | |
| 1611 | -version | --version | --versio | --versi | --vers | -V) |
| 1612 | ac_init_version=: ;; |
| 1613 | |
| 1614 | -with-* | --with-*) |
| 1615 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1616 | # Reject names that are not valid shell variable names. |
| 1617 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1618 | as_fn_error "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1619 | ac_useropt_orig=$ac_useropt |
| 1620 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1621 | case $ac_user_opts in |
| 1622 | *" |
| 1623 | "with_$ac_useropt" |
| 1624 | "*) ;; |
| 1625 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1626 | ac_unrecognized_sep=', ';; |
| 1627 | esac |
| 1628 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1629 | |
| 1630 | -without-* | --without-*) |
| 1631 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1632 | # Reject names that are not valid shell variable names. |
| 1633 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1634 | as_fn_error "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1635 | ac_useropt_orig=$ac_useropt |
| 1636 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1637 | case $ac_user_opts in |
| 1638 | *" |
| 1639 | "with_$ac_useropt" |
| 1640 | "*) ;; |
| 1641 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1642 | ac_unrecognized_sep=', ';; |
| 1643 | esac |
| 1644 | eval with_$ac_useropt=no ;; |
| 1645 | |
| 1646 | --x) |
| 1647 | # Obsolete; use --with-x. |
| 1648 | with_x=yes ;; |
| 1649 | |
| 1650 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1651 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1652 | ac_prev=x_includes ;; |
| 1653 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1654 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1655 | x_includes=$ac_optarg ;; |
| 1656 | |
| 1657 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1658 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1659 | ac_prev=x_libraries ;; |
| 1660 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1661 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1662 | x_libraries=$ac_optarg ;; |
| 1663 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1664 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1665 | Try \`$0 --help' for more information." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1666 | ;; |
| 1667 | |
| 1668 | *=*) |
| 1669 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1670 | # Reject names that are not valid shell variable names. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1671 | case $ac_envvar in #( |
| 1672 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1673 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1674 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1675 | eval $ac_envvar=\$ac_optarg |
| 1676 | export $ac_envvar ;; |
| 1677 | |
| 1678 | *) |
| 1679 | # FIXME: should be removed in autoconf 3.0. |
| 1680 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1681 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1682 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1683 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1684 | ;; |
| 1685 | |
| 1686 | esac |
| 1687 | done |
| 1688 | |
| 1689 | if test -n "$ac_prev"; then |
| 1690 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1691 | as_fn_error "missing argument to $ac_option" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1692 | fi |
| 1693 | |
| 1694 | if test -n "$ac_unrecognized_opts"; then |
| 1695 | case $enable_option_checking in |
| 1696 | no) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1697 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1698 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1699 | esac |
| 1700 | fi |
| 1701 | |
| 1702 | # Check all directory arguments for consistency. |
| 1703 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1704 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1705 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1706 | libdir localedir mandir |
| 1707 | do |
| 1708 | eval ac_val=\$$ac_var |
| 1709 | # Remove trailing slashes. |
| 1710 | case $ac_val in |
| 1711 | */ ) |
| 1712 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1713 | eval $ac_var=\$ac_val;; |
| 1714 | esac |
| 1715 | # Be sure to have absolute directory names. |
| 1716 | case $ac_val in |
| 1717 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1718 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1719 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1720 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1721 | done |
| 1722 | |
| 1723 | # There might be people who depend on the old broken behavior: `$host' |
| 1724 | # used to hold the argument of --host etc. |
| 1725 | # FIXME: To remove some day. |
| 1726 | build=$build_alias |
| 1727 | host=$host_alias |
| 1728 | target=$target_alias |
| 1729 | |
| 1730 | # FIXME: To remove some day. |
| 1731 | if test "x$host_alias" != x; then |
| 1732 | if test "x$build_alias" = x; then |
| 1733 | cross_compiling=maybe |
| 1734 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1735 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1736 | elif test "x$build_alias" != "x$host_alias"; then |
| 1737 | cross_compiling=yes |
| 1738 | fi |
| 1739 | fi |
| 1740 | |
| 1741 | ac_tool_prefix= |
| 1742 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1743 | |
| 1744 | test "$silent" = yes && exec 6>/dev/null |
| 1745 | |
| 1746 | |
| 1747 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1748 | ac_ls_di=`ls -di .` && |
| 1749 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1750 | as_fn_error "working directory cannot be determined" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1751 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1752 | as_fn_error "pwd does not report name of working directory" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1753 | |
| 1754 | |
| 1755 | # Find the source files, if location was not specified. |
| 1756 | if test -z "$srcdir"; then |
| 1757 | ac_srcdir_defaulted=yes |
| 1758 | # Try the directory containing this script, then the parent directory. |
| 1759 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1760 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1761 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1762 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1763 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1764 | $as_echo X"$as_myself" | |
| 1765 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1766 | s//\1/ |
| 1767 | q |
| 1768 | } |
| 1769 | /^X\(\/\/\)[^/].*/{ |
| 1770 | s//\1/ |
| 1771 | q |
| 1772 | } |
| 1773 | /^X\(\/\/\)$/{ |
| 1774 | s//\1/ |
| 1775 | q |
| 1776 | } |
| 1777 | /^X\(\/\).*/{ |
| 1778 | s//\1/ |
| 1779 | q |
| 1780 | } |
| 1781 | s/.*/./; q'` |
| 1782 | srcdir=$ac_confdir |
| 1783 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1784 | srcdir=.. |
| 1785 | fi |
| 1786 | else |
| 1787 | ac_srcdir_defaulted=no |
| 1788 | fi |
| 1789 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1790 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1791 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1792 | fi |
| 1793 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1794 | ac_abs_confdir=`( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1795 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1796 | pwd)` |
| 1797 | # When building in place, set srcdir=. |
| 1798 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1799 | srcdir=. |
| 1800 | fi |
| 1801 | # Remove unnecessary trailing slashes from srcdir. |
| 1802 | # Double slashes in file names in object file debugging info |
| 1803 | # mess up M-x gdb in Emacs. |
| 1804 | case $srcdir in |
| 1805 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1806 | esac |
| 1807 | for ac_var in $ac_precious_vars; do |
| 1808 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1809 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1810 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1811 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1812 | done |
| 1813 | |
| 1814 | # |
| 1815 | # Report the --help message. |
| 1816 | # |
| 1817 | if test "$ac_init_help" = "long"; then |
| 1818 | # Omit some internal or obsolete options to make the list less imposing. |
| 1819 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1820 | cat <<_ACEOF |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 1821 | \`configure' configures ImageMagick 6.5.9 to adapt to many kinds of systems. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1822 | |
| 1823 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1824 | |
| 1825 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1826 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1827 | |
| 1828 | Defaults for the options are specified in brackets. |
| 1829 | |
| 1830 | Configuration: |
| 1831 | -h, --help display this help and exit |
| 1832 | --help=short display options specific to this package |
| 1833 | --help=recursive display the short help of all the included packages |
| 1834 | -V, --version display version information and exit |
| 1835 | -q, --quiet, --silent do not print \`checking...' messages |
| 1836 | --cache-file=FILE cache test results in FILE [disabled] |
| 1837 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1838 | -n, --no-create do not create output files |
| 1839 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1840 | |
| 1841 | Installation directories: |
| 1842 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1843 | [$ac_default_prefix] |
| 1844 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1845 | [PREFIX] |
| 1846 | |
| 1847 | By default, \`make install' will install all the files in |
| 1848 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1849 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1850 | for instance \`--prefix=\$HOME'. |
| 1851 | |
| 1852 | For better control, use the options below. |
| 1853 | |
| 1854 | Fine tuning of the installation directories: |
| 1855 | --bindir=DIR user executables [EPREFIX/bin] |
| 1856 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1857 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1858 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1859 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1860 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1861 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1862 | --includedir=DIR C header files [PREFIX/include] |
| 1863 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1864 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1865 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1866 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1867 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1868 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1869 | --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] |
| 1870 | --htmldir=DIR html documentation [DOCDIR] |
| 1871 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1872 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1873 | --psdir=DIR ps documentation [DOCDIR] |
| 1874 | _ACEOF |
| 1875 | |
| 1876 | cat <<\_ACEOF |
| 1877 | |
| 1878 | Program names: |
| 1879 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1880 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1881 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1882 | |
| 1883 | X features: |
| 1884 | --x-includes=DIR X include files are in DIR |
| 1885 | --x-libraries=DIR X library files are in DIR |
| 1886 | |
| 1887 | System types: |
| 1888 | --build=BUILD configure for building on BUILD [guessed] |
| 1889 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1890 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1891 | _ACEOF |
| 1892 | fi |
| 1893 | |
| 1894 | if test -n "$ac_init_help"; then |
| 1895 | case $ac_init_help in |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 1896 | short | recursive ) echo "Configuration of ImageMagick 6.5.9:";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1897 | esac |
| 1898 | cat <<\_ACEOF |
| 1899 | |
| 1900 | Optional Features: |
| 1901 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1902 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1903 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1904 | --enable-silent-rules less verbose build output (undo: `make V=1') |
| 1905 | --disable-silent-rules verbose build output (undo: `make V=0') |
| 1906 | --disable-dependency-tracking speeds up one-time build |
| 1907 | --enable-dependency-tracking do not reject slow dependency extractors |
| 1908 | --bounds-checking enable run-time bounds-checking |
| 1909 | --enable-osx-universal-binary |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1910 | build universal binary on OS X [[default=no]] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1911 | --disable-openmp do not use OpenMP |
| 1912 | --disable-largefile omit support for large files |
| 1913 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1914 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1915 | --enable-fast-install[=PKGS] |
| 1916 | optimize for fast installation [default=yes] |
| 1917 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 1918 | --enable-ltdl-install install libltdl |
| 1919 | --enable-delegate-build look for delegate libraries in build directory |
| 1920 | --disable-deprecated exclude deprecated methods in MagickCore and |
| 1921 | MagickWand API's |
| 1922 | --disable-installed Formally install ImageMagick under PREFIX |
| 1923 | --disable-cipher disable enciphering and deciphering image pixels |
| 1924 | --enable-embeddable enable self-contained, embeddable, |
| 1925 | zero-configuration ImageMagick |
| 1926 | --enable-hdri accurately represent the wide range of intensity |
| 1927 | levels found in real scenes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1928 | --disable-assert disable assert() statements in build |
| 1929 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1930 | (and sometimes confusing) to the casual installer |
| 1931 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1932 | --enable-efence enable 'efence' memory debug support |
| 1933 | --enable-prof enable 'prof' profiling support |
| 1934 | --enable-gprof enable 'gprof' profiling support |
| 1935 | --enable-gcov enable 'gcov' profiling support |
| 1936 | |
| 1937 | Optional Packages: |
| 1938 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1939 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1940 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1941 | --without-maximum-compile-warnings |
| 1942 | Disable maximum warning verbosity |
| 1943 | --with-dmalloc use dmalloc, as in |
| 1944 | http://www.dmalloc.com/dmalloc.tar.gz |
| 1945 | --without-threads disable threads support |
| 1946 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1947 | both] |
| 1948 | --with-included-ltdl use the GNU ltdl sources included here |
| 1949 | --with-ltdl-include=DIR use the ltdl headers installed in DIR |
| 1950 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR |
| 1951 | --with-modules enable building dynamically loadable modules |
| 1952 | --with-method-prefix=PREFIX |
| 1953 | prefix MagickCore API methods |
| 1954 | --with-quantum-depth=DEPTH |
| 1955 | number of bits in a pixel quantum (default 16) |
| 1956 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 1957 | memory) |
| 1958 | --with-frozenpaths freeze delegate paths |
| 1959 | --without-magick-plus-plus |
| 1960 | disable build/install of Magick++ |
| 1961 | --with-perl enable build/install of PerlMagick |
| 1962 | --with-perl-options=OPTIONS |
| 1963 | options to pass on command-line when generating |
| 1964 | PerlMagick's build file |
| 1965 | --with-umem enable umem memory allocation library support |
| 1966 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 1967 | --without-bzlib disable BZLIB support |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1968 | --with-x use the X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1969 | --without-zlib disable ZLIB support |
| 1970 | --with-autotrace enable autotrace support |
| 1971 | --without-dps disable Display Postscript support |
| 1972 | --without-djvu disable DjVu support |
| 1973 | --without-fftw disable FFTW support |
| 1974 | --without-fpx disable FlashPIX support |
| 1975 | --without-fontconfig disable fontconfig support |
| 1976 | --without-freetype disable Freetype support |
| 1977 | --without-gslib enable Ghostscript library support |
| 1978 | --with-fontpath=DIR prepend to default font search path |
| 1979 | --with-gs-font-dir=DIR Ghostscript font directory |
| 1980 | --without-gvc disable GVC support |
| 1981 | --without-jbig disable JBIG support |
| 1982 | --without-jpeg disable JPEG support |
| 1983 | --without-jp2 disable JPEG-2000 support |
| 1984 | --without-lcms disable LCMS support |
| 1985 | --without-lqr disable Liquid Rescale support (experimental) |
| 1986 | --without-openexr disable OpenEXR support |
| 1987 | --without-png disable PNG support |
| 1988 | --without-rsvg disable RSVG support |
| 1989 | --without-tiff disable TIFF support |
| 1990 | --with-windows-font-dir=DIR |
| 1991 | directory containing MS-Windows fonts |
| 1992 | --without-wmf disable WMF support |
| 1993 | --without-xml disable XML support |
| 1994 | |
| 1995 | Some influential environment variables: |
| 1996 | CC C compiler command |
| 1997 | CFLAGS C compiler flags |
| 1998 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1999 | nonstandard directory <lib dir> |
| 2000 | LIBS libraries to pass to the linker, e.g. -l<library> |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2001 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2002 | you have headers in a nonstandard directory <include dir> |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2003 | CXX C++ compiler command |
| 2004 | CXXFLAGS C++ compiler flags |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2005 | CPP C preprocessor |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2006 | PKG_CONFIG path to pkg-config utility |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 2007 | CXXCPP C++ preprocessor |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 2008 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2009 | AUTOTRACE_CFLAGS |
| 2010 | C compiler flags for AUTOTRACE, overriding pkg-config |
| 2011 | AUTOTRACE_LIBS |
| 2012 | linker flags for AUTOTRACE, overriding pkg-config |
| 2013 | FONTCONFIG_CFLAGS |
| 2014 | C compiler flags for FONTCONFIG, overriding pkg-config |
| 2015 | FONTCONFIG_LIBS |
| 2016 | linker flags for FONTCONFIG, overriding pkg-config |
| 2017 | GVC_CFLAGS C compiler flags for GVC, overriding pkg-config |
| 2018 | GVC_LIBS linker flags for GVC, overriding pkg-config |
| 2019 | LQR_CFLAGS C compiler flags for LQR, overriding pkg-config |
| 2020 | LQR_LIBS linker flags for LQR, overriding pkg-config |
| 2021 | OPENEXR_CFLAGS |
| 2022 | C compiler flags for OPENEXR, overriding pkg-config |
| 2023 | OPENEXR_LIBS |
| 2024 | linker flags for OPENEXR, overriding pkg-config |
| 2025 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config |
| 2026 | RSVG_LIBS linker flags for RSVG, overriding pkg-config |
| 2027 | CAIRO_SVG_CFLAGS |
| 2028 | C compiler flags for CAIRO_SVG, overriding pkg-config |
| 2029 | CAIRO_SVG_LIBS |
| 2030 | linker flags for CAIRO_SVG, overriding pkg-config |
| 2031 | |
| 2032 | Use these variables to override the choices made by `configure' or to help |
| 2033 | it to find libraries and programs with nonstandard names/locations. |
| 2034 | |
| 2035 | Report bugs to <http://www.imagemagick.org>. |
| 2036 | _ACEOF |
| 2037 | ac_status=$? |
| 2038 | fi |
| 2039 | |
| 2040 | if test "$ac_init_help" = "recursive"; then |
| 2041 | # If there are subdirs, report their specific --help. |
| 2042 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2043 | test -d "$ac_dir" || |
| 2044 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2045 | continue |
| 2046 | ac_builddir=. |
| 2047 | |
| 2048 | case "$ac_dir" in |
| 2049 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2050 | *) |
| 2051 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2052 | # A ".." for each directory in $ac_dir_suffix. |
| 2053 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2054 | case $ac_top_builddir_sub in |
| 2055 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2056 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2057 | esac ;; |
| 2058 | esac |
| 2059 | ac_abs_top_builddir=$ac_pwd |
| 2060 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2061 | # for backward compatibility: |
| 2062 | ac_top_builddir=$ac_top_build_prefix |
| 2063 | |
| 2064 | case $srcdir in |
| 2065 | .) # We are building in place. |
| 2066 | ac_srcdir=. |
| 2067 | ac_top_srcdir=$ac_top_builddir_sub |
| 2068 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2069 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2070 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2071 | ac_top_srcdir=$srcdir |
| 2072 | ac_abs_top_srcdir=$srcdir ;; |
| 2073 | *) # Relative name. |
| 2074 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2075 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2076 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2077 | esac |
| 2078 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2079 | |
| 2080 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2081 | # Check for guested configure. |
| 2082 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2083 | echo && |
| 2084 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2085 | elif test -f "$ac_srcdir/configure"; then |
| 2086 | echo && |
| 2087 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2088 | else |
| 2089 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2090 | fi || ac_status=$? |
| 2091 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2092 | done |
| 2093 | fi |
| 2094 | |
| 2095 | test -n "$ac_init_help" && exit $ac_status |
| 2096 | if $ac_init_version; then |
| 2097 | cat <<\_ACEOF |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 2098 | ImageMagick configure 6.5.9 |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2099 | generated by GNU Autoconf 2.65 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2100 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2101 | Copyright (C) 2009 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2102 | This configure script is free software; the Free Software Foundation |
| 2103 | gives unlimited permission to copy, distribute and modify it. |
| 2104 | _ACEOF |
| 2105 | exit |
| 2106 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2107 | |
| 2108 | ## ------------------------ ## |
| 2109 | ## Autoconf initialization. ## |
| 2110 | ## ------------------------ ## |
| 2111 | |
| 2112 | # ac_fn_c_try_compile LINENO |
| 2113 | # -------------------------- |
| 2114 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2115 | ac_fn_c_try_compile () |
| 2116 | { |
| 2117 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2118 | rm -f conftest.$ac_objext |
| 2119 | if { { ac_try="$ac_compile" |
| 2120 | case "(($ac_try" in |
| 2121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2122 | *) ac_try_echo=$ac_try;; |
| 2123 | esac |
| 2124 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2125 | $as_echo "$ac_try_echo"; } >&5 |
| 2126 | (eval "$ac_compile") 2>conftest.err |
| 2127 | ac_status=$? |
| 2128 | if test -s conftest.err; then |
| 2129 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2130 | cat conftest.er1 >&5 |
| 2131 | mv -f conftest.er1 conftest.err |
| 2132 | fi |
| 2133 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2134 | test $ac_status = 0; } && { |
| 2135 | test -z "$ac_c_werror_flag" || |
| 2136 | test ! -s conftest.err |
| 2137 | } && test -s conftest.$ac_objext; then : |
| 2138 | ac_retval=0 |
| 2139 | else |
| 2140 | $as_echo "$as_me: failed program was:" >&5 |
| 2141 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2142 | |
| 2143 | ac_retval=1 |
| 2144 | fi |
| 2145 | 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] | 2146 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2147 | |
| 2148 | } # ac_fn_c_try_compile |
| 2149 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2150 | # ac_fn_cxx_try_compile LINENO |
| 2151 | # ---------------------------- |
| 2152 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2153 | ac_fn_cxx_try_compile () |
| 2154 | { |
| 2155 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2156 | rm -f conftest.$ac_objext |
| 2157 | if { { ac_try="$ac_compile" |
| 2158 | case "(($ac_try" in |
| 2159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2160 | *) ac_try_echo=$ac_try;; |
| 2161 | esac |
| 2162 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2163 | $as_echo "$ac_try_echo"; } >&5 |
| 2164 | (eval "$ac_compile") 2>conftest.err |
| 2165 | ac_status=$? |
| 2166 | if test -s conftest.err; then |
| 2167 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2168 | cat conftest.er1 >&5 |
| 2169 | mv -f conftest.er1 conftest.err |
| 2170 | fi |
| 2171 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2172 | test $ac_status = 0; } && { |
| 2173 | test -z "$ac_cxx_werror_flag" || |
| 2174 | test ! -s conftest.err |
| 2175 | } && test -s conftest.$ac_objext; then : |
| 2176 | ac_retval=0 |
| 2177 | else |
| 2178 | $as_echo "$as_me: failed program was:" >&5 |
| 2179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2180 | |
| 2181 | ac_retval=1 |
| 2182 | fi |
| 2183 | 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] | 2184 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2185 | |
| 2186 | } # ac_fn_cxx_try_compile |
| 2187 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2188 | # ac_fn_c_try_cpp LINENO |
| 2189 | # ---------------------- |
| 2190 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2191 | ac_fn_c_try_cpp () |
| 2192 | { |
| 2193 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2194 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2195 | case "(($ac_try" in |
| 2196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2197 | *) ac_try_echo=$ac_try;; |
| 2198 | esac |
| 2199 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2200 | $as_echo "$ac_try_echo"; } >&5 |
| 2201 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2202 | ac_status=$? |
| 2203 | if test -s conftest.err; then |
| 2204 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2205 | cat conftest.er1 >&5 |
| 2206 | mv -f conftest.er1 conftest.err |
| 2207 | fi |
| 2208 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2209 | test $ac_status = 0; } >/dev/null && { |
| 2210 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2211 | test ! -s conftest.err |
| 2212 | }; then : |
| 2213 | ac_retval=0 |
| 2214 | else |
| 2215 | $as_echo "$as_me: failed program was:" >&5 |
| 2216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2217 | |
| 2218 | ac_retval=1 |
| 2219 | fi |
| 2220 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2221 | as_fn_set_status $ac_retval |
| 2222 | |
| 2223 | } # ac_fn_c_try_cpp |
| 2224 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2225 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2226 | # ------------------------------------------------------- |
| 2227 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2228 | # the include files in INCLUDES and setting the cache variable VAR |
| 2229 | # accordingly. |
| 2230 | ac_fn_c_check_header_mongrel () |
| 2231 | { |
| 2232 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2233 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2235 | $as_echo_n "checking for $2... " >&6; } |
| 2236 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2237 | $as_echo_n "(cached) " >&6 |
| 2238 | fi |
| 2239 | eval ac_res=\$$3 |
| 2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2241 | $as_echo "$ac_res" >&6; } |
| 2242 | else |
| 2243 | # Is the header compilable? |
| 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2245 | $as_echo_n "checking $2 usability... " >&6; } |
| 2246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2247 | /* end confdefs.h. */ |
| 2248 | $4 |
| 2249 | #include <$2> |
| 2250 | _ACEOF |
| 2251 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2252 | ac_header_compiler=yes |
| 2253 | else |
| 2254 | ac_header_compiler=no |
| 2255 | fi |
| 2256 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2258 | $as_echo "$ac_header_compiler" >&6; } |
| 2259 | |
| 2260 | # Is the header present? |
| 2261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2262 | $as_echo_n "checking $2 presence... " >&6; } |
| 2263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2264 | /* end confdefs.h. */ |
| 2265 | #include <$2> |
| 2266 | _ACEOF |
| 2267 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2268 | ac_header_preproc=yes |
| 2269 | else |
| 2270 | ac_header_preproc=no |
| 2271 | fi |
| 2272 | rm -f conftest.err conftest.$ac_ext |
| 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2274 | $as_echo "$ac_header_preproc" >&6; } |
| 2275 | |
| 2276 | # So? What about this header? |
| 2277 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2278 | yes:no: ) |
| 2279 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2280 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2281 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2282 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2283 | ;; |
| 2284 | no:yes:* ) |
| 2285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2286 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2288 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2290 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2292 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2294 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2295 | ( cat <<\_ASBOX |
| 2296 | ## ----------------------------------------- ## |
| 2297 | ## Report this to http://www.imagemagick.org ## |
| 2298 | ## ----------------------------------------- ## |
| 2299 | _ASBOX |
| 2300 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2301 | ;; |
| 2302 | esac |
| 2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2304 | $as_echo_n "checking for $2... " >&6; } |
| 2305 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2306 | $as_echo_n "(cached) " >&6 |
| 2307 | else |
| 2308 | eval "$3=\$ac_header_compiler" |
| 2309 | fi |
| 2310 | eval ac_res=\$$3 |
| 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2312 | $as_echo "$ac_res" >&6; } |
| 2313 | fi |
| 2314 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2315 | |
| 2316 | } # ac_fn_c_check_header_mongrel |
| 2317 | |
| 2318 | # ac_fn_c_try_run LINENO |
| 2319 | # ---------------------- |
| 2320 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2321 | # that executables *can* be run. |
| 2322 | ac_fn_c_try_run () |
| 2323 | { |
| 2324 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2325 | if { { ac_try="$ac_link" |
| 2326 | case "(($ac_try" in |
| 2327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2328 | *) ac_try_echo=$ac_try;; |
| 2329 | esac |
| 2330 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2331 | $as_echo "$ac_try_echo"; } >&5 |
| 2332 | (eval "$ac_link") 2>&5 |
| 2333 | ac_status=$? |
| 2334 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2335 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2336 | { { case "(($ac_try" in |
| 2337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2338 | *) ac_try_echo=$ac_try;; |
| 2339 | esac |
| 2340 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2341 | $as_echo "$ac_try_echo"; } >&5 |
| 2342 | (eval "$ac_try") 2>&5 |
| 2343 | ac_status=$? |
| 2344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2345 | test $ac_status = 0; }; }; then : |
| 2346 | ac_retval=0 |
| 2347 | else |
| 2348 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2349 | $as_echo "$as_me: failed program was:" >&5 |
| 2350 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2351 | |
| 2352 | ac_retval=$ac_status |
| 2353 | fi |
| 2354 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2355 | 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] | 2356 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2357 | |
| 2358 | } # ac_fn_c_try_run |
| 2359 | |
| 2360 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2361 | # ------------------------------------------------------- |
| 2362 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2363 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2364 | ac_fn_c_check_header_compile () |
| 2365 | { |
| 2366 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2368 | $as_echo_n "checking for $2... " >&6; } |
| 2369 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2370 | $as_echo_n "(cached) " >&6 |
| 2371 | else |
| 2372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2373 | /* end confdefs.h. */ |
| 2374 | $4 |
| 2375 | #include <$2> |
| 2376 | _ACEOF |
| 2377 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2378 | eval "$3=yes" |
| 2379 | else |
| 2380 | eval "$3=no" |
| 2381 | fi |
| 2382 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2383 | fi |
| 2384 | eval ac_res=\$$3 |
| 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2386 | $as_echo "$ac_res" >&6; } |
| 2387 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2388 | |
| 2389 | } # ac_fn_c_check_header_compile |
| 2390 | |
| 2391 | # ac_fn_c_try_link LINENO |
| 2392 | # ----------------------- |
| 2393 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2394 | ac_fn_c_try_link () |
| 2395 | { |
| 2396 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2397 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2398 | if { { ac_try="$ac_link" |
| 2399 | case "(($ac_try" in |
| 2400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2401 | *) ac_try_echo=$ac_try;; |
| 2402 | esac |
| 2403 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2404 | $as_echo "$ac_try_echo"; } >&5 |
| 2405 | (eval "$ac_link") 2>conftest.err |
| 2406 | ac_status=$? |
| 2407 | if test -s conftest.err; then |
| 2408 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2409 | cat conftest.er1 >&5 |
| 2410 | mv -f conftest.er1 conftest.err |
| 2411 | fi |
| 2412 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2413 | test $ac_status = 0; } && { |
| 2414 | test -z "$ac_c_werror_flag" || |
| 2415 | test ! -s conftest.err |
| 2416 | } && test -s conftest$ac_exeext && { |
| 2417 | test "$cross_compiling" = yes || |
| 2418 | $as_test_x conftest$ac_exeext |
| 2419 | }; then : |
| 2420 | ac_retval=0 |
| 2421 | else |
| 2422 | $as_echo "$as_me: failed program was:" >&5 |
| 2423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2424 | |
| 2425 | ac_retval=1 |
| 2426 | fi |
| 2427 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2428 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2429 | # interfere with the next link command; also delete a directory that is |
| 2430 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2431 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2432 | 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] | 2433 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2434 | |
| 2435 | } # ac_fn_c_try_link |
| 2436 | |
| 2437 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2438 | # ---------------------------------- |
| 2439 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2440 | ac_fn_c_check_func () |
| 2441 | { |
| 2442 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2444 | $as_echo_n "checking for $2... " >&6; } |
| 2445 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2446 | $as_echo_n "(cached) " >&6 |
| 2447 | else |
| 2448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2449 | /* end confdefs.h. */ |
| 2450 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2451 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2452 | #define $2 innocuous_$2 |
| 2453 | |
| 2454 | /* System header to define __stub macros and hopefully few prototypes, |
| 2455 | which can conflict with char $2 (); below. |
| 2456 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2457 | <limits.h> exists even on freestanding compilers. */ |
| 2458 | |
| 2459 | #ifdef __STDC__ |
| 2460 | # include <limits.h> |
| 2461 | #else |
| 2462 | # include <assert.h> |
| 2463 | #endif |
| 2464 | |
| 2465 | #undef $2 |
| 2466 | |
| 2467 | /* Override any GCC internal prototype to avoid an error. |
| 2468 | Use char because int might match the return type of a GCC |
| 2469 | builtin and then its argument prototype would still apply. */ |
| 2470 | #ifdef __cplusplus |
| 2471 | extern "C" |
| 2472 | #endif |
| 2473 | char $2 (); |
| 2474 | /* The GNU C library defines this for functions which it implements |
| 2475 | to always fail with ENOSYS. Some functions are actually named |
| 2476 | something starting with __ and the normal name is an alias. */ |
| 2477 | #if defined __stub_$2 || defined __stub___$2 |
| 2478 | choke me |
| 2479 | #endif |
| 2480 | |
| 2481 | int |
| 2482 | main () |
| 2483 | { |
| 2484 | return $2 (); |
| 2485 | ; |
| 2486 | return 0; |
| 2487 | } |
| 2488 | _ACEOF |
| 2489 | if ac_fn_c_try_link "$LINENO"; then : |
| 2490 | eval "$3=yes" |
| 2491 | else |
| 2492 | eval "$3=no" |
| 2493 | fi |
| 2494 | rm -f core conftest.err conftest.$ac_objext \ |
| 2495 | conftest$ac_exeext conftest.$ac_ext |
| 2496 | fi |
| 2497 | eval ac_res=\$$3 |
| 2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2499 | $as_echo "$ac_res" >&6; } |
| 2500 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2501 | |
| 2502 | } # ac_fn_c_check_func |
| 2503 | |
| 2504 | # ac_fn_cxx_try_cpp LINENO |
| 2505 | # ------------------------ |
| 2506 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2507 | ac_fn_cxx_try_cpp () |
| 2508 | { |
| 2509 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2510 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2511 | case "(($ac_try" in |
| 2512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2513 | *) ac_try_echo=$ac_try;; |
| 2514 | esac |
| 2515 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2516 | $as_echo "$ac_try_echo"; } >&5 |
| 2517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2518 | ac_status=$? |
| 2519 | if test -s conftest.err; then |
| 2520 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2521 | cat conftest.er1 >&5 |
| 2522 | mv -f conftest.er1 conftest.err |
| 2523 | fi |
| 2524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2525 | test $ac_status = 0; } >/dev/null && { |
| 2526 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2527 | test ! -s conftest.err |
| 2528 | }; then : |
| 2529 | ac_retval=0 |
| 2530 | else |
| 2531 | $as_echo "$as_me: failed program was:" >&5 |
| 2532 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2533 | |
| 2534 | ac_retval=1 |
| 2535 | fi |
| 2536 | 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] | 2537 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2538 | |
| 2539 | } # ac_fn_cxx_try_cpp |
| 2540 | |
| 2541 | # ac_fn_cxx_try_link LINENO |
| 2542 | # ------------------------- |
| 2543 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2544 | ac_fn_cxx_try_link () |
| 2545 | { |
| 2546 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2547 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2548 | if { { ac_try="$ac_link" |
| 2549 | case "(($ac_try" in |
| 2550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2551 | *) ac_try_echo=$ac_try;; |
| 2552 | esac |
| 2553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2554 | $as_echo "$ac_try_echo"; } >&5 |
| 2555 | (eval "$ac_link") 2>conftest.err |
| 2556 | ac_status=$? |
| 2557 | if test -s conftest.err; then |
| 2558 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2559 | cat conftest.er1 >&5 |
| 2560 | mv -f conftest.er1 conftest.err |
| 2561 | fi |
| 2562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2563 | test $ac_status = 0; } && { |
| 2564 | test -z "$ac_cxx_werror_flag" || |
| 2565 | test ! -s conftest.err |
| 2566 | } && test -s conftest$ac_exeext && { |
| 2567 | test "$cross_compiling" = yes || |
| 2568 | $as_test_x conftest$ac_exeext |
| 2569 | }; then : |
| 2570 | ac_retval=0 |
| 2571 | else |
| 2572 | $as_echo "$as_me: failed program was:" >&5 |
| 2573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2574 | |
| 2575 | ac_retval=1 |
| 2576 | fi |
| 2577 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2578 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2579 | # interfere with the next link command; also delete a directory that is |
| 2580 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2581 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2582 | 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] | 2583 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2584 | |
| 2585 | } # ac_fn_cxx_try_link |
| 2586 | |
| 2587 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2588 | # ------------------------------------ |
| 2589 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2590 | ac_fn_c_check_decl () |
| 2591 | { |
| 2592 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2594 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2595 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2596 | $as_echo_n "(cached) " >&6 |
| 2597 | else |
| 2598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2599 | /* end confdefs.h. */ |
| 2600 | $4 |
| 2601 | int |
| 2602 | main () |
| 2603 | { |
| 2604 | #ifndef $2 |
| 2605 | (void) $2; |
| 2606 | #endif |
| 2607 | |
| 2608 | ; |
| 2609 | return 0; |
| 2610 | } |
| 2611 | _ACEOF |
| 2612 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2613 | eval "$3=yes" |
| 2614 | else |
| 2615 | eval "$3=no" |
| 2616 | fi |
| 2617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2618 | fi |
| 2619 | eval ac_res=\$$3 |
| 2620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2621 | $as_echo "$ac_res" >&6; } |
| 2622 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2623 | |
| 2624 | } # ac_fn_c_check_decl |
| 2625 | |
| 2626 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2627 | # ------------------------------------------- |
| 2628 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2629 | # variable VAR accordingly. |
| 2630 | ac_fn_c_check_type () |
| 2631 | { |
| 2632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2634 | $as_echo_n "checking for $2... " >&6; } |
| 2635 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2636 | $as_echo_n "(cached) " >&6 |
| 2637 | else |
| 2638 | eval "$3=no" |
| 2639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2640 | /* end confdefs.h. */ |
| 2641 | $4 |
| 2642 | int |
| 2643 | main () |
| 2644 | { |
| 2645 | if (sizeof ($2)) |
| 2646 | return 0; |
| 2647 | ; |
| 2648 | return 0; |
| 2649 | } |
| 2650 | _ACEOF |
| 2651 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2653 | /* end confdefs.h. */ |
| 2654 | $4 |
| 2655 | int |
| 2656 | main () |
| 2657 | { |
| 2658 | if (sizeof (($2))) |
| 2659 | return 0; |
| 2660 | ; |
| 2661 | return 0; |
| 2662 | } |
| 2663 | _ACEOF |
| 2664 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2665 | |
| 2666 | else |
| 2667 | eval "$3=yes" |
| 2668 | fi |
| 2669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2670 | fi |
| 2671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2672 | fi |
| 2673 | eval ac_res=\$$3 |
| 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2675 | $as_echo "$ac_res" >&6; } |
| 2676 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2677 | |
| 2678 | } # ac_fn_c_check_type |
| 2679 | |
| 2680 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2681 | # -------------------------------------------- |
| 2682 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2683 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2684 | # computed |
| 2685 | ac_fn_c_compute_int () |
| 2686 | { |
| 2687 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2688 | if test "$cross_compiling" = yes; then |
| 2689 | # Depending upon the size, compute the lo and hi bounds. |
| 2690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2691 | /* end confdefs.h. */ |
| 2692 | $4 |
| 2693 | int |
| 2694 | main () |
| 2695 | { |
| 2696 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2697 | test_array [0] = 0 |
| 2698 | |
| 2699 | ; |
| 2700 | return 0; |
| 2701 | } |
| 2702 | _ACEOF |
| 2703 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2704 | ac_lo=0 ac_mid=0 |
| 2705 | while :; do |
| 2706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2707 | /* end confdefs.h. */ |
| 2708 | $4 |
| 2709 | int |
| 2710 | main () |
| 2711 | { |
| 2712 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2713 | test_array [0] = 0 |
| 2714 | |
| 2715 | ; |
| 2716 | return 0; |
| 2717 | } |
| 2718 | _ACEOF |
| 2719 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2720 | ac_hi=$ac_mid; break |
| 2721 | else |
| 2722 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2723 | if test $ac_lo -le $ac_mid; then |
| 2724 | ac_lo= ac_hi= |
| 2725 | break |
| 2726 | fi |
| 2727 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2728 | fi |
| 2729 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2730 | done |
| 2731 | else |
| 2732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2733 | /* end confdefs.h. */ |
| 2734 | $4 |
| 2735 | int |
| 2736 | main () |
| 2737 | { |
| 2738 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2739 | test_array [0] = 0 |
| 2740 | |
| 2741 | ; |
| 2742 | return 0; |
| 2743 | } |
| 2744 | _ACEOF |
| 2745 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2746 | ac_hi=-1 ac_mid=-1 |
| 2747 | while :; do |
| 2748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2749 | /* end confdefs.h. */ |
| 2750 | $4 |
| 2751 | int |
| 2752 | main () |
| 2753 | { |
| 2754 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2755 | test_array [0] = 0 |
| 2756 | |
| 2757 | ; |
| 2758 | return 0; |
| 2759 | } |
| 2760 | _ACEOF |
| 2761 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2762 | ac_lo=$ac_mid; break |
| 2763 | else |
| 2764 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2765 | if test $ac_mid -le $ac_hi; then |
| 2766 | ac_lo= ac_hi= |
| 2767 | break |
| 2768 | fi |
| 2769 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2770 | fi |
| 2771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2772 | done |
| 2773 | else |
| 2774 | ac_lo= ac_hi= |
| 2775 | fi |
| 2776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2777 | fi |
| 2778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2779 | # Binary search between lo and hi bounds. |
| 2780 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2781 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2783 | /* end confdefs.h. */ |
| 2784 | $4 |
| 2785 | int |
| 2786 | main () |
| 2787 | { |
| 2788 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2789 | test_array [0] = 0 |
| 2790 | |
| 2791 | ; |
| 2792 | return 0; |
| 2793 | } |
| 2794 | _ACEOF |
| 2795 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2796 | ac_hi=$ac_mid |
| 2797 | else |
| 2798 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2799 | fi |
| 2800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2801 | done |
| 2802 | case $ac_lo in #(( |
| 2803 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2804 | '') ac_retval=1 ;; |
| 2805 | esac |
| 2806 | else |
| 2807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2808 | /* end confdefs.h. */ |
| 2809 | $4 |
| 2810 | static long int longval () { return $2; } |
| 2811 | static unsigned long int ulongval () { return $2; } |
| 2812 | #include <stdio.h> |
| 2813 | #include <stdlib.h> |
| 2814 | int |
| 2815 | main () |
| 2816 | { |
| 2817 | |
| 2818 | FILE *f = fopen ("conftest.val", "w"); |
| 2819 | if (! f) |
| 2820 | return 1; |
| 2821 | if (($2) < 0) |
| 2822 | { |
| 2823 | long int i = longval (); |
| 2824 | if (i != ($2)) |
| 2825 | return 1; |
| 2826 | fprintf (f, "%ld", i); |
| 2827 | } |
| 2828 | else |
| 2829 | { |
| 2830 | unsigned long int i = ulongval (); |
| 2831 | if (i != ($2)) |
| 2832 | return 1; |
| 2833 | fprintf (f, "%lu", i); |
| 2834 | } |
| 2835 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2836 | on some platforms. */ |
| 2837 | return ferror (f) || fclose (f) != 0; |
| 2838 | |
| 2839 | ; |
| 2840 | return 0; |
| 2841 | } |
| 2842 | _ACEOF |
| 2843 | if ac_fn_c_try_run "$LINENO"; then : |
| 2844 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2845 | else |
| 2846 | ac_retval=1 |
| 2847 | fi |
| 2848 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2849 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2850 | rm -f conftest.val |
| 2851 | |
| 2852 | fi |
| 2853 | 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] | 2854 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2855 | |
| 2856 | } # ac_fn_c_compute_int |
| 2857 | |
| 2858 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2859 | # --------------------------------------------------------- |
| 2860 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2861 | # the include files in INCLUDES and setting the cache variable VAR |
| 2862 | # accordingly. |
| 2863 | ac_fn_cxx_check_header_mongrel () |
| 2864 | { |
| 2865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2866 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2868 | $as_echo_n "checking for $2... " >&6; } |
| 2869 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2870 | $as_echo_n "(cached) " >&6 |
| 2871 | fi |
| 2872 | eval ac_res=\$$3 |
| 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2874 | $as_echo "$ac_res" >&6; } |
| 2875 | else |
| 2876 | # Is the header compilable? |
| 2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2878 | $as_echo_n "checking $2 usability... " >&6; } |
| 2879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2880 | /* end confdefs.h. */ |
| 2881 | $4 |
| 2882 | #include <$2> |
| 2883 | _ACEOF |
| 2884 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2885 | ac_header_compiler=yes |
| 2886 | else |
| 2887 | ac_header_compiler=no |
| 2888 | fi |
| 2889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2891 | $as_echo "$ac_header_compiler" >&6; } |
| 2892 | |
| 2893 | # Is the header present? |
| 2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2895 | $as_echo_n "checking $2 presence... " >&6; } |
| 2896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2897 | /* end confdefs.h. */ |
| 2898 | #include <$2> |
| 2899 | _ACEOF |
| 2900 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2901 | ac_header_preproc=yes |
| 2902 | else |
| 2903 | ac_header_preproc=no |
| 2904 | fi |
| 2905 | rm -f conftest.err conftest.$ac_ext |
| 2906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2907 | $as_echo "$ac_header_preproc" >&6; } |
| 2908 | |
| 2909 | # So? What about this header? |
| 2910 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 2911 | yes:no: ) |
| 2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2913 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2915 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2916 | ;; |
| 2917 | no:yes:* ) |
| 2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2919 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2921 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2923 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2925 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2927 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2928 | ( cat <<\_ASBOX |
| 2929 | ## ----------------------------------------- ## |
| 2930 | ## Report this to http://www.imagemagick.org ## |
| 2931 | ## ----------------------------------------- ## |
| 2932 | _ASBOX |
| 2933 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2934 | ;; |
| 2935 | esac |
| 2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2937 | $as_echo_n "checking for $2... " >&6; } |
| 2938 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2939 | $as_echo_n "(cached) " >&6 |
| 2940 | else |
| 2941 | eval "$3=\$ac_header_compiler" |
| 2942 | fi |
| 2943 | eval ac_res=\$$3 |
| 2944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2945 | $as_echo "$ac_res" >&6; } |
| 2946 | fi |
| 2947 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2948 | |
| 2949 | } # ac_fn_cxx_check_header_mongrel |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2950 | cat >config.log <<_ACEOF |
| 2951 | This file contains any messages produced by compilers while |
| 2952 | running configure, to aid debugging if configure makes a mistake. |
| 2953 | |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 2954 | It was created by ImageMagick $as_me 6.5.9, which was |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2955 | generated by GNU Autoconf 2.65. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2956 | |
| 2957 | $ $0 $@ |
| 2958 | |
| 2959 | _ACEOF |
| 2960 | exec 5>>config.log |
| 2961 | { |
| 2962 | cat <<_ASUNAME |
| 2963 | ## --------- ## |
| 2964 | ## Platform. ## |
| 2965 | ## --------- ## |
| 2966 | |
| 2967 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2968 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2969 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2970 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2971 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2972 | |
| 2973 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2974 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2975 | |
| 2976 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2977 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2978 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2979 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2980 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2981 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2982 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2983 | |
| 2984 | _ASUNAME |
| 2985 | |
| 2986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2987 | for as_dir in $PATH |
| 2988 | do |
| 2989 | IFS=$as_save_IFS |
| 2990 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2991 | $as_echo "PATH: $as_dir" |
| 2992 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2993 | IFS=$as_save_IFS |
| 2994 | |
| 2995 | } >&5 |
| 2996 | |
| 2997 | cat >&5 <<_ACEOF |
| 2998 | |
| 2999 | |
| 3000 | ## ----------- ## |
| 3001 | ## Core tests. ## |
| 3002 | ## ----------- ## |
| 3003 | |
| 3004 | _ACEOF |
| 3005 | |
| 3006 | |
| 3007 | # Keep a trace of the command line. |
| 3008 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3009 | # Strip out --silent because we don't want to record it for future runs. |
| 3010 | # Also quote any args containing shell meta-characters. |
| 3011 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3012 | ac_configure_args= |
| 3013 | ac_configure_args0= |
| 3014 | ac_configure_args1= |
| 3015 | ac_must_keep_next=false |
| 3016 | for ac_pass in 1 2 |
| 3017 | do |
| 3018 | for ac_arg |
| 3019 | do |
| 3020 | case $ac_arg in |
| 3021 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3023 | | -silent | --silent | --silen | --sile | --sil) |
| 3024 | continue ;; |
| 3025 | *\'*) |
| 3026 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3027 | esac |
| 3028 | case $ac_pass in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3029 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3030 | 2) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3031 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3032 | if test $ac_must_keep_next = true; then |
| 3033 | ac_must_keep_next=false # Got value, back to normal. |
| 3034 | else |
| 3035 | case $ac_arg in |
| 3036 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3037 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3038 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3039 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3040 | case "$ac_configure_args0 " in |
| 3041 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3042 | esac |
| 3043 | ;; |
| 3044 | -* ) ac_must_keep_next=true ;; |
| 3045 | esac |
| 3046 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3047 | as_fn_append ac_configure_args " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3048 | ;; |
| 3049 | esac |
| 3050 | done |
| 3051 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3052 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3053 | { ac_configure_args1=; unset ac_configure_args1;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3054 | |
| 3055 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3056 | # config.log. We remove comments because anyway the quotes in there |
| 3057 | # would cause problems or look ugly. |
| 3058 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3059 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3060 | trap 'exit_status=$? |
| 3061 | # Save into config.log some information that might help in debugging. |
| 3062 | { |
| 3063 | echo |
| 3064 | |
| 3065 | cat <<\_ASBOX |
| 3066 | ## ---------------- ## |
| 3067 | ## Cache variables. ## |
| 3068 | ## ---------------- ## |
| 3069 | _ASBOX |
| 3070 | echo |
| 3071 | # The following way of writing the cache mishandles newlines in values, |
| 3072 | ( |
| 3073 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3074 | eval ac_val=\$$ac_var |
| 3075 | case $ac_val in #( |
| 3076 | *${as_nl}*) |
| 3077 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3078 | *_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] | 3079 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3080 | esac |
| 3081 | case $ac_var in #( |
| 3082 | _ | IFS | as_nl) ;; #( |
| 3083 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3084 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3085 | esac ;; |
| 3086 | esac |
| 3087 | done |
| 3088 | (set) 2>&1 | |
| 3089 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3090 | *${as_nl}ac_space=\ *) |
| 3091 | sed -n \ |
| 3092 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3093 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3094 | ;; #( |
| 3095 | *) |
| 3096 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3097 | ;; |
| 3098 | esac | |
| 3099 | sort |
| 3100 | ) |
| 3101 | echo |
| 3102 | |
| 3103 | cat <<\_ASBOX |
| 3104 | ## ----------------- ## |
| 3105 | ## Output variables. ## |
| 3106 | ## ----------------- ## |
| 3107 | _ASBOX |
| 3108 | echo |
| 3109 | for ac_var in $ac_subst_vars |
| 3110 | do |
| 3111 | eval ac_val=\$$ac_var |
| 3112 | case $ac_val in |
| 3113 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3114 | esac |
| 3115 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3116 | done | sort |
| 3117 | echo |
| 3118 | |
| 3119 | if test -n "$ac_subst_files"; then |
| 3120 | cat <<\_ASBOX |
| 3121 | ## ------------------- ## |
| 3122 | ## File substitutions. ## |
| 3123 | ## ------------------- ## |
| 3124 | _ASBOX |
| 3125 | echo |
| 3126 | for ac_var in $ac_subst_files |
| 3127 | do |
| 3128 | eval ac_val=\$$ac_var |
| 3129 | case $ac_val in |
| 3130 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3131 | esac |
| 3132 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3133 | done | sort |
| 3134 | echo |
| 3135 | fi |
| 3136 | |
| 3137 | if test -s confdefs.h; then |
| 3138 | cat <<\_ASBOX |
| 3139 | ## ----------- ## |
| 3140 | ## confdefs.h. ## |
| 3141 | ## ----------- ## |
| 3142 | _ASBOX |
| 3143 | echo |
| 3144 | cat confdefs.h |
| 3145 | echo |
| 3146 | fi |
| 3147 | test "$ac_signal" != 0 && |
| 3148 | $as_echo "$as_me: caught signal $ac_signal" |
| 3149 | $as_echo "$as_me: exit $exit_status" |
| 3150 | } >&5 |
| 3151 | rm -f core *.core core.conftest.* && |
| 3152 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3153 | exit $exit_status |
| 3154 | ' 0 |
| 3155 | for ac_signal in 1 2 13 15; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3156 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3157 | done |
| 3158 | ac_signal=0 |
| 3159 | |
| 3160 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3161 | rm -f -r conftest* confdefs.h |
| 3162 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3163 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3164 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3165 | # Predefined preprocessor variables. |
| 3166 | |
| 3167 | cat >>confdefs.h <<_ACEOF |
| 3168 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3169 | _ACEOF |
| 3170 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3171 | cat >>confdefs.h <<_ACEOF |
| 3172 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3173 | _ACEOF |
| 3174 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3175 | cat >>confdefs.h <<_ACEOF |
| 3176 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3177 | _ACEOF |
| 3178 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3179 | cat >>confdefs.h <<_ACEOF |
| 3180 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3181 | _ACEOF |
| 3182 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3183 | cat >>confdefs.h <<_ACEOF |
| 3184 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3185 | _ACEOF |
| 3186 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3187 | cat >>confdefs.h <<_ACEOF |
| 3188 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3189 | _ACEOF |
| 3190 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3191 | |
| 3192 | # Let the site file select an alternate cache file if it wants to. |
| 3193 | # Prefer an explicitly selected file to automatically selected ones. |
| 3194 | ac_site_file1=NONE |
| 3195 | ac_site_file2=NONE |
| 3196 | if test -n "$CONFIG_SITE"; then |
| 3197 | ac_site_file1=$CONFIG_SITE |
| 3198 | elif test "x$prefix" != xNONE; then |
| 3199 | ac_site_file1=$prefix/share/config.site |
| 3200 | ac_site_file2=$prefix/etc/config.site |
| 3201 | else |
| 3202 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3203 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3204 | fi |
| 3205 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3206 | do |
| 3207 | test "x$ac_site_file" = xNONE && continue |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3208 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3209 | { $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] | 3210 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3211 | sed 's/^/| /' "$ac_site_file" >&5 |
| 3212 | . "$ac_site_file" |
| 3213 | fi |
| 3214 | done |
| 3215 | |
| 3216 | if test -r "$cache_file"; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3217 | # Some versions of bash will fail to source /dev/null (special files |
| 3218 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3219 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3221 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3222 | case $cache_file in |
| 3223 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3224 | *) . "./$cache_file";; |
| 3225 | esac |
| 3226 | fi |
| 3227 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3229 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3230 | >$cache_file |
| 3231 | fi |
| 3232 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3233 | as_fn_append ac_header_list " stdlib.h" |
| 3234 | as_fn_append ac_header_list " unistd.h" |
| 3235 | as_fn_append ac_header_list " sys/param.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3236 | # Check that the precious variables saved in the cache have kept the same |
| 3237 | # value. |
| 3238 | ac_cache_corrupted=false |
| 3239 | for ac_var in $ac_precious_vars; do |
| 3240 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3241 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3242 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3243 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3244 | case $ac_old_set,$ac_new_set in |
| 3245 | set,) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3246 | { $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] | 3247 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3248 | ac_cache_corrupted=: ;; |
| 3249 | ,set) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3250 | { $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] | 3251 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3252 | ac_cache_corrupted=: ;; |
| 3253 | ,);; |
| 3254 | *) |
| 3255 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3256 | # differences in whitespace do not lead to failure. |
| 3257 | ac_old_val_w=`echo x $ac_old_val` |
| 3258 | ac_new_val_w=`echo x $ac_new_val` |
| 3259 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3260 | { $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] | 3261 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3262 | ac_cache_corrupted=: |
| 3263 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3264 | { $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] | 3265 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3266 | eval $ac_var=\$ac_old_val |
| 3267 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3269 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3271 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3272 | fi;; |
| 3273 | esac |
| 3274 | # Pass precious variables to config.status. |
| 3275 | if test "$ac_new_set" = set; then |
| 3276 | case $ac_new_val in |
| 3277 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3278 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3279 | esac |
| 3280 | case " $ac_configure_args " in |
| 3281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3282 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3283 | esac |
| 3284 | fi |
| 3285 | done |
| 3286 | if $ac_cache_corrupted; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3289 | { $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] | 3290 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3291 | 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] | 3292 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3293 | ## -------------------- ## |
| 3294 | ## Main body of script. ## |
| 3295 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3296 | |
| 3297 | ac_ext=c |
| 3298 | ac_cpp='$CPP $CPPFLAGS' |
| 3299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3302 | |
| 3303 | |
| 3304 | |
| 3305 | ac_aux_dir= |
| 3306 | for ac_dir in config "$srcdir"/config; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3307 | for ac_t in install-sh install.sh shtool; do |
| 3308 | if test -f "$ac_dir/$ac_t"; then |
| 3309 | ac_aux_dir=$ac_dir |
| 3310 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3311 | break 2 |
| 3312 | fi |
| 3313 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3314 | done |
| 3315 | if test -z "$ac_aux_dir"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3316 | 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] | 3317 | fi |
| 3318 | |
| 3319 | # These three variables are undocumented and unsupported, |
| 3320 | # and are intended to be withdrawn in a future Autoconf release. |
| 3321 | # They can cause serious problems if a builder's source tree is in a directory |
| 3322 | # whose full name contains unusual characters. |
| 3323 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3324 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3325 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3326 | |
| 3327 | |
| 3328 | |
| 3329 | |
| 3330 | ac_config_headers="$ac_config_headers config/config.h" |
| 3331 | |
| 3332 | ac_config_commands="$ac_config_commands magick/magick-config.h" |
| 3333 | |
| 3334 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox 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" |
| 3335 | |
| 3336 | |
| 3337 | # |
| 3338 | # Save initial user-tunable values |
| 3339 | # |
| 3340 | USER_LIBS=$LIBS |
| 3341 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 3342 | eval isset=\${$var+set} |
| 3343 | if test "$isset" = 'set'; then |
| 3344 | eval val=$`echo $var` |
| 3345 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 3346 | fi |
| 3347 | done |
| 3348 | |
| 3349 | |
| 3350 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 3351 | |
| 3352 | |
| 3353 | # Source file containing package/library versioning information. |
| 3354 | . ${srcdir}/version.sh |
| 3355 | |
| 3356 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}" |
| 3357 | # Make sure we can run config.sub. |
| 3358 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3359 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3360 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3362 | $as_echo_n "checking build system type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3363 | if test "${ac_cv_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3364 | $as_echo_n "(cached) " >&6 |
| 3365 | else |
| 3366 | ac_build_alias=$build_alias |
| 3367 | test "x$ac_build_alias" = x && |
| 3368 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3369 | test "x$ac_build_alias" = x && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3370 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3371 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3372 | 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] | 3373 | |
| 3374 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3376 | $as_echo "$ac_cv_build" >&6; } |
| 3377 | case $ac_cv_build in |
| 3378 | *-*-*) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3379 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3380 | esac |
| 3381 | build=$ac_cv_build |
| 3382 | ac_save_IFS=$IFS; IFS='-' |
| 3383 | set x $ac_cv_build |
| 3384 | shift |
| 3385 | build_cpu=$1 |
| 3386 | build_vendor=$2 |
| 3387 | shift; shift |
| 3388 | # Remember, the first character of IFS is used to create $*, |
| 3389 | # except with old shells: |
| 3390 | build_os=$* |
| 3391 | IFS=$ac_save_IFS |
| 3392 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3393 | |
| 3394 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3396 | $as_echo_n "checking host system type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3397 | if test "${ac_cv_host+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3398 | $as_echo_n "(cached) " >&6 |
| 3399 | else |
| 3400 | if test "x$host_alias" = x; then |
| 3401 | ac_cv_host=$ac_cv_build |
| 3402 | else |
| 3403 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3404 | 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] | 3405 | fi |
| 3406 | |
| 3407 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3409 | $as_echo "$ac_cv_host" >&6; } |
| 3410 | case $ac_cv_host in |
| 3411 | *-*-*) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3412 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3413 | esac |
| 3414 | host=$ac_cv_host |
| 3415 | ac_save_IFS=$IFS; IFS='-' |
| 3416 | set x $ac_cv_host |
| 3417 | shift |
| 3418 | host_cpu=$1 |
| 3419 | host_vendor=$2 |
| 3420 | shift; shift |
| 3421 | # Remember, the first character of IFS is used to create $*, |
| 3422 | # except with old shells: |
| 3423 | host_os=$* |
| 3424 | IFS=$ac_save_IFS |
| 3425 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3426 | |
| 3427 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3429 | $as_echo_n "checking target system type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3430 | if test "${ac_cv_target+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3431 | $as_echo_n "(cached) " >&6 |
| 3432 | else |
| 3433 | if test "x$target_alias" = x; then |
| 3434 | ac_cv_target=$ac_cv_host |
| 3435 | else |
| 3436 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3437 | 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] | 3438 | fi |
| 3439 | |
| 3440 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3442 | $as_echo "$ac_cv_target" >&6; } |
| 3443 | case $ac_cv_target in |
| 3444 | *-*-*) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3445 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3446 | esac |
| 3447 | target=$ac_cv_target |
| 3448 | ac_save_IFS=$IFS; IFS='-' |
| 3449 | set x $ac_cv_target |
| 3450 | shift |
| 3451 | target_cpu=$1 |
| 3452 | target_vendor=$2 |
| 3453 | shift; shift |
| 3454 | # Remember, the first character of IFS is used to create $*, |
| 3455 | # except with old shells: |
| 3456 | target_os=$* |
| 3457 | IFS=$ac_save_IFS |
| 3458 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3459 | |
| 3460 | |
| 3461 | # The aliases save the names the user supplied, while $host etc. |
| 3462 | # will get canonicalized. |
| 3463 | test -n "$target_alias" && |
| 3464 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3465 | NONENONEs,x,x, && |
| 3466 | program_prefix=${target_alias}- |
| 3467 | |
| 3468 | # Substitute library versioning |
| 3469 | |
| 3470 | |
| 3471 | # Ensure that make can run correctly |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3473 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3474 | # Just in case |
| 3475 | sleep 1 |
| 3476 | echo timestamp > conftest.file |
| 3477 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3478 | # name. Accept space and tab only in the latter. |
| 3479 | am_lf=' |
| 3480 | ' |
| 3481 | case `pwd` in |
| 3482 | *[\\\"\#\$\&\'\`$am_lf]*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3483 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3484 | esac |
| 3485 | case $srcdir in |
| 3486 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3487 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3488 | esac |
| 3489 | |
| 3490 | # Do `set' in a subshell so we don't clobber the current shell's |
| 3491 | # arguments. Must try -L first in case configure is actually a |
| 3492 | # symlink; some systems play weird games with the mod time of symlinks |
| 3493 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3494 | # directory). |
| 3495 | if ( |
| 3496 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3497 | if test "$*" = "X"; then |
| 3498 | # -L didn't work. |
| 3499 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3500 | fi |
| 3501 | rm -f conftest.file |
| 3502 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3503 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3504 | |
| 3505 | # If neither matched, then we have a broken ls. This can happen |
| 3506 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3507 | # broken ls alias from the environment. This has actually |
| 3508 | # happened. Such a system could not be considered "sane". |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3509 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 3510 | alias in your environment" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3511 | fi |
| 3512 | |
| 3513 | test "$2" = conftest.file |
| 3514 | ) |
| 3515 | then |
| 3516 | # Ok. |
| 3517 | : |
| 3518 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3519 | as_fn_error "newly created file is older than distributed files! |
| 3520 | Check your system clock" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3521 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3523 | $as_echo "yes" >&6; } |
| 3524 | |
| 3525 | am__api_version='1.11' |
| 3526 | |
| 3527 | # Find a good install program. We prefer a C program (faster), |
| 3528 | # so one script is as good as another. But avoid the broken or |
| 3529 | # incompatible versions: |
| 3530 | # SysV /etc/install, /usr/sbin/install |
| 3531 | # SunOS /usr/etc/install |
| 3532 | # IRIX /sbin/install |
| 3533 | # AIX /bin/install |
| 3534 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3535 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3536 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3537 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3538 | # OS/2's system install, which has a completely different semantic |
| 3539 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3540 | # Reject install programs that cannot install multiple files. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3542 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3543 | if test -z "$INSTALL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3544 | if test "${ac_cv_path_install+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3545 | $as_echo_n "(cached) " >&6 |
| 3546 | else |
| 3547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3548 | for as_dir in $PATH |
| 3549 | do |
| 3550 | IFS=$as_save_IFS |
| 3551 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3552 | # Account for people who put trailing slashes in PATH elements. |
| 3553 | case $as_dir/ in #(( |
| 3554 | ./ | .// | /[cC]/* | \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3555 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3556 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3557 | /usr/ucb/* ) ;; |
| 3558 | *) |
| 3559 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3560 | # Don't use installbsd from OSF since it installs stuff as root |
| 3561 | # by default. |
| 3562 | for ac_prog in ginstall scoinst install; do |
| 3563 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3564 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3565 | if test $ac_prog = install && |
| 3566 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3567 | # AIX install. It has an incompatible calling convention. |
| 3568 | : |
| 3569 | elif test $ac_prog = install && |
| 3570 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3571 | # program-specific install script used by HP pwplus--don't use. |
| 3572 | : |
| 3573 | else |
| 3574 | rm -rf conftest.one conftest.two conftest.dir |
| 3575 | echo one > conftest.one |
| 3576 | echo two > conftest.two |
| 3577 | mkdir conftest.dir |
| 3578 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3579 | test -s conftest.one && test -s conftest.two && |
| 3580 | test -s conftest.dir/conftest.one && |
| 3581 | test -s conftest.dir/conftest.two |
| 3582 | then |
| 3583 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3584 | break 3 |
| 3585 | fi |
| 3586 | fi |
| 3587 | fi |
| 3588 | done |
| 3589 | done |
| 3590 | ;; |
| 3591 | esac |
| 3592 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3593 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3594 | IFS=$as_save_IFS |
| 3595 | |
| 3596 | rm -rf conftest.one conftest.two conftest.dir |
| 3597 | |
| 3598 | fi |
| 3599 | if test "${ac_cv_path_install+set}" = set; then |
| 3600 | INSTALL=$ac_cv_path_install |
| 3601 | else |
| 3602 | # As a last resort, use the slow shell script. Don't cache a |
| 3603 | # value for INSTALL within a source directory, because that will |
| 3604 | # break other packages using the cache if that directory is |
| 3605 | # removed, or if the value is a relative name. |
| 3606 | INSTALL=$ac_install_sh |
| 3607 | fi |
| 3608 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3610 | $as_echo "$INSTALL" >&6; } |
| 3611 | |
| 3612 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3613 | # It thinks the first close brace ends the variable substitution. |
| 3614 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3615 | |
| 3616 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3617 | |
| 3618 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3619 | |
| 3620 | test "$program_prefix" != NONE && |
| 3621 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3622 | # Use a double $ so make ignores it. |
| 3623 | test "$program_suffix" != NONE && |
| 3624 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3625 | # Double any \ or $. |
| 3626 | # By default was `s,x,x', remove it if useless. |
| 3627 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3628 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3629 | |
| 3630 | # expand $ac_aux_dir to an absolute path |
| 3631 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3632 | |
| 3633 | if test x"${MISSING+set}" != xset; then |
| 3634 | case $am_aux_dir in |
| 3635 | *\ * | *\ *) |
| 3636 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3637 | *) |
| 3638 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3639 | esac |
| 3640 | fi |
| 3641 | # Use eval to expand $SHELL |
| 3642 | if eval "$MISSING --run true"; then |
| 3643 | am_missing_run="$MISSING --run " |
| 3644 | else |
| 3645 | am_missing_run= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3647 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3648 | fi |
| 3649 | |
| 3650 | if test x"${install_sh}" != xset; then |
| 3651 | case $am_aux_dir in |
| 3652 | *\ * | *\ *) |
| 3653 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3654 | *) |
| 3655 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3656 | esac |
| 3657 | fi |
| 3658 | |
| 3659 | # Installed binaries are usually stripped using `strip' when the user |
| 3660 | # run `make install-strip'. However `strip' might not be the right |
| 3661 | # tool to use in cross-compilation environments, therefore Automake |
| 3662 | # will honor the `STRIP' environment variable to overrule this program. |
| 3663 | if test "$cross_compiling" != no; then |
| 3664 | if test -n "$ac_tool_prefix"; then |
| 3665 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3666 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3668 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3669 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3670 | $as_echo_n "(cached) " >&6 |
| 3671 | else |
| 3672 | if test -n "$STRIP"; then |
| 3673 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3674 | else |
| 3675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3676 | for as_dir in $PATH |
| 3677 | do |
| 3678 | IFS=$as_save_IFS |
| 3679 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3682 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3683 | $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] | 3684 | break 2 |
| 3685 | fi |
| 3686 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3687 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3688 | IFS=$as_save_IFS |
| 3689 | |
| 3690 | fi |
| 3691 | fi |
| 3692 | STRIP=$ac_cv_prog_STRIP |
| 3693 | if test -n "$STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3695 | $as_echo "$STRIP" >&6; } |
| 3696 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3698 | $as_echo "no" >&6; } |
| 3699 | fi |
| 3700 | |
| 3701 | |
| 3702 | fi |
| 3703 | if test -z "$ac_cv_prog_STRIP"; then |
| 3704 | ac_ct_STRIP=$STRIP |
| 3705 | # Extract the first word of "strip", so it can be a program name with args. |
| 3706 | set dummy strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3708 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3709 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3710 | $as_echo_n "(cached) " >&6 |
| 3711 | else |
| 3712 | if test -n "$ac_ct_STRIP"; then |
| 3713 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3714 | else |
| 3715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3716 | for as_dir in $PATH |
| 3717 | do |
| 3718 | IFS=$as_save_IFS |
| 3719 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3720 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3722 | ac_cv_prog_ac_ct_STRIP="strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3723 | $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] | 3724 | break 2 |
| 3725 | fi |
| 3726 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3727 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3728 | IFS=$as_save_IFS |
| 3729 | |
| 3730 | fi |
| 3731 | fi |
| 3732 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3733 | if test -n "$ac_ct_STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3735 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3736 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3738 | $as_echo "no" >&6; } |
| 3739 | fi |
| 3740 | |
| 3741 | if test "x$ac_ct_STRIP" = x; then |
| 3742 | STRIP=":" |
| 3743 | else |
| 3744 | case $cross_compiling:$ac_tool_warned in |
| 3745 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3746 | { $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] | 3747 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3748 | ac_tool_warned=yes ;; |
| 3749 | esac |
| 3750 | STRIP=$ac_ct_STRIP |
| 3751 | fi |
| 3752 | else |
| 3753 | STRIP="$ac_cv_prog_STRIP" |
| 3754 | fi |
| 3755 | |
| 3756 | fi |
| 3757 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3758 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3760 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3761 | if test -z "$MKDIR_P"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3762 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3763 | $as_echo_n "(cached) " >&6 |
| 3764 | else |
| 3765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3766 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3767 | do |
| 3768 | IFS=$as_save_IFS |
| 3769 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3770 | for ac_prog in mkdir gmkdir; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3772 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3773 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3774 | 'mkdir (GNU coreutils) '* | \ |
| 3775 | 'mkdir (coreutils) '* | \ |
| 3776 | 'mkdir (fileutils) '4.1*) |
| 3777 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3778 | break 3;; |
| 3779 | esac |
| 3780 | done |
| 3781 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3782 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3783 | IFS=$as_save_IFS |
| 3784 | |
| 3785 | fi |
| 3786 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3787 | test -d ./--version && rmdir ./--version |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3788 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3789 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3790 | else |
| 3791 | # As a last resort, use the slow shell script. Don't cache a |
| 3792 | # value for MKDIR_P within a source directory, because that will |
| 3793 | # break other packages using the cache if that directory is |
| 3794 | # removed, or if the value is a relative name. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3795 | MKDIR_P="$ac_install_sh -d" |
| 3796 | fi |
| 3797 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3799 | $as_echo "$MKDIR_P" >&6; } |
| 3800 | |
| 3801 | mkdir_p="$MKDIR_P" |
| 3802 | case $mkdir_p in |
| 3803 | [\\/$]* | ?:[\\/]*) ;; |
| 3804 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3805 | esac |
| 3806 | |
| 3807 | for ac_prog in gawk mawk nawk awk |
| 3808 | do |
| 3809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3810 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3812 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3813 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3814 | $as_echo_n "(cached) " >&6 |
| 3815 | else |
| 3816 | if test -n "$AWK"; then |
| 3817 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3818 | else |
| 3819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3820 | for as_dir in $PATH |
| 3821 | do |
| 3822 | IFS=$as_save_IFS |
| 3823 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3824 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3826 | ac_cv_prog_AWK="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3827 | $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] | 3828 | break 2 |
| 3829 | fi |
| 3830 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3831 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3832 | IFS=$as_save_IFS |
| 3833 | |
| 3834 | fi |
| 3835 | fi |
| 3836 | AWK=$ac_cv_prog_AWK |
| 3837 | if test -n "$AWK"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3839 | $as_echo "$AWK" >&6; } |
| 3840 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3842 | $as_echo "no" >&6; } |
| 3843 | fi |
| 3844 | |
| 3845 | |
| 3846 | test -n "$AWK" && break |
| 3847 | done |
| 3848 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3850 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3851 | set x ${MAKE-make} |
| 3852 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3853 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3854 | $as_echo_n "(cached) " >&6 |
| 3855 | else |
| 3856 | cat >conftest.make <<\_ACEOF |
| 3857 | SHELL = /bin/sh |
| 3858 | all: |
| 3859 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3860 | _ACEOF |
| 3861 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3862 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3863 | *@@@%%%=?*=@@@%%%*) |
| 3864 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3865 | *) |
| 3866 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3867 | esac |
| 3868 | rm -f conftest.make |
| 3869 | fi |
| 3870 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3872 | $as_echo "yes" >&6; } |
| 3873 | SET_MAKE= |
| 3874 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3876 | $as_echo "no" >&6; } |
| 3877 | SET_MAKE="MAKE=${MAKE-make}" |
| 3878 | fi |
| 3879 | |
| 3880 | rm -rf .tst 2>/dev/null |
| 3881 | mkdir .tst 2>/dev/null |
| 3882 | if test -d .tst; then |
| 3883 | am__leading_dot=. |
| 3884 | else |
| 3885 | am__leading_dot=_ |
| 3886 | fi |
| 3887 | rmdir .tst 2>/dev/null |
| 3888 | |
| 3889 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3890 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3891 | # is not polluted with repeated "-I." |
| 3892 | am__isrc=' -I$(srcdir)' |
| 3893 | # test to see if srcdir already configured |
| 3894 | if test -f $srcdir/config.status; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3895 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3896 | fi |
| 3897 | fi |
| 3898 | |
| 3899 | # test whether we have cygpath |
| 3900 | if test -z "$CYGPATH_W"; then |
| 3901 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3902 | CYGPATH_W='cygpath -w' |
| 3903 | else |
| 3904 | CYGPATH_W=echo |
| 3905 | fi |
| 3906 | fi |
| 3907 | |
| 3908 | |
| 3909 | # Define the identity of the package. |
| 3910 | PACKAGE=$PACKAGE_NAME |
| 3911 | VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}" |
| 3912 | |
| 3913 | |
| 3914 | # Some tools Automake needs. |
| 3915 | |
| 3916 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3917 | |
| 3918 | |
| 3919 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3920 | |
| 3921 | |
| 3922 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3923 | |
| 3924 | |
| 3925 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3926 | |
| 3927 | |
| 3928 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3929 | |
| 3930 | # We need awk for the "check" target. The system "awk" is bad on |
| 3931 | # some platforms. |
| 3932 | # Always define AMTAR for backward compatibility. |
| 3933 | |
| 3934 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3935 | |
| 3936 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | # Enable support for silent build rules |
| 3944 | # Check whether --enable-silent-rules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3945 | if test "${enable_silent_rules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3946 | enableval=$enable_silent_rules; |
| 3947 | fi |
| 3948 | |
| 3949 | case $enable_silent_rules in |
| 3950 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3951 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3952 | *) AM_DEFAULT_VERBOSITY=0;; |
| 3953 | esac |
| 3954 | AM_BACKSLASH='\' |
| 3955 | |
| 3956 | |
| 3957 | MAGICK_LIB_VERSION="0x" |
| 3958 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 3959 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3960 | fi |
| 3961 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 3962 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 3963 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3964 | fi |
| 3965 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 3966 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 3967 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 3968 | fi |
| 3969 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 3970 | |
| 3971 | |
| 3972 | # Definition used to define MagickLibVersionText in version.h |
| 3973 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 3974 | |
| 3975 | |
| 3976 | # Definition used to define MagickLibVersionNumber in version.h |
| 3977 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 3978 | |
| 3979 | |
| 3980 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 3981 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 3982 | |
| 3983 | |
| 3984 | PERLMAINCC=$CC |
| 3985 | |
| 3986 | MAGICK_CFLAGS='' |
| 3987 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 3988 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 3989 | MAGICK_LDFLAGS='' |
| 3990 | MAGICK_LIBS='' |
| 3991 | |
| 3992 | # |
| 3993 | # Evaluate shell variable equivalents to Makefile directory variables |
| 3994 | # |
| 3995 | if test "x$prefix" = xNONE; then |
| 3996 | prefix=$ac_default_prefix |
| 3997 | fi |
| 3998 | # Let make expand exec_prefix. |
| 3999 | if test "x$exec_prefix" = xNONE; then |
| 4000 | exec_prefix='${prefix}' |
| 4001 | fi |
| 4002 | |
| 4003 | # |
| 4004 | eval "eval PREFIX_DIR=${prefix}" |
| 4005 | |
| 4006 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 4007 | |
| 4008 | eval "eval BIN_DIR=$bindir" |
| 4009 | |
| 4010 | eval "eval SBIN_DIR=$sbindir" |
| 4011 | |
| 4012 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 4013 | |
| 4014 | eval "eval DATA_DIR=$datadir" |
| 4015 | |
| 4016 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 4017 | |
| 4018 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 4019 | |
| 4020 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 4021 | |
| 4022 | eval "eval LIB_DIR=$libdir" |
| 4023 | |
| 4024 | eval "eval INCLUDE_DIR=$includedir" |
| 4025 | |
| 4026 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 4027 | |
| 4028 | eval "eval INFO_DIR=$infodir" |
| 4029 | |
| 4030 | eval "eval MAN_DIR=$mandir" |
| 4031 | |
| 4032 | |
| 4033 | # Get full paths to source and build directories |
| 4034 | srcdirfull="`cd $srcdir && pwd`" |
| 4035 | builddir="`pwd`" |
| 4036 | |
| 4037 | # |
| 4038 | # Compute variables useful for running uninstalled software. |
| 4039 | # |
| 4040 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 4041 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 4042 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 4043 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 4044 | DIRSEP=':' |
| 4045 | case "${build_os}" in |
| 4046 | mingw* ) |
| 4047 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 4048 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 4049 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 4050 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 4051 | DIRSEP=';' |
| 4052 | ;; |
| 4053 | esac |
| 4054 | case "${host_os}" in |
| 4055 | mingw* ) |
| 4056 | DIRSEP=';' |
| 4057 | ;; |
| 4058 | esac |
| 4059 | |
| 4060 | |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
| 4065 | # Check for programs |
| 4066 | ac_ext=c |
| 4067 | ac_cpp='$CPP $CPPFLAGS' |
| 4068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4071 | if test -n "$ac_tool_prefix"; then |
| 4072 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4073 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4075 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4076 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4077 | $as_echo_n "(cached) " >&6 |
| 4078 | else |
| 4079 | if test -n "$CC"; then |
| 4080 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4081 | else |
| 4082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4083 | for as_dir in $PATH |
| 4084 | do |
| 4085 | IFS=$as_save_IFS |
| 4086 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4087 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4089 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4090 | $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] | 4091 | break 2 |
| 4092 | fi |
| 4093 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4094 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4095 | IFS=$as_save_IFS |
| 4096 | |
| 4097 | fi |
| 4098 | fi |
| 4099 | CC=$ac_cv_prog_CC |
| 4100 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4102 | $as_echo "$CC" >&6; } |
| 4103 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4105 | $as_echo "no" >&6; } |
| 4106 | fi |
| 4107 | |
| 4108 | |
| 4109 | fi |
| 4110 | if test -z "$ac_cv_prog_CC"; then |
| 4111 | ac_ct_CC=$CC |
| 4112 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4113 | set dummy gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4115 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4116 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4117 | $as_echo_n "(cached) " >&6 |
| 4118 | else |
| 4119 | if test -n "$ac_ct_CC"; then |
| 4120 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4121 | else |
| 4122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4123 | for as_dir in $PATH |
| 4124 | do |
| 4125 | IFS=$as_save_IFS |
| 4126 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4129 | ac_cv_prog_ac_ct_CC="gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4130 | $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] | 4131 | break 2 |
| 4132 | fi |
| 4133 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4134 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4135 | IFS=$as_save_IFS |
| 4136 | |
| 4137 | fi |
| 4138 | fi |
| 4139 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4140 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4142 | $as_echo "$ac_ct_CC" >&6; } |
| 4143 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4145 | $as_echo "no" >&6; } |
| 4146 | fi |
| 4147 | |
| 4148 | if test "x$ac_ct_CC" = x; then |
| 4149 | CC="" |
| 4150 | else |
| 4151 | case $cross_compiling:$ac_tool_warned in |
| 4152 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4153 | { $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] | 4154 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4155 | ac_tool_warned=yes ;; |
| 4156 | esac |
| 4157 | CC=$ac_ct_CC |
| 4158 | fi |
| 4159 | else |
| 4160 | CC="$ac_cv_prog_CC" |
| 4161 | fi |
| 4162 | |
| 4163 | if test -z "$CC"; then |
| 4164 | if test -n "$ac_tool_prefix"; then |
| 4165 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4166 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4168 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4169 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4170 | $as_echo_n "(cached) " >&6 |
| 4171 | else |
| 4172 | if test -n "$CC"; then |
| 4173 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4174 | else |
| 4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4176 | for as_dir in $PATH |
| 4177 | do |
| 4178 | IFS=$as_save_IFS |
| 4179 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4181 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4182 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4183 | $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] | 4184 | break 2 |
| 4185 | fi |
| 4186 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4187 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4188 | IFS=$as_save_IFS |
| 4189 | |
| 4190 | fi |
| 4191 | fi |
| 4192 | CC=$ac_cv_prog_CC |
| 4193 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4195 | $as_echo "$CC" >&6; } |
| 4196 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4198 | $as_echo "no" >&6; } |
| 4199 | fi |
| 4200 | |
| 4201 | |
| 4202 | fi |
| 4203 | fi |
| 4204 | if test -z "$CC"; then |
| 4205 | # Extract the first word of "cc", so it can be a program name with args. |
| 4206 | set dummy cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4208 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4209 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4210 | $as_echo_n "(cached) " >&6 |
| 4211 | else |
| 4212 | if test -n "$CC"; then |
| 4213 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4214 | else |
| 4215 | ac_prog_rejected=no |
| 4216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4217 | for as_dir in $PATH |
| 4218 | do |
| 4219 | IFS=$as_save_IFS |
| 4220 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4223 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4224 | ac_prog_rejected=yes |
| 4225 | continue |
| 4226 | fi |
| 4227 | ac_cv_prog_CC="cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4228 | $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] | 4229 | break 2 |
| 4230 | fi |
| 4231 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4232 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4233 | IFS=$as_save_IFS |
| 4234 | |
| 4235 | if test $ac_prog_rejected = yes; then |
| 4236 | # We found a bogon in the path, so make sure we never use it. |
| 4237 | set dummy $ac_cv_prog_CC |
| 4238 | shift |
| 4239 | if test $# != 0; then |
| 4240 | # We chose a different compiler from the bogus one. |
| 4241 | # However, it has the same basename, so the bogon will be chosen |
| 4242 | # first if we set CC to just the basename; use the full file name. |
| 4243 | shift |
| 4244 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4245 | fi |
| 4246 | fi |
| 4247 | fi |
| 4248 | fi |
| 4249 | CC=$ac_cv_prog_CC |
| 4250 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4252 | $as_echo "$CC" >&6; } |
| 4253 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4255 | $as_echo "no" >&6; } |
| 4256 | fi |
| 4257 | |
| 4258 | |
| 4259 | fi |
| 4260 | if test -z "$CC"; then |
| 4261 | if test -n "$ac_tool_prefix"; then |
| 4262 | for ac_prog in cl.exe |
| 4263 | do |
| 4264 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4265 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4267 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4268 | if test "${ac_cv_prog_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4269 | $as_echo_n "(cached) " >&6 |
| 4270 | else |
| 4271 | if test -n "$CC"; then |
| 4272 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4273 | else |
| 4274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4275 | for as_dir in $PATH |
| 4276 | do |
| 4277 | IFS=$as_save_IFS |
| 4278 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4279 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4281 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4282 | $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] | 4283 | break 2 |
| 4284 | fi |
| 4285 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4286 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4287 | IFS=$as_save_IFS |
| 4288 | |
| 4289 | fi |
| 4290 | fi |
| 4291 | CC=$ac_cv_prog_CC |
| 4292 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4294 | $as_echo "$CC" >&6; } |
| 4295 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4297 | $as_echo "no" >&6; } |
| 4298 | fi |
| 4299 | |
| 4300 | |
| 4301 | test -n "$CC" && break |
| 4302 | done |
| 4303 | fi |
| 4304 | if test -z "$CC"; then |
| 4305 | ac_ct_CC=$CC |
| 4306 | for ac_prog in cl.exe |
| 4307 | do |
| 4308 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4309 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4311 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4312 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4313 | $as_echo_n "(cached) " >&6 |
| 4314 | else |
| 4315 | if test -n "$ac_ct_CC"; then |
| 4316 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4317 | else |
| 4318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4319 | for as_dir in $PATH |
| 4320 | do |
| 4321 | IFS=$as_save_IFS |
| 4322 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4323 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4325 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4326 | $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] | 4327 | break 2 |
| 4328 | fi |
| 4329 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4330 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4331 | IFS=$as_save_IFS |
| 4332 | |
| 4333 | fi |
| 4334 | fi |
| 4335 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4336 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4338 | $as_echo "$ac_ct_CC" >&6; } |
| 4339 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4341 | $as_echo "no" >&6; } |
| 4342 | fi |
| 4343 | |
| 4344 | |
| 4345 | test -n "$ac_ct_CC" && break |
| 4346 | done |
| 4347 | |
| 4348 | if test "x$ac_ct_CC" = x; then |
| 4349 | CC="" |
| 4350 | else |
| 4351 | case $cross_compiling:$ac_tool_warned in |
| 4352 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4353 | { $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] | 4354 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4355 | ac_tool_warned=yes ;; |
| 4356 | esac |
| 4357 | CC=$ac_ct_CC |
| 4358 | fi |
| 4359 | fi |
| 4360 | |
| 4361 | fi |
| 4362 | |
| 4363 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4364 | 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] | 4365 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4366 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4367 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4368 | |
| 4369 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4370 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4371 | set X $ac_compile |
| 4372 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4373 | for ac_option in --version -v -V -qversion; do |
| 4374 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4375 | case "(($ac_try" in |
| 4376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4377 | *) ac_try_echo=$ac_try;; |
| 4378 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4379 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4380 | $as_echo "$ac_try_echo"; } >&5 |
| 4381 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4382 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4383 | if test -s conftest.err; then |
| 4384 | sed '10a\ |
| 4385 | ... rest of stderr output deleted ... |
| 4386 | 10q' conftest.err >conftest.er1 |
| 4387 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4388 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4389 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4391 | test $ac_status = 0; } |
| 4392 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4393 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4395 | /* end confdefs.h. */ |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4396 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4397 | int |
| 4398 | main () |
| 4399 | { |
| 4400 | |
| 4401 | ; |
| 4402 | return 0; |
| 4403 | } |
| 4404 | _ACEOF |
| 4405 | ac_clean_files_save=$ac_clean_files |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4406 | 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] | 4407 | # Try to create an executable without -o first, disregard a.out. |
| 4408 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4409 | # of exeext. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4411 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4412 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4413 | |
| 4414 | # The possible output files: |
| 4415 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4416 | |
| 4417 | ac_rmfiles= |
| 4418 | for ac_file in $ac_files |
| 4419 | do |
| 4420 | case $ac_file in |
| 4421 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4422 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4423 | esac |
| 4424 | done |
| 4425 | rm -f $ac_rmfiles |
| 4426 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4427 | if { { ac_try="$ac_link_default" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4428 | case "(($ac_try" in |
| 4429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4430 | *) ac_try_echo=$ac_try;; |
| 4431 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4432 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4433 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4434 | (eval "$ac_link_default") 2>&5 |
| 4435 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4437 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4438 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4439 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4440 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4441 | # so that the user can short-circuit this test for compilers unknown to |
| 4442 | # Autoconf. |
| 4443 | for ac_file in $ac_files '' |
| 4444 | do |
| 4445 | test -f "$ac_file" || continue |
| 4446 | case $ac_file in |
| 4447 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4448 | ;; |
| 4449 | [ab].out ) |
| 4450 | # We found the default executable, but exeext='' is most |
| 4451 | # certainly right. |
| 4452 | break;; |
| 4453 | *.* ) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4454 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4455 | then :; else |
| 4456 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4457 | fi |
| 4458 | # We set ac_cv_exeext here because the later test for it is not |
| 4459 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4460 | # argument, so we may need to know it at that point already. |
| 4461 | # Even if this section looks crufty: it has the advantage of |
| 4462 | # actually working. |
| 4463 | break;; |
| 4464 | * ) |
| 4465 | break;; |
| 4466 | esac |
| 4467 | done |
| 4468 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4469 | |
| 4470 | else |
| 4471 | ac_file='' |
| 4472 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4473 | if test -z "$ac_file"; then : |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4475 | $as_echo "no" >&6; } |
| 4476 | $as_echo "$as_me: failed program was:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4478 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4480 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4481 | { as_fn_set_status 77 |
| 4482 | as_fn_error "C compiler cannot create executables |
| 4483 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4484 | else |
| 4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4486 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4487 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4489 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4491 | $as_echo "$ac_file" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4492 | ac_exeext=$ac_cv_exeext |
| 4493 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4494 | 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] | 4495 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4497 | $as_echo_n "checking for suffix of executables... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4498 | if { { ac_try="$ac_link" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4499 | case "(($ac_try" in |
| 4500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4501 | *) ac_try_echo=$ac_try;; |
| 4502 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4504 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4505 | (eval "$ac_link") 2>&5 |
| 4506 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4508 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4509 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4510 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4511 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4512 | # `rm'. |
| 4513 | for ac_file in conftest.exe conftest conftest.*; do |
| 4514 | test -f "$ac_file" || continue |
| 4515 | case $ac_file in |
| 4516 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4517 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4518 | break;; |
| 4519 | * ) break;; |
| 4520 | esac |
| 4521 | done |
| 4522 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4523 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4524 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4525 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 4526 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4527 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4528 | rm -f conftest conftest$ac_cv_exeext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4530 | $as_echo "$ac_cv_exeext" >&6; } |
| 4531 | |
| 4532 | rm -f conftest.$ac_ext |
| 4533 | EXEEXT=$ac_cv_exeext |
| 4534 | ac_exeext=$EXEEXT |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4536 | /* end confdefs.h. */ |
| 4537 | #include <stdio.h> |
| 4538 | int |
| 4539 | main () |
| 4540 | { |
| 4541 | FILE *f = fopen ("conftest.out", "w"); |
| 4542 | return ferror (f) || fclose (f) != 0; |
| 4543 | |
| 4544 | ; |
| 4545 | return 0; |
| 4546 | } |
| 4547 | _ACEOF |
| 4548 | ac_clean_files="$ac_clean_files conftest.out" |
| 4549 | # Check that the compiler produces executables we can run. If not, either |
| 4550 | # the compiler is broken, or we cross compile. |
| 4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4552 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4553 | if test "$cross_compiling" != yes; then |
| 4554 | { { ac_try="$ac_link" |
| 4555 | case "(($ac_try" in |
| 4556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4557 | *) ac_try_echo=$ac_try;; |
| 4558 | esac |
| 4559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4560 | $as_echo "$ac_try_echo"; } >&5 |
| 4561 | (eval "$ac_link") 2>&5 |
| 4562 | ac_status=$? |
| 4563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4564 | test $ac_status = 0; } |
| 4565 | if { ac_try='./conftest$ac_cv_exeext' |
| 4566 | { { case "(($ac_try" in |
| 4567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4568 | *) ac_try_echo=$ac_try;; |
| 4569 | esac |
| 4570 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4571 | $as_echo "$ac_try_echo"; } >&5 |
| 4572 | (eval "$ac_try") 2>&5 |
| 4573 | ac_status=$? |
| 4574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4575 | test $ac_status = 0; }; }; then |
| 4576 | cross_compiling=no |
| 4577 | else |
| 4578 | if test "$cross_compiling" = maybe; then |
| 4579 | cross_compiling=yes |
| 4580 | else |
| 4581 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4582 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4583 | as_fn_error "cannot run C compiled programs. |
| 4584 | If you meant to cross compile, use \`--host'. |
| 4585 | See \`config.log' for more details." "$LINENO" 5; } |
| 4586 | fi |
| 4587 | fi |
| 4588 | fi |
| 4589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4590 | $as_echo "$cross_compiling" >&6; } |
| 4591 | |
| 4592 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4593 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4594 | { $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] | 4595 | $as_echo_n "checking for suffix of object files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4596 | if test "${ac_cv_objext+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4597 | $as_echo_n "(cached) " >&6 |
| 4598 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4599 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4600 | /* end confdefs.h. */ |
| 4601 | |
| 4602 | int |
| 4603 | main () |
| 4604 | { |
| 4605 | |
| 4606 | ; |
| 4607 | return 0; |
| 4608 | } |
| 4609 | _ACEOF |
| 4610 | rm -f conftest.o conftest.obj |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4611 | if { { ac_try="$ac_compile" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4612 | case "(($ac_try" in |
| 4613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4614 | *) ac_try_echo=$ac_try;; |
| 4615 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4616 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4617 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4618 | (eval "$ac_compile") 2>&5 |
| 4619 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4620 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4621 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4622 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 4623 | test -f "$ac_file" || continue; |
| 4624 | case $ac_file in |
| 4625 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 4626 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 4627 | break;; |
| 4628 | esac |
| 4629 | done |
| 4630 | else |
| 4631 | $as_echo "$as_me: failed program was:" >&5 |
| 4632 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4633 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4634 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4635 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4636 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 4637 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4638 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4639 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 4640 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4642 | $as_echo "$ac_cv_objext" >&6; } |
| 4643 | OBJEXT=$ac_cv_objext |
| 4644 | ac_objext=$OBJEXT |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4645 | { $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] | 4646 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4647 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4648 | $as_echo_n "(cached) " >&6 |
| 4649 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4651 | /* end confdefs.h. */ |
| 4652 | |
| 4653 | int |
| 4654 | main () |
| 4655 | { |
| 4656 | #ifndef __GNUC__ |
| 4657 | choke me |
| 4658 | #endif |
| 4659 | |
| 4660 | ; |
| 4661 | return 0; |
| 4662 | } |
| 4663 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4664 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4665 | ac_compiler_gnu=yes |
| 4666 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4667 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4668 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4670 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4671 | |
| 4672 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4673 | { $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] | 4674 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4675 | if test $ac_compiler_gnu = yes; then |
| 4676 | GCC=yes |
| 4677 | else |
| 4678 | GCC= |
| 4679 | fi |
| 4680 | ac_test_CFLAGS=${CFLAGS+set} |
| 4681 | ac_save_CFLAGS=$CFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4683 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4684 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4685 | $as_echo_n "(cached) " >&6 |
| 4686 | else |
| 4687 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4688 | ac_c_werror_flag=yes |
| 4689 | ac_cv_prog_cc_g=no |
| 4690 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4692 | /* end confdefs.h. */ |
| 4693 | |
| 4694 | int |
| 4695 | main () |
| 4696 | { |
| 4697 | |
| 4698 | ; |
| 4699 | return 0; |
| 4700 | } |
| 4701 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4702 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4703 | ac_cv_prog_cc_g=yes |
| 4704 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4705 | CFLAGS="" |
| 4706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4707 | /* end confdefs.h. */ |
| 4708 | |
| 4709 | int |
| 4710 | main () |
| 4711 | { |
| 4712 | |
| 4713 | ; |
| 4714 | return 0; |
| 4715 | } |
| 4716 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4717 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4718 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4719 | else |
| 4720 | ac_c_werror_flag=$ac_save_c_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4721 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4723 | /* end confdefs.h. */ |
| 4724 | |
| 4725 | int |
| 4726 | main () |
| 4727 | { |
| 4728 | |
| 4729 | ; |
| 4730 | return 0; |
| 4731 | } |
| 4732 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4733 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4734 | ac_cv_prog_cc_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4735 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4737 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4739 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4741 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4742 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4743 | { $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] | 4744 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4745 | if test "$ac_test_CFLAGS" = set; then |
| 4746 | CFLAGS=$ac_save_CFLAGS |
| 4747 | elif test $ac_cv_prog_cc_g = yes; then |
| 4748 | if test "$GCC" = yes; then |
| 4749 | CFLAGS="-g -O2" |
| 4750 | else |
| 4751 | CFLAGS="-g" |
| 4752 | fi |
| 4753 | else |
| 4754 | if test "$GCC" = yes; then |
| 4755 | CFLAGS="-O2" |
| 4756 | else |
| 4757 | CFLAGS= |
| 4758 | fi |
| 4759 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4760 | { $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] | 4761 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4762 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4763 | $as_echo_n "(cached) " >&6 |
| 4764 | else |
| 4765 | ac_cv_prog_cc_c89=no |
| 4766 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4768 | /* end confdefs.h. */ |
| 4769 | #include <stdarg.h> |
| 4770 | #include <stdio.h> |
| 4771 | #include <sys/types.h> |
| 4772 | #include <sys/stat.h> |
| 4773 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4774 | struct buf { int x; }; |
| 4775 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4776 | static char *e (p, i) |
| 4777 | char **p; |
| 4778 | int i; |
| 4779 | { |
| 4780 | return p[i]; |
| 4781 | } |
| 4782 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4783 | { |
| 4784 | char *s; |
| 4785 | va_list v; |
| 4786 | va_start (v,p); |
| 4787 | s = g (p, va_arg (v,int)); |
| 4788 | va_end (v); |
| 4789 | return s; |
| 4790 | } |
| 4791 | |
| 4792 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4793 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4794 | These don't provoke an error unfortunately, instead are silently treated |
| 4795 | as 'x'. The following induces an error, until -std is added to get |
| 4796 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4797 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4798 | that's true only with -std. */ |
| 4799 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4800 | |
| 4801 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4802 | inside strings and character constants. */ |
| 4803 | #define FOO(x) 'x' |
| 4804 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4805 | |
| 4806 | int test (int i, double x); |
| 4807 | struct s1 {int (*f) (int a);}; |
| 4808 | struct s2 {int (*f) (double a);}; |
| 4809 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4810 | int argc; |
| 4811 | char **argv; |
| 4812 | int |
| 4813 | main () |
| 4814 | { |
| 4815 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4816 | ; |
| 4817 | return 0; |
| 4818 | } |
| 4819 | _ACEOF |
| 4820 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4821 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4822 | do |
| 4823 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4824 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4825 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4826 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4827 | rm -f core conftest.err conftest.$ac_objext |
| 4828 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4829 | done |
| 4830 | rm -f conftest.$ac_ext |
| 4831 | CC=$ac_save_CC |
| 4832 | |
| 4833 | fi |
| 4834 | # AC_CACHE_VAL |
| 4835 | case "x$ac_cv_prog_cc_c89" in |
| 4836 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4838 | $as_echo "none needed" >&6; } ;; |
| 4839 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4841 | $as_echo "unsupported" >&6; } ;; |
| 4842 | *) |
| 4843 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4844 | { $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] | 4845 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4846 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4847 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4848 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4849 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4850 | |
| 4851 | ac_ext=c |
| 4852 | ac_cpp='$CPP $CPPFLAGS' |
| 4853 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4854 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4855 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4856 | DEPDIR="${am__leading_dot}deps" |
| 4857 | |
| 4858 | ac_config_commands="$ac_config_commands depfiles" |
| 4859 | |
| 4860 | |
| 4861 | am_make=${MAKE-make} |
| 4862 | cat > confinc << 'END' |
| 4863 | am__doit: |
| 4864 | @echo this is the am__doit target |
| 4865 | .PHONY: am__doit |
| 4866 | END |
| 4867 | # If we don't find an include directive, just comment out the code. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4869 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4870 | am__include="#" |
| 4871 | am__quote= |
| 4872 | _am_result=none |
| 4873 | # First try GNU make style include. |
| 4874 | echo "include confinc" > confmf |
| 4875 | # Ignore all kinds of additional output from `make'. |
| 4876 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4877 | *the\ am__doit\ target*) |
| 4878 | am__include=include |
| 4879 | am__quote= |
| 4880 | _am_result=GNU |
| 4881 | ;; |
| 4882 | esac |
| 4883 | # Now try BSD make style include. |
| 4884 | if test "$am__include" = "#"; then |
| 4885 | echo '.include "confinc"' > confmf |
| 4886 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4887 | *the\ am__doit\ target*) |
| 4888 | am__include=.include |
| 4889 | am__quote="\"" |
| 4890 | _am_result=BSD |
| 4891 | ;; |
| 4892 | esac |
| 4893 | fi |
| 4894 | |
| 4895 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4897 | $as_echo "$_am_result" >&6; } |
| 4898 | rm -f confinc confmf |
| 4899 | |
| 4900 | # Check whether --enable-dependency-tracking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4901 | if test "${enable_dependency_tracking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4902 | enableval=$enable_dependency_tracking; |
| 4903 | fi |
| 4904 | |
| 4905 | if test "x$enable_dependency_tracking" != xno; then |
| 4906 | am_depcomp="$ac_aux_dir/depcomp" |
| 4907 | AMDEPBACKSLASH='\' |
| 4908 | fi |
| 4909 | if test "x$enable_dependency_tracking" != xno; then |
| 4910 | AMDEP_TRUE= |
| 4911 | AMDEP_FALSE='#' |
| 4912 | else |
| 4913 | AMDEP_TRUE='#' |
| 4914 | AMDEP_FALSE= |
| 4915 | fi |
| 4916 | |
| 4917 | |
| 4918 | |
| 4919 | depcc="$CC" am_compiler_list= |
| 4920 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4922 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4923 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4924 | $as_echo_n "(cached) " >&6 |
| 4925 | else |
| 4926 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4927 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4928 | # making bogus files that we don't know about and never remove. For |
| 4929 | # instance it was reported that on HP-UX the gcc test will end up |
| 4930 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4931 | # in D'. |
| 4932 | mkdir conftest.dir |
| 4933 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4934 | # using a relative directory. |
| 4935 | cp "$am_depcomp" conftest.dir |
| 4936 | cd conftest.dir |
| 4937 | # We will build objects and dependencies in a subdirectory because |
| 4938 | # it helps to detect inapplicable dependency modes. For instance |
| 4939 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4940 | # side effect of compilation, but ICC will put the dependencies in |
| 4941 | # the current directory while Tru64 will put them in the object |
| 4942 | # directory. |
| 4943 | mkdir sub |
| 4944 | |
| 4945 | am_cv_CC_dependencies_compiler_type=none |
| 4946 | if test "$am_compiler_list" = ""; then |
| 4947 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4948 | fi |
| 4949 | am__universal=false |
| 4950 | case " $depcc " in #( |
| 4951 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4952 | esac |
| 4953 | |
| 4954 | for depmode in $am_compiler_list; do |
| 4955 | # Setup a source with many dependencies, because some compilers |
| 4956 | # like to wrap large dependency lists on column 80 (with \), and |
| 4957 | # we should not choose a depcomp mode which is confused by this. |
| 4958 | # |
| 4959 | # We need to recreate these files for each test, as the compiler may |
| 4960 | # overwrite some of them when testing with obscure command lines. |
| 4961 | # This happens at least with the AIX C compiler. |
| 4962 | : > sub/conftest.c |
| 4963 | for i in 1 2 3 4 5 6; do |
| 4964 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4965 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4966 | # Solaris 8's {/usr,}/bin/sh. |
| 4967 | touch sub/conftst$i.h |
| 4968 | done |
| 4969 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4970 | |
| 4971 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4972 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4973 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4974 | # versions had trouble with output in subdirs |
| 4975 | am__obj=sub/conftest.${OBJEXT-o} |
| 4976 | am__minus_obj="-o $am__obj" |
| 4977 | case $depmode in |
| 4978 | gcc) |
| 4979 | # This depmode causes a compiler race in universal mode. |
| 4980 | test "$am__universal" = false || continue |
| 4981 | ;; |
| 4982 | nosideeffect) |
| 4983 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4984 | # only be used when explicitly requested |
| 4985 | if test "x$enable_dependency_tracking" = xyes; then |
| 4986 | continue |
| 4987 | else |
| 4988 | break |
| 4989 | fi |
| 4990 | ;; |
| 4991 | msvisualcpp | msvcmsys) |
| 4992 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4993 | # not run yet. These depmodes are late enough in the game, and |
| 4994 | # so weak that their functioning should not be impacted. |
| 4995 | am__obj=conftest.${OBJEXT-o} |
| 4996 | am__minus_obj= |
| 4997 | ;; |
| 4998 | none) break ;; |
| 4999 | esac |
| 5000 | if depmode=$depmode \ |
| 5001 | source=sub/conftest.c object=$am__obj \ |
| 5002 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5003 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5004 | >/dev/null 2>conftest.err && |
| 5005 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5006 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5007 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5008 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5009 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5010 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5011 | # that says an option was ignored or not supported. |
| 5012 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5013 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5014 | # The diagnosis changed in icc 8.0: |
| 5015 | # icc: Command line remark: option '-MP' not supported |
| 5016 | if (grep 'ignoring option' conftest.err || |
| 5017 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5018 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5019 | break |
| 5020 | fi |
| 5021 | fi |
| 5022 | done |
| 5023 | |
| 5024 | cd .. |
| 5025 | rm -rf conftest.dir |
| 5026 | else |
| 5027 | am_cv_CC_dependencies_compiler_type=none |
| 5028 | fi |
| 5029 | |
| 5030 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5032 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5033 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5034 | |
| 5035 | if |
| 5036 | test "x$enable_dependency_tracking" != xno \ |
| 5037 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5038 | am__fastdepCC_TRUE= |
| 5039 | am__fastdepCC_FALSE='#' |
| 5040 | else |
| 5041 | am__fastdepCC_TRUE='#' |
| 5042 | am__fastdepCC_FALSE= |
| 5043 | fi |
| 5044 | |
| 5045 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 5046 | ac_ext=cpp |
| 5047 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5048 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5049 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5050 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5051 | if test -z "$CXX"; then |
| 5052 | if test -n "$CCC"; then |
| 5053 | CXX=$CCC |
| 5054 | else |
| 5055 | if test -n "$ac_tool_prefix"; then |
| 5056 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5057 | do |
| 5058 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5059 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5061 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5062 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 5063 | $as_echo_n "(cached) " >&6 |
| 5064 | else |
| 5065 | if test -n "$CXX"; then |
| 5066 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5067 | else |
| 5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5069 | for as_dir in $PATH |
| 5070 | do |
| 5071 | IFS=$as_save_IFS |
| 5072 | test -z "$as_dir" && as_dir=. |
| 5073 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5075 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5077 | break 2 |
| 5078 | fi |
| 5079 | done |
| 5080 | done |
| 5081 | IFS=$as_save_IFS |
| 5082 | |
| 5083 | fi |
| 5084 | fi |
| 5085 | CXX=$ac_cv_prog_CXX |
| 5086 | if test -n "$CXX"; then |
| 5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5088 | $as_echo "$CXX" >&6; } |
| 5089 | else |
| 5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5091 | $as_echo "no" >&6; } |
| 5092 | fi |
| 5093 | |
| 5094 | |
| 5095 | test -n "$CXX" && break |
| 5096 | done |
| 5097 | fi |
| 5098 | if test -z "$CXX"; then |
| 5099 | ac_ct_CXX=$CXX |
| 5100 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 5101 | do |
| 5102 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5103 | set dummy $ac_prog; ac_word=$2 |
| 5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5105 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5106 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 5107 | $as_echo_n "(cached) " >&6 |
| 5108 | else |
| 5109 | if test -n "$ac_ct_CXX"; then |
| 5110 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5111 | else |
| 5112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5113 | for as_dir in $PATH |
| 5114 | do |
| 5115 | IFS=$as_save_IFS |
| 5116 | test -z "$as_dir" && as_dir=. |
| 5117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5119 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5121 | break 2 |
| 5122 | fi |
| 5123 | done |
| 5124 | done |
| 5125 | IFS=$as_save_IFS |
| 5126 | |
| 5127 | fi |
| 5128 | fi |
| 5129 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5130 | if test -n "$ac_ct_CXX"; then |
| 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 5132 | $as_echo "$ac_ct_CXX" >&6; } |
| 5133 | else |
| 5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5135 | $as_echo "no" >&6; } |
| 5136 | fi |
| 5137 | |
| 5138 | |
| 5139 | test -n "$ac_ct_CXX" && break |
| 5140 | done |
| 5141 | |
| 5142 | if test "x$ac_ct_CXX" = x; then |
| 5143 | CXX="g++" |
| 5144 | else |
| 5145 | case $cross_compiling:$ac_tool_warned in |
| 5146 | yes:) |
| 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5148 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5149 | ac_tool_warned=yes ;; |
| 5150 | esac |
| 5151 | CXX=$ac_ct_CXX |
| 5152 | fi |
| 5153 | fi |
| 5154 | |
| 5155 | fi |
| 5156 | fi |
| 5157 | # Provide some information about the compiler. |
| 5158 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 5159 | set X $ac_compile |
| 5160 | ac_compiler=$2 |
| 5161 | for ac_option in --version -v -V -qversion; do |
| 5162 | { { ac_try="$ac_compiler $ac_option >&5" |
| 5163 | case "(($ac_try" in |
| 5164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5165 | *) ac_try_echo=$ac_try;; |
| 5166 | esac |
| 5167 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5168 | $as_echo "$ac_try_echo"; } >&5 |
| 5169 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5170 | ac_status=$? |
| 5171 | if test -s conftest.err; then |
| 5172 | sed '10a\ |
| 5173 | ... rest of stderr output deleted ... |
| 5174 | 10q' conftest.err >conftest.er1 |
| 5175 | cat conftest.er1 >&5 |
| 5176 | fi |
| 5177 | rm -f conftest.er1 conftest.err |
| 5178 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5179 | test $ac_status = 0; } |
| 5180 | done |
| 5181 | |
| 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 5183 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 5184 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 5185 | $as_echo_n "(cached) " >&6 |
| 5186 | else |
| 5187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5188 | /* end confdefs.h. */ |
| 5189 | |
| 5190 | int |
| 5191 | main () |
| 5192 | { |
| 5193 | #ifndef __GNUC__ |
| 5194 | choke me |
| 5195 | #endif |
| 5196 | |
| 5197 | ; |
| 5198 | return 0; |
| 5199 | } |
| 5200 | _ACEOF |
| 5201 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5202 | ac_compiler_gnu=yes |
| 5203 | else |
| 5204 | ac_compiler_gnu=no |
| 5205 | fi |
| 5206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5207 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5208 | |
| 5209 | fi |
| 5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5211 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 5212 | if test $ac_compiler_gnu = yes; then |
| 5213 | GXX=yes |
| 5214 | else |
| 5215 | GXX= |
| 5216 | fi |
| 5217 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5218 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 5220 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 5221 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 5222 | $as_echo_n "(cached) " >&6 |
| 5223 | else |
| 5224 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 5225 | ac_cxx_werror_flag=yes |
| 5226 | ac_cv_prog_cxx_g=no |
| 5227 | CXXFLAGS="-g" |
| 5228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5229 | /* end confdefs.h. */ |
| 5230 | |
| 5231 | int |
| 5232 | main () |
| 5233 | { |
| 5234 | |
| 5235 | ; |
| 5236 | return 0; |
| 5237 | } |
| 5238 | _ACEOF |
| 5239 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5240 | ac_cv_prog_cxx_g=yes |
| 5241 | else |
| 5242 | CXXFLAGS="" |
| 5243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5244 | /* end confdefs.h. */ |
| 5245 | |
| 5246 | int |
| 5247 | main () |
| 5248 | { |
| 5249 | |
| 5250 | ; |
| 5251 | return 0; |
| 5252 | } |
| 5253 | _ACEOF |
| 5254 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5255 | |
| 5256 | else |
| 5257 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5258 | CXXFLAGS="-g" |
| 5259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5260 | /* end confdefs.h. */ |
| 5261 | |
| 5262 | int |
| 5263 | main () |
| 5264 | { |
| 5265 | |
| 5266 | ; |
| 5267 | return 0; |
| 5268 | } |
| 5269 | _ACEOF |
| 5270 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 5271 | ac_cv_prog_cxx_g=yes |
| 5272 | fi |
| 5273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5274 | fi |
| 5275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5276 | fi |
| 5277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5278 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 5279 | fi |
| 5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 5281 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 5282 | if test "$ac_test_CXXFLAGS" = set; then |
| 5283 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5284 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5285 | if test "$GXX" = yes; then |
| 5286 | CXXFLAGS="-g -O2" |
| 5287 | else |
| 5288 | CXXFLAGS="-g" |
| 5289 | fi |
| 5290 | else |
| 5291 | if test "$GXX" = yes; then |
| 5292 | CXXFLAGS="-O2" |
| 5293 | else |
| 5294 | CXXFLAGS= |
| 5295 | fi |
| 5296 | fi |
| 5297 | ac_ext=c |
| 5298 | ac_cpp='$CPP $CPPFLAGS' |
| 5299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5302 | |
| 5303 | depcc="$CXX" am_compiler_list= |
| 5304 | |
| 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5306 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 5307 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 5308 | $as_echo_n "(cached) " >&6 |
| 5309 | else |
| 5310 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5311 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5312 | # making bogus files that we don't know about and never remove. For |
| 5313 | # instance it was reported that on HP-UX the gcc test will end up |
| 5314 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5315 | # in D'. |
| 5316 | mkdir conftest.dir |
| 5317 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5318 | # using a relative directory. |
| 5319 | cp "$am_depcomp" conftest.dir |
| 5320 | cd conftest.dir |
| 5321 | # We will build objects and dependencies in a subdirectory because |
| 5322 | # it helps to detect inapplicable dependency modes. For instance |
| 5323 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5324 | # side effect of compilation, but ICC will put the dependencies in |
| 5325 | # the current directory while Tru64 will put them in the object |
| 5326 | # directory. |
| 5327 | mkdir sub |
| 5328 | |
| 5329 | am_cv_CXX_dependencies_compiler_type=none |
| 5330 | if test "$am_compiler_list" = ""; then |
| 5331 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5332 | fi |
| 5333 | am__universal=false |
| 5334 | case " $depcc " in #( |
| 5335 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5336 | esac |
| 5337 | |
| 5338 | for depmode in $am_compiler_list; do |
| 5339 | # Setup a source with many dependencies, because some compilers |
| 5340 | # like to wrap large dependency lists on column 80 (with \), and |
| 5341 | # we should not choose a depcomp mode which is confused by this. |
| 5342 | # |
| 5343 | # We need to recreate these files for each test, as the compiler may |
| 5344 | # overwrite some of them when testing with obscure command lines. |
| 5345 | # This happens at least with the AIX C compiler. |
| 5346 | : > sub/conftest.c |
| 5347 | for i in 1 2 3 4 5 6; do |
| 5348 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5349 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5350 | # Solaris 8's {/usr,}/bin/sh. |
| 5351 | touch sub/conftst$i.h |
| 5352 | done |
| 5353 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5354 | |
| 5355 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5356 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5357 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5358 | # versions had trouble with output in subdirs |
| 5359 | am__obj=sub/conftest.${OBJEXT-o} |
| 5360 | am__minus_obj="-o $am__obj" |
| 5361 | case $depmode in |
| 5362 | gcc) |
| 5363 | # This depmode causes a compiler race in universal mode. |
| 5364 | test "$am__universal" = false || continue |
| 5365 | ;; |
| 5366 | nosideeffect) |
| 5367 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5368 | # only be used when explicitly requested |
| 5369 | if test "x$enable_dependency_tracking" = xyes; then |
| 5370 | continue |
| 5371 | else |
| 5372 | break |
| 5373 | fi |
| 5374 | ;; |
| 5375 | msvisualcpp | msvcmsys) |
| 5376 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5377 | # not run yet. These depmodes are late enough in the game, and |
| 5378 | # so weak that their functioning should not be impacted. |
| 5379 | am__obj=conftest.${OBJEXT-o} |
| 5380 | am__minus_obj= |
| 5381 | ;; |
| 5382 | none) break ;; |
| 5383 | esac |
| 5384 | if depmode=$depmode \ |
| 5385 | source=sub/conftest.c object=$am__obj \ |
| 5386 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5387 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5388 | >/dev/null 2>conftest.err && |
| 5389 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5390 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5391 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5392 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5393 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5394 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5395 | # that says an option was ignored or not supported. |
| 5396 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5397 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5398 | # The diagnosis changed in icc 8.0: |
| 5399 | # icc: Command line remark: option '-MP' not supported |
| 5400 | if (grep 'ignoring option' conftest.err || |
| 5401 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5402 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5403 | break |
| 5404 | fi |
| 5405 | fi |
| 5406 | done |
| 5407 | |
| 5408 | cd .. |
| 5409 | rm -rf conftest.dir |
| 5410 | else |
| 5411 | am_cv_CXX_dependencies_compiler_type=none |
| 5412 | fi |
| 5413 | |
| 5414 | fi |
| 5415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5416 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 5417 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5418 | |
| 5419 | if |
| 5420 | test "x$enable_dependency_tracking" != xno \ |
| 5421 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5422 | am__fastdepCXX_TRUE= |
| 5423 | am__fastdepCXX_FALSE='#' |
| 5424 | else |
| 5425 | am__fastdepCXX_TRUE='#' |
| 5426 | am__fastdepCXX_FALSE= |
| 5427 | fi |
| 5428 | |
| 5429 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5430 | case $ac_cv_prog_cc_stdc in #( |
| 5431 | no) : |
| 5432 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 5433 | *) : |
| 5434 | { $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] | 5435 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5436 | if test "${ac_cv_prog_cc_c99+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5437 | $as_echo_n "(cached) " >&6 |
| 5438 | else |
| 5439 | ac_cv_prog_cc_c99=no |
| 5440 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5442 | /* end confdefs.h. */ |
| 5443 | #include <stdarg.h> |
| 5444 | #include <stdbool.h> |
| 5445 | #include <stdlib.h> |
| 5446 | #include <wchar.h> |
| 5447 | #include <stdio.h> |
| 5448 | |
| 5449 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 5450 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 5451 | #define showlist(...) puts (#__VA_ARGS__) |
| 5452 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 5453 | static void |
| 5454 | test_varargs_macros (void) |
| 5455 | { |
| 5456 | int x = 1234; |
| 5457 | int y = 5678; |
| 5458 | debug ("Flag"); |
| 5459 | debug ("X = %d\n", x); |
| 5460 | showlist (The first, second, and third items.); |
| 5461 | report (x>y, "x is %d but y is %d", x, y); |
| 5462 | } |
| 5463 | |
| 5464 | // Check long long types. |
| 5465 | #define BIG64 18446744073709551615ull |
| 5466 | #define BIG32 4294967295ul |
| 5467 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 5468 | #if !BIG_OK |
| 5469 | your preprocessor is broken; |
| 5470 | #endif |
| 5471 | #if BIG_OK |
| 5472 | #else |
| 5473 | your preprocessor is broken; |
| 5474 | #endif |
| 5475 | static long long int bignum = -9223372036854775807LL; |
| 5476 | static unsigned long long int ubignum = BIG64; |
| 5477 | |
| 5478 | struct incomplete_array |
| 5479 | { |
| 5480 | int datasize; |
| 5481 | double data[]; |
| 5482 | }; |
| 5483 | |
| 5484 | struct named_init { |
| 5485 | int number; |
| 5486 | const wchar_t *name; |
| 5487 | double average; |
| 5488 | }; |
| 5489 | |
| 5490 | typedef const char *ccp; |
| 5491 | |
| 5492 | static inline int |
| 5493 | test_restrict (ccp restrict text) |
| 5494 | { |
| 5495 | // See if C++-style comments work. |
| 5496 | // Iterate through items via the restricted pointer. |
| 5497 | // Also check for declarations in for loops. |
| 5498 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 5499 | continue; |
| 5500 | return 0; |
| 5501 | } |
| 5502 | |
| 5503 | // Check varargs and va_copy. |
| 5504 | static void |
| 5505 | test_varargs (const char *format, ...) |
| 5506 | { |
| 5507 | va_list args; |
| 5508 | va_start (args, format); |
| 5509 | va_list args_copy; |
| 5510 | va_copy (args_copy, args); |
| 5511 | |
| 5512 | const char *str; |
| 5513 | int number; |
| 5514 | float fnumber; |
| 5515 | |
| 5516 | while (*format) |
| 5517 | { |
| 5518 | switch (*format++) |
| 5519 | { |
| 5520 | case 's': // string |
| 5521 | str = va_arg (args_copy, const char *); |
| 5522 | break; |
| 5523 | case 'd': // int |
| 5524 | number = va_arg (args_copy, int); |
| 5525 | break; |
| 5526 | case 'f': // float |
| 5527 | fnumber = va_arg (args_copy, double); |
| 5528 | break; |
| 5529 | default: |
| 5530 | break; |
| 5531 | } |
| 5532 | } |
| 5533 | va_end (args_copy); |
| 5534 | va_end (args); |
| 5535 | } |
| 5536 | |
| 5537 | int |
| 5538 | main () |
| 5539 | { |
| 5540 | |
| 5541 | // Check bool. |
| 5542 | _Bool success = false; |
| 5543 | |
| 5544 | // Check restrict. |
| 5545 | if (test_restrict ("String literal") == 0) |
| 5546 | success = true; |
| 5547 | char *restrict newvar = "Another string"; |
| 5548 | |
| 5549 | // Check varargs. |
| 5550 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 5551 | test_varargs_macros (); |
| 5552 | |
| 5553 | // Check flexible array members. |
| 5554 | struct incomplete_array *ia = |
| 5555 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 5556 | ia->datasize = 10; |
| 5557 | for (int i = 0; i < ia->datasize; ++i) |
| 5558 | ia->data[i] = i * 1.234; |
| 5559 | |
| 5560 | // Check named initializers. |
| 5561 | struct named_init ni = { |
| 5562 | .number = 34, |
| 5563 | .name = L"Test wide string", |
| 5564 | .average = 543.34343, |
| 5565 | }; |
| 5566 | |
| 5567 | ni.number = 58; |
| 5568 | |
| 5569 | int dynamic_array[ni.number]; |
| 5570 | dynamic_array[ni.number - 1] = 543; |
| 5571 | |
| 5572 | // work around unused variable warnings |
| 5573 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 5574 | || dynamic_array[ni.number - 1] != 543); |
| 5575 | |
| 5576 | ; |
| 5577 | return 0; |
| 5578 | } |
| 5579 | _ACEOF |
| 5580 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 5581 | do |
| 5582 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5583 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5584 | ac_cv_prog_cc_c99=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5585 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5586 | rm -f core conftest.err conftest.$ac_objext |
| 5587 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5588 | done |
| 5589 | rm -f conftest.$ac_ext |
| 5590 | CC=$ac_save_CC |
| 5591 | |
| 5592 | fi |
| 5593 | # AC_CACHE_VAL |
| 5594 | case "x$ac_cv_prog_cc_c99" in |
| 5595 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5597 | $as_echo "none needed" >&6; } ;; |
| 5598 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5600 | $as_echo "unsupported" >&6; } ;; |
| 5601 | *) |
| 5602 | CC="$CC $ac_cv_prog_cc_c99" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5603 | { $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] | 5604 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 5605 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5606 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5607 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5608 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5609 | { $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] | 5610 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5611 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5612 | $as_echo_n "(cached) " >&6 |
| 5613 | else |
| 5614 | ac_cv_prog_cc_c89=no |
| 5615 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5617 | /* end confdefs.h. */ |
| 5618 | #include <stdarg.h> |
| 5619 | #include <stdio.h> |
| 5620 | #include <sys/types.h> |
| 5621 | #include <sys/stat.h> |
| 5622 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5623 | struct buf { int x; }; |
| 5624 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5625 | static char *e (p, i) |
| 5626 | char **p; |
| 5627 | int i; |
| 5628 | { |
| 5629 | return p[i]; |
| 5630 | } |
| 5631 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5632 | { |
| 5633 | char *s; |
| 5634 | va_list v; |
| 5635 | va_start (v,p); |
| 5636 | s = g (p, va_arg (v,int)); |
| 5637 | va_end (v); |
| 5638 | return s; |
| 5639 | } |
| 5640 | |
| 5641 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5642 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5643 | These don't provoke an error unfortunately, instead are silently treated |
| 5644 | as 'x'. The following induces an error, until -std is added to get |
| 5645 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5646 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5647 | that's true only with -std. */ |
| 5648 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5649 | |
| 5650 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5651 | inside strings and character constants. */ |
| 5652 | #define FOO(x) 'x' |
| 5653 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5654 | |
| 5655 | int test (int i, double x); |
| 5656 | struct s1 {int (*f) (int a);}; |
| 5657 | struct s2 {int (*f) (double a);}; |
| 5658 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5659 | int argc; |
| 5660 | char **argv; |
| 5661 | int |
| 5662 | main () |
| 5663 | { |
| 5664 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5665 | ; |
| 5666 | return 0; |
| 5667 | } |
| 5668 | _ACEOF |
| 5669 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5670 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5671 | do |
| 5672 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5673 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5674 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5675 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5676 | rm -f core conftest.err conftest.$ac_objext |
| 5677 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5678 | done |
| 5679 | rm -f conftest.$ac_ext |
| 5680 | CC=$ac_save_CC |
| 5681 | |
| 5682 | fi |
| 5683 | # AC_CACHE_VAL |
| 5684 | case "x$ac_cv_prog_cc_c89" in |
| 5685 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5687 | $as_echo "none needed" >&6; } ;; |
| 5688 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5690 | $as_echo "unsupported" >&6; } ;; |
| 5691 | *) |
| 5692 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5693 | { $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] | 5694 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5695 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5696 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5697 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5698 | else |
| 5699 | ac_cv_prog_cc_stdc=no |
| 5700 | fi |
| 5701 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5702 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5703 | ;; |
| 5704 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5705 | { $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] | 5706 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5707 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5708 | $as_echo_n "(cached) " >&6 |
| 5709 | fi |
| 5710 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5711 | case $ac_cv_prog_cc_stdc in #( |
| 5712 | no) : |
| 5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5714 | $as_echo "unsupported" >&6; } ;; #( |
| 5715 | '') : |
| 5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5717 | $as_echo "none needed" >&6; } ;; #( |
| 5718 | *) : |
| 5719 | { $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] | 5720 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 5721 | esac |
| 5722 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5723 | ac_ext=c |
| 5724 | ac_cpp='$CPP $CPPFLAGS' |
| 5725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5728 | { $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] | 5729 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5730 | # On Suns, sometimes $CPP names a directory. |
| 5731 | if test -n "$CPP" && test -d "$CPP"; then |
| 5732 | CPP= |
| 5733 | fi |
| 5734 | if test -z "$CPP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5735 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5736 | $as_echo_n "(cached) " >&6 |
| 5737 | else |
| 5738 | # Double quotes because CPP needs to be expanded |
| 5739 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5740 | do |
| 5741 | ac_preproc_ok=false |
| 5742 | for ac_c_preproc_warn_flag in '' yes |
| 5743 | do |
| 5744 | # Use a header file that comes with gcc, so configuring glibc |
| 5745 | # with a fresh cross-compiler works. |
| 5746 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5747 | # <limits.h> exists even on freestanding compilers. |
| 5748 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5749 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5751 | /* end confdefs.h. */ |
| 5752 | #ifdef __STDC__ |
| 5753 | # include <limits.h> |
| 5754 | #else |
| 5755 | # include <assert.h> |
| 5756 | #endif |
| 5757 | Syntax error |
| 5758 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5759 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5760 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5761 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5762 | # Broken: fails on valid input. |
| 5763 | continue |
| 5764 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5765 | rm -f conftest.err conftest.$ac_ext |
| 5766 | |
| 5767 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5768 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5770 | /* end confdefs.h. */ |
| 5771 | #include <ac_nonexistent.h> |
| 5772 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5773 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5774 | # Broken: success on invalid input. |
| 5775 | continue |
| 5776 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5777 | # Passes both tests. |
| 5778 | ac_preproc_ok=: |
| 5779 | break |
| 5780 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5781 | rm -f conftest.err conftest.$ac_ext |
| 5782 | |
| 5783 | done |
| 5784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5785 | rm -f conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5786 | if $ac_preproc_ok; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5787 | break |
| 5788 | fi |
| 5789 | |
| 5790 | done |
| 5791 | ac_cv_prog_CPP=$CPP |
| 5792 | |
| 5793 | fi |
| 5794 | CPP=$ac_cv_prog_CPP |
| 5795 | else |
| 5796 | ac_cv_prog_CPP=$CPP |
| 5797 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5799 | $as_echo "$CPP" >&6; } |
| 5800 | ac_preproc_ok=false |
| 5801 | for ac_c_preproc_warn_flag in '' yes |
| 5802 | do |
| 5803 | # Use a header file that comes with gcc, so configuring glibc |
| 5804 | # with a fresh cross-compiler works. |
| 5805 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5806 | # <limits.h> exists even on freestanding compilers. |
| 5807 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5808 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5810 | /* end confdefs.h. */ |
| 5811 | #ifdef __STDC__ |
| 5812 | # include <limits.h> |
| 5813 | #else |
| 5814 | # include <assert.h> |
| 5815 | #endif |
| 5816 | Syntax error |
| 5817 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5818 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5819 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5820 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5821 | # Broken: fails on valid input. |
| 5822 | continue |
| 5823 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5824 | rm -f conftest.err conftest.$ac_ext |
| 5825 | |
| 5826 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5827 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5829 | /* end confdefs.h. */ |
| 5830 | #include <ac_nonexistent.h> |
| 5831 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5832 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5833 | # Broken: success on invalid input. |
| 5834 | continue |
| 5835 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5836 | # Passes both tests. |
| 5837 | ac_preproc_ok=: |
| 5838 | break |
| 5839 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5840 | rm -f conftest.err conftest.$ac_ext |
| 5841 | |
| 5842 | done |
| 5843 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5844 | rm -f conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5845 | if $ac_preproc_ok; then : |
| 5846 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5847 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5848 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5849 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5850 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5851 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5852 | fi |
| 5853 | |
| 5854 | ac_ext=c |
| 5855 | ac_cpp='$CPP $CPPFLAGS' |
| 5856 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5857 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5858 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5859 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5861 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5862 | if test "${ac_cv_path_SED+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5863 | $as_echo_n "(cached) " >&6 |
| 5864 | else |
| 5865 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 5866 | for ac_i in 1 2 3 4 5 6 7; do |
| 5867 | ac_script="$ac_script$as_nl$ac_script" |
| 5868 | done |
| 5869 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5870 | { ac_script=; unset ac_script;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5871 | if test -z "$SED"; then |
| 5872 | ac_path_SED_found=false |
| 5873 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5875 | for as_dir in $PATH |
| 5876 | do |
| 5877 | IFS=$as_save_IFS |
| 5878 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5879 | for ac_prog in sed gsed; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5880 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5881 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 5882 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 5883 | # Check for GNU ac_path_SED and select it if it is found. |
| 5884 | # Check for GNU $ac_path_SED |
| 5885 | case `"$ac_path_SED" --version 2>&1` in |
| 5886 | *GNU*) |
| 5887 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 5888 | *) |
| 5889 | ac_count=0 |
| 5890 | $as_echo_n 0123456789 >"conftest.in" |
| 5891 | while : |
| 5892 | do |
| 5893 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5894 | mv "conftest.tmp" "conftest.in" |
| 5895 | cp "conftest.in" "conftest.nl" |
| 5896 | $as_echo '' >> "conftest.nl" |
| 5897 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5898 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5899 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5900 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 5901 | # Best one so far, save it but keep looking for a better one |
| 5902 | ac_cv_path_SED="$ac_path_SED" |
| 5903 | ac_path_SED_max=$ac_count |
| 5904 | fi |
| 5905 | # 10*(2^10) chars as input seems more than enough |
| 5906 | test $ac_count -gt 10 && break |
| 5907 | done |
| 5908 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5909 | esac |
| 5910 | |
| 5911 | $ac_path_SED_found && break 3 |
| 5912 | done |
| 5913 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5914 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5915 | IFS=$as_save_IFS |
| 5916 | if test -z "$ac_cv_path_SED"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5917 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5918 | fi |
| 5919 | else |
| 5920 | ac_cv_path_SED=$SED |
| 5921 | fi |
| 5922 | |
| 5923 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5925 | $as_echo "$ac_cv_path_SED" >&6; } |
| 5926 | SED="$ac_cv_path_SED" |
| 5927 | rm -f conftest.sed |
| 5928 | |
| 5929 | test -z "$SED" && SED=sed |
| 5930 | Xsed="$SED -e 1s/^X//" |
| 5931 | |
| 5932 | |
| 5933 | |
| 5934 | |
| 5935 | |
| 5936 | |
| 5937 | |
| 5938 | |
| 5939 | |
| 5940 | |
| 5941 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5943 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5944 | if test "${ac_cv_path_GREP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5945 | $as_echo_n "(cached) " >&6 |
| 5946 | else |
| 5947 | if test -z "$GREP"; then |
| 5948 | ac_path_GREP_found=false |
| 5949 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5951 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5952 | do |
| 5953 | IFS=$as_save_IFS |
| 5954 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5955 | for ac_prog in grep ggrep; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5957 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5958 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5959 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5960 | # Check for GNU $ac_path_GREP |
| 5961 | case `"$ac_path_GREP" --version 2>&1` in |
| 5962 | *GNU*) |
| 5963 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5964 | *) |
| 5965 | ac_count=0 |
| 5966 | $as_echo_n 0123456789 >"conftest.in" |
| 5967 | while : |
| 5968 | do |
| 5969 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5970 | mv "conftest.tmp" "conftest.in" |
| 5971 | cp "conftest.in" "conftest.nl" |
| 5972 | $as_echo 'GREP' >> "conftest.nl" |
| 5973 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5974 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5975 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5976 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5977 | # Best one so far, save it but keep looking for a better one |
| 5978 | ac_cv_path_GREP="$ac_path_GREP" |
| 5979 | ac_path_GREP_max=$ac_count |
| 5980 | fi |
| 5981 | # 10*(2^10) chars as input seems more than enough |
| 5982 | test $ac_count -gt 10 && break |
| 5983 | done |
| 5984 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5985 | esac |
| 5986 | |
| 5987 | $ac_path_GREP_found && break 3 |
| 5988 | done |
| 5989 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5990 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5991 | IFS=$as_save_IFS |
| 5992 | if test -z "$ac_cv_path_GREP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5993 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5994 | fi |
| 5995 | else |
| 5996 | ac_cv_path_GREP=$GREP |
| 5997 | fi |
| 5998 | |
| 5999 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6001 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6002 | GREP="$ac_cv_path_GREP" |
| 6003 | |
| 6004 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6006 | $as_echo_n "checking for egrep... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6007 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6008 | $as_echo_n "(cached) " >&6 |
| 6009 | else |
| 6010 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6011 | then ac_cv_path_EGREP="$GREP -E" |
| 6012 | else |
| 6013 | if test -z "$EGREP"; then |
| 6014 | ac_path_EGREP_found=false |
| 6015 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6017 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6018 | do |
| 6019 | IFS=$as_save_IFS |
| 6020 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6021 | for ac_prog in egrep; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6023 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6024 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 6025 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6026 | # Check for GNU $ac_path_EGREP |
| 6027 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6028 | *GNU*) |
| 6029 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6030 | *) |
| 6031 | ac_count=0 |
| 6032 | $as_echo_n 0123456789 >"conftest.in" |
| 6033 | while : |
| 6034 | do |
| 6035 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6036 | mv "conftest.tmp" "conftest.in" |
| 6037 | cp "conftest.in" "conftest.nl" |
| 6038 | $as_echo 'EGREP' >> "conftest.nl" |
| 6039 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6040 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6041 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6042 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6043 | # Best one so far, save it but keep looking for a better one |
| 6044 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6045 | ac_path_EGREP_max=$ac_count |
| 6046 | fi |
| 6047 | # 10*(2^10) chars as input seems more than enough |
| 6048 | test $ac_count -gt 10 && break |
| 6049 | done |
| 6050 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6051 | esac |
| 6052 | |
| 6053 | $ac_path_EGREP_found && break 3 |
| 6054 | done |
| 6055 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6056 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6057 | IFS=$as_save_IFS |
| 6058 | if test -z "$ac_cv_path_EGREP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6059 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6060 | fi |
| 6061 | else |
| 6062 | ac_cv_path_EGREP=$EGREP |
| 6063 | fi |
| 6064 | |
| 6065 | fi |
| 6066 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6068 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6069 | EGREP="$ac_cv_path_EGREP" |
| 6070 | |
| 6071 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6073 | $as_echo_n "checking for fgrep... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6074 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6075 | $as_echo_n "(cached) " >&6 |
| 6076 | else |
| 6077 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 6078 | then ac_cv_path_FGREP="$GREP -F" |
| 6079 | else |
| 6080 | if test -z "$FGREP"; then |
| 6081 | ac_path_FGREP_found=false |
| 6082 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6084 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6085 | do |
| 6086 | IFS=$as_save_IFS |
| 6087 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6088 | for ac_prog in fgrep; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6090 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6091 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 6092 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 6093 | # Check for GNU $ac_path_FGREP |
| 6094 | case `"$ac_path_FGREP" --version 2>&1` in |
| 6095 | *GNU*) |
| 6096 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 6097 | *) |
| 6098 | ac_count=0 |
| 6099 | $as_echo_n 0123456789 >"conftest.in" |
| 6100 | while : |
| 6101 | do |
| 6102 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6103 | mv "conftest.tmp" "conftest.in" |
| 6104 | cp "conftest.in" "conftest.nl" |
| 6105 | $as_echo 'FGREP' >> "conftest.nl" |
| 6106 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6107 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6108 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6109 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 6110 | # Best one so far, save it but keep looking for a better one |
| 6111 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 6112 | ac_path_FGREP_max=$ac_count |
| 6113 | fi |
| 6114 | # 10*(2^10) chars as input seems more than enough |
| 6115 | test $ac_count -gt 10 && break |
| 6116 | done |
| 6117 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6118 | esac |
| 6119 | |
| 6120 | $ac_path_FGREP_found && break 3 |
| 6121 | done |
| 6122 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6123 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6124 | IFS=$as_save_IFS |
| 6125 | if test -z "$ac_cv_path_FGREP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6126 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6127 | fi |
| 6128 | else |
| 6129 | ac_cv_path_FGREP=$FGREP |
| 6130 | fi |
| 6131 | |
| 6132 | fi |
| 6133 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6135 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 6136 | FGREP="$ac_cv_path_FGREP" |
| 6137 | |
| 6138 | |
| 6139 | test -z "$GREP" && GREP=grep |
| 6140 | |
| 6141 | |
| 6142 | |
| 6143 | |
| 6144 | |
| 6145 | |
| 6146 | |
| 6147 | |
| 6148 | |
| 6149 | |
| 6150 | |
| 6151 | |
| 6152 | |
| 6153 | |
| 6154 | |
| 6155 | |
| 6156 | |
| 6157 | |
| 6158 | |
| 6159 | # Check whether --with-gnu-ld was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6160 | if test "${with_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6161 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 6162 | else |
| 6163 | with_gnu_ld=no |
| 6164 | fi |
| 6165 | |
| 6166 | ac_prog=ld |
| 6167 | if test "$GCC" = yes; then |
| 6168 | # Check if gcc -print-prog-name=ld gives a path. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6170 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 6171 | case $host in |
| 6172 | *-*-mingw*) |
| 6173 | # gcc leaves a trailing carriage return which upsets mingw |
| 6174 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 6175 | *) |
| 6176 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 6177 | esac |
| 6178 | case $ac_prog in |
| 6179 | # Accept absolute paths. |
| 6180 | [\\/]* | ?:[\\/]*) |
| 6181 | re_direlt='/[^/][^/]*/\.\./' |
| 6182 | # Canonicalize the pathname of ld |
| 6183 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 6184 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 6185 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 6186 | done |
| 6187 | test -z "$LD" && LD="$ac_prog" |
| 6188 | ;; |
| 6189 | "") |
| 6190 | # If it fails, then pretend we aren't using GCC. |
| 6191 | ac_prog=ld |
| 6192 | ;; |
| 6193 | *) |
| 6194 | # If it is relative, then search for the first ld in PATH. |
| 6195 | with_gnu_ld=unknown |
| 6196 | ;; |
| 6197 | esac |
| 6198 | elif test "$with_gnu_ld" = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6200 | $as_echo_n "checking for GNU ld... " >&6; } |
| 6201 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6203 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 6204 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6205 | if test "${lt_cv_path_LD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6206 | $as_echo_n "(cached) " >&6 |
| 6207 | else |
| 6208 | if test -z "$LD"; then |
| 6209 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 6210 | for ac_dir in $PATH; do |
| 6211 | IFS="$lt_save_ifs" |
| 6212 | test -z "$ac_dir" && ac_dir=. |
| 6213 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 6214 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 6215 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 6216 | # but apparently some variants of GNU ld only accept -v. |
| 6217 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 6218 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 6219 | *GNU* | *'with BFD'*) |
| 6220 | test "$with_gnu_ld" != no && break |
| 6221 | ;; |
| 6222 | *) |
| 6223 | test "$with_gnu_ld" != yes && break |
| 6224 | ;; |
| 6225 | esac |
| 6226 | fi |
| 6227 | done |
| 6228 | IFS="$lt_save_ifs" |
| 6229 | else |
| 6230 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 6231 | fi |
| 6232 | fi |
| 6233 | |
| 6234 | LD="$lt_cv_path_LD" |
| 6235 | if test -n "$LD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6237 | $as_echo "$LD" >&6; } |
| 6238 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6240 | $as_echo "no" >&6; } |
| 6241 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6242 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 6243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6244 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6245 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6246 | $as_echo_n "(cached) " >&6 |
| 6247 | else |
| 6248 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 6249 | case `$LD -v 2>&1 </dev/null` in |
| 6250 | *GNU* | *'with BFD'*) |
| 6251 | lt_cv_prog_gnu_ld=yes |
| 6252 | ;; |
| 6253 | *) |
| 6254 | lt_cv_prog_gnu_ld=no |
| 6255 | ;; |
| 6256 | esac |
| 6257 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6259 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 6260 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 6261 | |
| 6262 | |
| 6263 | |
| 6264 | |
| 6265 | |
| 6266 | |
| 6267 | |
| 6268 | |
| 6269 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6270 | |
| 6271 | if test "x$CC" != xcc; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6273 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 6274 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6276 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 6277 | fi |
| 6278 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 6279 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6280 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6281 | $as_echo_n "(cached) " >&6 |
| 6282 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6284 | /* end confdefs.h. */ |
| 6285 | |
| 6286 | int |
| 6287 | main () |
| 6288 | { |
| 6289 | |
| 6290 | ; |
| 6291 | return 0; |
| 6292 | } |
| 6293 | _ACEOF |
| 6294 | # Make sure it works both with $CC and with simple cc. |
| 6295 | # We do the test twice because some compilers refuse to overwrite an |
| 6296 | # existing .o file with -o, though they will create one. |
| 6297 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 6298 | rm -f conftest2.* |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6299 | if { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6301 | *) ac_try_echo=$ac_try;; |
| 6302 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6303 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6304 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6305 | (eval "$ac_try") 2>&5 |
| 6306 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6308 | test $ac_status = 0; } && |
| 6309 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6311 | *) ac_try_echo=$ac_try;; |
| 6312 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6313 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6314 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6315 | (eval "$ac_try") 2>&5 |
| 6316 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6318 | test $ac_status = 0; }; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6319 | then |
| 6320 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 6321 | if test "x$CC" != xcc; then |
| 6322 | # Test first that cc exists at all. |
| 6323 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6324 | { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6326 | *) ac_try_echo=$ac_try;; |
| 6327 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6328 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6329 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6330 | (eval "$ac_try") 2>&5 |
| 6331 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6332 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6333 | test $ac_status = 0; }; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6334 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 6335 | rm -f conftest2.* |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6336 | if { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6338 | *) ac_try_echo=$ac_try;; |
| 6339 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6340 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6341 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6342 | (eval "$ac_try") 2>&5 |
| 6343 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6344 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6345 | test $ac_status = 0; } && |
| 6346 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6348 | *) ac_try_echo=$ac_try;; |
| 6349 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6350 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6351 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6352 | (eval "$ac_try") 2>&5 |
| 6353 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6354 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6355 | test $ac_status = 0; }; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6356 | then |
| 6357 | # cc works too. |
| 6358 | : |
| 6359 | else |
| 6360 | # cc exists but doesn't like -o. |
| 6361 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 6362 | fi |
| 6363 | fi |
| 6364 | fi |
| 6365 | else |
| 6366 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 6367 | fi |
| 6368 | rm -f core conftest* |
| 6369 | |
| 6370 | fi |
| 6371 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6373 | $as_echo "yes" >&6; } |
| 6374 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6376 | $as_echo "no" >&6; } |
| 6377 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6378 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6379 | |
| 6380 | fi |
| 6381 | |
| 6382 | # FIXME: we rely on the cache variable name because |
| 6383 | # there is no other way. |
| 6384 | set dummy $CC |
| 6385 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 6386 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 6387 | if test "$am_t" != yes; then |
| 6388 | # Losing compiler, so override with the script. |
| 6389 | # FIXME: It is wrong to rewrite CC. |
| 6390 | # But if we don't then we get into trouble of one sort or another. |
| 6391 | # A longer-term fix would be to have automake use am__CC in this case, |
| 6392 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 6393 | CC="$am_aux_dir/compile $CC" |
| 6394 | fi |
| 6395 | |
| 6396 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6397 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6399 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 6400 | set x ${MAKE-make} |
| 6401 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6402 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6403 | $as_echo_n "(cached) " >&6 |
| 6404 | else |
| 6405 | cat >conftest.make <<\_ACEOF |
| 6406 | SHELL = /bin/sh |
| 6407 | all: |
| 6408 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 6409 | _ACEOF |
| 6410 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 6411 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 6412 | *@@@%%%=?*=@@@%%%*) |
| 6413 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 6414 | *) |
| 6415 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 6416 | esac |
| 6417 | rm -f conftest.make |
| 6418 | fi |
| 6419 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6421 | $as_echo "yes" >&6; } |
| 6422 | SET_MAKE= |
| 6423 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6425 | $as_echo "no" >&6; } |
| 6426 | SET_MAKE="MAKE=${MAKE-make}" |
| 6427 | fi |
| 6428 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6429 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6431 | $as_echo_n "checking maximum warning verbosity option... " >&6; } |
| 6432 | |
| 6433 | |
| 6434 | |
| 6435 | |
| 6436 | # Check whether --with-maximum-compile-warnings was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6437 | if test "${with_maximum_compile_warnings+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6438 | withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval" |
| 6439 | else |
| 6440 | ac_compile_warnings_on="" |
| 6441 | fi |
| 6442 | |
| 6443 | |
| 6444 | if test x"$ac_compile_warnings_on" = xno |
| 6445 | then |
| 6446 | ac_compile_warnings_msg=no |
| 6447 | else |
| 6448 | if test -n "$CXX" |
| 6449 | then |
| 6450 | if test "$GXX" = "yes" |
| 6451 | then |
| 6452 | ac_compile_warnings_opt='-Wall -W' |
| 6453 | fi |
| 6454 | CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" |
| 6455 | ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" |
| 6456 | fi |
| 6457 | |
| 6458 | if test -n "$CC" |
| 6459 | then |
| 6460 | if test "$GCC" = "yes" |
| 6461 | then |
| 6462 | ac_compile_warnings_opt='-Wall -W' |
| 6463 | fi |
| 6464 | CFLAGS="$CFLAGS $ac_compile_warnings_opt" |
| 6465 | ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" |
| 6466 | fi |
| 6467 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6469 | $as_echo "$ac_compile_warnings_msg" >&6; } |
| 6470 | unset ac_compile_warnings_msg |
| 6471 | unset ac_compile_warnings_opt |
| 6472 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6474 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6475 | LN_S=$as_ln_s |
| 6476 | if test "$LN_S" = "ln -s"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6478 | $as_echo "yes" >&6; } |
| 6479 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6481 | $as_echo "no, using $LN_S" >&6; } |
| 6482 | fi |
| 6483 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6485 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } |
| 6486 | |
| 6487 | # Check whether --with-dmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6488 | if test "${with_dmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6489 | withval=$with_dmalloc; if test "$withval" = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6491 | $as_echo "yes" >&6; } |
| 6492 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6493 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6494 | |
| 6495 | LIBS="$LIBS -ldmalloc" |
| 6496 | LDFLAGS="$LDFLAGS -g" |
| 6497 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6499 | $as_echo "no" >&6; } |
| 6500 | fi |
| 6501 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6503 | $as_echo "no" >&6; } |
| 6504 | fi |
| 6505 | |
| 6506 | |
| 6507 | |
| 6508 | |
| 6509 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 6510 | if test -n "$ac_tool_prefix"; then |
| 6511 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 6512 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6514 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6515 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6516 | $as_echo_n "(cached) " >&6 |
| 6517 | else |
| 6518 | case $PKG_CONFIG in |
| 6519 | [\\/]* | ?:[\\/]*) |
| 6520 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 6521 | ;; |
| 6522 | *) |
| 6523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6524 | for as_dir in $PATH |
| 6525 | do |
| 6526 | IFS=$as_save_IFS |
| 6527 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6530 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6531 | $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] | 6532 | break 2 |
| 6533 | fi |
| 6534 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6535 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6536 | IFS=$as_save_IFS |
| 6537 | |
| 6538 | ;; |
| 6539 | esac |
| 6540 | fi |
| 6541 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 6542 | if test -n "$PKG_CONFIG"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6544 | $as_echo "$PKG_CONFIG" >&6; } |
| 6545 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6547 | $as_echo "no" >&6; } |
| 6548 | fi |
| 6549 | |
| 6550 | |
| 6551 | fi |
| 6552 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 6553 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 6554 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 6555 | set dummy pkg-config; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6557 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6558 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6559 | $as_echo_n "(cached) " >&6 |
| 6560 | else |
| 6561 | case $ac_pt_PKG_CONFIG in |
| 6562 | [\\/]* | ?:[\\/]*) |
| 6563 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 6564 | ;; |
| 6565 | *) |
| 6566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6567 | for as_dir in $PATH |
| 6568 | do |
| 6569 | IFS=$as_save_IFS |
| 6570 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6571 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6573 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6574 | $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] | 6575 | break 2 |
| 6576 | fi |
| 6577 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6578 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6579 | IFS=$as_save_IFS |
| 6580 | |
| 6581 | ;; |
| 6582 | esac |
| 6583 | fi |
| 6584 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 6585 | if test -n "$ac_pt_PKG_CONFIG"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6587 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 6588 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6590 | $as_echo "no" >&6; } |
| 6591 | fi |
| 6592 | |
| 6593 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 6594 | PKG_CONFIG="" |
| 6595 | else |
| 6596 | case $cross_compiling:$ac_tool_warned in |
| 6597 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6598 | { $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] | 6599 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6600 | ac_tool_warned=yes ;; |
| 6601 | esac |
| 6602 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 6603 | fi |
| 6604 | else |
| 6605 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 6606 | fi |
| 6607 | |
| 6608 | fi |
| 6609 | if test -n "$PKG_CONFIG"; then |
| 6610 | _pkg_min_version=0.9.0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6612 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 6613 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6615 | $as_echo "yes" >&6; } |
| 6616 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6618 | $as_echo "no" >&6; } |
| 6619 | PKG_CONFIG="" |
| 6620 | fi |
| 6621 | |
| 6622 | fi |
| 6623 | |
| 6624 | # |
| 6625 | # Enable OS features. |
| 6626 | # |
| 6627 | |
| 6628 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6629 | { $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] | 6630 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6631 | if test "${ac_cv_header_stdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6632 | $as_echo_n "(cached) " >&6 |
| 6633 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6635 | /* end confdefs.h. */ |
| 6636 | #include <stdlib.h> |
| 6637 | #include <stdarg.h> |
| 6638 | #include <string.h> |
| 6639 | #include <float.h> |
| 6640 | |
| 6641 | int |
| 6642 | main () |
| 6643 | { |
| 6644 | |
| 6645 | ; |
| 6646 | return 0; |
| 6647 | } |
| 6648 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6649 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6650 | ac_cv_header_stdc=yes |
| 6651 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6652 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6653 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6655 | |
| 6656 | if test $ac_cv_header_stdc = yes; then |
| 6657 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6659 | /* end confdefs.h. */ |
| 6660 | #include <string.h> |
| 6661 | |
| 6662 | _ACEOF |
| 6663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6664 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6665 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6666 | else |
| 6667 | ac_cv_header_stdc=no |
| 6668 | fi |
| 6669 | rm -f conftest* |
| 6670 | |
| 6671 | fi |
| 6672 | |
| 6673 | if test $ac_cv_header_stdc = yes; then |
| 6674 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6676 | /* end confdefs.h. */ |
| 6677 | #include <stdlib.h> |
| 6678 | |
| 6679 | _ACEOF |
| 6680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6681 | $EGREP "free" >/dev/null 2>&1; then : |
| 6682 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6683 | else |
| 6684 | ac_cv_header_stdc=no |
| 6685 | fi |
| 6686 | rm -f conftest* |
| 6687 | |
| 6688 | fi |
| 6689 | |
| 6690 | if test $ac_cv_header_stdc = yes; then |
| 6691 | # /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] | 6692 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6693 | : |
| 6694 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6696 | /* end confdefs.h. */ |
| 6697 | #include <ctype.h> |
| 6698 | #include <stdlib.h> |
| 6699 | #if ((' ' & 0x0FF) == 0x020) |
| 6700 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6701 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6702 | #else |
| 6703 | # define ISLOWER(c) \ |
| 6704 | (('a' <= (c) && (c) <= 'i') \ |
| 6705 | || ('j' <= (c) && (c) <= 'r') \ |
| 6706 | || ('s' <= (c) && (c) <= 'z')) |
| 6707 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6708 | #endif |
| 6709 | |
| 6710 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6711 | int |
| 6712 | main () |
| 6713 | { |
| 6714 | int i; |
| 6715 | for (i = 0; i < 256; i++) |
| 6716 | if (XOR (islower (i), ISLOWER (i)) |
| 6717 | || toupper (i) != TOUPPER (i)) |
| 6718 | return 2; |
| 6719 | return 0; |
| 6720 | } |
| 6721 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6722 | if ac_fn_c_try_run "$LINENO"; then : |
| 6723 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6724 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6725 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6726 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6727 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6728 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6729 | fi |
| 6730 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6731 | fi |
| 6732 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6734 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6735 | if test $ac_cv_header_stdc = yes; then |
| 6736 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6737 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6738 | |
| 6739 | fi |
| 6740 | |
| 6741 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6742 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6743 | inttypes.h stdint.h unistd.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6744 | do : |
| 6745 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6746 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6747 | " |
| 6748 | eval as_val=\$$as_ac_Header |
| 6749 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6750 | cat >>confdefs.h <<_ACEOF |
| 6751 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6752 | _ACEOF |
| 6753 | |
| 6754 | fi |
| 6755 | |
| 6756 | done |
| 6757 | |
| 6758 | |
| 6759 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6760 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 6761 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6762 | MINIX=yes |
| 6763 | else |
| 6764 | MINIX= |
| 6765 | fi |
| 6766 | |
| 6767 | |
| 6768 | if test "$MINIX" = yes; then |
| 6769 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6770 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6771 | |
| 6772 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6773 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6774 | |
| 6775 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6776 | $as_echo "#define _MINIX 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6777 | |
| 6778 | fi |
| 6779 | |
| 6780 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6782 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6783 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6784 | $as_echo_n "(cached) " >&6 |
| 6785 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6787 | /* end confdefs.h. */ |
| 6788 | |
| 6789 | # define __EXTENSIONS__ 1 |
| 6790 | $ac_includes_default |
| 6791 | int |
| 6792 | main () |
| 6793 | { |
| 6794 | |
| 6795 | ; |
| 6796 | return 0; |
| 6797 | } |
| 6798 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6799 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6800 | ac_cv_safe_to_define___extensions__=yes |
| 6801 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6802 | ac_cv_safe_to_define___extensions__=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6803 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6805 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6807 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 6808 | test $ac_cv_safe_to_define___extensions__ = yes && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6809 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6810 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6811 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6812 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6813 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6814 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6815 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6816 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6817 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 6818 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6819 | |
| 6820 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6821 | # |
| 6822 | # Enable run-time checking. |
| 6823 | # |
| 6824 | # Check whether --enable-bounds-checking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6825 | if test "${enable_bounds_checking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6826 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 6827 | else |
| 6828 | enable_bounds_checking='no' |
| 6829 | fi |
| 6830 | |
| 6831 | |
| 6832 | if test "$enable_bounds_checking" = yes; then |
| 6833 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6834 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6835 | |
| 6836 | fi |
| 6837 | |
| 6838 | # |
| 6839 | # Tests for Windows |
| 6840 | # |
| 6841 | |
| 6842 | |
| 6843 | |
| 6844 | GDI32_LIBS='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6845 | native_win32_build='no' |
| 6846 | cygwin_build='no' |
| 6847 | case "${host_os}" in |
| 6848 | cygwin* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6849 | cygwin_build='yes' |
| 6850 | GDI32_LIBS='-lgdi32' |
| 6851 | ;; |
| 6852 | mingw* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6853 | native_win32_build='yes' |
| 6854 | GDI32_LIBS='-lgdi32' |
| 6855 | ;; |
| 6856 | esac |
| 6857 | if test "${GDI32_LIBS}x" != 'x'; then |
| 6858 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6859 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6860 | |
| 6861 | fi |
| 6862 | |
| 6863 | if test "${GDI32_LIBS}x" != 'x' ; then |
| 6864 | WINGDI32_DELEGATE_TRUE= |
| 6865 | WINGDI32_DELEGATE_FALSE='#' |
| 6866 | else |
| 6867 | WINGDI32_DELEGATE_TRUE='#' |
| 6868 | WINGDI32_DELEGATE_FALSE= |
| 6869 | fi |
| 6870 | |
| 6871 | if test "${native_win32_build}" = 'yes' ; then |
| 6872 | WIN32_NATIVE_BUILD_TRUE= |
| 6873 | WIN32_NATIVE_BUILD_FALSE='#' |
| 6874 | else |
| 6875 | WIN32_NATIVE_BUILD_TRUE='#' |
| 6876 | WIN32_NATIVE_BUILD_FALSE= |
| 6877 | fi |
| 6878 | |
| 6879 | if test "${cygwin_build}" = 'yes' ; then |
| 6880 | CYGWIN_BUILD_TRUE= |
| 6881 | CYGWIN_BUILD_FALSE='#' |
| 6882 | else |
| 6883 | CYGWIN_BUILD_TRUE='#' |
| 6884 | CYGWIN_BUILD_FALSE= |
| 6885 | fi |
| 6886 | |
| 6887 | if test "x${CC}" = 'xcl.exe' ; then |
| 6888 | USING_CL_TRUE= |
| 6889 | USING_CL_FALSE='#' |
| 6890 | else |
| 6891 | USING_CL_TRUE='#' |
| 6892 | USING_CL_FALSE= |
| 6893 | fi |
| 6894 | |
| 6895 | |
| 6896 | WinPathScript="${srcdirfull}/winpath.sh" |
| 6897 | |
| 6898 | |
| 6899 | # |
| 6900 | # Compiler flags tweaks |
| 6901 | # |
| 6902 | if test "${GCC}" != "yes"; then |
| 6903 | case "${host}" in |
| 6904 | *-*-hpux* ) |
| 6905 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 6906 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 6907 | if test -n "${CXXFLAGS}"; then |
| 6908 | CXXFLAGS='-AA' |
| 6909 | else |
| 6910 | CXXFLAGS="${CXXFLAGS} -AA" |
| 6911 | fi |
| 6912 | ;; |
| 6913 | *-dec-osf5.* ) |
| 6914 | # Compaq alphaev68-dec-osf5.1 compiler |
| 6915 | if test -n "${CXXFLAGS}"; then |
| 6916 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 6917 | else |
| 6918 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 6919 | fi |
| 6920 | esac |
| 6921 | fi |
| 6922 | |
| 6923 | # Check for lazy-loading. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6925 | $as_echo_n "checking for linker lazyload option... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6926 | if test "${im_cv_ld_lazyload+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6927 | $as_echo_n "(cached) " >&6 |
| 6928 | else |
| 6929 | |
| 6930 | im_cv_ld_lazyload='none' |
| 6931 | case "${host}" in |
| 6932 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 6933 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 6934 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 6935 | fi |
| 6936 | ;; |
| 6937 | esac |
| 6938 | |
| 6939 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6941 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 6942 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 6943 | if test -z "${LDFLAGS}" ; then |
| 6944 | LDFLAGS="${im_cv_ld_lazyload}" |
| 6945 | else |
| 6946 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 6947 | fi |
| 6948 | fi |
| 6949 | |
| 6950 | case "$host" in |
| 6951 | *darwin* | *-macos10*) |
| 6952 | if test -d /opt/local ; then |
| 6953 | CPPFLAGS="$CPPFLAGS -I/opt/local/include" |
| 6954 | LDFLAGS="$LDFLAGS -L/opt/local/lib" |
| 6955 | elif test -d /sw ; then |
| 6956 | CPPFLAGS="$CPPFLAGS -I/sw/include" |
| 6957 | LDFLAGS="$LDFLAGS -L/sw/lib" |
| 6958 | fi |
| 6959 | # Check whether --enable-osx-universal-binary was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6960 | if test "${enable_osx_universal_binary+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6961 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 6962 | else |
| 6963 | build_osxuniversal=no |
| 6964 | fi |
| 6965 | |
| 6966 | |
| 6967 | if test "${build_osxuniversal}" != no ; then |
| 6968 | if test "$enable_dependency_tracking" != no ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6969 | as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6970 | Please re-run configure with these options: |
| 6971 | --disable-dependency-tracking --enable-osx-universal-binary |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6972 | " "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6973 | fi |
| 6974 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 6975 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 6976 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 6977 | fi |
| 6978 | ;; |
| 6979 | esac |
| 6980 | |
| 6981 | # Enable support for threads |
| 6982 | |
| 6983 | # Check whether --with-threads was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6984 | if test "${with_threads+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6985 | withval=$with_threads; with_threads=$withval |
| 6986 | else |
| 6987 | with_threads='yes' |
| 6988 | fi |
| 6989 | |
| 6990 | |
| 6991 | have_threads=no |
| 6992 | if test "$with_threads" != 'no'; then |
| 6993 | |
| 6994 | |
| 6995 | |
| 6996 | ac_ext=c |
| 6997 | ac_cpp='$CPP $CPPFLAGS' |
| 6998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7001 | |
| 7002 | acx_pthread_ok=no |
| 7003 | |
| 7004 | # We used to check for pthread.h first, but this fails if pthread.h |
| 7005 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 7006 | # It gets checked for in the link test anyway. |
| 7007 | |
| 7008 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 7009 | # etcetera environment variables, and if threads linking works using |
| 7010 | # them: |
| 7011 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 7012 | save_CFLAGS="$CFLAGS" |
| 7013 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7014 | save_LIBS="$LIBS" |
| 7015 | LIBS="$PTHREAD_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7017 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7019 | /* end confdefs.h. */ |
| 7020 | |
| 7021 | /* Override any GCC internal prototype to avoid an error. |
| 7022 | Use char because int might match the return type of a GCC |
| 7023 | builtin and then its argument prototype would still apply. */ |
| 7024 | #ifdef __cplusplus |
| 7025 | extern "C" |
| 7026 | #endif |
| 7027 | char pthread_join (); |
| 7028 | int |
| 7029 | main () |
| 7030 | { |
| 7031 | return pthread_join (); |
| 7032 | ; |
| 7033 | return 0; |
| 7034 | } |
| 7035 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7036 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7037 | acx_pthread_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7038 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7039 | rm -f core conftest.err conftest.$ac_objext \ |
| 7040 | conftest$ac_exeext conftest.$ac_ext |
| 7041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7042 | $as_echo "$acx_pthread_ok" >&6; } |
| 7043 | if test x"$acx_pthread_ok" = xno; then |
| 7044 | PTHREAD_LIBS="" |
| 7045 | PTHREAD_CFLAGS="" |
| 7046 | fi |
| 7047 | LIBS="$save_LIBS" |
| 7048 | CFLAGS="$save_CFLAGS" |
| 7049 | fi |
| 7050 | |
| 7051 | # We must check for the threads library under a number of different |
| 7052 | # names; the ordering is very important because some systems |
| 7053 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 7054 | # libraries is broken (non-POSIX). |
| 7055 | |
| 7056 | # Create a list of thread flags to try. Items starting with a "-" are |
| 7057 | # C compiler flags, and other items are library names, except for "none" |
| 7058 | # which indicates that we try without any flags at all, and "pthread-config" |
| 7059 | # which is a program returning the flags for the Pth emulation library. |
| 7060 | |
| 7061 | acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 7062 | |
| 7063 | # The ordering *is* (sometimes) important. Some notes on the |
| 7064 | # individual items follow: |
| 7065 | |
| 7066 | # pthreads: AIX (must check this before -lpthread) |
| 7067 | # none: in case threads are in libc; should be tried before -Kthread and |
| 7068 | # other compiler flags to prevent continual compiler warnings |
| 7069 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 7070 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 7071 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 7072 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 7073 | # -pthreads: Solaris/gcc |
| 7074 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 7075 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 7076 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 7077 | # also defines -D_REENTRANT) |
| 7078 | # ... -mt is also the pthreads flag for HP/aCC |
| 7079 | # pthread: Linux, etcetera |
| 7080 | # --thread-safe: KAI C++ |
| 7081 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 7082 | |
| 7083 | case "${host_cpu}-${host_os}" in |
| 7084 | *solaris*) |
| 7085 | |
| 7086 | # On Solaris (at least, for some versions), libc contains stubbed |
| 7087 | # (non-functional) versions of the pthreads routines, so link-based |
| 7088 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 7089 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 7090 | # a function called by this macro, so we could check for that, but |
| 7091 | # who knows whether they'll stub that too in a future libc.) So, |
| 7092 | # we'll just look for -pthreads and -lpthread first: |
| 7093 | |
| 7094 | acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" |
| 7095 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7096 | esac |
| 7097 | |
| 7098 | if test x"$acx_pthread_ok" = xno; then |
| 7099 | for flag in $acx_pthread_flags; do |
| 7100 | |
| 7101 | case $flag in |
| 7102 | none) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7104 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 7105 | ;; |
| 7106 | |
| 7107 | -*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7109 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 7110 | PTHREAD_CFLAGS="$flag" |
| 7111 | ;; |
| 7112 | |
| 7113 | pthread-config) |
| 7114 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 7115 | set dummy pthread-config; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7117 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7118 | if test "${ac_cv_prog_acx_pthread_config+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7119 | $as_echo_n "(cached) " >&6 |
| 7120 | else |
| 7121 | if test -n "$acx_pthread_config"; then |
| 7122 | ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. |
| 7123 | else |
| 7124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7125 | for as_dir in $PATH |
| 7126 | do |
| 7127 | IFS=$as_save_IFS |
| 7128 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7131 | ac_cv_prog_acx_pthread_config="yes" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7132 | $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] | 7133 | break 2 |
| 7134 | fi |
| 7135 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7136 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7137 | IFS=$as_save_IFS |
| 7138 | |
| 7139 | test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" |
| 7140 | fi |
| 7141 | fi |
| 7142 | acx_pthread_config=$ac_cv_prog_acx_pthread_config |
| 7143 | if test -n "$acx_pthread_config"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7145 | $as_echo "$acx_pthread_config" >&6; } |
| 7146 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7148 | $as_echo "no" >&6; } |
| 7149 | fi |
| 7150 | |
| 7151 | |
| 7152 | if test x"$acx_pthread_config" = xno; then continue; fi |
| 7153 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 7154 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 7155 | ;; |
| 7156 | |
| 7157 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7159 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 7160 | PTHREAD_LIBS="-l$flag" |
| 7161 | ;; |
| 7162 | esac |
| 7163 | |
| 7164 | save_LIBS="$LIBS" |
| 7165 | save_CFLAGS="$CFLAGS" |
| 7166 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7167 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7168 | |
| 7169 | # Check for various functions. We must include pthread.h, |
| 7170 | # since some functions may be macros. (On the Sequent, we |
| 7171 | # need a special flag -Kthread to make this header compile.) |
| 7172 | # We check for pthread_join because it is in -lpthread on IRIX |
| 7173 | # while pthread_create is in libc. We check for pthread_attr_init |
| 7174 | # due to DEC craziness with -lpthreads. We check for |
| 7175 | # pthread_cleanup_push because it is one of the few pthread |
| 7176 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 7177 | # We try pthread_create on general principles. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7179 | /* end confdefs.h. */ |
| 7180 | #include <pthread.h> |
| 7181 | int |
| 7182 | main () |
| 7183 | { |
| 7184 | pthread_t th; pthread_join(th, 0); |
| 7185 | pthread_attr_init(0); pthread_cleanup_push(0, 0); |
| 7186 | pthread_create(0,0,0,0); pthread_cleanup_pop(0); |
| 7187 | ; |
| 7188 | return 0; |
| 7189 | } |
| 7190 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7191 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7192 | acx_pthread_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7193 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7194 | rm -f core conftest.err conftest.$ac_objext \ |
| 7195 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7196 | |
| 7197 | LIBS="$save_LIBS" |
| 7198 | CFLAGS="$save_CFLAGS" |
| 7199 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7201 | $as_echo "$acx_pthread_ok" >&6; } |
| 7202 | if test "x$acx_pthread_ok" = xyes; then |
| 7203 | break; |
| 7204 | fi |
| 7205 | |
| 7206 | PTHREAD_LIBS="" |
| 7207 | PTHREAD_CFLAGS="" |
| 7208 | done |
| 7209 | fi |
| 7210 | |
| 7211 | # Various other checks: |
| 7212 | if test "x$acx_pthread_ok" = xyes; then |
| 7213 | save_LIBS="$LIBS" |
| 7214 | LIBS="$PTHREAD_LIBS $LIBS" |
| 7215 | save_CFLAGS="$CFLAGS" |
| 7216 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 7217 | |
| 7218 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7220 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 7221 | attr_name=unknown |
| 7222 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7224 | /* end confdefs.h. */ |
| 7225 | #include <pthread.h> |
| 7226 | int |
| 7227 | main () |
| 7228 | { |
| 7229 | int attr=$attr; return attr; |
| 7230 | ; |
| 7231 | return 0; |
| 7232 | } |
| 7233 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7234 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7235 | attr_name=$attr; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7236 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7237 | rm -f core conftest.err conftest.$ac_objext \ |
| 7238 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7239 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7241 | $as_echo "$attr_name" >&6; } |
| 7242 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 7243 | |
| 7244 | cat >>confdefs.h <<_ACEOF |
| 7245 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 7246 | _ACEOF |
| 7247 | |
| 7248 | fi |
| 7249 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7251 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 7252 | flag=no |
| 7253 | case "${host_cpu}-${host_os}" in |
| 7254 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 7255 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 7256 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7258 | $as_echo "${flag}" >&6; } |
| 7259 | if test "x$flag" != xno; then |
| 7260 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 7261 | fi |
| 7262 | |
| 7263 | LIBS="$save_LIBS" |
| 7264 | CFLAGS="$save_CFLAGS" |
| 7265 | |
| 7266 | # More AIX lossage: must compile with xlc_r or cc_r |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7267 | if test x"$GCC" != xyes; then |
| 7268 | for ac_prog in xlc_r cc_r |
| 7269 | do |
| 7270 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7271 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7273 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7274 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7275 | $as_echo_n "(cached) " >&6 |
| 7276 | else |
| 7277 | if test -n "$PTHREAD_CC"; then |
| 7278 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 7279 | else |
| 7280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7281 | for as_dir in $PATH |
| 7282 | do |
| 7283 | IFS=$as_save_IFS |
| 7284 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7287 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7288 | $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] | 7289 | break 2 |
| 7290 | fi |
| 7291 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7292 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7293 | IFS=$as_save_IFS |
| 7294 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7295 | fi |
| 7296 | fi |
| 7297 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 7298 | if test -n "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7300 | $as_echo "$PTHREAD_CC" >&6; } |
| 7301 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7303 | $as_echo "no" >&6; } |
| 7304 | fi |
| 7305 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7306 | |
| 7307 | test -n "$PTHREAD_CC" && break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7308 | done |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7309 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7310 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7311 | else |
| 7312 | PTHREAD_CC=$CC |
| 7313 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7314 | else |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7315 | PTHREAD_CC="$CC" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7316 | fi |
| 7317 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7318 | |
| 7319 | |
| 7320 | |
| 7321 | |
| 7322 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 7323 | if test x"$acx_pthread_ok" = xyes; then |
| 7324 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7325 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7326 | |
| 7327 | : |
| 7328 | else |
| 7329 | acx_pthread_ok=no |
| 7330 | |
| 7331 | fi |
| 7332 | ac_ext=c |
| 7333 | ac_cpp='$CPP $CPPFLAGS' |
| 7334 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7335 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7336 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7337 | |
| 7338 | |
| 7339 | if test "$acx_pthread_ok" = yes; then |
| 7340 | have_threads=yes |
| 7341 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 7342 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 7343 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 7344 | if test "$CC" != "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7345 | { $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] | 7346 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 7347 | CC="$PTHREAD_CC" |
| 7348 | fi |
| 7349 | fi |
| 7350 | fi |
| 7351 | |
| 7352 | # Enable support for OpenMP |
| 7353 | if test "$have_threads" != 'yes'; then |
| 7354 | ac_cv_prog_c_openmp=unsupported |
| 7355 | fi |
| 7356 | |
| 7357 | OPENMP_CFLAGS= |
| 7358 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7359 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7360 | enableval=$enable_openmp; |
| 7361 | fi |
| 7362 | |
| 7363 | if test "$enable_openmp" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7364 | { $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] | 7365 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7366 | if test "${ac_cv_prog_c_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7367 | $as_echo_n "(cached) " >&6 |
| 7368 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7370 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7371 | |
| 7372 | #ifndef _OPENMP |
| 7373 | choke me |
| 7374 | #endif |
| 7375 | #include <omp.h> |
| 7376 | int main () { return omp_get_num_threads (); } |
| 7377 | |
| 7378 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7379 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7380 | ac_cv_prog_c_openmp='none needed' |
| 7381 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7382 | ac_cv_prog_c_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7383 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 7384 | ac_save_CFLAGS=$CFLAGS |
| 7385 | CFLAGS="$CFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7387 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7388 | |
| 7389 | #ifndef _OPENMP |
| 7390 | choke me |
| 7391 | #endif |
| 7392 | #include <omp.h> |
| 7393 | int main () { return omp_get_num_threads (); } |
| 7394 | |
| 7395 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7396 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7397 | ac_cv_prog_c_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7398 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7399 | rm -f core conftest.err conftest.$ac_objext \ |
| 7400 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7401 | CFLAGS=$ac_save_CFLAGS |
| 7402 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 7403 | break |
| 7404 | fi |
| 7405 | done |
| 7406 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7407 | rm -f core conftest.err conftest.$ac_objext \ |
| 7408 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7409 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7410 | { $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] | 7411 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 7412 | case $ac_cv_prog_c_openmp in #( |
| 7413 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7414 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7415 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7416 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7417 | esac |
| 7418 | fi |
| 7419 | |
| 7420 | |
| 7421 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 7422 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 7423 | |
| 7424 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7425 | # Enable support for OpenCL |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7426 | |
| 7427 | ac_ext=c |
| 7428 | ac_cpp='$CPP $CPPFLAGS' |
| 7429 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7430 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7431 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7432 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7434 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7435 | if test "${ax_cv_c_compiler_ms+set}" = set; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +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 | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7439 | /* end confdefs.h. */ |
| 7440 | |
| 7441 | int |
| 7442 | main () |
| 7443 | { |
| 7444 | #ifndef _MSC_VER |
| 7445 | choke me |
| 7446 | #endif |
| 7447 | |
| 7448 | ; |
| 7449 | return 0; |
| 7450 | } |
| 7451 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7452 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7453 | ax_compiler_ms=yes |
| 7454 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7455 | ax_compiler_ms=no |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7456 | fi |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7458 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 7459 | |
| 7460 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7462 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7463 | if test X$ax_compiler_ms = Xno; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7464 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" |
| 7465 | fi |
| 7466 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7467 | ax_save_CPPFLAGS=$CPPFLAGS |
| 7468 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7469 | for ac_header in CL/opencl.h OpenCL/OpenCL.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7470 | do : |
| 7471 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7472 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 7473 | eval as_val=\$$as_ac_Header |
| 7474 | if test "x$as_val" = x""yes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7475 | cat >>confdefs.h <<_ACEOF |
| 7476 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7477 | _ACEOF |
| 7478 | |
| 7479 | fi |
| 7480 | |
| 7481 | done |
| 7482 | |
| 7483 | CPPFLAGS=$ax_save_CPPFLAGS |
| 7484 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7485 | for ac_header in windows.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7486 | do : |
| 7487 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 7488 | if test "x$ac_cv_header_windows_h" = x""yes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7489 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7490 | #define HAVE_WINDOWS_H 1 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7491 | _ACEOF |
| 7492 | |
| 7493 | fi |
| 7494 | |
| 7495 | done |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7501 | $as_echo_n "checking for OpenCL library... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7502 | if test "${ax_cv_check_cl_libcl+set}" = set; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7503 | $as_echo_n "(cached) " >&6 |
| 7504 | else |
| 7505 | ax_cv_check_cl_libcl=no |
| 7506 | case $host_cpu in |
| 7507 | x86_64) ax_check_cl_libdir=lib64 ;; |
| 7508 | *) ax_check_cl_libdir=lib ;; |
| 7509 | esac |
| 7510 | ax_save_CPPFLAGS=$CPPFLAGS |
| 7511 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 7512 | ax_save_LIBS=$LIBS |
| 7513 | LIBS="" |
| cristy | 4dc4443 | 2009-12-30 23:30:06 +0000 | [diff] [blame] | 7514 | ax_check_libs="-lOpenCL -lCL -lclparser" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7515 | for ax_lib in $ax_check_libs; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7516 | if test X$ax_compiler_ms = Xyes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7517 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` |
| 7518 | else |
| 7519 | ax_try_lib=$ax_lib |
| 7520 | fi |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7521 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7523 | /* end confdefs.h. */ |
| 7524 | |
| 7525 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7526 | # include <windows.h> |
| 7527 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7528 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7529 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7530 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7531 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7532 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7533 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7534 | # endif |
| 7535 | int |
| 7536 | main () |
| 7537 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7538 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7539 | ; |
| 7540 | return 0; |
| 7541 | } |
| 7542 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7543 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7544 | ax_cv_check_cl_libcl=$ax_try_lib; break |
| 7545 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7546 | ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS" |
| 7547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7548 | /* end confdefs.h. */ |
| 7549 | |
| 7550 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7551 | # include <windows.h> |
| 7552 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7553 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7554 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7555 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7556 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7557 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7558 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7559 | # endif |
| 7560 | int |
| 7561 | main () |
| 7562 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7563 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7564 | ; |
| 7565 | return 0; |
| 7566 | } |
| 7567 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7568 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7569 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break |
| 7570 | else |
| cristy | 4dc4443 | 2009-12-30 23:30:06 +0000 | [diff] [blame] | 7571 | ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7573 | /* end confdefs.h. */ |
| 7574 | |
| 7575 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7576 | # include <windows.h> |
| 7577 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7578 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7579 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7580 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7581 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7582 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7583 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7584 | # endif |
| 7585 | int |
| 7586 | main () |
| 7587 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7588 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7593 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7594 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7595 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7596 | rm -f core conftest.err conftest.$ac_objext \ |
| 7597 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7598 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7599 | rm -f core conftest.err conftest.$ac_objext \ |
| 7600 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7601 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7602 | rm -f core conftest.err conftest.$ac_objext \ |
| 7603 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7604 | done |
| 7605 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7606 | if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7607 | LIBS='-framework OpenCL' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7609 | /* end confdefs.h. */ |
| 7610 | |
| 7611 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 7612 | # include <windows.h> |
| 7613 | # endif |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7614 | # ifdef HAVE_CL_OPENCL_H |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7615 | # include <CL/opencl.h> |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7616 | # elif defined(HAVE_OPENCL_OPENCL_H) |
| 7617 | # include <OpenCL/OpenCL.h> |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7618 | # else |
| cristy | a03a085 | 2009-10-13 02:02:39 +0000 | [diff] [blame] | 7619 | # error no OpenCL.h |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7620 | # endif |
| 7621 | int |
| 7622 | main () |
| 7623 | { |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7624 | clCreateContextFromType(0,0,0,0,0) |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7625 | ; |
| 7626 | return 0; |
| 7627 | } |
| 7628 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7629 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7630 | ax_cv_check_cl_libcl=$LIBS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7631 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7632 | rm -f core conftest.err conftest.$ac_objext \ |
| 7633 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7634 | fi |
| 7635 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7636 | LIBS=$ax_save_LIBS |
| 7637 | CPPFLAGS=$ax_save_CPPFLAGS |
| 7638 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7640 | $as_echo "$ax_cv_check_cl_libcl" >&6; } |
| 7641 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7642 | if test "X$ax_cv_check_cl_libcl" = Xno; then : |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7643 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" |
| 7644 | else |
| 7645 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS" |
| 7646 | fi |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7647 | ac_ext=c |
| 7648 | ac_cpp='$CPP $CPPFLAGS' |
| 7649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7652 | |
| 7653 | |
| 7654 | |
| 7655 | |
| 7656 | |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 7657 | CFLAGS="$CL_CFLAGS $CFLAGS" |
| 7658 | LIBS="$CL_LIBS $LIBS" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 7659 | |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 7660 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7661 | ######## |
| 7662 | # |
| 7663 | # Check for large file support |
| 7664 | # |
| 7665 | ######## |
| 7666 | # Check whether --enable-largefile was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7667 | if test "${enable_largefile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7668 | enableval=$enable_largefile; |
| 7669 | fi |
| 7670 | |
| 7671 | if test "$enable_largefile" != no; then |
| 7672 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7673 | { $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] | 7674 | $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] | 7675 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7676 | $as_echo_n "(cached) " >&6 |
| 7677 | else |
| 7678 | ac_cv_sys_largefile_CC=no |
| 7679 | if test "$GCC" != yes; then |
| 7680 | ac_save_CC=$CC |
| 7681 | while :; do |
| 7682 | # IRIX 6.2 and later do not support large files by default, |
| 7683 | # so use the C compiler's -n32 option if that helps. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7685 | /* end confdefs.h. */ |
| 7686 | #include <sys/types.h> |
| 7687 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7688 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7689 | since some C++ compilers masquerading as C compilers |
| 7690 | incorrectly reject 9223372036854775807. */ |
| 7691 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7692 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7693 | && LARGE_OFF_T % 2147483647 == 1) |
| 7694 | ? 1 : -1]; |
| 7695 | int |
| 7696 | main () |
| 7697 | { |
| 7698 | |
| 7699 | ; |
| 7700 | return 0; |
| 7701 | } |
| 7702 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7703 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7704 | break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7705 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7706 | rm -f core conftest.err conftest.$ac_objext |
| 7707 | CC="$CC -n32" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7708 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7709 | ac_cv_sys_largefile_CC=' -n32'; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7710 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7711 | rm -f core conftest.err conftest.$ac_objext |
| 7712 | break |
| 7713 | done |
| 7714 | CC=$ac_save_CC |
| 7715 | rm -f conftest.$ac_ext |
| 7716 | fi |
| 7717 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7718 | { $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] | 7719 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 7720 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 7721 | CC=$CC$ac_cv_sys_largefile_CC |
| 7722 | fi |
| 7723 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7724 | { $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] | 7725 | $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] | 7726 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7727 | $as_echo_n "(cached) " >&6 |
| 7728 | else |
| 7729 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7731 | /* end confdefs.h. */ |
| 7732 | #include <sys/types.h> |
| 7733 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7734 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7735 | since some C++ compilers masquerading as C compilers |
| 7736 | incorrectly reject 9223372036854775807. */ |
| 7737 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7738 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7739 | && LARGE_OFF_T % 2147483647 == 1) |
| 7740 | ? 1 : -1]; |
| 7741 | int |
| 7742 | main () |
| 7743 | { |
| 7744 | |
| 7745 | ; |
| 7746 | return 0; |
| 7747 | } |
| 7748 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7749 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7750 | ac_cv_sys_file_offset_bits=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7751 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7754 | /* end confdefs.h. */ |
| 7755 | #define _FILE_OFFSET_BITS 64 |
| 7756 | #include <sys/types.h> |
| 7757 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7758 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7759 | since some C++ compilers masquerading as C compilers |
| 7760 | incorrectly reject 9223372036854775807. */ |
| 7761 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7762 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7763 | && LARGE_OFF_T % 2147483647 == 1) |
| 7764 | ? 1 : -1]; |
| 7765 | int |
| 7766 | main () |
| 7767 | { |
| 7768 | |
| 7769 | ; |
| 7770 | return 0; |
| 7771 | } |
| 7772 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7773 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7774 | ac_cv_sys_file_offset_bits=64; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7775 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7777 | ac_cv_sys_file_offset_bits=unknown |
| 7778 | break |
| 7779 | done |
| 7780 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7781 | { $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] | 7782 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 7783 | case $ac_cv_sys_file_offset_bits in #( |
| 7784 | no | unknown) ;; |
| 7785 | *) |
| 7786 | cat >>confdefs.h <<_ACEOF |
| 7787 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 7788 | _ACEOF |
| 7789 | ;; |
| 7790 | esac |
| 7791 | rm -rf conftest* |
| 7792 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7793 | { $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] | 7794 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7795 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7796 | $as_echo_n "(cached) " >&6 |
| 7797 | else |
| 7798 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7800 | /* end confdefs.h. */ |
| 7801 | #include <sys/types.h> |
| 7802 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7803 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7804 | since some C++ compilers masquerading as C compilers |
| 7805 | incorrectly reject 9223372036854775807. */ |
| 7806 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7807 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7808 | && LARGE_OFF_T % 2147483647 == 1) |
| 7809 | ? 1 : -1]; |
| 7810 | int |
| 7811 | main () |
| 7812 | { |
| 7813 | |
| 7814 | ; |
| 7815 | return 0; |
| 7816 | } |
| 7817 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7818 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7819 | ac_cv_sys_large_files=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7820 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7823 | /* end confdefs.h. */ |
| 7824 | #define _LARGE_FILES 1 |
| 7825 | #include <sys/types.h> |
| 7826 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 7827 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 7828 | since some C++ compilers masquerading as C compilers |
| 7829 | incorrectly reject 9223372036854775807. */ |
| 7830 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 7831 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 7832 | && LARGE_OFF_T % 2147483647 == 1) |
| 7833 | ? 1 : -1]; |
| 7834 | int |
| 7835 | main () |
| 7836 | { |
| 7837 | |
| 7838 | ; |
| 7839 | return 0; |
| 7840 | } |
| 7841 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7842 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7843 | ac_cv_sys_large_files=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7844 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7846 | ac_cv_sys_large_files=unknown |
| 7847 | break |
| 7848 | done |
| 7849 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7850 | { $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] | 7851 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 7852 | case $ac_cv_sys_large_files in #( |
| 7853 | no | unknown) ;; |
| 7854 | *) |
| 7855 | cat >>confdefs.h <<_ACEOF |
| 7856 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 7857 | _ACEOF |
| 7858 | ;; |
| 7859 | esac |
| 7860 | rm -rf conftest* |
| 7861 | fi |
| 7862 | fi |
| 7863 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7864 | { $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] | 7865 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7866 | if test "${ac_cv_sys_largefile_source+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7867 | $as_echo_n "(cached) " >&6 |
| 7868 | else |
| 7869 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7871 | /* end confdefs.h. */ |
| 7872 | #include <sys/types.h> /* for off_t */ |
| 7873 | #include <stdio.h> |
| 7874 | int |
| 7875 | main () |
| 7876 | { |
| 7877 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 7878 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 7879 | ; |
| 7880 | return 0; |
| 7881 | } |
| 7882 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7883 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7884 | ac_cv_sys_largefile_source=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7885 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7886 | rm -f core conftest.err conftest.$ac_objext \ |
| 7887 | conftest$ac_exeext conftest.$ac_ext |
| 7888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7889 | /* end confdefs.h. */ |
| 7890 | #define _LARGEFILE_SOURCE 1 |
| 7891 | #include <sys/types.h> /* for off_t */ |
| 7892 | #include <stdio.h> |
| 7893 | int |
| 7894 | main () |
| 7895 | { |
| 7896 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 7897 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 7898 | ; |
| 7899 | return 0; |
| 7900 | } |
| 7901 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7902 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7903 | ac_cv_sys_largefile_source=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7904 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7905 | rm -f core conftest.err conftest.$ac_objext \ |
| 7906 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7907 | ac_cv_sys_largefile_source=unknown |
| 7908 | break |
| 7909 | done |
| 7910 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7911 | { $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] | 7912 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 7913 | case $ac_cv_sys_largefile_source in #( |
| 7914 | no | unknown) ;; |
| 7915 | *) |
| 7916 | cat >>confdefs.h <<_ACEOF |
| 7917 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 7918 | _ACEOF |
| 7919 | ;; |
| 7920 | esac |
| 7921 | rm -rf conftest* |
| 7922 | |
| 7923 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 7924 | # in glibc 2.1.3, but that breaks too many other things. |
| 7925 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 7926 | if test $ac_cv_sys_largefile_source != unknown; then |
| 7927 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7928 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7929 | |
| 7930 | fi |
| 7931 | |
| 7932 | LFS_CPPFLAGS='' |
| 7933 | if test "$enable_largefile" != no; then |
| 7934 | if test "$ac_cv_sys_file_offset_bits" != 'no'; then |
| 7935 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 7936 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7937 | { $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] | 7938 | $as_echo_n "checking for native large file support... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7939 | if test "$cross_compiling" = yes; then : |
| 7940 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7941 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7942 | as_fn_error "cannot run test program while cross compiling |
| 7943 | See \`config.log' for more details." "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7944 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7946 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7947 | #include <unistd.h> |
| 7948 | main () { |
| 7949 | exit(!(sizeof(off_t) == 8)); |
| 7950 | } |
| 7951 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7952 | if ac_fn_c_try_run "$LINENO"; then : |
| 7953 | 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] | 7954 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7956 | $as_echo "yes" >&6; } |
| 7957 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7959 | $as_echo "no" >&6; } |
| 7960 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7961 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7962 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7963 | fi |
| 7964 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7965 | fi |
| 7966 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 7967 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 7968 | fi |
| 7969 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 7970 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 7971 | fi |
| 7972 | fi |
| 7973 | |
| 7974 | |
| 7975 | # |
| 7976 | # Configure libtool & libltdl |
| 7977 | # |
| 7978 | # Configure libtool |
| 7979 | enable_dlopen=yes |
| 7980 | |
| 7981 | |
| 7982 | |
| 7983 | case `pwd` in |
| 7984 | *\ * | *\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7986 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 7987 | esac |
| 7988 | |
| 7989 | |
| 7990 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 7991 | macro_version='2.2.6b' |
| 7992 | macro_revision='1.3017' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7993 | |
| 7994 | |
| 7995 | |
| 7996 | |
| 7997 | |
| 7998 | |
| 7999 | |
| 8000 | |
| 8001 | |
| 8002 | |
| 8003 | |
| 8004 | |
| 8005 | |
| 8006 | ltmain="$ac_aux_dir/ltmain.sh" |
| 8007 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8009 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8010 | if test "${lt_cv_path_NM+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8011 | $as_echo_n "(cached) " >&6 |
| 8012 | else |
| 8013 | if test -n "$NM"; then |
| 8014 | # Let the user override the test. |
| 8015 | lt_cv_path_NM="$NM" |
| 8016 | else |
| 8017 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 8018 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 8019 | lt_nm_to_check="$lt_nm_to_check nm" |
| 8020 | fi |
| 8021 | for lt_tmp_nm in $lt_nm_to_check; do |
| 8022 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8023 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 8024 | IFS="$lt_save_ifs" |
| 8025 | test -z "$ac_dir" && ac_dir=. |
| 8026 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 8027 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 8028 | # Check to see if the nm accepts a BSD-compat flag. |
| 8029 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 8030 | # nm: unknown option "B" ignored |
| 8031 | # Tru64's nm complains that /dev/null is an invalid object file |
| 8032 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 8033 | */dev/null* | *'Invalid file or object type'*) |
| 8034 | lt_cv_path_NM="$tmp_nm -B" |
| 8035 | break |
| 8036 | ;; |
| 8037 | *) |
| 8038 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 8039 | */dev/null*) |
| 8040 | lt_cv_path_NM="$tmp_nm -p" |
| 8041 | break |
| 8042 | ;; |
| 8043 | *) |
| 8044 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 8045 | continue # so that we can try to find one that supports BSD flags |
| 8046 | ;; |
| 8047 | esac |
| 8048 | ;; |
| 8049 | esac |
| 8050 | fi |
| 8051 | done |
| 8052 | IFS="$lt_save_ifs" |
| 8053 | done |
| 8054 | : ${lt_cv_path_NM=no} |
| 8055 | fi |
| 8056 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8058 | $as_echo "$lt_cv_path_NM" >&6; } |
| 8059 | if test "$lt_cv_path_NM" != "no"; then |
| 8060 | NM="$lt_cv_path_NM" |
| 8061 | else |
| 8062 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8063 | if test -n "$ac_tool_prefix"; then |
| 8064 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8065 | do |
| 8066 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 8067 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8069 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8070 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8071 | $as_echo_n "(cached) " >&6 |
| 8072 | else |
| 8073 | if test -n "$DUMPBIN"; then |
| 8074 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 8075 | else |
| 8076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8077 | for as_dir in $PATH |
| 8078 | do |
| 8079 | IFS=$as_save_IFS |
| 8080 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8081 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8082 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8083 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8084 | $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] | 8085 | break 2 |
| 8086 | fi |
| 8087 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8088 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8089 | IFS=$as_save_IFS |
| 8090 | |
| 8091 | fi |
| 8092 | fi |
| 8093 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 8094 | if test -n "$DUMPBIN"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8096 | $as_echo "$DUMPBIN" >&6; } |
| 8097 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8099 | $as_echo "no" >&6; } |
| 8100 | fi |
| 8101 | |
| 8102 | |
| 8103 | test -n "$DUMPBIN" && break |
| 8104 | done |
| 8105 | fi |
| 8106 | if test -z "$DUMPBIN"; then |
| 8107 | ac_ct_DUMPBIN=$DUMPBIN |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8108 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8109 | do |
| 8110 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8111 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8113 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8114 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8115 | $as_echo_n "(cached) " >&6 |
| 8116 | else |
| 8117 | if test -n "$ac_ct_DUMPBIN"; then |
| 8118 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 8119 | else |
| 8120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8121 | for as_dir in $PATH |
| 8122 | do |
| 8123 | IFS=$as_save_IFS |
| 8124 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8127 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8128 | $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] | 8129 | break 2 |
| 8130 | fi |
| 8131 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8132 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8133 | IFS=$as_save_IFS |
| 8134 | |
| 8135 | fi |
| 8136 | fi |
| 8137 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 8138 | if test -n "$ac_ct_DUMPBIN"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8140 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 8141 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8143 | $as_echo "no" >&6; } |
| 8144 | fi |
| 8145 | |
| 8146 | |
| 8147 | test -n "$ac_ct_DUMPBIN" && break |
| 8148 | done |
| 8149 | |
| 8150 | if test "x$ac_ct_DUMPBIN" = x; then |
| 8151 | DUMPBIN=":" |
| 8152 | else |
| 8153 | case $cross_compiling:$ac_tool_warned in |
| 8154 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8155 | { $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] | 8156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8157 | ac_tool_warned=yes ;; |
| 8158 | esac |
| 8159 | DUMPBIN=$ac_ct_DUMPBIN |
| 8160 | fi |
| 8161 | fi |
| 8162 | |
| 8163 | |
| 8164 | if test "$DUMPBIN" != ":"; then |
| 8165 | NM="$DUMPBIN" |
| 8166 | fi |
| 8167 | fi |
| 8168 | test -z "$NM" && NM=nm |
| 8169 | |
| 8170 | |
| 8171 | |
| 8172 | |
| 8173 | |
| 8174 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8176 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8177 | if test "${lt_cv_nm_interface+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8178 | $as_echo_n "(cached) " >&6 |
| 8179 | else |
| 8180 | lt_cv_nm_interface="BSD nm" |
| 8181 | echo "int some_variable = 0;" > conftest.$ac_ext |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 8182 | (eval echo "\"\$as_me:8182: $ac_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8183 | (eval "$ac_compile" 2>conftest.err) |
| 8184 | cat conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 8185 | (eval echo "\"\$as_me:8185: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8186 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 8187 | cat conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 8188 | (eval echo "\"\$as_me:8188: output\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8189 | cat conftest.out >&5 |
| 8190 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 8191 | lt_cv_nm_interface="MS dumpbin" |
| 8192 | fi |
| 8193 | rm -f conftest* |
| 8194 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8196 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 8197 | |
| 8198 | # find the maximum length of command line arguments |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8200 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8201 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8202 | $as_echo_n "(cached) " >&6 |
| 8203 | else |
| 8204 | i=0 |
| 8205 | teststring="ABCD" |
| 8206 | |
| 8207 | case $build_os in |
| 8208 | msdosdjgpp*) |
| 8209 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 8210 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 8211 | # during glob expansion). Even if it were fixed, the result of this |
| 8212 | # check would be larger than it should be. |
| 8213 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 8214 | ;; |
| 8215 | |
| 8216 | gnu*) |
| 8217 | # Under GNU Hurd, this test is not required because there is |
| 8218 | # no limit to the length of command line arguments. |
| 8219 | # Libtool will interpret -1 as no limit whatsoever |
| 8220 | lt_cv_sys_max_cmd_len=-1; |
| 8221 | ;; |
| 8222 | |
| 8223 | cygwin* | mingw* | cegcc*) |
| 8224 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 8225 | # about 5 minutes as the teststring grows exponentially. |
| 8226 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 8227 | # you end up with a "frozen" computer, even though with patience |
| 8228 | # the test eventually succeeds (with a max line length of 256k). |
| 8229 | # Instead, let's just punt: use the minimum linelength reported by |
| 8230 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 8231 | lt_cv_sys_max_cmd_len=8192; |
| 8232 | ;; |
| 8233 | |
| 8234 | amigaos*) |
| 8235 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 8236 | # So we just punt and use a minimum line length of 8192. |
| 8237 | lt_cv_sys_max_cmd_len=8192; |
| 8238 | ;; |
| 8239 | |
| 8240 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 8241 | # This has been around since 386BSD, at least. Likely further. |
| 8242 | if test -x /sbin/sysctl; then |
| 8243 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 8244 | elif test -x /usr/sbin/sysctl; then |
| 8245 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 8246 | else |
| 8247 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 8248 | fi |
| 8249 | # And add a safety zone |
| 8250 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8251 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8252 | ;; |
| 8253 | |
| 8254 | interix*) |
| 8255 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 8256 | lt_cv_sys_max_cmd_len=196608 |
| 8257 | ;; |
| 8258 | |
| 8259 | osf*) |
| 8260 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 8261 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 8262 | # nice to cause kernel panics so lets avoid the loop below. |
| 8263 | # First set a reasonable default. |
| 8264 | lt_cv_sys_max_cmd_len=16384 |
| 8265 | # |
| 8266 | if test -x /sbin/sysconfig; then |
| 8267 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 8268 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 8269 | esac |
| 8270 | fi |
| 8271 | ;; |
| 8272 | sco3.2v5*) |
| 8273 | lt_cv_sys_max_cmd_len=102400 |
| 8274 | ;; |
| 8275 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 8276 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 8277 | if test -n "$kargmax"; then |
| 8278 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 8279 | else |
| 8280 | lt_cv_sys_max_cmd_len=32768 |
| 8281 | fi |
| 8282 | ;; |
| 8283 | *) |
| 8284 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 8285 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 8286 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 8287 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 8288 | else |
| 8289 | # Make teststring a little bigger before we do anything with it. |
| 8290 | # a 1K string should be a reasonable start. |
| 8291 | for i in 1 2 3 4 5 6 7 8 ; do |
| 8292 | teststring=$teststring$teststring |
| 8293 | done |
| 8294 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 8295 | # If test is not a shell built-in, we'll probably end up computing a |
| 8296 | # maximum length that is only half of the actual maximum length, but |
| 8297 | # we can't tell. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8298 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 8299 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8300 | test $i != 17 # 1/2 MB should be enough |
| 8301 | do |
| 8302 | i=`expr $i + 1` |
| 8303 | teststring=$teststring$teststring |
| 8304 | done |
| 8305 | # Only check the string length outside the loop. |
| 8306 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 8307 | teststring= |
| 8308 | # Add a significant safety factor because C++ compilers can tack on |
| 8309 | # massive amounts of additional arguments before passing them to the |
| 8310 | # linker. It appears as though 1/2 is a usable value. |
| 8311 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 8312 | fi |
| 8313 | ;; |
| 8314 | esac |
| 8315 | |
| 8316 | fi |
| 8317 | |
| 8318 | if test -n $lt_cv_sys_max_cmd_len ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8320 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 8321 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8323 | $as_echo "none" >&6; } |
| 8324 | fi |
| 8325 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | |
| 8331 | |
| 8332 | : ${CP="cp -f"} |
| 8333 | : ${MV="mv -f"} |
| 8334 | : ${RM="rm -f"} |
| 8335 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8337 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 8338 | # Try some XSI features |
| 8339 | xsi_shell=no |
| 8340 | ( _lt_dummy="a/b/c" |
| 8341 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 8342 | = c,a/b,, \ |
| 8343 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 8344 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 8345 | && xsi_shell=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8347 | $as_echo "$xsi_shell" >&6; } |
| 8348 | |
| 8349 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8351 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 8352 | lt_shell_append=no |
| 8353 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 8354 | >/dev/null 2>&1 \ |
| 8355 | && lt_shell_append=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8357 | $as_echo "$lt_shell_append" >&6; } |
| 8358 | |
| 8359 | |
| 8360 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 8361 | lt_unset=unset |
| 8362 | else |
| 8363 | lt_unset=false |
| 8364 | fi |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | # test EBCDIC or ASCII |
| 8371 | case `echo X|tr X '\101'` in |
| 8372 | A) # ASCII based system |
| 8373 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 8374 | lt_SP2NL='tr \040 \012' |
| 8375 | lt_NL2SP='tr \015\012 \040\040' |
| 8376 | ;; |
| 8377 | *) # EBCDIC based system |
| 8378 | lt_SP2NL='tr \100 \n' |
| 8379 | lt_NL2SP='tr \r\n \100\100' |
| 8380 | ;; |
| 8381 | esac |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8392 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8393 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8394 | $as_echo_n "(cached) " >&6 |
| 8395 | else |
| 8396 | lt_cv_ld_reload_flag='-r' |
| 8397 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8399 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 8400 | reload_flag=$lt_cv_ld_reload_flag |
| 8401 | case $reload_flag in |
| 8402 | "" | " "*) ;; |
| 8403 | *) reload_flag=" $reload_flag" ;; |
| 8404 | esac |
| 8405 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 8406 | case $host_os in |
| 8407 | darwin*) |
| 8408 | if test "$GCC" = yes; then |
| 8409 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 8410 | else |
| 8411 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 8412 | fi |
| 8413 | ;; |
| 8414 | esac |
| 8415 | |
| 8416 | |
| 8417 | |
| 8418 | |
| 8419 | |
| 8420 | |
| 8421 | |
| 8422 | |
| 8423 | |
| 8424 | if test -n "$ac_tool_prefix"; then |
| 8425 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 8426 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8428 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8429 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8430 | $as_echo_n "(cached) " >&6 |
| 8431 | else |
| 8432 | if test -n "$OBJDUMP"; then |
| 8433 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 8434 | else |
| 8435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8436 | for as_dir in $PATH |
| 8437 | do |
| 8438 | IFS=$as_save_IFS |
| 8439 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8442 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8443 | $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] | 8444 | break 2 |
| 8445 | fi |
| 8446 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8447 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8448 | IFS=$as_save_IFS |
| 8449 | |
| 8450 | fi |
| 8451 | fi |
| 8452 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 8453 | if test -n "$OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8455 | $as_echo "$OBJDUMP" >&6; } |
| 8456 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8458 | $as_echo "no" >&6; } |
| 8459 | fi |
| 8460 | |
| 8461 | |
| 8462 | fi |
| 8463 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 8464 | ac_ct_OBJDUMP=$OBJDUMP |
| 8465 | # Extract the first word of "objdump", so it can be a program name with args. |
| 8466 | set dummy objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8468 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8469 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8470 | $as_echo_n "(cached) " >&6 |
| 8471 | else |
| 8472 | if test -n "$ac_ct_OBJDUMP"; then |
| 8473 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 8474 | else |
| 8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8476 | for as_dir in $PATH |
| 8477 | do |
| 8478 | IFS=$as_save_IFS |
| 8479 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8482 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8483 | $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] | 8484 | break 2 |
| 8485 | fi |
| 8486 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8487 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8488 | IFS=$as_save_IFS |
| 8489 | |
| 8490 | fi |
| 8491 | fi |
| 8492 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 8493 | if test -n "$ac_ct_OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8495 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 8496 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8498 | $as_echo "no" >&6; } |
| 8499 | fi |
| 8500 | |
| 8501 | if test "x$ac_ct_OBJDUMP" = x; then |
| 8502 | OBJDUMP="false" |
| 8503 | else |
| 8504 | case $cross_compiling:$ac_tool_warned in |
| 8505 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8506 | { $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] | 8507 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8508 | ac_tool_warned=yes ;; |
| 8509 | esac |
| 8510 | OBJDUMP=$ac_ct_OBJDUMP |
| 8511 | fi |
| 8512 | else |
| 8513 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 8514 | fi |
| 8515 | |
| 8516 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 8517 | |
| 8518 | |
| 8519 | |
| 8520 | |
| 8521 | |
| 8522 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8524 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8525 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8526 | $as_echo_n "(cached) " >&6 |
| 8527 | else |
| 8528 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 8529 | lt_cv_file_magic_test_file= |
| 8530 | lt_cv_deplibs_check_method='unknown' |
| 8531 | # Need to set the preceding variable on all platforms that support |
| 8532 | # interlibrary dependencies. |
| 8533 | # 'none' -- dependencies not supported. |
| 8534 | # `unknown' -- same as none, but documents that we really don't know. |
| 8535 | # 'pass_all' -- all dependencies passed with no checks. |
| 8536 | # 'test_compile' -- check by making test program. |
| 8537 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 8538 | # which responds to the $file_magic_cmd with a given extended regex. |
| 8539 | # If you have `file' or equivalent on your system and you're not sure |
| 8540 | # whether `pass_all' will *always* work, you probably want this one. |
| 8541 | |
| 8542 | case $host_os in |
| 8543 | aix[4-9]*) |
| 8544 | lt_cv_deplibs_check_method=pass_all |
| 8545 | ;; |
| 8546 | |
| 8547 | beos*) |
| 8548 | lt_cv_deplibs_check_method=pass_all |
| 8549 | ;; |
| 8550 | |
| 8551 | bsdi[45]*) |
| 8552 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 8553 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 8554 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 8555 | ;; |
| 8556 | |
| 8557 | cygwin*) |
| 8558 | # func_win32_libid is a shell function defined in ltmain.sh |
| 8559 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 8560 | lt_cv_file_magic_cmd='func_win32_libid' |
| 8561 | ;; |
| 8562 | |
| 8563 | mingw* | pw32*) |
| 8564 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 8565 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 8566 | # unless we find 'file', for example because we are cross-compiling. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8567 | if ( file / ) >/dev/null 2>&1; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8568 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 8569 | lt_cv_file_magic_cmd='func_win32_libid' |
| 8570 | else |
| 8571 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 8572 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 8573 | fi |
| 8574 | ;; |
| 8575 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8576 | cegcc) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8577 | # use the weaker test based on 'objdump'. See mingw*. |
| 8578 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 8579 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 8580 | ;; |
| 8581 | |
| 8582 | darwin* | rhapsody*) |
| 8583 | lt_cv_deplibs_check_method=pass_all |
| 8584 | ;; |
| 8585 | |
| 8586 | freebsd* | dragonfly*) |
| 8587 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 8588 | case $host_cpu in |
| 8589 | i*86 ) |
| 8590 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 8591 | # Let's accept both of them until this is cleared up. |
| 8592 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 8593 | lt_cv_file_magic_cmd=/usr/bin/file |
| 8594 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 8595 | ;; |
| 8596 | esac |
| 8597 | else |
| 8598 | lt_cv_deplibs_check_method=pass_all |
| 8599 | fi |
| 8600 | ;; |
| 8601 | |
| 8602 | gnu*) |
| 8603 | lt_cv_deplibs_check_method=pass_all |
| 8604 | ;; |
| 8605 | |
| 8606 | hpux10.20* | hpux11*) |
| 8607 | lt_cv_file_magic_cmd=/usr/bin/file |
| 8608 | case $host_cpu in |
| 8609 | ia64*) |
| 8610 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 8611 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 8612 | ;; |
| 8613 | hppa*64*) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8614 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8615 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 8616 | ;; |
| 8617 | *) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8618 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8619 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 8620 | ;; |
| 8621 | esac |
| 8622 | ;; |
| 8623 | |
| 8624 | interix[3-9]*) |
| 8625 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 8626 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 8627 | ;; |
| 8628 | |
| 8629 | irix5* | irix6* | nonstopux*) |
| 8630 | case $LD in |
| 8631 | *-32|*"-32 ") libmagic=32-bit;; |
| 8632 | *-n32|*"-n32 ") libmagic=N32;; |
| 8633 | *-64|*"-64 ") libmagic=64-bit;; |
| 8634 | *) libmagic=never-match;; |
| 8635 | esac |
| 8636 | lt_cv_deplibs_check_method=pass_all |
| 8637 | ;; |
| 8638 | |
| 8639 | # This must be Linux ELF. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 8640 | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8641 | lt_cv_deplibs_check_method=pass_all |
| 8642 | ;; |
| 8643 | |
| 8644 | netbsd*) |
| 8645 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 8646 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 8647 | else |
| 8648 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 8649 | fi |
| 8650 | ;; |
| 8651 | |
| 8652 | newos6*) |
| 8653 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 8654 | lt_cv_file_magic_cmd=/usr/bin/file |
| 8655 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 8656 | ;; |
| 8657 | |
| 8658 | *nto* | *qnx*) |
| 8659 | lt_cv_deplibs_check_method=pass_all |
| 8660 | ;; |
| 8661 | |
| 8662 | openbsd*) |
| 8663 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8664 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 8665 | else |
| 8666 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 8667 | fi |
| 8668 | ;; |
| 8669 | |
| 8670 | osf3* | osf4* | osf5*) |
| 8671 | lt_cv_deplibs_check_method=pass_all |
| 8672 | ;; |
| 8673 | |
| 8674 | rdos*) |
| 8675 | lt_cv_deplibs_check_method=pass_all |
| 8676 | ;; |
| 8677 | |
| 8678 | solaris*) |
| 8679 | lt_cv_deplibs_check_method=pass_all |
| 8680 | ;; |
| 8681 | |
| 8682 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 8683 | lt_cv_deplibs_check_method=pass_all |
| 8684 | ;; |
| 8685 | |
| 8686 | sysv4 | sysv4.3*) |
| 8687 | case $host_vendor in |
| 8688 | motorola) |
| 8689 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 8690 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 8691 | ;; |
| 8692 | ncr) |
| 8693 | lt_cv_deplibs_check_method=pass_all |
| 8694 | ;; |
| 8695 | sequent) |
| 8696 | lt_cv_file_magic_cmd='/bin/file' |
| 8697 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 8698 | ;; |
| 8699 | sni) |
| 8700 | lt_cv_file_magic_cmd='/bin/file' |
| 8701 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 8702 | lt_cv_file_magic_test_file=/lib/libc.so |
| 8703 | ;; |
| 8704 | siemens) |
| 8705 | lt_cv_deplibs_check_method=pass_all |
| 8706 | ;; |
| 8707 | pc) |
| 8708 | lt_cv_deplibs_check_method=pass_all |
| 8709 | ;; |
| 8710 | esac |
| 8711 | ;; |
| 8712 | |
| 8713 | tpf*) |
| 8714 | lt_cv_deplibs_check_method=pass_all |
| 8715 | ;; |
| 8716 | esac |
| 8717 | |
| 8718 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8720 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 8721 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 8722 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 8723 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 8724 | |
| 8725 | |
| 8726 | |
| 8727 | |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | |
| 8732 | |
| 8733 | |
| 8734 | |
| 8735 | |
| 8736 | if test -n "$ac_tool_prefix"; then |
| 8737 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 8738 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8740 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8741 | if test "${ac_cv_prog_AR+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8742 | $as_echo_n "(cached) " >&6 |
| 8743 | else |
| 8744 | if test -n "$AR"; then |
| 8745 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 8746 | else |
| 8747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8748 | for as_dir in $PATH |
| 8749 | do |
| 8750 | IFS=$as_save_IFS |
| 8751 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8754 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8755 | $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] | 8756 | break 2 |
| 8757 | fi |
| 8758 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8759 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8760 | IFS=$as_save_IFS |
| 8761 | |
| 8762 | fi |
| 8763 | fi |
| 8764 | AR=$ac_cv_prog_AR |
| 8765 | if test -n "$AR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8767 | $as_echo "$AR" >&6; } |
| 8768 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8770 | $as_echo "no" >&6; } |
| 8771 | fi |
| 8772 | |
| 8773 | |
| 8774 | fi |
| 8775 | if test -z "$ac_cv_prog_AR"; then |
| 8776 | ac_ct_AR=$AR |
| 8777 | # Extract the first word of "ar", so it can be a program name with args. |
| 8778 | set dummy ar; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8780 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8781 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8782 | $as_echo_n "(cached) " >&6 |
| 8783 | else |
| 8784 | if test -n "$ac_ct_AR"; then |
| 8785 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 8786 | else |
| 8787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8788 | for as_dir in $PATH |
| 8789 | do |
| 8790 | IFS=$as_save_IFS |
| 8791 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8793 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8794 | ac_cv_prog_ac_ct_AR="ar" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8795 | $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] | 8796 | break 2 |
| 8797 | fi |
| 8798 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8799 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8800 | IFS=$as_save_IFS |
| 8801 | |
| 8802 | fi |
| 8803 | fi |
| 8804 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 8805 | if test -n "$ac_ct_AR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8807 | $as_echo "$ac_ct_AR" >&6; } |
| 8808 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8810 | $as_echo "no" >&6; } |
| 8811 | fi |
| 8812 | |
| 8813 | if test "x$ac_ct_AR" = x; then |
| 8814 | AR="false" |
| 8815 | else |
| 8816 | case $cross_compiling:$ac_tool_warned in |
| 8817 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8818 | { $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] | 8819 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8820 | ac_tool_warned=yes ;; |
| 8821 | esac |
| 8822 | AR=$ac_ct_AR |
| 8823 | fi |
| 8824 | else |
| 8825 | AR="$ac_cv_prog_AR" |
| 8826 | fi |
| 8827 | |
| 8828 | test -z "$AR" && AR=ar |
| 8829 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 8830 | |
| 8831 | |
| 8832 | |
| 8833 | |
| 8834 | |
| 8835 | |
| 8836 | |
| 8837 | |
| 8838 | |
| 8839 | |
| 8840 | |
| 8841 | if test -n "$ac_tool_prefix"; then |
| 8842 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 8843 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8845 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8846 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8847 | $as_echo_n "(cached) " >&6 |
| 8848 | else |
| 8849 | if test -n "$STRIP"; then |
| 8850 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 8851 | else |
| 8852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8853 | for as_dir in $PATH |
| 8854 | do |
| 8855 | IFS=$as_save_IFS |
| 8856 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8859 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8860 | $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] | 8861 | break 2 |
| 8862 | fi |
| 8863 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8864 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8865 | IFS=$as_save_IFS |
| 8866 | |
| 8867 | fi |
| 8868 | fi |
| 8869 | STRIP=$ac_cv_prog_STRIP |
| 8870 | if test -n "$STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8872 | $as_echo "$STRIP" >&6; } |
| 8873 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8875 | $as_echo "no" >&6; } |
| 8876 | fi |
| 8877 | |
| 8878 | |
| 8879 | fi |
| 8880 | if test -z "$ac_cv_prog_STRIP"; then |
| 8881 | ac_ct_STRIP=$STRIP |
| 8882 | # Extract the first word of "strip", so it can be a program name with args. |
| 8883 | set dummy strip; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8885 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8886 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8887 | $as_echo_n "(cached) " >&6 |
| 8888 | else |
| 8889 | if test -n "$ac_ct_STRIP"; then |
| 8890 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 8891 | else |
| 8892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8893 | for as_dir in $PATH |
| 8894 | do |
| 8895 | IFS=$as_save_IFS |
| 8896 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8897 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8899 | ac_cv_prog_ac_ct_STRIP="strip" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8900 | $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] | 8901 | break 2 |
| 8902 | fi |
| 8903 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8904 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8905 | IFS=$as_save_IFS |
| 8906 | |
| 8907 | fi |
| 8908 | fi |
| 8909 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 8910 | if test -n "$ac_ct_STRIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8912 | $as_echo "$ac_ct_STRIP" >&6; } |
| 8913 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8915 | $as_echo "no" >&6; } |
| 8916 | fi |
| 8917 | |
| 8918 | if test "x$ac_ct_STRIP" = x; then |
| 8919 | STRIP=":" |
| 8920 | else |
| 8921 | case $cross_compiling:$ac_tool_warned in |
| 8922 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8923 | { $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] | 8924 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8925 | ac_tool_warned=yes ;; |
| 8926 | esac |
| 8927 | STRIP=$ac_ct_STRIP |
| 8928 | fi |
| 8929 | else |
| 8930 | STRIP="$ac_cv_prog_STRIP" |
| 8931 | fi |
| 8932 | |
| 8933 | test -z "$STRIP" && STRIP=: |
| 8934 | |
| 8935 | |
| 8936 | |
| 8937 | |
| 8938 | |
| 8939 | |
| 8940 | if test -n "$ac_tool_prefix"; then |
| 8941 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 8942 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8944 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8945 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8946 | $as_echo_n "(cached) " >&6 |
| 8947 | else |
| 8948 | if test -n "$RANLIB"; then |
| 8949 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 8950 | else |
| 8951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8952 | for as_dir in $PATH |
| 8953 | do |
| 8954 | IFS=$as_save_IFS |
| 8955 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8958 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8959 | $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] | 8960 | break 2 |
| 8961 | fi |
| 8962 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8963 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8964 | IFS=$as_save_IFS |
| 8965 | |
| 8966 | fi |
| 8967 | fi |
| 8968 | RANLIB=$ac_cv_prog_RANLIB |
| 8969 | if test -n "$RANLIB"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8971 | $as_echo "$RANLIB" >&6; } |
| 8972 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8974 | $as_echo "no" >&6; } |
| 8975 | fi |
| 8976 | |
| 8977 | |
| 8978 | fi |
| 8979 | if test -z "$ac_cv_prog_RANLIB"; then |
| 8980 | ac_ct_RANLIB=$RANLIB |
| 8981 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 8982 | set dummy ranlib; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8984 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8985 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8986 | $as_echo_n "(cached) " >&6 |
| 8987 | else |
| 8988 | if test -n "$ac_ct_RANLIB"; then |
| 8989 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 8990 | else |
| 8991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8992 | for as_dir in $PATH |
| 8993 | do |
| 8994 | IFS=$as_save_IFS |
| 8995 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8998 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8999 | $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] | 9000 | break 2 |
| 9001 | fi |
| 9002 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9003 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9004 | IFS=$as_save_IFS |
| 9005 | |
| 9006 | fi |
| 9007 | fi |
| 9008 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 9009 | if test -n "$ac_ct_RANLIB"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9011 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 9012 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9014 | $as_echo "no" >&6; } |
| 9015 | fi |
| 9016 | |
| 9017 | if test "x$ac_ct_RANLIB" = x; then |
| 9018 | RANLIB=":" |
| 9019 | else |
| 9020 | case $cross_compiling:$ac_tool_warned in |
| 9021 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9022 | { $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] | 9023 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9024 | ac_tool_warned=yes ;; |
| 9025 | esac |
| 9026 | RANLIB=$ac_ct_RANLIB |
| 9027 | fi |
| 9028 | else |
| 9029 | RANLIB="$ac_cv_prog_RANLIB" |
| 9030 | fi |
| 9031 | |
| 9032 | test -z "$RANLIB" && RANLIB=: |
| 9033 | |
| 9034 | |
| 9035 | |
| 9036 | |
| 9037 | |
| 9038 | |
| 9039 | # Determine commands to create old-style static archives. |
| 9040 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 9041 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9042 | old_postuninstall_cmds= |
| 9043 | |
| 9044 | if test -n "$RANLIB"; then |
| 9045 | case $host_os in |
| 9046 | openbsd*) |
| 9047 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 9048 | ;; |
| 9049 | *) |
| 9050 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 9051 | ;; |
| 9052 | esac |
| 9053 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 9054 | fi |
| 9055 | |
| 9056 | |
| 9057 | |
| 9058 | |
| 9059 | |
| 9060 | |
| 9061 | |
| 9062 | |
| 9063 | |
| 9064 | |
| 9065 | |
| 9066 | |
| 9067 | |
| 9068 | |
| 9069 | |
| 9070 | |
| 9071 | |
| 9072 | |
| 9073 | |
| 9074 | |
| 9075 | |
| 9076 | |
| 9077 | |
| 9078 | |
| 9079 | |
| 9080 | |
| 9081 | |
| 9082 | |
| 9083 | |
| 9084 | |
| 9085 | |
| 9086 | |
| 9087 | |
| 9088 | |
| 9089 | # If no C compiler was specified, use CC. |
| 9090 | LTCC=${LTCC-"$CC"} |
| 9091 | |
| 9092 | # If no C compiler flags were specified, use CFLAGS. |
| 9093 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9094 | |
| 9095 | # Allow CC to be a program name with arguments. |
| 9096 | compiler=$CC |
| 9097 | |
| 9098 | |
| 9099 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9101 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9102 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9103 | $as_echo_n "(cached) " >&6 |
| 9104 | else |
| 9105 | |
| 9106 | # These are sane defaults that work on at least a few old systems. |
| 9107 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 9108 | |
| 9109 | # Character class describing NM global symbol codes. |
| 9110 | symcode='[BCDEGRST]' |
| 9111 | |
| 9112 | # Regexp to match symbols that can be accessed directly from C. |
| 9113 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 9114 | |
| 9115 | # Define system-specific variables. |
| 9116 | case $host_os in |
| 9117 | aix*) |
| 9118 | symcode='[BCDT]' |
| 9119 | ;; |
| 9120 | cygwin* | mingw* | pw32* | cegcc*) |
| 9121 | symcode='[ABCDGISTW]' |
| 9122 | ;; |
| 9123 | hpux*) |
| 9124 | if test "$host_cpu" = ia64; then |
| 9125 | symcode='[ABCDEGRST]' |
| 9126 | fi |
| 9127 | ;; |
| 9128 | irix* | nonstopux*) |
| 9129 | symcode='[BCDEGRST]' |
| 9130 | ;; |
| 9131 | osf*) |
| 9132 | symcode='[BCDEGQRST]' |
| 9133 | ;; |
| 9134 | solaris*) |
| 9135 | symcode='[BDRT]' |
| 9136 | ;; |
| 9137 | sco3.2v5*) |
| 9138 | symcode='[DT]' |
| 9139 | ;; |
| 9140 | sysv4.2uw2*) |
| 9141 | symcode='[DT]' |
| 9142 | ;; |
| 9143 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 9144 | symcode='[ABDT]' |
| 9145 | ;; |
| 9146 | sysv4) |
| 9147 | symcode='[DFNSTU]' |
| 9148 | ;; |
| 9149 | esac |
| 9150 | |
| 9151 | # If we're using GNU nm, then use its standard symbol codes. |
| 9152 | case `$NM -V 2>&1` in |
| 9153 | *GNU* | *'with BFD'*) |
| 9154 | symcode='[ABCDGIRSTW]' ;; |
| 9155 | esac |
| 9156 | |
| 9157 | # Transform an extracted symbol line into a proper C declaration. |
| 9158 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 9159 | # so use this general approach. |
| 9160 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 9161 | |
| 9162 | # Transform an extracted symbol line into symbol name and symbol address |
| 9163 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 9164 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 9165 | |
| 9166 | # Handle CRLF in mingw tool chain |
| 9167 | opt_cr= |
| 9168 | case $build_os in |
| 9169 | mingw*) |
| 9170 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 9171 | ;; |
| 9172 | esac |
| 9173 | |
| 9174 | # Try without a prefix underscore, then with it. |
| 9175 | for ac_symprfx in "" "_"; do |
| 9176 | |
| 9177 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 9178 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 9179 | |
| 9180 | # Write the raw and C identifiers. |
| 9181 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 9182 | # Fake it for dumpbin and say T for any non-static function |
| 9183 | # and D for any global variable. |
| 9184 | # Also find C++ and __fastcall symbols from MSVC++, |
| 9185 | # which start with @ or ?. |
| 9186 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 9187 | " {last_section=section; section=\$ 3};"\ |
| 9188 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 9189 | " \$ 0!~/External *\|/{next};"\ |
| 9190 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 9191 | " {if(hide[section]) next};"\ |
| 9192 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 9193 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 9194 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 9195 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 9196 | " ' prfx=^$ac_symprfx" |
| 9197 | else |
| 9198 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 9199 | fi |
| 9200 | |
| 9201 | # Check to see that the pipe works correctly. |
| 9202 | pipe_works=no |
| 9203 | |
| 9204 | rm -f conftest* |
| 9205 | cat > conftest.$ac_ext <<_LT_EOF |
| 9206 | #ifdef __cplusplus |
| 9207 | extern "C" { |
| 9208 | #endif |
| 9209 | char nm_test_var; |
| 9210 | void nm_test_func(void); |
| 9211 | void nm_test_func(void){} |
| 9212 | #ifdef __cplusplus |
| 9213 | } |
| 9214 | #endif |
| 9215 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 9216 | _LT_EOF |
| 9217 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9219 | (eval $ac_compile) 2>&5 |
| 9220 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9222 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9223 | # Now try to grab the symbols. |
| 9224 | nlist=conftest.nm |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 9225 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
| 9226 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9227 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9229 | test $ac_status = 0; } && test -s "$nlist"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9230 | # Try sorting and uniquifying the output. |
| 9231 | if sort "$nlist" | uniq > "$nlist"T; then |
| 9232 | mv -f "$nlist"T "$nlist" |
| 9233 | else |
| 9234 | rm -f "$nlist"T |
| 9235 | fi |
| 9236 | |
| 9237 | # Make sure that we snagged all the symbols we need. |
| 9238 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 9239 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 9240 | cat <<_LT_EOF > conftest.$ac_ext |
| 9241 | #ifdef __cplusplus |
| 9242 | extern "C" { |
| 9243 | #endif |
| 9244 | |
| 9245 | _LT_EOF |
| 9246 | # Now generate the symbol file. |
| 9247 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 9248 | |
| 9249 | cat <<_LT_EOF >> conftest.$ac_ext |
| 9250 | |
| 9251 | /* The mapping between symbol names and symbols. */ |
| 9252 | const struct { |
| 9253 | const char *name; |
| 9254 | void *address; |
| 9255 | } |
| 9256 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 9257 | { |
| 9258 | { "@PROGRAM@", (void *) 0 }, |
| 9259 | _LT_EOF |
| 9260 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 9261 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 9262 | {0, (void *) 0} |
| 9263 | }; |
| 9264 | |
| 9265 | /* This works around a problem in FreeBSD linker */ |
| 9266 | #ifdef FREEBSD_WORKAROUND |
| 9267 | static const void *lt_preloaded_setup() { |
| 9268 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 9269 | } |
| 9270 | #endif |
| 9271 | |
| 9272 | #ifdef __cplusplus |
| 9273 | } |
| 9274 | #endif |
| 9275 | _LT_EOF |
| 9276 | # Now try linking the two files. |
| 9277 | mv conftest.$ac_objext conftstm.$ac_objext |
| 9278 | lt_save_LIBS="$LIBS" |
| 9279 | lt_save_CFLAGS="$CFLAGS" |
| 9280 | LIBS="conftstm.$ac_objext" |
| 9281 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9282 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9283 | (eval $ac_link) 2>&5 |
| 9284 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9286 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9287 | pipe_works=yes |
| 9288 | fi |
| 9289 | LIBS="$lt_save_LIBS" |
| 9290 | CFLAGS="$lt_save_CFLAGS" |
| 9291 | else |
| 9292 | echo "cannot find nm_test_func in $nlist" >&5 |
| 9293 | fi |
| 9294 | else |
| 9295 | echo "cannot find nm_test_var in $nlist" >&5 |
| 9296 | fi |
| 9297 | else |
| 9298 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 9299 | fi |
| 9300 | else |
| 9301 | echo "$progname: failed program was:" >&5 |
| 9302 | cat conftest.$ac_ext >&5 |
| 9303 | fi |
| 9304 | rm -rf conftest* conftst* |
| 9305 | |
| 9306 | # Do not use the global_symbol_pipe unless it works. |
| 9307 | if test "$pipe_works" = yes; then |
| 9308 | break |
| 9309 | else |
| 9310 | lt_cv_sys_global_symbol_pipe= |
| 9311 | fi |
| 9312 | done |
| 9313 | |
| 9314 | fi |
| 9315 | |
| 9316 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 9317 | lt_cv_sys_global_symbol_to_cdecl= |
| 9318 | fi |
| 9319 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9321 | $as_echo "failed" >&6; } |
| 9322 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9324 | $as_echo "ok" >&6; } |
| 9325 | fi |
| 9326 | |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | |
| 9335 | |
| 9336 | |
| 9337 | |
| 9338 | |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 | |
| 9343 | |
| 9344 | |
| 9345 | |
| 9346 | |
| 9347 | |
| 9348 | # Check whether --enable-libtool-lock was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9349 | if test "${enable_libtool_lock+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9350 | enableval=$enable_libtool_lock; |
| 9351 | fi |
| 9352 | |
| 9353 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 9354 | |
| 9355 | # Some flags need to be propagated to the compiler or linker for good |
| 9356 | # libtool support. |
| 9357 | case $host in |
| 9358 | ia64-*-hpux*) |
| 9359 | # Find out which ABI we are using. |
| 9360 | echo 'int i;' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9361 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9362 | (eval $ac_compile) 2>&5 |
| 9363 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9365 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9366 | case `/usr/bin/file conftest.$ac_objext` in |
| 9367 | *ELF-32*) |
| 9368 | HPUX_IA64_MODE="32" |
| 9369 | ;; |
| 9370 | *ELF-64*) |
| 9371 | HPUX_IA64_MODE="64" |
| 9372 | ;; |
| 9373 | esac |
| 9374 | fi |
| 9375 | rm -rf conftest* |
| 9376 | ;; |
| 9377 | *-*-irix6*) |
| 9378 | # Find out which ABI we are using. |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 9379 | echo '#line 9379 "configure"' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9380 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9381 | (eval $ac_compile) 2>&5 |
| 9382 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9384 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9385 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9386 | case `/usr/bin/file conftest.$ac_objext` in |
| 9387 | *32-bit*) |
| 9388 | LD="${LD-ld} -melf32bsmip" |
| 9389 | ;; |
| 9390 | *N32*) |
| 9391 | LD="${LD-ld} -melf32bmipn32" |
| 9392 | ;; |
| 9393 | *64-bit*) |
| 9394 | LD="${LD-ld} -melf64bmip" |
| 9395 | ;; |
| 9396 | esac |
| 9397 | else |
| 9398 | case `/usr/bin/file conftest.$ac_objext` in |
| 9399 | *32-bit*) |
| 9400 | LD="${LD-ld} -32" |
| 9401 | ;; |
| 9402 | *N32*) |
| 9403 | LD="${LD-ld} -n32" |
| 9404 | ;; |
| 9405 | *64-bit*) |
| 9406 | LD="${LD-ld} -64" |
| 9407 | ;; |
| 9408 | esac |
| 9409 | fi |
| 9410 | fi |
| 9411 | rm -rf conftest* |
| 9412 | ;; |
| 9413 | |
| 9414 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 9415 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 9416 | # Find out which ABI we are using. |
| 9417 | echo 'int i;' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9418 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9419 | (eval $ac_compile) 2>&5 |
| 9420 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9422 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9423 | case `/usr/bin/file conftest.o` in |
| 9424 | *32-bit*) |
| 9425 | case $host in |
| 9426 | x86_64-*kfreebsd*-gnu) |
| 9427 | LD="${LD-ld} -m elf_i386_fbsd" |
| 9428 | ;; |
| 9429 | x86_64-*linux*) |
| 9430 | LD="${LD-ld} -m elf_i386" |
| 9431 | ;; |
| 9432 | ppc64-*linux*|powerpc64-*linux*) |
| 9433 | LD="${LD-ld} -m elf32ppclinux" |
| 9434 | ;; |
| 9435 | s390x-*linux*) |
| 9436 | LD="${LD-ld} -m elf_s390" |
| 9437 | ;; |
| 9438 | sparc64-*linux*) |
| 9439 | LD="${LD-ld} -m elf32_sparc" |
| 9440 | ;; |
| 9441 | esac |
| 9442 | ;; |
| 9443 | *64-bit*) |
| 9444 | case $host in |
| 9445 | x86_64-*kfreebsd*-gnu) |
| 9446 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 9447 | ;; |
| 9448 | x86_64-*linux*) |
| 9449 | LD="${LD-ld} -m elf_x86_64" |
| 9450 | ;; |
| 9451 | ppc*-*linux*|powerpc*-*linux*) |
| 9452 | LD="${LD-ld} -m elf64ppc" |
| 9453 | ;; |
| 9454 | s390*-*linux*|s390*-*tpf*) |
| 9455 | LD="${LD-ld} -m elf64_s390" |
| 9456 | ;; |
| 9457 | sparc*-*linux*) |
| 9458 | LD="${LD-ld} -m elf64_sparc" |
| 9459 | ;; |
| 9460 | esac |
| 9461 | ;; |
| 9462 | esac |
| 9463 | fi |
| 9464 | rm -rf conftest* |
| 9465 | ;; |
| 9466 | |
| 9467 | *-*-sco3.2v5*) |
| 9468 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 9469 | SAVE_CFLAGS="$CFLAGS" |
| 9470 | CFLAGS="$CFLAGS -belf" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9472 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9473 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9474 | $as_echo_n "(cached) " >&6 |
| 9475 | else |
| 9476 | ac_ext=c |
| 9477 | ac_cpp='$CPP $CPPFLAGS' |
| 9478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9481 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9483 | /* end confdefs.h. */ |
| 9484 | |
| 9485 | int |
| 9486 | main () |
| 9487 | { |
| 9488 | |
| 9489 | ; |
| 9490 | return 0; |
| 9491 | } |
| 9492 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9493 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9494 | lt_cv_cc_needs_belf=yes |
| 9495 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9496 | lt_cv_cc_needs_belf=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9497 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9498 | rm -f core conftest.err conftest.$ac_objext \ |
| 9499 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9500 | ac_ext=c |
| 9501 | ac_cpp='$CPP $CPPFLAGS' |
| 9502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9505 | |
| 9506 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9508 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 9509 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 9510 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 9511 | CFLAGS="$SAVE_CFLAGS" |
| 9512 | fi |
| 9513 | ;; |
| 9514 | sparc*-*solaris*) |
| 9515 | # Find out which ABI we are using. |
| 9516 | echo 'int i;' > conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9517 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9518 | (eval $ac_compile) 2>&5 |
| 9519 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9521 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9522 | case `/usr/bin/file conftest.o` in |
| 9523 | *64-bit*) |
| 9524 | case $lt_cv_prog_gnu_ld in |
| 9525 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 9526 | *) |
| 9527 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 9528 | LD="${LD-ld} -64" |
| 9529 | fi |
| 9530 | ;; |
| 9531 | esac |
| 9532 | ;; |
| 9533 | esac |
| 9534 | fi |
| 9535 | rm -rf conftest* |
| 9536 | ;; |
| 9537 | esac |
| 9538 | |
| 9539 | need_locks="$enable_libtool_lock" |
| 9540 | |
| 9541 | |
| 9542 | case $host_os in |
| 9543 | rhapsody* | darwin*) |
| 9544 | if test -n "$ac_tool_prefix"; then |
| 9545 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 9546 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9548 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9549 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9550 | $as_echo_n "(cached) " >&6 |
| 9551 | else |
| 9552 | if test -n "$DSYMUTIL"; then |
| 9553 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 9554 | else |
| 9555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9556 | for as_dir in $PATH |
| 9557 | do |
| 9558 | IFS=$as_save_IFS |
| 9559 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9560 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9562 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9563 | $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] | 9564 | break 2 |
| 9565 | fi |
| 9566 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9567 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9568 | IFS=$as_save_IFS |
| 9569 | |
| 9570 | fi |
| 9571 | fi |
| 9572 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 9573 | if test -n "$DSYMUTIL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9575 | $as_echo "$DSYMUTIL" >&6; } |
| 9576 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9578 | $as_echo "no" >&6; } |
| 9579 | fi |
| 9580 | |
| 9581 | |
| 9582 | fi |
| 9583 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 9584 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 9585 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 9586 | set dummy dsymutil; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9588 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9589 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9590 | $as_echo_n "(cached) " >&6 |
| 9591 | else |
| 9592 | if test -n "$ac_ct_DSYMUTIL"; then |
| 9593 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 9594 | else |
| 9595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9596 | for as_dir in $PATH |
| 9597 | do |
| 9598 | IFS=$as_save_IFS |
| 9599 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9602 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9603 | $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] | 9604 | break 2 |
| 9605 | fi |
| 9606 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9607 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9608 | IFS=$as_save_IFS |
| 9609 | |
| 9610 | fi |
| 9611 | fi |
| 9612 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 9613 | if test -n "$ac_ct_DSYMUTIL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9615 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 9616 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9618 | $as_echo "no" >&6; } |
| 9619 | fi |
| 9620 | |
| 9621 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 9622 | DSYMUTIL=":" |
| 9623 | else |
| 9624 | case $cross_compiling:$ac_tool_warned in |
| 9625 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9626 | { $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] | 9627 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9628 | ac_tool_warned=yes ;; |
| 9629 | esac |
| 9630 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 9631 | fi |
| 9632 | else |
| 9633 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 9634 | fi |
| 9635 | |
| 9636 | if test -n "$ac_tool_prefix"; then |
| 9637 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 9638 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9640 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9641 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9642 | $as_echo_n "(cached) " >&6 |
| 9643 | else |
| 9644 | if test -n "$NMEDIT"; then |
| 9645 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 9646 | else |
| 9647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9648 | for as_dir in $PATH |
| 9649 | do |
| 9650 | IFS=$as_save_IFS |
| 9651 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9654 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9655 | $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] | 9656 | break 2 |
| 9657 | fi |
| 9658 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9659 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9660 | IFS=$as_save_IFS |
| 9661 | |
| 9662 | fi |
| 9663 | fi |
| 9664 | NMEDIT=$ac_cv_prog_NMEDIT |
| 9665 | if test -n "$NMEDIT"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9667 | $as_echo "$NMEDIT" >&6; } |
| 9668 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9670 | $as_echo "no" >&6; } |
| 9671 | fi |
| 9672 | |
| 9673 | |
| 9674 | fi |
| 9675 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 9676 | ac_ct_NMEDIT=$NMEDIT |
| 9677 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 9678 | set dummy nmedit; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9680 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9681 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9682 | $as_echo_n "(cached) " >&6 |
| 9683 | else |
| 9684 | if test -n "$ac_ct_NMEDIT"; then |
| 9685 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 9686 | else |
| 9687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9688 | for as_dir in $PATH |
| 9689 | do |
| 9690 | IFS=$as_save_IFS |
| 9691 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9692 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9694 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9695 | $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] | 9696 | break 2 |
| 9697 | fi |
| 9698 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9699 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9700 | IFS=$as_save_IFS |
| 9701 | |
| 9702 | fi |
| 9703 | fi |
| 9704 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 9705 | if test -n "$ac_ct_NMEDIT"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9707 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 9708 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9710 | $as_echo "no" >&6; } |
| 9711 | fi |
| 9712 | |
| 9713 | if test "x$ac_ct_NMEDIT" = x; then |
| 9714 | NMEDIT=":" |
| 9715 | else |
| 9716 | case $cross_compiling:$ac_tool_warned in |
| 9717 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9718 | { $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] | 9719 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9720 | ac_tool_warned=yes ;; |
| 9721 | esac |
| 9722 | NMEDIT=$ac_ct_NMEDIT |
| 9723 | fi |
| 9724 | else |
| 9725 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 9726 | fi |
| 9727 | |
| 9728 | if test -n "$ac_tool_prefix"; then |
| 9729 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 9730 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9732 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9733 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9734 | $as_echo_n "(cached) " >&6 |
| 9735 | else |
| 9736 | if test -n "$LIPO"; then |
| 9737 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 9738 | else |
| 9739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9740 | for as_dir in $PATH |
| 9741 | do |
| 9742 | IFS=$as_save_IFS |
| 9743 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9746 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9747 | $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] | 9748 | break 2 |
| 9749 | fi |
| 9750 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9751 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9752 | IFS=$as_save_IFS |
| 9753 | |
| 9754 | fi |
| 9755 | fi |
| 9756 | LIPO=$ac_cv_prog_LIPO |
| 9757 | if test -n "$LIPO"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9759 | $as_echo "$LIPO" >&6; } |
| 9760 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9762 | $as_echo "no" >&6; } |
| 9763 | fi |
| 9764 | |
| 9765 | |
| 9766 | fi |
| 9767 | if test -z "$ac_cv_prog_LIPO"; then |
| 9768 | ac_ct_LIPO=$LIPO |
| 9769 | # Extract the first word of "lipo", so it can be a program name with args. |
| 9770 | set dummy lipo; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9772 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9773 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9774 | $as_echo_n "(cached) " >&6 |
| 9775 | else |
| 9776 | if test -n "$ac_ct_LIPO"; then |
| 9777 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 9778 | else |
| 9779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9780 | for as_dir in $PATH |
| 9781 | do |
| 9782 | IFS=$as_save_IFS |
| 9783 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9784 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9786 | ac_cv_prog_ac_ct_LIPO="lipo" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9787 | $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] | 9788 | break 2 |
| 9789 | fi |
| 9790 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9791 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9792 | IFS=$as_save_IFS |
| 9793 | |
| 9794 | fi |
| 9795 | fi |
| 9796 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 9797 | if test -n "$ac_ct_LIPO"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9799 | $as_echo "$ac_ct_LIPO" >&6; } |
| 9800 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9802 | $as_echo "no" >&6; } |
| 9803 | fi |
| 9804 | |
| 9805 | if test "x$ac_ct_LIPO" = x; then |
| 9806 | LIPO=":" |
| 9807 | else |
| 9808 | case $cross_compiling:$ac_tool_warned in |
| 9809 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9810 | { $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] | 9811 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9812 | ac_tool_warned=yes ;; |
| 9813 | esac |
| 9814 | LIPO=$ac_ct_LIPO |
| 9815 | fi |
| 9816 | else |
| 9817 | LIPO="$ac_cv_prog_LIPO" |
| 9818 | fi |
| 9819 | |
| 9820 | if test -n "$ac_tool_prefix"; then |
| 9821 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 9822 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9824 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9825 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9826 | $as_echo_n "(cached) " >&6 |
| 9827 | else |
| 9828 | if test -n "$OTOOL"; then |
| 9829 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 9830 | else |
| 9831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9832 | for as_dir in $PATH |
| 9833 | do |
| 9834 | IFS=$as_save_IFS |
| 9835 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9836 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9838 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9839 | $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] | 9840 | break 2 |
| 9841 | fi |
| 9842 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9843 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9844 | IFS=$as_save_IFS |
| 9845 | |
| 9846 | fi |
| 9847 | fi |
| 9848 | OTOOL=$ac_cv_prog_OTOOL |
| 9849 | if test -n "$OTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9851 | $as_echo "$OTOOL" >&6; } |
| 9852 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9854 | $as_echo "no" >&6; } |
| 9855 | fi |
| 9856 | |
| 9857 | |
| 9858 | fi |
| 9859 | if test -z "$ac_cv_prog_OTOOL"; then |
| 9860 | ac_ct_OTOOL=$OTOOL |
| 9861 | # Extract the first word of "otool", so it can be a program name with args. |
| 9862 | set dummy otool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9864 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9865 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9866 | $as_echo_n "(cached) " >&6 |
| 9867 | else |
| 9868 | if test -n "$ac_ct_OTOOL"; then |
| 9869 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 9870 | else |
| 9871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9872 | for as_dir in $PATH |
| 9873 | do |
| 9874 | IFS=$as_save_IFS |
| 9875 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9876 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9878 | ac_cv_prog_ac_ct_OTOOL="otool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9879 | $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] | 9880 | break 2 |
| 9881 | fi |
| 9882 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9883 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9884 | IFS=$as_save_IFS |
| 9885 | |
| 9886 | fi |
| 9887 | fi |
| 9888 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 9889 | if test -n "$ac_ct_OTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9891 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 9892 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9894 | $as_echo "no" >&6; } |
| 9895 | fi |
| 9896 | |
| 9897 | if test "x$ac_ct_OTOOL" = x; then |
| 9898 | OTOOL=":" |
| 9899 | else |
| 9900 | case $cross_compiling:$ac_tool_warned in |
| 9901 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9902 | { $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] | 9903 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9904 | ac_tool_warned=yes ;; |
| 9905 | esac |
| 9906 | OTOOL=$ac_ct_OTOOL |
| 9907 | fi |
| 9908 | else |
| 9909 | OTOOL="$ac_cv_prog_OTOOL" |
| 9910 | fi |
| 9911 | |
| 9912 | if test -n "$ac_tool_prefix"; then |
| 9913 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 9914 | set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+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 "$OTOOL64"; then |
| 9921 | ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64" |
| 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 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 9941 | if test -n "$OTOOL64"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9943 | $as_echo "$OTOOL64" >&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 | fi |
| 9951 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 9952 | ac_ct_OTOOL64=$OTOOL64 |
| 9953 | # Extract the first word of "otool64", so it can be a program name with args. |
| 9954 | set dummy otool64; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9956 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9957 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9958 | $as_echo_n "(cached) " >&6 |
| 9959 | else |
| 9960 | if test -n "$ac_ct_OTOOL64"; then |
| 9961 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 9962 | else |
| 9963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9964 | for as_dir in $PATH |
| 9965 | do |
| 9966 | IFS=$as_save_IFS |
| 9967 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9968 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9970 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9971 | $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] | 9972 | break 2 |
| 9973 | fi |
| 9974 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9975 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9976 | IFS=$as_save_IFS |
| 9977 | |
| 9978 | fi |
| 9979 | fi |
| 9980 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 9981 | if test -n "$ac_ct_OTOOL64"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9983 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 9984 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9986 | $as_echo "no" >&6; } |
| 9987 | fi |
| 9988 | |
| 9989 | if test "x$ac_ct_OTOOL64" = x; then |
| 9990 | OTOOL64=":" |
| 9991 | else |
| 9992 | case $cross_compiling:$ac_tool_warned in |
| 9993 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9994 | { $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] | 9995 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9996 | ac_tool_warned=yes ;; |
| 9997 | esac |
| 9998 | OTOOL64=$ac_ct_OTOOL64 |
| 9999 | fi |
| 10000 | else |
| 10001 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 10002 | fi |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | |
| 10009 | |
| 10010 | |
| 10011 | |
| 10012 | |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
| 10019 | |
| 10020 | |
| 10021 | |
| 10022 | |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10031 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10032 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10033 | $as_echo_n "(cached) " >&6 |
| 10034 | else |
| 10035 | lt_cv_apple_cc_single_mod=no |
| 10036 | if test -z "${LT_MULTI_MODULE}"; then |
| 10037 | # By default we will add the -single_module flag. You can override |
| 10038 | # by either setting the environment variable LT_MULTI_MODULE |
| 10039 | # non-empty at configure time, or by adding -multi_module to the |
| 10040 | # link flags. |
| 10041 | rm -rf libconftest.dylib* |
| 10042 | echo "int foo(void){return 1;}" > conftest.c |
| 10043 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 10044 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 10045 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 10046 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 10047 | _lt_result=$? |
| 10048 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 10049 | lt_cv_apple_cc_single_mod=yes |
| 10050 | else |
| 10051 | cat conftest.err >&5 |
| 10052 | fi |
| 10053 | rm -rf libconftest.dylib* |
| 10054 | rm -f conftest.* |
| 10055 | fi |
| 10056 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10058 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10060 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10061 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10062 | $as_echo_n "(cached) " >&6 |
| 10063 | else |
| 10064 | lt_cv_ld_exported_symbols_list=no |
| 10065 | save_LDFLAGS=$LDFLAGS |
| 10066 | echo "_main" > conftest.sym |
| 10067 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10069 | /* end confdefs.h. */ |
| 10070 | |
| 10071 | int |
| 10072 | main () |
| 10073 | { |
| 10074 | |
| 10075 | ; |
| 10076 | return 0; |
| 10077 | } |
| 10078 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10079 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10080 | lt_cv_ld_exported_symbols_list=yes |
| 10081 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10082 | lt_cv_ld_exported_symbols_list=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10083 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10084 | rm -f core conftest.err conftest.$ac_objext \ |
| 10085 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10086 | LDFLAGS="$save_LDFLAGS" |
| 10087 | |
| 10088 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10090 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 10091 | case $host_os in |
| 10092 | rhapsody* | darwin1.[012]) |
| 10093 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 10094 | darwin1.*) |
| 10095 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 10096 | darwin*) # darwin 5.x on |
| 10097 | # if running on 10.5 or later, the deployment target defaults |
| 10098 | # to the OS version, if on x86, and 10.4, the deployment |
| 10099 | # target defaults to 10.4. Don't you love it? |
| 10100 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 10101 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 10102 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 10103 | 10.[012]*) |
| 10104 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 10105 | 10.*) |
| 10106 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 10107 | esac |
| 10108 | ;; |
| 10109 | esac |
| 10110 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 10111 | _lt_dar_single_mod='$single_module' |
| 10112 | fi |
| 10113 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 10114 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 10115 | else |
| 10116 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 10117 | fi |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 10118 | if test "$DSYMUTIL" != ":"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10119 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 10120 | else |
| 10121 | _lt_dsymutil= |
| 10122 | fi |
| 10123 | ;; |
| 10124 | esac |
| 10125 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10126 | for ac_header in dlfcn.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10127 | do : |
| 10128 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 10129 | " |
| 10130 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10131 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10132 | #define HAVE_DLFCN_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10133 | _ACEOF |
| 10134 | |
| 10135 | fi |
| 10136 | |
| 10137 | done |
| 10138 | |
| 10139 | |
| 10140 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 10141 | ac_ext=cpp |
| 10142 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10143 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10144 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10145 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10146 | if test -z "$CXX"; then |
| 10147 | if test -n "$CCC"; then |
| 10148 | CXX=$CCC |
| 10149 | else |
| 10150 | if test -n "$ac_tool_prefix"; then |
| 10151 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 10152 | do |
| 10153 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10154 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10156 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10157 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 10158 | $as_echo_n "(cached) " >&6 |
| 10159 | else |
| 10160 | if test -n "$CXX"; then |
| 10161 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 10162 | else |
| 10163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10164 | for as_dir in $PATH |
| 10165 | do |
| 10166 | IFS=$as_save_IFS |
| 10167 | test -z "$as_dir" && as_dir=. |
| 10168 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10170 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 10171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10172 | break 2 |
| 10173 | fi |
| 10174 | done |
| 10175 | done |
| 10176 | IFS=$as_save_IFS |
| 10177 | |
| 10178 | fi |
| 10179 | fi |
| 10180 | CXX=$ac_cv_prog_CXX |
| 10181 | if test -n "$CXX"; then |
| 10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 10183 | $as_echo "$CXX" >&6; } |
| 10184 | else |
| 10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10186 | $as_echo "no" >&6; } |
| 10187 | fi |
| 10188 | |
| 10189 | |
| 10190 | test -n "$CXX" && break |
| 10191 | done |
| 10192 | fi |
| 10193 | if test -z "$CXX"; then |
| 10194 | ac_ct_CXX=$CXX |
| 10195 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 10196 | do |
| 10197 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10198 | set dummy $ac_prog; ac_word=$2 |
| 10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10200 | $as_echo_n "checking for $ac_word... " >&6; } |
| 10201 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 10202 | $as_echo_n "(cached) " >&6 |
| 10203 | else |
| 10204 | if test -n "$ac_ct_CXX"; then |
| 10205 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 10206 | else |
| 10207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10208 | for as_dir in $PATH |
| 10209 | do |
| 10210 | IFS=$as_save_IFS |
| 10211 | test -z "$as_dir" && as_dir=. |
| 10212 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10213 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10214 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 10215 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10216 | break 2 |
| 10217 | fi |
| 10218 | done |
| 10219 | done |
| 10220 | IFS=$as_save_IFS |
| 10221 | |
| 10222 | fi |
| 10223 | fi |
| 10224 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 10225 | if test -n "$ac_ct_CXX"; then |
| 10226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 10227 | $as_echo "$ac_ct_CXX" >&6; } |
| 10228 | else |
| 10229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10230 | $as_echo "no" >&6; } |
| 10231 | fi |
| 10232 | |
| 10233 | |
| 10234 | test -n "$ac_ct_CXX" && break |
| 10235 | done |
| 10236 | |
| 10237 | if test "x$ac_ct_CXX" = x; then |
| 10238 | CXX="g++" |
| 10239 | else |
| 10240 | case $cross_compiling:$ac_tool_warned in |
| 10241 | yes:) |
| 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10244 | ac_tool_warned=yes ;; |
| 10245 | esac |
| 10246 | CXX=$ac_ct_CXX |
| 10247 | fi |
| 10248 | fi |
| 10249 | |
| 10250 | fi |
| 10251 | fi |
| 10252 | # Provide some information about the compiler. |
| 10253 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 10254 | set X $ac_compile |
| 10255 | ac_compiler=$2 |
| 10256 | for ac_option in --version -v -V -qversion; do |
| 10257 | { { ac_try="$ac_compiler $ac_option >&5" |
| 10258 | case "(($ac_try" in |
| 10259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10260 | *) ac_try_echo=$ac_try;; |
| 10261 | esac |
| 10262 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 10263 | $as_echo "$ac_try_echo"; } >&5 |
| 10264 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 10265 | ac_status=$? |
| 10266 | if test -s conftest.err; then |
| 10267 | sed '10a\ |
| 10268 | ... rest of stderr output deleted ... |
| 10269 | 10q' conftest.err >conftest.er1 |
| 10270 | cat conftest.er1 >&5 |
| 10271 | fi |
| 10272 | rm -f conftest.er1 conftest.err |
| 10273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10274 | test $ac_status = 0; } |
| 10275 | done |
| 10276 | |
| 10277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 10278 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 10279 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 10280 | $as_echo_n "(cached) " >&6 |
| 10281 | else |
| 10282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10283 | /* end confdefs.h. */ |
| 10284 | |
| 10285 | int |
| 10286 | main () |
| 10287 | { |
| 10288 | #ifndef __GNUC__ |
| 10289 | choke me |
| 10290 | #endif |
| 10291 | |
| 10292 | ; |
| 10293 | return 0; |
| 10294 | } |
| 10295 | _ACEOF |
| 10296 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 10297 | ac_compiler_gnu=yes |
| 10298 | else |
| 10299 | ac_compiler_gnu=no |
| 10300 | fi |
| 10301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10302 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 10303 | |
| 10304 | fi |
| 10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 10306 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 10307 | if test $ac_compiler_gnu = yes; then |
| 10308 | GXX=yes |
| 10309 | else |
| 10310 | GXX= |
| 10311 | fi |
| 10312 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 10313 | ac_save_CXXFLAGS=$CXXFLAGS |
| 10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 10315 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 10316 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 10317 | $as_echo_n "(cached) " >&6 |
| 10318 | else |
| 10319 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 10320 | ac_cxx_werror_flag=yes |
| 10321 | ac_cv_prog_cxx_g=no |
| 10322 | CXXFLAGS="-g" |
| 10323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10324 | /* end confdefs.h. */ |
| 10325 | |
| 10326 | int |
| 10327 | main () |
| 10328 | { |
| 10329 | |
| 10330 | ; |
| 10331 | return 0; |
| 10332 | } |
| 10333 | _ACEOF |
| 10334 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 10335 | ac_cv_prog_cxx_g=yes |
| 10336 | else |
| 10337 | CXXFLAGS="" |
| 10338 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10339 | /* end confdefs.h. */ |
| 10340 | |
| 10341 | int |
| 10342 | main () |
| 10343 | { |
| 10344 | |
| 10345 | ; |
| 10346 | return 0; |
| 10347 | } |
| 10348 | _ACEOF |
| 10349 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 10350 | |
| 10351 | else |
| 10352 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 10353 | CXXFLAGS="-g" |
| 10354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10355 | /* end confdefs.h. */ |
| 10356 | |
| 10357 | int |
| 10358 | main () |
| 10359 | { |
| 10360 | |
| 10361 | ; |
| 10362 | return 0; |
| 10363 | } |
| 10364 | _ACEOF |
| 10365 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 10366 | ac_cv_prog_cxx_g=yes |
| 10367 | fi |
| 10368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10369 | fi |
| 10370 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10371 | fi |
| 10372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10373 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 10374 | fi |
| 10375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 10376 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 10377 | if test "$ac_test_CXXFLAGS" = set; then |
| 10378 | CXXFLAGS=$ac_save_CXXFLAGS |
| 10379 | elif test $ac_cv_prog_cxx_g = yes; then |
| 10380 | if test "$GXX" = yes; then |
| 10381 | CXXFLAGS="-g -O2" |
| 10382 | else |
| 10383 | CXXFLAGS="-g" |
| 10384 | fi |
| 10385 | else |
| 10386 | if test "$GXX" = yes; then |
| 10387 | CXXFLAGS="-O2" |
| 10388 | else |
| 10389 | CXXFLAGS= |
| 10390 | fi |
| 10391 | fi |
| 10392 | ac_ext=c |
| 10393 | ac_cpp='$CPP $CPPFLAGS' |
| 10394 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10395 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10396 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10397 | |
| 10398 | depcc="$CXX" am_compiler_list= |
| 10399 | |
| 10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 10401 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 10402 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 10403 | $as_echo_n "(cached) " >&6 |
| 10404 | else |
| 10405 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 10406 | # We make a subdir and do the tests there. Otherwise we can end up |
| 10407 | # making bogus files that we don't know about and never remove. For |
| 10408 | # instance it was reported that on HP-UX the gcc test will end up |
| 10409 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 10410 | # in D'. |
| 10411 | mkdir conftest.dir |
| 10412 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 10413 | # using a relative directory. |
| 10414 | cp "$am_depcomp" conftest.dir |
| 10415 | cd conftest.dir |
| 10416 | # We will build objects and dependencies in a subdirectory because |
| 10417 | # it helps to detect inapplicable dependency modes. For instance |
| 10418 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 10419 | # side effect of compilation, but ICC will put the dependencies in |
| 10420 | # the current directory while Tru64 will put them in the object |
| 10421 | # directory. |
| 10422 | mkdir sub |
| 10423 | |
| 10424 | am_cv_CXX_dependencies_compiler_type=none |
| 10425 | if test "$am_compiler_list" = ""; then |
| 10426 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 10427 | fi |
| 10428 | am__universal=false |
| 10429 | case " $depcc " in #( |
| 10430 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 10431 | esac |
| 10432 | |
| 10433 | for depmode in $am_compiler_list; do |
| 10434 | # Setup a source with many dependencies, because some compilers |
| 10435 | # like to wrap large dependency lists on column 80 (with \), and |
| 10436 | # we should not choose a depcomp mode which is confused by this. |
| 10437 | # |
| 10438 | # We need to recreate these files for each test, as the compiler may |
| 10439 | # overwrite some of them when testing with obscure command lines. |
| 10440 | # This happens at least with the AIX C compiler. |
| 10441 | : > sub/conftest.c |
| 10442 | for i in 1 2 3 4 5 6; do |
| 10443 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 10444 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 10445 | # Solaris 8's {/usr,}/bin/sh. |
| 10446 | touch sub/conftst$i.h |
| 10447 | done |
| 10448 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 10449 | |
| 10450 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 10451 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 10452 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 10453 | # versions had trouble with output in subdirs |
| 10454 | am__obj=sub/conftest.${OBJEXT-o} |
| 10455 | am__minus_obj="-o $am__obj" |
| 10456 | case $depmode in |
| 10457 | gcc) |
| 10458 | # This depmode causes a compiler race in universal mode. |
| 10459 | test "$am__universal" = false || continue |
| 10460 | ;; |
| 10461 | nosideeffect) |
| 10462 | # after this tag, mechanisms are not by side-effect, so they'll |
| 10463 | # only be used when explicitly requested |
| 10464 | if test "x$enable_dependency_tracking" = xyes; then |
| 10465 | continue |
| 10466 | else |
| 10467 | break |
| 10468 | fi |
| 10469 | ;; |
| 10470 | msvisualcpp | msvcmsys) |
| 10471 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 10472 | # not run yet. These depmodes are late enough in the game, and |
| 10473 | # so weak that their functioning should not be impacted. |
| 10474 | am__obj=conftest.${OBJEXT-o} |
| 10475 | am__minus_obj= |
| 10476 | ;; |
| 10477 | none) break ;; |
| 10478 | esac |
| 10479 | if depmode=$depmode \ |
| 10480 | source=sub/conftest.c object=$am__obj \ |
| 10481 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 10482 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 10483 | >/dev/null 2>conftest.err && |
| 10484 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 10485 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 10486 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 10487 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 10488 | # icc doesn't choke on unknown options, it will just issue warnings |
| 10489 | # or remarks (even with -Werror). So we grep stderr for any message |
| 10490 | # that says an option was ignored or not supported. |
| 10491 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 10492 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 10493 | # The diagnosis changed in icc 8.0: |
| 10494 | # icc: Command line remark: option '-MP' not supported |
| 10495 | if (grep 'ignoring option' conftest.err || |
| 10496 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 10497 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 10498 | break |
| 10499 | fi |
| 10500 | fi |
| 10501 | done |
| 10502 | |
| 10503 | cd .. |
| 10504 | rm -rf conftest.dir |
| 10505 | else |
| 10506 | am_cv_CXX_dependencies_compiler_type=none |
| 10507 | fi |
| 10508 | |
| 10509 | fi |
| 10510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 10511 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 10512 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 10513 | |
| 10514 | if |
| 10515 | test "x$enable_dependency_tracking" != xno \ |
| 10516 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 10517 | am__fastdepCXX_TRUE= |
| 10518 | am__fastdepCXX_FALSE='#' |
| 10519 | else |
| 10520 | am__fastdepCXX_TRUE='#' |
| 10521 | am__fastdepCXX_FALSE= |
| 10522 | fi |
| 10523 | |
| 10524 | |
| 10525 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 10526 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 10527 | (test "X$CXX" != "Xg++"))) ; then |
| 10528 | ac_ext=cpp |
| 10529 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 10530 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10531 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10532 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 10534 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 10535 | if test -z "$CXXCPP"; then |
| 10536 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 10537 | $as_echo_n "(cached) " >&6 |
| 10538 | else |
| 10539 | # Double quotes because CXXCPP needs to be expanded |
| 10540 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 10541 | do |
| 10542 | ac_preproc_ok=false |
| 10543 | for ac_cxx_preproc_warn_flag in '' yes |
| 10544 | do |
| 10545 | # Use a header file that comes with gcc, so configuring glibc |
| 10546 | # with a fresh cross-compiler works. |
| 10547 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10548 | # <limits.h> exists even on freestanding compilers. |
| 10549 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10550 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10552 | /* end confdefs.h. */ |
| 10553 | #ifdef __STDC__ |
| 10554 | # include <limits.h> |
| 10555 | #else |
| 10556 | # include <assert.h> |
| 10557 | #endif |
| 10558 | Syntax error |
| 10559 | _ACEOF |
| 10560 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 10561 | |
| 10562 | else |
| 10563 | # Broken: fails on valid input. |
| 10564 | continue |
| 10565 | fi |
| 10566 | rm -f conftest.err conftest.$ac_ext |
| 10567 | |
| 10568 | # OK, works on sane cases. Now check whether nonexistent headers |
| 10569 | # can be detected and how. |
| 10570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10571 | /* end confdefs.h. */ |
| 10572 | #include <ac_nonexistent.h> |
| 10573 | _ACEOF |
| 10574 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 10575 | # Broken: success on invalid input. |
| 10576 | continue |
| 10577 | else |
| 10578 | # Passes both tests. |
| 10579 | ac_preproc_ok=: |
| 10580 | break |
| 10581 | fi |
| 10582 | rm -f conftest.err conftest.$ac_ext |
| 10583 | |
| 10584 | done |
| 10585 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10586 | rm -f conftest.err conftest.$ac_ext |
| 10587 | if $ac_preproc_ok; then : |
| 10588 | break |
| 10589 | fi |
| 10590 | |
| 10591 | done |
| 10592 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10593 | |
| 10594 | fi |
| 10595 | CXXCPP=$ac_cv_prog_CXXCPP |
| 10596 | else |
| 10597 | ac_cv_prog_CXXCPP=$CXXCPP |
| 10598 | fi |
| 10599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 10600 | $as_echo "$CXXCPP" >&6; } |
| 10601 | ac_preproc_ok=false |
| 10602 | for ac_cxx_preproc_warn_flag in '' yes |
| 10603 | do |
| 10604 | # Use a header file that comes with gcc, so configuring glibc |
| 10605 | # with a fresh cross-compiler works. |
| 10606 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10607 | # <limits.h> exists even on freestanding compilers. |
| 10608 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 10609 | # not just through cpp. "Syntax error" is here to catch this case. |
| 10610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10611 | /* end confdefs.h. */ |
| 10612 | #ifdef __STDC__ |
| 10613 | # include <limits.h> |
| 10614 | #else |
| 10615 | # include <assert.h> |
| 10616 | #endif |
| 10617 | Syntax error |
| 10618 | _ACEOF |
| 10619 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 10620 | |
| 10621 | else |
| 10622 | # Broken: fails on valid input. |
| 10623 | continue |
| 10624 | fi |
| 10625 | rm -f conftest.err conftest.$ac_ext |
| 10626 | |
| 10627 | # OK, works on sane cases. Now check whether nonexistent headers |
| 10628 | # can be detected and how. |
| 10629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10630 | /* end confdefs.h. */ |
| 10631 | #include <ac_nonexistent.h> |
| 10632 | _ACEOF |
| 10633 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 10634 | # Broken: success on invalid input. |
| 10635 | continue |
| 10636 | else |
| 10637 | # Passes both tests. |
| 10638 | ac_preproc_ok=: |
| 10639 | break |
| 10640 | fi |
| 10641 | rm -f conftest.err conftest.$ac_ext |
| 10642 | |
| 10643 | done |
| 10644 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 10645 | rm -f conftest.err conftest.$ac_ext |
| 10646 | if $ac_preproc_ok; then : |
| 10647 | |
| 10648 | else |
| 10649 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 10650 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 10651 | _lt_caught_CXX_error=yes; } |
| 10652 | fi |
| 10653 | |
| 10654 | ac_ext=c |
| 10655 | ac_cpp='$CPP $CPPFLAGS' |
| 10656 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10657 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10658 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10659 | |
| 10660 | else |
| 10661 | _lt_caught_CXX_error=yes |
| 10662 | fi |
| 10663 | |
| 10664 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10665 | |
| 10666 | |
| 10667 | |
| 10668 | # Set options |
| 10669 | enable_win32_dll=yes |
| 10670 | |
| 10671 | case $host in |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 10672 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10673 | if test -n "$ac_tool_prefix"; then |
| 10674 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 10675 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10677 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10678 | if test "${ac_cv_prog_AS+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10679 | $as_echo_n "(cached) " >&6 |
| 10680 | else |
| 10681 | if test -n "$AS"; then |
| 10682 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 10683 | else |
| 10684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10685 | for as_dir in $PATH |
| 10686 | do |
| 10687 | IFS=$as_save_IFS |
| 10688 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10691 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10692 | $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] | 10693 | break 2 |
| 10694 | fi |
| 10695 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10696 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10697 | IFS=$as_save_IFS |
| 10698 | |
| 10699 | fi |
| 10700 | fi |
| 10701 | AS=$ac_cv_prog_AS |
| 10702 | if test -n "$AS"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10704 | $as_echo "$AS" >&6; } |
| 10705 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10707 | $as_echo "no" >&6; } |
| 10708 | fi |
| 10709 | |
| 10710 | |
| 10711 | fi |
| 10712 | if test -z "$ac_cv_prog_AS"; then |
| 10713 | ac_ct_AS=$AS |
| 10714 | # Extract the first word of "as", so it can be a program name with args. |
| 10715 | set dummy as; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10717 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10718 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10719 | $as_echo_n "(cached) " >&6 |
| 10720 | else |
| 10721 | if test -n "$ac_ct_AS"; then |
| 10722 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 10723 | else |
| 10724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10725 | for as_dir in $PATH |
| 10726 | do |
| 10727 | IFS=$as_save_IFS |
| 10728 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10731 | ac_cv_prog_ac_ct_AS="as" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10732 | $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] | 10733 | break 2 |
| 10734 | fi |
| 10735 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10736 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10737 | IFS=$as_save_IFS |
| 10738 | |
| 10739 | fi |
| 10740 | fi |
| 10741 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 10742 | if test -n "$ac_ct_AS"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10744 | $as_echo "$ac_ct_AS" >&6; } |
| 10745 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10747 | $as_echo "no" >&6; } |
| 10748 | fi |
| 10749 | |
| 10750 | if test "x$ac_ct_AS" = x; then |
| 10751 | AS="false" |
| 10752 | else |
| 10753 | case $cross_compiling:$ac_tool_warned in |
| 10754 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10755 | { $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] | 10756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10757 | ac_tool_warned=yes ;; |
| 10758 | esac |
| 10759 | AS=$ac_ct_AS |
| 10760 | fi |
| 10761 | else |
| 10762 | AS="$ac_cv_prog_AS" |
| 10763 | fi |
| 10764 | |
| 10765 | if test -n "$ac_tool_prefix"; then |
| 10766 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 10767 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10769 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10770 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10771 | $as_echo_n "(cached) " >&6 |
| 10772 | else |
| 10773 | if test -n "$DLLTOOL"; then |
| 10774 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 10775 | else |
| 10776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10777 | for as_dir in $PATH |
| 10778 | do |
| 10779 | IFS=$as_save_IFS |
| 10780 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10781 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10783 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10784 | $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] | 10785 | break 2 |
| 10786 | fi |
| 10787 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10788 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10789 | IFS=$as_save_IFS |
| 10790 | |
| 10791 | fi |
| 10792 | fi |
| 10793 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 10794 | if test -n "$DLLTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10796 | $as_echo "$DLLTOOL" >&6; } |
| 10797 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10799 | $as_echo "no" >&6; } |
| 10800 | fi |
| 10801 | |
| 10802 | |
| 10803 | fi |
| 10804 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 10805 | ac_ct_DLLTOOL=$DLLTOOL |
| 10806 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 10807 | set dummy dlltool; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10809 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10810 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10811 | $as_echo_n "(cached) " >&6 |
| 10812 | else |
| 10813 | if test -n "$ac_ct_DLLTOOL"; then |
| 10814 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 10815 | else |
| 10816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10817 | for as_dir in $PATH |
| 10818 | do |
| 10819 | IFS=$as_save_IFS |
| 10820 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10823 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10824 | $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] | 10825 | break 2 |
| 10826 | fi |
| 10827 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10828 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10829 | IFS=$as_save_IFS |
| 10830 | |
| 10831 | fi |
| 10832 | fi |
| 10833 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 10834 | if test -n "$ac_ct_DLLTOOL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10836 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 10837 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10839 | $as_echo "no" >&6; } |
| 10840 | fi |
| 10841 | |
| 10842 | if test "x$ac_ct_DLLTOOL" = x; then |
| 10843 | DLLTOOL="false" |
| 10844 | else |
| 10845 | case $cross_compiling:$ac_tool_warned in |
| 10846 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10847 | { $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] | 10848 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10849 | ac_tool_warned=yes ;; |
| 10850 | esac |
| 10851 | DLLTOOL=$ac_ct_DLLTOOL |
| 10852 | fi |
| 10853 | else |
| 10854 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 10855 | fi |
| 10856 | |
| 10857 | if test -n "$ac_tool_prefix"; then |
| 10858 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10859 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10861 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10862 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10863 | $as_echo_n "(cached) " >&6 |
| 10864 | else |
| 10865 | if test -n "$OBJDUMP"; then |
| 10866 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10867 | else |
| 10868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10869 | for as_dir in $PATH |
| 10870 | do |
| 10871 | IFS=$as_save_IFS |
| 10872 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10873 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10874 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10875 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10876 | $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] | 10877 | break 2 |
| 10878 | fi |
| 10879 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10880 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10881 | IFS=$as_save_IFS |
| 10882 | |
| 10883 | fi |
| 10884 | fi |
| 10885 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10886 | if test -n "$OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10888 | $as_echo "$OBJDUMP" >&6; } |
| 10889 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10891 | $as_echo "no" >&6; } |
| 10892 | fi |
| 10893 | |
| 10894 | |
| 10895 | fi |
| 10896 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10897 | ac_ct_OBJDUMP=$OBJDUMP |
| 10898 | # Extract the first word of "objdump", so it can be a program name with args. |
| 10899 | set dummy objdump; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10901 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10902 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10903 | $as_echo_n "(cached) " >&6 |
| 10904 | else |
| 10905 | if test -n "$ac_ct_OBJDUMP"; then |
| 10906 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10907 | else |
| 10908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10909 | for as_dir in $PATH |
| 10910 | do |
| 10911 | IFS=$as_save_IFS |
| 10912 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10915 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10916 | $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] | 10917 | break 2 |
| 10918 | fi |
| 10919 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10920 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10921 | IFS=$as_save_IFS |
| 10922 | |
| 10923 | fi |
| 10924 | fi |
| 10925 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10926 | if test -n "$ac_ct_OBJDUMP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10928 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 10929 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10931 | $as_echo "no" >&6; } |
| 10932 | fi |
| 10933 | |
| 10934 | if test "x$ac_ct_OBJDUMP" = x; then |
| 10935 | OBJDUMP="false" |
| 10936 | else |
| 10937 | case $cross_compiling:$ac_tool_warned in |
| 10938 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10939 | { $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] | 10940 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10941 | ac_tool_warned=yes ;; |
| 10942 | esac |
| 10943 | OBJDUMP=$ac_ct_OBJDUMP |
| 10944 | fi |
| 10945 | else |
| 10946 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 10947 | fi |
| 10948 | |
| 10949 | ;; |
| 10950 | esac |
| 10951 | |
| 10952 | test -z "$AS" && AS=as |
| 10953 | |
| 10954 | |
| 10955 | |
| 10956 | |
| 10957 | |
| 10958 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 10959 | |
| 10960 | |
| 10961 | |
| 10962 | |
| 10963 | |
| 10964 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 10965 | |
| 10966 | |
| 10967 | |
| 10968 | |
| 10969 | |
| 10970 | |
| 10971 | |
| 10972 | |
| 10973 | |
| 10974 | # Check whether --enable-shared was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10975 | if test "${enable_shared+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10976 | enableval=$enable_shared; p=${PACKAGE-default} |
| 10977 | case $enableval in |
| 10978 | yes) enable_shared=yes ;; |
| 10979 | no) enable_shared=no ;; |
| 10980 | *) |
| 10981 | enable_shared=no |
| 10982 | # Look at the argument we got. We use all the common list separators. |
| 10983 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 10984 | for pkg in $enableval; do |
| 10985 | IFS="$lt_save_ifs" |
| 10986 | if test "X$pkg" = "X$p"; then |
| 10987 | enable_shared=yes |
| 10988 | fi |
| 10989 | done |
| 10990 | IFS="$lt_save_ifs" |
| 10991 | ;; |
| 10992 | esac |
| 10993 | else |
| 10994 | enable_shared=yes |
| 10995 | fi |
| 10996 | |
| 10997 | |
| 10998 | |
| 10999 | |
| 11000 | |
| 11001 | |
| 11002 | |
| 11003 | |
| 11004 | |
| 11005 | # Check whether --enable-static was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11006 | if test "${enable_static+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11007 | enableval=$enable_static; p=${PACKAGE-default} |
| 11008 | case $enableval in |
| 11009 | yes) enable_static=yes ;; |
| 11010 | no) enable_static=no ;; |
| 11011 | *) |
| 11012 | enable_static=no |
| 11013 | # Look at the argument we got. We use all the common list separators. |
| 11014 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11015 | for pkg in $enableval; do |
| 11016 | IFS="$lt_save_ifs" |
| 11017 | if test "X$pkg" = "X$p"; then |
| 11018 | enable_static=yes |
| 11019 | fi |
| 11020 | done |
| 11021 | IFS="$lt_save_ifs" |
| 11022 | ;; |
| 11023 | esac |
| 11024 | else |
| 11025 | enable_static=yes |
| 11026 | fi |
| 11027 | |
| 11028 | |
| 11029 | |
| 11030 | |
| 11031 | |
| 11032 | |
| 11033 | |
| 11034 | |
| 11035 | |
| 11036 | |
| 11037 | # Check whether --with-pic was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11038 | if test "${with_pic+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11039 | withval=$with_pic; pic_mode="$withval" |
| 11040 | else |
| 11041 | pic_mode=default |
| 11042 | fi |
| 11043 | |
| 11044 | |
| 11045 | test -z "$pic_mode" && pic_mode=default |
| 11046 | |
| 11047 | |
| 11048 | |
| 11049 | |
| 11050 | |
| 11051 | |
| 11052 | |
| 11053 | # Check whether --enable-fast-install was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11054 | if test "${enable_fast_install+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11055 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 11056 | case $enableval in |
| 11057 | yes) enable_fast_install=yes ;; |
| 11058 | no) enable_fast_install=no ;; |
| 11059 | *) |
| 11060 | enable_fast_install=no |
| 11061 | # Look at the argument we got. We use all the common list separators. |
| 11062 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 11063 | for pkg in $enableval; do |
| 11064 | IFS="$lt_save_ifs" |
| 11065 | if test "X$pkg" = "X$p"; then |
| 11066 | enable_fast_install=yes |
| 11067 | fi |
| 11068 | done |
| 11069 | IFS="$lt_save_ifs" |
| 11070 | ;; |
| 11071 | esac |
| 11072 | else |
| 11073 | enable_fast_install=yes |
| 11074 | fi |
| 11075 | |
| 11076 | |
| 11077 | |
| 11078 | |
| 11079 | |
| 11080 | |
| 11081 | |
| 11082 | |
| 11083 | |
| 11084 | |
| 11085 | |
| 11086 | # This can be used to rebuild libtool when needed |
| 11087 | LIBTOOL_DEPS="$ltmain" |
| 11088 | |
| 11089 | # Always use our own libtool. |
| 11090 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 11091 | |
| 11092 | |
| 11093 | |
| 11094 | |
| 11095 | |
| 11096 | |
| 11097 | |
| 11098 | |
| 11099 | |
| 11100 | |
| 11101 | |
| 11102 | |
| 11103 | |
| 11104 | |
| 11105 | |
| 11106 | |
| 11107 | |
| 11108 | |
| 11109 | |
| 11110 | |
| 11111 | |
| 11112 | |
| 11113 | |
| 11114 | |
| 11115 | |
| 11116 | test -z "$LN_S" && LN_S="ln -s" |
| 11117 | |
| 11118 | |
| 11119 | |
| 11120 | |
| 11121 | |
| 11122 | |
| 11123 | |
| 11124 | |
| 11125 | |
| 11126 | |
| 11127 | |
| 11128 | |
| 11129 | |
| 11130 | |
| 11131 | if test -n "${ZSH_VERSION+set}" ; then |
| 11132 | setopt NO_GLOB_SUBST |
| 11133 | fi |
| 11134 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11136 | $as_echo_n "checking for objdir... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11137 | if test "${lt_cv_objdir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11138 | $as_echo_n "(cached) " >&6 |
| 11139 | else |
| 11140 | rm -f .libs 2>/dev/null |
| 11141 | mkdir .libs 2>/dev/null |
| 11142 | if test -d .libs; then |
| 11143 | lt_cv_objdir=.libs |
| 11144 | else |
| 11145 | # MS-DOS does not allow filenames that begin with a dot. |
| 11146 | lt_cv_objdir=_libs |
| 11147 | fi |
| 11148 | rmdir .libs 2>/dev/null |
| 11149 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11151 | $as_echo "$lt_cv_objdir" >&6; } |
| 11152 | objdir=$lt_cv_objdir |
| 11153 | |
| 11154 | |
| 11155 | |
| 11156 | |
| 11157 | |
| 11158 | cat >>confdefs.h <<_ACEOF |
| 11159 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 11160 | _ACEOF |
| 11161 | |
| 11162 | |
| 11163 | |
| 11164 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11165 | |
| 11166 | |
| 11167 | |
| 11168 | |
| 11169 | |
| 11170 | |
| 11171 | |
| 11172 | |
| 11173 | |
| 11174 | |
| 11175 | |
| 11176 | |
| 11177 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11178 | case $host_os in |
| 11179 | aix3*) |
| 11180 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 11181 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 11182 | # vanish in a puff of smoke. |
| 11183 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 11184 | COLLECT_NAMES= |
| 11185 | export COLLECT_NAMES |
| 11186 | fi |
| 11187 | ;; |
| 11188 | esac |
| 11189 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11190 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 11191 | # metacharacters that are still active within double-quoted strings. |
| 11192 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 11193 | |
| 11194 | # Same as above, but do not quote variable references. |
| 11195 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 11196 | |
| 11197 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 11198 | # double_quote_subst'ed string. |
| 11199 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 11200 | |
| 11201 | # Sed substitution to delay expansion of an escaped single quote. |
| 11202 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 11203 | |
| 11204 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 11205 | no_glob_subst='s/\*/\\\*/g' |
| 11206 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11207 | # Global variables: |
| 11208 | ofile=libtool |
| 11209 | can_build_shared=yes |
| 11210 | |
| 11211 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 11212 | # which needs '.lib'). |
| 11213 | libext=a |
| 11214 | |
| 11215 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 11216 | |
| 11217 | old_CC="$CC" |
| 11218 | old_CFLAGS="$CFLAGS" |
| 11219 | |
| 11220 | # Set sane defaults for various variables |
| 11221 | test -z "$CC" && CC=cc |
| 11222 | test -z "$LTCC" && LTCC=$CC |
| 11223 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 11224 | test -z "$LD" && LD=ld |
| 11225 | test -z "$ac_objext" && ac_objext=o |
| 11226 | |
| 11227 | for cc_temp in $compiler""; do |
| 11228 | case $cc_temp in |
| 11229 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11230 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11231 | \-*) ;; |
| 11232 | *) break;; |
| 11233 | esac |
| 11234 | done |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11235 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11236 | |
| 11237 | |
| 11238 | # Only perform the check for file, if the check method requires it |
| 11239 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 11240 | case $deplibs_check_method in |
| 11241 | file_magic*) |
| 11242 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11244 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11245 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11246 | $as_echo_n "(cached) " >&6 |
| 11247 | else |
| 11248 | case $MAGIC_CMD in |
| 11249 | [\\/*] | ?:[\\/]*) |
| 11250 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11251 | ;; |
| 11252 | *) |
| 11253 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11254 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11255 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11256 | for ac_dir in $ac_dummy; do |
| 11257 | IFS="$lt_save_ifs" |
| 11258 | test -z "$ac_dir" && ac_dir=. |
| 11259 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 11260 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 11261 | if test -n "$file_magic_test_file"; then |
| 11262 | case $deplibs_check_method in |
| 11263 | "file_magic "*) |
| 11264 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 11265 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11266 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11267 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11268 | : |
| 11269 | else |
| 11270 | cat <<_LT_EOF 1>&2 |
| 11271 | |
| 11272 | *** Warning: the command libtool uses to detect shared libraries, |
| 11273 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11274 | *** The result is that libtool may fail to recognize shared libraries |
| 11275 | *** as such. This will affect the creation of libtool libraries that |
| 11276 | *** depend on shared libraries, but programs linked with such libtool |
| 11277 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11278 | *** may want to report the problem to your system manager and/or to |
| 11279 | *** bug-libtool@gnu.org |
| 11280 | |
| 11281 | _LT_EOF |
| 11282 | fi ;; |
| 11283 | esac |
| 11284 | fi |
| 11285 | break |
| 11286 | fi |
| 11287 | done |
| 11288 | IFS="$lt_save_ifs" |
| 11289 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11290 | ;; |
| 11291 | esac |
| 11292 | fi |
| 11293 | |
| 11294 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11295 | if test -n "$MAGIC_CMD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11297 | $as_echo "$MAGIC_CMD" >&6; } |
| 11298 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11300 | $as_echo "no" >&6; } |
| 11301 | fi |
| 11302 | |
| 11303 | |
| 11304 | |
| 11305 | |
| 11306 | |
| 11307 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 11308 | if test -n "$ac_tool_prefix"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11310 | $as_echo_n "checking for file... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11311 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11312 | $as_echo_n "(cached) " >&6 |
| 11313 | else |
| 11314 | case $MAGIC_CMD in |
| 11315 | [\\/*] | ?:[\\/]*) |
| 11316 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 11317 | ;; |
| 11318 | *) |
| 11319 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 11320 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11321 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 11322 | for ac_dir in $ac_dummy; do |
| 11323 | IFS="$lt_save_ifs" |
| 11324 | test -z "$ac_dir" && ac_dir=. |
| 11325 | if test -f $ac_dir/file; then |
| 11326 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 11327 | if test -n "$file_magic_test_file"; then |
| 11328 | case $deplibs_check_method in |
| 11329 | "file_magic "*) |
| 11330 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 11331 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11332 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 11333 | $EGREP "$file_magic_regex" > /dev/null; then |
| 11334 | : |
| 11335 | else |
| 11336 | cat <<_LT_EOF 1>&2 |
| 11337 | |
| 11338 | *** Warning: the command libtool uses to detect shared libraries, |
| 11339 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 11340 | *** The result is that libtool may fail to recognize shared libraries |
| 11341 | *** as such. This will affect the creation of libtool libraries that |
| 11342 | *** depend on shared libraries, but programs linked with such libtool |
| 11343 | *** libraries will work regardless of this problem. Nevertheless, you |
| 11344 | *** may want to report the problem to your system manager and/or to |
| 11345 | *** bug-libtool@gnu.org |
| 11346 | |
| 11347 | _LT_EOF |
| 11348 | fi ;; |
| 11349 | esac |
| 11350 | fi |
| 11351 | break |
| 11352 | fi |
| 11353 | done |
| 11354 | IFS="$lt_save_ifs" |
| 11355 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 11356 | ;; |
| 11357 | esac |
| 11358 | fi |
| 11359 | |
| 11360 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 11361 | if test -n "$MAGIC_CMD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11363 | $as_echo "$MAGIC_CMD" >&6; } |
| 11364 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11366 | $as_echo "no" >&6; } |
| 11367 | fi |
| 11368 | |
| 11369 | |
| 11370 | else |
| 11371 | MAGIC_CMD=: |
| 11372 | fi |
| 11373 | fi |
| 11374 | |
| 11375 | fi |
| 11376 | ;; |
| 11377 | esac |
| 11378 | |
| 11379 | # Use C for the default configuration in the libtool script |
| 11380 | |
| 11381 | lt_save_CC="$CC" |
| 11382 | ac_ext=c |
| 11383 | ac_cpp='$CPP $CPPFLAGS' |
| 11384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11387 | |
| 11388 | |
| 11389 | # Source file extension for C test sources. |
| 11390 | ac_ext=c |
| 11391 | |
| 11392 | # Object file extension for compiled C test sources. |
| 11393 | objext=o |
| 11394 | objext=$objext |
| 11395 | |
| 11396 | # Code to be used in simple compile tests |
| 11397 | lt_simple_compile_test_code="int some_variable = 0;" |
| 11398 | |
| 11399 | # Code to be used in simple link tests |
| 11400 | lt_simple_link_test_code='int main(){return(0);}' |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | # If no C compiler was specified, use CC. |
| 11409 | LTCC=${LTCC-"$CC"} |
| 11410 | |
| 11411 | # If no C compiler flags were specified, use CFLAGS. |
| 11412 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11413 | |
| 11414 | # Allow CC to be a program name with arguments. |
| 11415 | compiler=$CC |
| 11416 | |
| 11417 | # Save the default compiler, since it gets overwritten when the other |
| 11418 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 11419 | compiler_DEFAULT=$CC |
| 11420 | |
| 11421 | # save warnings/boilerplate of simple test code |
| 11422 | ac_outfile=conftest.$ac_objext |
| 11423 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 11424 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11425 | _lt_compiler_boilerplate=`cat conftest.err` |
| 11426 | $RM conftest* |
| 11427 | |
| 11428 | ac_outfile=conftest.$ac_objext |
| 11429 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 11430 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11431 | _lt_linker_boilerplate=`cat conftest.err` |
| 11432 | $RM -r conftest* |
| 11433 | |
| 11434 | |
| 11435 | ## CAVEAT EMPTOR: |
| 11436 | ## There is no encapsulation within the following macros, do not change |
| 11437 | ## the running order or otherwise move them around unless you know exactly |
| 11438 | ## what you are doing... |
| 11439 | if test -n "$compiler"; then |
| 11440 | |
| 11441 | lt_prog_compiler_no_builtin_flag= |
| 11442 | |
| 11443 | if test "$GCC" = yes; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11444 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11445 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11447 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11448 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11449 | $as_echo_n "(cached) " >&6 |
| 11450 | else |
| 11451 | lt_cv_prog_compiler_rtti_exceptions=no |
| 11452 | ac_outfile=conftest.$ac_objext |
| 11453 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11454 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 11455 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11456 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11457 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11458 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11459 | # The option is referenced via a variable to avoid confusing sed. |
| 11460 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11461 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11462 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11463 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11464 | (eval echo "\"\$as_me:11464: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11465 | (eval "$lt_compile" 2>conftest.err) |
| 11466 | ac_status=$? |
| 11467 | cat conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11468 | echo "$as_me:11468: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11469 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11470 | # The compiler can only warn and ignore the option if not recognized |
| 11471 | # So say no if there are warnings other than the usual output. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11472 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11473 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11474 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11475 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 11476 | fi |
| 11477 | fi |
| 11478 | $RM conftest* |
| 11479 | |
| 11480 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11482 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 11483 | |
| 11484 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 11485 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 11486 | else |
| 11487 | : |
| 11488 | fi |
| 11489 | |
| 11490 | fi |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | lt_prog_compiler_wl= |
| 11498 | lt_prog_compiler_pic= |
| 11499 | lt_prog_compiler_static= |
| 11500 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11502 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 11503 | |
| 11504 | if test "$GCC" = yes; then |
| 11505 | lt_prog_compiler_wl='-Wl,' |
| 11506 | lt_prog_compiler_static='-static' |
| 11507 | |
| 11508 | case $host_os in |
| 11509 | aix*) |
| 11510 | # All AIX code is PIC. |
| 11511 | if test "$host_cpu" = ia64; then |
| 11512 | # AIX 5 now supports IA64 processor |
| 11513 | lt_prog_compiler_static='-Bstatic' |
| 11514 | fi |
| 11515 | ;; |
| 11516 | |
| 11517 | amigaos*) |
| 11518 | case $host_cpu in |
| 11519 | powerpc) |
| 11520 | # see comment about AmigaOS4 .so support |
| 11521 | lt_prog_compiler_pic='-fPIC' |
| 11522 | ;; |
| 11523 | m68k) |
| 11524 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 11525 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 11526 | # like `-m68040'. |
| 11527 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 11528 | ;; |
| 11529 | esac |
| 11530 | ;; |
| 11531 | |
| 11532 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 11533 | # PIC is the default for these OSes. |
| 11534 | ;; |
| 11535 | |
| 11536 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 11537 | # This hack is so that the source file can tell whether it is being |
| 11538 | # built for inclusion in a dll (and should export symbols for example). |
| 11539 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 11540 | # (--disable-auto-import) libraries |
| 11541 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11542 | ;; |
| 11543 | |
| 11544 | darwin* | rhapsody*) |
| 11545 | # PIC is the default on this platform |
| 11546 | # Common symbols not allowed in MH_DYLIB files |
| 11547 | lt_prog_compiler_pic='-fno-common' |
| 11548 | ;; |
| 11549 | |
| 11550 | hpux*) |
| 11551 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 11552 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 11553 | # sets the default TLS model and affects inlining. |
| 11554 | case $host_cpu in |
| 11555 | hppa*64*) |
| 11556 | # +Z the default |
| 11557 | ;; |
| 11558 | *) |
| 11559 | lt_prog_compiler_pic='-fPIC' |
| 11560 | ;; |
| 11561 | esac |
| 11562 | ;; |
| 11563 | |
| 11564 | interix[3-9]*) |
| 11565 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 11566 | # Instead, we relocate shared libraries at runtime. |
| 11567 | ;; |
| 11568 | |
| 11569 | msdosdjgpp*) |
| 11570 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 11571 | # on systems that don't support them. |
| 11572 | lt_prog_compiler_can_build_shared=no |
| 11573 | enable_shared=no |
| 11574 | ;; |
| 11575 | |
| 11576 | *nto* | *qnx*) |
| 11577 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11578 | # it will coredump. |
| 11579 | lt_prog_compiler_pic='-fPIC -shared' |
| 11580 | ;; |
| 11581 | |
| 11582 | sysv4*MP*) |
| 11583 | if test -d /usr/nec; then |
| 11584 | lt_prog_compiler_pic=-Kconform_pic |
| 11585 | fi |
| 11586 | ;; |
| 11587 | |
| 11588 | *) |
| 11589 | lt_prog_compiler_pic='-fPIC' |
| 11590 | ;; |
| 11591 | esac |
| 11592 | else |
| 11593 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 11594 | case $host_os in |
| 11595 | aix*) |
| 11596 | lt_prog_compiler_wl='-Wl,' |
| 11597 | if test "$host_cpu" = ia64; then |
| 11598 | # AIX 5 now supports IA64 processor |
| 11599 | lt_prog_compiler_static='-Bstatic' |
| 11600 | else |
| 11601 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 11602 | fi |
| 11603 | ;; |
| 11604 | |
| 11605 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 11606 | # This hack is so that the source file can tell whether it is being |
| 11607 | # built for inclusion in a dll (and should export symbols for example). |
| 11608 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 11609 | ;; |
| 11610 | |
| 11611 | hpux9* | hpux10* | hpux11*) |
| 11612 | lt_prog_compiler_wl='-Wl,' |
| 11613 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 11614 | # not for PA HP-UX. |
| 11615 | case $host_cpu in |
| 11616 | hppa*64*|ia64*) |
| 11617 | # +Z the default |
| 11618 | ;; |
| 11619 | *) |
| 11620 | lt_prog_compiler_pic='+Z' |
| 11621 | ;; |
| 11622 | esac |
| 11623 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 11624 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 11625 | ;; |
| 11626 | |
| 11627 | irix5* | irix6* | nonstopux*) |
| 11628 | lt_prog_compiler_wl='-Wl,' |
| 11629 | # PIC (with -KPIC) is the default. |
| 11630 | lt_prog_compiler_static='-non_shared' |
| 11631 | ;; |
| 11632 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11633 | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11634 | case $cc_basename in |
| 11635 | # old Intel for x86_64 which still supported -KPIC. |
| 11636 | ecc*) |
| 11637 | lt_prog_compiler_wl='-Wl,' |
| 11638 | lt_prog_compiler_pic='-KPIC' |
| 11639 | lt_prog_compiler_static='-static' |
| 11640 | ;; |
| 11641 | # icc used to be incompatible with GCC. |
| 11642 | # ICC 10 doesn't accept -KPIC any more. |
| 11643 | icc* | ifort*) |
| 11644 | lt_prog_compiler_wl='-Wl,' |
| 11645 | lt_prog_compiler_pic='-fPIC' |
| 11646 | lt_prog_compiler_static='-static' |
| 11647 | ;; |
| 11648 | # Lahey Fortran 8.1. |
| 11649 | lf95*) |
| 11650 | lt_prog_compiler_wl='-Wl,' |
| 11651 | lt_prog_compiler_pic='--shared' |
| 11652 | lt_prog_compiler_static='--static' |
| 11653 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11654 | pgcc* | pgf77* | pgf90* | pgf95*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11655 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 11656 | # which looks to be a dead project) |
| 11657 | lt_prog_compiler_wl='-Wl,' |
| 11658 | lt_prog_compiler_pic='-fpic' |
| 11659 | lt_prog_compiler_static='-Bstatic' |
| 11660 | ;; |
| 11661 | ccc*) |
| 11662 | lt_prog_compiler_wl='-Wl,' |
| 11663 | # All Alpha code is PIC. |
| 11664 | lt_prog_compiler_static='-non_shared' |
| 11665 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11666 | xl*) |
| 11667 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11668 | lt_prog_compiler_wl='-Wl,' |
| 11669 | lt_prog_compiler_pic='-qpic' |
| 11670 | lt_prog_compiler_static='-qstaticlink' |
| 11671 | ;; |
| 11672 | *) |
| 11673 | case `$CC -V 2>&1 | sed 5q` in |
| 11674 | *Sun\ C*) |
| 11675 | # Sun C 5.9 |
| 11676 | lt_prog_compiler_pic='-KPIC' |
| 11677 | lt_prog_compiler_static='-Bstatic' |
| 11678 | lt_prog_compiler_wl='-Wl,' |
| 11679 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11680 | *Sun\ F*) |
| 11681 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 11682 | lt_prog_compiler_pic='-KPIC' |
| 11683 | lt_prog_compiler_static='-Bstatic' |
| 11684 | lt_prog_compiler_wl='' |
| 11685 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11686 | esac |
| 11687 | ;; |
| 11688 | esac |
| 11689 | ;; |
| 11690 | |
| 11691 | newsos6) |
| 11692 | lt_prog_compiler_pic='-KPIC' |
| 11693 | lt_prog_compiler_static='-Bstatic' |
| 11694 | ;; |
| 11695 | |
| 11696 | *nto* | *qnx*) |
| 11697 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 11698 | # it will coredump. |
| 11699 | lt_prog_compiler_pic='-fPIC -shared' |
| 11700 | ;; |
| 11701 | |
| 11702 | osf3* | osf4* | osf5*) |
| 11703 | lt_prog_compiler_wl='-Wl,' |
| 11704 | # All OSF/1 code is PIC. |
| 11705 | lt_prog_compiler_static='-non_shared' |
| 11706 | ;; |
| 11707 | |
| 11708 | rdos*) |
| 11709 | lt_prog_compiler_static='-non_shared' |
| 11710 | ;; |
| 11711 | |
| 11712 | solaris*) |
| 11713 | lt_prog_compiler_pic='-KPIC' |
| 11714 | lt_prog_compiler_static='-Bstatic' |
| 11715 | case $cc_basename in |
| 11716 | f77* | f90* | f95*) |
| 11717 | lt_prog_compiler_wl='-Qoption ld ';; |
| 11718 | *) |
| 11719 | lt_prog_compiler_wl='-Wl,';; |
| 11720 | esac |
| 11721 | ;; |
| 11722 | |
| 11723 | sunos4*) |
| 11724 | lt_prog_compiler_wl='-Qoption ld ' |
| 11725 | lt_prog_compiler_pic='-PIC' |
| 11726 | lt_prog_compiler_static='-Bstatic' |
| 11727 | ;; |
| 11728 | |
| 11729 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 11730 | lt_prog_compiler_wl='-Wl,' |
| 11731 | lt_prog_compiler_pic='-KPIC' |
| 11732 | lt_prog_compiler_static='-Bstatic' |
| 11733 | ;; |
| 11734 | |
| 11735 | sysv4*MP*) |
| 11736 | if test -d /usr/nec ;then |
| 11737 | lt_prog_compiler_pic='-Kconform_pic' |
| 11738 | lt_prog_compiler_static='-Bstatic' |
| 11739 | fi |
| 11740 | ;; |
| 11741 | |
| 11742 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 11743 | lt_prog_compiler_wl='-Wl,' |
| 11744 | lt_prog_compiler_pic='-KPIC' |
| 11745 | lt_prog_compiler_static='-Bstatic' |
| 11746 | ;; |
| 11747 | |
| 11748 | unicos*) |
| 11749 | lt_prog_compiler_wl='-Wl,' |
| 11750 | lt_prog_compiler_can_build_shared=no |
| 11751 | ;; |
| 11752 | |
| 11753 | uts4*) |
| 11754 | lt_prog_compiler_pic='-pic' |
| 11755 | lt_prog_compiler_static='-Bstatic' |
| 11756 | ;; |
| 11757 | |
| 11758 | *) |
| 11759 | lt_prog_compiler_can_build_shared=no |
| 11760 | ;; |
| 11761 | esac |
| 11762 | fi |
| 11763 | |
| 11764 | case $host_os in |
| 11765 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 11766 | *djgpp*) |
| 11767 | lt_prog_compiler_pic= |
| 11768 | ;; |
| 11769 | *) |
| 11770 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 11771 | ;; |
| 11772 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11774 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 11775 | |
| 11776 | |
| 11777 | |
| 11778 | |
| 11779 | |
| 11780 | |
| 11781 | # |
| 11782 | # Check to make sure the PIC flag actually works. |
| 11783 | # |
| 11784 | if test -n "$lt_prog_compiler_pic"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11786 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11787 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11788 | $as_echo_n "(cached) " >&6 |
| 11789 | else |
| 11790 | lt_cv_prog_compiler_pic_works=no |
| 11791 | ac_outfile=conftest.$ac_objext |
| 11792 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11793 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 11794 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11795 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11796 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11797 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11798 | # The option is referenced via a variable to avoid confusing sed. |
| 11799 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11800 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11801 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11802 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11803 | (eval echo "\"\$as_me:11803: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11804 | (eval "$lt_compile" 2>conftest.err) |
| 11805 | ac_status=$? |
| 11806 | cat conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11807 | echo "$as_me:11807: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11808 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 11809 | # The compiler can only warn and ignore the option if not recognized |
| 11810 | # So say no if there are warnings other than the usual output. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11811 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11812 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11813 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 11814 | lt_cv_prog_compiler_pic_works=yes |
| 11815 | fi |
| 11816 | fi |
| 11817 | $RM conftest* |
| 11818 | |
| 11819 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11821 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 11822 | |
| 11823 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 11824 | case $lt_prog_compiler_pic in |
| 11825 | "" | " "*) ;; |
| 11826 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 11827 | esac |
| 11828 | else |
| 11829 | lt_prog_compiler_pic= |
| 11830 | lt_prog_compiler_can_build_shared=no |
| 11831 | fi |
| 11832 | |
| 11833 | fi |
| 11834 | |
| 11835 | |
| 11836 | |
| 11837 | |
| 11838 | |
| 11839 | |
| 11840 | # |
| 11841 | # Check to make sure the static flag actually works. |
| 11842 | # |
| 11843 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11845 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11846 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11847 | $as_echo_n "(cached) " >&6 |
| 11848 | else |
| 11849 | lt_cv_prog_compiler_static_works=no |
| 11850 | save_LDFLAGS="$LDFLAGS" |
| 11851 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 11852 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 11853 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 11854 | # The linker can only warn and ignore the option if not recognized |
| 11855 | # So say no if there are warnings |
| 11856 | if test -s conftest.err; then |
| 11857 | # Append any errors to the config.log. |
| 11858 | cat conftest.err 1>&5 |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11859 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11860 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 11861 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 11862 | lt_cv_prog_compiler_static_works=yes |
| 11863 | fi |
| 11864 | else |
| 11865 | lt_cv_prog_compiler_static_works=yes |
| 11866 | fi |
| 11867 | fi |
| 11868 | $RM -r conftest* |
| 11869 | LDFLAGS="$save_LDFLAGS" |
| 11870 | |
| 11871 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11873 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 11874 | |
| 11875 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 11876 | : |
| 11877 | else |
| 11878 | lt_prog_compiler_static= |
| 11879 | fi |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11888 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11889 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11890 | $as_echo_n "(cached) " >&6 |
| 11891 | else |
| 11892 | lt_cv_prog_compiler_c_o=no |
| 11893 | $RM -r conftest 2>/dev/null |
| 11894 | mkdir conftest |
| 11895 | cd conftest |
| 11896 | mkdir out |
| 11897 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11898 | |
| 11899 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11900 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11901 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11902 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11903 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11904 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11905 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11906 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11907 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11908 | (eval echo "\"\$as_me:11908: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11909 | (eval "$lt_compile" 2>out/conftest.err) |
| 11910 | ac_status=$? |
| 11911 | cat out/conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11912 | echo "$as_me:11912: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11913 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11914 | then |
| 11915 | # The compiler can only warn and ignore the option if not recognized |
| 11916 | # So say no if there are warnings |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11917 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11918 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11919 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11920 | lt_cv_prog_compiler_c_o=yes |
| 11921 | fi |
| 11922 | fi |
| 11923 | chmod u+w . 2>&5 |
| 11924 | $RM conftest* |
| 11925 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11926 | # template instantiation |
| 11927 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11928 | $RM out/* && rmdir out |
| 11929 | cd .. |
| 11930 | $RM -r conftest |
| 11931 | $RM conftest* |
| 11932 | |
| 11933 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11935 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11943 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11944 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11945 | $as_echo_n "(cached) " >&6 |
| 11946 | else |
| 11947 | lt_cv_prog_compiler_c_o=no |
| 11948 | $RM -r conftest 2>/dev/null |
| 11949 | mkdir conftest |
| 11950 | cd conftest |
| 11951 | mkdir out |
| 11952 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 11953 | |
| 11954 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 11955 | # Insert the option either (1) after the last *FLAGS variable, or |
| 11956 | # (2) before a word containing "conftest.", or (3) at the end. |
| 11957 | # Note that $ac_compile itself does not contain backslashes and begins |
| 11958 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 11959 | lt_compile=`echo "$ac_compile" | $SED \ |
| 11960 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 11961 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 11962 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11963 | (eval echo "\"\$as_me:11963: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11964 | (eval "$lt_compile" 2>out/conftest.err) |
| 11965 | ac_status=$? |
| 11966 | cat out/conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 11967 | echo "$as_me:11967: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11968 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 11969 | then |
| 11970 | # The compiler can only warn and ignore the option if not recognized |
| 11971 | # So say no if there are warnings |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 11972 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11973 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 11974 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 11975 | lt_cv_prog_compiler_c_o=yes |
| 11976 | fi |
| 11977 | fi |
| 11978 | chmod u+w . 2>&5 |
| 11979 | $RM conftest* |
| 11980 | # SGI C++ compiler will create directory out/ii_files/ for |
| 11981 | # template instantiation |
| 11982 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 11983 | $RM out/* && rmdir out |
| 11984 | cd .. |
| 11985 | $RM -r conftest |
| 11986 | $RM conftest* |
| 11987 | |
| 11988 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11990 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 11991 | |
| 11992 | |
| 11993 | |
| 11994 | |
| 11995 | hard_links="nottested" |
| 11996 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 11997 | # do not overwrite the value of need_locks provided by the user |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11999 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 12000 | hard_links=yes |
| 12001 | $RM conftest* |
| 12002 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 12003 | touch conftest.a |
| 12004 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 12005 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12007 | $as_echo "$hard_links" >&6; } |
| 12008 | if test "$hard_links" = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12010 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 12011 | need_locks=warn |
| 12012 | fi |
| 12013 | else |
| 12014 | need_locks=no |
| 12015 | fi |
| 12016 | |
| 12017 | |
| 12018 | |
| 12019 | |
| 12020 | |
| 12021 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12023 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12024 | |
| 12025 | runpath_var= |
| 12026 | allow_undefined_flag= |
| 12027 | always_export_symbols=no |
| 12028 | archive_cmds= |
| 12029 | archive_expsym_cmds= |
| 12030 | compiler_needs_object=no |
| 12031 | enable_shared_with_static_runtimes=no |
| 12032 | export_dynamic_flag_spec= |
| 12033 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 12034 | hardcode_automatic=no |
| 12035 | hardcode_direct=no |
| 12036 | hardcode_direct_absolute=no |
| 12037 | hardcode_libdir_flag_spec= |
| 12038 | hardcode_libdir_flag_spec_ld= |
| 12039 | hardcode_libdir_separator= |
| 12040 | hardcode_minus_L=no |
| 12041 | hardcode_shlibpath_var=unsupported |
| 12042 | inherit_rpath=no |
| 12043 | link_all_deplibs=unknown |
| 12044 | module_cmds= |
| 12045 | module_expsym_cmds= |
| 12046 | old_archive_from_new_cmds= |
| 12047 | old_archive_from_expsyms_cmds= |
| 12048 | thread_safe_flag_spec= |
| 12049 | whole_archive_flag_spec= |
| 12050 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 12051 | # included in the symbol list |
| 12052 | include_expsyms= |
| 12053 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 12054 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 12055 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 12056 | # as well as any symbol that contains `d'. |
| 12057 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 12058 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 12059 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 12060 | # the symbol is explicitly referenced. Since portable code cannot |
| 12061 | # rely on this symbol name, it's probably fine to never include it in |
| 12062 | # preloaded symbol tables. |
| 12063 | # Exclude shared library initialization/finalization symbols. |
| 12064 | extract_expsyms_cmds= |
| 12065 | |
| 12066 | case $host_os in |
| 12067 | cygwin* | mingw* | pw32* | cegcc*) |
| 12068 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 12069 | # When not using gcc, we currently assume that we are using |
| 12070 | # Microsoft Visual C++. |
| 12071 | if test "$GCC" != yes; then |
| 12072 | with_gnu_ld=no |
| 12073 | fi |
| 12074 | ;; |
| 12075 | interix*) |
| 12076 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 12077 | with_gnu_ld=yes |
| 12078 | ;; |
| 12079 | openbsd*) |
| 12080 | with_gnu_ld=no |
| 12081 | ;; |
| 12082 | esac |
| 12083 | |
| 12084 | ld_shlibs=yes |
| 12085 | if test "$with_gnu_ld" = yes; then |
| 12086 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12087 | wlarc='${wl}' |
| 12088 | |
| 12089 | # Set some defaults for GNU ld with shared library support. These |
| 12090 | # are reset later if shared libraries are not supported. Putting them |
| 12091 | # here allows them to be overridden if necessary. |
| 12092 | runpath_var=LD_RUN_PATH |
| 12093 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12094 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 12095 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12096 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 12097 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12098 | else |
| 12099 | whole_archive_flag_spec= |
| 12100 | fi |
| 12101 | supports_anon_versioning=no |
| 12102 | case `$LD -v 2>&1` in |
| 12103 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 12104 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 12105 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 12106 | *\ 2.11.*) ;; # other 2.11 versions |
| 12107 | *) supports_anon_versioning=yes ;; |
| 12108 | esac |
| 12109 | |
| 12110 | # See if GNU ld supports shared libraries. |
| 12111 | case $host_os in |
| 12112 | aix[3-9]*) |
| 12113 | # On AIX/PPC, the GNU linker is very broken |
| 12114 | if test "$host_cpu" != ia64; then |
| 12115 | ld_shlibs=no |
| 12116 | cat <<_LT_EOF 1>&2 |
| 12117 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12118 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12119 | *** to be unable to reliably create shared libraries on AIX. |
| 12120 | *** Therefore, libtool is disabling shared libraries support. If you |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12121 | *** really care for shared libraries, you may want to modify your PATH |
| 12122 | *** so that a non-GNU linker is found, and then restart. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12123 | |
| 12124 | _LT_EOF |
| 12125 | fi |
| 12126 | ;; |
| 12127 | |
| 12128 | amigaos*) |
| 12129 | case $host_cpu in |
| 12130 | powerpc) |
| 12131 | # see comment about AmigaOS4 .so support |
| 12132 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12133 | archive_expsym_cmds='' |
| 12134 | ;; |
| 12135 | m68k) |
| 12136 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 12137 | hardcode_libdir_flag_spec='-L$libdir' |
| 12138 | hardcode_minus_L=yes |
| 12139 | ;; |
| 12140 | esac |
| 12141 | ;; |
| 12142 | |
| 12143 | beos*) |
| 12144 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12145 | allow_undefined_flag=unsupported |
| 12146 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 12147 | # support --undefined. This deserves some investigation. FIXME |
| 12148 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12149 | else |
| 12150 | ld_shlibs=no |
| 12151 | fi |
| 12152 | ;; |
| 12153 | |
| 12154 | cygwin* | mingw* | pw32* | cegcc*) |
| 12155 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 12156 | # as there is no search path for DLLs. |
| 12157 | hardcode_libdir_flag_spec='-L$libdir' |
| 12158 | allow_undefined_flag=unsupported |
| 12159 | always_export_symbols=no |
| 12160 | enable_shared_with_static_runtimes=yes |
| 12161 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 12162 | |
| 12163 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 12164 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12165 | # If the export-symbols file already is a .def file (1st line |
| 12166 | # is EXPORTS), use it as is; otherwise, prepend... |
| 12167 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 12168 | cp $export_symbols $output_objdir/$soname.def; |
| 12169 | else |
| 12170 | echo EXPORTS > $output_objdir/$soname.def; |
| 12171 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12172 | fi~ |
| 12173 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 12174 | else |
| 12175 | ld_shlibs=no |
| 12176 | fi |
| 12177 | ;; |
| 12178 | |
| 12179 | interix[3-9]*) |
| 12180 | hardcode_direct=no |
| 12181 | hardcode_shlibpath_var=no |
| 12182 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12183 | export_dynamic_flag_spec='${wl}-E' |
| 12184 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12185 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12186 | # default) and relocated if they conflict, which is a slow very memory |
| 12187 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12188 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12189 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12190 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12191 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 12192 | ;; |
| 12193 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12194 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12195 | tmp_diet=no |
| 12196 | if test "$host_os" = linux-dietlibc; then |
| 12197 | case $cc_basename in |
| 12198 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 12199 | esac |
| 12200 | fi |
| 12201 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 12202 | && test "$tmp_diet" = no |
| 12203 | then |
| 12204 | tmp_addflag= |
| 12205 | tmp_sharedflag='-shared' |
| 12206 | case $cc_basename,$host_cpu in |
| 12207 | pgcc*) # Portland Group C compiler |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12208 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12209 | tmp_addflag=' $pic_flag' |
| 12210 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12211 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 12212 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12213 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 12214 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 12215 | tmp_addflag=' -i_dynamic' ;; |
| 12216 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 12217 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 12218 | ifc* | ifort*) # Intel Fortran compiler |
| 12219 | tmp_addflag=' -nofor_main' ;; |
| 12220 | lf95*) # Lahey Fortran 8.1 |
| 12221 | whole_archive_flag_spec= |
| 12222 | tmp_sharedflag='--shared' ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12223 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12224 | tmp_sharedflag='-qmkshrobj' |
| 12225 | tmp_addflag= ;; |
| 12226 | esac |
| 12227 | case `$CC -V 2>&1 | sed 5q` in |
| 12228 | *Sun\ C*) # Sun C 5.9 |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12229 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12230 | compiler_needs_object=yes |
| 12231 | tmp_sharedflag='-G' ;; |
| 12232 | *Sun\ F*) # Sun Fortran 8.3 |
| 12233 | tmp_sharedflag='-G' ;; |
| 12234 | esac |
| 12235 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12236 | |
| 12237 | if test "x$supports_anon_versioning" = xyes; then |
| 12238 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12239 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12240 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12241 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12242 | fi |
| 12243 | |
| 12244 | case $cc_basename in |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12245 | xlf*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12246 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 12247 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 12248 | hardcode_libdir_flag_spec= |
| 12249 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 12250 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 12251 | if test "x$supports_anon_versioning" = xyes; then |
| 12252 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12253 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12254 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12255 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 12256 | fi |
| 12257 | ;; |
| 12258 | esac |
| 12259 | else |
| 12260 | ld_shlibs=no |
| 12261 | fi |
| 12262 | ;; |
| 12263 | |
| 12264 | netbsd*) |
| 12265 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12266 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 12267 | wlarc= |
| 12268 | else |
| 12269 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12270 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12271 | fi |
| 12272 | ;; |
| 12273 | |
| 12274 | solaris*) |
| 12275 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 12276 | ld_shlibs=no |
| 12277 | cat <<_LT_EOF 1>&2 |
| 12278 | |
| 12279 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 12280 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 12281 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12282 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 12283 | *** your PATH or compiler configuration so that the native linker is |
| 12284 | *** used, and then restart. |
| 12285 | |
| 12286 | _LT_EOF |
| 12287 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12288 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12289 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12290 | else |
| 12291 | ld_shlibs=no |
| 12292 | fi |
| 12293 | ;; |
| 12294 | |
| 12295 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 12296 | case `$LD -v 2>&1` in |
| 12297 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 12298 | ld_shlibs=no |
| 12299 | cat <<_LT_EOF 1>&2 |
| 12300 | |
| 12301 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 12302 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 12303 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 12304 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 12305 | *** your PATH or compiler configuration so that the native linker is |
| 12306 | *** used, and then restart. |
| 12307 | |
| 12308 | _LT_EOF |
| 12309 | ;; |
| 12310 | *) |
| 12311 | # For security reasons, it is highly recommended that you always |
| 12312 | # use absolute paths for naming shared libraries, and exclude the |
| 12313 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 12314 | # requires that you compile everything twice, which is a pain. |
| 12315 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12316 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12317 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12318 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12319 | else |
| 12320 | ld_shlibs=no |
| 12321 | fi |
| 12322 | ;; |
| 12323 | esac |
| 12324 | ;; |
| 12325 | |
| 12326 | sunos4*) |
| 12327 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12328 | wlarc= |
| 12329 | hardcode_direct=yes |
| 12330 | hardcode_shlibpath_var=no |
| 12331 | ;; |
| 12332 | |
| 12333 | *) |
| 12334 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 12335 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12336 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12337 | else |
| 12338 | ld_shlibs=no |
| 12339 | fi |
| 12340 | ;; |
| 12341 | esac |
| 12342 | |
| 12343 | if test "$ld_shlibs" = no; then |
| 12344 | runpath_var= |
| 12345 | hardcode_libdir_flag_spec= |
| 12346 | export_dynamic_flag_spec= |
| 12347 | whole_archive_flag_spec= |
| 12348 | fi |
| 12349 | else |
| 12350 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 12351 | case $host_os in |
| 12352 | aix3*) |
| 12353 | allow_undefined_flag=unsupported |
| 12354 | always_export_symbols=yes |
| 12355 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 12356 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 12357 | # are no directories specified by -L. |
| 12358 | hardcode_minus_L=yes |
| 12359 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 12360 | # Neither direct hardcoding nor static linking is supported with a |
| 12361 | # broken collect2. |
| 12362 | hardcode_direct=unsupported |
| 12363 | fi |
| 12364 | ;; |
| 12365 | |
| 12366 | aix[4-9]*) |
| 12367 | if test "$host_cpu" = ia64; then |
| 12368 | # On IA64, the linker does run time linking by default, so we don't |
| 12369 | # have to do anything special. |
| 12370 | aix_use_runtimelinking=no |
| 12371 | exp_sym_flag='-Bexport' |
| 12372 | no_entry_flag="" |
| 12373 | else |
| 12374 | # If we're using GNU nm, then we don't want the "-C" option. |
| 12375 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 12376 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12377 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12378 | else |
| 12379 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 12380 | fi |
| 12381 | aix_use_runtimelinking=no |
| 12382 | |
| 12383 | # Test if we are trying to use run time linking or normal |
| 12384 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12385 | # need to do runtime linking. |
| 12386 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12387 | for ld_flag in $LDFLAGS; do |
| 12388 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 12389 | aix_use_runtimelinking=yes |
| 12390 | break |
| 12391 | fi |
| 12392 | done |
| 12393 | ;; |
| 12394 | esac |
| 12395 | |
| 12396 | exp_sym_flag='-bexport' |
| 12397 | no_entry_flag='-bnoentry' |
| 12398 | fi |
| 12399 | |
| 12400 | # When large executables or shared objects are built, AIX ld can |
| 12401 | # have problems creating the table of contents. If linking a library |
| 12402 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12403 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12404 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12405 | |
| 12406 | archive_cmds='' |
| 12407 | hardcode_direct=yes |
| 12408 | hardcode_direct_absolute=yes |
| 12409 | hardcode_libdir_separator=':' |
| 12410 | link_all_deplibs=yes |
| 12411 | file_list_spec='${wl}-f,' |
| 12412 | |
| 12413 | if test "$GCC" = yes; then |
| 12414 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12415 | # We only want to do this on AIX 4.2 and lower, the check |
| 12416 | # below for broken collect2 doesn't work under 4.3+ |
| 12417 | collect2name=`${CC} -print-prog-name=collect2` |
| 12418 | if test -f "$collect2name" && |
| 12419 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12420 | then |
| 12421 | # We have reworked collect2 |
| 12422 | : |
| 12423 | else |
| 12424 | # We have old collect2 |
| 12425 | hardcode_direct=unsupported |
| 12426 | # It fails to find uninstalled libraries when the uninstalled |
| 12427 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12428 | # to unsupported forces relinking |
| 12429 | hardcode_minus_L=yes |
| 12430 | hardcode_libdir_flag_spec='-L$libdir' |
| 12431 | hardcode_libdir_separator= |
| 12432 | fi |
| 12433 | ;; |
| 12434 | esac |
| 12435 | shared_flag='-shared' |
| 12436 | if test "$aix_use_runtimelinking" = yes; then |
| 12437 | shared_flag="$shared_flag "'${wl}-G' |
| 12438 | fi |
| 12439 | else |
| 12440 | # not using gcc |
| 12441 | if test "$host_cpu" = ia64; then |
| 12442 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12443 | # chokes on -Wl,-G. The following line is correct: |
| 12444 | shared_flag='-G' |
| 12445 | else |
| 12446 | if test "$aix_use_runtimelinking" = yes; then |
| 12447 | shared_flag='${wl}-G' |
| 12448 | else |
| 12449 | shared_flag='${wl}-bM:SRE' |
| 12450 | fi |
| 12451 | fi |
| 12452 | fi |
| 12453 | |
| 12454 | export_dynamic_flag_spec='${wl}-bexpall' |
| 12455 | # It seems that -bexpall does not export symbols beginning with |
| 12456 | # underscore (_), so it is better to generate a list of symbols to export. |
| 12457 | always_export_symbols=yes |
| 12458 | if test "$aix_use_runtimelinking" = yes; then |
| 12459 | # Warning - without using the other runtime loading flags (-brtl), |
| 12460 | # -berok will link without error, but may produce a broken library. |
| 12461 | allow_undefined_flag='-berok' |
| 12462 | # Determine the default libpath from the value encoded in an |
| 12463 | # empty executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12464 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12465 | /* end confdefs.h. */ |
| 12466 | |
| 12467 | int |
| 12468 | main () |
| 12469 | { |
| 12470 | |
| 12471 | ; |
| 12472 | return 0; |
| 12473 | } |
| 12474 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12475 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12476 | |
| 12477 | lt_aix_libpath_sed=' |
| 12478 | /Import File Strings/,/^$/ { |
| 12479 | /^0/ { |
| 12480 | s/^0 *\(.*\)$/\1/ |
| 12481 | p |
| 12482 | } |
| 12483 | }' |
| 12484 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12485 | # Check for a 64-bit object if we didn't find anything. |
| 12486 | if test -z "$aix_libpath"; then |
| 12487 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12488 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12489 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12490 | rm -f core conftest.err conftest.$ac_objext \ |
| 12491 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12492 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12493 | |
| 12494 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12495 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12496 | else |
| 12497 | if test "$host_cpu" = ia64; then |
| 12498 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 12499 | allow_undefined_flag="-z nodefs" |
| 12500 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 12501 | else |
| 12502 | # Determine the default libpath from the value encoded in an |
| 12503 | # empty executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12505 | /* end confdefs.h. */ |
| 12506 | |
| 12507 | int |
| 12508 | main () |
| 12509 | { |
| 12510 | |
| 12511 | ; |
| 12512 | return 0; |
| 12513 | } |
| 12514 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12515 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12516 | |
| 12517 | lt_aix_libpath_sed=' |
| 12518 | /Import File Strings/,/^$/ { |
| 12519 | /^0/ { |
| 12520 | s/^0 *\(.*\)$/\1/ |
| 12521 | p |
| 12522 | } |
| 12523 | }' |
| 12524 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12525 | # Check for a 64-bit object if we didn't find anything. |
| 12526 | if test -z "$aix_libpath"; then |
| 12527 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 12528 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12529 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12530 | rm -f core conftest.err conftest.$ac_objext \ |
| 12531 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12532 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 12533 | |
| 12534 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 12535 | # Warning - without using the other run time loading flags, |
| 12536 | # -berok will link without error, but may produce a broken library. |
| 12537 | no_undefined_flag=' ${wl}-bernotok' |
| 12538 | allow_undefined_flag=' ${wl}-berok' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12539 | # Exported symbols can be pulled into shared objects from archives |
| 12540 | whole_archive_flag_spec='$convenience' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12541 | archive_cmds_need_lc=yes |
| 12542 | # This is similar to how AIX traditionally builds its shared libraries. |
| 12543 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 12544 | fi |
| 12545 | fi |
| 12546 | ;; |
| 12547 | |
| 12548 | amigaos*) |
| 12549 | case $host_cpu in |
| 12550 | powerpc) |
| 12551 | # see comment about AmigaOS4 .so support |
| 12552 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12553 | archive_expsym_cmds='' |
| 12554 | ;; |
| 12555 | m68k) |
| 12556 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 12557 | hardcode_libdir_flag_spec='-L$libdir' |
| 12558 | hardcode_minus_L=yes |
| 12559 | ;; |
| 12560 | esac |
| 12561 | ;; |
| 12562 | |
| 12563 | bsdi[45]*) |
| 12564 | export_dynamic_flag_spec=-rdynamic |
| 12565 | ;; |
| 12566 | |
| 12567 | cygwin* | mingw* | pw32* | cegcc*) |
| 12568 | # When not using gcc, we currently assume that we are using |
| 12569 | # Microsoft Visual C++. |
| 12570 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 12571 | # no search path for DLLs. |
| 12572 | hardcode_libdir_flag_spec=' ' |
| 12573 | allow_undefined_flag=unsupported |
| 12574 | # Tell ltmain to make .lib files, not .a files. |
| 12575 | libext=lib |
| 12576 | # Tell ltmain to make .dll files, not .so files. |
| 12577 | shrext_cmds=".dll" |
| 12578 | # FIXME: Setting linknames here is a bad hack. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12579 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12580 | # The linker will automatically build a .lib file if we build a DLL. |
| 12581 | old_archive_from_new_cmds='true' |
| 12582 | # FIXME: Should let the user specify the lib program. |
| 12583 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 12584 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 12585 | enable_shared_with_static_runtimes=yes |
| 12586 | ;; |
| 12587 | |
| 12588 | darwin* | rhapsody*) |
| 12589 | |
| 12590 | |
| 12591 | archive_cmds_need_lc=no |
| 12592 | hardcode_direct=no |
| 12593 | hardcode_automatic=yes |
| 12594 | hardcode_shlibpath_var=unsupported |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12595 | whole_archive_flag_spec='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12596 | link_all_deplibs=yes |
| 12597 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 12598 | case $cc_basename in |
| 12599 | ifort*) _lt_dar_can_shared=yes ;; |
| 12600 | *) _lt_dar_can_shared=$GCC ;; |
| 12601 | esac |
| 12602 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12603 | output_verbose_link_cmd=echo |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12604 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 12605 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12606 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12607 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 12608 | |
| 12609 | else |
| 12610 | ld_shlibs=no |
| 12611 | fi |
| 12612 | |
| 12613 | ;; |
| 12614 | |
| 12615 | dgux*) |
| 12616 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12617 | hardcode_libdir_flag_spec='-L$libdir' |
| 12618 | hardcode_shlibpath_var=no |
| 12619 | ;; |
| 12620 | |
| 12621 | freebsd1*) |
| 12622 | ld_shlibs=no |
| 12623 | ;; |
| 12624 | |
| 12625 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 12626 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 12627 | # does not break anything, and helps significantly (at the cost of a little |
| 12628 | # extra space). |
| 12629 | freebsd2.2*) |
| 12630 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 12631 | hardcode_libdir_flag_spec='-R$libdir' |
| 12632 | hardcode_direct=yes |
| 12633 | hardcode_shlibpath_var=no |
| 12634 | ;; |
| 12635 | |
| 12636 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 12637 | freebsd2*) |
| 12638 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12639 | hardcode_direct=yes |
| 12640 | hardcode_minus_L=yes |
| 12641 | hardcode_shlibpath_var=no |
| 12642 | ;; |
| 12643 | |
| 12644 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 12645 | freebsd* | dragonfly*) |
| 12646 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 12647 | hardcode_libdir_flag_spec='-R$libdir' |
| 12648 | hardcode_direct=yes |
| 12649 | hardcode_shlibpath_var=no |
| 12650 | ;; |
| 12651 | |
| 12652 | hpux9*) |
| 12653 | if test "$GCC" = yes; then |
| 12654 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12655 | else |
| 12656 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12657 | fi |
| 12658 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12659 | hardcode_libdir_separator=: |
| 12660 | hardcode_direct=yes |
| 12661 | |
| 12662 | # hardcode_minus_L: Not really in the search PATH, |
| 12663 | # but as the default location of the library. |
| 12664 | hardcode_minus_L=yes |
| 12665 | export_dynamic_flag_spec='${wl}-E' |
| 12666 | ;; |
| 12667 | |
| 12668 | hpux10*) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12669 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12670 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12671 | else |
| 12672 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 12673 | fi |
| 12674 | if test "$with_gnu_ld" = no; then |
| 12675 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12676 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 12677 | hardcode_libdir_separator=: |
| 12678 | hardcode_direct=yes |
| 12679 | hardcode_direct_absolute=yes |
| 12680 | export_dynamic_flag_spec='${wl}-E' |
| 12681 | # hardcode_minus_L: Not really in the search PATH, |
| 12682 | # but as the default location of the library. |
| 12683 | hardcode_minus_L=yes |
| 12684 | fi |
| 12685 | ;; |
| 12686 | |
| 12687 | hpux11*) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12688 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12689 | case $host_cpu in |
| 12690 | hppa*64*) |
| 12691 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12692 | ;; |
| 12693 | ia64*) |
| 12694 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12695 | ;; |
| 12696 | *) |
| 12697 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 12698 | ;; |
| 12699 | esac |
| 12700 | else |
| 12701 | case $host_cpu in |
| 12702 | hppa*64*) |
| 12703 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12704 | ;; |
| 12705 | ia64*) |
| 12706 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 12707 | ;; |
| 12708 | *) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12709 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12710 | ;; |
| 12711 | esac |
| 12712 | fi |
| 12713 | if test "$with_gnu_ld" = no; then |
| 12714 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 12715 | hardcode_libdir_separator=: |
| 12716 | |
| 12717 | case $host_cpu in |
| 12718 | hppa*64*|ia64*) |
| 12719 | hardcode_direct=no |
| 12720 | hardcode_shlibpath_var=no |
| 12721 | ;; |
| 12722 | *) |
| 12723 | hardcode_direct=yes |
| 12724 | hardcode_direct_absolute=yes |
| 12725 | export_dynamic_flag_spec='${wl}-E' |
| 12726 | |
| 12727 | # hardcode_minus_L: Not really in the search PATH, |
| 12728 | # but as the default location of the library. |
| 12729 | hardcode_minus_L=yes |
| 12730 | ;; |
| 12731 | esac |
| 12732 | fi |
| 12733 | ;; |
| 12734 | |
| 12735 | irix5* | irix6* | nonstopux*) |
| 12736 | if test "$GCC" = yes; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12737 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12738 | # Try to use the -exported_symbol ld option, if it does not |
| 12739 | # work, assume that -exports_file does not work either and |
| 12740 | # implicitly export all symbols. |
| 12741 | save_LDFLAGS="$LDFLAGS" |
| 12742 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12744 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12745 | int foo(void) {} |
| 12746 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12747 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12748 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12749 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12750 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12751 | rm -f core conftest.err conftest.$ac_objext \ |
| 12752 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12753 | LDFLAGS="$save_LDFLAGS" |
| 12754 | else |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12755 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12756 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12757 | fi |
| 12758 | archive_cmds_need_lc='no' |
| 12759 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12760 | hardcode_libdir_separator=: |
| 12761 | inherit_rpath=yes |
| 12762 | link_all_deplibs=yes |
| 12763 | ;; |
| 12764 | |
| 12765 | netbsd*) |
| 12766 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12767 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 12768 | else |
| 12769 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 12770 | fi |
| 12771 | hardcode_libdir_flag_spec='-R$libdir' |
| 12772 | hardcode_direct=yes |
| 12773 | hardcode_shlibpath_var=no |
| 12774 | ;; |
| 12775 | |
| 12776 | newsos6) |
| 12777 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12778 | hardcode_direct=yes |
| 12779 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12780 | hardcode_libdir_separator=: |
| 12781 | hardcode_shlibpath_var=no |
| 12782 | ;; |
| 12783 | |
| 12784 | *nto* | *qnx*) |
| 12785 | ;; |
| 12786 | |
| 12787 | openbsd*) |
| 12788 | if test -f /usr/libexec/ld.so; then |
| 12789 | hardcode_direct=yes |
| 12790 | hardcode_shlibpath_var=no |
| 12791 | hardcode_direct_absolute=yes |
| 12792 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12793 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12794 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 12795 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12796 | export_dynamic_flag_spec='${wl}-E' |
| 12797 | else |
| 12798 | case $host_os in |
| 12799 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 12800 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 12801 | hardcode_libdir_flag_spec='-R$libdir' |
| 12802 | ;; |
| 12803 | *) |
| 12804 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 12805 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 12806 | ;; |
| 12807 | esac |
| 12808 | fi |
| 12809 | else |
| 12810 | ld_shlibs=no |
| 12811 | fi |
| 12812 | ;; |
| 12813 | |
| 12814 | os2*) |
| 12815 | hardcode_libdir_flag_spec='-L$libdir' |
| 12816 | hardcode_minus_L=yes |
| 12817 | allow_undefined_flag=unsupported |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12818 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12819 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 12820 | ;; |
| 12821 | |
| 12822 | osf3*) |
| 12823 | if test "$GCC" = yes; then |
| 12824 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12825 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12826 | else |
| 12827 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12828 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12829 | fi |
| 12830 | archive_cmds_need_lc='no' |
| 12831 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12832 | hardcode_libdir_separator=: |
| 12833 | ;; |
| 12834 | |
| 12835 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 12836 | if test "$GCC" = yes; then |
| 12837 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12838 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12839 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 12840 | else |
| 12841 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12842 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12843 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 12844 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 12845 | |
| 12846 | # Both c and cxx compiler support -rpath directly |
| 12847 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 12848 | fi |
| 12849 | archive_cmds_need_lc='no' |
| 12850 | hardcode_libdir_separator=: |
| 12851 | ;; |
| 12852 | |
| 12853 | solaris*) |
| 12854 | no_undefined_flag=' -z defs' |
| 12855 | if test "$GCC" = yes; then |
| 12856 | wlarc='${wl}' |
| 12857 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12858 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12859 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12860 | else |
| 12861 | case `$CC -V 2>&1` in |
| 12862 | *"Compilers 5.0"*) |
| 12863 | wlarc='' |
| 12864 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12865 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12866 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 12867 | ;; |
| 12868 | *) |
| 12869 | wlarc='${wl}' |
| 12870 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12871 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12872 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 12873 | ;; |
| 12874 | esac |
| 12875 | fi |
| 12876 | hardcode_libdir_flag_spec='-R$libdir' |
| 12877 | hardcode_shlibpath_var=no |
| 12878 | case $host_os in |
| 12879 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12880 | *) |
| 12881 | # The compiler driver will combine and reorder linker options, |
| 12882 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 12883 | # but is careful enough not to reorder. |
| 12884 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12885 | if test "$GCC" = yes; then |
| 12886 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12887 | else |
| 12888 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 12889 | fi |
| 12890 | ;; |
| 12891 | esac |
| 12892 | link_all_deplibs=yes |
| 12893 | ;; |
| 12894 | |
| 12895 | sunos4*) |
| 12896 | if test "x$host_vendor" = xsequent; then |
| 12897 | # Use $CC to link under sequent, because it throws in some extra .o |
| 12898 | # files that make .init and .fini sections work. |
| 12899 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12900 | else |
| 12901 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 12902 | fi |
| 12903 | hardcode_libdir_flag_spec='-L$libdir' |
| 12904 | hardcode_direct=yes |
| 12905 | hardcode_minus_L=yes |
| 12906 | hardcode_shlibpath_var=no |
| 12907 | ;; |
| 12908 | |
| 12909 | sysv4) |
| 12910 | case $host_vendor in |
| 12911 | sni) |
| 12912 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12913 | hardcode_direct=yes # is this really true??? |
| 12914 | ;; |
| 12915 | siemens) |
| 12916 | ## LD is ld it makes a PLAMLIB |
| 12917 | ## CC just makes a GrossModule. |
| 12918 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 12919 | reload_cmds='$CC -r -o $output$reload_objs' |
| 12920 | hardcode_direct=no |
| 12921 | ;; |
| 12922 | motorola) |
| 12923 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12924 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 12925 | ;; |
| 12926 | esac |
| 12927 | runpath_var='LD_RUN_PATH' |
| 12928 | hardcode_shlibpath_var=no |
| 12929 | ;; |
| 12930 | |
| 12931 | sysv4.3*) |
| 12932 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12933 | hardcode_shlibpath_var=no |
| 12934 | export_dynamic_flag_spec='-Bexport' |
| 12935 | ;; |
| 12936 | |
| 12937 | sysv4*MP*) |
| 12938 | if test -d /usr/nec; then |
| 12939 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12940 | hardcode_shlibpath_var=no |
| 12941 | runpath_var=LD_RUN_PATH |
| 12942 | hardcode_runpath_var=yes |
| 12943 | ld_shlibs=yes |
| 12944 | fi |
| 12945 | ;; |
| 12946 | |
| 12947 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12948 | no_undefined_flag='${wl}-z,text' |
| 12949 | archive_cmds_need_lc=no |
| 12950 | hardcode_shlibpath_var=no |
| 12951 | runpath_var='LD_RUN_PATH' |
| 12952 | |
| 12953 | if test "$GCC" = yes; then |
| 12954 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12955 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12956 | else |
| 12957 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12958 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12959 | fi |
| 12960 | ;; |
| 12961 | |
| 12962 | sysv5* | sco3.2v5* | sco5v6*) |
| 12963 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12964 | # link with -lc, and that would cause any symbols used from libc to |
| 12965 | # always be unresolved, which means just about no library would |
| 12966 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12967 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12968 | # as -z defs. |
| 12969 | no_undefined_flag='${wl}-z,text' |
| 12970 | allow_undefined_flag='${wl}-z,nodefs' |
| 12971 | archive_cmds_need_lc=no |
| 12972 | hardcode_shlibpath_var=no |
| 12973 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 12974 | hardcode_libdir_separator=':' |
| 12975 | link_all_deplibs=yes |
| 12976 | export_dynamic_flag_spec='${wl}-Bexport' |
| 12977 | runpath_var='LD_RUN_PATH' |
| 12978 | |
| 12979 | if test "$GCC" = yes; then |
| 12980 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12981 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12982 | else |
| 12983 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12984 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12985 | fi |
| 12986 | ;; |
| 12987 | |
| 12988 | uts4*) |
| 12989 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 12990 | hardcode_libdir_flag_spec='-L$libdir' |
| 12991 | hardcode_shlibpath_var=no |
| 12992 | ;; |
| 12993 | |
| 12994 | *) |
| 12995 | ld_shlibs=no |
| 12996 | ;; |
| 12997 | esac |
| 12998 | |
| 12999 | if test x$host_vendor = xsni; then |
| 13000 | case $host in |
| 13001 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 13002 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 13003 | ;; |
| 13004 | esac |
| 13005 | fi |
| 13006 | fi |
| 13007 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13009 | $as_echo "$ld_shlibs" >&6; } |
| 13010 | test "$ld_shlibs" = no && can_build_shared=no |
| 13011 | |
| 13012 | with_gnu_ld=$with_gnu_ld |
| 13013 | |
| 13014 | |
| 13015 | |
| 13016 | |
| 13017 | |
| 13018 | |
| 13019 | |
| 13020 | |
| 13021 | |
| 13022 | |
| 13023 | |
| 13024 | |
| 13025 | |
| 13026 | |
| 13027 | |
| 13028 | # |
| 13029 | # Do we need to explicitly link libc? |
| 13030 | # |
| 13031 | case "x$archive_cmds_need_lc" in |
| 13032 | x|xyes) |
| 13033 | # Assume -lc should be added |
| 13034 | archive_cmds_need_lc=yes |
| 13035 | |
| 13036 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13037 | case $archive_cmds in |
| 13038 | *'~'*) |
| 13039 | # FIXME: we may have to deal with multi-command sequences. |
| 13040 | ;; |
| 13041 | '$CC '*) |
| 13042 | # Test whether the compiler implicitly links with -lc since on some |
| 13043 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13044 | # to ld, don't add -lc before -lgcc. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13046 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13047 | $RM conftest* |
| 13048 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13049 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13050 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13051 | (eval $ac_compile) 2>&5 |
| 13052 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13053 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13054 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13055 | soname=conftest |
| 13056 | lib=conftest |
| 13057 | libobjs=conftest.$ac_objext |
| 13058 | deplibs= |
| 13059 | wl=$lt_prog_compiler_wl |
| 13060 | pic_flag=$lt_prog_compiler_pic |
| 13061 | compiler_flags=-v |
| 13062 | linker_flags=-v |
| 13063 | verstring= |
| 13064 | output_objdir=. |
| 13065 | libname=conftest |
| 13066 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 13067 | allow_undefined_flag= |
| 13068 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13069 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 13070 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13071 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13072 | test $ac_status = 0; } |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13073 | then |
| 13074 | archive_cmds_need_lc=no |
| 13075 | else |
| 13076 | archive_cmds_need_lc=yes |
| 13077 | fi |
| 13078 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 13079 | else |
| 13080 | cat conftest.err 1>&5 |
| 13081 | fi |
| 13082 | $RM conftest* |
| 13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| 13084 | $as_echo "$archive_cmds_need_lc" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13085 | ;; |
| 13086 | esac |
| 13087 | fi |
| 13088 | ;; |
| 13089 | esac |
| 13090 | |
| 13091 | |
| 13092 | |
| 13093 | |
| 13094 | |
| 13095 | |
| 13096 | |
| 13097 | |
| 13098 | |
| 13099 | |
| 13100 | |
| 13101 | |
| 13102 | |
| 13103 | |
| 13104 | |
| 13105 | |
| 13106 | |
| 13107 | |
| 13108 | |
| 13109 | |
| 13110 | |
| 13111 | |
| 13112 | |
| 13113 | |
| 13114 | |
| 13115 | |
| 13116 | |
| 13117 | |
| 13118 | |
| 13119 | |
| 13120 | |
| 13121 | |
| 13122 | |
| 13123 | |
| 13124 | |
| 13125 | |
| 13126 | |
| 13127 | |
| 13128 | |
| 13129 | |
| 13130 | |
| 13131 | |
| 13132 | |
| 13133 | |
| 13134 | |
| 13135 | |
| 13136 | |
| 13137 | |
| 13138 | |
| 13139 | |
| 13140 | |
| 13141 | |
| 13142 | |
| 13143 | |
| 13144 | |
| 13145 | |
| 13146 | |
| 13147 | |
| 13148 | |
| 13149 | |
| 13150 | |
| 13151 | |
| 13152 | |
| 13153 | |
| 13154 | |
| 13155 | |
| 13156 | |
| 13157 | |
| 13158 | |
| 13159 | |
| 13160 | |
| 13161 | |
| 13162 | |
| 13163 | |
| 13164 | |
| 13165 | |
| 13166 | |
| 13167 | |
| 13168 | |
| 13169 | |
| 13170 | |
| 13171 | |
| 13172 | |
| 13173 | |
| 13174 | |
| 13175 | |
| 13176 | |
| 13177 | |
| 13178 | |
| 13179 | |
| 13180 | |
| 13181 | |
| 13182 | |
| 13183 | |
| 13184 | |
| 13185 | |
| 13186 | |
| 13187 | |
| 13188 | |
| 13189 | |
| 13190 | |
| 13191 | |
| 13192 | |
| 13193 | |
| 13194 | |
| 13195 | |
| 13196 | |
| 13197 | |
| 13198 | |
| 13199 | |
| 13200 | |
| 13201 | |
| 13202 | |
| 13203 | |
| 13204 | |
| 13205 | |
| 13206 | |
| 13207 | |
| 13208 | |
| 13209 | |
| 13210 | |
| 13211 | |
| 13212 | |
| 13213 | |
| 13214 | |
| 13215 | |
| 13216 | |
| 13217 | |
| 13218 | |
| 13219 | |
| 13220 | |
| 13221 | |
| 13222 | |
| 13223 | |
| 13224 | |
| 13225 | |
| 13226 | |
| 13227 | |
| 13228 | |
| 13229 | |
| 13230 | |
| 13231 | |
| 13232 | |
| 13233 | |
| 13234 | |
| 13235 | |
| 13236 | |
| 13237 | |
| 13238 | |
| 13239 | |
| 13240 | |
| 13241 | |
| 13242 | |
| 13243 | |
| 13244 | |
| 13245 | |
| 13246 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13248 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13249 | |
| 13250 | if test "$GCC" = yes; then |
| 13251 | case $host_os in |
| 13252 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 13253 | *) lt_awk_arg="/^libraries:/" ;; |
| 13254 | esac |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13255 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13256 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13257 | # if the path contains ";" then we assume it to be the separator |
| 13258 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 13259 | # assumed that no part of a normal pathname contains ";" but that should |
| 13260 | # okay in the real world where ";" in dirpaths is itself problematic. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13261 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
| 13262 | else |
| 13263 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13264 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13265 | # Ok, now we have the path, separated by spaces, we can step through it |
| 13266 | # and add multilib dir if necessary. |
| 13267 | lt_tmp_lt_search_path_spec= |
| 13268 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 13269 | for lt_sys_path in $lt_search_path_spec; do |
| 13270 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 13271 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 13272 | else |
| 13273 | test -d "$lt_sys_path" && \ |
| 13274 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 13275 | fi |
| 13276 | done |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13277 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13278 | BEGIN {RS=" "; FS="/|\n";} { |
| 13279 | lt_foo=""; |
| 13280 | lt_count=0; |
| 13281 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 13282 | if ($lt_i != "" && $lt_i != ".") { |
| 13283 | if ($lt_i == "..") { |
| 13284 | lt_count++; |
| 13285 | } else { |
| 13286 | if (lt_count == 0) { |
| 13287 | lt_foo="/" $lt_i lt_foo; |
| 13288 | } else { |
| 13289 | lt_count--; |
| 13290 | } |
| 13291 | } |
| 13292 | } |
| 13293 | } |
| 13294 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 13295 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 13296 | }'` |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13297 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13298 | else |
| 13299 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 13300 | fi |
| 13301 | library_names_spec= |
| 13302 | libname_spec='lib$name' |
| 13303 | soname_spec= |
| 13304 | shrext_cmds=".so" |
| 13305 | postinstall_cmds= |
| 13306 | postuninstall_cmds= |
| 13307 | finish_cmds= |
| 13308 | finish_eval= |
| 13309 | shlibpath_var= |
| 13310 | shlibpath_overrides_runpath=unknown |
| 13311 | version_type=none |
| 13312 | dynamic_linker="$host_os ld.so" |
| 13313 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 13314 | need_lib_prefix=unknown |
| 13315 | hardcode_into_libs=no |
| 13316 | |
| 13317 | # when you set need_version to no, make sure it does not cause -set_version |
| 13318 | # flags to be left without arguments |
| 13319 | need_version=unknown |
| 13320 | |
| 13321 | case $host_os in |
| 13322 | aix3*) |
| 13323 | version_type=linux |
| 13324 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13325 | shlibpath_var=LIBPATH |
| 13326 | |
| 13327 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13328 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13329 | ;; |
| 13330 | |
| 13331 | aix[4-9]*) |
| 13332 | version_type=linux |
| 13333 | need_lib_prefix=no |
| 13334 | need_version=no |
| 13335 | hardcode_into_libs=yes |
| 13336 | if test "$host_cpu" = ia64; then |
| 13337 | # AIX 5 supports IA64 |
| 13338 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13339 | shlibpath_var=LD_LIBRARY_PATH |
| 13340 | else |
| 13341 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13342 | # for dependence libraries. The import file would start with |
| 13343 | # the line `#! .'. This would cause the generated library to |
| 13344 | # depend on `.', always an invalid library. This was fixed in |
| 13345 | # development snapshots of GCC prior to 3.0. |
| 13346 | case $host_os in |
| 13347 | aix4 | aix4.[01] | aix4.[01].*) |
| 13348 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13349 | echo ' yes ' |
| 13350 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 13351 | : |
| 13352 | else |
| 13353 | can_build_shared=no |
| 13354 | fi |
| 13355 | ;; |
| 13356 | esac |
| 13357 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13358 | # soname into executable. Probably we can add versioning support to |
| 13359 | # collect2, so additional links can be useful in future. |
| 13360 | if test "$aix_use_runtimelinking" = yes; then |
| 13361 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13362 | # instead of lib<name>.a to let people know that these are not |
| 13363 | # typical AIX shared libraries. |
| 13364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13365 | else |
| 13366 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13367 | # and later when we are not doing run time linking. |
| 13368 | library_names_spec='${libname}${release}.a $libname.a' |
| 13369 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13370 | fi |
| 13371 | shlibpath_var=LIBPATH |
| 13372 | fi |
| 13373 | ;; |
| 13374 | |
| 13375 | amigaos*) |
| 13376 | case $host_cpu in |
| 13377 | powerpc) |
| 13378 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13379 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13381 | ;; |
| 13382 | m68k) |
| 13383 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13384 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13385 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13386 | ;; |
| 13387 | esac |
| 13388 | ;; |
| 13389 | |
| 13390 | beos*) |
| 13391 | library_names_spec='${libname}${shared_ext}' |
| 13392 | dynamic_linker="$host_os ld.so" |
| 13393 | shlibpath_var=LIBRARY_PATH |
| 13394 | ;; |
| 13395 | |
| 13396 | bsdi[45]*) |
| 13397 | version_type=linux |
| 13398 | need_version=no |
| 13399 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13400 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13401 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13402 | shlibpath_var=LD_LIBRARY_PATH |
| 13403 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13404 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13405 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13406 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13407 | # libtool to hard-code these into programs |
| 13408 | ;; |
| 13409 | |
| 13410 | cygwin* | mingw* | pw32* | cegcc*) |
| 13411 | version_type=windows |
| 13412 | shrext_cmds=".dll" |
| 13413 | need_version=no |
| 13414 | need_lib_prefix=no |
| 13415 | |
| 13416 | case $GCC,$host_os in |
| 13417 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 13418 | library_names_spec='$libname.dll.a' |
| 13419 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13420 | postinstall_cmds='base_file=`basename \${file}`~ |
| 13421 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 13422 | dldir=$destdir/`dirname \$dlpath`~ |
| 13423 | test -d \$dldir || mkdir -p \$dldir~ |
| 13424 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 13425 | chmod a+x \$dldir/$dlname~ |
| 13426 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13427 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13428 | fi' |
| 13429 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13430 | dlpath=$dir/\$dldll~ |
| 13431 | $RM \$dlpath' |
| 13432 | shlibpath_overrides_runpath=yes |
| 13433 | |
| 13434 | case $host_os in |
| 13435 | cygwin*) |
| 13436 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13437 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13438 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13439 | ;; |
| 13440 | mingw* | cegcc*) |
| 13441 | # MinGW DLLs use traditional 'lib' prefix |
| 13442 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13443 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13444 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 13445 | # It is most probably a Windows format PATH printed by |
| 13446 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13447 | # path with ; separators, and with drive letters. We can handle the |
| 13448 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13449 | # especially as we might pass files found there to a mingw objdump, |
| 13450 | # which wouldn't understand a cygwinified path. Ahh. |
| 13451 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 13452 | else |
| 13453 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 13454 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13455 | ;; |
| 13456 | pw32*) |
| 13457 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 13458 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13459 | ;; |
| 13460 | esac |
| 13461 | ;; |
| 13462 | |
| 13463 | *) |
| 13464 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13465 | ;; |
| 13466 | esac |
| 13467 | dynamic_linker='Win32 ld.exe' |
| 13468 | # FIXME: first we should search . and the directory the executable is in |
| 13469 | shlibpath_var=PATH |
| 13470 | ;; |
| 13471 | |
| 13472 | darwin* | rhapsody*) |
| 13473 | dynamic_linker="$host_os dyld" |
| 13474 | version_type=darwin |
| 13475 | need_lib_prefix=no |
| 13476 | need_version=no |
| 13477 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 13478 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13479 | shlibpath_overrides_runpath=yes |
| 13480 | shlibpath_var=DYLD_LIBRARY_PATH |
| 13481 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 13482 | |
| 13483 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 13484 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13485 | ;; |
| 13486 | |
| 13487 | dgux*) |
| 13488 | version_type=linux |
| 13489 | need_lib_prefix=no |
| 13490 | need_version=no |
| 13491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13492 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13493 | shlibpath_var=LD_LIBRARY_PATH |
| 13494 | ;; |
| 13495 | |
| 13496 | freebsd1*) |
| 13497 | dynamic_linker=no |
| 13498 | ;; |
| 13499 | |
| 13500 | freebsd* | dragonfly*) |
| 13501 | # DragonFly does not have aout. When/if they implement a new |
| 13502 | # versioning mechanism, adjust this. |
| 13503 | if test -x /usr/bin/objformat; then |
| 13504 | objformat=`/usr/bin/objformat` |
| 13505 | else |
| 13506 | case $host_os in |
| 13507 | freebsd[123]*) objformat=aout ;; |
| 13508 | *) objformat=elf ;; |
| 13509 | esac |
| 13510 | fi |
| 13511 | version_type=freebsd-$objformat |
| 13512 | case $version_type in |
| 13513 | freebsd-elf*) |
| 13514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13515 | need_version=no |
| 13516 | need_lib_prefix=no |
| 13517 | ;; |
| 13518 | freebsd-*) |
| 13519 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13520 | need_version=yes |
| 13521 | ;; |
| 13522 | esac |
| 13523 | shlibpath_var=LD_LIBRARY_PATH |
| 13524 | case $host_os in |
| 13525 | freebsd2*) |
| 13526 | shlibpath_overrides_runpath=yes |
| 13527 | ;; |
| 13528 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 13529 | shlibpath_overrides_runpath=yes |
| 13530 | hardcode_into_libs=yes |
| 13531 | ;; |
| 13532 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13533 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 13534 | shlibpath_overrides_runpath=no |
| 13535 | hardcode_into_libs=yes |
| 13536 | ;; |
| 13537 | *) # from 4.6 on, and DragonFly |
| 13538 | shlibpath_overrides_runpath=yes |
| 13539 | hardcode_into_libs=yes |
| 13540 | ;; |
| 13541 | esac |
| 13542 | ;; |
| 13543 | |
| 13544 | gnu*) |
| 13545 | version_type=linux |
| 13546 | need_lib_prefix=no |
| 13547 | need_version=no |
| 13548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13549 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13550 | shlibpath_var=LD_LIBRARY_PATH |
| 13551 | hardcode_into_libs=yes |
| 13552 | ;; |
| 13553 | |
| 13554 | hpux9* | hpux10* | hpux11*) |
| 13555 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13556 | # link against other versions. |
| 13557 | version_type=sunos |
| 13558 | need_lib_prefix=no |
| 13559 | need_version=no |
| 13560 | case $host_cpu in |
| 13561 | ia64*) |
| 13562 | shrext_cmds='.so' |
| 13563 | hardcode_into_libs=yes |
| 13564 | dynamic_linker="$host_os dld.so" |
| 13565 | shlibpath_var=LD_LIBRARY_PATH |
| 13566 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13568 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13569 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13570 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13571 | else |
| 13572 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13573 | fi |
| 13574 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13575 | ;; |
| 13576 | hppa*64*) |
| 13577 | shrext_cmds='.sl' |
| 13578 | hardcode_into_libs=yes |
| 13579 | dynamic_linker="$host_os dld.sl" |
| 13580 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13581 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13583 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13584 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13585 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13586 | ;; |
| 13587 | *) |
| 13588 | shrext_cmds='.sl' |
| 13589 | dynamic_linker="$host_os dld.sl" |
| 13590 | shlibpath_var=SHLIB_PATH |
| 13591 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13593 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13594 | ;; |
| 13595 | esac |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13596 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13597 | postinstall_cmds='chmod 555 $lib' |
| 13598 | ;; |
| 13599 | |
| 13600 | interix[3-9]*) |
| 13601 | version_type=linux |
| 13602 | need_lib_prefix=no |
| 13603 | need_version=no |
| 13604 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13605 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13606 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13607 | shlibpath_var=LD_LIBRARY_PATH |
| 13608 | shlibpath_overrides_runpath=no |
| 13609 | hardcode_into_libs=yes |
| 13610 | ;; |
| 13611 | |
| 13612 | irix5* | irix6* | nonstopux*) |
| 13613 | case $host_os in |
| 13614 | nonstopux*) version_type=nonstopux ;; |
| 13615 | *) |
| 13616 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13617 | version_type=linux |
| 13618 | else |
| 13619 | version_type=irix |
| 13620 | fi ;; |
| 13621 | esac |
| 13622 | need_lib_prefix=no |
| 13623 | need_version=no |
| 13624 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13626 | case $host_os in |
| 13627 | irix5* | nonstopux*) |
| 13628 | libsuff= shlibsuff= |
| 13629 | ;; |
| 13630 | *) |
| 13631 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13632 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13633 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13634 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13635 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13636 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13637 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13638 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13639 | esac |
| 13640 | ;; |
| 13641 | esac |
| 13642 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13643 | shlibpath_overrides_runpath=no |
| 13644 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13645 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13646 | hardcode_into_libs=yes |
| 13647 | ;; |
| 13648 | |
| 13649 | # No shared lib support for Linux oldld, aout, or coff. |
| 13650 | linux*oldld* | linux*aout* | linux*coff*) |
| 13651 | dynamic_linker=no |
| 13652 | ;; |
| 13653 | |
| 13654 | # This must be Linux ELF. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13655 | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13656 | version_type=linux |
| 13657 | need_lib_prefix=no |
| 13658 | need_version=no |
| 13659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13660 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13661 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13662 | shlibpath_var=LD_LIBRARY_PATH |
| 13663 | shlibpath_overrides_runpath=no |
| 13664 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13665 | save_LDFLAGS=$LDFLAGS |
| 13666 | save_libdir=$libdir |
| 13667 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 13668 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 13669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13670 | /* end confdefs.h. */ |
| 13671 | |
| 13672 | int |
| 13673 | main () |
| 13674 | { |
| 13675 | |
| 13676 | ; |
| 13677 | return 0; |
| 13678 | } |
| 13679 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13680 | if ac_fn_c_try_link "$LINENO"; then : |
| 13681 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13682 | shlibpath_overrides_runpath=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13683 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13684 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13685 | rm -f core conftest.err conftest.$ac_objext \ |
| 13686 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13687 | LDFLAGS=$save_LDFLAGS |
| 13688 | libdir=$save_libdir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13689 | |
| 13690 | # This implies no fast_install, which is unacceptable. |
| 13691 | # Some rework will be needed to allow for fast_install |
| 13692 | # before this can be enabled. |
| 13693 | hardcode_into_libs=yes |
| 13694 | |
| cristy | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 13695 | # Add ABI-specific directories to the system library path. |
| 13696 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 13697 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13698 | # Append ld.so.conf contents to the search path |
| 13699 | if test -f /etc/ld.so.conf; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 13700 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| cristy | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 13701 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13702 | fi |
| 13703 | |
| 13704 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13705 | # powerpc, because MkLinux only supported shared libraries with the |
| 13706 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13707 | # most powerpc-linux boxes support dynamic linking these days and |
| 13708 | # people can always --disable-shared, the test was removed, and we |
| 13709 | # assume the GNU/Linux dynamic linker is in use. |
| 13710 | dynamic_linker='GNU/Linux ld.so' |
| 13711 | ;; |
| 13712 | |
| 13713 | netbsd*) |
| 13714 | version_type=sunos |
| 13715 | need_lib_prefix=no |
| 13716 | need_version=no |
| 13717 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13719 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13720 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13721 | else |
| 13722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13723 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13724 | dynamic_linker='NetBSD ld.elf_so' |
| 13725 | fi |
| 13726 | shlibpath_var=LD_LIBRARY_PATH |
| 13727 | shlibpath_overrides_runpath=yes |
| 13728 | hardcode_into_libs=yes |
| 13729 | ;; |
| 13730 | |
| 13731 | newsos6) |
| 13732 | version_type=linux |
| 13733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13734 | shlibpath_var=LD_LIBRARY_PATH |
| 13735 | shlibpath_overrides_runpath=yes |
| 13736 | ;; |
| 13737 | |
| 13738 | *nto* | *qnx*) |
| 13739 | version_type=qnx |
| 13740 | need_lib_prefix=no |
| 13741 | need_version=no |
| 13742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13743 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13744 | shlibpath_var=LD_LIBRARY_PATH |
| 13745 | shlibpath_overrides_runpath=no |
| 13746 | hardcode_into_libs=yes |
| 13747 | dynamic_linker='ldqnx.so' |
| 13748 | ;; |
| 13749 | |
| 13750 | openbsd*) |
| 13751 | version_type=sunos |
| 13752 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 13753 | need_lib_prefix=no |
| 13754 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13755 | case $host_os in |
| 13756 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13757 | *) need_version=no ;; |
| 13758 | esac |
| 13759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13760 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13761 | shlibpath_var=LD_LIBRARY_PATH |
| 13762 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13763 | case $host_os in |
| 13764 | openbsd2.[89] | openbsd2.[89].*) |
| 13765 | shlibpath_overrides_runpath=no |
| 13766 | ;; |
| 13767 | *) |
| 13768 | shlibpath_overrides_runpath=yes |
| 13769 | ;; |
| 13770 | esac |
| 13771 | else |
| 13772 | shlibpath_overrides_runpath=yes |
| 13773 | fi |
| 13774 | ;; |
| 13775 | |
| 13776 | os2*) |
| 13777 | libname_spec='$name' |
| 13778 | shrext_cmds=".dll" |
| 13779 | need_lib_prefix=no |
| 13780 | library_names_spec='$libname${shared_ext} $libname.a' |
| 13781 | dynamic_linker='OS/2 ld.exe' |
| 13782 | shlibpath_var=LIBPATH |
| 13783 | ;; |
| 13784 | |
| 13785 | osf3* | osf4* | osf5*) |
| 13786 | version_type=osf |
| 13787 | need_lib_prefix=no |
| 13788 | need_version=no |
| 13789 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13791 | shlibpath_var=LD_LIBRARY_PATH |
| 13792 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 13793 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 13794 | ;; |
| 13795 | |
| 13796 | rdos*) |
| 13797 | dynamic_linker=no |
| 13798 | ;; |
| 13799 | |
| 13800 | solaris*) |
| 13801 | version_type=linux |
| 13802 | need_lib_prefix=no |
| 13803 | need_version=no |
| 13804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13805 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13806 | shlibpath_var=LD_LIBRARY_PATH |
| 13807 | shlibpath_overrides_runpath=yes |
| 13808 | hardcode_into_libs=yes |
| 13809 | # ldd complains unless libraries are executable |
| 13810 | postinstall_cmds='chmod +x $lib' |
| 13811 | ;; |
| 13812 | |
| 13813 | sunos4*) |
| 13814 | version_type=sunos |
| 13815 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13816 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 13817 | shlibpath_var=LD_LIBRARY_PATH |
| 13818 | shlibpath_overrides_runpath=yes |
| 13819 | if test "$with_gnu_ld" = yes; then |
| 13820 | need_lib_prefix=no |
| 13821 | fi |
| 13822 | need_version=yes |
| 13823 | ;; |
| 13824 | |
| 13825 | sysv4 | sysv4.3*) |
| 13826 | version_type=linux |
| 13827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13828 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13829 | shlibpath_var=LD_LIBRARY_PATH |
| 13830 | case $host_vendor in |
| 13831 | sni) |
| 13832 | shlibpath_overrides_runpath=no |
| 13833 | need_lib_prefix=no |
| 13834 | runpath_var=LD_RUN_PATH |
| 13835 | ;; |
| 13836 | siemens) |
| 13837 | need_lib_prefix=no |
| 13838 | ;; |
| 13839 | motorola) |
| 13840 | need_lib_prefix=no |
| 13841 | need_version=no |
| 13842 | shlibpath_overrides_runpath=no |
| 13843 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 13844 | ;; |
| 13845 | esac |
| 13846 | ;; |
| 13847 | |
| 13848 | sysv4*MP*) |
| 13849 | if test -d /usr/nec ;then |
| 13850 | version_type=linux |
| 13851 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 13852 | soname_spec='$libname${shared_ext}.$major' |
| 13853 | shlibpath_var=LD_LIBRARY_PATH |
| 13854 | fi |
| 13855 | ;; |
| 13856 | |
| 13857 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 13858 | version_type=freebsd-elf |
| 13859 | need_lib_prefix=no |
| 13860 | need_version=no |
| 13861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13862 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13863 | shlibpath_var=LD_LIBRARY_PATH |
| 13864 | shlibpath_overrides_runpath=yes |
| 13865 | hardcode_into_libs=yes |
| 13866 | if test "$with_gnu_ld" = yes; then |
| 13867 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 13868 | else |
| 13869 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 13870 | case $host_os in |
| 13871 | sco3.2v5*) |
| 13872 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 13873 | ;; |
| 13874 | esac |
| 13875 | fi |
| 13876 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 13877 | ;; |
| 13878 | |
| 13879 | tpf*) |
| 13880 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 13881 | version_type=linux |
| 13882 | need_lib_prefix=no |
| 13883 | need_version=no |
| 13884 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13885 | shlibpath_var=LD_LIBRARY_PATH |
| 13886 | shlibpath_overrides_runpath=no |
| 13887 | hardcode_into_libs=yes |
| 13888 | ;; |
| 13889 | |
| 13890 | uts4*) |
| 13891 | version_type=linux |
| 13892 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13893 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13894 | shlibpath_var=LD_LIBRARY_PATH |
| 13895 | ;; |
| 13896 | |
| 13897 | *) |
| 13898 | dynamic_linker=no |
| 13899 | ;; |
| 13900 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13902 | $as_echo "$dynamic_linker" >&6; } |
| 13903 | test "$dynamic_linker" = no && can_build_shared=no |
| 13904 | |
| 13905 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 13906 | if test "$GCC" = yes; then |
| 13907 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 13908 | fi |
| 13909 | |
| 13910 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 13911 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 13912 | fi |
| 13913 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 13914 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 13915 | fi |
| 13916 | |
| 13917 | |
| 13918 | |
| 13919 | |
| 13920 | |
| 13921 | |
| 13922 | |
| 13923 | |
| 13924 | |
| 13925 | |
| 13926 | |
| 13927 | |
| 13928 | |
| 13929 | |
| 13930 | |
| 13931 | |
| 13932 | |
| 13933 | |
| 13934 | |
| 13935 | |
| 13936 | |
| 13937 | |
| 13938 | |
| 13939 | |
| 13940 | |
| 13941 | |
| 13942 | |
| 13943 | |
| 13944 | |
| 13945 | |
| 13946 | |
| 13947 | |
| 13948 | |
| 13949 | |
| 13950 | |
| 13951 | |
| 13952 | |
| 13953 | |
| 13954 | |
| 13955 | |
| 13956 | |
| 13957 | |
| 13958 | |
| 13959 | |
| 13960 | |
| 13961 | |
| 13962 | |
| 13963 | |
| 13964 | |
| 13965 | |
| 13966 | |
| 13967 | |
| 13968 | |
| 13969 | |
| 13970 | |
| 13971 | |
| 13972 | |
| 13973 | |
| 13974 | |
| 13975 | |
| 13976 | |
| 13977 | |
| 13978 | |
| 13979 | |
| 13980 | |
| 13981 | |
| 13982 | |
| 13983 | |
| 13984 | |
| 13985 | |
| 13986 | |
| 13987 | |
| 13988 | |
| 13989 | |
| 13990 | |
| 13991 | |
| 13992 | |
| 13993 | |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | |
| 13998 | |
| 13999 | |
| 14000 | |
| 14001 | |
| 14002 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14004 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 14005 | hardcode_action= |
| 14006 | if test -n "$hardcode_libdir_flag_spec" || |
| 14007 | test -n "$runpath_var" || |
| 14008 | test "X$hardcode_automatic" = "Xyes" ; then |
| 14009 | |
| 14010 | # We can hardcode non-existent directories. |
| 14011 | if test "$hardcode_direct" != no && |
| 14012 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14013 | # have to relink, otherwise we might link with an installed library |
| 14014 | # when we should be linking with a yet-to-be-installed one |
| 14015 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 14016 | test "$hardcode_minus_L" != no; then |
| 14017 | # Linking always hardcodes the temporary library directory. |
| 14018 | hardcode_action=relink |
| 14019 | else |
| 14020 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14021 | hardcode_action=immediate |
| 14022 | fi |
| 14023 | else |
| 14024 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14025 | # directories. |
| 14026 | hardcode_action=unsupported |
| 14027 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14029 | $as_echo "$hardcode_action" >&6; } |
| 14030 | |
| 14031 | if test "$hardcode_action" = relink || |
| 14032 | test "$inherit_rpath" = yes; then |
| 14033 | # Fast installation is not supported |
| 14034 | enable_fast_install=no |
| 14035 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14036 | test "$enable_shared" = no; then |
| 14037 | # Fast installation is not necessary |
| 14038 | enable_fast_install=needless |
| 14039 | fi |
| 14040 | |
| 14041 | |
| 14042 | |
| 14043 | |
| 14044 | |
| 14045 | |
| 14046 | if test "x$enable_dlopen" != xyes; then |
| 14047 | enable_dlopen=unknown |
| 14048 | enable_dlopen_self=unknown |
| 14049 | enable_dlopen_self_static=unknown |
| 14050 | else |
| 14051 | lt_cv_dlopen=no |
| 14052 | lt_cv_dlopen_libs= |
| 14053 | |
| 14054 | case $host_os in |
| 14055 | beos*) |
| 14056 | lt_cv_dlopen="load_add_on" |
| 14057 | lt_cv_dlopen_libs= |
| 14058 | lt_cv_dlopen_self=yes |
| 14059 | ;; |
| 14060 | |
| 14061 | mingw* | pw32* | cegcc*) |
| 14062 | lt_cv_dlopen="LoadLibrary" |
| 14063 | lt_cv_dlopen_libs= |
| 14064 | ;; |
| 14065 | |
| 14066 | cygwin*) |
| 14067 | lt_cv_dlopen="dlopen" |
| 14068 | lt_cv_dlopen_libs= |
| 14069 | ;; |
| 14070 | |
| 14071 | darwin*) |
| 14072 | # if libdl is installed we need to link against it |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14074 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14075 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14076 | $as_echo_n "(cached) " >&6 |
| 14077 | else |
| 14078 | ac_check_lib_save_LIBS=$LIBS |
| 14079 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14080 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14081 | /* end confdefs.h. */ |
| 14082 | |
| 14083 | /* Override any GCC internal prototype to avoid an error. |
| 14084 | Use char because int might match the return type of a GCC |
| 14085 | builtin and then its argument prototype would still apply. */ |
| 14086 | #ifdef __cplusplus |
| 14087 | extern "C" |
| 14088 | #endif |
| 14089 | char dlopen (); |
| 14090 | int |
| 14091 | main () |
| 14092 | { |
| 14093 | return dlopen (); |
| 14094 | ; |
| 14095 | return 0; |
| 14096 | } |
| 14097 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14098 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14099 | ac_cv_lib_dl_dlopen=yes |
| 14100 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14101 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14102 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14103 | rm -f core conftest.err conftest.$ac_objext \ |
| 14104 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14105 | LIBS=$ac_check_lib_save_LIBS |
| 14106 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14107 | { $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] | 14108 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14109 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14110 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14111 | else |
| 14112 | |
| 14113 | lt_cv_dlopen="dyld" |
| 14114 | lt_cv_dlopen_libs= |
| 14115 | lt_cv_dlopen_self=yes |
| 14116 | |
| 14117 | fi |
| 14118 | |
| 14119 | ;; |
| 14120 | |
| 14121 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14122 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 14123 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14124 | lt_cv_dlopen="shl_load" |
| 14125 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14127 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14128 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14129 | $as_echo_n "(cached) " >&6 |
| 14130 | else |
| 14131 | ac_check_lib_save_LIBS=$LIBS |
| 14132 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14134 | /* end confdefs.h. */ |
| 14135 | |
| 14136 | /* Override any GCC internal prototype to avoid an error. |
| 14137 | Use char because int might match the return type of a GCC |
| 14138 | builtin and then its argument prototype would still apply. */ |
| 14139 | #ifdef __cplusplus |
| 14140 | extern "C" |
| 14141 | #endif |
| 14142 | char shl_load (); |
| 14143 | int |
| 14144 | main () |
| 14145 | { |
| 14146 | return shl_load (); |
| 14147 | ; |
| 14148 | return 0; |
| 14149 | } |
| 14150 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14151 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14152 | ac_cv_lib_dld_shl_load=yes |
| 14153 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14154 | ac_cv_lib_dld_shl_load=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14155 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14156 | rm -f core conftest.err conftest.$ac_objext \ |
| 14157 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14158 | LIBS=$ac_check_lib_save_LIBS |
| 14159 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14161 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14162 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14163 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 14164 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14165 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 14166 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14167 | lt_cv_dlopen="dlopen" |
| 14168 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14170 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14171 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14172 | $as_echo_n "(cached) " >&6 |
| 14173 | else |
| 14174 | ac_check_lib_save_LIBS=$LIBS |
| 14175 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14177 | /* end confdefs.h. */ |
| 14178 | |
| 14179 | /* Override any GCC internal prototype to avoid an error. |
| 14180 | Use char because int might match the return type of a GCC |
| 14181 | builtin and then its argument prototype would still apply. */ |
| 14182 | #ifdef __cplusplus |
| 14183 | extern "C" |
| 14184 | #endif |
| 14185 | char dlopen (); |
| 14186 | int |
| 14187 | main () |
| 14188 | { |
| 14189 | return dlopen (); |
| 14190 | ; |
| 14191 | return 0; |
| 14192 | } |
| 14193 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14194 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14195 | ac_cv_lib_dl_dlopen=yes |
| 14196 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14197 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14198 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14199 | rm -f core conftest.err conftest.$ac_objext \ |
| 14200 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14201 | LIBS=$ac_check_lib_save_LIBS |
| 14202 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14203 | { $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] | 14204 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14205 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14206 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 14207 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14209 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14210 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14211 | $as_echo_n "(cached) " >&6 |
| 14212 | else |
| 14213 | ac_check_lib_save_LIBS=$LIBS |
| 14214 | LIBS="-lsvld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14216 | /* end confdefs.h. */ |
| 14217 | |
| 14218 | /* Override any GCC internal prototype to avoid an error. |
| 14219 | Use char because int might match the return type of a GCC |
| 14220 | builtin and then its argument prototype would still apply. */ |
| 14221 | #ifdef __cplusplus |
| 14222 | extern "C" |
| 14223 | #endif |
| 14224 | char dlopen (); |
| 14225 | int |
| 14226 | main () |
| 14227 | { |
| 14228 | return dlopen (); |
| 14229 | ; |
| 14230 | return 0; |
| 14231 | } |
| 14232 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14233 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14234 | ac_cv_lib_svld_dlopen=yes |
| 14235 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14236 | ac_cv_lib_svld_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14237 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14238 | rm -f core conftest.err conftest.$ac_objext \ |
| 14239 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14240 | LIBS=$ac_check_lib_save_LIBS |
| 14241 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14243 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14244 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14245 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 14246 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14248 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14249 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14250 | $as_echo_n "(cached) " >&6 |
| 14251 | else |
| 14252 | ac_check_lib_save_LIBS=$LIBS |
| 14253 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14255 | /* end confdefs.h. */ |
| 14256 | |
| 14257 | /* Override any GCC internal prototype to avoid an error. |
| 14258 | Use char because int might match the return type of a GCC |
| 14259 | builtin and then its argument prototype would still apply. */ |
| 14260 | #ifdef __cplusplus |
| 14261 | extern "C" |
| 14262 | #endif |
| 14263 | char dld_link (); |
| 14264 | int |
| 14265 | main () |
| 14266 | { |
| 14267 | return dld_link (); |
| 14268 | ; |
| 14269 | return 0; |
| 14270 | } |
| 14271 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14272 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14273 | ac_cv_lib_dld_dld_link=yes |
| 14274 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14275 | ac_cv_lib_dld_dld_link=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14276 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14277 | rm -f core conftest.err conftest.$ac_objext \ |
| 14278 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14279 | LIBS=$ac_check_lib_save_LIBS |
| 14280 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14282 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14283 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14284 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 14285 | fi |
| 14286 | |
| 14287 | |
| 14288 | fi |
| 14289 | |
| 14290 | |
| 14291 | fi |
| 14292 | |
| 14293 | |
| 14294 | fi |
| 14295 | |
| 14296 | |
| 14297 | fi |
| 14298 | |
| 14299 | |
| 14300 | fi |
| 14301 | |
| 14302 | ;; |
| 14303 | esac |
| 14304 | |
| 14305 | if test "x$lt_cv_dlopen" != xno; then |
| 14306 | enable_dlopen=yes |
| 14307 | else |
| 14308 | enable_dlopen=no |
| 14309 | fi |
| 14310 | |
| 14311 | case $lt_cv_dlopen in |
| 14312 | dlopen) |
| 14313 | save_CPPFLAGS="$CPPFLAGS" |
| 14314 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 14315 | |
| 14316 | save_LDFLAGS="$LDFLAGS" |
| 14317 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 14318 | |
| 14319 | save_LIBS="$LIBS" |
| 14320 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 14321 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14323 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14324 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14325 | $as_echo_n "(cached) " >&6 |
| 14326 | else |
| 14327 | if test "$cross_compiling" = yes; then : |
| 14328 | lt_cv_dlopen_self=cross |
| 14329 | else |
| 14330 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14331 | lt_status=$lt_dlunknown |
| 14332 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 14333 | #line 14333 "configure" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14334 | #include "confdefs.h" |
| 14335 | |
| 14336 | #if HAVE_DLFCN_H |
| 14337 | #include <dlfcn.h> |
| 14338 | #endif |
| 14339 | |
| 14340 | #include <stdio.h> |
| 14341 | |
| 14342 | #ifdef RTLD_GLOBAL |
| 14343 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14344 | #else |
| 14345 | # ifdef DL_GLOBAL |
| 14346 | # define LT_DLGLOBAL DL_GLOBAL |
| 14347 | # else |
| 14348 | # define LT_DLGLOBAL 0 |
| 14349 | # endif |
| 14350 | #endif |
| 14351 | |
| 14352 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14353 | find out it does not work in some platform. */ |
| 14354 | #ifndef LT_DLLAZY_OR_NOW |
| 14355 | # ifdef RTLD_LAZY |
| 14356 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14357 | # else |
| 14358 | # ifdef DL_LAZY |
| 14359 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14360 | # else |
| 14361 | # ifdef RTLD_NOW |
| 14362 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14363 | # else |
| 14364 | # ifdef DL_NOW |
| 14365 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14366 | # else |
| 14367 | # define LT_DLLAZY_OR_NOW 0 |
| 14368 | # endif |
| 14369 | # endif |
| 14370 | # endif |
| 14371 | # endif |
| 14372 | #endif |
| 14373 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 14374 | void fnord() { int i=42;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14375 | int main () |
| 14376 | { |
| 14377 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14378 | int status = $lt_dlunknown; |
| 14379 | |
| 14380 | if (self) |
| 14381 | { |
| 14382 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 14383 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14384 | /* dlclose (self); */ |
| 14385 | } |
| 14386 | else |
| 14387 | puts (dlerror ()); |
| 14388 | |
| 14389 | return status; |
| 14390 | } |
| 14391 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14392 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14393 | (eval $ac_link) 2>&5 |
| 14394 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14395 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14396 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14397 | (./conftest; exit; ) >&5 2>/dev/null |
| 14398 | lt_status=$? |
| 14399 | case x$lt_status in |
| 14400 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 14401 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 14402 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 14403 | esac |
| 14404 | else : |
| 14405 | # compilation failed |
| 14406 | lt_cv_dlopen_self=no |
| 14407 | fi |
| 14408 | fi |
| 14409 | rm -fr conftest* |
| 14410 | |
| 14411 | |
| 14412 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14414 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 14415 | |
| 14416 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 14417 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14419 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14420 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14421 | $as_echo_n "(cached) " >&6 |
| 14422 | else |
| 14423 | if test "$cross_compiling" = yes; then : |
| 14424 | lt_cv_dlopen_self_static=cross |
| 14425 | else |
| 14426 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 14427 | lt_status=$lt_dlunknown |
| 14428 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 14429 | #line 14429 "configure" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14430 | #include "confdefs.h" |
| 14431 | |
| 14432 | #if HAVE_DLFCN_H |
| 14433 | #include <dlfcn.h> |
| 14434 | #endif |
| 14435 | |
| 14436 | #include <stdio.h> |
| 14437 | |
| 14438 | #ifdef RTLD_GLOBAL |
| 14439 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 14440 | #else |
| 14441 | # ifdef DL_GLOBAL |
| 14442 | # define LT_DLGLOBAL DL_GLOBAL |
| 14443 | # else |
| 14444 | # define LT_DLGLOBAL 0 |
| 14445 | # endif |
| 14446 | #endif |
| 14447 | |
| 14448 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 14449 | find out it does not work in some platform. */ |
| 14450 | #ifndef LT_DLLAZY_OR_NOW |
| 14451 | # ifdef RTLD_LAZY |
| 14452 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 14453 | # else |
| 14454 | # ifdef DL_LAZY |
| 14455 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 14456 | # else |
| 14457 | # ifdef RTLD_NOW |
| 14458 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 14459 | # else |
| 14460 | # ifdef DL_NOW |
| 14461 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 14462 | # else |
| 14463 | # define LT_DLLAZY_OR_NOW 0 |
| 14464 | # endif |
| 14465 | # endif |
| 14466 | # endif |
| 14467 | # endif |
| 14468 | #endif |
| 14469 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 14470 | void fnord() { int i=42;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14471 | int main () |
| 14472 | { |
| 14473 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 14474 | int status = $lt_dlunknown; |
| 14475 | |
| 14476 | if (self) |
| 14477 | { |
| 14478 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 14479 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14480 | /* dlclose (self); */ |
| 14481 | } |
| 14482 | else |
| 14483 | puts (dlerror ()); |
| 14484 | |
| 14485 | return status; |
| 14486 | } |
| 14487 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14488 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14489 | (eval $ac_link) 2>&5 |
| 14490 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14492 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14493 | (./conftest; exit; ) >&5 2>/dev/null |
| 14494 | lt_status=$? |
| 14495 | case x$lt_status in |
| 14496 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14497 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 14498 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 14499 | esac |
| 14500 | else : |
| 14501 | # compilation failed |
| 14502 | lt_cv_dlopen_self_static=no |
| 14503 | fi |
| 14504 | fi |
| 14505 | rm -fr conftest* |
| 14506 | |
| 14507 | |
| 14508 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14510 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 14511 | fi |
| 14512 | |
| 14513 | CPPFLAGS="$save_CPPFLAGS" |
| 14514 | LDFLAGS="$save_LDFLAGS" |
| 14515 | LIBS="$save_LIBS" |
| 14516 | ;; |
| 14517 | esac |
| 14518 | |
| 14519 | case $lt_cv_dlopen_self in |
| 14520 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 14521 | *) enable_dlopen_self=unknown ;; |
| 14522 | esac |
| 14523 | |
| 14524 | case $lt_cv_dlopen_self_static in |
| 14525 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 14526 | *) enable_dlopen_self_static=unknown ;; |
| 14527 | esac |
| 14528 | fi |
| 14529 | |
| 14530 | |
| 14531 | |
| 14532 | |
| 14533 | |
| 14534 | |
| 14535 | |
| 14536 | |
| 14537 | |
| 14538 | |
| 14539 | |
| 14540 | |
| 14541 | |
| 14542 | |
| 14543 | |
| 14544 | |
| 14545 | |
| 14546 | striplib= |
| 14547 | old_striplib= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14549 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 14550 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 14551 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 14552 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14554 | $as_echo "yes" >&6; } |
| 14555 | else |
| 14556 | # FIXME - insert some real tests, host_os isn't really good enough |
| 14557 | case $host_os in |
| 14558 | darwin*) |
| 14559 | if test -n "$STRIP" ; then |
| 14560 | striplib="$STRIP -x" |
| 14561 | old_striplib="$STRIP -S" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14563 | $as_echo "yes" >&6; } |
| 14564 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14566 | $as_echo "no" >&6; } |
| 14567 | fi |
| 14568 | ;; |
| 14569 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14571 | $as_echo "no" >&6; } |
| 14572 | ;; |
| 14573 | esac |
| 14574 | fi |
| 14575 | |
| 14576 | |
| 14577 | |
| 14578 | |
| 14579 | |
| 14580 | |
| 14581 | |
| 14582 | |
| 14583 | |
| 14584 | |
| 14585 | |
| 14586 | |
| 14587 | # Report which library types will actually be built |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14589 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14591 | $as_echo "$can_build_shared" >&6; } |
| 14592 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14594 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 14595 | test "$can_build_shared" = "no" && enable_shared=no |
| 14596 | |
| 14597 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 14598 | # are all built from PIC. |
| 14599 | case $host_os in |
| 14600 | aix3*) |
| 14601 | test "$enable_shared" = yes && enable_static=no |
| 14602 | if test -n "$RANLIB"; then |
| 14603 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 14604 | postinstall_cmds='$RANLIB $lib' |
| 14605 | fi |
| 14606 | ;; |
| 14607 | |
| 14608 | aix[4-9]*) |
| 14609 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 14610 | test "$enable_shared" = yes && enable_static=no |
| 14611 | fi |
| 14612 | ;; |
| 14613 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14615 | $as_echo "$enable_shared" >&6; } |
| 14616 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14618 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 14619 | # Make sure either enable_shared or enable_static is yes. |
| 14620 | test "$enable_shared" = yes || enable_static=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14622 | $as_echo "$enable_static" >&6; } |
| 14623 | |
| 14624 | |
| 14625 | |
| 14626 | |
| 14627 | fi |
| 14628 | ac_ext=c |
| 14629 | ac_cpp='$CPP $CPPFLAGS' |
| 14630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14633 | |
| 14634 | CC="$lt_save_CC" |
| 14635 | |
| 14636 | |
| 14637 | ac_ext=cpp |
| 14638 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 14639 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14640 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14641 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 14642 | |
| 14643 | archive_cmds_need_lc_CXX=no |
| 14644 | allow_undefined_flag_CXX= |
| 14645 | always_export_symbols_CXX=no |
| 14646 | archive_expsym_cmds_CXX= |
| 14647 | compiler_needs_object_CXX=no |
| 14648 | export_dynamic_flag_spec_CXX= |
| 14649 | hardcode_direct_CXX=no |
| 14650 | hardcode_direct_absolute_CXX=no |
| 14651 | hardcode_libdir_flag_spec_CXX= |
| 14652 | hardcode_libdir_flag_spec_ld_CXX= |
| 14653 | hardcode_libdir_separator_CXX= |
| 14654 | hardcode_minus_L_CXX=no |
| 14655 | hardcode_shlibpath_var_CXX=unsupported |
| 14656 | hardcode_automatic_CXX=no |
| 14657 | inherit_rpath_CXX=no |
| 14658 | module_cmds_CXX= |
| 14659 | module_expsym_cmds_CXX= |
| 14660 | link_all_deplibs_CXX=unknown |
| 14661 | old_archive_cmds_CXX=$old_archive_cmds |
| 14662 | no_undefined_flag_CXX= |
| 14663 | whole_archive_flag_spec_CXX= |
| 14664 | enable_shared_with_static_runtimes_CXX=no |
| 14665 | |
| 14666 | # Source file extension for C++ test sources. |
| 14667 | ac_ext=cpp |
| 14668 | |
| 14669 | # Object file extension for compiled C++ test sources. |
| 14670 | objext=o |
| 14671 | objext_CXX=$objext |
| 14672 | |
| 14673 | # No sense in running all these tests if we already determined that |
| 14674 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 14675 | # are currently assumed to apply to all compilers on this platform, |
| 14676 | # and will be corrupted by setting them based on a non-working compiler. |
| 14677 | if test "$_lt_caught_CXX_error" != yes; then |
| 14678 | # Code to be used in simple compile tests |
| 14679 | lt_simple_compile_test_code="int some_variable = 0;" |
| 14680 | |
| 14681 | # Code to be used in simple link tests |
| 14682 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 14683 | |
| 14684 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 14685 | |
| 14686 | |
| 14687 | |
| 14688 | |
| 14689 | |
| 14690 | |
| 14691 | # If no C compiler was specified, use CC. |
| 14692 | LTCC=${LTCC-"$CC"} |
| 14693 | |
| 14694 | # If no C compiler flags were specified, use CFLAGS. |
| 14695 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14696 | |
| 14697 | # Allow CC to be a program name with arguments. |
| 14698 | compiler=$CC |
| 14699 | |
| 14700 | |
| 14701 | # save warnings/boilerplate of simple test code |
| 14702 | ac_outfile=conftest.$ac_objext |
| 14703 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14704 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14705 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14706 | $RM conftest* |
| 14707 | |
| 14708 | ac_outfile=conftest.$ac_objext |
| 14709 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14710 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14711 | _lt_linker_boilerplate=`cat conftest.err` |
| 14712 | $RM -r conftest* |
| 14713 | |
| 14714 | |
| 14715 | # Allow CC to be a program name with arguments. |
| 14716 | lt_save_CC=$CC |
| 14717 | lt_save_LD=$LD |
| 14718 | lt_save_GCC=$GCC |
| 14719 | GCC=$GXX |
| 14720 | lt_save_with_gnu_ld=$with_gnu_ld |
| 14721 | lt_save_path_LD=$lt_cv_path_LD |
| 14722 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 14723 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 14724 | else |
| 14725 | $as_unset lt_cv_prog_gnu_ld |
| 14726 | fi |
| 14727 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 14728 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 14729 | else |
| 14730 | $as_unset lt_cv_path_LD |
| 14731 | fi |
| 14732 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 14733 | CC=${CXX-"c++"} |
| 14734 | compiler=$CC |
| 14735 | compiler_CXX=$CC |
| 14736 | for cc_temp in $compiler""; do |
| 14737 | case $cc_temp in |
| 14738 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 14739 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 14740 | \-*) ;; |
| 14741 | *) break;; |
| 14742 | esac |
| 14743 | done |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 14744 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14745 | |
| 14746 | |
| 14747 | if test -n "$compiler"; then |
| 14748 | # We don't want -fno-exception when compiling C++ code, so set the |
| 14749 | # no_builtin_flag separately |
| 14750 | if test "$GXX" = yes; then |
| 14751 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 14752 | else |
| 14753 | lt_prog_compiler_no_builtin_flag_CXX= |
| 14754 | fi |
| 14755 | |
| 14756 | if test "$GXX" = yes; then |
| 14757 | # Set up default GNU C++ configuration |
| 14758 | |
| 14759 | |
| 14760 | |
| 14761 | # Check whether --with-gnu-ld was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14762 | if test "${with_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14763 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 14764 | else |
| 14765 | with_gnu_ld=no |
| 14766 | fi |
| 14767 | |
| 14768 | ac_prog=ld |
| 14769 | if test "$GCC" = yes; then |
| 14770 | # Check if gcc -print-prog-name=ld gives a path. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14772 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 14773 | case $host in |
| 14774 | *-*-mingw*) |
| 14775 | # gcc leaves a trailing carriage return which upsets mingw |
| 14776 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 14777 | *) |
| 14778 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 14779 | esac |
| 14780 | case $ac_prog in |
| 14781 | # Accept absolute paths. |
| 14782 | [\\/]* | ?:[\\/]*) |
| 14783 | re_direlt='/[^/][^/]*/\.\./' |
| 14784 | # Canonicalize the pathname of ld |
| 14785 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 14786 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 14787 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 14788 | done |
| 14789 | test -z "$LD" && LD="$ac_prog" |
| 14790 | ;; |
| 14791 | "") |
| 14792 | # If it fails, then pretend we aren't using GCC. |
| 14793 | ac_prog=ld |
| 14794 | ;; |
| 14795 | *) |
| 14796 | # If it is relative, then search for the first ld in PATH. |
| 14797 | with_gnu_ld=unknown |
| 14798 | ;; |
| 14799 | esac |
| 14800 | elif test "$with_gnu_ld" = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14802 | $as_echo_n "checking for GNU ld... " >&6; } |
| 14803 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14805 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 14806 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14807 | if test "${lt_cv_path_LD+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14808 | $as_echo_n "(cached) " >&6 |
| 14809 | else |
| 14810 | if test -z "$LD"; then |
| 14811 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14812 | for ac_dir in $PATH; do |
| 14813 | IFS="$lt_save_ifs" |
| 14814 | test -z "$ac_dir" && ac_dir=. |
| 14815 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 14816 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 14817 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 14818 | # but apparently some variants of GNU ld only accept -v. |
| 14819 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 14820 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 14821 | *GNU* | *'with BFD'*) |
| 14822 | test "$with_gnu_ld" != no && break |
| 14823 | ;; |
| 14824 | *) |
| 14825 | test "$with_gnu_ld" != yes && break |
| 14826 | ;; |
| 14827 | esac |
| 14828 | fi |
| 14829 | done |
| 14830 | IFS="$lt_save_ifs" |
| 14831 | else |
| 14832 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 14833 | fi |
| 14834 | fi |
| 14835 | |
| 14836 | LD="$lt_cv_path_LD" |
| 14837 | if test -n "$LD"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14839 | $as_echo "$LD" >&6; } |
| 14840 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14842 | $as_echo "no" >&6; } |
| 14843 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14844 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 14845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14846 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14847 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14848 | $as_echo_n "(cached) " >&6 |
| 14849 | else |
| 14850 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 14851 | case `$LD -v 2>&1 </dev/null` in |
| 14852 | *GNU* | *'with BFD'*) |
| 14853 | lt_cv_prog_gnu_ld=yes |
| 14854 | ;; |
| 14855 | *) |
| 14856 | lt_cv_prog_gnu_ld=no |
| 14857 | ;; |
| 14858 | esac |
| 14859 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14861 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 14862 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 14863 | |
| 14864 | |
| 14865 | |
| 14866 | |
| 14867 | |
| 14868 | |
| 14869 | |
| 14870 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 14871 | # archiving commands below assume that GNU ld is being used. |
| 14872 | if test "$with_gnu_ld" = yes; then |
| 14873 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14874 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 14875 | |
| 14876 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 14877 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 14878 | |
| 14879 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14880 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 14881 | # investigate it a little bit more. (MM) |
| 14882 | wlarc='${wl}' |
| 14883 | |
| 14884 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14885 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 14886 | $GREP 'no-whole-archive' > /dev/null; then |
| 14887 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14888 | else |
| 14889 | whole_archive_flag_spec_CXX= |
| 14890 | fi |
| 14891 | else |
| 14892 | with_gnu_ld=no |
| 14893 | wlarc= |
| 14894 | |
| 14895 | # A generic and very simple default shared library creation |
| 14896 | # command for GNU C++ for the case where it uses the native |
| 14897 | # linker, instead of GNU ld. If possible, this setting should |
| 14898 | # overridden to take advantage of the native linker features on |
| 14899 | # the platform it is being used on. |
| 14900 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 14901 | fi |
| 14902 | |
| 14903 | # Commands to make compiler produce verbose output that lists |
| 14904 | # what "hidden" libraries, object files and flags are used when |
| 14905 | # linking a shared library. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 14906 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14907 | |
| 14908 | else |
| 14909 | GXX=no |
| 14910 | with_gnu_ld=no |
| 14911 | wlarc= |
| 14912 | fi |
| 14913 | |
| 14914 | # PORTME: fill in a description of your system's C++ link characteristics |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 14915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 14916 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14917 | ld_shlibs_CXX=yes |
| 14918 | case $host_os in |
| 14919 | aix3*) |
| 14920 | # FIXME: insert proper C++ library support |
| 14921 | ld_shlibs_CXX=no |
| 14922 | ;; |
| 14923 | aix[4-9]*) |
| 14924 | if test "$host_cpu" = ia64; then |
| 14925 | # On IA64, the linker does run time linking by default, so we don't |
| 14926 | # have to do anything special. |
| 14927 | aix_use_runtimelinking=no |
| 14928 | exp_sym_flag='-Bexport' |
| 14929 | no_entry_flag="" |
| 14930 | else |
| 14931 | aix_use_runtimelinking=no |
| 14932 | |
| 14933 | # Test if we are trying to use run time linking or normal |
| 14934 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 14935 | # need to do runtime linking. |
| 14936 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 14937 | for ld_flag in $LDFLAGS; do |
| 14938 | case $ld_flag in |
| 14939 | *-brtl*) |
| 14940 | aix_use_runtimelinking=yes |
| 14941 | break |
| 14942 | ;; |
| 14943 | esac |
| 14944 | done |
| 14945 | ;; |
| 14946 | esac |
| 14947 | |
| 14948 | exp_sym_flag='-bexport' |
| 14949 | no_entry_flag='-bnoentry' |
| 14950 | fi |
| 14951 | |
| 14952 | # When large executables or shared objects are built, AIX ld can |
| 14953 | # have problems creating the table of contents. If linking a library |
| 14954 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 14955 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 14956 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 14957 | |
| 14958 | archive_cmds_CXX='' |
| 14959 | hardcode_direct_CXX=yes |
| 14960 | hardcode_direct_absolute_CXX=yes |
| 14961 | hardcode_libdir_separator_CXX=':' |
| 14962 | link_all_deplibs_CXX=yes |
| 14963 | file_list_spec_CXX='${wl}-f,' |
| 14964 | |
| 14965 | if test "$GXX" = yes; then |
| 14966 | case $host_os in aix4.[012]|aix4.[012].*) |
| 14967 | # We only want to do this on AIX 4.2 and lower, the check |
| 14968 | # below for broken collect2 doesn't work under 4.3+ |
| 14969 | collect2name=`${CC} -print-prog-name=collect2` |
| 14970 | if test -f "$collect2name" && |
| 14971 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 14972 | then |
| 14973 | # We have reworked collect2 |
| 14974 | : |
| 14975 | else |
| 14976 | # We have old collect2 |
| 14977 | hardcode_direct_CXX=unsupported |
| 14978 | # It fails to find uninstalled libraries when the uninstalled |
| 14979 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 14980 | # to unsupported forces relinking |
| 14981 | hardcode_minus_L_CXX=yes |
| 14982 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 14983 | hardcode_libdir_separator_CXX= |
| 14984 | fi |
| 14985 | esac |
| 14986 | shared_flag='-shared' |
| 14987 | if test "$aix_use_runtimelinking" = yes; then |
| 14988 | shared_flag="$shared_flag "'${wl}-G' |
| 14989 | fi |
| 14990 | else |
| 14991 | # not using gcc |
| 14992 | if test "$host_cpu" = ia64; then |
| 14993 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 14994 | # chokes on -Wl,-G. The following line is correct: |
| 14995 | shared_flag='-G' |
| 14996 | else |
| 14997 | if test "$aix_use_runtimelinking" = yes; then |
| 14998 | shared_flag='${wl}-G' |
| 14999 | else |
| 15000 | shared_flag='${wl}-bM:SRE' |
| 15001 | fi |
| 15002 | fi |
| 15003 | fi |
| 15004 | |
| 15005 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 15006 | # It seems that -bexpall does not export symbols beginning with |
| 15007 | # underscore (_), so it is better to generate a list of symbols to |
| 15008 | # export. |
| 15009 | always_export_symbols_CXX=yes |
| 15010 | if test "$aix_use_runtimelinking" = yes; then |
| 15011 | # Warning - without using the other runtime loading flags (-brtl), |
| 15012 | # -berok will link without error, but may produce a broken library. |
| 15013 | allow_undefined_flag_CXX='-berok' |
| 15014 | # Determine the default libpath from the value encoded in an empty |
| 15015 | # executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15017 | /* end confdefs.h. */ |
| 15018 | |
| 15019 | int |
| 15020 | main () |
| 15021 | { |
| 15022 | |
| 15023 | ; |
| 15024 | return 0; |
| 15025 | } |
| 15026 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15027 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15028 | |
| 15029 | lt_aix_libpath_sed=' |
| 15030 | /Import File Strings/,/^$/ { |
| 15031 | /^0/ { |
| 15032 | s/^0 *\(.*\)$/\1/ |
| 15033 | p |
| 15034 | } |
| 15035 | }' |
| 15036 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15037 | # Check for a 64-bit object if we didn't find anything. |
| 15038 | if test -z "$aix_libpath"; then |
| 15039 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15040 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15041 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15042 | rm -f core conftest.err conftest.$ac_objext \ |
| 15043 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15044 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15045 | |
| 15046 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15047 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15048 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15049 | else |
| 15050 | if test "$host_cpu" = ia64; then |
| 15051 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 15052 | allow_undefined_flag_CXX="-z nodefs" |
| 15053 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 15054 | else |
| 15055 | # Determine the default libpath from the value encoded in an |
| 15056 | # empty executable. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15058 | /* end confdefs.h. */ |
| 15059 | |
| 15060 | int |
| 15061 | main () |
| 15062 | { |
| 15063 | |
| 15064 | ; |
| 15065 | return 0; |
| 15066 | } |
| 15067 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15068 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15069 | |
| 15070 | lt_aix_libpath_sed=' |
| 15071 | /Import File Strings/,/^$/ { |
| 15072 | /^0/ { |
| 15073 | s/^0 *\(.*\)$/\1/ |
| 15074 | p |
| 15075 | } |
| 15076 | }' |
| 15077 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15078 | # Check for a 64-bit object if we didn't find anything. |
| 15079 | if test -z "$aix_libpath"; then |
| 15080 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15081 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15082 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15083 | rm -f core conftest.err conftest.$ac_objext \ |
| 15084 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15085 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 15086 | |
| 15087 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15088 | # Warning - without using the other run time loading flags, |
| 15089 | # -berok will link without error, but may produce a broken library. |
| 15090 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 15091 | allow_undefined_flag_CXX=' ${wl}-berok' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15092 | # Exported symbols can be pulled into shared objects from archives |
| 15093 | whole_archive_flag_spec_CXX='$convenience' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15094 | archive_cmds_need_lc_CXX=yes |
| 15095 | # This is similar to how AIX traditionally builds its shared |
| 15096 | # libraries. |
| 15097 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 15098 | fi |
| 15099 | fi |
| 15100 | ;; |
| 15101 | |
| 15102 | beos*) |
| 15103 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15104 | allow_undefined_flag_CXX=unsupported |
| 15105 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 15106 | # support --undefined. This deserves some investigation. FIXME |
| 15107 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15108 | else |
| 15109 | ld_shlibs_CXX=no |
| 15110 | fi |
| 15111 | ;; |
| 15112 | |
| 15113 | chorus*) |
| 15114 | case $cc_basename in |
| 15115 | *) |
| 15116 | # FIXME: insert proper C++ library support |
| 15117 | ld_shlibs_CXX=no |
| 15118 | ;; |
| 15119 | esac |
| 15120 | ;; |
| 15121 | |
| 15122 | cygwin* | mingw* | pw32* | cegcc*) |
| 15123 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 15124 | # as there is no search path for DLLs. |
| 15125 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 15126 | allow_undefined_flag_CXX=unsupported |
| 15127 | always_export_symbols_CXX=no |
| 15128 | enable_shared_with_static_runtimes_CXX=yes |
| 15129 | |
| 15130 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 15131 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15132 | # If the export-symbols file already is a .def file (1st line |
| 15133 | # is EXPORTS), use it as is; otherwise, prepend... |
| 15134 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15135 | cp $export_symbols $output_objdir/$soname.def; |
| 15136 | else |
| 15137 | echo EXPORTS > $output_objdir/$soname.def; |
| 15138 | cat $export_symbols >> $output_objdir/$soname.def; |
| 15139 | fi~ |
| 15140 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15141 | else |
| 15142 | ld_shlibs_CXX=no |
| 15143 | fi |
| 15144 | ;; |
| 15145 | darwin* | rhapsody*) |
| 15146 | |
| 15147 | |
| 15148 | archive_cmds_need_lc_CXX=no |
| 15149 | hardcode_direct_CXX=no |
| 15150 | hardcode_automatic_CXX=yes |
| 15151 | hardcode_shlibpath_var_CXX=unsupported |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15152 | whole_archive_flag_spec_CXX='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15153 | link_all_deplibs_CXX=yes |
| 15154 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 15155 | case $cc_basename in |
| 15156 | ifort*) _lt_dar_can_shared=yes ;; |
| 15157 | *) _lt_dar_can_shared=$GCC ;; |
| 15158 | esac |
| 15159 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15160 | output_verbose_link_cmd=echo |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15161 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 15162 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 15163 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 15164 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 15165 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 15166 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 15167 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 15168 | fi |
| 15169 | |
| 15170 | else |
| 15171 | ld_shlibs_CXX=no |
| 15172 | fi |
| 15173 | |
| 15174 | ;; |
| 15175 | |
| 15176 | dgux*) |
| 15177 | case $cc_basename in |
| 15178 | ec++*) |
| 15179 | # FIXME: insert proper C++ library support |
| 15180 | ld_shlibs_CXX=no |
| 15181 | ;; |
| 15182 | ghcx*) |
| 15183 | # Green Hills C++ Compiler |
| 15184 | # FIXME: insert proper C++ library support |
| 15185 | ld_shlibs_CXX=no |
| 15186 | ;; |
| 15187 | *) |
| 15188 | # FIXME: insert proper C++ library support |
| 15189 | ld_shlibs_CXX=no |
| 15190 | ;; |
| 15191 | esac |
| 15192 | ;; |
| 15193 | |
| 15194 | freebsd[12]*) |
| 15195 | # C++ shared libraries reported to be fairly broken before |
| 15196 | # switch to ELF |
| 15197 | ld_shlibs_CXX=no |
| 15198 | ;; |
| 15199 | |
| 15200 | freebsd-elf*) |
| 15201 | archive_cmds_need_lc_CXX=no |
| 15202 | ;; |
| 15203 | |
| 15204 | freebsd* | dragonfly*) |
| 15205 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 15206 | # conventions |
| 15207 | ld_shlibs_CXX=yes |
| 15208 | ;; |
| 15209 | |
| 15210 | gnu*) |
| 15211 | ;; |
| 15212 | |
| 15213 | hpux9*) |
| 15214 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15215 | hardcode_libdir_separator_CXX=: |
| 15216 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15217 | hardcode_direct_CXX=yes |
| 15218 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15219 | # but as the default |
| 15220 | # location of the library. |
| 15221 | |
| 15222 | case $cc_basename in |
| 15223 | CC*) |
| 15224 | # FIXME: insert proper C++ library support |
| 15225 | ld_shlibs_CXX=no |
| 15226 | ;; |
| 15227 | aCC*) |
| 15228 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 15229 | # Commands to make compiler produce verbose output that lists |
| 15230 | # what "hidden" libraries, object files and flags are used when |
| 15231 | # linking a shared library. |
| 15232 | # |
| 15233 | # There doesn't appear to be a way to prevent this compiler from |
| 15234 | # explicitly linking system object files so we need to strip them |
| 15235 | # from the output so that they don't get included in the library |
| 15236 | # dependencies. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15237 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15238 | ;; |
| 15239 | *) |
| 15240 | if test "$GXX" = yes; then |
| 15241 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 15242 | else |
| 15243 | # FIXME: insert proper C++ library support |
| 15244 | ld_shlibs_CXX=no |
| 15245 | fi |
| 15246 | ;; |
| 15247 | esac |
| 15248 | ;; |
| 15249 | |
| 15250 | hpux10*|hpux11*) |
| 15251 | if test $with_gnu_ld = no; then |
| 15252 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 15253 | hardcode_libdir_separator_CXX=: |
| 15254 | |
| 15255 | case $host_cpu in |
| 15256 | hppa*64*|ia64*) |
| 15257 | ;; |
| 15258 | *) |
| 15259 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15260 | ;; |
| 15261 | esac |
| 15262 | fi |
| 15263 | case $host_cpu in |
| 15264 | hppa*64*|ia64*) |
| 15265 | hardcode_direct_CXX=no |
| 15266 | hardcode_shlibpath_var_CXX=no |
| 15267 | ;; |
| 15268 | *) |
| 15269 | hardcode_direct_CXX=yes |
| 15270 | hardcode_direct_absolute_CXX=yes |
| 15271 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 15272 | # but as the default |
| 15273 | # location of the library. |
| 15274 | ;; |
| 15275 | esac |
| 15276 | |
| 15277 | case $cc_basename in |
| 15278 | CC*) |
| 15279 | # FIXME: insert proper C++ library support |
| 15280 | ld_shlibs_CXX=no |
| 15281 | ;; |
| 15282 | aCC*) |
| 15283 | case $host_cpu in |
| 15284 | hppa*64*) |
| 15285 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15286 | ;; |
| 15287 | ia64*) |
| 15288 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15289 | ;; |
| 15290 | *) |
| 15291 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15292 | ;; |
| 15293 | esac |
| 15294 | # Commands to make compiler produce verbose output that lists |
| 15295 | # what "hidden" libraries, object files and flags are used when |
| 15296 | # linking a shared library. |
| 15297 | # |
| 15298 | # There doesn't appear to be a way to prevent this compiler from |
| 15299 | # explicitly linking system object files so we need to strip them |
| 15300 | # from the output so that they don't get included in the library |
| 15301 | # dependencies. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15302 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15303 | ;; |
| 15304 | *) |
| 15305 | if test "$GXX" = yes; then |
| 15306 | if test $with_gnu_ld = no; then |
| 15307 | case $host_cpu in |
| 15308 | hppa*64*) |
| 15309 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15310 | ;; |
| 15311 | ia64*) |
| 15312 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15313 | ;; |
| 15314 | *) |
| 15315 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15316 | ;; |
| 15317 | esac |
| 15318 | fi |
| 15319 | else |
| 15320 | # FIXME: insert proper C++ library support |
| 15321 | ld_shlibs_CXX=no |
| 15322 | fi |
| 15323 | ;; |
| 15324 | esac |
| 15325 | ;; |
| 15326 | |
| 15327 | interix[3-9]*) |
| 15328 | hardcode_direct_CXX=no |
| 15329 | hardcode_shlibpath_var_CXX=no |
| 15330 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15331 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15332 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15333 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15334 | # default) and relocated if they conflict, which is a slow very memory |
| 15335 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 15336 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15337 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15338 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15339 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15340 | ;; |
| 15341 | irix5* | irix6*) |
| 15342 | case $cc_basename in |
| 15343 | CC*) |
| 15344 | # SGI C++ |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15345 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15346 | |
| 15347 | # Archives containing C++ object files must be created using |
| 15348 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 15349 | # necessary to make sure instantiated templates are included |
| 15350 | # in the archive. |
| 15351 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 15352 | ;; |
| 15353 | *) |
| 15354 | if test "$GXX" = yes; then |
| 15355 | if test "$with_gnu_ld" = no; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15356 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15357 | else |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15358 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15359 | fi |
| 15360 | fi |
| 15361 | link_all_deplibs_CXX=yes |
| 15362 | ;; |
| 15363 | esac |
| 15364 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15365 | hardcode_libdir_separator_CXX=: |
| 15366 | inherit_rpath_CXX=yes |
| 15367 | ;; |
| 15368 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15369 | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15370 | case $cc_basename in |
| 15371 | KCC*) |
| 15372 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15373 | |
| 15374 | # KCC will only create a shared library if the output file |
| 15375 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15376 | # to its proper name (with version) after linking. |
| 15377 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 15378 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 15379 | # Commands to make compiler produce verbose output that lists |
| 15380 | # what "hidden" libraries, object files and flags are used when |
| 15381 | # linking a shared library. |
| 15382 | # |
| 15383 | # There doesn't appear to be a way to prevent this compiler from |
| 15384 | # explicitly linking system object files so we need to strip them |
| 15385 | # from the output so that they don't get included in the library |
| 15386 | # dependencies. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15387 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15388 | |
| 15389 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15390 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15391 | |
| 15392 | # Archives containing C++ object files must be created using |
| 15393 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 15394 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 15395 | ;; |
| 15396 | icpc* | ecpc* ) |
| 15397 | # Intel C++ |
| 15398 | with_gnu_ld=yes |
| 15399 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 15400 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 15401 | # earlier do not add the objects themselves. |
| 15402 | case `$CC -V 2>&1` in |
| 15403 | *"Version 7."*) |
| 15404 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15405 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15406 | ;; |
| 15407 | *) # Version 8.0 or newer |
| 15408 | tmp_idyn= |
| 15409 | case $host_cpu in |
| 15410 | ia64*) tmp_idyn=' -i_dynamic';; |
| 15411 | esac |
| 15412 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15413 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15414 | ;; |
| 15415 | esac |
| 15416 | archive_cmds_need_lc_CXX=no |
| 15417 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15418 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15419 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 15420 | ;; |
| 15421 | pgCC* | pgcpp*) |
| 15422 | # Portland Group C++ compiler |
| 15423 | case `$CC -V` in |
| 15424 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 15425 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 15426 | rm -rf $tpldir~ |
| 15427 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 15428 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 15429 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 15430 | rm -rf $tpldir~ |
| 15431 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 15432 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 15433 | $RANLIB $oldlib' |
| 15434 | archive_cmds_CXX='tpldir=Template.dir~ |
| 15435 | rm -rf $tpldir~ |
| 15436 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15437 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 15438 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 15439 | rm -rf $tpldir~ |
| 15440 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 15441 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 15442 | ;; |
| 15443 | *) # Version 6 will use weak symbols |
| 15444 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 15445 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 15446 | ;; |
| 15447 | esac |
| 15448 | |
| 15449 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 15450 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15451 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15452 | ;; |
| 15453 | cxx*) |
| 15454 | # Compaq C++ |
| 15455 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15456 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 15457 | |
| 15458 | runpath_var=LD_RUN_PATH |
| 15459 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15460 | hardcode_libdir_separator_CXX=: |
| 15461 | |
| 15462 | # Commands to make compiler produce verbose output that lists |
| 15463 | # what "hidden" libraries, object files and flags are used when |
| 15464 | # linking a shared library. |
| 15465 | # |
| 15466 | # There doesn't appear to be a way to prevent this compiler from |
| 15467 | # explicitly linking system object files so we need to strip them |
| 15468 | # from the output so that they don't get included in the library |
| 15469 | # dependencies. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15470 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15471 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15472 | xl*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15473 | # IBM XL 8.0 on PPC, with GNU ld |
| 15474 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15475 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 15476 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15477 | if test "x$supports_anon_versioning" = xyes; then |
| 15478 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15479 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15480 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15481 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15482 | fi |
| 15483 | ;; |
| 15484 | *) |
| 15485 | case `$CC -V 2>&1 | sed 5q` in |
| 15486 | *Sun\ C*) |
| 15487 | # Sun C++ 5.9 |
| 15488 | no_undefined_flag_CXX=' -zdefs' |
| 15489 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15490 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 15491 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15492 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15493 | compiler_needs_object_CXX=yes |
| 15494 | |
| 15495 | # Not sure whether something based on |
| 15496 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 15497 | # would be better. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15498 | output_verbose_link_cmd='echo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15499 | |
| 15500 | # Archives containing C++ object files must be created using |
| 15501 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15502 | # necessary to make sure instantiated templates are included |
| 15503 | # in the archive. |
| 15504 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15505 | ;; |
| 15506 | esac |
| 15507 | ;; |
| 15508 | esac |
| 15509 | ;; |
| 15510 | |
| 15511 | lynxos*) |
| 15512 | # FIXME: insert proper C++ library support |
| 15513 | ld_shlibs_CXX=no |
| 15514 | ;; |
| 15515 | |
| 15516 | m88k*) |
| 15517 | # FIXME: insert proper C++ library support |
| 15518 | ld_shlibs_CXX=no |
| 15519 | ;; |
| 15520 | |
| 15521 | mvs*) |
| 15522 | case $cc_basename in |
| 15523 | cxx*) |
| 15524 | # FIXME: insert proper C++ library support |
| 15525 | ld_shlibs_CXX=no |
| 15526 | ;; |
| 15527 | *) |
| 15528 | # FIXME: insert proper C++ library support |
| 15529 | ld_shlibs_CXX=no |
| 15530 | ;; |
| 15531 | esac |
| 15532 | ;; |
| 15533 | |
| 15534 | netbsd*) |
| 15535 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15536 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 15537 | wlarc= |
| 15538 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15539 | hardcode_direct_CXX=yes |
| 15540 | hardcode_shlibpath_var_CXX=no |
| 15541 | fi |
| 15542 | # Workaround some broken pre-1.5 toolchains |
| 15543 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 15544 | ;; |
| 15545 | |
| 15546 | *nto* | *qnx*) |
| 15547 | ld_shlibs_CXX=yes |
| 15548 | ;; |
| 15549 | |
| 15550 | openbsd2*) |
| 15551 | # C++ shared libraries are fairly broken |
| 15552 | ld_shlibs_CXX=no |
| 15553 | ;; |
| 15554 | |
| 15555 | openbsd*) |
| 15556 | if test -f /usr/libexec/ld.so; then |
| 15557 | hardcode_direct_CXX=yes |
| 15558 | hardcode_shlibpath_var_CXX=no |
| 15559 | hardcode_direct_absolute_CXX=yes |
| 15560 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 15561 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15562 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15563 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 15564 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 15565 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 15566 | fi |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15567 | output_verbose_link_cmd=echo |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15568 | else |
| 15569 | ld_shlibs_CXX=no |
| 15570 | fi |
| 15571 | ;; |
| 15572 | |
| 15573 | osf3* | osf4* | osf5*) |
| 15574 | case $cc_basename in |
| 15575 | KCC*) |
| 15576 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 15577 | |
| 15578 | # KCC will only create a shared library if the output file |
| 15579 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 15580 | # to its proper name (with version) after linking. |
| 15581 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 15582 | |
| 15583 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 15584 | hardcode_libdir_separator_CXX=: |
| 15585 | |
| 15586 | # Archives containing C++ object files must be created using |
| 15587 | # the KAI C++ compiler. |
| 15588 | case $host in |
| 15589 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 15590 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 15591 | esac |
| 15592 | ;; |
| 15593 | RCC*) |
| 15594 | # Rational C++ 2.4.1 |
| 15595 | # FIXME: insert proper C++ library support |
| 15596 | ld_shlibs_CXX=no |
| 15597 | ;; |
| 15598 | cxx*) |
| 15599 | case $host in |
| 15600 | osf3*) |
| 15601 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15602 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15603 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15604 | ;; |
| 15605 | *) |
| 15606 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15607 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15608 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 15609 | echo "-hidden">> $lib.exp~ |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15610 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15611 | $RM $lib.exp' |
| 15612 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 15613 | ;; |
| 15614 | esac |
| 15615 | |
| 15616 | hardcode_libdir_separator_CXX=: |
| 15617 | |
| 15618 | # Commands to make compiler produce verbose output that lists |
| 15619 | # what "hidden" libraries, object files and flags are used when |
| 15620 | # linking a shared library. |
| 15621 | # |
| 15622 | # There doesn't appear to be a way to prevent this compiler from |
| 15623 | # explicitly linking system object files so we need to strip them |
| 15624 | # from the output so that they don't get included in the library |
| 15625 | # dependencies. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15626 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15627 | ;; |
| 15628 | *) |
| 15629 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15630 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 15631 | case $host in |
| 15632 | osf3*) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15633 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15634 | ;; |
| 15635 | *) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15636 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15637 | ;; |
| 15638 | esac |
| 15639 | |
| 15640 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 15641 | hardcode_libdir_separator_CXX=: |
| 15642 | |
| 15643 | # Commands to make compiler produce verbose output that lists |
| 15644 | # what "hidden" libraries, object files and flags are used when |
| 15645 | # linking a shared library. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15646 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15647 | |
| 15648 | else |
| 15649 | # FIXME: insert proper C++ library support |
| 15650 | ld_shlibs_CXX=no |
| 15651 | fi |
| 15652 | ;; |
| 15653 | esac |
| 15654 | ;; |
| 15655 | |
| 15656 | psos*) |
| 15657 | # FIXME: insert proper C++ library support |
| 15658 | ld_shlibs_CXX=no |
| 15659 | ;; |
| 15660 | |
| 15661 | sunos4*) |
| 15662 | case $cc_basename in |
| 15663 | CC*) |
| 15664 | # Sun C++ 4.x |
| 15665 | # FIXME: insert proper C++ library support |
| 15666 | ld_shlibs_CXX=no |
| 15667 | ;; |
| 15668 | lcc*) |
| 15669 | # Lucid |
| 15670 | # FIXME: insert proper C++ library support |
| 15671 | ld_shlibs_CXX=no |
| 15672 | ;; |
| 15673 | *) |
| 15674 | # FIXME: insert proper C++ library support |
| 15675 | ld_shlibs_CXX=no |
| 15676 | ;; |
| 15677 | esac |
| 15678 | ;; |
| 15679 | |
| 15680 | solaris*) |
| 15681 | case $cc_basename in |
| 15682 | CC*) |
| 15683 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 15684 | archive_cmds_need_lc_CXX=yes |
| 15685 | no_undefined_flag_CXX=' -zdefs' |
| 15686 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 15687 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15688 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15689 | |
| 15690 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 15691 | hardcode_shlibpath_var_CXX=no |
| 15692 | case $host_os in |
| 15693 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15694 | *) |
| 15695 | # The compiler driver will combine and reorder linker options, |
| 15696 | # but understands `-z linker_flag'. |
| 15697 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15698 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 15699 | ;; |
| 15700 | esac |
| 15701 | link_all_deplibs_CXX=yes |
| 15702 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15703 | output_verbose_link_cmd='echo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15704 | |
| 15705 | # Archives containing C++ object files must be created using |
| 15706 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 15707 | # necessary to make sure instantiated templates are included |
| 15708 | # in the archive. |
| 15709 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 15710 | ;; |
| 15711 | gcx*) |
| 15712 | # Green Hills C++ Compiler |
| 15713 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 15714 | |
| 15715 | # The C++ compiler must be used to create the archive. |
| 15716 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 15717 | ;; |
| 15718 | *) |
| 15719 | # GNU C++ compiler with Solaris linker |
| 15720 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 15721 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 15722 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 15723 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 15724 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15725 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15726 | |
| 15727 | # Commands to make compiler produce verbose output that lists |
| 15728 | # what "hidden" libraries, object files and flags are used when |
| 15729 | # linking a shared library. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15730 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15731 | else |
| 15732 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 15733 | # platform. |
| 15734 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 15735 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15736 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 15737 | |
| 15738 | # Commands to make compiler produce verbose output that lists |
| 15739 | # what "hidden" libraries, object files and flags are used when |
| 15740 | # linking a shared library. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 15741 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15742 | fi |
| 15743 | |
| 15744 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 15745 | case $host_os in |
| 15746 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15747 | *) |
| 15748 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 15749 | ;; |
| 15750 | esac |
| 15751 | fi |
| 15752 | ;; |
| 15753 | esac |
| 15754 | ;; |
| 15755 | |
| 15756 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 15757 | no_undefined_flag_CXX='${wl}-z,text' |
| 15758 | archive_cmds_need_lc_CXX=no |
| 15759 | hardcode_shlibpath_var_CXX=no |
| 15760 | runpath_var='LD_RUN_PATH' |
| 15761 | |
| 15762 | case $cc_basename in |
| 15763 | CC*) |
| 15764 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15765 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15766 | ;; |
| 15767 | *) |
| 15768 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15769 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15770 | ;; |
| 15771 | esac |
| 15772 | ;; |
| 15773 | |
| 15774 | sysv5* | sco3.2v5* | sco5v6*) |
| 15775 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15776 | # link with -lc, and that would cause any symbols used from libc to |
| 15777 | # always be unresolved, which means just about no library would |
| 15778 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15779 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15780 | # as -z defs. |
| 15781 | no_undefined_flag_CXX='${wl}-z,text' |
| 15782 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 15783 | archive_cmds_need_lc_CXX=no |
| 15784 | hardcode_shlibpath_var_CXX=no |
| 15785 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 15786 | hardcode_libdir_separator_CXX=':' |
| 15787 | link_all_deplibs_CXX=yes |
| 15788 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 15789 | runpath_var='LD_RUN_PATH' |
| 15790 | |
| 15791 | case $cc_basename in |
| 15792 | CC*) |
| 15793 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15794 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15795 | ;; |
| 15796 | *) |
| 15797 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15798 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15799 | ;; |
| 15800 | esac |
| 15801 | ;; |
| 15802 | |
| 15803 | tandem*) |
| 15804 | case $cc_basename in |
| 15805 | NCC*) |
| 15806 | # NonStop-UX NCC 3.20 |
| 15807 | # FIXME: insert proper C++ library support |
| 15808 | ld_shlibs_CXX=no |
| 15809 | ;; |
| 15810 | *) |
| 15811 | # FIXME: insert proper C++ library support |
| 15812 | ld_shlibs_CXX=no |
| 15813 | ;; |
| 15814 | esac |
| 15815 | ;; |
| 15816 | |
| 15817 | vxworks*) |
| 15818 | # FIXME: insert proper C++ library support |
| 15819 | ld_shlibs_CXX=no |
| 15820 | ;; |
| 15821 | |
| 15822 | *) |
| 15823 | # FIXME: insert proper C++ library support |
| 15824 | ld_shlibs_CXX=no |
| 15825 | ;; |
| 15826 | esac |
| 15827 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15829 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 15830 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 15831 | |
| 15832 | GCC_CXX="$GXX" |
| 15833 | LD_CXX="$LD" |
| 15834 | |
| 15835 | ## CAVEAT EMPTOR: |
| 15836 | ## There is no encapsulation within the following macros, do not change |
| 15837 | ## the running order or otherwise move them around unless you know exactly |
| 15838 | ## what you are doing... |
| 15839 | # Dependencies to place before and after the object being linked: |
| 15840 | predep_objects_CXX= |
| 15841 | postdep_objects_CXX= |
| 15842 | predeps_CXX= |
| 15843 | postdeps_CXX= |
| 15844 | compiler_lib_search_path_CXX= |
| 15845 | |
| 15846 | cat > conftest.$ac_ext <<_LT_EOF |
| 15847 | class Foo |
| 15848 | { |
| 15849 | public: |
| 15850 | Foo (void) { a = 0; } |
| 15851 | private: |
| 15852 | int a; |
| 15853 | }; |
| 15854 | _LT_EOF |
| 15855 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15856 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15857 | (eval $ac_compile) 2>&5 |
| 15858 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15860 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 15861 | # Parse the compiler output and extract the necessary |
| 15862 | # objects, libraries and library flags. |
| 15863 | |
| 15864 | # Sentinel used to keep track of whether or not we are before |
| 15865 | # the conftest object file. |
| 15866 | pre_test_object_deps_done=no |
| 15867 | |
| 15868 | for p in `eval "$output_verbose_link_cmd"`; do |
| 15869 | case $p in |
| 15870 | |
| 15871 | -L* | -R* | -l*) |
| 15872 | # Some compilers place space between "-{L,R}" and the path. |
| 15873 | # Remove the space. |
| 15874 | if test $p = "-L" || |
| 15875 | test $p = "-R"; then |
| 15876 | prev=$p |
| 15877 | continue |
| 15878 | else |
| 15879 | prev= |
| 15880 | fi |
| 15881 | |
| 15882 | if test "$pre_test_object_deps_done" = no; then |
| 15883 | case $p in |
| 15884 | -L* | -R*) |
| 15885 | # Internal compiler library paths should come after those |
| 15886 | # provided the user. The postdeps already come after the |
| 15887 | # user supplied libs so there is no need to process them. |
| 15888 | if test -z "$compiler_lib_search_path_CXX"; then |
| 15889 | compiler_lib_search_path_CXX="${prev}${p}" |
| 15890 | else |
| 15891 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 15892 | fi |
| 15893 | ;; |
| 15894 | # The "-l" case would never come before the object being |
| 15895 | # linked, so don't bother handling this case. |
| 15896 | esac |
| 15897 | else |
| 15898 | if test -z "$postdeps_CXX"; then |
| 15899 | postdeps_CXX="${prev}${p}" |
| 15900 | else |
| 15901 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 15902 | fi |
| 15903 | fi |
| 15904 | ;; |
| 15905 | |
| 15906 | *.$objext) |
| 15907 | # This assumes that the test object file only shows up |
| 15908 | # once in the compiler output. |
| 15909 | if test "$p" = "conftest.$objext"; then |
| 15910 | pre_test_object_deps_done=yes |
| 15911 | continue |
| 15912 | fi |
| 15913 | |
| 15914 | if test "$pre_test_object_deps_done" = no; then |
| 15915 | if test -z "$predep_objects_CXX"; then |
| 15916 | predep_objects_CXX="$p" |
| 15917 | else |
| 15918 | predep_objects_CXX="$predep_objects_CXX $p" |
| 15919 | fi |
| 15920 | else |
| 15921 | if test -z "$postdep_objects_CXX"; then |
| 15922 | postdep_objects_CXX="$p" |
| 15923 | else |
| 15924 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 15925 | fi |
| 15926 | fi |
| 15927 | ;; |
| 15928 | |
| 15929 | *) ;; # Ignore the rest. |
| 15930 | |
| 15931 | esac |
| 15932 | done |
| 15933 | |
| 15934 | # Clean up. |
| 15935 | rm -f a.out a.exe |
| 15936 | else |
| 15937 | echo "libtool.m4: error: problem compiling CXX test program" |
| 15938 | fi |
| 15939 | |
| 15940 | $RM -f confest.$objext |
| 15941 | |
| 15942 | # PORTME: override above test on systems where it is broken |
| 15943 | case $host_os in |
| 15944 | interix[3-9]*) |
| 15945 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 15946 | # hack all around it, let's just trust "g++" to DTRT. |
| 15947 | predep_objects_CXX= |
| 15948 | postdep_objects_CXX= |
| 15949 | postdeps_CXX= |
| 15950 | ;; |
| 15951 | |
| 15952 | linux*) |
| 15953 | case `$CC -V 2>&1 | sed 5q` in |
| 15954 | *Sun\ C*) |
| 15955 | # Sun C++ 5.9 |
| 15956 | |
| 15957 | # The more standards-conforming stlport4 library is |
| 15958 | # incompatible with the Cstd library. Avoid specifying |
| 15959 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 15960 | # -library=stlport4 depends on it. |
| 15961 | case " $CXX $CXXFLAGS " in |
| 15962 | *" -library=stlport4 "*) |
| 15963 | solaris_use_stlport4=yes |
| 15964 | ;; |
| 15965 | esac |
| 15966 | |
| 15967 | if test "$solaris_use_stlport4" != yes; then |
| 15968 | postdeps_CXX='-library=Cstd -library=Crun' |
| 15969 | fi |
| 15970 | ;; |
| 15971 | esac |
| 15972 | ;; |
| 15973 | |
| 15974 | solaris*) |
| 15975 | case $cc_basename in |
| 15976 | CC*) |
| 15977 | # The more standards-conforming stlport4 library is |
| 15978 | # incompatible with the Cstd library. Avoid specifying |
| 15979 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 15980 | # -library=stlport4 depends on it. |
| 15981 | case " $CXX $CXXFLAGS " in |
| 15982 | *" -library=stlport4 "*) |
| 15983 | solaris_use_stlport4=yes |
| 15984 | ;; |
| 15985 | esac |
| 15986 | |
| 15987 | # Adding this requires a known-good setup of shared libraries for |
| 15988 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 15989 | # archive will be linked into the output, leading to subtle bugs. |
| 15990 | if test "$solaris_use_stlport4" != yes; then |
| 15991 | postdeps_CXX='-library=Cstd -library=Crun' |
| 15992 | fi |
| 15993 | ;; |
| 15994 | esac |
| 15995 | ;; |
| 15996 | esac |
| 15997 | |
| 15998 | |
| 15999 | case " $postdeps_CXX " in |
| 16000 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 16001 | esac |
| 16002 | compiler_lib_search_dirs_CXX= |
| 16003 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 16004 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 16005 | fi |
| 16006 | |
| 16007 | |
| 16008 | |
| 16009 | |
| 16010 | |
| 16011 | |
| 16012 | |
| 16013 | |
| 16014 | |
| 16015 | |
| 16016 | |
| 16017 | |
| 16018 | |
| 16019 | |
| 16020 | |
| 16021 | |
| 16022 | |
| 16023 | |
| 16024 | |
| 16025 | |
| 16026 | |
| 16027 | |
| 16028 | |
| 16029 | |
| 16030 | |
| 16031 | |
| 16032 | |
| 16033 | |
| 16034 | |
| 16035 | |
| 16036 | |
| 16037 | lt_prog_compiler_wl_CXX= |
| 16038 | lt_prog_compiler_pic_CXX= |
| 16039 | lt_prog_compiler_static_CXX= |
| 16040 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16042 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 16043 | |
| 16044 | # C++ specific cases for pic, static, wl, etc. |
| 16045 | if test "$GXX" = yes; then |
| 16046 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16047 | lt_prog_compiler_static_CXX='-static' |
| 16048 | |
| 16049 | case $host_os in |
| 16050 | aix*) |
| 16051 | # All AIX code is PIC. |
| 16052 | if test "$host_cpu" = ia64; then |
| 16053 | # AIX 5 now supports IA64 processor |
| 16054 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16055 | fi |
| 16056 | ;; |
| 16057 | |
| 16058 | amigaos*) |
| 16059 | case $host_cpu in |
| 16060 | powerpc) |
| 16061 | # see comment about AmigaOS4 .so support |
| 16062 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16063 | ;; |
| 16064 | m68k) |
| 16065 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 16066 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 16067 | # like `-m68040'. |
| 16068 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 16069 | ;; |
| 16070 | esac |
| 16071 | ;; |
| 16072 | |
| 16073 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 16074 | # PIC is the default for these OSes. |
| 16075 | ;; |
| 16076 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 16077 | # This hack is so that the source file can tell whether it is being |
| 16078 | # built for inclusion in a dll (and should export symbols for example). |
| 16079 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 16080 | # (--disable-auto-import) libraries |
| 16081 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 16082 | ;; |
| 16083 | darwin* | rhapsody*) |
| 16084 | # PIC is the default on this platform |
| 16085 | # Common symbols not allowed in MH_DYLIB files |
| 16086 | lt_prog_compiler_pic_CXX='-fno-common' |
| 16087 | ;; |
| 16088 | *djgpp*) |
| 16089 | # DJGPP does not support shared libraries at all |
| 16090 | lt_prog_compiler_pic_CXX= |
| 16091 | ;; |
| 16092 | interix[3-9]*) |
| 16093 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 16094 | # Instead, we relocate shared libraries at runtime. |
| 16095 | ;; |
| 16096 | sysv4*MP*) |
| 16097 | if test -d /usr/nec; then |
| 16098 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 16099 | fi |
| 16100 | ;; |
| 16101 | hpux*) |
| 16102 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 16103 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 16104 | # sets the default TLS model and affects inlining. |
| 16105 | case $host_cpu in |
| 16106 | hppa*64*) |
| 16107 | ;; |
| 16108 | *) |
| 16109 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16110 | ;; |
| 16111 | esac |
| 16112 | ;; |
| 16113 | *qnx* | *nto*) |
| 16114 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16115 | # it will coredump. |
| 16116 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16117 | ;; |
| 16118 | *) |
| 16119 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16120 | ;; |
| 16121 | esac |
| 16122 | else |
| 16123 | case $host_os in |
| 16124 | aix[4-9]*) |
| 16125 | # All AIX code is PIC. |
| 16126 | if test "$host_cpu" = ia64; then |
| 16127 | # AIX 5 now supports IA64 processor |
| 16128 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16129 | else |
| 16130 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 16131 | fi |
| 16132 | ;; |
| 16133 | chorus*) |
| 16134 | case $cc_basename in |
| 16135 | cxch68*) |
| 16136 | # Green Hills C++ Compiler |
| 16137 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 16138 | ;; |
| 16139 | esac |
| 16140 | ;; |
| 16141 | dgux*) |
| 16142 | case $cc_basename in |
| 16143 | ec++*) |
| 16144 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16145 | ;; |
| 16146 | ghcx*) |
| 16147 | # Green Hills C++ Compiler |
| 16148 | lt_prog_compiler_pic_CXX='-pic' |
| 16149 | ;; |
| 16150 | *) |
| 16151 | ;; |
| 16152 | esac |
| 16153 | ;; |
| 16154 | freebsd* | dragonfly*) |
| 16155 | # FreeBSD uses GNU C++ |
| 16156 | ;; |
| 16157 | hpux9* | hpux10* | hpux11*) |
| 16158 | case $cc_basename in |
| 16159 | CC*) |
| 16160 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16161 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 16162 | if test "$host_cpu" != ia64; then |
| 16163 | lt_prog_compiler_pic_CXX='+Z' |
| 16164 | fi |
| 16165 | ;; |
| 16166 | aCC*) |
| 16167 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16168 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 16169 | case $host_cpu in |
| 16170 | hppa*64*|ia64*) |
| 16171 | # +Z the default |
| 16172 | ;; |
| 16173 | *) |
| 16174 | lt_prog_compiler_pic_CXX='+Z' |
| 16175 | ;; |
| 16176 | esac |
| 16177 | ;; |
| 16178 | *) |
| 16179 | ;; |
| 16180 | esac |
| 16181 | ;; |
| 16182 | interix*) |
| 16183 | # This is c89, which is MS Visual C++ (no shared libs) |
| 16184 | # Anyone wants to do a port? |
| 16185 | ;; |
| 16186 | irix5* | irix6* | nonstopux*) |
| 16187 | case $cc_basename in |
| 16188 | CC*) |
| 16189 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16190 | lt_prog_compiler_static_CXX='-non_shared' |
| 16191 | # CC pic flag -KPIC is the default. |
| 16192 | ;; |
| 16193 | *) |
| 16194 | ;; |
| 16195 | esac |
| 16196 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16197 | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16198 | case $cc_basename in |
| 16199 | KCC*) |
| 16200 | # KAI C++ Compiler |
| 16201 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16202 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16203 | ;; |
| 16204 | ecpc* ) |
| 16205 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 16206 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16207 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16208 | lt_prog_compiler_static_CXX='-static' |
| 16209 | ;; |
| 16210 | icpc* ) |
| 16211 | # Intel C++, used to be incompatible with GCC. |
| 16212 | # ICC 10 doesn't accept -KPIC any more. |
| 16213 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16214 | lt_prog_compiler_pic_CXX='-fPIC' |
| 16215 | lt_prog_compiler_static_CXX='-static' |
| 16216 | ;; |
| 16217 | pgCC* | pgcpp*) |
| 16218 | # Portland Group C++ compiler |
| 16219 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16220 | lt_prog_compiler_pic_CXX='-fpic' |
| 16221 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16222 | ;; |
| 16223 | cxx*) |
| 16224 | # Compaq C++ |
| 16225 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16226 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16227 | lt_prog_compiler_pic_CXX= |
| 16228 | lt_prog_compiler_static_CXX='-non_shared' |
| 16229 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16230 | xlc* | xlC*) |
| 16231 | # IBM XL 8.0 on PPC |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16232 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16233 | lt_prog_compiler_pic_CXX='-qpic' |
| 16234 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 16235 | ;; |
| 16236 | *) |
| 16237 | case `$CC -V 2>&1 | sed 5q` in |
| 16238 | *Sun\ C*) |
| 16239 | # Sun C++ 5.9 |
| 16240 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16241 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16242 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16243 | ;; |
| 16244 | esac |
| 16245 | ;; |
| 16246 | esac |
| 16247 | ;; |
| 16248 | lynxos*) |
| 16249 | ;; |
| 16250 | m88k*) |
| 16251 | ;; |
| 16252 | mvs*) |
| 16253 | case $cc_basename in |
| 16254 | cxx*) |
| 16255 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 16256 | ;; |
| 16257 | *) |
| 16258 | ;; |
| 16259 | esac |
| 16260 | ;; |
| 16261 | netbsd*) |
| 16262 | ;; |
| 16263 | *qnx* | *nto*) |
| 16264 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 16265 | # it will coredump. |
| 16266 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 16267 | ;; |
| 16268 | osf3* | osf4* | osf5*) |
| 16269 | case $cc_basename in |
| 16270 | KCC*) |
| 16271 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 16272 | ;; |
| 16273 | RCC*) |
| 16274 | # Rational C++ 2.4.1 |
| 16275 | lt_prog_compiler_pic_CXX='-pic' |
| 16276 | ;; |
| 16277 | cxx*) |
| 16278 | # Digital/Compaq C++ |
| 16279 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16280 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 16281 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 16282 | lt_prog_compiler_pic_CXX= |
| 16283 | lt_prog_compiler_static_CXX='-non_shared' |
| 16284 | ;; |
| 16285 | *) |
| 16286 | ;; |
| 16287 | esac |
| 16288 | ;; |
| 16289 | psos*) |
| 16290 | ;; |
| 16291 | solaris*) |
| 16292 | case $cc_basename in |
| 16293 | CC*) |
| 16294 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 16295 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16296 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16297 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 16298 | ;; |
| 16299 | gcx*) |
| 16300 | # Green Hills C++ Compiler |
| 16301 | lt_prog_compiler_pic_CXX='-PIC' |
| 16302 | ;; |
| 16303 | *) |
| 16304 | ;; |
| 16305 | esac |
| 16306 | ;; |
| 16307 | sunos4*) |
| 16308 | case $cc_basename in |
| 16309 | CC*) |
| 16310 | # Sun C++ 4.x |
| 16311 | lt_prog_compiler_pic_CXX='-pic' |
| 16312 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16313 | ;; |
| 16314 | lcc*) |
| 16315 | # Lucid |
| 16316 | lt_prog_compiler_pic_CXX='-pic' |
| 16317 | ;; |
| 16318 | *) |
| 16319 | ;; |
| 16320 | esac |
| 16321 | ;; |
| 16322 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 16323 | case $cc_basename in |
| 16324 | CC*) |
| 16325 | lt_prog_compiler_wl_CXX='-Wl,' |
| 16326 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16327 | lt_prog_compiler_static_CXX='-Bstatic' |
| 16328 | ;; |
| 16329 | esac |
| 16330 | ;; |
| 16331 | tandem*) |
| 16332 | case $cc_basename in |
| 16333 | NCC*) |
| 16334 | # NonStop-UX NCC 3.20 |
| 16335 | lt_prog_compiler_pic_CXX='-KPIC' |
| 16336 | ;; |
| 16337 | *) |
| 16338 | ;; |
| 16339 | esac |
| 16340 | ;; |
| 16341 | vxworks*) |
| 16342 | ;; |
| 16343 | *) |
| 16344 | lt_prog_compiler_can_build_shared_CXX=no |
| 16345 | ;; |
| 16346 | esac |
| 16347 | fi |
| 16348 | |
| 16349 | case $host_os in |
| 16350 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 16351 | *djgpp*) |
| 16352 | lt_prog_compiler_pic_CXX= |
| 16353 | ;; |
| 16354 | *) |
| 16355 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 16356 | ;; |
| 16357 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16359 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 16360 | |
| 16361 | |
| 16362 | |
| 16363 | # |
| 16364 | # Check to make sure the PIC flag actually works. |
| 16365 | # |
| 16366 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16368 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16369 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16370 | $as_echo_n "(cached) " >&6 |
| 16371 | else |
| 16372 | lt_cv_prog_compiler_pic_works_CXX=no |
| 16373 | ac_outfile=conftest.$ac_objext |
| 16374 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16375 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 16376 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16377 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16378 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16379 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16380 | # The option is referenced via a variable to avoid confusing sed. |
| 16381 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16382 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16383 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16384 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 16385 | (eval echo "\"\$as_me:16385: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16386 | (eval "$lt_compile" 2>conftest.err) |
| 16387 | ac_status=$? |
| 16388 | cat conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 16389 | echo "$as_me:16389: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16390 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 16391 | # The compiler can only warn and ignore the option if not recognized |
| 16392 | # So say no if there are warnings other than the usual output. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16393 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16394 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16395 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 16396 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 16397 | fi |
| 16398 | fi |
| 16399 | $RM conftest* |
| 16400 | |
| 16401 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16403 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 16404 | |
| 16405 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 16406 | case $lt_prog_compiler_pic_CXX in |
| 16407 | "" | " "*) ;; |
| 16408 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 16409 | esac |
| 16410 | else |
| 16411 | lt_prog_compiler_pic_CXX= |
| 16412 | lt_prog_compiler_can_build_shared_CXX=no |
| 16413 | fi |
| 16414 | |
| 16415 | fi |
| 16416 | |
| 16417 | |
| 16418 | |
| 16419 | # |
| 16420 | # Check to make sure the static flag actually works. |
| 16421 | # |
| 16422 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16424 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16425 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16426 | $as_echo_n "(cached) " >&6 |
| 16427 | else |
| 16428 | lt_cv_prog_compiler_static_works_CXX=no |
| 16429 | save_LDFLAGS="$LDFLAGS" |
| 16430 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 16431 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16432 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16433 | # The linker can only warn and ignore the option if not recognized |
| 16434 | # So say no if there are warnings |
| 16435 | if test -s conftest.err; then |
| 16436 | # Append any errors to the config.log. |
| 16437 | cat conftest.err 1>&5 |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16438 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16439 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16440 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 16441 | lt_cv_prog_compiler_static_works_CXX=yes |
| 16442 | fi |
| 16443 | else |
| 16444 | lt_cv_prog_compiler_static_works_CXX=yes |
| 16445 | fi |
| 16446 | fi |
| 16447 | $RM -r conftest* |
| 16448 | LDFLAGS="$save_LDFLAGS" |
| 16449 | |
| 16450 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16452 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 16453 | |
| 16454 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 16455 | : |
| 16456 | else |
| 16457 | lt_prog_compiler_static_CXX= |
| 16458 | fi |
| 16459 | |
| 16460 | |
| 16461 | |
| 16462 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16464 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16465 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16466 | $as_echo_n "(cached) " >&6 |
| 16467 | else |
| 16468 | lt_cv_prog_compiler_c_o_CXX=no |
| 16469 | $RM -r conftest 2>/dev/null |
| 16470 | mkdir conftest |
| 16471 | cd conftest |
| 16472 | mkdir out |
| 16473 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16474 | |
| 16475 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16476 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16477 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16478 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16479 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16480 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16481 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16482 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16483 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 16484 | (eval echo "\"\$as_me:16484: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16485 | (eval "$lt_compile" 2>out/conftest.err) |
| 16486 | ac_status=$? |
| 16487 | cat out/conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 16488 | echo "$as_me:16488: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16489 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16490 | then |
| 16491 | # The compiler can only warn and ignore the option if not recognized |
| 16492 | # So say no if there are warnings |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16493 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16494 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16495 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16496 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16497 | fi |
| 16498 | fi |
| 16499 | chmod u+w . 2>&5 |
| 16500 | $RM conftest* |
| 16501 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16502 | # template instantiation |
| 16503 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16504 | $RM out/* && rmdir out |
| 16505 | cd .. |
| 16506 | $RM -r conftest |
| 16507 | $RM conftest* |
| 16508 | |
| 16509 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16511 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16512 | |
| 16513 | |
| 16514 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16516 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16517 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16518 | $as_echo_n "(cached) " >&6 |
| 16519 | else |
| 16520 | lt_cv_prog_compiler_c_o_CXX=no |
| 16521 | $RM -r conftest 2>/dev/null |
| 16522 | mkdir conftest |
| 16523 | cd conftest |
| 16524 | mkdir out |
| 16525 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16526 | |
| 16527 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 16528 | # Insert the option either (1) after the last *FLAGS variable, or |
| 16529 | # (2) before a word containing "conftest.", or (3) at the end. |
| 16530 | # Note that $ac_compile itself does not contain backslashes and begins |
| 16531 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 16532 | lt_compile=`echo "$ac_compile" | $SED \ |
| 16533 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 16534 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 16535 | -e 's:$: $lt_compiler_flag:'` |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 16536 | (eval echo "\"\$as_me:16536: $lt_compile\"" >&5) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16537 | (eval "$lt_compile" 2>out/conftest.err) |
| 16538 | ac_status=$? |
| 16539 | cat out/conftest.err >&5 |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 16540 | echo "$as_me:16540: \$? = $ac_status" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16541 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 16542 | then |
| 16543 | # The compiler can only warn and ignore the option if not recognized |
| 16544 | # So say no if there are warnings |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16545 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16546 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 16547 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 16548 | lt_cv_prog_compiler_c_o_CXX=yes |
| 16549 | fi |
| 16550 | fi |
| 16551 | chmod u+w . 2>&5 |
| 16552 | $RM conftest* |
| 16553 | # SGI C++ compiler will create directory out/ii_files/ for |
| 16554 | # template instantiation |
| 16555 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 16556 | $RM out/* && rmdir out |
| 16557 | cd .. |
| 16558 | $RM -r conftest |
| 16559 | $RM conftest* |
| 16560 | |
| 16561 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16563 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 16564 | |
| 16565 | |
| 16566 | |
| 16567 | |
| 16568 | hard_links="nottested" |
| 16569 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 16570 | # do not overwrite the value of need_locks provided by the user |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16572 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 16573 | hard_links=yes |
| 16574 | $RM conftest* |
| 16575 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 16576 | touch conftest.a |
| 16577 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 16578 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16580 | $as_echo "$hard_links" >&6; } |
| 16581 | if test "$hard_links" = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16583 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 16584 | need_locks=warn |
| 16585 | fi |
| 16586 | else |
| 16587 | need_locks=no |
| 16588 | fi |
| 16589 | |
| 16590 | |
| 16591 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16593 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 16594 | |
| 16595 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16596 | case $host_os in |
| 16597 | aix[4-9]*) |
| 16598 | # If we're using GNU nm, then we don't want the "-C" option. |
| 16599 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 16600 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16601 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16602 | else |
| 16603 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 16604 | fi |
| 16605 | ;; |
| 16606 | pw32*) |
| 16607 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 16608 | ;; |
| 16609 | cygwin* | mingw* | cegcc*) |
| 16610 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 16611 | ;; |
| 16612 | *) |
| 16613 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 16614 | ;; |
| 16615 | esac |
| 16616 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 16617 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16619 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 16620 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 16621 | |
| 16622 | with_gnu_ld_CXX=$with_gnu_ld |
| 16623 | |
| 16624 | |
| 16625 | |
| 16626 | |
| 16627 | |
| 16628 | |
| 16629 | # |
| 16630 | # Do we need to explicitly link libc? |
| 16631 | # |
| 16632 | case "x$archive_cmds_need_lc_CXX" in |
| 16633 | x|xyes) |
| 16634 | # Assume -lc should be added |
| 16635 | archive_cmds_need_lc_CXX=yes |
| 16636 | |
| 16637 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 16638 | case $archive_cmds_CXX in |
| 16639 | *'~'*) |
| 16640 | # FIXME: we may have to deal with multi-command sequences. |
| 16641 | ;; |
| 16642 | '$CC '*) |
| 16643 | # Test whether the compiler implicitly links with -lc since on some |
| 16644 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16645 | # to ld, don't add -lc before -lgcc. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16647 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16648 | $RM conftest* |
| 16649 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16650 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16651 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16652 | (eval $ac_compile) 2>&5 |
| 16653 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16655 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16656 | soname=conftest |
| 16657 | lib=conftest |
| 16658 | libobjs=conftest.$ac_objext |
| 16659 | deplibs= |
| 16660 | wl=$lt_prog_compiler_wl_CXX |
| 16661 | pic_flag=$lt_prog_compiler_pic_CXX |
| 16662 | compiler_flags=-v |
| 16663 | linker_flags=-v |
| 16664 | verstring= |
| 16665 | output_objdir=. |
| 16666 | libname=conftest |
| 16667 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 16668 | allow_undefined_flag_CXX= |
| 16669 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16670 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16671 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16673 | test $ac_status = 0; } |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16674 | then |
| 16675 | archive_cmds_need_lc_CXX=no |
| 16676 | else |
| 16677 | archive_cmds_need_lc_CXX=yes |
| 16678 | fi |
| 16679 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 16680 | else |
| 16681 | cat conftest.err 1>&5 |
| 16682 | fi |
| 16683 | $RM conftest* |
| 16684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| 16685 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16686 | ;; |
| 16687 | esac |
| 16688 | fi |
| 16689 | ;; |
| 16690 | esac |
| 16691 | |
| 16692 | |
| 16693 | |
| 16694 | |
| 16695 | |
| 16696 | |
| 16697 | |
| 16698 | |
| 16699 | |
| 16700 | |
| 16701 | |
| 16702 | |
| 16703 | |
| 16704 | |
| 16705 | |
| 16706 | |
| 16707 | |
| 16708 | |
| 16709 | |
| 16710 | |
| 16711 | |
| 16712 | |
| 16713 | |
| 16714 | |
| 16715 | |
| 16716 | |
| 16717 | |
| 16718 | |
| 16719 | |
| 16720 | |
| 16721 | |
| 16722 | |
| 16723 | |
| 16724 | |
| 16725 | |
| 16726 | |
| 16727 | |
| 16728 | |
| 16729 | |
| 16730 | |
| 16731 | |
| 16732 | |
| 16733 | |
| 16734 | |
| 16735 | |
| 16736 | |
| 16737 | |
| 16738 | |
| 16739 | |
| 16740 | |
| 16741 | |
| 16742 | |
| 16743 | |
| 16744 | |
| 16745 | |
| 16746 | |
| 16747 | |
| 16748 | |
| 16749 | |
| 16750 | |
| 16751 | |
| 16752 | |
| 16753 | |
| 16754 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 16755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16756 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 16757 | |
| 16758 | library_names_spec= |
| 16759 | libname_spec='lib$name' |
| 16760 | soname_spec= |
| 16761 | shrext_cmds=".so" |
| 16762 | postinstall_cmds= |
| 16763 | postuninstall_cmds= |
| 16764 | finish_cmds= |
| 16765 | finish_eval= |
| 16766 | shlibpath_var= |
| 16767 | shlibpath_overrides_runpath=unknown |
| 16768 | version_type=none |
| 16769 | dynamic_linker="$host_os ld.so" |
| 16770 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16771 | need_lib_prefix=unknown |
| 16772 | hardcode_into_libs=no |
| 16773 | |
| 16774 | # when you set need_version to no, make sure it does not cause -set_version |
| 16775 | # flags to be left without arguments |
| 16776 | need_version=unknown |
| 16777 | |
| 16778 | case $host_os in |
| 16779 | aix3*) |
| 16780 | version_type=linux |
| 16781 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16782 | shlibpath_var=LIBPATH |
| 16783 | |
| 16784 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16785 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16786 | ;; |
| 16787 | |
| 16788 | aix[4-9]*) |
| 16789 | version_type=linux |
| 16790 | need_lib_prefix=no |
| 16791 | need_version=no |
| 16792 | hardcode_into_libs=yes |
| 16793 | if test "$host_cpu" = ia64; then |
| 16794 | # AIX 5 supports IA64 |
| 16795 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16796 | shlibpath_var=LD_LIBRARY_PATH |
| 16797 | else |
| 16798 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16799 | # for dependence libraries. The import file would start with |
| 16800 | # the line `#! .'. This would cause the generated library to |
| 16801 | # depend on `.', always an invalid library. This was fixed in |
| 16802 | # development snapshots of GCC prior to 3.0. |
| 16803 | case $host_os in |
| 16804 | aix4 | aix4.[01] | aix4.[01].*) |
| 16805 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16806 | echo ' yes ' |
| 16807 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 16808 | : |
| 16809 | else |
| 16810 | can_build_shared=no |
| 16811 | fi |
| 16812 | ;; |
| 16813 | esac |
| 16814 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16815 | # soname into executable. Probably we can add versioning support to |
| 16816 | # collect2, so additional links can be useful in future. |
| 16817 | if test "$aix_use_runtimelinking" = yes; then |
| 16818 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16819 | # instead of lib<name>.a to let people know that these are not |
| 16820 | # typical AIX shared libraries. |
| 16821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16822 | else |
| 16823 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16824 | # and later when we are not doing run time linking. |
| 16825 | library_names_spec='${libname}${release}.a $libname.a' |
| 16826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16827 | fi |
| 16828 | shlibpath_var=LIBPATH |
| 16829 | fi |
| 16830 | ;; |
| 16831 | |
| 16832 | amigaos*) |
| 16833 | case $host_cpu in |
| 16834 | powerpc) |
| 16835 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 16836 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 16837 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16838 | ;; |
| 16839 | m68k) |
| 16840 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16841 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16842 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16843 | ;; |
| 16844 | esac |
| 16845 | ;; |
| 16846 | |
| 16847 | beos*) |
| 16848 | library_names_spec='${libname}${shared_ext}' |
| 16849 | dynamic_linker="$host_os ld.so" |
| 16850 | shlibpath_var=LIBRARY_PATH |
| 16851 | ;; |
| 16852 | |
| 16853 | bsdi[45]*) |
| 16854 | version_type=linux |
| 16855 | need_version=no |
| 16856 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16857 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16858 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16859 | shlibpath_var=LD_LIBRARY_PATH |
| 16860 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16861 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16862 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16863 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16864 | # libtool to hard-code these into programs |
| 16865 | ;; |
| 16866 | |
| 16867 | cygwin* | mingw* | pw32* | cegcc*) |
| 16868 | version_type=windows |
| 16869 | shrext_cmds=".dll" |
| 16870 | need_version=no |
| 16871 | need_lib_prefix=no |
| 16872 | |
| 16873 | case $GCC,$host_os in |
| 16874 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
| 16875 | library_names_spec='$libname.dll.a' |
| 16876 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16877 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16878 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 16879 | dldir=$destdir/`dirname \$dlpath`~ |
| 16880 | test -d \$dldir || mkdir -p \$dldir~ |
| 16881 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16882 | chmod a+x \$dldir/$dlname~ |
| 16883 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16884 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 16885 | fi' |
| 16886 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16887 | dlpath=$dir/\$dldll~ |
| 16888 | $RM \$dlpath' |
| 16889 | shlibpath_overrides_runpath=yes |
| 16890 | |
| 16891 | case $host_os in |
| 16892 | cygwin*) |
| 16893 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16894 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16895 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16896 | ;; |
| 16897 | mingw* | cegcc*) |
| 16898 | # MinGW DLLs use traditional 'lib' prefix |
| 16899 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 16900 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 16901 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 16902 | # It is most probably a Windows format PATH printed by |
| 16903 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 16904 | # path with ; separators, and with drive letters. We can handle the |
| 16905 | # drive letters (cygwin fileutils understands them), so leave them, |
| 16906 | # especially as we might pass files found there to a mingw objdump, |
| 16907 | # which wouldn't understand a cygwinified path. Ahh. |
| 16908 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16909 | else |
| 16910 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16911 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16912 | ;; |
| 16913 | pw32*) |
| 16914 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16915 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16916 | ;; |
| 16917 | esac |
| 16918 | ;; |
| 16919 | |
| 16920 | *) |
| 16921 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 16922 | ;; |
| 16923 | esac |
| 16924 | dynamic_linker='Win32 ld.exe' |
| 16925 | # FIXME: first we should search . and the directory the executable is in |
| 16926 | shlibpath_var=PATH |
| 16927 | ;; |
| 16928 | |
| 16929 | darwin* | rhapsody*) |
| 16930 | dynamic_linker="$host_os dyld" |
| 16931 | version_type=darwin |
| 16932 | need_lib_prefix=no |
| 16933 | need_version=no |
| 16934 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16935 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16936 | shlibpath_overrides_runpath=yes |
| 16937 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16938 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16939 | |
| 16940 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16941 | ;; |
| 16942 | |
| 16943 | dgux*) |
| 16944 | version_type=linux |
| 16945 | need_lib_prefix=no |
| 16946 | need_version=no |
| 16947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16948 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16949 | shlibpath_var=LD_LIBRARY_PATH |
| 16950 | ;; |
| 16951 | |
| 16952 | freebsd1*) |
| 16953 | dynamic_linker=no |
| 16954 | ;; |
| 16955 | |
| 16956 | freebsd* | dragonfly*) |
| 16957 | # DragonFly does not have aout. When/if they implement a new |
| 16958 | # versioning mechanism, adjust this. |
| 16959 | if test -x /usr/bin/objformat; then |
| 16960 | objformat=`/usr/bin/objformat` |
| 16961 | else |
| 16962 | case $host_os in |
| 16963 | freebsd[123]*) objformat=aout ;; |
| 16964 | *) objformat=elf ;; |
| 16965 | esac |
| 16966 | fi |
| 16967 | version_type=freebsd-$objformat |
| 16968 | case $version_type in |
| 16969 | freebsd-elf*) |
| 16970 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16971 | need_version=no |
| 16972 | need_lib_prefix=no |
| 16973 | ;; |
| 16974 | freebsd-*) |
| 16975 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16976 | need_version=yes |
| 16977 | ;; |
| 16978 | esac |
| 16979 | shlibpath_var=LD_LIBRARY_PATH |
| 16980 | case $host_os in |
| 16981 | freebsd2*) |
| 16982 | shlibpath_overrides_runpath=yes |
| 16983 | ;; |
| 16984 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 16985 | shlibpath_overrides_runpath=yes |
| 16986 | hardcode_into_libs=yes |
| 16987 | ;; |
| 16988 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16989 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 16990 | shlibpath_overrides_runpath=no |
| 16991 | hardcode_into_libs=yes |
| 16992 | ;; |
| 16993 | *) # from 4.6 on, and DragonFly |
| 16994 | shlibpath_overrides_runpath=yes |
| 16995 | hardcode_into_libs=yes |
| 16996 | ;; |
| 16997 | esac |
| 16998 | ;; |
| 16999 | |
| 17000 | gnu*) |
| 17001 | version_type=linux |
| 17002 | need_lib_prefix=no |
| 17003 | need_version=no |
| 17004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 17005 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17006 | shlibpath_var=LD_LIBRARY_PATH |
| 17007 | hardcode_into_libs=yes |
| 17008 | ;; |
| 17009 | |
| 17010 | hpux9* | hpux10* | hpux11*) |
| 17011 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 17012 | # link against other versions. |
| 17013 | version_type=sunos |
| 17014 | need_lib_prefix=no |
| 17015 | need_version=no |
| 17016 | case $host_cpu in |
| 17017 | ia64*) |
| 17018 | shrext_cmds='.so' |
| 17019 | hardcode_into_libs=yes |
| 17020 | dynamic_linker="$host_os dld.so" |
| 17021 | shlibpath_var=LD_LIBRARY_PATH |
| 17022 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17024 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17025 | if test "X$HPUX_IA64_MODE" = X32; then |
| 17026 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17027 | else |
| 17028 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17029 | fi |
| 17030 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17031 | ;; |
| 17032 | hppa*64*) |
| 17033 | shrext_cmds='.sl' |
| 17034 | hardcode_into_libs=yes |
| 17035 | dynamic_linker="$host_os dld.sl" |
| 17036 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17037 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17040 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17041 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17042 | ;; |
| 17043 | *) |
| 17044 | shrext_cmds='.sl' |
| 17045 | dynamic_linker="$host_os dld.sl" |
| 17046 | shlibpath_var=SHLIB_PATH |
| 17047 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17050 | ;; |
| 17051 | esac |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17052 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17053 | postinstall_cmds='chmod 555 $lib' |
| 17054 | ;; |
| 17055 | |
| 17056 | interix[3-9]*) |
| 17057 | version_type=linux |
| 17058 | need_lib_prefix=no |
| 17059 | need_version=no |
| 17060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17061 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17062 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17063 | shlibpath_var=LD_LIBRARY_PATH |
| 17064 | shlibpath_overrides_runpath=no |
| 17065 | hardcode_into_libs=yes |
| 17066 | ;; |
| 17067 | |
| 17068 | irix5* | irix6* | nonstopux*) |
| 17069 | case $host_os in |
| 17070 | nonstopux*) version_type=nonstopux ;; |
| 17071 | *) |
| 17072 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 17073 | version_type=linux |
| 17074 | else |
| 17075 | version_type=irix |
| 17076 | fi ;; |
| 17077 | esac |
| 17078 | need_lib_prefix=no |
| 17079 | need_version=no |
| 17080 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17081 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17082 | case $host_os in |
| 17083 | irix5* | nonstopux*) |
| 17084 | libsuff= shlibsuff= |
| 17085 | ;; |
| 17086 | *) |
| 17087 | case $LD in # libtool.m4 will add one of these switches to LD |
| 17088 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17089 | libsuff= shlibsuff= libmagic=32-bit;; |
| 17090 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17091 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17092 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17093 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17094 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 17095 | esac |
| 17096 | ;; |
| 17097 | esac |
| 17098 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17099 | shlibpath_overrides_runpath=no |
| 17100 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 17101 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 17102 | hardcode_into_libs=yes |
| 17103 | ;; |
| 17104 | |
| 17105 | # No shared lib support for Linux oldld, aout, or coff. |
| 17106 | linux*oldld* | linux*aout* | linux*coff*) |
| 17107 | dynamic_linker=no |
| 17108 | ;; |
| 17109 | |
| 17110 | # This must be Linux ELF. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17111 | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17112 | version_type=linux |
| 17113 | need_lib_prefix=no |
| 17114 | need_version=no |
| 17115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17116 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17117 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17118 | shlibpath_var=LD_LIBRARY_PATH |
| 17119 | shlibpath_overrides_runpath=no |
| 17120 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17121 | save_LDFLAGS=$LDFLAGS |
| 17122 | save_libdir=$libdir |
| 17123 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 17124 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 17125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17126 | /* end confdefs.h. */ |
| 17127 | |
| 17128 | int |
| 17129 | main () |
| 17130 | { |
| 17131 | |
| 17132 | ; |
| 17133 | return 0; |
| 17134 | } |
| 17135 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17136 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 17137 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17138 | shlibpath_overrides_runpath=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17139 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17140 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17141 | rm -f core conftest.err conftest.$ac_objext \ |
| 17142 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17143 | LDFLAGS=$save_LDFLAGS |
| 17144 | libdir=$save_libdir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17145 | |
| 17146 | # This implies no fast_install, which is unacceptable. |
| 17147 | # Some rework will be needed to allow for fast_install |
| 17148 | # before this can be enabled. |
| 17149 | hardcode_into_libs=yes |
| 17150 | |
| cristy | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 17151 | # Add ABI-specific directories to the system library path. |
| 17152 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 17153 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17154 | # Append ld.so.conf contents to the search path |
| 17155 | if test -f /etc/ld.so.conf; then |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17156 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| cristy | 679ed8e | 2009-12-05 02:37:41 +0000 | [diff] [blame] | 17157 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17158 | fi |
| 17159 | |
| 17160 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17161 | # powerpc, because MkLinux only supported shared libraries with the |
| 17162 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 17163 | # most powerpc-linux boxes support dynamic linking these days and |
| 17164 | # people can always --disable-shared, the test was removed, and we |
| 17165 | # assume the GNU/Linux dynamic linker is in use. |
| 17166 | dynamic_linker='GNU/Linux ld.so' |
| 17167 | ;; |
| 17168 | |
| 17169 | netbsd*) |
| 17170 | version_type=sunos |
| 17171 | need_lib_prefix=no |
| 17172 | need_version=no |
| 17173 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17174 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17175 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17176 | dynamic_linker='NetBSD (a.out) ld.so' |
| 17177 | else |
| 17178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17179 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17180 | dynamic_linker='NetBSD ld.elf_so' |
| 17181 | fi |
| 17182 | shlibpath_var=LD_LIBRARY_PATH |
| 17183 | shlibpath_overrides_runpath=yes |
| 17184 | hardcode_into_libs=yes |
| 17185 | ;; |
| 17186 | |
| 17187 | newsos6) |
| 17188 | version_type=linux |
| 17189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17190 | shlibpath_var=LD_LIBRARY_PATH |
| 17191 | shlibpath_overrides_runpath=yes |
| 17192 | ;; |
| 17193 | |
| 17194 | *nto* | *qnx*) |
| 17195 | version_type=qnx |
| 17196 | need_lib_prefix=no |
| 17197 | need_version=no |
| 17198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17199 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17200 | shlibpath_var=LD_LIBRARY_PATH |
| 17201 | shlibpath_overrides_runpath=no |
| 17202 | hardcode_into_libs=yes |
| 17203 | dynamic_linker='ldqnx.so' |
| 17204 | ;; |
| 17205 | |
| 17206 | openbsd*) |
| 17207 | version_type=sunos |
| 17208 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 17209 | need_lib_prefix=no |
| 17210 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 17211 | case $host_os in |
| 17212 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 17213 | *) need_version=no ;; |
| 17214 | esac |
| 17215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17216 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17217 | shlibpath_var=LD_LIBRARY_PATH |
| 17218 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 17219 | case $host_os in |
| 17220 | openbsd2.[89] | openbsd2.[89].*) |
| 17221 | shlibpath_overrides_runpath=no |
| 17222 | ;; |
| 17223 | *) |
| 17224 | shlibpath_overrides_runpath=yes |
| 17225 | ;; |
| 17226 | esac |
| 17227 | else |
| 17228 | shlibpath_overrides_runpath=yes |
| 17229 | fi |
| 17230 | ;; |
| 17231 | |
| 17232 | os2*) |
| 17233 | libname_spec='$name' |
| 17234 | shrext_cmds=".dll" |
| 17235 | need_lib_prefix=no |
| 17236 | library_names_spec='$libname${shared_ext} $libname.a' |
| 17237 | dynamic_linker='OS/2 ld.exe' |
| 17238 | shlibpath_var=LIBPATH |
| 17239 | ;; |
| 17240 | |
| 17241 | osf3* | osf4* | osf5*) |
| 17242 | version_type=osf |
| 17243 | need_lib_prefix=no |
| 17244 | need_version=no |
| 17245 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17247 | shlibpath_var=LD_LIBRARY_PATH |
| 17248 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17249 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 17250 | ;; |
| 17251 | |
| 17252 | rdos*) |
| 17253 | dynamic_linker=no |
| 17254 | ;; |
| 17255 | |
| 17256 | solaris*) |
| 17257 | version_type=linux |
| 17258 | need_lib_prefix=no |
| 17259 | need_version=no |
| 17260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17261 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17262 | shlibpath_var=LD_LIBRARY_PATH |
| 17263 | shlibpath_overrides_runpath=yes |
| 17264 | hardcode_into_libs=yes |
| 17265 | # ldd complains unless libraries are executable |
| 17266 | postinstall_cmds='chmod +x $lib' |
| 17267 | ;; |
| 17268 | |
| 17269 | sunos4*) |
| 17270 | version_type=sunos |
| 17271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 17272 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17273 | shlibpath_var=LD_LIBRARY_PATH |
| 17274 | shlibpath_overrides_runpath=yes |
| 17275 | if test "$with_gnu_ld" = yes; then |
| 17276 | need_lib_prefix=no |
| 17277 | fi |
| 17278 | need_version=yes |
| 17279 | ;; |
| 17280 | |
| 17281 | sysv4 | sysv4.3*) |
| 17282 | version_type=linux |
| 17283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17284 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17285 | shlibpath_var=LD_LIBRARY_PATH |
| 17286 | case $host_vendor in |
| 17287 | sni) |
| 17288 | shlibpath_overrides_runpath=no |
| 17289 | need_lib_prefix=no |
| 17290 | runpath_var=LD_RUN_PATH |
| 17291 | ;; |
| 17292 | siemens) |
| 17293 | need_lib_prefix=no |
| 17294 | ;; |
| 17295 | motorola) |
| 17296 | need_lib_prefix=no |
| 17297 | need_version=no |
| 17298 | shlibpath_overrides_runpath=no |
| 17299 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17300 | ;; |
| 17301 | esac |
| 17302 | ;; |
| 17303 | |
| 17304 | sysv4*MP*) |
| 17305 | if test -d /usr/nec ;then |
| 17306 | version_type=linux |
| 17307 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 17308 | soname_spec='$libname${shared_ext}.$major' |
| 17309 | shlibpath_var=LD_LIBRARY_PATH |
| 17310 | fi |
| 17311 | ;; |
| 17312 | |
| 17313 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17314 | version_type=freebsd-elf |
| 17315 | need_lib_prefix=no |
| 17316 | need_version=no |
| 17317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 17318 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17319 | shlibpath_var=LD_LIBRARY_PATH |
| 17320 | shlibpath_overrides_runpath=yes |
| 17321 | hardcode_into_libs=yes |
| 17322 | if test "$with_gnu_ld" = yes; then |
| 17323 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17324 | else |
| 17325 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17326 | case $host_os in |
| 17327 | sco3.2v5*) |
| 17328 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17329 | ;; |
| 17330 | esac |
| 17331 | fi |
| 17332 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 17333 | ;; |
| 17334 | |
| 17335 | tpf*) |
| 17336 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 17337 | version_type=linux |
| 17338 | need_lib_prefix=no |
| 17339 | need_version=no |
| 17340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17341 | shlibpath_var=LD_LIBRARY_PATH |
| 17342 | shlibpath_overrides_runpath=no |
| 17343 | hardcode_into_libs=yes |
| 17344 | ;; |
| 17345 | |
| 17346 | uts4*) |
| 17347 | version_type=linux |
| 17348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 17349 | soname_spec='${libname}${release}${shared_ext}$major' |
| 17350 | shlibpath_var=LD_LIBRARY_PATH |
| 17351 | ;; |
| 17352 | |
| 17353 | *) |
| 17354 | dynamic_linker=no |
| 17355 | ;; |
| 17356 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17358 | $as_echo "$dynamic_linker" >&6; } |
| 17359 | test "$dynamic_linker" = no && can_build_shared=no |
| 17360 | |
| 17361 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 17362 | if test "$GCC" = yes; then |
| 17363 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 17364 | fi |
| 17365 | |
| 17366 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 17367 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 17368 | fi |
| 17369 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 17370 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 17371 | fi |
| 17372 | |
| 17373 | |
| 17374 | |
| 17375 | |
| 17376 | |
| 17377 | |
| 17378 | |
| 17379 | |
| 17380 | |
| 17381 | |
| 17382 | |
| 17383 | |
| 17384 | |
| 17385 | |
| 17386 | |
| 17387 | |
| 17388 | |
| 17389 | |
| 17390 | |
| 17391 | |
| 17392 | |
| 17393 | |
| 17394 | |
| 17395 | |
| 17396 | |
| 17397 | |
| 17398 | |
| 17399 | |
| 17400 | |
| 17401 | |
| 17402 | |
| 17403 | |
| 17404 | |
| 17405 | |
| 17406 | |
| 17407 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17409 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 17410 | hardcode_action_CXX= |
| 17411 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 17412 | test -n "$runpath_var_CXX" || |
| 17413 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 17414 | |
| 17415 | # We can hardcode non-existent directories. |
| 17416 | if test "$hardcode_direct_CXX" != no && |
| 17417 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17418 | # have to relink, otherwise we might link with an installed library |
| 17419 | # when we should be linking with a yet-to-be-installed one |
| 17420 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 17421 | test "$hardcode_minus_L_CXX" != no; then |
| 17422 | # Linking always hardcodes the temporary library directory. |
| 17423 | hardcode_action_CXX=relink |
| 17424 | else |
| 17425 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17426 | hardcode_action_CXX=immediate |
| 17427 | fi |
| 17428 | else |
| 17429 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17430 | # directories. |
| 17431 | hardcode_action_CXX=unsupported |
| 17432 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17434 | $as_echo "$hardcode_action_CXX" >&6; } |
| 17435 | |
| 17436 | if test "$hardcode_action_CXX" = relink || |
| 17437 | test "$inherit_rpath_CXX" = yes; then |
| 17438 | # Fast installation is not supported |
| 17439 | enable_fast_install=no |
| 17440 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17441 | test "$enable_shared" = no; then |
| 17442 | # Fast installation is not necessary |
| 17443 | enable_fast_install=needless |
| 17444 | fi |
| 17445 | |
| 17446 | |
| 17447 | |
| 17448 | |
| 17449 | |
| 17450 | |
| 17451 | |
| 17452 | fi # test -n "$compiler" |
| 17453 | |
| 17454 | CC=$lt_save_CC |
| 17455 | LDCXX=$LD |
| 17456 | LD=$lt_save_LD |
| 17457 | GCC=$lt_save_GCC |
| 17458 | with_gnu_ld=$lt_save_with_gnu_ld |
| 17459 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 17460 | lt_cv_path_LD=$lt_save_path_LD |
| 17461 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 17462 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 17463 | fi # test "$_lt_caught_CXX_error" != yes |
| 17464 | |
| 17465 | ac_ext=c |
| 17466 | ac_cpp='$CPP $CPPFLAGS' |
| 17467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17470 | |
| 17471 | |
| 17472 | |
| 17473 | |
| 17474 | |
| 17475 | |
| 17476 | |
| 17477 | |
| 17478 | |
| 17479 | |
| 17480 | |
| 17481 | |
| 17482 | |
| 17483 | ac_config_commands="$ac_config_commands libtool" |
| 17484 | |
| 17485 | |
| 17486 | |
| 17487 | |
| 17488 | # Only expand once: |
| 17489 | |
| 17490 | |
| 17491 | |
| 17492 | |
| 17493 | |
| 17494 | # Configure libltdl |
| 17495 | |
| 17496 | |
| 17497 | |
| 17498 | |
| 17499 | |
| 17500 | |
| 17501 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17502 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17504 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17505 | if test "${libltdl_cv_shlibext+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17506 | $as_echo_n "(cached) " >&6 |
| 17507 | else |
| 17508 | |
| 17509 | module=yes |
| 17510 | eval libltdl_cv_shlibext=$shrext_cmds |
| 17511 | |
| 17512 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17514 | $as_echo "$libltdl_cv_shlibext" >&6; } |
| 17515 | if test -n "$libltdl_cv_shlibext"; then |
| 17516 | |
| 17517 | cat >>confdefs.h <<_ACEOF |
| 17518 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" |
| 17519 | _ACEOF |
| 17520 | |
| 17521 | fi |
| 17522 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17524 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17525 | if test "${lt_cv_module_path_var+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17526 | $as_echo_n "(cached) " >&6 |
| 17527 | else |
| 17528 | lt_cv_module_path_var="$shlibpath_var" |
| 17529 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17531 | $as_echo "$lt_cv_module_path_var" >&6; } |
| 17532 | if test -n "$lt_cv_module_path_var"; then |
| 17533 | |
| 17534 | cat >>confdefs.h <<_ACEOF |
| 17535 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" |
| 17536 | _ACEOF |
| 17537 | |
| 17538 | fi |
| 17539 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17541 | $as_echo_n "checking for the default library search path... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17542 | if test "${lt_cv_sys_dlsearch_path+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17543 | $as_echo_n "(cached) " >&6 |
| 17544 | else |
| 17545 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" |
| 17546 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17548 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } |
| 17549 | if test -n "$lt_cv_sys_dlsearch_path"; then |
| 17550 | sys_dlsearch_path= |
| 17551 | for dir in $lt_cv_sys_dlsearch_path; do |
| 17552 | if test -z "$sys_dlsearch_path"; then |
| 17553 | sys_dlsearch_path="$dir" |
| 17554 | else |
| 17555 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" |
| 17556 | fi |
| 17557 | done |
| 17558 | |
| 17559 | cat >>confdefs.h <<_ACEOF |
| 17560 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" |
| 17561 | _ACEOF |
| 17562 | |
| 17563 | fi |
| 17564 | |
| 17565 | |
| 17566 | LT_DLLOADERS= |
| 17567 | |
| 17568 | |
| 17569 | ac_ext=c |
| 17570 | ac_cpp='$CPP $CPPFLAGS' |
| 17571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17574 | |
| 17575 | |
| 17576 | LIBADD_DLOPEN= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17578 | $as_echo_n "checking for library containing dlopen... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17579 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17580 | $as_echo_n "(cached) " >&6 |
| 17581 | else |
| 17582 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17584 | /* end confdefs.h. */ |
| 17585 | |
| 17586 | /* Override any GCC internal prototype to avoid an error. |
| 17587 | Use char because int might match the return type of a GCC |
| 17588 | builtin and then its argument prototype would still apply. */ |
| 17589 | #ifdef __cplusplus |
| 17590 | extern "C" |
| 17591 | #endif |
| 17592 | char dlopen (); |
| 17593 | int |
| 17594 | main () |
| 17595 | { |
| 17596 | return dlopen (); |
| 17597 | ; |
| 17598 | return 0; |
| 17599 | } |
| 17600 | _ACEOF |
| 17601 | for ac_lib in '' dl; do |
| 17602 | if test -z "$ac_lib"; then |
| 17603 | ac_res="none required" |
| 17604 | else |
| 17605 | ac_res=-l$ac_lib |
| 17606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 17607 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17608 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17609 | ac_cv_search_dlopen=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17610 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17611 | rm -f core conftest.err conftest.$ac_objext \ |
| 17612 | conftest$ac_exeext |
| 17613 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17614 | break |
| 17615 | fi |
| 17616 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17617 | if test "${ac_cv_search_dlopen+set}" = set; then : |
| 17618 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17619 | else |
| 17620 | ac_cv_search_dlopen=no |
| 17621 | fi |
| 17622 | rm conftest.$ac_ext |
| 17623 | LIBS=$ac_func_search_save_LIBS |
| 17624 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17626 | $as_echo "$ac_cv_search_dlopen" >&6; } |
| 17627 | ac_res=$ac_cv_search_dlopen |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17628 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17629 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 17630 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17631 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17632 | |
| 17633 | if test "$ac_cv_search_dlopen" != "none required" ; then |
| 17634 | LIBADD_DLOPEN="-ldl" |
| 17635 | fi |
| 17636 | libltdl_cv_lib_dl_dlopen="yes" |
| 17637 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 17638 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17640 | /* end confdefs.h. */ |
| 17641 | #if HAVE_DLFCN_H |
| 17642 | # include <dlfcn.h> |
| 17643 | #endif |
| 17644 | |
| 17645 | int |
| 17646 | main () |
| 17647 | { |
| 17648 | dlopen(0, 0); |
| 17649 | ; |
| 17650 | return 0; |
| 17651 | } |
| 17652 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17653 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17654 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17655 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17656 | |
| 17657 | libltdl_cv_func_dlopen="yes" |
| 17658 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 17659 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17661 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17662 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17663 | $as_echo_n "(cached) " >&6 |
| 17664 | else |
| 17665 | ac_check_lib_save_LIBS=$LIBS |
| 17666 | LIBS="-lsvld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17668 | /* end confdefs.h. */ |
| 17669 | |
| 17670 | /* Override any GCC internal prototype to avoid an error. |
| 17671 | Use char because int might match the return type of a GCC |
| 17672 | builtin and then its argument prototype would still apply. */ |
| 17673 | #ifdef __cplusplus |
| 17674 | extern "C" |
| 17675 | #endif |
| 17676 | char dlopen (); |
| 17677 | int |
| 17678 | main () |
| 17679 | { |
| 17680 | return dlopen (); |
| 17681 | ; |
| 17682 | return 0; |
| 17683 | } |
| 17684 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17685 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17686 | ac_cv_lib_svld_dlopen=yes |
| 17687 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17688 | ac_cv_lib_svld_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17689 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17690 | rm -f core conftest.err conftest.$ac_objext \ |
| 17691 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17692 | LIBS=$ac_check_lib_save_LIBS |
| 17693 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17695 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17696 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17697 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17698 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17699 | |
| 17700 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
| 17701 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" |
| 17702 | fi |
| 17703 | |
| 17704 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17705 | rm -f core conftest.err conftest.$ac_objext \ |
| 17706 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17707 | fi |
| 17708 | |
| 17709 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
| 17710 | then |
| 17711 | lt_save_LIBS="$LIBS" |
| 17712 | LIBS="$LIBS $LIBADD_DLOPEN" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17713 | for ac_func in dlerror |
| 17714 | do : |
| 17715 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" |
| 17716 | if test "x$ac_cv_func_dlerror" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17717 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17718 | #define HAVE_DLERROR 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17719 | _ACEOF |
| 17720 | |
| 17721 | fi |
| 17722 | done |
| 17723 | |
| 17724 | LIBS="$lt_save_LIBS" |
| 17725 | fi |
| 17726 | |
| 17727 | |
| 17728 | LIBADD_SHL_LOAD= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17729 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 17730 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17731 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17732 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17733 | |
| 17734 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 17735 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17737 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17738 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17739 | $as_echo_n "(cached) " >&6 |
| 17740 | else |
| 17741 | ac_check_lib_save_LIBS=$LIBS |
| 17742 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17744 | /* end confdefs.h. */ |
| 17745 | |
| 17746 | /* Override any GCC internal prototype to avoid an error. |
| 17747 | Use char because int might match the return type of a GCC |
| 17748 | builtin and then its argument prototype would still apply. */ |
| 17749 | #ifdef __cplusplus |
| 17750 | extern "C" |
| 17751 | #endif |
| 17752 | char shl_load (); |
| 17753 | int |
| 17754 | main () |
| 17755 | { |
| 17756 | return shl_load (); |
| 17757 | ; |
| 17758 | return 0; |
| 17759 | } |
| 17760 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17761 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17762 | ac_cv_lib_dld_shl_load=yes |
| 17763 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17764 | ac_cv_lib_dld_shl_load=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17765 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17766 | rm -f core conftest.err conftest.$ac_objext \ |
| 17767 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17768 | LIBS=$ac_check_lib_save_LIBS |
| 17769 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17771 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17772 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17773 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17774 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17775 | |
| 17776 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
| 17777 | LIBADD_SHL_LOAD="-ldld" |
| 17778 | fi |
| 17779 | |
| 17780 | fi |
| 17781 | |
| 17782 | |
| 17783 | |
| 17784 | case $host_os in |
| 17785 | darwin[1567].*) |
| 17786 | # We only want this for pre-Mac OS X 10.4. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17787 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" |
| 17788 | if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17789 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17790 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17791 | |
| 17792 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
| 17793 | fi |
| 17794 | |
| 17795 | ;; |
| 17796 | beos*) |
| 17797 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" |
| 17798 | ;; |
| 17799 | cygwin* | mingw* | os2* | pw32*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17800 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> |
| 17801 | " |
| 17802 | if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then : |
| 17803 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17804 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17805 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17806 | fi |
| 17807 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17808 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17809 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17810 | _ACEOF |
| 17811 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17812 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
| 17813 | ;; |
| 17814 | esac |
| 17815 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17817 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17818 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17819 | $as_echo_n "(cached) " >&6 |
| 17820 | else |
| 17821 | ac_check_lib_save_LIBS=$LIBS |
| 17822 | LIBS="-ldld $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17824 | /* end confdefs.h. */ |
| 17825 | |
| 17826 | /* Override any GCC internal prototype to avoid an error. |
| 17827 | Use char because int might match the return type of a GCC |
| 17828 | builtin and then its argument prototype would still apply. */ |
| 17829 | #ifdef __cplusplus |
| 17830 | extern "C" |
| 17831 | #endif |
| 17832 | char dld_link (); |
| 17833 | int |
| 17834 | main () |
| 17835 | { |
| 17836 | return dld_link (); |
| 17837 | ; |
| 17838 | return 0; |
| 17839 | } |
| 17840 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17841 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17842 | ac_cv_lib_dld_dld_link=yes |
| 17843 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17844 | ac_cv_lib_dld_dld_link=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17845 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17846 | rm -f core conftest.err conftest.$ac_objext \ |
| 17847 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17848 | LIBS=$ac_check_lib_save_LIBS |
| 17849 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17851 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17852 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17853 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17854 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17855 | |
| 17856 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" |
| 17857 | fi |
| 17858 | |
| 17859 | |
| 17860 | |
| 17861 | |
| 17862 | LT_DLPREOPEN= |
| 17863 | if test -n "$LT_DLLOADERS" |
| 17864 | then |
| 17865 | for lt_loader in $LT_DLLOADERS; do |
| 17866 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " |
| 17867 | done |
| 17868 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17869 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17870 | |
| 17871 | fi |
| 17872 | |
| 17873 | |
| 17874 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
| 17875 | |
| 17876 | |
| 17877 | ac_ext=c |
| 17878 | ac_cpp='$CPP $CPPFLAGS' |
| 17879 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17880 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17881 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17882 | |
| 17883 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17885 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17886 | if test "${lt_cv_sys_symbol_underscore+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17887 | $as_echo_n "(cached) " >&6 |
| 17888 | else |
| 17889 | lt_cv_sys_symbol_underscore=no |
| 17890 | cat > conftest.$ac_ext <<_LT_EOF |
| 17891 | void nm_test_func(){} |
| 17892 | int main(){nm_test_func;return 0;} |
| 17893 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17894 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17895 | (eval $ac_compile) 2>&5 |
| 17896 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17898 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17899 | # Now try to grab the symbols. |
| 17900 | ac_nlist=conftest.nm |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17901 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17902 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 |
| 17903 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17904 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17905 | test $ac_status = 0; } && test -s "$ac_nlist"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17906 | # See whether the symbols have a leading underscore. |
| 17907 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then |
| 17908 | lt_cv_sys_symbol_underscore=yes |
| 17909 | else |
| 17910 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then |
| 17911 | : |
| 17912 | else |
| 17913 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 |
| 17914 | fi |
| 17915 | fi |
| 17916 | else |
| 17917 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 17918 | fi |
| 17919 | else |
| 17920 | echo "configure: failed program was:" >&5 |
| 17921 | cat conftest.c >&5 |
| 17922 | fi |
| 17923 | rm -rf conftest* |
| 17924 | |
| 17925 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17927 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } |
| 17928 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore |
| 17929 | |
| 17930 | |
| 17931 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
| 17932 | if test x"$libltdl_cv_func_dlopen" = xyes || |
| 17933 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17935 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 17936 | if test "${libltdl_cv_need_uscore+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17937 | $as_echo_n "(cached) " >&6 |
| 17938 | else |
| 17939 | libltdl_cv_need_uscore=unknown |
| 17940 | save_LIBS="$LIBS" |
| 17941 | LIBS="$LIBS $LIBADD_DLOPEN" |
| 17942 | if test "$cross_compiling" = yes; then : |
| 17943 | libltdl_cv_need_uscore=cross |
| 17944 | else |
| 17945 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17946 | lt_status=$lt_dlunknown |
| 17947 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 17948 | #line 17948 "configure" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17949 | #include "confdefs.h" |
| 17950 | |
| 17951 | #if HAVE_DLFCN_H |
| 17952 | #include <dlfcn.h> |
| 17953 | #endif |
| 17954 | |
| 17955 | #include <stdio.h> |
| 17956 | |
| 17957 | #ifdef RTLD_GLOBAL |
| 17958 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17959 | #else |
| 17960 | # ifdef DL_GLOBAL |
| 17961 | # define LT_DLGLOBAL DL_GLOBAL |
| 17962 | # else |
| 17963 | # define LT_DLGLOBAL 0 |
| 17964 | # endif |
| 17965 | #endif |
| 17966 | |
| 17967 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17968 | find out it does not work in some platform. */ |
| 17969 | #ifndef LT_DLLAZY_OR_NOW |
| 17970 | # ifdef RTLD_LAZY |
| 17971 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17972 | # else |
| 17973 | # ifdef DL_LAZY |
| 17974 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17975 | # else |
| 17976 | # ifdef RTLD_NOW |
| 17977 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17978 | # else |
| 17979 | # ifdef DL_NOW |
| 17980 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17981 | # else |
| 17982 | # define LT_DLLAZY_OR_NOW 0 |
| 17983 | # endif |
| 17984 | # endif |
| 17985 | # endif |
| 17986 | # endif |
| 17987 | #endif |
| 17988 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17989 | void fnord() { int i=42;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17990 | int main () |
| 17991 | { |
| 17992 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17993 | int status = $lt_dlunknown; |
| 17994 | |
| 17995 | if (self) |
| 17996 | { |
| 17997 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 17998 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 17999 | /* dlclose (self); */ |
| 18000 | } |
| 18001 | else |
| 18002 | puts (dlerror ()); |
| 18003 | |
| 18004 | return status; |
| 18005 | } |
| 18006 | _LT_EOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18007 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18008 | (eval $ac_link) 2>&5 |
| 18009 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18010 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18011 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18012 | (./conftest; exit; ) >&5 2>/dev/null |
| 18013 | lt_status=$? |
| 18014 | case x$lt_status in |
| 18015 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
| 18016 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
| 18017 | x$lt_dlunknown|x*) ;; |
| 18018 | esac |
| 18019 | else : |
| 18020 | # compilation failed |
| 18021 | |
| 18022 | fi |
| 18023 | fi |
| 18024 | rm -fr conftest* |
| 18025 | |
| 18026 | LIBS="$save_LIBS" |
| 18027 | |
| 18028 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18030 | $as_echo "$libltdl_cv_need_uscore" >&6; } |
| 18031 | fi |
| 18032 | fi |
| 18033 | |
| 18034 | if test x"$libltdl_cv_need_uscore" = xyes; then |
| 18035 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18036 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18037 | |
| 18038 | fi |
| 18039 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18041 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18042 | if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18043 | $as_echo_n "(cached) " >&6 |
| 18044 | else |
| 18045 | # PORTME does your system automatically load deplibs for dlopen? |
| 18046 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) |
| 18047 | # For now, we just catch OSes we know something about -- in the |
| 18048 | # future, we'll try test this programmatically. |
| 18049 | lt_cv_sys_dlopen_deplibs=unknown |
| 18050 | case $host_os in |
| 18051 | aix3*|aix4.1.*|aix4.2.*) |
| 18052 | # Unknown whether this is true for these versions of AIX, but |
| 18053 | # we want this `case' here to explicitly catch those versions. |
| 18054 | lt_cv_sys_dlopen_deplibs=unknown |
| 18055 | ;; |
| 18056 | aix[4-9]*) |
| 18057 | lt_cv_sys_dlopen_deplibs=yes |
| 18058 | ;; |
| 18059 | amigaos*) |
| 18060 | case $host_cpu in |
| 18061 | powerpc) |
| 18062 | lt_cv_sys_dlopen_deplibs=no |
| 18063 | ;; |
| 18064 | esac |
| 18065 | ;; |
| 18066 | darwin*) |
| 18067 | # Assuming the user has installed a libdl from somewhere, this is true |
| 18068 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat |
| 18069 | lt_cv_sys_dlopen_deplibs=yes |
| 18070 | ;; |
| 18071 | freebsd* | dragonfly*) |
| 18072 | lt_cv_sys_dlopen_deplibs=yes |
| 18073 | ;; |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 18074 | gnu* | linux* | k*bsd*-gnu) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18075 | # GNU and its variants, using gnu ld.so (Glibc) |
| 18076 | lt_cv_sys_dlopen_deplibs=yes |
| 18077 | ;; |
| 18078 | hpux10*|hpux11*) |
| 18079 | lt_cv_sys_dlopen_deplibs=yes |
| 18080 | ;; |
| 18081 | interix*) |
| 18082 | lt_cv_sys_dlopen_deplibs=yes |
| 18083 | ;; |
| 18084 | irix[12345]*|irix6.[01]*) |
| 18085 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
| 18086 | # know how it worked for any of those versions. |
| 18087 | lt_cv_sys_dlopen_deplibs=unknown |
| 18088 | ;; |
| 18089 | irix*) |
| 18090 | # The case above catches anything before 6.2, and it's known that |
| 18091 | # at 6.2 and later dlopen does load deplibs. |
| 18092 | lt_cv_sys_dlopen_deplibs=yes |
| 18093 | ;; |
| 18094 | netbsd*) |
| 18095 | lt_cv_sys_dlopen_deplibs=yes |
| 18096 | ;; |
| 18097 | openbsd*) |
| 18098 | lt_cv_sys_dlopen_deplibs=yes |
| 18099 | ;; |
| 18100 | osf[1234]*) |
| 18101 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, |
| 18102 | # it did *not* use an RPATH in a shared library to find objects the |
| 18103 | # library depends on, so we explicitly say `no'. |
| 18104 | lt_cv_sys_dlopen_deplibs=no |
| 18105 | ;; |
| 18106 | osf5.0|osf5.0a|osf5.1) |
| 18107 | # dlopen *does* load deplibs and with the right loader patch applied |
| 18108 | # it even uses RPATH in a shared library to search for shared objects |
| 18109 | # that the library depends on, but there's no easy way to know if that |
| 18110 | # patch is installed. Since this is the case, all we can really |
| 18111 | # say is unknown -- it depends on the patch being installed. If |
| 18112 | # it is, this changes to `yes'. Without it, it would be `no'. |
| 18113 | lt_cv_sys_dlopen_deplibs=unknown |
| 18114 | ;; |
| 18115 | osf*) |
| 18116 | # the two cases above should catch all versions of osf <= 5.1. Read |
| 18117 | # the comments above for what we know about them. |
| 18118 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library |
| 18119 | # is used to find them so we can finally say `yes'. |
| 18120 | lt_cv_sys_dlopen_deplibs=yes |
| 18121 | ;; |
| 18122 | qnx*) |
| 18123 | lt_cv_sys_dlopen_deplibs=yes |
| 18124 | ;; |
| 18125 | solaris*) |
| 18126 | lt_cv_sys_dlopen_deplibs=yes |
| 18127 | ;; |
| 18128 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 18129 | libltdl_cv_sys_dlopen_deplibs=yes |
| 18130 | ;; |
| 18131 | esac |
| 18132 | |
| 18133 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18135 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } |
| 18136 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then |
| 18137 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18138 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18139 | |
| 18140 | fi |
| 18141 | |
| 18142 | : |
| 18143 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18144 | for ac_header in argz.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18145 | do : |
| 18146 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default |
| 18147 | " |
| 18148 | if test "x$ac_cv_header_argz_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18149 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18150 | #define HAVE_ARGZ_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18151 | _ACEOF |
| 18152 | |
| 18153 | fi |
| 18154 | |
| 18155 | done |
| 18156 | |
| 18157 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18158 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18159 | # include <argz.h> |
| 18160 | #endif |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18161 | " |
| 18162 | if test "x$ac_cv_type_error_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18163 | |
| 18164 | cat >>confdefs.h <<_ACEOF |
| 18165 | #define HAVE_ERROR_T 1 |
| 18166 | _ACEOF |
| 18167 | |
| 18168 | |
| 18169 | else |
| 18170 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18171 | $as_echo "#define error_t int" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18172 | |
| 18173 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18174 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18175 | |
| 18176 | fi |
| 18177 | |
| 18178 | |
| 18179 | ARGZ_H= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18180 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ |
| 18181 | argz_next argz_stringify |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18182 | do : |
| 18183 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18184 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 18185 | eval as_val=\$$as_ac_var |
| 18186 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18187 | cat >>confdefs.h <<_ACEOF |
| 18188 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18189 | _ACEOF |
| 18190 | |
| 18191 | else |
| 18192 | ARGZ_H=argz.h; |
| 18193 | |
| 18194 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 18195 | |
| 18196 | fi |
| 18197 | done |
| 18198 | |
| 18199 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18200 | if test -z "$ARGZ_H"; then : |
| 18201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18202 | $as_echo_n "checking if argz actually works... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18203 | if test "${lt_cv_sys_argz_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18204 | $as_echo_n "(cached) " >&6 |
| 18205 | else |
| 18206 | case $host_os in #( |
| 18207 | *cygwin*) |
| 18208 | lt_cv_sys_argz_works=no |
| 18209 | if test "$cross_compiling" != no; then |
| 18210 | lt_cv_sys_argz_works="guessing no" |
| 18211 | else |
| 18212 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' |
| 18213 | save_IFS=$IFS |
| 18214 | IFS=-. |
| 18215 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` |
| 18216 | IFS=$save_IFS |
| 18217 | lt_os_major=${2-0} |
| 18218 | lt_os_minor=${3-0} |
| 18219 | lt_os_micro=${4-0} |
| 18220 | if test "$lt_os_major" -gt 1 \ |
| 18221 | || { test "$lt_os_major" -eq 1 \ |
| 18222 | && { test "$lt_os_minor" -gt 5 \ |
| 18223 | || { test "$lt_os_minor" -eq 5 \ |
| 18224 | && test "$lt_os_micro" -gt 24; }; }; }; then |
| 18225 | lt_cv_sys_argz_works=yes |
| 18226 | fi |
| 18227 | fi |
| 18228 | ;; #( |
| 18229 | *) lt_cv_sys_argz_works=yes ;; |
| 18230 | esac |
| 18231 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18233 | $as_echo "$lt_cv_sys_argz_works" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18234 | if test $lt_cv_sys_argz_works = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18235 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18236 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18237 | |
| 18238 | else |
| 18239 | ARGZ_H=argz.h |
| 18240 | |
| 18241 | |
| 18242 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
| 18243 | |
| 18244 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18245 | fi |
| 18246 | |
| 18247 | |
| 18248 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18250 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18251 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18252 | $as_echo_n "(cached) " >&6 |
| 18253 | else |
| 18254 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
| 18255 | libltdl_cv_preloaded_symbols=yes |
| 18256 | else |
| 18257 | libltdl_cv_preloaded_symbols=no |
| 18258 | fi |
| 18259 | |
| 18260 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18262 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } |
| 18263 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then |
| 18264 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18265 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18266 | |
| 18267 | fi |
| 18268 | |
| 18269 | # Set options |
| 18270 | |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 | |
| 18275 | |
| 18276 | |
| 18277 | |
| 18278 | |
| 18279 | |
| 18280 | |
| 18281 | # Check whether --with-included_ltdl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18282 | if test "${with_included_ltdl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18283 | withval=$with_included_ltdl; |
| 18284 | fi |
| 18285 | |
| 18286 | |
| 18287 | if test "x$with_included_ltdl" != xyes; then |
| 18288 | # We are not being forced to use the included libltdl sources, so |
| 18289 | # decide whether there is a useful installed version we can use. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18290 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18291 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18292 | " |
| 18293 | if test "x$ac_cv_header_ltdl_h" = x""yes; then : |
| 18294 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18295 | #include <ltdl.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18296 | " |
| 18297 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then : |
| 18298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18299 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18300 | if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18301 | $as_echo_n "(cached) " >&6 |
| 18302 | else |
| 18303 | ac_check_lib_save_LIBS=$LIBS |
| 18304 | LIBS="-lltdl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18306 | /* end confdefs.h. */ |
| 18307 | |
| 18308 | /* Override any GCC internal prototype to avoid an error. |
| 18309 | Use char because int might match the return type of a GCC |
| 18310 | builtin and then its argument prototype would still apply. */ |
| 18311 | #ifdef __cplusplus |
| 18312 | extern "C" |
| 18313 | #endif |
| 18314 | char lt_dladvise_preload (); |
| 18315 | int |
| 18316 | main () |
| 18317 | { |
| 18318 | return lt_dladvise_preload (); |
| 18319 | ; |
| 18320 | return 0; |
| 18321 | } |
| 18322 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18323 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18324 | ac_cv_lib_ltdl_lt_dladvise_preload=yes |
| 18325 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18326 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18327 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18328 | rm -f core conftest.err conftest.$ac_objext \ |
| 18329 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18330 | LIBS=$ac_check_lib_save_LIBS |
| 18331 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18333 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18334 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18335 | with_included_ltdl=no |
| 18336 | else |
| 18337 | with_included_ltdl=yes |
| 18338 | fi |
| 18339 | |
| 18340 | else |
| 18341 | with_included_ltdl=yes |
| 18342 | fi |
| 18343 | |
| 18344 | else |
| 18345 | with_included_ltdl=yes |
| 18346 | fi |
| 18347 | |
| 18348 | |
| 18349 | fi |
| 18350 | |
| 18351 | |
| 18352 | |
| 18353 | |
| 18354 | # Check whether --with-ltdl_include was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18355 | if test "${with_ltdl_include+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18356 | withval=$with_ltdl_include; |
| 18357 | fi |
| 18358 | |
| 18359 | |
| 18360 | if test -n "$with_ltdl_include"; then |
| 18361 | if test -f "$with_ltdl_include/ltdl.h"; then : |
| 18362 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18363 | as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18364 | fi |
| 18365 | else |
| 18366 | with_ltdl_include=no |
| 18367 | fi |
| 18368 | |
| 18369 | |
| 18370 | # Check whether --with-ltdl_lib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18371 | if test "${with_ltdl_lib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18372 | withval=$with_ltdl_lib; |
| 18373 | fi |
| 18374 | |
| 18375 | |
| 18376 | if test -n "$with_ltdl_lib"; then |
| 18377 | if test -f "$with_ltdl_lib/libltdl.la"; then : |
| 18378 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18379 | as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18380 | fi |
| 18381 | else |
| 18382 | with_ltdl_lib=no |
| 18383 | fi |
| 18384 | |
| 18385 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in |
| 18386 | ,yes,no,no,) |
| 18387 | case $enable_ltdl_convenience in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18388 | no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18389 | "") enable_ltdl_convenience=yes |
| 18390 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
| 18391 | esac |
| 18392 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" |
| 18393 | LTDLDEPS=$LIBLTDL |
| 18394 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" |
| 18395 | |
| 18396 | |
| 18397 | |
| 18398 | |
| 18399 | |
| 18400 | # For backwards non-gettext consistent compatibility... |
| 18401 | INCLTDL="$LTDLINCL" |
| 18402 | |
| 18403 | |
| 18404 | ;; |
| 18405 | ,no,no,no,) |
| 18406 | # If the included ltdl is not to be used, then use the |
| 18407 | # preinstalled libltdl we found. |
| 18408 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18409 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18410 | |
| 18411 | LIBLTDL=-lltdl |
| 18412 | LTDLDEPS= |
| 18413 | LTDLINCL= |
| 18414 | ;; |
| 18415 | ,no*,no,*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18416 | as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18417 | ;; |
| 18418 | *) with_included_ltdl=no |
| 18419 | LIBLTDL="-L$with_ltdl_lib -lltdl" |
| 18420 | LTDLDEPS= |
| 18421 | LTDLINCL="-I$with_ltdl_include" |
| 18422 | ;; |
| 18423 | esac |
| 18424 | INCLTDL="$LTDLINCL" |
| 18425 | |
| 18426 | # Report our decision... |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18428 | $as_echo_n "checking where to find libltdl headers... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18430 | $as_echo "$LTDLINCL" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18432 | $as_echo_n "checking where to find libltdl library... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18434 | $as_echo "$LIBLTDL" >&6; } |
| 18435 | |
| 18436 | |
| 18437 | |
| 18438 | # Check whether --enable-ltdl-install was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18439 | if test "${enable_ltdl_install+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18440 | enableval=$enable_ltdl_install; |
| 18441 | fi |
| 18442 | |
| 18443 | |
| 18444 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in |
| 18445 | *yes*) ;; |
| 18446 | *) enable_ltdl_convenience=yes ;; |
| 18447 | esac |
| 18448 | |
| 18449 | if test x"${enable_ltdl_install-no}" != xno; then |
| 18450 | INSTALL_LTDL_TRUE= |
| 18451 | INSTALL_LTDL_FALSE='#' |
| 18452 | else |
| 18453 | INSTALL_LTDL_TRUE='#' |
| 18454 | INSTALL_LTDL_FALSE= |
| 18455 | fi |
| 18456 | |
| 18457 | if test x"${enable_ltdl_convenience-no}" != xno; then |
| 18458 | CONVENIENCE_LTDL_TRUE= |
| 18459 | CONVENIENCE_LTDL_FALSE='#' |
| 18460 | else |
| 18461 | CONVENIENCE_LTDL_TRUE='#' |
| 18462 | CONVENIENCE_LTDL_FALSE= |
| 18463 | fi |
| 18464 | |
| 18465 | |
| 18466 | |
| 18467 | |
| 18468 | |
| 18469 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 18470 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18471 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
| 18472 | # the user used. This is so that ltdl.h can pick up the parent projects |
| 18473 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the |
| 18474 | # definitions required by ltdl.c. |
| 18475 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). |
| 18476 | |
| 18477 | |
| 18478 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18479 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18480 | do : |
| 18481 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18482 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 18483 | " |
| 18484 | eval as_val=\$$as_ac_Header |
| 18485 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18486 | cat >>confdefs.h <<_ACEOF |
| 18487 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18488 | _ACEOF |
| 18489 | |
| 18490 | fi |
| 18491 | |
| 18492 | done |
| 18493 | |
| 18494 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18495 | for ac_func in closedir opendir readdir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18496 | do : |
| 18497 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18498 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 18499 | eval as_val=\$$as_ac_var |
| 18500 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18501 | cat >>confdefs.h <<_ACEOF |
| 18502 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18503 | _ACEOF |
| 18504 | |
| 18505 | else |
| 18506 | |
| 18507 | |
| 18508 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
| 18509 | |
| 18510 | fi |
| 18511 | done |
| 18512 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18513 | for ac_func in strlcat strlcpy |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18514 | do : |
| 18515 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 18516 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 18517 | eval as_val=\$$as_ac_var |
| 18518 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18519 | cat >>confdefs.h <<_ACEOF |
| 18520 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 18521 | _ACEOF |
| 18522 | |
| 18523 | else |
| 18524 | |
| 18525 | |
| 18526 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" |
| 18527 | |
| 18528 | fi |
| 18529 | done |
| 18530 | |
| 18531 | |
| 18532 | |
| 18533 | cat >>confdefs.h <<_ACEOF |
| 18534 | #define LT_LIBEXT "$libext" |
| 18535 | _ACEOF |
| 18536 | |
| 18537 | |
| 18538 | name=ltdl |
| 18539 | LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` |
| 18540 | |
| 18541 | |
| 18542 | |
| 18543 | |
| 18544 | |
| 18545 | |
| 18546 | |
| 18547 | |
| 18548 | # Only expand once: |
| 18549 | |
| 18550 | |
| 18551 | |
| 18552 | # Check to see if building shared libraries |
| 18553 | libtool_build_shared_libs='no' |
| 18554 | if test "$enable_shared" = 'yes'; then |
| 18555 | libtool_build_shared_libs='yes' |
| 18556 | fi |
| 18557 | |
| 18558 | # Check to see if building static libraries |
| 18559 | libtool_build_static_libs='no' |
| 18560 | if test "$enable_static" = 'yes'; then |
| 18561 | libtool_build_static_libs='yes' |
| 18562 | fi |
| 18563 | |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 18564 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 18565 | WITH_SHARED_LIBS_TRUE= |
| 18566 | WITH_SHARED_LIBS_FALSE='#' |
| 18567 | else |
| 18568 | WITH_SHARED_LIBS_TRUE='#' |
| 18569 | WITH_SHARED_LIBS_FALSE= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18570 | fi |
| 18571 | |
| 18572 | # |
| 18573 | # Enable support for building loadable modules |
| 18574 | # |
| 18575 | |
| 18576 | # Check whether --with-modules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18577 | if test "${with_modules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18578 | withval=$with_modules; with_modules=$withval |
| 18579 | else |
| 18580 | with_modules=$libtool_build_shared_libs |
| 18581 | fi |
| 18582 | |
| 18583 | |
| 18584 | # Only allow building loadable modules if we are building shared libraries |
| 18585 | if test "$with_modules" != 'no' ; then |
| 18586 | if test "$libtool_build_shared_libs" = 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18587 | { $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] | 18588 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| 18589 | with_modules='no' |
| 18590 | fi |
| 18591 | fi |
| 18592 | if test "$with_modules" != 'no'; then |
| 18593 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18594 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18595 | |
| 18596 | fi |
| 18597 | if test "$with_modules" != 'no'; then |
| 18598 | WITH_MODULES_TRUE= |
| 18599 | WITH_MODULES_FALSE='#' |
| 18600 | else |
| 18601 | WITH_MODULES_TRUE='#' |
| 18602 | WITH_MODULES_FALSE= |
| 18603 | fi |
| 18604 | |
| 18605 | |
| 18606 | # Enable building/use of libltdl if we are building shared libraries regardless |
| 18607 | # of whether modules are built or not. |
| 18608 | with_ltdl='no' |
| 18609 | if test "$libtool_build_shared_libs" != 'no'; then |
| 18610 | with_ltdl='yes' |
| 18611 | fi |
| 18612 | |
| 18613 | if test "$with_ltdl" != 'no'; then |
| 18614 | WITH_LTDL_TRUE= |
| 18615 | WITH_LTDL_FALSE='#' |
| 18616 | else |
| 18617 | WITH_LTDL_TRUE='#' |
| 18618 | WITH_LTDL_FALSE= |
| 18619 | fi |
| 18620 | |
| 18621 | if test "$with_ltdl" != 'no'; then |
| 18622 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18623 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18624 | |
| 18625 | |
| 18626 | # Set DLLDFLAGS |
| 18627 | if test X"$enable_shared" = Xyes; then |
| 18628 | DLLDFLAGS=-export-dynamic |
| 18629 | |
| 18630 | fi |
| 18631 | fi |
| 18632 | |
| 18633 | # Enable build using delegate libraries built in subdirectories rather than installed |
| 18634 | # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib) |
| 18635 | # Check whether --enable-delegate-build was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18636 | if test "${enable_delegate_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18637 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 18638 | else |
| 18639 | enable_delegate_build='no' |
| 18640 | fi |
| 18641 | |
| 18642 | |
| 18643 | # Check whether --enable-deprecated was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18644 | if test "${enable_deprecated+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18645 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 18646 | else |
| 18647 | enable_deprecated='no' |
| 18648 | fi |
| 18649 | |
| 18650 | |
| 18651 | if test "$enable_deprecated" = 'yes'; then |
| 18652 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18653 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18654 | |
| 18655 | else |
| 18656 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 18657 | fi |
| 18658 | |
| 18659 | # Build a version of ImageMagick which operates uninstalled. |
| 18660 | # Used to build distributions located via MAGICK_HOME / executable path |
| 18661 | # Check whether --enable-installed was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18662 | if test "${enable_installed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18663 | enableval=$enable_installed; enable_installed=$enableval |
| 18664 | else |
| 18665 | enable_installed='yes' |
| 18666 | fi |
| 18667 | |
| 18668 | |
| 18669 | if test "$enable_installed" = 'yes'; then |
| 18670 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18671 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18672 | |
| 18673 | else |
| 18674 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 18675 | fi |
| 18676 | |
| 18677 | # Permit enciphering and deciphering image pixels. |
| 18678 | # Check whether --enable-cipher was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18679 | if test "${enable_cipher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18680 | enableval=$enable_cipher; enable_cipher=$enableval |
| 18681 | else |
| 18682 | enable_cipher='yes' |
| 18683 | fi |
| 18684 | |
| 18685 | |
| 18686 | if test "$enable_cipher" = 'yes'; then |
| 18687 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18688 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18689 | |
| 18690 | fi |
| 18691 | |
| 18692 | # Build an embeddable version of ImageMagick. |
| 18693 | # Check whether --enable-embeddable was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18694 | if test "${enable_embeddable+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18695 | enableval=$enable_embeddable; enable_embeddable=$enableval |
| 18696 | else |
| 18697 | enable_embeddable='no' |
| 18698 | fi |
| 18699 | |
| 18700 | |
| 18701 | if test "$enable_embeddable" = 'yes'; then |
| 18702 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18703 | $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18704 | |
| 18705 | fi |
| 18706 | |
| 18707 | # Build a high dynamic range version of ImageMagick. |
| 18708 | # Check whether --enable-hdri was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18709 | if test "${enable_hdri+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18710 | enableval=$enable_hdri; enable_hdri=$enableval |
| 18711 | else |
| 18712 | enable_hdri='no' |
| 18713 | fi |
| 18714 | |
| 18715 | |
| 18716 | MAGICK_HDRI="" |
| 18717 | if test "$enable_hdri" = 'yes'; then |
| 18718 | MAGICK_HDRI="HDRI" |
| 18719 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18720 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18721 | |
| 18722 | fi |
| 18723 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18724 | # Build a version of ImageMagick with assert statements. |
| 18725 | # Check whether --enable-assert was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18726 | if test "${enable_assert+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18727 | enableval=$enable_assert; enable_assert=$enableval |
| 18728 | else |
| 18729 | enable_assert='yes' |
| 18730 | fi |
| 18731 | |
| 18732 | |
| 18733 | if test "$enable_assert" = 'no'; then |
| 18734 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18735 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18736 | |
| 18737 | fi |
| 18738 | |
| 18739 | # Add configure option --enable-maintainer-mode which enables dependency |
| 18740 | # checking and generation useful to package maintainers. This is made an |
| 18741 | # option to avoid confusing end users. |
| 18742 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18744 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 18745 | # Check whether --enable-maintainer-mode was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18746 | if test "${enable_maintainer_mode+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18747 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 18748 | else |
| 18749 | USE_MAINTAINER_MODE=no |
| 18750 | fi |
| 18751 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18753 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 18754 | if test $USE_MAINTAINER_MODE = yes; then |
| 18755 | MAINTAINER_MODE_TRUE= |
| 18756 | MAINTAINER_MODE_FALSE='#' |
| 18757 | else |
| 18758 | MAINTAINER_MODE_TRUE='#' |
| 18759 | MAINTAINER_MODE_FALSE= |
| 18760 | fi |
| 18761 | |
| 18762 | MAINT=$MAINTAINER_MODE_TRUE |
| 18763 | |
| 18764 | |
| 18765 | |
| 18766 | |
| 18767 | # Enable ccmalloc memory debugging support |
| 18768 | # Check whether --enable-ccmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18769 | if test "${enable_ccmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18770 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 18771 | else |
| 18772 | enable_ccmalloc='no' |
| 18773 | fi |
| 18774 | |
| 18775 | |
| 18776 | # Enable Electric Fence memory debugging support |
| 18777 | # Check whether --enable-efence was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18778 | if test "${enable_efence+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18779 | enableval=$enable_efence; enable_efence=$enableval |
| 18780 | else |
| 18781 | enable_efence='no' |
| 18782 | fi |
| 18783 | |
| 18784 | |
| 18785 | # Enable prof-based profiling support |
| 18786 | # Check whether --enable-prof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18787 | if test "${enable_prof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18788 | enableval=$enable_prof; enable_prof=$enableval |
| 18789 | else |
| 18790 | enable_prof='no' |
| 18791 | fi |
| 18792 | |
| 18793 | |
| 18794 | # Enable gprof-based profiling support |
| 18795 | # Check whether --enable-gprof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18796 | if test "${enable_gprof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18797 | enableval=$enable_gprof; enable_gprof=$enableval |
| 18798 | else |
| 18799 | enable_gprof='no' |
| 18800 | fi |
| 18801 | |
| 18802 | |
| 18803 | # Enable gcov-based profiling support |
| 18804 | # Check whether --enable-gcov was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18805 | if test "${enable_gcov+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18806 | enableval=$enable_gcov; enable_gcov=$enableval |
| 18807 | else |
| 18808 | enable_gcov='no' |
| 18809 | fi |
| 18810 | |
| 18811 | |
| 18812 | enable_profiling='no' |
| 18813 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 18814 | enable_profiling='yes' |
| 18815 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 18816 | echo "Warning: Can not profile code using shared libraries" |
| 18817 | fi |
| 18818 | fi |
| 18819 | |
| 18820 | # Magick API method prefix |
| 18821 | |
| 18822 | # Check whether --with-method-prefix was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18823 | if test "${with_method_prefix+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18824 | withval=$with_method_prefix; with_method_prefix=$enableval |
| 18825 | else |
| 18826 | with_method_prefix='' |
| 18827 | fi |
| 18828 | |
| 18829 | |
| 18830 | if test "$with_method_prefix" != ''; then |
| 18831 | |
| 18832 | cat >>confdefs.h <<_ACEOF |
| 18833 | #define NAMESPACE_PREFIX $with_method_prefix |
| 18834 | _ACEOF |
| 18835 | |
| 18836 | fi |
| 18837 | |
| 18838 | # Number of bits in a Quantum |
| 18839 | |
| 18840 | # Check whether --with-quantum-depth was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18841 | if test "${with_quantum_depth+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18842 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 18843 | else |
| 18844 | with_quantum_depth=16 |
| 18845 | fi |
| 18846 | |
| 18847 | |
| 18848 | if test "$with_quantum_depth" != '8'; then |
| 18849 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 18850 | fi |
| 18851 | |
| 18852 | case "${with_quantum_depth}" in |
| 18853 | 8 ) ;; |
| 18854 | 16 ) ;; |
| 18855 | 32 ) ;; |
| 18856 | 64 ) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18857 | * ) { as_fn_set_status 16 |
| 18858 | as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18859 | esac |
| 18860 | QUANTUM_DEPTH="$with_quantum_depth" |
| 18861 | |
| 18862 | cat >>confdefs.h <<_ACEOF |
| 18863 | #define QUANTUM_DEPTH $QUANTUM_DEPTH |
| 18864 | _ACEOF |
| 18865 | |
| 18866 | |
| 18867 | # Set pixel cache threshold |
| 18868 | |
| 18869 | # Check whether --with-cache was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18870 | if test "${with_cache+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18871 | withval=$with_cache; with_cache=$withval |
| 18872 | else |
| 18873 | with_cache='' |
| 18874 | fi |
| 18875 | |
| 18876 | |
| 18877 | if test "$with_cache" != ''; then |
| 18878 | |
| 18879 | cat >>confdefs.h <<_ACEOF |
| 18880 | #define PixelCacheThreshold $with_cache |
| 18881 | _ACEOF |
| 18882 | |
| 18883 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 18884 | fi |
| 18885 | |
| 18886 | # Disable/Enable support for full delegate paths |
| 18887 | |
| 18888 | # Check whether --with-frozenpaths was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18889 | if test "${with_frozenpaths+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18890 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 18891 | else |
| 18892 | with_frozenpaths='no' |
| 18893 | fi |
| 18894 | |
| 18895 | |
| 18896 | # Enable build/install of Magick++ |
| 18897 | |
| 18898 | # Check whether --with-magick-plus-plus was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18899 | if test "${with_magick_plus_plus+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18900 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 18901 | else |
| 18902 | with_magick_plus_plus='yes' |
| 18903 | fi |
| 18904 | |
| 18905 | |
| 18906 | # Disable build/install of PerlMagick. |
| 18907 | |
| 18908 | # Check whether --with-perl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18909 | if test "${with_perl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18910 | withval=$with_perl; with_perl=$withval |
| 18911 | else |
| 18912 | with_perl=$libtool_build_shared_libs |
| 18913 | fi |
| 18914 | |
| 18915 | |
| 18916 | # Options to pass when configuring PerlMagick |
| 18917 | |
| 18918 | # Check whether --with-perl-options was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18919 | if test "${with_perl_options+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18920 | withval=$with_perl_options; |
| 18921 | fi |
| 18922 | |
| 18923 | |
| 18924 | PERL_MAKE_OPTIONS=$with_perl_options |
| 18925 | |
| 18926 | |
| 18927 | |
| 18928 | # Enable umem, object-caching memory allocation library. |
| 18929 | |
| 18930 | # Check whether --with-umem was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18931 | if test "${with_umem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18932 | withval=$with_umem; with_umem=$withval |
| 18933 | else |
| 18934 | with_umem='no' |
| 18935 | fi |
| 18936 | |
| 18937 | if test "$with_umem" != 'yes' ; then |
| 18938 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 18939 | fi |
| 18940 | |
| 18941 | # |
| 18942 | # Specify path to shared libstdc++ if not in normal location |
| 18943 | # |
| 18944 | |
| 18945 | # Check whether --with-libstdc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18946 | if test "${with_libstdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18947 | withval=$with_libstdc; with_libstdc=$withval |
| 18948 | else |
| 18949 | with_libstdc='' |
| 18950 | fi |
| 18951 | |
| 18952 | |
| 18953 | if test "$with_libstdc" != ''; then |
| 18954 | if test -d "$with_libstdc"; then |
| 18955 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 18956 | fi |
| 18957 | fi |
| 18958 | |
| 18959 | |
| 18960 | # Does gcc required -traditional? |
| 18961 | if test $ac_cv_c_compiler_gnu = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18963 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18964 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18965 | $as_echo_n "(cached) " >&6 |
| 18966 | else |
| 18967 | ac_pattern="Autoconf.*'x'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18969 | /* end confdefs.h. */ |
| 18970 | #include <sgtty.h> |
| 18971 | Autoconf TIOCGETP |
| 18972 | _ACEOF |
| 18973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18974 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18975 | ac_cv_prog_gcc_traditional=yes |
| 18976 | else |
| 18977 | ac_cv_prog_gcc_traditional=no |
| 18978 | fi |
| 18979 | rm -f conftest* |
| 18980 | |
| 18981 | |
| 18982 | if test $ac_cv_prog_gcc_traditional = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18984 | /* end confdefs.h. */ |
| 18985 | #include <termio.h> |
| 18986 | Autoconf TCGETA |
| 18987 | _ACEOF |
| 18988 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18989 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18990 | ac_cv_prog_gcc_traditional=yes |
| 18991 | fi |
| 18992 | rm -f conftest* |
| 18993 | |
| 18994 | fi |
| 18995 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 18996 | { $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] | 18997 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 18998 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 18999 | CC="$CC -traditional" |
| 19000 | fi |
| 19001 | fi |
| 19002 | |
| 19003 | |
| 19004 | ######## |
| 19005 | # |
| 19006 | # Set defines required to build DLLs and modules using MinGW |
| 19007 | # |
| 19008 | ######## |
| 19009 | # These options are set for multi-thread DLL module build |
| 19010 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 19011 | # module: _DLL |
| 19012 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 19013 | MODULE_EXTRA_CPPFLAGS='' |
| 19014 | LIBRARY_EXTRA_CPPFLAGS='' |
| 19015 | if test "${native_win32_build}" = 'yes'; then |
| 19016 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 19017 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 19018 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 19019 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 19020 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 19021 | if test "$with_modules" = 'yes'; then |
| 19022 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 19023 | else |
| 19024 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 19025 | fi |
| 19026 | else |
| 19027 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 19028 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 19029 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 19030 | fi |
| 19031 | if test "$with_threads" = 'yes'; then |
| 19032 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 19033 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 19034 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 19035 | fi |
| 19036 | fi |
| 19037 | |
| 19038 | |
| 19039 | |
| 19040 | # Check standard headers |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19041 | { $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] | 19042 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19043 | if test "${ac_cv_header_stdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19044 | $as_echo_n "(cached) " >&6 |
| 19045 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19047 | /* end confdefs.h. */ |
| 19048 | #include <stdlib.h> |
| 19049 | #include <stdarg.h> |
| 19050 | #include <string.h> |
| 19051 | #include <float.h> |
| 19052 | |
| 19053 | int |
| 19054 | main () |
| 19055 | { |
| 19056 | |
| 19057 | ; |
| 19058 | return 0; |
| 19059 | } |
| 19060 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19061 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19062 | ac_cv_header_stdc=yes |
| 19063 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19064 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19065 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19067 | |
| 19068 | if test $ac_cv_header_stdc = yes; then |
| 19069 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19071 | /* end confdefs.h. */ |
| 19072 | #include <string.h> |
| 19073 | |
| 19074 | _ACEOF |
| 19075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19076 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 19077 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19078 | else |
| 19079 | ac_cv_header_stdc=no |
| 19080 | fi |
| 19081 | rm -f conftest* |
| 19082 | |
| 19083 | fi |
| 19084 | |
| 19085 | if test $ac_cv_header_stdc = yes; then |
| 19086 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19088 | /* end confdefs.h. */ |
| 19089 | #include <stdlib.h> |
| 19090 | |
| 19091 | _ACEOF |
| 19092 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19093 | $EGREP "free" >/dev/null 2>&1; then : |
| 19094 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19095 | else |
| 19096 | ac_cv_header_stdc=no |
| 19097 | fi |
| 19098 | rm -f conftest* |
| 19099 | |
| 19100 | fi |
| 19101 | |
| 19102 | if test $ac_cv_header_stdc = yes; then |
| 19103 | # /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] | 19104 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19105 | : |
| 19106 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19108 | /* end confdefs.h. */ |
| 19109 | #include <ctype.h> |
| 19110 | #include <stdlib.h> |
| 19111 | #if ((' ' & 0x0FF) == 0x020) |
| 19112 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 19113 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 19114 | #else |
| 19115 | # define ISLOWER(c) \ |
| 19116 | (('a' <= (c) && (c) <= 'i') \ |
| 19117 | || ('j' <= (c) && (c) <= 'r') \ |
| 19118 | || ('s' <= (c) && (c) <= 'z')) |
| 19119 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 19120 | #endif |
| 19121 | |
| 19122 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 19123 | int |
| 19124 | main () |
| 19125 | { |
| 19126 | int i; |
| 19127 | for (i = 0; i < 256; i++) |
| 19128 | if (XOR (islower (i), ISLOWER (i)) |
| 19129 | || toupper (i) != TOUPPER (i)) |
| 19130 | return 2; |
| 19131 | return 0; |
| 19132 | } |
| 19133 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19134 | if ac_fn_c_try_run "$LINENO"; then : |
| 19135 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19136 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19137 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19138 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19139 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19140 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19141 | fi |
| 19142 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19143 | fi |
| 19144 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19146 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 19147 | if test $ac_cv_header_stdc = yes; then |
| 19148 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19149 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19150 | |
| 19151 | fi |
| 19152 | |
| 19153 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19154 | { $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] | 19155 | header files. Compilation cannot proceed. Please install the ANSI C |
| 19156 | headers and rerun this script." >&5 |
| 19157 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 19158 | header files. Compilation cannot proceed. Please install the ANSI C |
| 19159 | headers and rerun this script." >&2;}; |
| 19160 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19161 | ac_header_dirent=no |
| 19162 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 19163 | 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] | 19164 | { $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] | 19165 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19166 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19167 | $as_echo_n "(cached) " >&6 |
| 19168 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19170 | /* end confdefs.h. */ |
| 19171 | #include <sys/types.h> |
| 19172 | #include <$ac_hdr> |
| 19173 | |
| 19174 | int |
| 19175 | main () |
| 19176 | { |
| 19177 | if ((DIR *) 0) |
| 19178 | return 0; |
| 19179 | ; |
| 19180 | return 0; |
| 19181 | } |
| 19182 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19183 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19184 | eval "$as_ac_Header=yes" |
| 19185 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19186 | eval "$as_ac_Header=no" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19187 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19189 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19190 | eval ac_res=\$$as_ac_Header |
| 19191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19192 | $as_echo "$ac_res" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19193 | eval as_val=\$$as_ac_Header |
| 19194 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19195 | cat >>confdefs.h <<_ACEOF |
| 19196 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 19197 | _ACEOF |
| 19198 | |
| 19199 | ac_header_dirent=$ac_hdr; break |
| 19200 | fi |
| 19201 | |
| 19202 | done |
| 19203 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 19204 | if test $ac_header_dirent = dirent.h; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19206 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19207 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19208 | $as_echo_n "(cached) " >&6 |
| 19209 | else |
| 19210 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19212 | /* end confdefs.h. */ |
| 19213 | |
| 19214 | /* Override any GCC internal prototype to avoid an error. |
| 19215 | Use char because int might match the return type of a GCC |
| 19216 | builtin and then its argument prototype would still apply. */ |
| 19217 | #ifdef __cplusplus |
| 19218 | extern "C" |
| 19219 | #endif |
| 19220 | char opendir (); |
| 19221 | int |
| 19222 | main () |
| 19223 | { |
| 19224 | return opendir (); |
| 19225 | ; |
| 19226 | return 0; |
| 19227 | } |
| 19228 | _ACEOF |
| 19229 | for ac_lib in '' dir; do |
| 19230 | if test -z "$ac_lib"; then |
| 19231 | ac_res="none required" |
| 19232 | else |
| 19233 | ac_res=-l$ac_lib |
| 19234 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19235 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19236 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19237 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19238 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19239 | rm -f core conftest.err conftest.$ac_objext \ |
| 19240 | conftest$ac_exeext |
| 19241 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19242 | break |
| 19243 | fi |
| 19244 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19245 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 19246 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19247 | else |
| 19248 | ac_cv_search_opendir=no |
| 19249 | fi |
| 19250 | rm conftest.$ac_ext |
| 19251 | LIBS=$ac_func_search_save_LIBS |
| 19252 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19254 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 19255 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19256 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19257 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19258 | |
| 19259 | fi |
| 19260 | |
| 19261 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19263 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19264 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19265 | $as_echo_n "(cached) " >&6 |
| 19266 | else |
| 19267 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19269 | /* end confdefs.h. */ |
| 19270 | |
| 19271 | /* Override any GCC internal prototype to avoid an error. |
| 19272 | Use char because int might match the return type of a GCC |
| 19273 | builtin and then its argument prototype would still apply. */ |
| 19274 | #ifdef __cplusplus |
| 19275 | extern "C" |
| 19276 | #endif |
| 19277 | char opendir (); |
| 19278 | int |
| 19279 | main () |
| 19280 | { |
| 19281 | return opendir (); |
| 19282 | ; |
| 19283 | return 0; |
| 19284 | } |
| 19285 | _ACEOF |
| 19286 | for ac_lib in '' x; do |
| 19287 | if test -z "$ac_lib"; then |
| 19288 | ac_res="none required" |
| 19289 | else |
| 19290 | ac_res=-l$ac_lib |
| 19291 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 19292 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19293 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19294 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19295 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19296 | rm -f core conftest.err conftest.$ac_objext \ |
| 19297 | conftest$ac_exeext |
| 19298 | if test "${ac_cv_search_opendir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19299 | break |
| 19300 | fi |
| 19301 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19302 | if test "${ac_cv_search_opendir+set}" = set; then : |
| 19303 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19304 | else |
| 19305 | ac_cv_search_opendir=no |
| 19306 | fi |
| 19307 | rm conftest.$ac_ext |
| 19308 | LIBS=$ac_func_search_save_LIBS |
| 19309 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19311 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 19312 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19313 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19314 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 19315 | |
| 19316 | fi |
| 19317 | |
| 19318 | fi |
| 19319 | |
| 19320 | |
| 19321 | # Check additional headers |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19322 | for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19323 | do : |
| 19324 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 19325 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 19326 | eval as_val=\$$as_ac_Header |
| 19327 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19328 | cat >>confdefs.h <<_ACEOF |
| 19329 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 19330 | _ACEOF |
| 19331 | |
| 19332 | fi |
| 19333 | |
| 19334 | done |
| 19335 | |
| 19336 | |
| 19337 | ######## |
| 19338 | # |
| 19339 | # Checks for typedefs, structures, and compiler characteristics. |
| 19340 | # |
| 19341 | ######## |
| 19342 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19343 | { $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] | 19344 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19345 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19346 | $as_echo_n "(cached) " >&6 |
| 19347 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19349 | /* end confdefs.h. */ |
| 19350 | |
| 19351 | #include <stdbool.h> |
| 19352 | #ifndef bool |
| 19353 | "error: bool is not defined" |
| 19354 | #endif |
| 19355 | #ifndef false |
| 19356 | "error: false is not defined" |
| 19357 | #endif |
| 19358 | #if false |
| 19359 | "error: false is not 0" |
| 19360 | #endif |
| 19361 | #ifndef true |
| 19362 | "error: true is not defined" |
| 19363 | #endif |
| 19364 | #if true != 1 |
| 19365 | "error: true is not 1" |
| 19366 | #endif |
| 19367 | #ifndef __bool_true_false_are_defined |
| 19368 | "error: __bool_true_false_are_defined is not defined" |
| 19369 | #endif |
| 19370 | |
| 19371 | struct s { _Bool s: 1; _Bool t; } s; |
| 19372 | |
| 19373 | char a[true == 1 ? 1 : -1]; |
| 19374 | char b[false == 0 ? 1 : -1]; |
| 19375 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 19376 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 19377 | bool e = &s; |
| 19378 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 19379 | char g[true]; |
| 19380 | char h[sizeof (_Bool)]; |
| 19381 | char i[sizeof s.t]; |
| 19382 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 19383 | /* The following fails for |
| 19384 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 19385 | _Bool n[m]; |
| 19386 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 19387 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 19388 | # if defined __xlc__ || defined __GNUC__ |
| 19389 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
| 19390 | reported by James Lemley on 2005-10-05; see |
| 19391 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
| 19392 | This test is not quite right, since xlc is allowed to |
| 19393 | reject this program, as the initializer for xlcbug is |
| 19394 | not one of the forms that C requires support for. |
| 19395 | However, doing the test right would require a runtime |
| 19396 | test, and that would make cross-compilation harder. |
| 19397 | Let us hope that IBM fixes the xlc bug, and also adds |
| 19398 | support for this kind of constant expression. In the |
| 19399 | meantime, this test will reject xlc, which is OK, since |
| 19400 | our stdbool.h substitute should suffice. We also test |
| 19401 | this with GCC, where it should work, to detect more |
| 19402 | quickly whether someone messes up the test in the |
| 19403 | future. */ |
| 19404 | char digs[] = "0123456789"; |
| 19405 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
| 19406 | # endif |
| 19407 | /* Catch a bug in an HP-UX C compiler. See |
| 19408 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 19409 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 19410 | */ |
| 19411 | _Bool q = true; |
| 19412 | _Bool *pq = &q; |
| 19413 | |
| 19414 | int |
| 19415 | main () |
| 19416 | { |
| 19417 | |
| 19418 | *pq |= q; |
| 19419 | *pq |= ! q; |
| 19420 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 19421 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 19422 | + !m + !n + !o + !p + !q + !pq); |
| 19423 | |
| 19424 | ; |
| 19425 | return 0; |
| 19426 | } |
| 19427 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19428 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19429 | ac_cv_header_stdbool_h=yes |
| 19430 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19431 | ac_cv_header_stdbool_h=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19432 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19434 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19435 | { $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] | 19436 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19437 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 19438 | if test "x$ac_cv_type__Bool" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19439 | |
| 19440 | cat >>confdefs.h <<_ACEOF |
| 19441 | #define HAVE__BOOL 1 |
| 19442 | _ACEOF |
| 19443 | |
| 19444 | |
| 19445 | fi |
| 19446 | |
| 19447 | if test $ac_cv_header_stdbool_h = yes; then |
| 19448 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19449 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19450 | |
| 19451 | fi |
| 19452 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19454 | $as_echo_n "checking for working volatile... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19455 | if test "${ac_cv_c_volatile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19456 | $as_echo_n "(cached) " >&6 |
| 19457 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19459 | /* end confdefs.h. */ |
| 19460 | |
| 19461 | int |
| 19462 | main () |
| 19463 | { |
| 19464 | |
| 19465 | volatile int x; |
| 19466 | int * volatile y = (int *) 0; |
| 19467 | return !x && !y; |
| 19468 | ; |
| 19469 | return 0; |
| 19470 | } |
| 19471 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19472 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19473 | ac_cv_c_volatile=yes |
| 19474 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19475 | ac_cv_c_volatile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19476 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19477 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19478 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19480 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 19481 | if test $ac_cv_c_volatile = no; then |
| 19482 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19483 | $as_echo "#define volatile /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19484 | |
| 19485 | fi |
| 19486 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19488 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19489 | if test "${ac_cv_c_stringize+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19490 | $as_echo_n "(cached) " >&6 |
| 19491 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19493 | /* end confdefs.h. */ |
| 19494 | #define x(y) #y |
| 19495 | |
| 19496 | char *s = x(teststring); |
| 19497 | _ACEOF |
| 19498 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19499 | $EGREP "#teststring" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19500 | ac_cv_c_stringize=no |
| 19501 | else |
| 19502 | ac_cv_c_stringize=yes |
| 19503 | fi |
| 19504 | rm -f conftest* |
| 19505 | |
| 19506 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19508 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 19509 | if test $ac_cv_c_stringize = yes; then |
| 19510 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19511 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19512 | |
| 19513 | fi |
| 19514 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19515 | { $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] | 19516 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19517 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19518 | $as_echo_n "(cached) " >&6 |
| 19519 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19521 | /* end confdefs.h. */ |
| 19522 | #include <sys/types.h> |
| 19523 | #include <sys/stat.h> |
| 19524 | |
| 19525 | #if defined S_ISBLK && defined S_IFDIR |
| 19526 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 19527 | #endif |
| 19528 | |
| 19529 | #if defined S_ISBLK && defined S_IFCHR |
| 19530 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 19531 | #endif |
| 19532 | |
| 19533 | #if defined S_ISLNK && defined S_IFREG |
| 19534 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 19535 | #endif |
| 19536 | |
| 19537 | #if defined S_ISSOCK && defined S_IFREG |
| 19538 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 19539 | #endif |
| 19540 | |
| 19541 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19542 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19543 | ac_cv_header_stat_broken=no |
| 19544 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19545 | ac_cv_header_stat_broken=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19546 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19548 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19549 | { $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] | 19550 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 19551 | if test $ac_cv_header_stat_broken = yes; then |
| 19552 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19553 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19554 | |
| 19555 | fi |
| 19556 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19557 | { $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] | 19558 | $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] | 19559 | if test "${ac_cv_header_time+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19560 | $as_echo_n "(cached) " >&6 |
| 19561 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19563 | /* end confdefs.h. */ |
| 19564 | #include <sys/types.h> |
| 19565 | #include <sys/time.h> |
| 19566 | #include <time.h> |
| 19567 | |
| 19568 | int |
| 19569 | main () |
| 19570 | { |
| 19571 | if ((struct tm *) 0) |
| 19572 | return 0; |
| 19573 | ; |
| 19574 | return 0; |
| 19575 | } |
| 19576 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19577 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19578 | ac_cv_header_time=yes |
| 19579 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19580 | ac_cv_header_time=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19581 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19582 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19583 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19585 | $as_echo "$ac_cv_header_time" >&6; } |
| 19586 | if test $ac_cv_header_time = yes; then |
| 19587 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19588 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19589 | |
| 19590 | fi |
| 19591 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19592 | { $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] | 19593 | $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] | 19594 | if test "${ac_cv_struct_tm+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19595 | $as_echo_n "(cached) " >&6 |
| 19596 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19598 | /* end confdefs.h. */ |
| 19599 | #include <sys/types.h> |
| 19600 | #include <time.h> |
| 19601 | |
| 19602 | int |
| 19603 | main () |
| 19604 | { |
| 19605 | struct tm tm; |
| 19606 | int *p = &tm.tm_sec; |
| 19607 | return !p; |
| 19608 | ; |
| 19609 | return 0; |
| 19610 | } |
| 19611 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19612 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19613 | ac_cv_struct_tm=time.h |
| 19614 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19615 | ac_cv_struct_tm=sys/time.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19616 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19618 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19620 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 19621 | if test $ac_cv_struct_tm = sys/time.h; then |
| 19622 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19623 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19624 | |
| 19625 | fi |
| 19626 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19627 | { $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] | 19628 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19629 | if test "${ac_cv_sys_interpreter+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19630 | $as_echo_n "(cached) " >&6 |
| 19631 | else |
| 19632 | echo '#! /bin/cat |
| 19633 | exit 69 |
| 19634 | ' >conftest |
| 19635 | chmod u+x conftest |
| 19636 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 19637 | if test $? -ne 69; then |
| 19638 | ac_cv_sys_interpreter=yes |
| 19639 | else |
| 19640 | ac_cv_sys_interpreter=no |
| 19641 | fi |
| 19642 | rm -f conftest |
| 19643 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19645 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 19646 | interpval=$ac_cv_sys_interpreter |
| 19647 | |
| 19648 | |
| 19649 | # If the C compiler does not fully support the ANSI C qualifier const, |
| 19650 | # define const to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19652 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19653 | if test "${ac_cv_c_const+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19654 | $as_echo_n "(cached) " >&6 |
| 19655 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19657 | /* end confdefs.h. */ |
| 19658 | |
| 19659 | int |
| 19660 | main () |
| 19661 | { |
| 19662 | /* FIXME: Include the comments suggested by Paul. */ |
| 19663 | #ifndef __cplusplus |
| 19664 | /* Ultrix mips cc rejects this. */ |
| 19665 | typedef int charset[2]; |
| 19666 | const charset cs; |
| 19667 | /* SunOS 4.1.1 cc rejects this. */ |
| 19668 | char const *const *pcpcc; |
| 19669 | char **ppc; |
| 19670 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 19671 | struct point {int x, y;}; |
| 19672 | static struct point const zero = {0,0}; |
| 19673 | /* AIX XL C 1.02.0.0 rejects this. |
| 19674 | It does not let you subtract one const X* pointer from another in |
| 19675 | an arm of an if-expression whose if-part is not a constant |
| 19676 | expression */ |
| 19677 | const char *g = "string"; |
| 19678 | pcpcc = &g + (g ? g-g : 0); |
| 19679 | /* HPUX 7.0 cc rejects these. */ |
| 19680 | ++pcpcc; |
| 19681 | ppc = (char**) pcpcc; |
| 19682 | pcpcc = (char const *const *) ppc; |
| 19683 | { /* SCO 3.2v4 cc rejects this. */ |
| 19684 | char *t; |
| 19685 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 19686 | |
| 19687 | *t++ = 0; |
| 19688 | if (s) return 0; |
| 19689 | } |
| 19690 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 19691 | int x[] = {25, 17}; |
| 19692 | const int *foo = &x[0]; |
| 19693 | ++foo; |
| 19694 | } |
| 19695 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 19696 | typedef const int *iptr; |
| 19697 | iptr p = 0; |
| 19698 | ++p; |
| 19699 | } |
| 19700 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 19701 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 19702 | struct s { int j; const int *ap[3]; }; |
| 19703 | struct s *b; b->j = 5; |
| 19704 | } |
| 19705 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 19706 | const int foo = 10; |
| 19707 | if (!foo) return 0; |
| 19708 | } |
| 19709 | return !cs[0] && !zero.x; |
| 19710 | #endif |
| 19711 | |
| 19712 | ; |
| 19713 | return 0; |
| 19714 | } |
| 19715 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19716 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19717 | ac_cv_c_const=yes |
| 19718 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19719 | ac_cv_c_const=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19720 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19722 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19724 | $as_echo "$ac_cv_c_const" >&6; } |
| 19725 | if test $ac_cv_c_const = no; then |
| 19726 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19727 | $as_echo "#define const /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19728 | |
| 19729 | fi |
| 19730 | |
| 19731 | |
| 19732 | # If the C compiler supports the keyword inline, do nothing. Otherwise |
| 19733 | # define inline to __inline__ or __inline if it accepts one of those, |
| 19734 | # otherwise define inline to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19736 | $as_echo_n "checking for inline... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19737 | if test "${ac_cv_c_inline+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19738 | $as_echo_n "(cached) " >&6 |
| 19739 | else |
| 19740 | ac_cv_c_inline=no |
| 19741 | for ac_kw in inline __inline__ __inline; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19743 | /* end confdefs.h. */ |
| 19744 | #ifndef __cplusplus |
| 19745 | typedef int foo_t; |
| 19746 | static $ac_kw foo_t static_foo () {return 0; } |
| 19747 | $ac_kw foo_t foo () {return 0; } |
| 19748 | #endif |
| 19749 | |
| 19750 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19751 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19752 | ac_cv_c_inline=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19753 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19755 | test "$ac_cv_c_inline" != no && break |
| 19756 | done |
| 19757 | |
| 19758 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19760 | $as_echo "$ac_cv_c_inline" >&6; } |
| 19761 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19762 | case $ac_cv_c_inline in |
| 19763 | inline | yes) ;; |
| 19764 | *) |
| 19765 | case $ac_cv_c_inline in |
| 19766 | no) ac_val=;; |
| 19767 | *) ac_val=$ac_cv_c_inline;; |
| 19768 | esac |
| 19769 | cat >>confdefs.h <<_ACEOF |
| 19770 | #ifndef __cplusplus |
| 19771 | #define inline $ac_val |
| 19772 | #endif |
| 19773 | _ACEOF |
| 19774 | ;; |
| 19775 | esac |
| 19776 | |
| 19777 | |
| 19778 | # If the C compiler supports the keyword restrict, do nothing. Otherwise |
| 19779 | # define restrict to __restrict__ or __restrict if it accepts one of those, |
| 19780 | # otherwise define restrict to be empty. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19781 | { $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] | 19782 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19783 | if test "${ac_cv_c_restrict+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19784 | $as_echo_n "(cached) " >&6 |
| 19785 | else |
| 19786 | ac_cv_c_restrict=no |
| 19787 | # The order here caters to the fact that C++ does not require restrict. |
| 19788 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19790 | /* end confdefs.h. */ |
| 19791 | typedef int * int_ptr; |
| 19792 | int foo (int_ptr $ac_kw ip) { |
| 19793 | return ip[0]; |
| 19794 | } |
| 19795 | int |
| 19796 | main () |
| 19797 | { |
| 19798 | int s[1]; |
| 19799 | int * $ac_kw t = s; |
| 19800 | t[0] = 0; |
| 19801 | return foo(t) |
| 19802 | ; |
| 19803 | return 0; |
| 19804 | } |
| 19805 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19806 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19807 | ac_cv_c_restrict=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19808 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19810 | test "$ac_cv_c_restrict" != no && break |
| 19811 | done |
| 19812 | |
| 19813 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19815 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 19816 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19817 | case $ac_cv_c_restrict in |
| 19818 | restrict) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19819 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19820 | ;; |
| 19821 | *) cat >>confdefs.h <<_ACEOF |
| 19822 | #define restrict $ac_cv_c_restrict |
| 19823 | _ACEOF |
| 19824 | ;; |
| 19825 | esac |
| 19826 | |
| 19827 | |
| 19828 | # If words are stored with the most significant byte first (like |
| 19829 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19830 | { $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] | 19831 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19832 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19833 | $as_echo_n "(cached) " >&6 |
| 19834 | else |
| 19835 | ac_cv_c_bigendian=unknown |
| 19836 | # See if we're dealing with a universal compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19838 | /* end confdefs.h. */ |
| 19839 | #ifndef __APPLE_CC__ |
| 19840 | not a universal capable compiler |
| 19841 | #endif |
| 19842 | typedef int dummy; |
| 19843 | |
| 19844 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19845 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19846 | |
| 19847 | # Check for potential -arch flags. It is not universal unless |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19848 | # there are at least two -arch flags with different values. |
| 19849 | ac_arch= |
| 19850 | ac_prev= |
| 19851 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 19852 | if test -n "$ac_prev"; then |
| 19853 | case $ac_word in |
| 19854 | i?86 | x86_64 | ppc | ppc64) |
| 19855 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 19856 | ac_arch=$ac_word |
| 19857 | else |
| 19858 | ac_cv_c_bigendian=universal |
| 19859 | break |
| 19860 | fi |
| 19861 | ;; |
| 19862 | esac |
| 19863 | ac_prev= |
| 19864 | elif test "x$ac_word" = "x-arch"; then |
| 19865 | ac_prev=arch |
| 19866 | fi |
| 19867 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19868 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19870 | if test $ac_cv_c_bigendian = unknown; then |
| 19871 | # See if sys/param.h defines the BYTE_ORDER macro. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19873 | /* end confdefs.h. */ |
| 19874 | #include <sys/types.h> |
| 19875 | #include <sys/param.h> |
| 19876 | |
| 19877 | int |
| 19878 | main () |
| 19879 | { |
| 19880 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 19881 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 19882 | && LITTLE_ENDIAN) |
| 19883 | bogus endian macros |
| 19884 | #endif |
| 19885 | |
| 19886 | ; |
| 19887 | return 0; |
| 19888 | } |
| 19889 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19890 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19891 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19893 | /* end confdefs.h. */ |
| 19894 | #include <sys/types.h> |
| 19895 | #include <sys/param.h> |
| 19896 | |
| 19897 | int |
| 19898 | main () |
| 19899 | { |
| 19900 | #if BYTE_ORDER != BIG_ENDIAN |
| 19901 | not big endian |
| 19902 | #endif |
| 19903 | |
| 19904 | ; |
| 19905 | return 0; |
| 19906 | } |
| 19907 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19908 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19909 | ac_cv_c_bigendian=yes |
| 19910 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19911 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19912 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19914 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19916 | fi |
| 19917 | if test $ac_cv_c_bigendian = unknown; then |
| 19918 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19920 | /* end confdefs.h. */ |
| 19921 | #include <limits.h> |
| 19922 | |
| 19923 | int |
| 19924 | main () |
| 19925 | { |
| 19926 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 19927 | bogus endian macros |
| 19928 | #endif |
| 19929 | |
| 19930 | ; |
| 19931 | return 0; |
| 19932 | } |
| 19933 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19934 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19935 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19937 | /* end confdefs.h. */ |
| 19938 | #include <limits.h> |
| 19939 | |
| 19940 | int |
| 19941 | main () |
| 19942 | { |
| 19943 | #ifndef _BIG_ENDIAN |
| 19944 | not big endian |
| 19945 | #endif |
| 19946 | |
| 19947 | ; |
| 19948 | return 0; |
| 19949 | } |
| 19950 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19951 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19952 | ac_cv_c_bigendian=yes |
| 19953 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19954 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19955 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19957 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19959 | fi |
| 19960 | if test $ac_cv_c_bigendian = unknown; then |
| 19961 | # Compile a test program. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19962 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19963 | # Try to guess by grepping values from an object file. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19965 | /* end confdefs.h. */ |
| 19966 | short int ascii_mm[] = |
| 19967 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 19968 | short int ascii_ii[] = |
| 19969 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 19970 | int use_ascii (int i) { |
| 19971 | return ascii_mm[i] + ascii_ii[i]; |
| 19972 | } |
| 19973 | short int ebcdic_ii[] = |
| 19974 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 19975 | short int ebcdic_mm[] = |
| 19976 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 19977 | int use_ebcdic (int i) { |
| 19978 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 19979 | } |
| 19980 | extern int foo; |
| 19981 | |
| 19982 | int |
| 19983 | main () |
| 19984 | { |
| 19985 | return use_ascii (foo) == use_ebcdic (foo); |
| 19986 | ; |
| 19987 | return 0; |
| 19988 | } |
| 19989 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19990 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19991 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 19992 | ac_cv_c_bigendian=yes |
| 19993 | fi |
| 19994 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 19995 | if test "$ac_cv_c_bigendian" = unknown; then |
| 19996 | ac_cv_c_bigendian=no |
| 19997 | else |
| 19998 | # finding both strings is unlikely to happen, but who knows? |
| 19999 | ac_cv_c_bigendian=unknown |
| 20000 | fi |
| 20001 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20002 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20004 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20006 | /* end confdefs.h. */ |
| 20007 | $ac_includes_default |
| 20008 | int |
| 20009 | main () |
| 20010 | { |
| 20011 | |
| 20012 | /* Are we little or big endian? From Harbison&Steele. */ |
| 20013 | union |
| 20014 | { |
| 20015 | long int l; |
| 20016 | char c[sizeof (long int)]; |
| 20017 | } u; |
| 20018 | u.l = 1; |
| 20019 | return u.c[sizeof (long int) - 1] == 1; |
| 20020 | |
| 20021 | ; |
| 20022 | return 0; |
| 20023 | } |
| 20024 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20025 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20026 | ac_cv_c_bigendian=no |
| 20027 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20028 | ac_cv_c_bigendian=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20029 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20031 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20032 | fi |
| 20033 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20034 | fi |
| 20035 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20037 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 20038 | case $ac_cv_c_bigendian in #( |
| 20039 | yes) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20040 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20041 | ;; #( |
| 20042 | no) |
| 20043 | ;; #( |
| 20044 | universal) |
| 20045 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20046 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20047 | |
| 20048 | ;; #( |
| 20049 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20050 | as_fn_error "unknown endianness |
| 20051 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20052 | esac |
| 20053 | |
| 20054 | |
| 20055 | # 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] | 20056 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 20057 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20058 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20059 | else |
| 20060 | |
| 20061 | cat >>confdefs.h <<_ACEOF |
| 20062 | #define mode_t int |
| 20063 | _ACEOF |
| 20064 | |
| 20065 | fi |
| 20066 | |
| 20067 | |
| 20068 | # 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] | 20069 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 20070 | if test "x$ac_cv_type_off_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20071 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20072 | else |
| 20073 | |
| 20074 | cat >>confdefs.h <<_ACEOF |
| 20075 | #define off_t long int |
| 20076 | _ACEOF |
| 20077 | |
| 20078 | fi |
| 20079 | |
| 20080 | |
| 20081 | # 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] | 20082 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 20083 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20084 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20085 | else |
| 20086 | |
| 20087 | cat >>confdefs.h <<_ACEOF |
| 20088 | #define pid_t int |
| 20089 | _ACEOF |
| 20090 | |
| 20091 | fi |
| 20092 | |
| 20093 | |
| 20094 | # 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] | 20095 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 20096 | if test "x$ac_cv_type_size_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20097 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20098 | else |
| 20099 | |
| 20100 | cat >>confdefs.h <<_ACEOF |
| 20101 | #define size_t unsigned int |
| 20102 | _ACEOF |
| 20103 | |
| 20104 | fi |
| 20105 | |
| 20106 | |
| 20107 | # 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] | 20108 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 20109 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20110 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20111 | else |
| 20112 | |
| 20113 | cat >>confdefs.h <<_ACEOF |
| 20114 | #define ssize_t int |
| 20115 | _ACEOF |
| 20116 | |
| 20117 | fi |
| 20118 | |
| 20119 | |
| 20120 | # If the C compiler supports a working long double type with more range |
| 20121 | # or precision than the double type, define HAVE_LONG_DOUBLE. |
| 20122 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20123 | { $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] | 20124 | $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] | 20125 | if test "${ac_cv_type_long_double_wider+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20126 | $as_echo_n "(cached) " >&6 |
| 20127 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20129 | /* end confdefs.h. */ |
| 20130 | #include <float.h> |
| 20131 | long double const a[] = |
| 20132 | { |
| 20133 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 20134 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 20135 | }; |
| 20136 | long double |
| 20137 | f (long double x) |
| 20138 | { |
| 20139 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 20140 | + (x ? f (x) : 'c')); |
| 20141 | } |
| 20142 | |
| 20143 | int |
| 20144 | main () |
| 20145 | { |
| 20146 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 20147 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 20148 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 20149 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 20150 | && (int) LDBL_EPSILON == 0 |
| 20151 | )]; |
| 20152 | test_array [0] = 0 |
| 20153 | |
| 20154 | ; |
| 20155 | return 0; |
| 20156 | } |
| 20157 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20158 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20159 | ac_cv_type_long_double_wider=yes |
| 20160 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20161 | ac_cv_type_long_double_wider=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20162 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20164 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20165 | { $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] | 20166 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 20167 | if test $ac_cv_type_long_double_wider = yes; then |
| 20168 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20169 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20170 | |
| 20171 | fi |
| 20172 | |
| 20173 | |
| 20174 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the |
| 20175 | # C compiler predefines it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20177 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20178 | if test "${ac_cv_c_char_unsigned+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20179 | $as_echo_n "(cached) " >&6 |
| 20180 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20182 | /* end confdefs.h. */ |
| 20183 | $ac_includes_default |
| 20184 | int |
| 20185 | main () |
| 20186 | { |
| 20187 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 20188 | test_array [0] = 0 |
| 20189 | |
| 20190 | ; |
| 20191 | return 0; |
| 20192 | } |
| 20193 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20194 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20195 | ac_cv_c_char_unsigned=no |
| 20196 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20197 | ac_cv_c_char_unsigned=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20198 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20200 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20201 | { $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] | 20202 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 20203 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20204 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20205 | |
| 20206 | fi |
| 20207 | |
| 20208 | |
| 20209 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 20210 | # The cast to long int works around a bug in the HP C Compiler |
| 20211 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20212 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20213 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20215 | $as_echo_n "checking size of signed short... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20216 | if test "${ac_cv_sizeof_signed_short+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20217 | $as_echo_n "(cached) " >&6 |
| 20218 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20219 | 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] | 20220 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20221 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20222 | if test "$ac_cv_type_signed_short" = yes; then |
| 20223 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20224 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20225 | { as_fn_set_status 77 |
| 20226 | as_fn_error "cannot compute sizeof (signed short) |
| 20227 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20228 | else |
| 20229 | ac_cv_sizeof_signed_short=0 |
| 20230 | fi |
| 20231 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20232 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20233 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20234 | { $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] | 20235 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 20236 | |
| 20237 | |
| 20238 | |
| 20239 | cat >>confdefs.h <<_ACEOF |
| 20240 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 20241 | _ACEOF |
| 20242 | |
| 20243 | |
| 20244 | |
| 20245 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 20246 | # The cast to long int works around a bug in the HP C Compiler |
| 20247 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20248 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20249 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20251 | $as_echo_n "checking size of unsigned short... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20252 | if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20253 | $as_echo_n "(cached) " >&6 |
| 20254 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20255 | 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] | 20256 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20257 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20258 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 20259 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20260 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20261 | { as_fn_set_status 77 |
| 20262 | as_fn_error "cannot compute sizeof (unsigned short) |
| 20263 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20264 | else |
| 20265 | ac_cv_sizeof_unsigned_short=0 |
| 20266 | fi |
| 20267 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20268 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20269 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20270 | { $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] | 20271 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 20272 | |
| 20273 | |
| 20274 | |
| 20275 | cat >>confdefs.h <<_ACEOF |
| 20276 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 20277 | _ACEOF |
| 20278 | |
| 20279 | |
| 20280 | |
| 20281 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 20282 | # The cast to long int works around a bug in the HP C Compiler |
| 20283 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20284 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20285 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20287 | $as_echo_n "checking size of signed int... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20288 | if test "${ac_cv_sizeof_signed_int+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20289 | $as_echo_n "(cached) " >&6 |
| 20290 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20291 | 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] | 20292 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20293 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20294 | if test "$ac_cv_type_signed_int" = yes; then |
| 20295 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20296 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20297 | { as_fn_set_status 77 |
| 20298 | as_fn_error "cannot compute sizeof (signed int) |
| 20299 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20300 | else |
| 20301 | ac_cv_sizeof_signed_int=0 |
| 20302 | fi |
| 20303 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20304 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20305 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20306 | { $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] | 20307 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 20308 | |
| 20309 | |
| 20310 | |
| 20311 | cat >>confdefs.h <<_ACEOF |
| 20312 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 20313 | _ACEOF |
| 20314 | |
| 20315 | |
| 20316 | |
| 20317 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 20318 | # The cast to long int works around a bug in the HP C Compiler |
| 20319 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20320 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20321 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20323 | $as_echo_n "checking size of unsigned int... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20324 | if test "${ac_cv_sizeof_unsigned_int+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20325 | $as_echo_n "(cached) " >&6 |
| 20326 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20327 | 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] | 20328 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20329 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20330 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 20331 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20332 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20333 | { as_fn_set_status 77 |
| 20334 | as_fn_error "cannot compute sizeof (unsigned int) |
| 20335 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20336 | else |
| 20337 | ac_cv_sizeof_unsigned_int=0 |
| 20338 | fi |
| 20339 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20340 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20341 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20342 | { $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] | 20343 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 20344 | |
| 20345 | |
| 20346 | |
| 20347 | cat >>confdefs.h <<_ACEOF |
| 20348 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 20349 | _ACEOF |
| 20350 | |
| 20351 | |
| 20352 | |
| 20353 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 20354 | # The cast to long int works around a bug in the HP C Compiler |
| 20355 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20356 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20357 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20359 | $as_echo_n "checking size of signed long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20360 | if test "${ac_cv_sizeof_signed_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20361 | $as_echo_n "(cached) " >&6 |
| 20362 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20363 | 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] | 20364 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20365 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20366 | if test "$ac_cv_type_signed_long" = yes; then |
| 20367 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20368 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20369 | { as_fn_set_status 77 |
| 20370 | as_fn_error "cannot compute sizeof (signed long) |
| 20371 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20372 | else |
| 20373 | ac_cv_sizeof_signed_long=0 |
| 20374 | fi |
| 20375 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20376 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20377 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20378 | { $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] | 20379 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 20380 | |
| 20381 | |
| 20382 | |
| 20383 | cat >>confdefs.h <<_ACEOF |
| 20384 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 20385 | _ACEOF |
| 20386 | |
| 20387 | |
| 20388 | |
| 20389 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 20390 | # The cast to long int works around a bug in the HP C Compiler |
| 20391 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20392 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20393 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20395 | $as_echo_n "checking size of unsigned long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20396 | if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20397 | $as_echo_n "(cached) " >&6 |
| 20398 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20399 | 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] | 20400 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20401 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20402 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 20403 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20404 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20405 | { as_fn_set_status 77 |
| 20406 | as_fn_error "cannot compute sizeof (unsigned long) |
| 20407 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20408 | else |
| 20409 | ac_cv_sizeof_unsigned_long=0 |
| 20410 | fi |
| 20411 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20412 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20413 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20414 | { $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] | 20415 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 20416 | |
| 20417 | |
| 20418 | |
| 20419 | cat >>confdefs.h <<_ACEOF |
| 20420 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 20421 | _ACEOF |
| 20422 | |
| 20423 | |
| 20424 | |
| 20425 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 20426 | # 'signed long long' is not supported then the value defined is zero. |
| 20427 | # The cast to long int works around a bug in the HP C Compiler |
| 20428 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20429 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20430 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20431 | { $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] | 20432 | $as_echo_n "checking size of signed long long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20433 | if test "${ac_cv_sizeof_signed_long_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20434 | $as_echo_n "(cached) " >&6 |
| 20435 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20436 | 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] | 20437 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20438 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20439 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 20440 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20442 | { as_fn_set_status 77 |
| 20443 | as_fn_error "cannot compute sizeof (signed long long) |
| 20444 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20445 | else |
| 20446 | ac_cv_sizeof_signed_long_long=0 |
| 20447 | fi |
| 20448 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20449 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20450 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20451 | { $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] | 20452 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 20453 | |
| 20454 | |
| 20455 | |
| 20456 | cat >>confdefs.h <<_ACEOF |
| 20457 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 20458 | _ACEOF |
| 20459 | |
| 20460 | |
| 20461 | |
| 20462 | # Obtain size of a 'unsigned long long' and define as |
| 20463 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 20464 | # supported then the value defined is zero. |
| 20465 | # The cast to long int works around a bug in the HP C Compiler |
| 20466 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20467 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20468 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20469 | { $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] | 20470 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20471 | if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20472 | $as_echo_n "(cached) " >&6 |
| 20473 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20474 | 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] | 20475 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20476 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20477 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 20478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20480 | { as_fn_set_status 77 |
| 20481 | as_fn_error "cannot compute sizeof (unsigned long long) |
| 20482 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20483 | else |
| 20484 | ac_cv_sizeof_unsigned_long_long=0 |
| 20485 | fi |
| 20486 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20487 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20488 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20489 | { $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] | 20490 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 20491 | |
| 20492 | |
| 20493 | |
| 20494 | cat >>confdefs.h <<_ACEOF |
| 20495 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 20496 | _ACEOF |
| 20497 | |
| 20498 | |
| 20499 | |
| 20500 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 20501 | # The cast to long int works around a bug in the HP C Compiler |
| 20502 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20503 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20504 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20506 | $as_echo_n "checking size of off_t... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20507 | if test "${ac_cv_sizeof_off_t+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20508 | $as_echo_n "(cached) " >&6 |
| 20509 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20510 | 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] | 20511 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20512 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20513 | if test "$ac_cv_type_off_t" = yes; then |
| 20514 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20515 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20516 | { as_fn_set_status 77 |
| 20517 | as_fn_error "cannot compute sizeof (off_t) |
| 20518 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20519 | else |
| 20520 | ac_cv_sizeof_off_t=0 |
| 20521 | fi |
| 20522 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20523 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20524 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20525 | { $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] | 20526 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 20527 | |
| 20528 | |
| 20529 | |
| 20530 | cat >>confdefs.h <<_ACEOF |
| 20531 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 20532 | _ACEOF |
| 20533 | |
| 20534 | |
| 20535 | |
| 20536 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 20537 | # The cast to long int works around a bug in the HP C Compiler |
| 20538 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20539 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20540 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20542 | $as_echo_n "checking size of size_t... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20543 | if test "${ac_cv_sizeof_size_t+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20544 | $as_echo_n "(cached) " >&6 |
| 20545 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20546 | 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] | 20547 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20548 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20549 | if test "$ac_cv_type_size_t" = yes; then |
| 20550 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20551 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20552 | { as_fn_set_status 77 |
| 20553 | as_fn_error "cannot compute sizeof (size_t) |
| 20554 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20555 | else |
| 20556 | ac_cv_sizeof_size_t=0 |
| 20557 | fi |
| 20558 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20559 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20560 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20561 | { $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] | 20562 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 20563 | |
| 20564 | |
| 20565 | |
| 20566 | cat >>confdefs.h <<_ACEOF |
| 20567 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 20568 | _ACEOF |
| 20569 | |
| 20570 | |
| 20571 | |
| 20572 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 20573 | # The cast to long int works around a bug in the HP C Compiler |
| 20574 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 20575 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 20576 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20578 | $as_echo_n "checking size of unsigned int*... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20579 | if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20580 | $as_echo_n "(cached) " >&6 |
| 20581 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20582 | 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] | 20583 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20584 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20585 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 20586 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20588 | { as_fn_set_status 77 |
| 20589 | as_fn_error "cannot compute sizeof (unsigned int*) |
| 20590 | See \`config.log' for more details." "$LINENO" 5; }; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20591 | else |
| 20592 | ac_cv_sizeof_unsigned_intp=0 |
| 20593 | fi |
| 20594 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20595 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20596 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20597 | { $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] | 20598 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 20599 | |
| 20600 | |
| 20601 | |
| 20602 | cat >>confdefs.h <<_ACEOF |
| 20603 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 20604 | _ACEOF |
| 20605 | |
| 20606 | |
| 20607 | |
| 20608 | # |
| 20609 | # Compute sized types for current CPU and compiler options. |
| 20610 | # |
| 20611 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20612 | { $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] | 20613 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 20614 | INT8_T='signed char' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20616 | $as_echo "$INT8_T" >&6; } |
| 20617 | |
| 20618 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20619 | { $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] | 20620 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 20621 | UINT8_T='unsigned char' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20623 | $as_echo "$UINT8_T" >&6; } |
| 20624 | |
| 20625 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20626 | { $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] | 20627 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 20628 | INT16_T='signed short' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20630 | $as_echo "$INT16_T" >&6; } |
| 20631 | |
| 20632 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20633 | { $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] | 20634 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 20635 | UINT16_T='unsigned short' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20637 | $as_echo "$UINT16_T" >&6; } |
| 20638 | |
| 20639 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20640 | { $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] | 20641 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 20642 | INT32_T='none' |
| 20643 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 20644 | INT32_T='signed int' |
| 20645 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 20646 | INT32_T='signed long' |
| 20647 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20649 | $as_echo "$INT32_T" >&6; } |
| 20650 | |
| 20651 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20652 | { $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] | 20653 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 20654 | UINT32_T='none' |
| 20655 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 20656 | UINT32_T='unsigned int' |
| 20657 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 20658 | UINT32_T='unsigned long' |
| 20659 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20661 | $as_echo "$UINT32_T" >&6; } |
| 20662 | |
| 20663 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20664 | { $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] | 20665 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 20666 | INT64_T='none' |
| 20667 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 20668 | INT64_T='signed long' |
| 20669 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 20670 | INT64_T='signed long long' |
| 20671 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20673 | $as_echo "$INT64_T" >&6; } |
| 20674 | |
| 20675 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20676 | { $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] | 20677 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 20678 | UINT64_T='none' |
| 20679 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 20680 | UINT64_T='unsigned long' |
| 20681 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 20682 | UINT64_T='unsigned long long' |
| 20683 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20685 | $as_echo "$UINT64_T" >&6; } |
| 20686 | |
| 20687 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20689 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 20690 | UINTMAX_T='none' |
| 20691 | if test "$UINT64_T" != 'none'; then |
| 20692 | UINTMAX_T=$UINT64_T |
| 20693 | elif test "$UINT32_T" != 'none'; then |
| 20694 | UINTMAX_T=$UINT32_T |
| 20695 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20697 | $as_echo "$UINTMAX_T" >&6; } |
| 20698 | |
| 20699 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20701 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 20702 | UINTPTR_T='none' |
| 20703 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 20704 | UINTPTR_T='unsigned long' |
| 20705 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 20706 | UINTPTR_T='unsigned long long' |
| 20707 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20709 | $as_echo "$UINTPTR_T" >&6; } |
| 20710 | |
| 20711 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20712 | { $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] | 20713 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20715 | /* end confdefs.h. */ |
| 20716 | |
| 20717 | int |
| 20718 | main () |
| 20719 | { |
| 20720 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 20721 | ; |
| 20722 | return 0; |
| 20723 | } |
| 20724 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20725 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20727 | $as_echo "yes" >&6; } |
| 20728 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20730 | $as_echo "no" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20731 | { $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] | 20732 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20734 | /* end confdefs.h. */ |
| 20735 | |
| 20736 | int |
| 20737 | main () |
| 20738 | { |
| 20739 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 20740 | ; |
| 20741 | return 0; |
| 20742 | } |
| 20743 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20744 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20746 | $as_echo "yes" >&6; } |
| 20747 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20748 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20749 | |
| 20750 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20752 | $as_echo "no" >&6; } |
| 20753 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20754 | $as_echo "#define __func__ __FILE__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20755 | |
| 20756 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20758 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20760 | |
| 20761 | ######## |
| 20762 | # |
| 20763 | # Check for functions |
| 20764 | # |
| 20765 | ######## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20766 | for ac_header in stdlib.h unistd.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20767 | do : |
| 20768 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 20769 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 20770 | eval as_val=\$$as_ac_Header |
| 20771 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20772 | cat >>confdefs.h <<_ACEOF |
| 20773 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20774 | _ACEOF |
| 20775 | |
| 20776 | fi |
| 20777 | |
| 20778 | done |
| 20779 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20780 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20781 | do : |
| 20782 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 20783 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20784 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20785 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20786 | _ACEOF |
| 20787 | |
| 20788 | fi |
| 20789 | done |
| 20790 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20792 | $as_echo_n "checking for working mmap file i/o... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20793 | if test "${magick_cv_func_mmap_fileio+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20794 | $as_echo_n "(cached) " >&6 |
| 20795 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20796 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20797 | magick_cv_func_mmap_fileio=no |
| 20798 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20800 | /* end confdefs.h. */ |
| 20801 | $ac_includes_default |
| 20802 | /* malloc might have been renamed as rpl_malloc. */ |
| 20803 | #undef malloc |
| 20804 | |
| 20805 | /* |
| 20806 | This test is derived from GNU Autoconf's similar macro. |
| 20807 | The purpose of this test is to verify that files may be memory |
| 20808 | mapped, and that memory mapping and file I/O are coherent. |
| 20809 | |
| 20810 | The test creates a test file, memory maps the file, updates |
| 20811 | the file using the memory map, and then reads the file using |
| 20812 | file I/O to verify that the file contains the updates. |
| 20813 | */ |
| 20814 | |
| 20815 | #include <fcntl.h> |
| 20816 | #include <sys/mman.h> |
| 20817 | |
| 20818 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 20819 | char *malloc (); |
| 20820 | #endif |
| 20821 | |
| 20822 | /* This mess was copied from the GNU getpagesize.h. */ |
| 20823 | #if !HAVE_GETPAGESIZE |
| 20824 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 20825 | # if !HAVE_SYS_PARAM_H |
| 20826 | # define HAVE_SYS_PARAM_H 1 |
| 20827 | # endif |
| 20828 | |
| 20829 | # ifdef _SC_PAGESIZE |
| 20830 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 20831 | # else /* no _SC_PAGESIZE */ |
| 20832 | # if HAVE_SYS_PARAM_H |
| 20833 | # include <sys/param.h> |
| 20834 | # ifdef EXEC_PAGESIZE |
| 20835 | # define getpagesize() EXEC_PAGESIZE |
| 20836 | # else /* no EXEC_PAGESIZE */ |
| 20837 | # ifdef NBPG |
| 20838 | # define getpagesize() NBPG * CLSIZE |
| 20839 | # ifndef CLSIZE |
| 20840 | # define CLSIZE 1 |
| 20841 | # endif /* no CLSIZE */ |
| 20842 | # else /* no NBPG */ |
| 20843 | # ifdef NBPC |
| 20844 | # define getpagesize() NBPC |
| 20845 | # else /* no NBPC */ |
| 20846 | # ifdef PAGESIZE |
| 20847 | # define getpagesize() PAGESIZE |
| 20848 | # endif /* PAGESIZE */ |
| 20849 | # endif /* no NBPC */ |
| 20850 | # endif /* no NBPG */ |
| 20851 | # endif /* no EXEC_PAGESIZE */ |
| 20852 | # else /* no HAVE_SYS_PARAM_H */ |
| 20853 | # define getpagesize() 8192 /* punt totally */ |
| 20854 | # endif /* no HAVE_SYS_PARAM_H */ |
| 20855 | # endif /* no _SC_PAGESIZE */ |
| 20856 | |
| 20857 | #endif /* no HAVE_GETPAGESIZE */ |
| 20858 | |
| 20859 | int |
| 20860 | main () |
| 20861 | { |
| 20862 | char *data, *data2, *data3; |
| 20863 | int i, pagesize; |
| 20864 | int fd; |
| 20865 | |
| 20866 | pagesize = getpagesize (); |
| 20867 | |
| 20868 | /* First, make a file with some known garbage in it. */ |
| 20869 | data = (char *) malloc (pagesize); |
| 20870 | if (!data) |
| 20871 | exit (1); |
| 20872 | for (i = 0; i < pagesize; ++i) |
| 20873 | *(data + i) = rand (); |
| 20874 | umask (0); |
| 20875 | fd = creat ("conftest.mmap", 0600); |
| 20876 | if (fd < 0) |
| 20877 | exit (1); |
| 20878 | if (write (fd, data, pagesize) != pagesize) |
| 20879 | exit (1); |
| 20880 | close (fd); |
| 20881 | |
| 20882 | /* Mmap the file as read/write/shared and verify that we see the |
| 20883 | same garbage. */ |
| 20884 | fd = open ("conftest.mmap", O_RDWR); |
| 20885 | if (fd < 0) |
| 20886 | exit (1); |
| 20887 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); |
| 20888 | if (data2 == 0) |
| 20889 | exit (1); |
| 20890 | for (i = 0; i < pagesize; ++i) |
| 20891 | if (*(data + i) != *(data2 + i)) |
| 20892 | exit (1); |
| 20893 | |
| 20894 | /* Finally, make sure that changes to the mapped area |
| 20895 | percolate back to the file as seen by read(). */ |
| 20896 | for (i = 0; i < pagesize; ++i) |
| 20897 | *(data2 + i) = *(data2 + i) + 1; |
| 20898 | data3 = (char *) malloc (pagesize); |
| 20899 | if (!data3) |
| 20900 | exit (1); |
| 20901 | if (read (fd, data3, pagesize) != pagesize) |
| 20902 | exit (1); |
| 20903 | for (i = 0; i < pagesize; ++i) |
| 20904 | if (*(data2 + i) != *(data3 + i)) |
| 20905 | exit (1); |
| 20906 | close (fd); |
| 20907 | exit (0); |
| 20908 | } |
| 20909 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20910 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20911 | magick_cv_func_mmap_fileio=yes |
| 20912 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20913 | magick_cv_func_mmap_fileio=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20914 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20915 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20916 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20917 | fi |
| 20918 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20919 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20921 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } |
| 20922 | if test $magick_cv_func_mmap_fileio = yes; then |
| 20923 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20924 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20925 | |
| 20926 | fi |
| 20927 | rm -f conftest.mmap |
| 20928 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20930 | $as_echo_n "checking whether closedir returns void... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20931 | if test "${ac_cv_func_closedir_void+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20932 | $as_echo_n "(cached) " >&6 |
| 20933 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20934 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20935 | ac_cv_func_closedir_void=yes |
| 20936 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20938 | /* end confdefs.h. */ |
| 20939 | $ac_includes_default |
| 20940 | #include <$ac_header_dirent> |
| 20941 | #ifndef __cplusplus |
| 20942 | int closedir (); |
| 20943 | #endif |
| 20944 | |
| 20945 | int |
| 20946 | main () |
| 20947 | { |
| 20948 | return closedir (opendir (".")) != 0; |
| 20949 | ; |
| 20950 | return 0; |
| 20951 | } |
| 20952 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20953 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20954 | ac_cv_func_closedir_void=no |
| 20955 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20956 | ac_cv_func_closedir_void=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20957 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20959 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20960 | fi |
| 20961 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20962 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20963 | { $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] | 20964 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 20965 | if test $ac_cv_func_closedir_void = yes; then |
| 20966 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20967 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20968 | |
| 20969 | fi |
| 20970 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 20971 | |
| 20972 | |
| 20973 | |
| 20974 | for ac_header in $ac_header_list |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20975 | do : |
| 20976 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 20977 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 20978 | " |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20979 | eval as_val=\$$as_ac_Header |
| 20980 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20981 | cat >>confdefs.h <<_ACEOF |
| 20982 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 20983 | _ACEOF |
| 20984 | |
| 20985 | fi |
| 20986 | |
| 20987 | done |
| 20988 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 20989 | |
| 20990 | |
| 20991 | |
| 20992 | |
| 20993 | |
| 20994 | |
| 20995 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20996 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20997 | do : |
| 20998 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 20999 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21000 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21001 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21002 | _ACEOF |
| 21003 | |
| 21004 | fi |
| 21005 | done |
| 21006 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21008 | $as_echo_n "checking for working mmap... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21009 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21010 | $as_echo_n "(cached) " >&6 |
| 21011 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21012 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21013 | ac_cv_func_mmap_fixed_mapped=no |
| 21014 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21016 | /* end confdefs.h. */ |
| 21017 | $ac_includes_default |
| 21018 | /* malloc might have been renamed as rpl_malloc. */ |
| 21019 | #undef malloc |
| 21020 | |
| 21021 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 21022 | Here is a matrix of mmap possibilities: |
| 21023 | mmap private not fixed |
| 21024 | mmap private fixed at somewhere currently unmapped |
| 21025 | mmap private fixed at somewhere already mapped |
| 21026 | mmap shared not fixed |
| 21027 | mmap shared fixed at somewhere currently unmapped |
| 21028 | mmap shared fixed at somewhere already mapped |
| 21029 | For private mappings, we should verify that changes cannot be read() |
| 21030 | back from the file, nor mmap's back from the file at a different |
| 21031 | address. (There have been systems where private was not correctly |
| 21032 | implemented like the infamous i386 svr4.0, and systems where the |
| 21033 | VM page cache was not coherent with the file system buffer cache |
| 21034 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 21035 | For shared mappings, we should conversely verify that changes get |
| 21036 | propagated back to all the places they're supposed to be. |
| 21037 | |
| 21038 | Grep wants private fixed already mapped. |
| 21039 | The main things grep needs to know about mmap are: |
| 21040 | * does it exist and is it safe to write into the mmap'd area |
| 21041 | * how to use it (BSD variants) */ |
| 21042 | |
| 21043 | #include <fcntl.h> |
| 21044 | #include <sys/mman.h> |
| 21045 | |
| 21046 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 21047 | char *malloc (); |
| 21048 | #endif |
| 21049 | |
| 21050 | /* This mess was copied from the GNU getpagesize.h. */ |
| 21051 | #ifndef HAVE_GETPAGESIZE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21052 | # ifdef _SC_PAGESIZE |
| 21053 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 21054 | # else /* no _SC_PAGESIZE */ |
| 21055 | # ifdef HAVE_SYS_PARAM_H |
| 21056 | # include <sys/param.h> |
| 21057 | # ifdef EXEC_PAGESIZE |
| 21058 | # define getpagesize() EXEC_PAGESIZE |
| 21059 | # else /* no EXEC_PAGESIZE */ |
| 21060 | # ifdef NBPG |
| 21061 | # define getpagesize() NBPG * CLSIZE |
| 21062 | # ifndef CLSIZE |
| 21063 | # define CLSIZE 1 |
| 21064 | # endif /* no CLSIZE */ |
| 21065 | # else /* no NBPG */ |
| 21066 | # ifdef NBPC |
| 21067 | # define getpagesize() NBPC |
| 21068 | # else /* no NBPC */ |
| 21069 | # ifdef PAGESIZE |
| 21070 | # define getpagesize() PAGESIZE |
| 21071 | # endif /* PAGESIZE */ |
| 21072 | # endif /* no NBPC */ |
| 21073 | # endif /* no NBPG */ |
| 21074 | # endif /* no EXEC_PAGESIZE */ |
| 21075 | # else /* no HAVE_SYS_PARAM_H */ |
| 21076 | # define getpagesize() 8192 /* punt totally */ |
| 21077 | # endif /* no HAVE_SYS_PARAM_H */ |
| 21078 | # endif /* no _SC_PAGESIZE */ |
| 21079 | |
| 21080 | #endif /* no HAVE_GETPAGESIZE */ |
| 21081 | |
| 21082 | int |
| 21083 | main () |
| 21084 | { |
| 21085 | char *data, *data2, *data3; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 21086 | const char *cdata2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21087 | int i, pagesize; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21088 | int fd, fd2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21089 | |
| 21090 | pagesize = getpagesize (); |
| 21091 | |
| 21092 | /* First, make a file with some known garbage in it. */ |
| 21093 | data = (char *) malloc (pagesize); |
| 21094 | if (!data) |
| 21095 | return 1; |
| 21096 | for (i = 0; i < pagesize; ++i) |
| 21097 | *(data + i) = rand (); |
| 21098 | umask (0); |
| 21099 | fd = creat ("conftest.mmap", 0600); |
| 21100 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21101 | return 2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21102 | if (write (fd, data, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21103 | return 3; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21104 | close (fd); |
| 21105 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21106 | /* Next, check that the tail of a page is zero-filled. File must have |
| 21107 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 21108 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 21109 | if (fd2 < 0) |
| 21110 | return 4; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 21111 | cdata2 = ""; |
| 21112 | if (write (fd2, cdata2, 1) != 1) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21113 | return 5; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 21114 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21115 | if (data2 == MAP_FAILED) |
| 21116 | return 6; |
| 21117 | for (i = 0; i < pagesize; ++i) |
| 21118 | if (*(data2 + i)) |
| 21119 | return 7; |
| 21120 | close (fd2); |
| 21121 | if (munmap (data2, pagesize)) |
| 21122 | return 8; |
| 21123 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21124 | /* Next, try to mmap the file at a fixed address which already has |
| 21125 | something else allocated at it. If we can, also make sure that |
| 21126 | we see the same garbage. */ |
| 21127 | fd = open ("conftest.mmap", O_RDWR); |
| 21128 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21129 | return 9; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21130 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 21131 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21132 | return 10; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21133 | for (i = 0; i < pagesize; ++i) |
| 21134 | if (*(data + i) != *(data2 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21135 | return 11; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21136 | |
| 21137 | /* Finally, make sure that changes to the mapped area do not |
| 21138 | percolate back to the file as seen by read(). (This is a bug on |
| 21139 | some variants of i386 svr4.0.) */ |
| 21140 | for (i = 0; i < pagesize; ++i) |
| 21141 | *(data2 + i) = *(data2 + i) + 1; |
| 21142 | data3 = (char *) malloc (pagesize); |
| 21143 | if (!data3) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21144 | return 12; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21145 | if (read (fd, data3, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21146 | return 13; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21147 | for (i = 0; i < pagesize; ++i) |
| 21148 | if (*(data + i) != *(data3 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21149 | return 14; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21150 | close (fd); |
| 21151 | return 0; |
| 21152 | } |
| 21153 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21154 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21155 | ac_cv_func_mmap_fixed_mapped=yes |
| 21156 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21157 | ac_cv_func_mmap_fixed_mapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21158 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21159 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21160 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21161 | fi |
| 21162 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21163 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21164 | { $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] | 21165 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 21166 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 21167 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21168 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21169 | |
| 21170 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 21171 | rm -f conftest.mmap conftest.txt |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21172 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21173 | for ac_header in vfork.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21174 | do : |
| 21175 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| 21176 | if test "x$ac_cv_header_vfork_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21177 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21178 | #define HAVE_VFORK_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21179 | _ACEOF |
| 21180 | |
| 21181 | fi |
| 21182 | |
| 21183 | done |
| 21184 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21185 | for ac_func in fork vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21186 | do : |
| 21187 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21188 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21189 | eval as_val=\$$as_ac_var |
| 21190 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21191 | cat >>confdefs.h <<_ACEOF |
| 21192 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21193 | _ACEOF |
| 21194 | |
| 21195 | fi |
| 21196 | done |
| 21197 | |
| 21198 | if test "x$ac_cv_func_fork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21200 | $as_echo_n "checking for working fork... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21201 | if test "${ac_cv_func_fork_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21202 | $as_echo_n "(cached) " >&6 |
| 21203 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21204 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21205 | ac_cv_func_fork_works=cross |
| 21206 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21208 | /* end confdefs.h. */ |
| 21209 | $ac_includes_default |
| 21210 | int |
| 21211 | main () |
| 21212 | { |
| 21213 | |
| 21214 | /* By Ruediger Kuhlmann. */ |
| 21215 | return fork () < 0; |
| 21216 | |
| 21217 | ; |
| 21218 | return 0; |
| 21219 | } |
| 21220 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21221 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21222 | ac_cv_func_fork_works=yes |
| 21223 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21224 | ac_cv_func_fork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21225 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21226 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21227 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21228 | fi |
| 21229 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21230 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21231 | { $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] | 21232 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 21233 | |
| 21234 | else |
| 21235 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 21236 | fi |
| 21237 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 21238 | case $host in |
| 21239 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 21240 | # Override, as these systems have only a dummy fork() stub |
| 21241 | ac_cv_func_fork_works=no |
| 21242 | ;; |
| 21243 | *) |
| 21244 | ac_cv_func_fork_works=yes |
| 21245 | ;; |
| 21246 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21247 | { $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] | 21248 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 21249 | fi |
| 21250 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 21251 | if test "x$ac_cv_func_vfork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21253 | $as_echo_n "checking for working vfork... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21254 | if test "${ac_cv_func_vfork_works+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21255 | $as_echo_n "(cached) " >&6 |
| 21256 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21257 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21258 | ac_cv_func_vfork_works=cross |
| 21259 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21261 | /* end confdefs.h. */ |
| 21262 | /* Thanks to Paul Eggert for this test. */ |
| 21263 | $ac_includes_default |
| 21264 | #include <sys/wait.h> |
| 21265 | #ifdef HAVE_VFORK_H |
| 21266 | # include <vfork.h> |
| 21267 | #endif |
| 21268 | /* On some sparc systems, changes by the child to local and incoming |
| 21269 | argument registers are propagated back to the parent. The compiler |
| 21270 | is told about this with #include <vfork.h>, but some compilers |
| 21271 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 21272 | static variable whose address is put into a register that is |
| 21273 | clobbered by the vfork. */ |
| 21274 | static void |
| 21275 | #ifdef __cplusplus |
| 21276 | sparc_address_test (int arg) |
| 21277 | # else |
| 21278 | sparc_address_test (arg) int arg; |
| 21279 | #endif |
| 21280 | { |
| 21281 | static pid_t child; |
| 21282 | if (!child) { |
| 21283 | child = vfork (); |
| 21284 | if (child < 0) { |
| 21285 | perror ("vfork"); |
| 21286 | _exit(2); |
| 21287 | } |
| 21288 | if (!child) { |
| 21289 | arg = getpid(); |
| 21290 | write(-1, "", 0); |
| 21291 | _exit (arg); |
| 21292 | } |
| 21293 | } |
| 21294 | } |
| 21295 | |
| 21296 | int |
| 21297 | main () |
| 21298 | { |
| 21299 | pid_t parent = getpid (); |
| 21300 | pid_t child; |
| 21301 | |
| 21302 | sparc_address_test (0); |
| 21303 | |
| 21304 | child = vfork (); |
| 21305 | |
| 21306 | if (child == 0) { |
| 21307 | /* Here is another test for sparc vfork register problems. This |
| 21308 | test uses lots of local variables, at least as many local |
| 21309 | variables as main has allocated so far including compiler |
| 21310 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 21311 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 21312 | reuse the register of parent for one of the local variables, |
| 21313 | since it will think that parent can't possibly be used any more |
| 21314 | in this routine. Assigning to the local variable will thus |
| 21315 | munge parent in the parent process. */ |
| 21316 | pid_t |
| 21317 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 21318 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 21319 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 21320 | use the same hardware register for all 8 local variables. */ |
| 21321 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 21322 | || p != p5 || p != p6 || p != p7) |
| 21323 | _exit(1); |
| 21324 | |
| 21325 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 21326 | from child file descriptors. If the child closes a descriptor |
| 21327 | before it execs or exits, this munges the parent's descriptor |
| 21328 | as well. Test for this by closing stdout in the child. */ |
| 21329 | _exit(close(fileno(stdout)) != 0); |
| 21330 | } else { |
| 21331 | int status; |
| 21332 | struct stat st; |
| 21333 | |
| 21334 | while (wait(&status) != child) |
| 21335 | ; |
| 21336 | return ( |
| 21337 | /* Was there some problem with vforking? */ |
| 21338 | child < 0 |
| 21339 | |
| 21340 | /* Did the child fail? (This shouldn't happen.) */ |
| 21341 | || status |
| 21342 | |
| 21343 | /* Did the vfork/compiler bug occur? */ |
| 21344 | || parent != getpid() |
| 21345 | |
| 21346 | /* Did the file descriptor bug occur? */ |
| 21347 | || fstat(fileno(stdout), &st) != 0 |
| 21348 | ); |
| 21349 | } |
| 21350 | } |
| 21351 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21352 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21353 | ac_cv_func_vfork_works=yes |
| 21354 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21355 | ac_cv_func_vfork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21356 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21357 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21358 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21359 | fi |
| 21360 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21361 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21362 | { $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] | 21363 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 21364 | |
| 21365 | fi; |
| 21366 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 21367 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21368 | { $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] | 21369 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 21370 | fi |
| 21371 | |
| 21372 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 21373 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21374 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21375 | |
| 21376 | else |
| 21377 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21378 | $as_echo "#define vfork fork" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21379 | |
| 21380 | fi |
| 21381 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 21382 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21383 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21384 | |
| 21385 | fi |
| 21386 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21388 | $as_echo_n "checking for working memcmp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21389 | if test "${ac_cv_func_memcmp_working+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21390 | $as_echo_n "(cached) " >&6 |
| 21391 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21392 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21393 | ac_cv_func_memcmp_working=no |
| 21394 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21396 | /* end confdefs.h. */ |
| 21397 | $ac_includes_default |
| 21398 | int |
| 21399 | main () |
| 21400 | { |
| 21401 | |
| 21402 | /* Some versions of memcmp are not 8-bit clean. */ |
| 21403 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 21404 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 21405 | return 1; |
| 21406 | |
| 21407 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 21408 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 21409 | William Lewis provided this test program. */ |
| 21410 | { |
| 21411 | char foo[21]; |
| 21412 | char bar[21]; |
| 21413 | int i; |
| 21414 | for (i = 0; i < 4; i++) |
| 21415 | { |
| 21416 | char *a = foo + i; |
| 21417 | char *b = bar + i; |
| 21418 | strcpy (a, "--------01111111"); |
| 21419 | strcpy (b, "--------10000000"); |
| 21420 | if (memcmp (a, b, 16) >= 0) |
| 21421 | return 1; |
| 21422 | } |
| 21423 | return 0; |
| 21424 | } |
| 21425 | |
| 21426 | ; |
| 21427 | return 0; |
| 21428 | } |
| 21429 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21430 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21431 | ac_cv_func_memcmp_working=yes |
| 21432 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21433 | ac_cv_func_memcmp_working=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21434 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21435 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21436 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21437 | fi |
| 21438 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21439 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21440 | { $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] | 21441 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 21442 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 21443 | *" memcmp.$ac_objext "* ) ;; |
| 21444 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 21445 | ;; |
| 21446 | esac |
| 21447 | |
| 21448 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21449 | for ac_header in sys/select.h sys/socket.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21450 | do : |
| 21451 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21452 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 21453 | eval as_val=\$$as_ac_Header |
| 21454 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21455 | cat >>confdefs.h <<_ACEOF |
| 21456 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21457 | _ACEOF |
| 21458 | |
| 21459 | fi |
| 21460 | |
| 21461 | done |
| 21462 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21463 | { $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] | 21464 | $as_echo_n "checking types of arguments for select... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21465 | if test "${ac_cv_func_select_args+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21466 | $as_echo_n "(cached) " >&6 |
| 21467 | else |
| 21468 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 21469 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 21470 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21472 | /* end confdefs.h. */ |
| 21473 | $ac_includes_default |
| 21474 | #ifdef HAVE_SYS_SELECT_H |
| 21475 | # include <sys/select.h> |
| 21476 | #endif |
| 21477 | #ifdef HAVE_SYS_SOCKET_H |
| 21478 | # include <sys/socket.h> |
| 21479 | #endif |
| 21480 | |
| 21481 | int |
| 21482 | main () |
| 21483 | { |
| 21484 | extern int select ($ac_arg1, |
| 21485 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 21486 | $ac_arg5); |
| 21487 | ; |
| 21488 | return 0; |
| 21489 | } |
| 21490 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21491 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21492 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21493 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21494 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21495 | done |
| 21496 | done |
| 21497 | done |
| 21498 | # Provide a safe default value. |
| 21499 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
| 21500 | |
| 21501 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21502 | { $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] | 21503 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 21504 | ac_save_IFS=$IFS; IFS=',' |
| 21505 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 21506 | IFS=$ac_save_IFS |
| 21507 | shift |
| 21508 | |
| 21509 | cat >>confdefs.h <<_ACEOF |
| 21510 | #define SELECT_TYPE_ARG1 $1 |
| 21511 | _ACEOF |
| 21512 | |
| 21513 | |
| 21514 | cat >>confdefs.h <<_ACEOF |
| 21515 | #define SELECT_TYPE_ARG234 ($2) |
| 21516 | _ACEOF |
| 21517 | |
| 21518 | |
| 21519 | cat >>confdefs.h <<_ACEOF |
| 21520 | #define SELECT_TYPE_ARG5 ($3) |
| 21521 | _ACEOF |
| 21522 | |
| 21523 | rm -f conftest* |
| 21524 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21525 | if test "${ac_cv_func_setvbuf_reversed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21526 | $as_echo_n "(cached) " >&6 |
| 21527 | else |
| 21528 | ac_cv_func_setvbuf_reversed=no |
| 21529 | fi |
| 21530 | |
| 21531 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21532 | { $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] | 21533 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21534 | if test "${ac_cv_type_signal+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21535 | $as_echo_n "(cached) " >&6 |
| 21536 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21538 | /* end confdefs.h. */ |
| 21539 | #include <sys/types.h> |
| 21540 | #include <signal.h> |
| 21541 | |
| 21542 | int |
| 21543 | main () |
| 21544 | { |
| 21545 | return *(signal (0, 0)) (0) == 1; |
| 21546 | ; |
| 21547 | return 0; |
| 21548 | } |
| 21549 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21550 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21551 | ac_cv_type_signal=int |
| 21552 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21553 | ac_cv_type_signal=void |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21554 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21556 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21558 | $as_echo "$ac_cv_type_signal" >&6; } |
| 21559 | |
| 21560 | cat >>confdefs.h <<_ACEOF |
| 21561 | #define RETSIGTYPE $ac_cv_type_signal |
| 21562 | _ACEOF |
| 21563 | |
| 21564 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21566 | $as_echo_n "checking for working strtod... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21567 | if test "${ac_cv_func_strtod+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21568 | $as_echo_n "(cached) " >&6 |
| 21569 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21570 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21571 | ac_cv_func_strtod=no |
| 21572 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21574 | /* end confdefs.h. */ |
| 21575 | |
| 21576 | $ac_includes_default |
| 21577 | #ifndef strtod |
| 21578 | double strtod (); |
| 21579 | #endif |
| 21580 | int |
| 21581 | main() |
| 21582 | { |
| 21583 | { |
| 21584 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 21585 | char *string = " +69"; |
| 21586 | char *term; |
| 21587 | double value; |
| 21588 | value = strtod (string, &term); |
| 21589 | if (value != 69 || term != (string + 4)) |
| 21590 | return 1; |
| 21591 | } |
| 21592 | |
| 21593 | { |
| 21594 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 21595 | terminating character under some conditions. */ |
| 21596 | char *string = "NaN"; |
| 21597 | char *term; |
| 21598 | strtod (string, &term); |
| 21599 | if (term != string && *(term - 1) == 0) |
| 21600 | return 1; |
| 21601 | } |
| 21602 | return 0; |
| 21603 | } |
| 21604 | |
| 21605 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21606 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21607 | ac_cv_func_strtod=yes |
| 21608 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21609 | ac_cv_func_strtod=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21610 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21611 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21612 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21613 | fi |
| 21614 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21615 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21617 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 21618 | if test $ac_cv_func_strtod = no; then |
| 21619 | case " $LIBOBJS " in |
| 21620 | *" strtod.$ac_objext "* ) ;; |
| 21621 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 21622 | ;; |
| 21623 | esac |
| 21624 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21625 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| 21626 | if test "x$ac_cv_func_pow" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21627 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21628 | fi |
| 21629 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21630 | if test $ac_cv_func_pow = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21632 | $as_echo_n "checking for pow in -lm... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21633 | if test "${ac_cv_lib_m_pow+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21634 | $as_echo_n "(cached) " >&6 |
| 21635 | else |
| 21636 | ac_check_lib_save_LIBS=$LIBS |
| 21637 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21639 | /* end confdefs.h. */ |
| 21640 | |
| 21641 | /* Override any GCC internal prototype to avoid an error. |
| 21642 | Use char because int might match the return type of a GCC |
| 21643 | builtin and then its argument prototype would still apply. */ |
| 21644 | #ifdef __cplusplus |
| 21645 | extern "C" |
| 21646 | #endif |
| 21647 | char pow (); |
| 21648 | int |
| 21649 | main () |
| 21650 | { |
| 21651 | return pow (); |
| 21652 | ; |
| 21653 | return 0; |
| 21654 | } |
| 21655 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21656 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21657 | ac_cv_lib_m_pow=yes |
| 21658 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21659 | ac_cv_lib_m_pow=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21660 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21661 | rm -f core conftest.err conftest.$ac_objext \ |
| 21662 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21663 | LIBS=$ac_check_lib_save_LIBS |
| 21664 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21665 | { $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] | 21666 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21667 | if test "x$ac_cv_lib_m_pow" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21668 | POW_LIB=-lm |
| 21669 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21670 | { $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] | 21671 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 21672 | fi |
| 21673 | |
| 21674 | fi |
| 21675 | |
| 21676 | fi |
| 21677 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21678 | for ac_func in vprintf |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21679 | do : |
| 21680 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 21681 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21682 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21683 | #define HAVE_VPRINTF 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21684 | _ACEOF |
| 21685 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21686 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 21687 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21688 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21689 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21690 | |
| 21691 | fi |
| 21692 | |
| 21693 | fi |
| 21694 | done |
| 21695 | |
| 21696 | |
| 21697 | |
| cristy | 5131f3e | 2009-12-18 03:09:10 +0000 | [diff] [blame] | 21698 | for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite 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 strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21699 | do : |
| 21700 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21701 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21702 | eval as_val=\$$as_ac_var |
| 21703 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21704 | cat >>confdefs.h <<_ACEOF |
| 21705 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21706 | _ACEOF |
| 21707 | |
| 21708 | fi |
| 21709 | done |
| 21710 | |
| 21711 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21712 | # |
| 21713 | # Check for clock_gettime(). |
| 21714 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21715 | { $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] | 21716 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21717 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21718 | $as_echo_n "(cached) " >&6 |
| 21719 | else |
| 21720 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21722 | /* end confdefs.h. */ |
| 21723 | |
| 21724 | /* Override any GCC internal prototype to avoid an error. |
| 21725 | Use char because int might match the return type of a GCC |
| 21726 | builtin and then its argument prototype would still apply. */ |
| 21727 | #ifdef __cplusplus |
| 21728 | extern "C" |
| 21729 | #endif |
| 21730 | char clock_gettime (); |
| 21731 | int |
| 21732 | main () |
| 21733 | { |
| 21734 | return clock_gettime (); |
| 21735 | ; |
| 21736 | return 0; |
| 21737 | } |
| 21738 | _ACEOF |
| 21739 | for ac_lib in '' rt; do |
| 21740 | if test -z "$ac_lib"; then |
| 21741 | ac_res="none required" |
| 21742 | else |
| 21743 | ac_res=-l$ac_lib |
| 21744 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21745 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21746 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21747 | ac_cv_search_clock_gettime=$ac_res |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21748 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21749 | rm -f core conftest.err conftest.$ac_objext \ |
| 21750 | conftest$ac_exeext |
| 21751 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21752 | break |
| 21753 | fi |
| 21754 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21755 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 21756 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21757 | else |
| 21758 | ac_cv_search_clock_gettime=no |
| 21759 | fi |
| 21760 | rm conftest.$ac_ext |
| 21761 | LIBS=$ac_func_search_save_LIBS |
| 21762 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21763 | { $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] | 21764 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 21765 | ac_res=$ac_cv_search_clock_gettime |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21766 | if test "$ac_res" != no; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21767 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21768 | |
| 21769 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21770 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21771 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21772 | { $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] | 21773 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21775 | /* end confdefs.h. */ |
| 21776 | #include <time.h> |
| 21777 | int |
| 21778 | main () |
| 21779 | { |
| 21780 | clockid_t clockType = CLOCK_REALTIME; |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21781 | ; |
| 21782 | return 0; |
| 21783 | } |
| 21784 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21785 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21786 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21788 | $as_echo "yes" >&6; } |
| 21789 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21790 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21791 | |
| 21792 | |
| 21793 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21795 | $as_echo "no" >&6; } |
| 21796 | |
| 21797 | fi |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21799 | |
| 21800 | else |
| 21801 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21802 | for ac_func in gettimeofday ftime |
| 21803 | do : |
| 21804 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 21805 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 21806 | eval as_val=\$$as_ac_var |
| 21807 | if test "x$as_val" = x""yes; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 21808 | cat >>confdefs.h <<_ACEOF |
| 21809 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 21810 | _ACEOF |
| 21811 | break |
| 21812 | fi |
| 21813 | done |
| 21814 | |
| 21815 | |
| 21816 | |
| 21817 | fi |
| 21818 | |
| 21819 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21820 | ######## |
| 21821 | # |
| 21822 | # Check for function prototypes |
| 21823 | # |
| 21824 | ######## |
| 21825 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21826 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21827 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21828 | " |
| 21829 | if test "x$ac_cv_have_decl_pread" = x""yes; then : |
| 21830 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21831 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21832 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21833 | fi |
| 21834 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21835 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21836 | #define HAVE_DECL_PREAD $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21837 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21838 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21839 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21840 | " |
| 21841 | if test "x$ac_cv_have_decl_pwrite" = x""yes; then : |
| 21842 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21843 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21844 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21845 | fi |
| 21846 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21847 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21848 | #define HAVE_DECL_PWRITE $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21849 | _ACEOF |
| 21850 | |
| 21851 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21852 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21853 | #include <strings.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21854 | " |
| 21855 | if test "x$ac_cv_have_decl_strlcpy" = x""yes; then : |
| 21856 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21857 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21858 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21859 | fi |
| 21860 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21861 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21862 | #define HAVE_DECL_STRLCPY $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21863 | _ACEOF |
| 21864 | |
| 21865 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21866 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21867 | #include <stdio.h> |
| 21868 | #include <stdarg.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21869 | " |
| 21870 | if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then : |
| 21871 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21872 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21873 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21874 | fi |
| 21875 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21876 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21877 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21878 | _ACEOF |
| 21879 | |
| 21880 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21881 | ######## |
| 21882 | # |
| 21883 | # C++ Support Tests (For Magick++) |
| 21884 | # |
| 21885 | ######## |
| 21886 | have_magick_plus_plus='no' |
| 21887 | if test "$with_magick_plus_plus" = 'yes'; then |
| 21888 | OLIBS="$LIBS" |
| 21889 | LIBS='' |
| 21890 | ac_ext=cpp |
| 21891 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21892 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21893 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21894 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21895 | |
| 21896 | |
| 21897 | # Full set of headers used... |
| 21898 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 21899 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 21900 | ac_ext=cpp |
| 21901 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21905 | |
| 21906 | ac_ext=cpp |
| 21907 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 21908 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 21909 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 21910 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 21911 | if test -z "$CXX"; then |
| 21912 | if test -n "$CCC"; then |
| 21913 | CXX=$CCC |
| 21914 | else |
| 21915 | if test -n "$ac_tool_prefix"; then |
| 21916 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 21917 | do |
| 21918 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 21919 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21921 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21922 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21923 | $as_echo_n "(cached) " >&6 |
| 21924 | else |
| 21925 | if test -n "$CXX"; then |
| 21926 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 21927 | else |
| 21928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21929 | for as_dir in $PATH |
| 21930 | do |
| 21931 | IFS=$as_save_IFS |
| 21932 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 21935 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21936 | $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] | 21937 | break 2 |
| 21938 | fi |
| 21939 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21940 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21941 | IFS=$as_save_IFS |
| 21942 | |
| 21943 | fi |
| 21944 | fi |
| 21945 | CXX=$ac_cv_prog_CXX |
| 21946 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21948 | $as_echo "$CXX" >&6; } |
| 21949 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21951 | $as_echo "no" >&6; } |
| 21952 | fi |
| 21953 | |
| 21954 | |
| 21955 | test -n "$CXX" && break |
| 21956 | done |
| 21957 | fi |
| 21958 | if test -z "$CXX"; then |
| 21959 | ac_ct_CXX=$CXX |
| 21960 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 21961 | do |
| 21962 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 21963 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21965 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21966 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21967 | $as_echo_n "(cached) " >&6 |
| 21968 | else |
| 21969 | if test -n "$ac_ct_CXX"; then |
| 21970 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 21971 | else |
| 21972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 21973 | for as_dir in $PATH |
| 21974 | do |
| 21975 | IFS=$as_save_IFS |
| 21976 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 21979 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21980 | $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] | 21981 | break 2 |
| 21982 | fi |
| 21983 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21984 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21985 | IFS=$as_save_IFS |
| 21986 | |
| 21987 | fi |
| 21988 | fi |
| 21989 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 21990 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21992 | $as_echo "$ac_ct_CXX" >&6; } |
| 21993 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21995 | $as_echo "no" >&6; } |
| 21996 | fi |
| 21997 | |
| 21998 | |
| 21999 | test -n "$ac_ct_CXX" && break |
| 22000 | done |
| 22001 | |
| 22002 | if test "x$ac_ct_CXX" = x; then |
| 22003 | CXX="g++" |
| 22004 | else |
| 22005 | case $cross_compiling:$ac_tool_warned in |
| 22006 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22007 | { $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] | 22008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 22009 | ac_tool_warned=yes ;; |
| 22010 | esac |
| 22011 | CXX=$ac_ct_CXX |
| 22012 | fi |
| 22013 | fi |
| 22014 | |
| 22015 | fi |
| 22016 | fi |
| 22017 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22018 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22019 | set X $ac_compile |
| 22020 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22021 | for ac_option in --version -v -V -qversion; do |
| 22022 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22023 | case "(($ac_try" in |
| 22024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 22025 | *) ac_try_echo=$ac_try;; |
| 22026 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22027 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 22028 | $as_echo "$ac_try_echo"; } >&5 |
| 22029 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22030 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22031 | if test -s conftest.err; then |
| 22032 | sed '10a\ |
| 22033 | ... rest of stderr output deleted ... |
| 22034 | 10q' conftest.err >conftest.er1 |
| 22035 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22036 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22037 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22038 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 22039 | test $ac_status = 0; } |
| 22040 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22041 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22042 | { $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] | 22043 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22044 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22045 | $as_echo_n "(cached) " >&6 |
| 22046 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22048 | /* end confdefs.h. */ |
| 22049 | |
| 22050 | int |
| 22051 | main () |
| 22052 | { |
| 22053 | #ifndef __GNUC__ |
| 22054 | choke me |
| 22055 | #endif |
| 22056 | |
| 22057 | ; |
| 22058 | return 0; |
| 22059 | } |
| 22060 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22061 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22062 | ac_compiler_gnu=yes |
| 22063 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22064 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22065 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22067 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 22068 | |
| 22069 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22070 | { $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] | 22071 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 22072 | if test $ac_compiler_gnu = yes; then |
| 22073 | GXX=yes |
| 22074 | else |
| 22075 | GXX= |
| 22076 | fi |
| 22077 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 22078 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22080 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22081 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22082 | $as_echo_n "(cached) " >&6 |
| 22083 | else |
| 22084 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 22085 | ac_cxx_werror_flag=yes |
| 22086 | ac_cv_prog_cxx_g=no |
| 22087 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22089 | /* end confdefs.h. */ |
| 22090 | |
| 22091 | int |
| 22092 | main () |
| 22093 | { |
| 22094 | |
| 22095 | ; |
| 22096 | return 0; |
| 22097 | } |
| 22098 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22099 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22100 | ac_cv_prog_cxx_g=yes |
| 22101 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22102 | CXXFLAGS="" |
| 22103 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22104 | /* end confdefs.h. */ |
| 22105 | |
| 22106 | int |
| 22107 | main () |
| 22108 | { |
| 22109 | |
| 22110 | ; |
| 22111 | return 0; |
| 22112 | } |
| 22113 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22114 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22115 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22116 | else |
| 22117 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22118 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22120 | /* end confdefs.h. */ |
| 22121 | |
| 22122 | int |
| 22123 | main () |
| 22124 | { |
| 22125 | |
| 22126 | ; |
| 22127 | return 0; |
| 22128 | } |
| 22129 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22130 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22131 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22132 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22134 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22135 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22136 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22138 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 22139 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22140 | { $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] | 22141 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 22142 | if test "$ac_test_CXXFLAGS" = set; then |
| 22143 | CXXFLAGS=$ac_save_CXXFLAGS |
| 22144 | elif test $ac_cv_prog_cxx_g = yes; then |
| 22145 | if test "$GXX" = yes; then |
| 22146 | CXXFLAGS="-g -O2" |
| 22147 | else |
| 22148 | CXXFLAGS="-g" |
| 22149 | fi |
| 22150 | else |
| 22151 | if test "$GXX" = yes; then |
| 22152 | CXXFLAGS="-O2" |
| 22153 | else |
| 22154 | CXXFLAGS= |
| 22155 | fi |
| 22156 | fi |
| 22157 | ac_ext=cpp |
| 22158 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22159 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22160 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22161 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22162 | |
| 22163 | depcc="$CXX" am_compiler_list= |
| 22164 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22166 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22167 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22168 | $as_echo_n "(cached) " >&6 |
| 22169 | else |
| 22170 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 22171 | # We make a subdir and do the tests there. Otherwise we can end up |
| 22172 | # making bogus files that we don't know about and never remove. For |
| 22173 | # instance it was reported that on HP-UX the gcc test will end up |
| 22174 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 22175 | # in D'. |
| 22176 | mkdir conftest.dir |
| 22177 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 22178 | # using a relative directory. |
| 22179 | cp "$am_depcomp" conftest.dir |
| 22180 | cd conftest.dir |
| 22181 | # We will build objects and dependencies in a subdirectory because |
| 22182 | # it helps to detect inapplicable dependency modes. For instance |
| 22183 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 22184 | # side effect of compilation, but ICC will put the dependencies in |
| 22185 | # the current directory while Tru64 will put them in the object |
| 22186 | # directory. |
| 22187 | mkdir sub |
| 22188 | |
| 22189 | am_cv_CXX_dependencies_compiler_type=none |
| 22190 | if test "$am_compiler_list" = ""; then |
| 22191 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 22192 | fi |
| 22193 | am__universal=false |
| 22194 | case " $depcc " in #( |
| 22195 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 22196 | esac |
| 22197 | |
| 22198 | for depmode in $am_compiler_list; do |
| 22199 | # Setup a source with many dependencies, because some compilers |
| 22200 | # like to wrap large dependency lists on column 80 (with \), and |
| 22201 | # we should not choose a depcomp mode which is confused by this. |
| 22202 | # |
| 22203 | # We need to recreate these files for each test, as the compiler may |
| 22204 | # overwrite some of them when testing with obscure command lines. |
| 22205 | # This happens at least with the AIX C compiler. |
| 22206 | : > sub/conftest.c |
| 22207 | for i in 1 2 3 4 5 6; do |
| 22208 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 22209 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 22210 | # Solaris 8's {/usr,}/bin/sh. |
| 22211 | touch sub/conftst$i.h |
| 22212 | done |
| 22213 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 22214 | |
| 22215 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 22216 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 22217 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 22218 | # versions had trouble with output in subdirs |
| 22219 | am__obj=sub/conftest.${OBJEXT-o} |
| 22220 | am__minus_obj="-o $am__obj" |
| 22221 | case $depmode in |
| 22222 | gcc) |
| 22223 | # This depmode causes a compiler race in universal mode. |
| 22224 | test "$am__universal" = false || continue |
| 22225 | ;; |
| 22226 | nosideeffect) |
| 22227 | # after this tag, mechanisms are not by side-effect, so they'll |
| 22228 | # only be used when explicitly requested |
| 22229 | if test "x$enable_dependency_tracking" = xyes; then |
| 22230 | continue |
| 22231 | else |
| 22232 | break |
| 22233 | fi |
| 22234 | ;; |
| 22235 | msvisualcpp | msvcmsys) |
| 22236 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 22237 | # not run yet. These depmodes are late enough in the game, and |
| 22238 | # so weak that their functioning should not be impacted. |
| 22239 | am__obj=conftest.${OBJEXT-o} |
| 22240 | am__minus_obj= |
| 22241 | ;; |
| 22242 | none) break ;; |
| 22243 | esac |
| 22244 | if depmode=$depmode \ |
| 22245 | source=sub/conftest.c object=$am__obj \ |
| 22246 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 22247 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 22248 | >/dev/null 2>conftest.err && |
| 22249 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 22250 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 22251 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 22252 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 22253 | # icc doesn't choke on unknown options, it will just issue warnings |
| 22254 | # or remarks (even with -Werror). So we grep stderr for any message |
| 22255 | # that says an option was ignored or not supported. |
| 22256 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 22257 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 22258 | # The diagnosis changed in icc 8.0: |
| 22259 | # icc: Command line remark: option '-MP' not supported |
| 22260 | if (grep 'ignoring option' conftest.err || |
| 22261 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 22262 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 22263 | break |
| 22264 | fi |
| 22265 | fi |
| 22266 | done |
| 22267 | |
| 22268 | cd .. |
| 22269 | rm -rf conftest.dir |
| 22270 | else |
| 22271 | am_cv_CXX_dependencies_compiler_type=none |
| 22272 | fi |
| 22273 | |
| 22274 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22276 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 22277 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 22278 | |
| 22279 | if |
| 22280 | test "x$enable_dependency_tracking" != xno \ |
| 22281 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 22282 | am__fastdepCXX_TRUE= |
| 22283 | am__fastdepCXX_FALSE='#' |
| 22284 | else |
| 22285 | am__fastdepCXX_TRUE='#' |
| 22286 | am__fastdepCXX_FALSE= |
| 22287 | fi |
| 22288 | |
| 22289 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22291 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22292 | if test "${ac_cv_cxx_have_bool+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22293 | $as_echo_n "(cached) " >&6 |
| 22294 | else |
| 22295 | |
| 22296 | ac_ext=cpp |
| 22297 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22298 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22299 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22300 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22301 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22303 | /* end confdefs.h. */ |
| 22304 | |
| 22305 | int f(int x){return 1;} |
| 22306 | int f(char x){return 1;} |
| 22307 | int f(bool x){return 1;} |
| 22308 | |
| 22309 | int |
| 22310 | main () |
| 22311 | { |
| 22312 | bool b = true; return f(b); |
| 22313 | ; |
| 22314 | return 0; |
| 22315 | } |
| 22316 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22317 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22318 | ac_cv_cxx_have_bool=yes |
| 22319 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22320 | ac_cv_cxx_have_bool=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22321 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22323 | ac_ext=cpp |
| 22324 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22325 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22326 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22327 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22328 | |
| 22329 | |
| 22330 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22332 | $as_echo "$ac_cv_cxx_have_bool" >&6; } |
| 22333 | if test "$ac_cv_cxx_have_bool" = yes; then |
| 22334 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22335 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22336 | |
| 22337 | fi |
| 22338 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22340 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22341 | if test "${ac_cv_cxx_have_namespaces+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22342 | $as_echo_n "(cached) " >&6 |
| 22343 | else |
| 22344 | |
| 22345 | ac_ext=cpp |
| 22346 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22347 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22348 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22349 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22350 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22352 | /* end confdefs.h. */ |
| 22353 | namespace Outer { namespace Inner { int i = 0; }} |
| 22354 | int |
| 22355 | main () |
| 22356 | { |
| 22357 | using namespace Outer::Inner; return i; |
| 22358 | ; |
| 22359 | return 0; |
| 22360 | } |
| 22361 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22362 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22363 | ac_cv_cxx_have_namespaces=yes |
| 22364 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22365 | ac_cv_cxx_have_namespaces=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22366 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22368 | ac_ext=cpp |
| 22369 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22370 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22371 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22372 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22373 | |
| 22374 | |
| 22375 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22377 | $as_echo "$ac_cv_cxx_have_namespaces" >&6; } |
| 22378 | if test "$ac_cv_cxx_have_namespaces" = yes; then |
| 22379 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22380 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22381 | |
| 22382 | fi |
| 22383 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22385 | $as_echo_n "checking whether the compiler supports the std namespace... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22386 | if test "${ac_cv_cxx_have_std_namespace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22387 | $as_echo_n "(cached) " >&6 |
| 22388 | else |
| 22389 | |
| 22390 | ac_ext=cpp |
| 22391 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22395 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22397 | /* end confdefs.h. */ |
| 22398 | #include <iostream> |
| 22399 | std::istream& is = std::cin; |
| 22400 | |
| 22401 | int |
| 22402 | main () |
| 22403 | { |
| 22404 | return 0; |
| 22405 | ; |
| 22406 | return 0; |
| 22407 | } |
| 22408 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22409 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22410 | ac_cv_cxx_have_std_namespace=yes |
| 22411 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22412 | ac_cv_cxx_have_std_namespace=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22413 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22415 | ac_ext=cpp |
| 22416 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22417 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22418 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22419 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22420 | |
| 22421 | |
| 22422 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22424 | $as_echo "$ac_cv_cxx_have_std_namespace" >&6; } |
| 22425 | if test "$ac_cv_cxx_have_std_namespace" = yes; then |
| 22426 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22427 | $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22428 | |
| 22429 | fi |
| 22430 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22432 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22433 | if test "${ac_cv_cxx_have_std_libs+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22434 | $as_echo_n "(cached) " >&6 |
| 22435 | else |
| 22436 | |
| 22437 | |
| 22438 | ac_ext=cpp |
| 22439 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22440 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22441 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22442 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22443 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22445 | /* end confdefs.h. */ |
| 22446 | #include <iostream> |
| 22447 | #include <map> |
| 22448 | #include <iomanip> |
| 22449 | #include <cmath> |
| 22450 | #ifdef HAVE_NAMESPACES |
| 22451 | using namespace std; |
| 22452 | #endif |
| 22453 | int |
| 22454 | main () |
| 22455 | { |
| 22456 | return 0; |
| 22457 | ; |
| 22458 | return 0; |
| 22459 | } |
| 22460 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22461 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22462 | ac_cv_cxx_have_std_libs=yes |
| 22463 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22464 | ac_cv_cxx_have_std_libs=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22465 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22467 | ac_ext=cpp |
| 22468 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22469 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22470 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22471 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22472 | |
| 22473 | |
| 22474 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22476 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } |
| 22477 | if test "$ac_cv_cxx_have_std_libs" = yes; then |
| 22478 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22479 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22480 | |
| 22481 | fi |
| 22482 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22484 | $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22485 | if test "${ac_cv_cxx_have_lstring+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22486 | $as_echo_n "(cached) " >&6 |
| 22487 | else |
| 22488 | |
| 22489 | ac_ext=cpp |
| 22490 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22491 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22492 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22493 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22494 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22496 | /* end confdefs.h. */ |
| 22497 | const wchar_t* s=L"wide string"; |
| 22498 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22499 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22500 | ac_cv_cxx_have_lstring=yes |
| 22501 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22502 | ac_cv_cxx_have_lstring=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22503 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22504 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22505 | ac_ext=cpp |
| 22506 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 22507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 22510 | |
| 22511 | |
| 22512 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22514 | $as_echo "$ac_cv_cxx_have_lstring" >&6; } |
| 22515 | if test "$ac_cv_cxx_have_lstring" = yes; then |
| 22516 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22517 | $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22518 | |
| 22519 | fi |
| 22520 | |
| 22521 | |
| 22522 | OPENMP_CXXFLAGS= |
| 22523 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22524 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22525 | enableval=$enable_openmp; |
| 22526 | fi |
| 22527 | |
| 22528 | if test "$enable_openmp" != no; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 22529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 |
| 22530 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22531 | if test "${ac_cv_prog_cxx_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22532 | $as_echo_n "(cached) " >&6 |
| 22533 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22535 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22536 | |
| 22537 | #ifndef _OPENMP |
| 22538 | choke me |
| 22539 | #endif |
| 22540 | #include <omp.h> |
| 22541 | int main () { return omp_get_num_threads (); } |
| 22542 | |
| 22543 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22544 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22545 | ac_cv_prog_cxx_openmp='none needed' |
| 22546 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22547 | ac_cv_prog_cxx_openmp='unsupported' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22548 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do |
| 22549 | ac_save_CXXFLAGS=$CXXFLAGS |
| 22550 | CXXFLAGS="$CXXFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22552 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22553 | |
| 22554 | #ifndef _OPENMP |
| 22555 | choke me |
| 22556 | #endif |
| 22557 | #include <omp.h> |
| 22558 | int main () { return omp_get_num_threads (); } |
| 22559 | |
| 22560 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22561 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22562 | ac_cv_prog_cxx_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22563 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22564 | rm -f core conftest.err conftest.$ac_objext \ |
| 22565 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22566 | CXXFLAGS=$ac_save_CXXFLAGS |
| 22567 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 22568 | break |
| 22569 | fi |
| 22570 | done |
| 22571 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22572 | rm -f core conftest.err conftest.$ac_objext \ |
| 22573 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22574 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22575 | { $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] | 22576 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 22577 | case $ac_cv_prog_cxx_openmp in #( |
| 22578 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22579 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22580 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22581 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22582 | esac |
| 22583 | fi |
| 22584 | |
| 22585 | |
| 22586 | ac_ext=c |
| 22587 | ac_cpp='$CPP $CPPFLAGS' |
| 22588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22591 | |
| 22592 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22593 | { $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] | 22594 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 22595 | if \ |
| 22596 | test $ac_cv_cxx_have_bool = 'yes' && \ |
| 22597 | test $ac_cv_cxx_have_lstring = 'yes' && \ |
| 22598 | test $ac_cv_cxx_have_namespaces = 'yes' && \ |
| 22599 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
| 22600 | test $ac_cv_cxx_have_std_namespace = 'yes'; then |
| 22601 | have_magick_plus_plus='yes' |
| 22602 | else |
| 22603 | have_magick_plus_plus='no (failed tests)' |
| 22604 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22606 | $as_echo "$have_magick_plus_plus" >&6; } |
| 22607 | LIBS="$OLIBS" |
| 22608 | fi |
| 22609 | if test "$have_magick_plus_plus" = 'yes'; then |
| 22610 | WITH_MAGICK_PLUS_PLUS_TRUE= |
| 22611 | WITH_MAGICK_PLUS_PLUS_FALSE='#' |
| 22612 | else |
| 22613 | WITH_MAGICK_PLUS_PLUS_TRUE='#' |
| 22614 | WITH_MAGICK_PLUS_PLUS_FALSE= |
| 22615 | fi |
| 22616 | |
| 22617 | |
| 22618 | # Only check for delegate libraries in subdirectories if requested. |
| 22619 | if test "$enable_delegate_build" != 'no'; then |
| 22620 | # Check for delegate sub-directories and add -I & -L options as required. |
| 22621 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 22622 | # README. If delegates are installed in a standard location where the |
| 22623 | # compiler will automatically find them then these options should not be |
| 22624 | # required. |
| 22625 | |
| 22626 | # |
| 22627 | # Most delegates have includes in the same directory as the library, but not all... |
| 22628 | # |
| 22629 | # Includes |
| 22630 | for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do |
| 22631 | if test -d "$builddir/$dir"; then |
| 22632 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 22633 | else |
| 22634 | if test -d "$srcdirfull/$dir"; then |
| 22635 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 22636 | fi |
| 22637 | fi |
| 22638 | done |
| 22639 | |
| 22640 | # Libraries |
| 22641 | for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do |
| 22642 | if test -d "$builddir/$dir/.libs"; then |
| 22643 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 22644 | else |
| 22645 | if test -d "$srcdirfull/$dir/.libs"; then |
| 22646 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 22647 | fi |
| 22648 | fi |
| 22649 | if test -d "$builddir/$dir"; then |
| 22650 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 22651 | else |
| 22652 | if test -d "$srcdirfull/$dir"; then |
| 22653 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 22654 | fi |
| 22655 | fi |
| 22656 | done |
| 22657 | fi |
| 22658 | |
| 22659 | # Assume that delegate headers reside under same directory as ImageMagick |
| 22660 | # installation prefix. |
| 22661 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" |
| 22662 | |
| 22663 | # |
| 22664 | # Find the X11 RGB database |
| 22665 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22667 | $as_echo_n "checking for X11 configure files... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22668 | if test "${im_cv_x_configure+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22669 | $as_echo_n "(cached) " >&6 |
| 22670 | else |
| 22671 | # Look for the header file in a standard set of common directories. |
| 22672 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 22673 | for ac_dir in \ |
| 22674 | /lib/usr/lib/X11 \ |
| 22675 | /usr/X11/lib \ |
| 22676 | /usr/X11R4/lib \ |
| 22677 | /usr/X11R5/lib \ |
| 22678 | /usr/X11R6/lib \ |
| 22679 | /usr/X11R7/lib \ |
| 22680 | /usr/X386/lib \ |
| 22681 | /usr/XFree86/lib/X11 \ |
| 22682 | /usr/athena/lib \ |
| 22683 | /usr/lib \ |
| 22684 | /usr/lib/X11 \ |
| 22685 | /usr/lib/X11R4 \ |
| 22686 | /usr/lib/X11R5 \ |
| 22687 | /usr/lib/X11R6 \ |
| 22688 | /usr/lib/X11R7 \ |
| 22689 | /usr/local/X11/lib \ |
| 22690 | /usr/local/X11R4/lib \ |
| 22691 | /usr/local/X11R5/lib \ |
| 22692 | /usr/local/X11R6/lib \ |
| 22693 | /usr/local/lib \ |
| 22694 | /usr/local/lib/X11 \ |
| 22695 | /usr/local/lib/X11R4 \ |
| 22696 | /usr/local/lib/X11R5 \ |
| 22697 | /usr/local/lib/X11R6 \ |
| 22698 | /usr/local/lib/X11R7 \ |
| 22699 | /usr/local/x11r5/lib \ |
| 22700 | /usr/lpp/Xamples/lib \ |
| 22701 | /usr/openwin/lib \ |
| 22702 | /usr/openwin/share/lib \ |
| 22703 | /usr/unsupported/lib \ |
| 22704 | /usr/x386/lib \ |
| 22705 | ; do |
| 22706 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 22707 | im_cv_x_configure="$ac_dir/X11/" |
| 22708 | break |
| 22709 | elif test -f "$ac_dir/rgb.txt"; then |
| 22710 | im_cv_x_configure="$ac_dir/" |
| 22711 | break |
| 22712 | fi |
| 22713 | |
| 22714 | done |
| 22715 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22717 | $as_echo "$im_cv_x_configure" >&6; } |
| 22718 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 22719 | case "${build_os}" in |
| 22720 | mingw* ) |
| 22721 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 22722 | ;; |
| 22723 | esac |
| 22724 | |
| 22725 | cat >>confdefs.h <<_ACEOF |
| 22726 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 22727 | _ACEOF |
| 22728 | |
| 22729 | |
| 22730 | # |
| 22731 | # Find OpenMP library |
| 22732 | # |
| 22733 | GOMP_LIBS='' |
| 22734 | if test "$enable_openmp" != 'no'; then |
| 22735 | if test "${GCC}" = "yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22736 | { $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] | 22737 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22738 | if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22739 | $as_echo_n "(cached) " >&6 |
| 22740 | else |
| 22741 | ac_check_lib_save_LIBS=$LIBS |
| 22742 | LIBS="-lgomp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22744 | /* end confdefs.h. */ |
| 22745 | |
| 22746 | /* Override any GCC internal prototype to avoid an error. |
| 22747 | Use char because int might match the return type of a GCC |
| 22748 | builtin and then its argument prototype would still apply. */ |
| 22749 | #ifdef __cplusplus |
| 22750 | extern "C" |
| 22751 | #endif |
| 22752 | char GOMP_parallel_start (); |
| 22753 | int |
| 22754 | main () |
| 22755 | { |
| 22756 | return GOMP_parallel_start (); |
| 22757 | ; |
| 22758 | return 0; |
| 22759 | } |
| 22760 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22761 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22762 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 22763 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22764 | ac_cv_lib_gomp_GOMP_parallel_start=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22765 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22766 | rm -f core conftest.err conftest.$ac_objext \ |
| 22767 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22768 | LIBS=$ac_check_lib_save_LIBS |
| 22769 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22770 | { $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] | 22771 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22772 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22773 | GOMP_LIBS="-lgomp" |
| 22774 | fi |
| 22775 | # gcc |
| 22776 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22777 | { $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] | 22778 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22779 | if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22780 | $as_echo_n "(cached) " >&6 |
| 22781 | else |
| 22782 | ac_check_lib_save_LIBS=$LIBS |
| 22783 | LIBS="-lmtsk $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22785 | /* end confdefs.h. */ |
| 22786 | |
| 22787 | /* Override any GCC internal prototype to avoid an error. |
| 22788 | Use char because int might match the return type of a GCC |
| 22789 | builtin and then its argument prototype would still apply. */ |
| 22790 | #ifdef __cplusplus |
| 22791 | extern "C" |
| 22792 | #endif |
| 22793 | char sunw_mp_register_warn (); |
| 22794 | int |
| 22795 | main () |
| 22796 | { |
| 22797 | return sunw_mp_register_warn (); |
| 22798 | ; |
| 22799 | return 0; |
| 22800 | } |
| 22801 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22802 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22803 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 22804 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22805 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22806 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22807 | rm -f core conftest.err conftest.$ac_objext \ |
| 22808 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22809 | LIBS=$ac_check_lib_save_LIBS |
| 22810 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22811 | { $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] | 22812 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22813 | 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] | 22814 | GOMP_LIBS="-lmtsk" |
| 22815 | fi |
| 22816 | # solaris cc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22818 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22819 | if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22820 | $as_echo_n "(cached) " >&6 |
| 22821 | else |
| 22822 | ac_check_lib_save_LIBS=$LIBS |
| 22823 | LIBS="-lxlsmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22825 | /* end confdefs.h. */ |
| 22826 | |
| 22827 | /* Override any GCC internal prototype to avoid an error. |
| 22828 | Use char because int might match the return type of a GCC |
| 22829 | builtin and then its argument prototype would still apply. */ |
| 22830 | #ifdef __cplusplus |
| 22831 | extern "C" |
| 22832 | #endif |
| 22833 | char _xlsmpFlush (); |
| 22834 | int |
| 22835 | main () |
| 22836 | { |
| 22837 | return _xlsmpFlush (); |
| 22838 | ; |
| 22839 | return 0; |
| 22840 | } |
| 22841 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22842 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22843 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 22844 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22845 | ac_cv_lib_xlsmp__xlsmpFlush=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22846 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22847 | rm -f core conftest.err conftest.$ac_objext \ |
| 22848 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22849 | LIBS=$ac_check_lib_save_LIBS |
| 22850 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22851 | { $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] | 22852 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22853 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22854 | GOMP_LIBS="-lxlsmp" |
| 22855 | fi |
| 22856 | # AIX xlc |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22857 | { $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] | 22858 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22859 | if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22860 | $as_echo_n "(cached) " >&6 |
| 22861 | else |
| 22862 | ac_check_lib_save_LIBS=$LIBS |
| 22863 | LIBS="-lmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22865 | /* end confdefs.h. */ |
| 22866 | |
| 22867 | /* Override any GCC internal prototype to avoid an error. |
| 22868 | Use char because int might match the return type of a GCC |
| 22869 | builtin and then its argument prototype would still apply. */ |
| 22870 | #ifdef __cplusplus |
| 22871 | extern "C" |
| 22872 | #endif |
| 22873 | char mp_destroy (); |
| 22874 | int |
| 22875 | main () |
| 22876 | { |
| 22877 | return mp_destroy (); |
| 22878 | ; |
| 22879 | return 0; |
| 22880 | } |
| 22881 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22882 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22883 | ac_cv_lib_mp_mp_destroy=yes |
| 22884 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22885 | ac_cv_lib_mp_mp_destroy=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22886 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22887 | rm -f core conftest.err conftest.$ac_objext \ |
| 22888 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22889 | LIBS=$ac_check_lib_save_LIBS |
| 22890 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22891 | { $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] | 22892 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22893 | if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22894 | GOMP_LIBS="-lmp" |
| 22895 | fi |
| 22896 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 22897 | fi |
| 22898 | LIBS="$GOMP_LIBS $LIBS" |
| 22899 | fi |
| 22900 | |
| 22901 | |
| 22902 | # |
| 22903 | # Find Posix threads library |
| 22904 | # |
| 22905 | THREAD_LIBS='' |
| 22906 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 22907 | |
| 22908 | if test "x$PTHREAD_LIBS" = "x"; then |
| 22909 | case "${host_cpu}-${host_os}" in |
| 22910 | *-freebsd*) |
| 22911 | |
| 22912 | |
| 22913 | |
| 22914 | ac_ext=c |
| 22915 | ac_cpp='$CPP $CPPFLAGS' |
| 22916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22919 | |
| 22920 | magick_pthread_lib_ok=no |
| 22921 | |
| 22922 | LIB=-lc_r |
| 22923 | save_LIBS="$LIBS" |
| 22924 | LIBS="$LIBS $LIB" |
| 22925 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22927 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22929 | /* end confdefs.h. */ |
| 22930 | #include <pthread.h> |
| 22931 | int |
| 22932 | main () |
| 22933 | { |
| 22934 | pthread_t th; |
| 22935 | pthread_join(th, 0); |
| 22936 | pthread_attr_init(0); |
| 22937 | pthread_cleanup_push(0, 0); |
| 22938 | pthread_create(0,0,0,0); |
| 22939 | pthread_cleanup_pop(0); |
| 22940 | ; |
| 22941 | return 0; |
| 22942 | } |
| 22943 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22944 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22945 | magick_pthread_lib_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22946 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22947 | rm -f core conftest.err conftest.$ac_objext \ |
| 22948 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22949 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22951 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 22952 | if test "$magick_pthread_lib_ok" = yes |
| 22953 | then |
| 22954 | PTHREAD_LIBS=-lc_r |
| 22955 | : |
| 22956 | else |
| 22957 | |
| 22958 | : |
| 22959 | fi |
| 22960 | |
| 22961 | LIBS="$save_LIBS" |
| 22962 | |
| 22963 | ac_ext=c |
| 22964 | ac_cpp='$CPP $CPPFLAGS' |
| 22965 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22966 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22967 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22968 | |
| 22969 | ;; |
| 22970 | esac |
| 22971 | fi |
| 22972 | |
| 22973 | for lib in pthread pthreads; do |
| 22974 | if test "x$PTHREAD_LIBS" = "x"; then |
| 22975 | |
| 22976 | |
| 22977 | |
| 22978 | ac_ext=c |
| 22979 | ac_cpp='$CPP $CPPFLAGS' |
| 22980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 22981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 22982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 22983 | |
| 22984 | magick_pthread_lib_ok=no |
| 22985 | |
| 22986 | LIB=-l$lib |
| 22987 | save_LIBS="$LIBS" |
| 22988 | LIBS="$LIBS $LIB" |
| 22989 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22991 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22993 | /* end confdefs.h. */ |
| 22994 | #include <pthread.h> |
| 22995 | int |
| 22996 | main () |
| 22997 | { |
| 22998 | pthread_t th; |
| 22999 | pthread_join(th, 0); |
| 23000 | pthread_attr_init(0); |
| 23001 | pthread_cleanup_push(0, 0); |
| 23002 | pthread_create(0,0,0,0); |
| 23003 | pthread_cleanup_pop(0); |
| 23004 | ; |
| 23005 | return 0; |
| 23006 | } |
| 23007 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23008 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23009 | magick_pthread_lib_ok=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23010 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23011 | rm -f core conftest.err conftest.$ac_objext \ |
| 23012 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23013 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23015 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 23016 | if test "$magick_pthread_lib_ok" = yes |
| 23017 | then |
| 23018 | PTHREAD_LIBS=-l$lib |
| 23019 | : |
| 23020 | else |
| 23021 | |
| 23022 | : |
| 23023 | fi |
| 23024 | |
| 23025 | LIBS="$save_LIBS" |
| 23026 | |
| 23027 | ac_ext=c |
| 23028 | ac_cpp='$CPP $CPPFLAGS' |
| 23029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 23030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 23031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 23032 | |
| 23033 | |
| 23034 | fi |
| 23035 | done |
| 23036 | |
| 23037 | THREAD_LIBS="$PTHREAD_LIBS" |
| 23038 | LIBS="$LIBS $THREAD_LIBS" |
| 23039 | fi |
| 23040 | |
| 23041 | |
| 23042 | # |
| 23043 | # Check for umem. |
| 23044 | # |
| 23045 | have_umem='no' |
| 23046 | UMEM_LIBS='' |
| 23047 | if test "$with_umem" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23049 | $as_echo_n "checking for UMEM support ... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23051 | $as_echo "" >&6; } |
| 23052 | failed=0 |
| 23053 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23054 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" |
| 23055 | if test "x$ac_cv_header_umem_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23056 | passed=`expr $passed + 1` |
| 23057 | else |
| 23058 | failed=`expr $failed + 1` |
| 23059 | fi |
| 23060 | |
| 23061 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23062 | { $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] | 23063 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23064 | if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23065 | $as_echo_n "(cached) " >&6 |
| 23066 | else |
| 23067 | ac_check_lib_save_LIBS=$LIBS |
| 23068 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23070 | /* end confdefs.h. */ |
| 23071 | |
| 23072 | /* Override any GCC internal prototype to avoid an error. |
| 23073 | Use char because int might match the return type of a GCC |
| 23074 | builtin and then its argument prototype would still apply. */ |
| 23075 | #ifdef __cplusplus |
| 23076 | extern "C" |
| 23077 | #endif |
| 23078 | char umem_alloc (); |
| 23079 | int |
| 23080 | main () |
| 23081 | { |
| 23082 | return umem_alloc (); |
| 23083 | ; |
| 23084 | return 0; |
| 23085 | } |
| 23086 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23087 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23088 | ac_cv_lib_umem_umem_alloc=yes |
| 23089 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23090 | ac_cv_lib_umem_umem_alloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23091 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23092 | rm -f core conftest.err conftest.$ac_objext \ |
| 23093 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23094 | LIBS=$ac_check_lib_save_LIBS |
| 23095 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23096 | { $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] | 23097 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23098 | if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23099 | passed=`expr $passed + 1` |
| 23100 | else |
| 23101 | failed=`expr $failed + 1` |
| 23102 | fi |
| 23103 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23104 | { $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] | 23105 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23106 | if test "${ac_cv_lib_umem_umem_free+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23107 | $as_echo_n "(cached) " >&6 |
| 23108 | else |
| 23109 | ac_check_lib_save_LIBS=$LIBS |
| 23110 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23112 | /* end confdefs.h. */ |
| 23113 | |
| 23114 | /* Override any GCC internal prototype to avoid an error. |
| 23115 | Use char because int might match the return type of a GCC |
| 23116 | builtin and then its argument prototype would still apply. */ |
| 23117 | #ifdef __cplusplus |
| 23118 | extern "C" |
| 23119 | #endif |
| 23120 | char umem_free (); |
| 23121 | int |
| 23122 | main () |
| 23123 | { |
| 23124 | return umem_free (); |
| 23125 | ; |
| 23126 | return 0; |
| 23127 | } |
| 23128 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23129 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23130 | ac_cv_lib_umem_umem_free=yes |
| 23131 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23132 | ac_cv_lib_umem_umem_free=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23133 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23134 | rm -f core conftest.err conftest.$ac_objext \ |
| 23135 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23136 | LIBS=$ac_check_lib_save_LIBS |
| 23137 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23138 | { $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] | 23139 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23140 | if test "x$ac_cv_lib_umem_umem_free" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23141 | passed=`expr $passed + 1` |
| 23142 | else |
| 23143 | failed=`expr $failed + 1` |
| 23144 | fi |
| 23145 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23146 | { $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] | 23147 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 23148 | if test $passed -gt 0; then |
| 23149 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23150 | { $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] | 23151 | $as_echo "no -- some components failed test" >&6; } |
| 23152 | have_umem='no (failed tests)' |
| 23153 | else |
| 23154 | UMEM_LIBS='-lumem' |
| 23155 | LIBS="$UMEM_LIBS $LIBS" |
| 23156 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23157 | $as_echo "#define HasUMEM 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23158 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23160 | $as_echo "yes" >&6; } |
| 23161 | have_umem='yes' |
| 23162 | fi |
| 23163 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23165 | $as_echo "no" >&6; } |
| 23166 | fi |
| 23167 | fi |
| 23168 | if test "$have_umem" = 'yes'; then |
| 23169 | HasUMEM_TRUE= |
| 23170 | HasUMEM_FALSE='#' |
| 23171 | else |
| 23172 | HasUMEM_TRUE='#' |
| 23173 | HasUMEM_FALSE= |
| 23174 | fi |
| 23175 | |
| 23176 | |
| 23177 | |
| 23178 | # |
| 23179 | # Add support for ccmalloc memory debugging library if requested |
| 23180 | # |
| 23181 | have_ccmalloc='no' |
| 23182 | CCMALLOC_LIBS='' |
| 23183 | if test "$enable_ccmalloc" = 'yes'; then |
| 23184 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 23185 | set dummy ccmalloc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23187 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23188 | if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23189 | $as_echo_n "(cached) " >&6 |
| 23190 | else |
| 23191 | case $CCMALLOCDelegate in |
| 23192 | [\\/]* | ?:[\\/]*) |
| 23193 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 23194 | ;; |
| 23195 | *) |
| 23196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 23197 | for as_dir in $PATH |
| 23198 | do |
| 23199 | IFS=$as_save_IFS |
| 23200 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 23203 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23204 | $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] | 23205 | break 2 |
| 23206 | fi |
| 23207 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23208 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23209 | IFS=$as_save_IFS |
| 23210 | |
| 23211 | ;; |
| 23212 | esac |
| 23213 | fi |
| 23214 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 23215 | if test -n "$CCMALLOCDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23217 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 23218 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23220 | $as_echo "no" >&6; } |
| 23221 | fi |
| 23222 | |
| 23223 | |
| 23224 | if test -n "$CCMALLOCDelegate"; then |
| 23225 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 23226 | OLIBS="$LIBS" |
| 23227 | # Assume that gcc is used with ccmalloc. |
| 23228 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23229 | { $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] | 23230 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23231 | if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23232 | $as_echo_n "(cached) " >&6 |
| 23233 | else |
| 23234 | ac_check_lib_save_LIBS=$LIBS |
| 23235 | LIBS="-lccmalloc -ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23237 | /* end confdefs.h. */ |
| 23238 | |
| 23239 | /* Override any GCC internal prototype to avoid an error. |
| 23240 | Use char because int might match the return type of a GCC |
| 23241 | builtin and then its argument prototype would still apply. */ |
| 23242 | #ifdef __cplusplus |
| 23243 | extern "C" |
| 23244 | #endif |
| 23245 | char ccmalloc_malloc (); |
| 23246 | int |
| 23247 | main () |
| 23248 | { |
| 23249 | return ccmalloc_malloc (); |
| 23250 | ; |
| 23251 | return 0; |
| 23252 | } |
| 23253 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23254 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23255 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 23256 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23257 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23258 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23259 | rm -f core conftest.err conftest.$ac_objext \ |
| 23260 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23261 | LIBS=$ac_check_lib_save_LIBS |
| 23262 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23263 | { $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] | 23264 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23265 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23266 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 23267 | fi |
| 23268 | |
| 23269 | if test -n "$CCMALLOC_LIBS"; then |
| 23270 | LIBS="$OLIBS" |
| 23271 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 23272 | have_ccmalloc='yes' |
| 23273 | else |
| 23274 | LIBS="$OLIBS" |
| 23275 | fi |
| 23276 | fi |
| 23277 | fi |
| 23278 | |
| 23279 | # |
| 23280 | # Add support for efence memory debugging library if requested |
| 23281 | # |
| 23282 | if test "$enable_efence" = 'yes'; then |
| 23283 | EFENCE_LIBS='-lefence' |
| 23284 | LIBS="$EFENCE_LIBS $LIBS" |
| 23285 | fi |
| 23286 | |
| 23287 | # |
| 23288 | # Find math library |
| 23289 | # |
| 23290 | MATH_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23292 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23293 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23294 | $as_echo_n "(cached) " >&6 |
| 23295 | else |
| 23296 | ac_check_lib_save_LIBS=$LIBS |
| 23297 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23299 | /* end confdefs.h. */ |
| 23300 | |
| 23301 | /* Override any GCC internal prototype to avoid an error. |
| 23302 | Use char because int might match the return type of a GCC |
| 23303 | builtin and then its argument prototype would still apply. */ |
| 23304 | #ifdef __cplusplus |
| 23305 | extern "C" |
| 23306 | #endif |
| 23307 | char sqrt (); |
| 23308 | int |
| 23309 | main () |
| 23310 | { |
| 23311 | return sqrt (); |
| 23312 | ; |
| 23313 | return 0; |
| 23314 | } |
| 23315 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23316 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23317 | ac_cv_lib_m_sqrt=yes |
| 23318 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23319 | ac_cv_lib_m_sqrt=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23320 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23321 | rm -f core conftest.err conftest.$ac_objext \ |
| 23322 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23323 | LIBS=$ac_check_lib_save_LIBS |
| 23324 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23326 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23327 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23328 | MATH_LIBS="-lm" |
| 23329 | fi |
| 23330 | |
| 23331 | LIBS="$MATH_LIBS $LIBS" |
| 23332 | |
| 23333 | |
| 23334 | |
| 23335 | # |
| 23336 | # Check for BZLIB |
| 23337 | # |
| 23338 | |
| 23339 | |
| 23340 | # Check whether --with-bzlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23341 | if test "${with_bzlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23342 | withval=$with_bzlib; with_bzlib=$withval |
| 23343 | else |
| 23344 | with_bzlib='yes' |
| 23345 | fi |
| 23346 | |
| 23347 | |
| 23348 | if test "$with_bzlib" != 'yes'; then |
| 23349 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 23350 | fi |
| 23351 | |
| 23352 | have_bzlib='no' |
| 23353 | if test "$with_bzlib" != 'no'; then |
| 23354 | BZLIB_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23356 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23358 | $as_echo_n "checking for BZLIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23360 | $as_echo "" >&6; } |
| 23361 | failed=0 |
| 23362 | passed=0 |
| 23363 | found_libbz=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23364 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" |
| 23365 | if test "x$ac_cv_header_bzlib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23366 | passed=`expr $passed + 1` |
| 23367 | else |
| 23368 | failed=`expr $failed + 1` |
| 23369 | fi |
| 23370 | |
| 23371 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23372 | { $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] | 23373 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23374 | if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23375 | $as_echo_n "(cached) " >&6 |
| 23376 | else |
| 23377 | ac_check_lib_save_LIBS=$LIBS |
| 23378 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23380 | /* end confdefs.h. */ |
| 23381 | |
| 23382 | /* Override any GCC internal prototype to avoid an error. |
| 23383 | Use char because int might match the return type of a GCC |
| 23384 | builtin and then its argument prototype would still apply. */ |
| 23385 | #ifdef __cplusplus |
| 23386 | extern "C" |
| 23387 | #endif |
| 23388 | char BZ2_bzDecompress (); |
| 23389 | int |
| 23390 | main () |
| 23391 | { |
| 23392 | return BZ2_bzDecompress (); |
| 23393 | ; |
| 23394 | return 0; |
| 23395 | } |
| 23396 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23397 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23398 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 23399 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23400 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23401 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23402 | rm -f core conftest.err conftest.$ac_objext \ |
| 23403 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23404 | LIBS=$ac_check_lib_save_LIBS |
| 23405 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23406 | { $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] | 23407 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23408 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23409 | found_libbz=`expr $found_libbz + 1` |
| 23410 | fi |
| 23411 | |
| 23412 | if test "$native_win32_build" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23413 | { $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] | 23414 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23415 | if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23416 | $as_echo_n "(cached) " >&6 |
| 23417 | else |
| 23418 | ac_check_lib_save_LIBS=$LIBS |
| 23419 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23421 | /* end confdefs.h. */ |
| 23422 | |
| 23423 | /* Override any GCC internal prototype to avoid an error. |
| 23424 | Use char because int might match the return type of a GCC |
| 23425 | builtin and then its argument prototype would still apply. */ |
| 23426 | #ifdef __cplusplus |
| 23427 | extern "C" |
| 23428 | #endif |
| 23429 | char _imp__BZ2_decompress (); |
| 23430 | int |
| 23431 | main () |
| 23432 | { |
| 23433 | return _imp__BZ2_decompress (); |
| 23434 | ; |
| 23435 | return 0; |
| 23436 | } |
| 23437 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23438 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23439 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 23440 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23441 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23442 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23443 | rm -f core conftest.err conftest.$ac_objext \ |
| 23444 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23445 | LIBS=$ac_check_lib_save_LIBS |
| 23446 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23447 | { $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] | 23448 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23449 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23450 | found_libbz=`expr $found_libbz + 1` |
| 23451 | fi |
| 23452 | |
| 23453 | fi |
| 23454 | if test $found_libbz -gt 0; then |
| 23455 | passed=`expr $passed + 1` |
| 23456 | else |
| 23457 | failed=`expr $failed + 1` |
| 23458 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23459 | { $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] | 23460 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 23461 | if test $passed -gt 0; then |
| 23462 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23463 | { $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] | 23464 | $as_echo "no -- some components failed test" >&6; } |
| 23465 | have_bzlib='no (failed tests)' |
| 23466 | else |
| 23467 | BZLIB_LIBS='-lbz2' |
| 23468 | LIBS="$BZLIB_LIBS $LIBS" |
| 23469 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23470 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23471 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23473 | $as_echo "yes" >&6; } |
| 23474 | have_bzlib='yes' |
| 23475 | fi |
| 23476 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23478 | $as_echo "no" >&6; } |
| 23479 | fi |
| 23480 | fi |
| 23481 | if test "$have_bzlib" = 'yes'; then |
| 23482 | BZLIB_DELEGATE_TRUE= |
| 23483 | BZLIB_DELEGATE_FALSE='#' |
| 23484 | else |
| 23485 | BZLIB_DELEGATE_TRUE='#' |
| 23486 | BZLIB_DELEGATE_FALSE= |
| 23487 | fi |
| 23488 | |
| 23489 | |
| 23490 | |
| 23491 | # |
| 23492 | # Find the X11 include and library directories. |
| 23493 | # |
| 23494 | IPC_LIBS='' |
| 23495 | X11_LIBS='' |
| 23496 | XEXT_LIBS='' |
| 23497 | XT_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23499 | $as_echo_n "checking for X... " >&6; } |
| 23500 | |
| 23501 | |
| 23502 | # Check whether --with-x was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23503 | if test "${with_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23504 | withval=$with_x; |
| 23505 | fi |
| 23506 | |
| 23507 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 23508 | if test "x$with_x" = xno; then |
| 23509 | # The user explicitly disabled X. |
| 23510 | have_x=disabled |
| 23511 | else |
| 23512 | case $x_includes,$x_libraries in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23513 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 23514 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23515 | $as_echo_n "(cached) " >&6 |
| 23516 | else |
| 23517 | # One or both of the vars are not set, and there is no cached value. |
| 23518 | ac_x_includes=no ac_x_libraries=no |
| 23519 | rm -f -r conftest.dir |
| 23520 | if mkdir conftest.dir; then |
| 23521 | cd conftest.dir |
| 23522 | cat >Imakefile <<'_ACEOF' |
| 23523 | incroot: |
| 23524 | @echo incroot='${INCROOT}' |
| 23525 | usrlibdir: |
| 23526 | @echo usrlibdir='${USRLIBDIR}' |
| 23527 | libdir: |
| 23528 | @echo libdir='${LIBDIR}' |
| 23529 | _ACEOF |
| 23530 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 23531 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 23532 | for ac_var in incroot usrlibdir libdir; do |
| 23533 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 23534 | done |
| 23535 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 23536 | for ac_extension in a so sl dylib la dll; do |
| 23537 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 23538 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 23539 | ac_im_usrlibdir=$ac_im_libdir; break |
| 23540 | fi |
| 23541 | done |
| 23542 | # Screen out bogus values from the imake configuration. They are |
| 23543 | # bogus both because they are the default anyway, and because |
| 23544 | # using them would break gcc on systems where it needs fixed includes. |
| 23545 | case $ac_im_incroot in |
| 23546 | /usr/include) ac_x_includes= ;; |
| 23547 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 23548 | esac |
| 23549 | case $ac_im_usrlibdir in |
| 23550 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 23551 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 23552 | esac |
| 23553 | fi |
| 23554 | cd .. |
| 23555 | rm -f -r conftest.dir |
| 23556 | fi |
| 23557 | |
| 23558 | # Standard set of common directories for X headers. |
| 23559 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 23560 | ac_x_header_dirs=' |
| 23561 | /usr/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23562 | /usr/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23563 | /usr/X11R6/include |
| 23564 | /usr/X11R5/include |
| 23565 | /usr/X11R4/include |
| 23566 | |
| 23567 | /usr/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23568 | /usr/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23569 | /usr/include/X11R6 |
| 23570 | /usr/include/X11R5 |
| 23571 | /usr/include/X11R4 |
| 23572 | |
| 23573 | /usr/local/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23574 | /usr/local/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23575 | /usr/local/X11R6/include |
| 23576 | /usr/local/X11R5/include |
| 23577 | /usr/local/X11R4/include |
| 23578 | |
| 23579 | /usr/local/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23580 | /usr/local/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23581 | /usr/local/include/X11R6 |
| 23582 | /usr/local/include/X11R5 |
| 23583 | /usr/local/include/X11R4 |
| 23584 | |
| 23585 | /usr/X386/include |
| 23586 | /usr/x386/include |
| 23587 | /usr/XFree86/include/X11 |
| 23588 | |
| 23589 | /usr/include |
| 23590 | /usr/local/include |
| 23591 | /usr/unsupported/include |
| 23592 | /usr/athena/include |
| 23593 | /usr/local/x11r5/include |
| 23594 | /usr/lpp/Xamples/include |
| 23595 | |
| 23596 | /usr/openwin/include |
| 23597 | /usr/openwin/share/include' |
| 23598 | |
| 23599 | if test "$ac_x_includes" = no; then |
| 23600 | # Guess where to find include files, by looking for Xlib.h. |
| 23601 | # First, try using that file with no special directory specified. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23603 | /* end confdefs.h. */ |
| 23604 | #include <X11/Xlib.h> |
| 23605 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23606 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23607 | # We can compile using X headers with no special include directory. |
| 23608 | ac_x_includes= |
| 23609 | else |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23610 | for ac_dir in $ac_x_header_dirs; do |
| 23611 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 23612 | ac_x_includes=$ac_dir |
| 23613 | break |
| 23614 | fi |
| 23615 | done |
| 23616 | fi |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23617 | rm -f conftest.err conftest.$ac_ext |
| 23618 | fi # $ac_x_includes = no |
| 23619 | |
| 23620 | if test "$ac_x_libraries" = no; then |
| 23621 | # Check for the libraries. |
| 23622 | # See if we find them without any special options. |
| 23623 | # Don't add to $LIBS permanently. |
| 23624 | ac_save_LIBS=$LIBS |
| 23625 | LIBS="-lX11 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23627 | /* end confdefs.h. */ |
| 23628 | #include <X11/Xlib.h> |
| 23629 | int |
| 23630 | main () |
| 23631 | { |
| 23632 | XrmInitialize () |
| 23633 | ; |
| 23634 | return 0; |
| 23635 | } |
| 23636 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23637 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23638 | LIBS=$ac_save_LIBS |
| 23639 | # We can link X programs with no special library path. |
| 23640 | ac_x_libraries= |
| 23641 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23642 | LIBS=$ac_save_LIBS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23643 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 23644 | do |
| 23645 | # Don't even attempt the hair of trying to link an X program! |
| 23646 | for ac_extension in a so sl dylib la dll; do |
| 23647 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 23648 | ac_x_libraries=$ac_dir |
| 23649 | break 2 |
| 23650 | fi |
| 23651 | done |
| 23652 | done |
| 23653 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23654 | rm -f core conftest.err conftest.$ac_objext \ |
| 23655 | conftest$ac_exeext conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23656 | fi # $ac_x_libraries = no |
| 23657 | |
| 23658 | case $ac_x_includes,$ac_x_libraries in #( |
| 23659 | no,* | *,no | *\'*) |
| 23660 | # Didn't find X, or a directory has "'" in its name. |
| 23661 | ac_cv_have_x="have_x=no";; #( |
| 23662 | *) |
| 23663 | # Record where we found X for the cache. |
| 23664 | ac_cv_have_x="have_x=yes\ |
| 23665 | ac_x_includes='$ac_x_includes'\ |
| 23666 | ac_x_libraries='$ac_x_libraries'" |
| 23667 | esac |
| 23668 | fi |
| 23669 | ;; #( |
| 23670 | *) have_x=yes;; |
| 23671 | esac |
| 23672 | eval "$ac_cv_have_x" |
| 23673 | fi # $with_x != no |
| 23674 | |
| 23675 | if test "$have_x" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 23677 | $as_echo "$have_x" >&6; } |
| 23678 | no_x=yes |
| 23679 | else |
| 23680 | # If each of the values was on the command line, it overrides each guess. |
| 23681 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 23682 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 23683 | # Update the cache value to reflect the command line values. |
| 23684 | ac_cv_have_x="have_x=yes\ |
| 23685 | ac_x_includes='$x_includes'\ |
| 23686 | ac_x_libraries='$x_libraries'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23687 | { $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] | 23688 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 23689 | fi |
| 23690 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23691 | if test "$no_x" = yes; then |
| 23692 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 23693 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23694 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23695 | |
| 23696 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 23697 | else |
| 23698 | if test -n "$x_includes"; then |
| 23699 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 23700 | fi |
| 23701 | |
| 23702 | # It would also be nice to do this for all -L options, not just this one. |
| 23703 | if test -n "$x_libraries"; then |
| 23704 | X_LIBS="$X_LIBS -L$x_libraries" |
| 23705 | # For Solaris; some versions of Sun CC require a space after -R and |
| 23706 | # others require no space. Words are not sufficient . . . . |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23707 | { $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] | 23708 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 23709 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 23710 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 23711 | ac_c_werror_flag=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23713 | /* end confdefs.h. */ |
| 23714 | |
| 23715 | int |
| 23716 | main () |
| 23717 | { |
| 23718 | |
| 23719 | ; |
| 23720 | return 0; |
| 23721 | } |
| 23722 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23723 | if ac_fn_c_try_link "$LINENO"; then : |
| 23724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23725 | $as_echo "no" >&6; } |
| 23726 | X_LIBS="$X_LIBS -R$x_libraries" |
| 23727 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23728 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 23729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23730 | /* end confdefs.h. */ |
| 23731 | |
| 23732 | int |
| 23733 | main () |
| 23734 | { |
| 23735 | |
| 23736 | ; |
| 23737 | return 0; |
| 23738 | } |
| 23739 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23740 | if ac_fn_c_try_link "$LINENO"; then : |
| 23741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23742 | $as_echo "yes" >&6; } |
| 23743 | X_LIBS="$X_LIBS -R $x_libraries" |
| 23744 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23746 | $as_echo "neither works" >&6; } |
| 23747 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23748 | rm -f core conftest.err conftest.$ac_objext \ |
| 23749 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23750 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23751 | rm -f core conftest.err conftest.$ac_objext \ |
| 23752 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23753 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 23754 | LIBS=$ac_xsave_LIBS |
| 23755 | fi |
| 23756 | |
| 23757 | # Check for system-dependent libraries X programs must link with. |
| 23758 | # Do this before checking for the system-independent R6 libraries |
| 23759 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 23760 | |
| 23761 | if test "$ISC" = yes; then |
| 23762 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 23763 | else |
| 23764 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 23765 | # libraries were built with DECnet support. And Karl Berry says |
| 23766 | # the Alpha needs dnet_stub (dnet does not exist). |
| 23767 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23769 | /* end confdefs.h. */ |
| 23770 | |
| 23771 | /* Override any GCC internal prototype to avoid an error. |
| 23772 | Use char because int might match the return type of a GCC |
| 23773 | builtin and then its argument prototype would still apply. */ |
| 23774 | #ifdef __cplusplus |
| 23775 | extern "C" |
| 23776 | #endif |
| 23777 | char XOpenDisplay (); |
| 23778 | int |
| 23779 | main () |
| 23780 | { |
| 23781 | return XOpenDisplay (); |
| 23782 | ; |
| 23783 | return 0; |
| 23784 | } |
| 23785 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23786 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23787 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23788 | else |
| 23789 | { $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] | 23790 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23791 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23792 | $as_echo_n "(cached) " >&6 |
| 23793 | else |
| 23794 | ac_check_lib_save_LIBS=$LIBS |
| 23795 | LIBS="-ldnet $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23797 | /* end confdefs.h. */ |
| 23798 | |
| 23799 | /* Override any GCC internal prototype to avoid an error. |
| 23800 | Use char because int might match the return type of a GCC |
| 23801 | builtin and then its argument prototype would still apply. */ |
| 23802 | #ifdef __cplusplus |
| 23803 | extern "C" |
| 23804 | #endif |
| 23805 | char dnet_ntoa (); |
| 23806 | int |
| 23807 | main () |
| 23808 | { |
| 23809 | return dnet_ntoa (); |
| 23810 | ; |
| 23811 | return 0; |
| 23812 | } |
| 23813 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23814 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23815 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 23816 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23817 | ac_cv_lib_dnet_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23818 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23819 | rm -f core conftest.err conftest.$ac_objext \ |
| 23820 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23821 | LIBS=$ac_check_lib_save_LIBS |
| 23822 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23823 | { $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] | 23824 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23825 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23826 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 23827 | fi |
| 23828 | |
| 23829 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23830 | { $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] | 23831 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23832 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23833 | $as_echo_n "(cached) " >&6 |
| 23834 | else |
| 23835 | ac_check_lib_save_LIBS=$LIBS |
| 23836 | LIBS="-ldnet_stub $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23838 | /* end confdefs.h. */ |
| 23839 | |
| 23840 | /* Override any GCC internal prototype to avoid an error. |
| 23841 | Use char because int might match the return type of a GCC |
| 23842 | builtin and then its argument prototype would still apply. */ |
| 23843 | #ifdef __cplusplus |
| 23844 | extern "C" |
| 23845 | #endif |
| 23846 | char dnet_ntoa (); |
| 23847 | int |
| 23848 | main () |
| 23849 | { |
| 23850 | return dnet_ntoa (); |
| 23851 | ; |
| 23852 | return 0; |
| 23853 | } |
| 23854 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23855 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23856 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 23857 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23858 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23859 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23860 | rm -f core conftest.err conftest.$ac_objext \ |
| 23861 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23862 | LIBS=$ac_check_lib_save_LIBS |
| 23863 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23864 | { $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] | 23865 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23866 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23867 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 23868 | fi |
| 23869 | |
| 23870 | fi |
| 23871 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23872 | rm -f core conftest.err conftest.$ac_objext \ |
| 23873 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23874 | LIBS="$ac_xsave_LIBS" |
| 23875 | |
| 23876 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 23877 | # to get the SysV transport functions. |
| 23878 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 23879 | # needs -lnsl. |
| 23880 | # The nsl library prevents programs from opening the X display |
| 23881 | # on Irix 5.2, according to T.E. Dickey. |
| 23882 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 23883 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23884 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 23885 | if test "x$ac_cv_func_gethostbyname" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23886 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23887 | fi |
| 23888 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23889 | if test $ac_cv_func_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23891 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23892 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23893 | $as_echo_n "(cached) " >&6 |
| 23894 | else |
| 23895 | ac_check_lib_save_LIBS=$LIBS |
| 23896 | LIBS="-lnsl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23898 | /* end confdefs.h. */ |
| 23899 | |
| 23900 | /* Override any GCC internal prototype to avoid an error. |
| 23901 | Use char because int might match the return type of a GCC |
| 23902 | builtin and then its argument prototype would still apply. */ |
| 23903 | #ifdef __cplusplus |
| 23904 | extern "C" |
| 23905 | #endif |
| 23906 | char gethostbyname (); |
| 23907 | int |
| 23908 | main () |
| 23909 | { |
| 23910 | return gethostbyname (); |
| 23911 | ; |
| 23912 | return 0; |
| 23913 | } |
| 23914 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23915 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23916 | ac_cv_lib_nsl_gethostbyname=yes |
| 23917 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23918 | ac_cv_lib_nsl_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23919 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23920 | rm -f core conftest.err conftest.$ac_objext \ |
| 23921 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23922 | LIBS=$ac_check_lib_save_LIBS |
| 23923 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23924 | { $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] | 23925 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23926 | if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23927 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 23928 | fi |
| 23929 | |
| 23930 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23932 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23933 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23934 | $as_echo_n "(cached) " >&6 |
| 23935 | else |
| 23936 | ac_check_lib_save_LIBS=$LIBS |
| 23937 | LIBS="-lbsd $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23939 | /* end confdefs.h. */ |
| 23940 | |
| 23941 | /* Override any GCC internal prototype to avoid an error. |
| 23942 | Use char because int might match the return type of a GCC |
| 23943 | builtin and then its argument prototype would still apply. */ |
| 23944 | #ifdef __cplusplus |
| 23945 | extern "C" |
| 23946 | #endif |
| 23947 | char gethostbyname (); |
| 23948 | int |
| 23949 | main () |
| 23950 | { |
| 23951 | return gethostbyname (); |
| 23952 | ; |
| 23953 | return 0; |
| 23954 | } |
| 23955 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23956 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23957 | ac_cv_lib_bsd_gethostbyname=yes |
| 23958 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23959 | ac_cv_lib_bsd_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23960 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23961 | rm -f core conftest.err conftest.$ac_objext \ |
| 23962 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23963 | LIBS=$ac_check_lib_save_LIBS |
| 23964 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23965 | { $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] | 23966 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23967 | if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23968 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 23969 | fi |
| 23970 | |
| 23971 | fi |
| 23972 | fi |
| 23973 | |
| 23974 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 23975 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 23976 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 23977 | # on later versions), says Simon Leinen: it contains gethostby* |
| 23978 | # variants that don't use the name server (or something). -lsocket |
| 23979 | # must be given before -lnsl if both are needed. We assume that |
| 23980 | # if connect needs -lnsl, so does gethostbyname. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23981 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 23982 | if test "x$ac_cv_func_connect" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23983 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23984 | fi |
| 23985 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23986 | if test $ac_cv_func_connect = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23988 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23989 | if test "${ac_cv_lib_socket_connect+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23990 | $as_echo_n "(cached) " >&6 |
| 23991 | else |
| 23992 | ac_check_lib_save_LIBS=$LIBS |
| 23993 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23995 | /* end confdefs.h. */ |
| 23996 | |
| 23997 | /* Override any GCC internal prototype to avoid an error. |
| 23998 | Use char because int might match the return type of a GCC |
| 23999 | builtin and then its argument prototype would still apply. */ |
| 24000 | #ifdef __cplusplus |
| 24001 | extern "C" |
| 24002 | #endif |
| 24003 | char connect (); |
| 24004 | int |
| 24005 | main () |
| 24006 | { |
| 24007 | return connect (); |
| 24008 | ; |
| 24009 | return 0; |
| 24010 | } |
| 24011 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24012 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24013 | ac_cv_lib_socket_connect=yes |
| 24014 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24015 | ac_cv_lib_socket_connect=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24016 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24017 | rm -f core conftest.err conftest.$ac_objext \ |
| 24018 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24019 | LIBS=$ac_check_lib_save_LIBS |
| 24020 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24021 | { $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] | 24022 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24023 | if test "x$ac_cv_lib_socket_connect" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24024 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 24025 | fi |
| 24026 | |
| 24027 | fi |
| 24028 | |
| 24029 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24030 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| 24031 | if test "x$ac_cv_func_remove" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24032 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24033 | fi |
| 24034 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24035 | if test $ac_cv_func_remove = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24037 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24038 | if test "${ac_cv_lib_posix_remove+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24039 | $as_echo_n "(cached) " >&6 |
| 24040 | else |
| 24041 | ac_check_lib_save_LIBS=$LIBS |
| 24042 | LIBS="-lposix $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24044 | /* end confdefs.h. */ |
| 24045 | |
| 24046 | /* Override any GCC internal prototype to avoid an error. |
| 24047 | Use char because int might match the return type of a GCC |
| 24048 | builtin and then its argument prototype would still apply. */ |
| 24049 | #ifdef __cplusplus |
| 24050 | extern "C" |
| 24051 | #endif |
| 24052 | char remove (); |
| 24053 | int |
| 24054 | main () |
| 24055 | { |
| 24056 | return remove (); |
| 24057 | ; |
| 24058 | return 0; |
| 24059 | } |
| 24060 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24061 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24062 | ac_cv_lib_posix_remove=yes |
| 24063 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24064 | ac_cv_lib_posix_remove=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24065 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24066 | rm -f core conftest.err conftest.$ac_objext \ |
| 24067 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24068 | LIBS=$ac_check_lib_save_LIBS |
| 24069 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24070 | { $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] | 24071 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24072 | if test "x$ac_cv_lib_posix_remove" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24073 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 24074 | fi |
| 24075 | |
| 24076 | fi |
| 24077 | |
| 24078 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24079 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| 24080 | if test "x$ac_cv_func_shmat" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24081 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24082 | fi |
| 24083 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24084 | if test $ac_cv_func_shmat = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24086 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24087 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24088 | $as_echo_n "(cached) " >&6 |
| 24089 | else |
| 24090 | ac_check_lib_save_LIBS=$LIBS |
| 24091 | LIBS="-lipc $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24093 | /* end confdefs.h. */ |
| 24094 | |
| 24095 | /* Override any GCC internal prototype to avoid an error. |
| 24096 | Use char because int might match the return type of a GCC |
| 24097 | builtin and then its argument prototype would still apply. */ |
| 24098 | #ifdef __cplusplus |
| 24099 | extern "C" |
| 24100 | #endif |
| 24101 | char shmat (); |
| 24102 | int |
| 24103 | main () |
| 24104 | { |
| 24105 | return shmat (); |
| 24106 | ; |
| 24107 | return 0; |
| 24108 | } |
| 24109 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24110 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24111 | ac_cv_lib_ipc_shmat=yes |
| 24112 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24113 | ac_cv_lib_ipc_shmat=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24114 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24115 | rm -f core conftest.err conftest.$ac_objext \ |
| 24116 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24117 | LIBS=$ac_check_lib_save_LIBS |
| 24118 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24119 | { $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] | 24120 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24121 | if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24122 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 24123 | fi |
| 24124 | |
| 24125 | fi |
| 24126 | fi |
| 24127 | |
| 24128 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 24129 | ac_save_LDFLAGS=$LDFLAGS |
| 24130 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 24131 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 24132 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 24133 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 24134 | # These have to be linked with before -lX11, unlike the other |
| 24135 | # libraries we check for below, so use a different variable. |
| 24136 | # John Interrante, Karl Berry |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24138 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24139 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24140 | $as_echo_n "(cached) " >&6 |
| 24141 | else |
| 24142 | ac_check_lib_save_LIBS=$LIBS |
| 24143 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24145 | /* end confdefs.h. */ |
| 24146 | |
| 24147 | /* Override any GCC internal prototype to avoid an error. |
| 24148 | Use char because int might match the return type of a GCC |
| 24149 | builtin and then its argument prototype would still apply. */ |
| 24150 | #ifdef __cplusplus |
| 24151 | extern "C" |
| 24152 | #endif |
| 24153 | char IceConnectionNumber (); |
| 24154 | int |
| 24155 | main () |
| 24156 | { |
| 24157 | return IceConnectionNumber (); |
| 24158 | ; |
| 24159 | return 0; |
| 24160 | } |
| 24161 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24162 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24163 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 24164 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24165 | ac_cv_lib_ICE_IceConnectionNumber=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24166 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24167 | rm -f core conftest.err conftest.$ac_objext \ |
| 24168 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24169 | LIBS=$ac_check_lib_save_LIBS |
| 24170 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24171 | { $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] | 24172 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24173 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24174 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 24175 | fi |
| 24176 | |
| 24177 | LDFLAGS=$ac_save_LDFLAGS |
| 24178 | |
| 24179 | fi |
| 24180 | |
| 24181 | if test "$no_x" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24183 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24185 | $as_echo_n "checking for X11... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24187 | $as_echo "" >&6; } |
| 24188 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 24189 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 24190 | LIBS="$X11_LIBS $LIBS" |
| 24191 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 24192 | |
| 24193 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24194 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24195 | |
| 24196 | # |
| 24197 | # Check for X11 shared memory extension |
| 24198 | # |
| 24199 | # shmctl is required to support the shared memory extension |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24200 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" |
| 24201 | if test "x$ac_cv_func_shmctl" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24202 | have_shmctl='yes' |
| 24203 | fi |
| 24204 | |
| 24205 | if test "$have_shmctl" != 'yes'; then |
| 24206 | PERSIST_LIBS=$LIBS |
| 24207 | LIBS="$LIBS -lcygipc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24209 | /* end confdefs.h. */ |
| 24210 | |
| 24211 | /* Override any GCC internal prototype to avoid an error. |
| 24212 | Use char because int might match the return type of a GCC |
| 24213 | builtin and then its argument prototype would still apply. */ |
| 24214 | #ifdef __cplusplus |
| 24215 | extern "C" |
| 24216 | #endif |
| 24217 | char shmctl (); |
| 24218 | int |
| 24219 | main () |
| 24220 | { |
| 24221 | return shmctl (); |
| 24222 | ; |
| 24223 | return 0; |
| 24224 | } |
| 24225 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24226 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24227 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24228 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24229 | rm -f core conftest.err conftest.$ac_objext \ |
| 24230 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24231 | LIBS=$PERSIST_LIBS |
| 24232 | fi |
| 24233 | |
| 24234 | if test "$have_shmctl" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24236 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24237 | if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24238 | $as_echo_n "(cached) " >&6 |
| 24239 | else |
| 24240 | ac_check_lib_save_LIBS=$LIBS |
| 24241 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24242 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24243 | /* end confdefs.h. */ |
| 24244 | |
| 24245 | /* Override any GCC internal prototype to avoid an error. |
| 24246 | Use char because int might match the return type of a GCC |
| 24247 | builtin and then its argument prototype would still apply. */ |
| 24248 | #ifdef __cplusplus |
| 24249 | extern "C" |
| 24250 | #endif |
| 24251 | char XShmAttach (); |
| 24252 | int |
| 24253 | main () |
| 24254 | { |
| 24255 | return XShmAttach (); |
| 24256 | ; |
| 24257 | return 0; |
| 24258 | } |
| 24259 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24260 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24261 | ac_cv_lib_Xext_XShmAttach=yes |
| 24262 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24263 | ac_cv_lib_Xext_XShmAttach=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24264 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24265 | rm -f core conftest.err conftest.$ac_objext \ |
| 24266 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24267 | LIBS=$ac_check_lib_save_LIBS |
| 24268 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24269 | { $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] | 24270 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24271 | if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24272 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24273 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24274 | |
| 24275 | fi |
| 24276 | |
| 24277 | fi |
| 24278 | |
| 24279 | # |
| 24280 | # Check for X11 shape extension |
| 24281 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24283 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24284 | if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24285 | $as_echo_n "(cached) " >&6 |
| 24286 | else |
| 24287 | ac_check_lib_save_LIBS=$LIBS |
| 24288 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24290 | /* end confdefs.h. */ |
| 24291 | |
| 24292 | /* Override any GCC internal prototype to avoid an error. |
| 24293 | Use char because int might match the return type of a GCC |
| 24294 | builtin and then its argument prototype would still apply. */ |
| 24295 | #ifdef __cplusplus |
| 24296 | extern "C" |
| 24297 | #endif |
| 24298 | char XShapeCombineMask (); |
| 24299 | int |
| 24300 | main () |
| 24301 | { |
| 24302 | return XShapeCombineMask (); |
| 24303 | ; |
| 24304 | return 0; |
| 24305 | } |
| 24306 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24307 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24308 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 24309 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24310 | ac_cv_lib_Xext_XShapeCombineMask=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24311 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24312 | rm -f core conftest.err conftest.$ac_objext \ |
| 24313 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24314 | LIBS=$ac_check_lib_save_LIBS |
| 24315 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24316 | { $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] | 24317 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24318 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24319 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24320 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24321 | |
| 24322 | fi |
| 24323 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24325 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24326 | if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24327 | $as_echo_n "(cached) " >&6 |
| 24328 | else |
| 24329 | ac_check_lib_save_LIBS=$LIBS |
| 24330 | LIBS="-lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24332 | /* end confdefs.h. */ |
| 24333 | |
| 24334 | /* Override any GCC internal prototype to avoid an error. |
| 24335 | Use char because int might match the return type of a GCC |
| 24336 | builtin and then its argument prototype would still apply. */ |
| 24337 | #ifdef __cplusplus |
| 24338 | extern "C" |
| 24339 | #endif |
| 24340 | char XtSetEventDispatcher (); |
| 24341 | int |
| 24342 | main () |
| 24343 | { |
| 24344 | return XtSetEventDispatcher (); |
| 24345 | ; |
| 24346 | return 0; |
| 24347 | } |
| 24348 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24349 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24350 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 24351 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24352 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24353 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24354 | rm -f core conftest.err conftest.$ac_objext \ |
| 24355 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24356 | LIBS=$ac_check_lib_save_LIBS |
| 24357 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24358 | { $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] | 24359 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24360 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24361 | XT_LIBS='-lXt' |
| 24362 | fi |
| 24363 | |
| 24364 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 24365 | fi |
| 24366 | if test "$no_x" != 'yes'; then |
| 24367 | have_x='yes' |
| 24368 | else |
| 24369 | have_x='no' |
| 24370 | fi |
| 24371 | if test "$have_x" = 'yes'; then |
| 24372 | X11_DELEGATE_TRUE= |
| 24373 | X11_DELEGATE_FALSE='#' |
| 24374 | else |
| 24375 | X11_DELEGATE_TRUE='#' |
| 24376 | X11_DELEGATE_FALSE= |
| 24377 | fi |
| 24378 | |
| 24379 | |
| 24380 | |
| 24381 | |
| 24382 | |
| 24383 | # |
| 24384 | # Check for ZLIB |
| 24385 | # |
| 24386 | |
| 24387 | # Check whether --with-zlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24388 | if test "${with_zlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24389 | withval=$with_zlib; with_zlib=$withval |
| 24390 | else |
| 24391 | with_zlib='yes' |
| 24392 | fi |
| 24393 | |
| 24394 | |
| 24395 | if test "$with_zlib" != 'yes'; then |
| 24396 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 24397 | fi |
| 24398 | |
| 24399 | have_zlib='no' |
| 24400 | ZLIB_LIBS='' |
| 24401 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24403 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24405 | $as_echo_n "checking for ZLIB... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24407 | $as_echo "" >&6; } |
| 24408 | ZLIB_LIBS='' |
| 24409 | failed=0 |
| 24410 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24411 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" |
| 24412 | if test "x$ac_cv_header_zconf_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24413 | passed=`expr $passed + 1` |
| 24414 | else |
| 24415 | failed=`expr $failed + 1` |
| 24416 | fi |
| 24417 | |
| 24418 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24419 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 24420 | if test "x$ac_cv_header_zlib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24421 | passed=`expr $passed + 1` |
| 24422 | else |
| 24423 | failed=`expr $failed + 1` |
| 24424 | fi |
| 24425 | |
| 24426 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24428 | $as_echo_n "checking for compress in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24429 | if test "${ac_cv_lib_z_compress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24430 | $as_echo_n "(cached) " >&6 |
| 24431 | else |
| 24432 | ac_check_lib_save_LIBS=$LIBS |
| 24433 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24434 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24435 | /* end confdefs.h. */ |
| 24436 | |
| 24437 | /* Override any GCC internal prototype to avoid an error. |
| 24438 | Use char because int might match the return type of a GCC |
| 24439 | builtin and then its argument prototype would still apply. */ |
| 24440 | #ifdef __cplusplus |
| 24441 | extern "C" |
| 24442 | #endif |
| 24443 | char compress (); |
| 24444 | int |
| 24445 | main () |
| 24446 | { |
| 24447 | return compress (); |
| 24448 | ; |
| 24449 | return 0; |
| 24450 | } |
| 24451 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24452 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24453 | ac_cv_lib_z_compress=yes |
| 24454 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24455 | ac_cv_lib_z_compress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24456 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24457 | rm -f core conftest.err conftest.$ac_objext \ |
| 24458 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24459 | LIBS=$ac_check_lib_save_LIBS |
| 24460 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24461 | { $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] | 24462 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24463 | if test "x$ac_cv_lib_z_compress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24464 | passed=`expr $passed + 1` |
| 24465 | else |
| 24466 | failed=`expr $failed + 1` |
| 24467 | fi |
| 24468 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24470 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24471 | if test "${ac_cv_lib_z_uncompress+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24472 | $as_echo_n "(cached) " >&6 |
| 24473 | else |
| 24474 | ac_check_lib_save_LIBS=$LIBS |
| 24475 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24477 | /* end confdefs.h. */ |
| 24478 | |
| 24479 | /* Override any GCC internal prototype to avoid an error. |
| 24480 | Use char because int might match the return type of a GCC |
| 24481 | builtin and then its argument prototype would still apply. */ |
| 24482 | #ifdef __cplusplus |
| 24483 | extern "C" |
| 24484 | #endif |
| 24485 | char uncompress (); |
| 24486 | int |
| 24487 | main () |
| 24488 | { |
| 24489 | return uncompress (); |
| 24490 | ; |
| 24491 | return 0; |
| 24492 | } |
| 24493 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24494 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24495 | ac_cv_lib_z_uncompress=yes |
| 24496 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24497 | ac_cv_lib_z_uncompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24498 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24499 | rm -f core conftest.err conftest.$ac_objext \ |
| 24500 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24501 | LIBS=$ac_check_lib_save_LIBS |
| 24502 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24503 | { $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] | 24504 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24505 | if test "x$ac_cv_lib_z_uncompress" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24506 | passed=`expr $passed + 1` |
| 24507 | else |
| 24508 | failed=`expr $failed + 1` |
| 24509 | fi |
| 24510 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24512 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24513 | if test "${ac_cv_lib_z_deflate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24514 | $as_echo_n "(cached) " >&6 |
| 24515 | else |
| 24516 | ac_check_lib_save_LIBS=$LIBS |
| 24517 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24519 | /* end confdefs.h. */ |
| 24520 | |
| 24521 | /* Override any GCC internal prototype to avoid an error. |
| 24522 | Use char because int might match the return type of a GCC |
| 24523 | builtin and then its argument prototype would still apply. */ |
| 24524 | #ifdef __cplusplus |
| 24525 | extern "C" |
| 24526 | #endif |
| 24527 | char deflate (); |
| 24528 | int |
| 24529 | main () |
| 24530 | { |
| 24531 | return deflate (); |
| 24532 | ; |
| 24533 | return 0; |
| 24534 | } |
| 24535 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24536 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24537 | ac_cv_lib_z_deflate=yes |
| 24538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24539 | ac_cv_lib_z_deflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24540 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24541 | rm -f core conftest.err conftest.$ac_objext \ |
| 24542 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24543 | LIBS=$ac_check_lib_save_LIBS |
| 24544 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24545 | { $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] | 24546 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24547 | if test "x$ac_cv_lib_z_deflate" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24548 | passed=`expr $passed + 1` |
| 24549 | else |
| 24550 | failed=`expr $failed + 1` |
| 24551 | fi |
| 24552 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24554 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24555 | if test "${ac_cv_lib_z_inflate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24556 | $as_echo_n "(cached) " >&6 |
| 24557 | else |
| 24558 | ac_check_lib_save_LIBS=$LIBS |
| 24559 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24561 | /* end confdefs.h. */ |
| 24562 | |
| 24563 | /* Override any GCC internal prototype to avoid an error. |
| 24564 | Use char because int might match the return type of a GCC |
| 24565 | builtin and then its argument prototype would still apply. */ |
| 24566 | #ifdef __cplusplus |
| 24567 | extern "C" |
| 24568 | #endif |
| 24569 | char inflate (); |
| 24570 | int |
| 24571 | main () |
| 24572 | { |
| 24573 | return inflate (); |
| 24574 | ; |
| 24575 | return 0; |
| 24576 | } |
| 24577 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24578 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24579 | ac_cv_lib_z_inflate=yes |
| 24580 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24581 | ac_cv_lib_z_inflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24582 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24583 | rm -f core conftest.err conftest.$ac_objext \ |
| 24584 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24585 | LIBS=$ac_check_lib_save_LIBS |
| 24586 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24587 | { $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] | 24588 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24589 | if test "x$ac_cv_lib_z_inflate" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24590 | passed=`expr $passed + 1` |
| 24591 | else |
| 24592 | failed=`expr $failed + 1` |
| 24593 | fi |
| 24594 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24596 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24597 | if test "${ac_cv_lib_z_gzseek+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24598 | $as_echo_n "(cached) " >&6 |
| 24599 | else |
| 24600 | ac_check_lib_save_LIBS=$LIBS |
| 24601 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24603 | /* end confdefs.h. */ |
| 24604 | |
| 24605 | /* Override any GCC internal prototype to avoid an error. |
| 24606 | Use char because int might match the return type of a GCC |
| 24607 | builtin and then its argument prototype would still apply. */ |
| 24608 | #ifdef __cplusplus |
| 24609 | extern "C" |
| 24610 | #endif |
| 24611 | char gzseek (); |
| 24612 | int |
| 24613 | main () |
| 24614 | { |
| 24615 | return gzseek (); |
| 24616 | ; |
| 24617 | return 0; |
| 24618 | } |
| 24619 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24620 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24621 | ac_cv_lib_z_gzseek=yes |
| 24622 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24623 | ac_cv_lib_z_gzseek=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24624 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24625 | rm -f core conftest.err conftest.$ac_objext \ |
| 24626 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24627 | LIBS=$ac_check_lib_save_LIBS |
| 24628 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24629 | { $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] | 24630 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24631 | if test "x$ac_cv_lib_z_gzseek" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24632 | passed=`expr $passed + 1` |
| 24633 | else |
| 24634 | failed=`expr $failed + 1` |
| 24635 | fi |
| 24636 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24638 | $as_echo_n "checking for gztell in -lz... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24639 | if test "${ac_cv_lib_z_gztell+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24640 | $as_echo_n "(cached) " >&6 |
| 24641 | else |
| 24642 | ac_check_lib_save_LIBS=$LIBS |
| 24643 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24645 | /* end confdefs.h. */ |
| 24646 | |
| 24647 | /* Override any GCC internal prototype to avoid an error. |
| 24648 | Use char because int might match the return type of a GCC |
| 24649 | builtin and then its argument prototype would still apply. */ |
| 24650 | #ifdef __cplusplus |
| 24651 | extern "C" |
| 24652 | #endif |
| 24653 | char gztell (); |
| 24654 | int |
| 24655 | main () |
| 24656 | { |
| 24657 | return gztell (); |
| 24658 | ; |
| 24659 | return 0; |
| 24660 | } |
| 24661 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24662 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24663 | ac_cv_lib_z_gztell=yes |
| 24664 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24665 | ac_cv_lib_z_gztell=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24666 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24667 | rm -f core conftest.err conftest.$ac_objext \ |
| 24668 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24669 | LIBS=$ac_check_lib_save_LIBS |
| 24670 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24671 | { $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] | 24672 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24673 | if test "x$ac_cv_lib_z_gztell" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24674 | passed=`expr $passed + 1` |
| 24675 | else |
| 24676 | failed=`expr $failed + 1` |
| 24677 | fi |
| 24678 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24679 | { $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] | 24680 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 24681 | if test $passed -gt 0; then |
| 24682 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24683 | { $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] | 24684 | $as_echo "no -- some components failed test" >&6; } |
| 24685 | have_zlib='no (failed tests)' |
| 24686 | else |
| 24687 | ZLIB_LIBS='-lz' |
| 24688 | LIBS="$ZLIB_LIBS $LIBS" |
| 24689 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24690 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24691 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24693 | $as_echo "yes" >&6; } |
| 24694 | have_zlib='yes' |
| 24695 | fi |
| 24696 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24698 | $as_echo "no" >&6; } |
| 24699 | fi |
| 24700 | fi |
| 24701 | if test "$have_zlib" = 'yes'; then |
| 24702 | ZLIB_DELEGATE_TRUE= |
| 24703 | ZLIB_DELEGATE_FALSE='#' |
| 24704 | else |
| 24705 | ZLIB_DELEGATE_TRUE='#' |
| 24706 | ZLIB_DELEGATE_FALSE= |
| 24707 | fi |
| 24708 | |
| 24709 | |
| 24710 | |
| 24711 | # |
| 24712 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 24713 | # |
| 24714 | LIB_DL='' |
| 24715 | if test "$enable_profiling" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24717 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24718 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24719 | $as_echo_n "(cached) " >&6 |
| 24720 | else |
| 24721 | ac_check_lib_save_LIBS=$LIBS |
| 24722 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24724 | /* end confdefs.h. */ |
| 24725 | |
| 24726 | /* Override any GCC internal prototype to avoid an error. |
| 24727 | Use char because int might match the return type of a GCC |
| 24728 | builtin and then its argument prototype would still apply. */ |
| 24729 | #ifdef __cplusplus |
| 24730 | extern "C" |
| 24731 | #endif |
| 24732 | char dlopen (); |
| 24733 | int |
| 24734 | main () |
| 24735 | { |
| 24736 | return dlopen (); |
| 24737 | ; |
| 24738 | return 0; |
| 24739 | } |
| 24740 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24741 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24742 | ac_cv_lib_dl_dlopen=yes |
| 24743 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24744 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24745 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24746 | rm -f core conftest.err conftest.$ac_objext \ |
| 24747 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24748 | LIBS=$ac_check_lib_save_LIBS |
| 24749 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24750 | { $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] | 24751 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24752 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24753 | LIB_DL='-ldl' |
| 24754 | fi |
| 24755 | |
| 24756 | LIBS="$LIB_DL $LIBS" |
| 24757 | fi |
| 24758 | |
| 24759 | |
| 24760 | |
| 24761 | # |
| 24762 | # Check for Autotrace delegate library. |
| 24763 | # |
| 24764 | |
| 24765 | # Check whether --with-autotrace was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24766 | if test "${with_autotrace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24767 | withval=$with_autotrace; with_autotrace=$withval |
| 24768 | else |
| 24769 | with_autotrace='no' |
| 24770 | fi |
| 24771 | |
| 24772 | |
| 24773 | if test "$with_autotrace" != 'yes'; then |
| 24774 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 24775 | fi |
| 24776 | |
| 24777 | have_autotrace='no' |
| 24778 | AUTOTRACE_CFLAGS="" |
| 24779 | AUTOTRACE_LIBS="" |
| 24780 | AUTOTRACE_PKG="" |
| 24781 | if test "x$with_autotrace" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24783 | $as_echo "-------------------------------------------------------------" >&6; } |
| 24784 | |
| 24785 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24787 | $as_echo_n "checking for AUTOTRACE... " >&6; } |
| 24788 | |
| 24789 | if test -n "$AUTOTRACE_CFLAGS"; then |
| 24790 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" |
| 24791 | elif test -n "$PKG_CONFIG"; then |
| 24792 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24793 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24794 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 24795 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 24797 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24798 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` |
| 24799 | else |
| 24800 | pkg_failed=yes |
| 24801 | fi |
| 24802 | else |
| 24803 | pkg_failed=untried |
| 24804 | fi |
| 24805 | if test -n "$AUTOTRACE_LIBS"; then |
| 24806 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" |
| 24807 | elif test -n "$PKG_CONFIG"; then |
| 24808 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24809 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24810 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 24811 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 24813 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24814 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` |
| 24815 | else |
| 24816 | pkg_failed=yes |
| 24817 | fi |
| 24818 | else |
| 24819 | pkg_failed=untried |
| 24820 | fi |
| 24821 | |
| 24822 | |
| 24823 | |
| 24824 | if test $pkg_failed = yes; then |
| 24825 | |
| 24826 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 24827 | _pkg_short_errors_supported=yes |
| 24828 | else |
| 24829 | _pkg_short_errors_supported=no |
| 24830 | fi |
| 24831 | if test $_pkg_short_errors_supported = yes; then |
| 24832 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` |
| 24833 | else |
| 24834 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` |
| 24835 | fi |
| 24836 | # Put the nasty error message in config.log where it belongs |
| 24837 | echo "$AUTOTRACE_PKG_ERRORS" >&5 |
| 24838 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24840 | $as_echo "no" >&6; } |
| 24841 | have_autotrace=no |
| 24842 | elif test $pkg_failed = untried; then |
| 24843 | have_autotrace=no |
| 24844 | else |
| 24845 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS |
| 24846 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24848 | $as_echo "yes" >&6; } |
| 24849 | have_autotrace=yes |
| 24850 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24852 | $as_echo "" >&6; } |
| 24853 | fi |
| 24854 | |
| 24855 | if test "$have_autotrace" = 'yes'; then |
| 24856 | failed=0 |
| 24857 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24858 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24859 | |
| 24860 | if test "$with_modules" = 'no'; then |
| 24861 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| 24862 | fi |
| 24863 | fi |
| 24864 | |
| 24865 | if test "$have_autotrace" = 'yes'; then |
| 24866 | AUTOTRACE_DELEGATE_TRUE= |
| 24867 | AUTOTRACE_DELEGATE_FALSE='#' |
| 24868 | else |
| 24869 | AUTOTRACE_DELEGATE_TRUE='#' |
| 24870 | AUTOTRACE_DELEGATE_FALSE= |
| 24871 | fi |
| 24872 | |
| 24873 | |
| 24874 | |
| 24875 | |
| 24876 | |
| 24877 | # |
| 24878 | # Check for Display Postscript delegate library. |
| 24879 | # |
| 24880 | |
| 24881 | # Check whether --with-dps was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24882 | if test "${with_dps+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24883 | withval=$with_dps; with_dps=$withval |
| 24884 | else |
| 24885 | with_dps='yes' |
| 24886 | fi |
| 24887 | |
| 24888 | |
| 24889 | if test "$with_dps" != 'yes'; then |
| 24890 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 24891 | fi |
| 24892 | |
| 24893 | have_dps='no' |
| 24894 | DPS_LIBS='' |
| 24895 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24897 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24899 | $as_echo_n "checking for DPS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24901 | $as_echo "" >&6; } |
| 24902 | failed=0 |
| 24903 | passed=0 |
| 24904 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 24905 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24906 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" |
| 24907 | if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24908 | passed=`expr $passed + 1` |
| 24909 | else |
| 24910 | failed=`expr $failed + 1` |
| 24911 | fi |
| 24912 | |
| 24913 | |
| 24914 | # DPS issues: |
| 24915 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 24916 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 24917 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 24918 | # ImageMagick itself doesn't use -lXt. |
| 24919 | have_libdps='no' |
| 24920 | LIBDPS_XT='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24922 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24923 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24924 | $as_echo_n "(cached) " >&6 |
| 24925 | else |
| 24926 | ac_check_lib_save_LIBS=$LIBS |
| 24927 | LIBS="-ldps $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24929 | /* end confdefs.h. */ |
| 24930 | |
| 24931 | /* Override any GCC internal prototype to avoid an error. |
| 24932 | Use char because int might match the return type of a GCC |
| 24933 | builtin and then its argument prototype would still apply. */ |
| 24934 | #ifdef __cplusplus |
| 24935 | extern "C" |
| 24936 | #endif |
| 24937 | char DPSInitialize (); |
| 24938 | int |
| 24939 | main () |
| 24940 | { |
| 24941 | return DPSInitialize (); |
| 24942 | ; |
| 24943 | return 0; |
| 24944 | } |
| 24945 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24946 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24947 | ac_cv_lib_dps_DPSInitialize=yes |
| 24948 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24949 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24950 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24951 | rm -f core conftest.err conftest.$ac_objext \ |
| 24952 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24953 | LIBS=$ac_check_lib_save_LIBS |
| 24954 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24955 | { $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] | 24956 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24957 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24958 | have_libdps='yes' |
| 24959 | else |
| 24960 | have_libdps='no' |
| 24961 | fi |
| 24962 | |
| 24963 | if test "$have_libdps" != 'yes'; then |
| 24964 | # Unset cache variable so we can try again. |
| 24965 | unset ac_cv_lib_dps_DPSInitialize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24967 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24968 | if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24969 | $as_echo_n "(cached) " >&6 |
| 24970 | else |
| 24971 | ac_check_lib_save_LIBS=$LIBS |
| 24972 | LIBS="-ldps -lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24974 | /* end confdefs.h. */ |
| 24975 | |
| 24976 | /* Override any GCC internal prototype to avoid an error. |
| 24977 | Use char because int might match the return type of a GCC |
| 24978 | builtin and then its argument prototype would still apply. */ |
| 24979 | #ifdef __cplusplus |
| 24980 | extern "C" |
| 24981 | #endif |
| 24982 | char DPSInitialize (); |
| 24983 | int |
| 24984 | main () |
| 24985 | { |
| 24986 | return DPSInitialize (); |
| 24987 | ; |
| 24988 | return 0; |
| 24989 | } |
| 24990 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24991 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24992 | ac_cv_lib_dps_DPSInitialize=yes |
| 24993 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24994 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24995 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24996 | rm -f core conftest.err conftest.$ac_objext \ |
| 24997 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24998 | LIBS=$ac_check_lib_save_LIBS |
| 24999 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25000 | { $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] | 25001 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25002 | if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25003 | have_libdps='yes' |
| 25004 | else |
| 25005 | have_libdps='no' |
| 25006 | fi |
| 25007 | |
| 25008 | if test "$have_libdps" = 'yes'; then |
| 25009 | LIBDPS_XT='-lXt' |
| 25010 | fi |
| 25011 | fi |
| 25012 | if test "$have_libdps" = 'yes'; then |
| 25013 | passed=`expr $passed + 1` |
| 25014 | else |
| 25015 | failed=`expr $failed + 1` |
| 25016 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25018 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25019 | if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25020 | $as_echo_n "(cached) " >&6 |
| 25021 | else |
| 25022 | ac_check_lib_save_LIBS=$LIBS |
| 25023 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25025 | /* end confdefs.h. */ |
| 25026 | |
| 25027 | /* Override any GCC internal prototype to avoid an error. |
| 25028 | Use char because int might match the return type of a GCC |
| 25029 | builtin and then its argument prototype would still apply. */ |
| 25030 | #ifdef __cplusplus |
| 25031 | extern "C" |
| 25032 | #endif |
| 25033 | char XDPSPixelsPerPoint (); |
| 25034 | int |
| 25035 | main () |
| 25036 | { |
| 25037 | return XDPSPixelsPerPoint (); |
| 25038 | ; |
| 25039 | return 0; |
| 25040 | } |
| 25041 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25042 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25043 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 25044 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25045 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25046 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25047 | rm -f core conftest.err conftest.$ac_objext \ |
| 25048 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25049 | LIBS=$ac_check_lib_save_LIBS |
| 25050 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25051 | { $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] | 25052 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25053 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25054 | passed=`expr $passed + 1` |
| 25055 | else |
| 25056 | failed=`expr $failed + 1` |
| 25057 | fi |
| 25058 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25059 | { $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] | 25060 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 25061 | if test $passed -gt 0; then |
| 25062 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25063 | { $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] | 25064 | $as_echo "no -- some components failed test" >&6; } |
| 25065 | have_dps='no (failed tests)' |
| 25066 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 25067 | else |
| 25068 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 25069 | LIBS="$DPS_LIBS $LIBS" |
| 25070 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25071 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25072 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25074 | $as_echo "yes" >&6; } |
| 25075 | have_dps='yes' |
| 25076 | fi |
| 25077 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25079 | $as_echo "no" >&6; } |
| 25080 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 25081 | fi |
| 25082 | fi |
| 25083 | if test "$have_dps" = 'yes'; then |
| 25084 | DPS_DELEGATE_TRUE= |
| 25085 | DPS_DELEGATE_FALSE='#' |
| 25086 | else |
| 25087 | DPS_DELEGATE_TRUE='#' |
| 25088 | DPS_DELEGATE_FALSE= |
| 25089 | fi |
| 25090 | |
| 25091 | |
| 25092 | |
| 25093 | |
| 25094 | # |
| 25095 | # Check for DJVU delegate library. |
| 25096 | # |
| 25097 | |
| 25098 | # Check whether --with-djvu was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25099 | if test "${with_djvu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25100 | withval=$with_djvu; with_djvu=$withval |
| 25101 | else |
| 25102 | with_djvu='yes' |
| 25103 | fi |
| 25104 | |
| 25105 | |
| 25106 | if test "$with_djvu" != 'yes'; then |
| 25107 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 25108 | fi |
| 25109 | |
| 25110 | have_djvu='no' |
| 25111 | DJVU_LIBS='' |
| 25112 | if test "$with_djvu" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25114 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25116 | $as_echo_n "checking for DJVU... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25118 | $as_echo "" >&6; } |
| 25119 | failed=0 |
| 25120 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25121 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" |
| 25122 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25123 | passed=`expr $passed + 1` |
| 25124 | else |
| 25125 | failed=`expr $failed + 1` |
| 25126 | fi |
| 25127 | |
| 25128 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25129 | { $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] | 25130 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25131 | if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25132 | $as_echo_n "(cached) " >&6 |
| 25133 | else |
| 25134 | ac_check_lib_save_LIBS=$LIBS |
| 25135 | LIBS="-ldjvulibre $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25137 | /* end confdefs.h. */ |
| 25138 | |
| 25139 | /* Override any GCC internal prototype to avoid an error. |
| 25140 | Use char because int might match the return type of a GCC |
| 25141 | builtin and then its argument prototype would still apply. */ |
| 25142 | #ifdef __cplusplus |
| 25143 | extern "C" |
| 25144 | #endif |
| 25145 | char ddjvu_context_create (); |
| 25146 | int |
| 25147 | main () |
| 25148 | { |
| 25149 | return ddjvu_context_create (); |
| 25150 | ; |
| 25151 | return 0; |
| 25152 | } |
| 25153 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25154 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25155 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 25156 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25157 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25158 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25159 | rm -f core conftest.err conftest.$ac_objext \ |
| 25160 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25161 | LIBS=$ac_check_lib_save_LIBS |
| 25162 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25163 | { $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] | 25164 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25165 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25166 | passed=`expr $passed + 1` |
| 25167 | else |
| 25168 | failed=`expr $failed + 1` |
| 25169 | fi |
| 25170 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25171 | { $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] | 25172 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 25173 | if test $passed -gt 0; then |
| 25174 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25175 | { $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] | 25176 | $as_echo "no -- some components failed test" >&6; } |
| 25177 | have_djvu='no (failed tests)' |
| 25178 | else |
| 25179 | DJVU_LIBS='-ldjvulibre' |
| 25180 | LIBS="$DJVU_LIBS $LIBS" |
| 25181 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25182 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25183 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25185 | $as_echo "yes" >&6; } |
| 25186 | have_djvu='yes' |
| 25187 | fi |
| 25188 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25190 | $as_echo "no" >&6; } |
| 25191 | fi |
| 25192 | fi |
| 25193 | if test "$have_djvu" = 'yes'; then |
| 25194 | DJVU_DELEGATE_TRUE= |
| 25195 | DJVU_DELEGATE_FALSE='#' |
| 25196 | else |
| 25197 | DJVU_DELEGATE_TRUE='#' |
| 25198 | DJVU_DELEGATE_FALSE= |
| 25199 | fi |
| 25200 | |
| 25201 | |
| 25202 | |
| 25203 | |
| 25204 | # |
| 25205 | # Check for FFTW delegate library. |
| 25206 | # |
| 25207 | |
| 25208 | # Check whether --with-fftw was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25209 | if test "${with_fftw+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25210 | withval=$with_fftw; with_fftw=$withval |
| 25211 | else |
| 25212 | with_fftw='yes' |
| 25213 | fi |
| 25214 | |
| 25215 | |
| 25216 | if test "$with_fftw" != 'yes'; then |
| 25217 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 25218 | fi |
| 25219 | |
| 25220 | have_fftw='no' |
| 25221 | FFTW_LIBS='' |
| 25222 | if test "$with_fftw" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25224 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25226 | $as_echo_n "checking for FFTW... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25228 | $as_echo "" >&6; } |
| 25229 | failed=0 |
| 25230 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25231 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 25232 | if test "x$ac_cv_header_fftw3_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25233 | passed=`expr $passed + 1` |
| 25234 | else |
| 25235 | failed=`expr $failed + 1` |
| 25236 | fi |
| 25237 | |
| 25238 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25239 | { $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] | 25240 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25241 | if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25242 | $as_echo_n "(cached) " >&6 |
| 25243 | else |
| 25244 | ac_check_lib_save_LIBS=$LIBS |
| 25245 | LIBS="-lfftw3 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25247 | /* end confdefs.h. */ |
| 25248 | |
| 25249 | /* Override any GCC internal prototype to avoid an error. |
| 25250 | Use char because int might match the return type of a GCC |
| 25251 | builtin and then its argument prototype would still apply. */ |
| 25252 | #ifdef __cplusplus |
| 25253 | extern "C" |
| 25254 | #endif |
| 25255 | char fftw_execute (); |
| 25256 | int |
| 25257 | main () |
| 25258 | { |
| 25259 | return fftw_execute (); |
| 25260 | ; |
| 25261 | return 0; |
| 25262 | } |
| 25263 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25264 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25265 | ac_cv_lib_fftw3_fftw_execute=yes |
| 25266 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25267 | ac_cv_lib_fftw3_fftw_execute=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25268 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25269 | rm -f core conftest.err conftest.$ac_objext \ |
| 25270 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25271 | LIBS=$ac_check_lib_save_LIBS |
| 25272 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25273 | { $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] | 25274 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25275 | if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25276 | passed=`expr $passed + 1` |
| 25277 | else |
| 25278 | failed=`expr $failed + 1` |
| 25279 | fi |
| 25280 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25281 | { $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] | 25282 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 25283 | if test $passed -gt 0; then |
| 25284 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25285 | { $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] | 25286 | $as_echo "no -- some components failed test" >&6; } |
| 25287 | have_fftw='no (failed tests)' |
| 25288 | else |
| 25289 | FFTW_LIBS='-lfftw3' |
| 25290 | LIBS="$FFTW_LIBS $LIBS" |
| 25291 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25292 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25293 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25295 | $as_echo "yes" >&6; } |
| 25296 | have_fftw='yes' |
| 25297 | fi |
| 25298 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25300 | $as_echo "no" >&6; } |
| 25301 | fi |
| 25302 | fi |
| 25303 | if test "$have_fftw" = 'yes'; then |
| 25304 | FFTW_DELEGATE_TRUE= |
| 25305 | FFTW_DELEGATE_FALSE='#' |
| 25306 | else |
| 25307 | FFTW_DELEGATE_TRUE='#' |
| 25308 | FFTW_DELEGATE_FALSE= |
| 25309 | fi |
| 25310 | |
| 25311 | |
| 25312 | |
| 25313 | |
| 25314 | # |
| 25315 | # Check for FlashPIX delegate library. |
| 25316 | # |
| 25317 | |
| 25318 | # Check whether --with-fpx was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25319 | if test "${with_fpx+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25320 | withval=$with_fpx; with_fpx=$withval |
| 25321 | else |
| 25322 | with_fpx='yes' |
| 25323 | fi |
| 25324 | |
| 25325 | |
| 25326 | if test "$with_fpx" != 'yes'; then |
| 25327 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 25328 | fi |
| 25329 | |
| 25330 | have_fpx='no' |
| 25331 | FPX_LIBS='' |
| 25332 | if test "$with_fpx" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25334 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25336 | $as_echo_n "checking for FlashPIX... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25338 | $as_echo "" >&6; } |
| 25339 | failed=0 |
| 25340 | passed=0 |
| 25341 | ac_ext=cpp |
| 25342 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25343 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25344 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25345 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25346 | |
| 25347 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25348 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" |
| 25349 | if test "x$ac_cv_header_fpxlib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25350 | passed=`expr $passed + 1` |
| 25351 | else |
| 25352 | failed=`expr $failed + 1` |
| 25353 | fi |
| 25354 | |
| 25355 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25356 | { $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] | 25357 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25358 | if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25359 | $as_echo_n "(cached) " >&6 |
| 25360 | else |
| 25361 | ac_check_lib_save_LIBS=$LIBS |
| 25362 | LIBS="-lfpx $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25364 | /* end confdefs.h. */ |
| 25365 | |
| 25366 | /* Override any GCC internal prototype to avoid an error. |
| 25367 | Use char because int might match the return type of a GCC |
| 25368 | builtin and then its argument prototype would still apply. */ |
| 25369 | #ifdef __cplusplus |
| 25370 | extern "C" |
| 25371 | #endif |
| 25372 | char FPX_OpenImageByFilename (); |
| 25373 | int |
| 25374 | main () |
| 25375 | { |
| 25376 | return FPX_OpenImageByFilename (); |
| 25377 | ; |
| 25378 | return 0; |
| 25379 | } |
| 25380 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25381 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25382 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 25383 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25384 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25385 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25386 | rm -f core conftest.err conftest.$ac_objext \ |
| 25387 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25388 | LIBS=$ac_check_lib_save_LIBS |
| 25389 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25390 | { $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] | 25391 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25392 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25393 | passed=`expr $passed + 1` |
| 25394 | else |
| 25395 | failed=`expr $failed + 1` |
| 25396 | fi |
| 25397 | |
| 25398 | ac_ext=c |
| 25399 | ac_cpp='$CPP $CPPFLAGS' |
| 25400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 25403 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25404 | { $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] | 25405 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 25406 | if test $passed -gt 0; then |
| 25407 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25408 | { $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] | 25409 | $as_echo "no -- some components failed test" >&6; } |
| 25410 | have_fpx='no (failed tests)' |
| 25411 | else |
| 25412 | FPX_LIBS='-lfpx' |
| 25413 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25414 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25415 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25417 | $as_echo "yes" >&6; } |
| 25418 | have_fpx='yes' |
| 25419 | PERLMAINCC="$CXX" |
| 25420 | fi |
| 25421 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25423 | $as_echo "no" >&6; } |
| 25424 | fi |
| 25425 | fi |
| 25426 | if test "$have_fpx" = 'yes'; then |
| 25427 | FPX_DELEGATE_TRUE= |
| 25428 | FPX_DELEGATE_FALSE='#' |
| 25429 | else |
| 25430 | FPX_DELEGATE_TRUE='#' |
| 25431 | FPX_DELEGATE_FALSE= |
| 25432 | fi |
| 25433 | |
| 25434 | |
| 25435 | |
| 25436 | |
| 25437 | # |
| 25438 | # Check for fontconfig delegate library. |
| 25439 | # |
| 25440 | |
| 25441 | # Check whether --with-fontconfig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25442 | if test "${with_fontconfig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25443 | withval=$with_fontconfig; with_fontconfig=$withval |
| 25444 | else |
| 25445 | with_fontconfig=$have_x |
| 25446 | fi |
| 25447 | |
| 25448 | |
| 25449 | if test "$with_fontconfig" != 'yes'; then |
| 25450 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 25451 | fi |
| 25452 | |
| 25453 | have_fontconfig='no' |
| 25454 | FONTCONFIG_CFLAGS="" |
| 25455 | FONTCONFIG_LIBS="" |
| 25456 | FONTCONFIG_PKG="" |
| 25457 | if test "x$with_fontconfig" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25459 | $as_echo "-------------------------------------------------------------" >&6; } |
| 25460 | |
| 25461 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25463 | $as_echo_n "checking for FONTCONFIG... " >&6; } |
| 25464 | |
| 25465 | if test -n "$FONTCONFIG_CFLAGS"; then |
| 25466 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" |
| 25467 | elif test -n "$PKG_CONFIG"; then |
| 25468 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25470 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 25471 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25473 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25474 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` |
| 25475 | else |
| 25476 | pkg_failed=yes |
| 25477 | fi |
| 25478 | else |
| 25479 | pkg_failed=untried |
| 25480 | fi |
| 25481 | if test -n "$FONTCONFIG_LIBS"; then |
| 25482 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" |
| 25483 | elif test -n "$PKG_CONFIG"; then |
| 25484 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25485 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25486 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 25487 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25489 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25490 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` |
| 25491 | else |
| 25492 | pkg_failed=yes |
| 25493 | fi |
| 25494 | else |
| 25495 | pkg_failed=untried |
| 25496 | fi |
| 25497 | |
| 25498 | |
| 25499 | |
| 25500 | if test $pkg_failed = yes; then |
| 25501 | |
| 25502 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 25503 | _pkg_short_errors_supported=yes |
| 25504 | else |
| 25505 | _pkg_short_errors_supported=no |
| 25506 | fi |
| 25507 | if test $_pkg_short_errors_supported = yes; then |
| 25508 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 25509 | else |
| 25510 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 25511 | fi |
| 25512 | # Put the nasty error message in config.log where it belongs |
| 25513 | echo "$FONTCONFIG_PKG_ERRORS" >&5 |
| 25514 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25516 | $as_echo "no" >&6; } |
| 25517 | have_fontconfig=no |
| 25518 | elif test $pkg_failed = untried; then |
| 25519 | have_fontconfig=no |
| 25520 | else |
| 25521 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS |
| 25522 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25524 | $as_echo "yes" >&6; } |
| 25525 | have_fontconfig=yes |
| 25526 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25528 | $as_echo "" >&6; } |
| 25529 | fi |
| 25530 | |
| 25531 | if test "$have_fontconfig" = 'yes'; then |
| 25532 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25533 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25534 | |
| 25535 | if test "$with_modules" = 'no'; then |
| 25536 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
| 25537 | fi |
| 25538 | fi |
| 25539 | |
| 25540 | if test "$have_fontconfig" = 'yes'; then |
| 25541 | FONTCONFIG_DELEGATE_TRUE= |
| 25542 | FONTCONFIG_DELEGATE_FALSE='#' |
| 25543 | else |
| 25544 | FONTCONFIG_DELEGATE_TRUE='#' |
| 25545 | FONTCONFIG_DELEGATE_FALSE= |
| 25546 | fi |
| 25547 | |
| 25548 | |
| 25549 | |
| 25550 | |
| 25551 | |
| 25552 | # |
| 25553 | # Check for freetype delegate library. |
| 25554 | # |
| 25555 | |
| 25556 | # Check whether --with-freetype was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25557 | if test "${with_freetype+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25558 | withval=$with_freetype; with_freetype=$withval |
| 25559 | else |
| 25560 | with_freetype='yes' |
| 25561 | fi |
| 25562 | |
| 25563 | |
| 25564 | |
| 25565 | if test "$with_freetype" != 'yes'; then |
| 25566 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 25567 | fi |
| 25568 | |
| 25569 | have_freetype='no' |
| 25570 | FREETYPE_LIBS='' |
| 25571 | if test "$with_freetype" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25573 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25575 | $as_echo_n "checking for FreeType 2.0... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25577 | $as_echo "" >&6; } |
| 25578 | failed=0 |
| 25579 | passed=0 |
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 25580 | PERSIST_LIBS="$LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25581 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 25582 | if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then |
| 25583 | : |
| 25584 | else |
| 25585 | freetype_config='' |
| 25586 | for ac_prog in freetype-config |
| 25587 | do |
| 25588 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25589 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25591 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25592 | if test "${ac_cv_prog_freetype_config+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25593 | $as_echo_n "(cached) " >&6 |
| 25594 | else |
| 25595 | if test -n "$freetype_config"; then |
| 25596 | ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test. |
| 25597 | else |
| 25598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25599 | for as_dir in $PATH |
| 25600 | do |
| 25601 | IFS=$as_save_IFS |
| 25602 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25603 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 25605 | ac_cv_prog_freetype_config="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25606 | $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] | 25607 | break 2 |
| 25608 | fi |
| 25609 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25610 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25611 | IFS=$as_save_IFS |
| 25612 | |
| 25613 | fi |
| 25614 | fi |
| 25615 | freetype_config=$ac_cv_prog_freetype_config |
| 25616 | if test -n "$freetype_config"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25618 | $as_echo "$freetype_config" >&6; } |
| 25619 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25621 | $as_echo "no" >&6; } |
| 25622 | fi |
| 25623 | |
| 25624 | |
| 25625 | test -n "$freetype_config" && break |
| 25626 | done |
| 25627 | if test -n "$freetype_config"; then |
| 25628 | freetype_cflags=`$freetype_config --cflags` |
| 25629 | freetype_libs=`$freetype_config --libs` |
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 25630 | LIBS="$LIBS $freetype_libs" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25631 | CPPFLAGS="$freetype_cflags $CPPFLAGS" |
| 25632 | fi |
| 25633 | fi |
| 25634 | |
| 25635 | if test "$FREETYPE_LIBS" = ''; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25636 | { $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] | 25637 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25638 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25639 | $as_echo_n "(cached) " >&6 |
| 25640 | else |
| 25641 | ac_check_lib_save_LIBS=$LIBS |
| 25642 | LIBS="-lfreetype $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25644 | /* end confdefs.h. */ |
| 25645 | |
| 25646 | /* Override any GCC internal prototype to avoid an error. |
| 25647 | Use char because int might match the return type of a GCC |
| 25648 | builtin and then its argument prototype would still apply. */ |
| 25649 | #ifdef __cplusplus |
| 25650 | extern "C" |
| 25651 | #endif |
| 25652 | char FT_Init_FreeType (); |
| 25653 | int |
| 25654 | main () |
| 25655 | { |
| 25656 | return FT_Init_FreeType (); |
| 25657 | ; |
| 25658 | return 0; |
| 25659 | } |
| 25660 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25661 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25662 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
| 25663 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25664 | ac_cv_lib_freetype_FT_Init_FreeType=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25665 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25666 | rm -f core conftest.err conftest.$ac_objext \ |
| 25667 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25668 | LIBS=$ac_check_lib_save_LIBS |
| 25669 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25670 | { $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] | 25671 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25672 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25673 | FREETYPE_LIBS='-lfreetype' |
| 25674 | fi |
| 25675 | |
| 25676 | if test "$FREETYPE_LIBS" != ''; then |
| 25677 | passed=`expr $passed + 1` |
| 25678 | else |
| 25679 | failed=`expr $failed + 1` |
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 25680 | LIBS="$PERSIST_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25681 | fi |
| 25682 | fi |
| 25683 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25684 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" |
| 25685 | if test "x$ac_cv_header_ft2build_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25686 | FT2BUILD_H='#include <ft2build.h>' |
| 25687 | else |
| 25688 | ft2build='' |
| 25689 | fi |
| 25690 | |
| 25691 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25692 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H |
| 25693 | " |
| 25694 | if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25695 | have_freetype_h='yes' |
| 25696 | else |
| 25697 | have_freetype_h='no' |
| 25698 | fi |
| 25699 | |
| 25700 | |
| 25701 | if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then |
| 25702 | passed=`expr $passed + 1` |
| 25703 | else |
| 25704 | failed=`expr $failed + 1` |
| 25705 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 25706 | fi |
| 25707 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25708 | { $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] | 25709 | $as_echo_n "checking if FreeType package is complete... " >&6; } |
| 25710 | if test $passed -gt 0; then |
| 25711 | if test $failed -gt 0; then |
| 25712 | FREETYPE_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25713 | { $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] | 25714 | $as_echo "no -- some components failed test" >&6; } |
| 25715 | have_freetype='no (failed tests)' |
| 25716 | else |
| 25717 | LIBS="$FREETYPE_LIBS $LIBS" |
| 25718 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25719 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25720 | |
| 25721 | if test "$ac_cv_header_ft2build_h" = 'yes'; then |
| 25722 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25723 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25724 | |
| 25725 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25727 | $as_echo "yes" >&6; } |
| 25728 | have_freetype='yes' |
| 25729 | fi |
| 25730 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25732 | $as_echo "no" >&6; } |
| 25733 | fi |
| 25734 | fi |
| 25735 | if test "$have_freetype" = 'yes'; then |
| 25736 | FREETYPE_DELEGATE_TRUE= |
| 25737 | FREETYPE_DELEGATE_FALSE='#' |
| 25738 | else |
| 25739 | FREETYPE_DELEGATE_TRUE='#' |
| 25740 | FREETYPE_DELEGATE_FALSE= |
| 25741 | fi |
| 25742 | |
| 25743 | |
| 25744 | |
| 25745 | |
| 25746 | |
| 25747 | # |
| 25748 | # Check for Ghostscript library or framework. |
| 25749 | # |
| 25750 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 25751 | # or -framework Ghostscript |
| 25752 | |
| 25753 | |
| 25754 | # Check whether --with-gslib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25755 | if test "${with_gslib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25756 | withval=$with_gslib; with_gslib=$withval |
| 25757 | else |
| 25758 | with_gslib='no' |
| 25759 | fi |
| 25760 | |
| 25761 | |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 25762 | gslib_framework='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25763 | if test "$with_gslib" != 'yes'; then |
| 25764 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 25765 | fi |
| 25766 | |
| 25767 | have_gslib='no' |
| 25768 | GS_LIBS='' |
| 25769 | if test "$with_gslib" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25771 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25773 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25775 | $as_echo "" >&6; } |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 25776 | framework=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25777 | failed=0 |
| 25778 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25779 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" |
| 25780 | if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25781 | passed=`expr $passed + 1` |
| 25782 | else |
| 25783 | failed=`expr $failed + 1` |
| 25784 | fi |
| 25785 | |
| 25786 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25787 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" |
| 25788 | if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25789 | passed=`expr $passed + 1` |
| 25790 | else |
| 25791 | failed=`expr $failed + 1` |
| 25792 | fi |
| 25793 | |
| 25794 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25796 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25797 | if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25798 | $as_echo_n "(cached) " >&6 |
| 25799 | else |
| 25800 | ac_check_framework_save_LIBS=$LIBS |
| 25801 | LIBS="-framework Ghostscript $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25803 | /* end confdefs.h. */ |
| 25804 | |
| 25805 | /* Override any GCC internal prototype to avoid an error. |
| 25806 | Use char because int might match the return type of a GCC |
| 25807 | builtin and then its argument prototype would still apply. */ |
| 25808 | #ifdef __cplusplus |
| 25809 | extern "C" |
| 25810 | #endif |
| 25811 | char gsapi_new_instance (); |
| 25812 | int |
| 25813 | main () |
| 25814 | { |
| 25815 | return gsapi_new_instance (); |
| 25816 | ; |
| 25817 | return 0; |
| 25818 | } |
| 25819 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25820 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25821 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes |
| 25822 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25823 | ac_cv_framework_Ghostscript_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25824 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25825 | rm -f core conftest.err conftest.$ac_objext \ |
| 25826 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25827 | LIBS=$ac_check_framework_save_LIBS |
| 25828 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25830 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25831 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25832 | framework=`expr $framework + 1` |
| 25833 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25834 | { $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] | 25835 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25836 | if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25837 | $as_echo_n "(cached) " >&6 |
| 25838 | else |
| 25839 | ac_check_lib_save_LIBS=$LIBS |
| 25840 | LIBS="-lgs $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25842 | /* end confdefs.h. */ |
| 25843 | |
| 25844 | /* Override any GCC internal prototype to avoid an error. |
| 25845 | Use char because int might match the return type of a GCC |
| 25846 | builtin and then its argument prototype would still apply. */ |
| 25847 | #ifdef __cplusplus |
| 25848 | extern "C" |
| 25849 | #endif |
| 25850 | char gsapi_new_instance (); |
| 25851 | int |
| 25852 | main () |
| 25853 | { |
| 25854 | return gsapi_new_instance (); |
| 25855 | ; |
| 25856 | return 0; |
| 25857 | } |
| 25858 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25859 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25860 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 25861 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25862 | ac_cv_lib_gs_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25863 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25864 | rm -f core conftest.err conftest.$ac_objext \ |
| 25865 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25866 | LIBS=$ac_check_lib_save_LIBS |
| 25867 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25868 | { $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] | 25869 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25870 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25871 | passed=`expr $passed + 1` |
| 25872 | else |
| 25873 | failed=`expr $failed + 1` |
| 25874 | fi |
| 25875 | |
| 25876 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25877 | { $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] | 25878 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 25879 | if test $passed -gt 0; then |
| 25880 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25881 | { $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] | 25882 | $as_echo "no -- some components failed test" >&6; } |
| 25883 | have_gslib='no (failed tests)' |
| 25884 | else |
| 25885 | if test $framework -gt 0; then |
| 25886 | GS_LIBS='-framework Ghostscript' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 25887 | gslib_framework='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25889 | $as_echo "yes, using framework." >&6; } |
| 25890 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25892 | $as_echo "yes, using library." >&6; } |
| 25893 | GS_LIBS='-lgs' |
| 25894 | fi |
| 25895 | LIBS="$GS_LIBS $LIBS" |
| 25896 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25897 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25898 | |
| 25899 | have_gslib='yes' |
| 25900 | fi |
| 25901 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25903 | $as_echo "no" >&6; } |
| 25904 | fi |
| 25905 | fi |
| 25906 | if test "$have_gslib" = 'yes'; then |
| 25907 | GS_DELEGATE_TRUE= |
| 25908 | GS_DELEGATE_FALSE='#' |
| 25909 | else |
| 25910 | GS_DELEGATE_TRUE='#' |
| 25911 | GS_DELEGATE_FALSE= |
| 25912 | fi |
| 25913 | |
| 25914 | |
| 25915 | |
| 25916 | # Set default font search path |
| 25917 | |
| 25918 | # Check whether --with-fontpath was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25919 | if test "${with_fontpath+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25920 | withval=$with_fontpath; with_fontpath=$withval |
| 25921 | else |
| 25922 | with_fontpath='' |
| 25923 | fi |
| 25924 | |
| 25925 | |
| 25926 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 25927 | with_fontpath='' |
| 25928 | else |
| 25929 | |
| 25930 | cat >>confdefs.h <<_ACEOF |
| 25931 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 25932 | _ACEOF |
| 25933 | |
| 25934 | fi |
| 25935 | if test "$with_fontpath=" != ''; then |
| 25936 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 25937 | fi |
| 25938 | |
| 25939 | # Set Ghostscript font directory |
| 25940 | |
| 25941 | # Check whether --with-gs-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25942 | if test "${with_gs_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25943 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 25944 | else |
| 25945 | with_gs_font_dir='default' |
| 25946 | fi |
| 25947 | |
| 25948 | |
| 25949 | if test "$with_gs_font_dir" != 'default'; then |
| 25950 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 25951 | fi |
| 25952 | |
| 25953 | |
| 25954 | # |
| 25955 | # Check for GVC delegate library. |
| 25956 | # |
| 25957 | |
| 25958 | # Check whether --with-gvc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25959 | if test "${with_gvc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25960 | withval=$with_gvc; with_gvc=$withval |
| 25961 | else |
| 25962 | with_gvc='yes' |
| 25963 | fi |
| 25964 | |
| 25965 | |
| 25966 | if test "$with_gvc" != 'yes'; then |
| 25967 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 25968 | fi |
| 25969 | |
| 25970 | GVC_PKG="" |
| 25971 | if test "x$with_gvc" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25973 | $as_echo "-------------------------------------------------------------" >&6; } |
| 25974 | |
| 25975 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25977 | $as_echo_n "checking for GVC... " >&6; } |
| 25978 | |
| 25979 | if test -n "$GVC_CFLAGS"; then |
| 25980 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" |
| 25981 | elif test -n "$PKG_CONFIG"; then |
| 25982 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25983 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25984 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 25985 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25986 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25987 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25988 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` |
| 25989 | else |
| 25990 | pkg_failed=yes |
| 25991 | fi |
| 25992 | else |
| 25993 | pkg_failed=untried |
| 25994 | fi |
| 25995 | if test -n "$GVC_LIBS"; then |
| 25996 | pkg_cv_GVC_LIBS="$GVC_LIBS" |
| 25997 | elif test -n "$PKG_CONFIG"; then |
| 25998 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25999 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26000 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 26001 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26003 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26004 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` |
| 26005 | else |
| 26006 | pkg_failed=yes |
| 26007 | fi |
| 26008 | else |
| 26009 | pkg_failed=untried |
| 26010 | fi |
| 26011 | |
| 26012 | |
| 26013 | |
| 26014 | if test $pkg_failed = yes; then |
| 26015 | |
| 26016 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26017 | _pkg_short_errors_supported=yes |
| 26018 | else |
| 26019 | _pkg_short_errors_supported=no |
| 26020 | fi |
| 26021 | if test $_pkg_short_errors_supported = yes; then |
| 26022 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` |
| 26023 | else |
| 26024 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` |
| 26025 | fi |
| 26026 | # Put the nasty error message in config.log where it belongs |
| 26027 | echo "$GVC_PKG_ERRORS" >&5 |
| 26028 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26030 | $as_echo "no" >&6; } |
| 26031 | have_gvc=no |
| 26032 | elif test $pkg_failed = untried; then |
| 26033 | have_gvc=no |
| 26034 | else |
| 26035 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS |
| 26036 | GVC_LIBS=$pkg_cv_GVC_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26038 | $as_echo "yes" >&6; } |
| 26039 | have_gvc=yes |
| 26040 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26042 | $as_echo "" >&6; } |
| 26043 | fi |
| 26044 | |
| 26045 | if test "$have_gvc" = 'yes'; then |
| 26046 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26047 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26048 | |
| 26049 | if test "$with_modules" = 'no'; then |
| 26050 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 26051 | fi |
| 26052 | fi |
| 26053 | |
| 26054 | if test "$have_gvc" = 'yes'; then |
| 26055 | GVC_DELEGATE_TRUE= |
| 26056 | GVC_DELEGATE_FALSE='#' |
| 26057 | else |
| 26058 | GVC_DELEGATE_TRUE='#' |
| 26059 | GVC_DELEGATE_FALSE= |
| 26060 | fi |
| 26061 | |
| 26062 | |
| 26063 | |
| 26064 | |
| 26065 | |
| 26066 | # |
| 26067 | # Check for JBIG delegate library. |
| 26068 | # |
| 26069 | |
| 26070 | |
| 26071 | # Check whether --with-jbig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26072 | if test "${with_jbig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26073 | withval=$with_jbig; with_jbig=$withval |
| 26074 | else |
| 26075 | with_jbig='yes' |
| 26076 | fi |
| 26077 | |
| 26078 | |
| 26079 | have_jbig='no' |
| 26080 | JBIG_LIBS='' |
| 26081 | if test "$with_jbig" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26083 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26085 | $as_echo_n "checking for JBIG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26087 | $as_echo "" >&6; } |
| 26088 | failed=0 |
| 26089 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26090 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" |
| 26091 | if test "x$ac_cv_header_jbig_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26092 | passed=`expr $passed + 1` |
| 26093 | else |
| 26094 | failed=`expr $failed + 1` |
| 26095 | fi |
| 26096 | |
| 26097 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26098 | { $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] | 26099 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26100 | if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26101 | $as_echo_n "(cached) " >&6 |
| 26102 | else |
| 26103 | ac_check_lib_save_LIBS=$LIBS |
| 26104 | LIBS="-ljbig $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26106 | /* end confdefs.h. */ |
| 26107 | |
| 26108 | /* Override any GCC internal prototype to avoid an error. |
| 26109 | Use char because int might match the return type of a GCC |
| 26110 | builtin and then its argument prototype would still apply. */ |
| 26111 | #ifdef __cplusplus |
| 26112 | extern "C" |
| 26113 | #endif |
| 26114 | char jbg_dec_init (); |
| 26115 | int |
| 26116 | main () |
| 26117 | { |
| 26118 | return jbg_dec_init (); |
| 26119 | ; |
| 26120 | return 0; |
| 26121 | } |
| 26122 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26123 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26124 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 26125 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26126 | ac_cv_lib_jbig_jbg_dec_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26127 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26128 | rm -f core conftest.err conftest.$ac_objext \ |
| 26129 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26130 | LIBS=$ac_check_lib_save_LIBS |
| 26131 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26132 | { $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] | 26133 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26134 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26135 | passed=`expr $passed + 1` |
| 26136 | else |
| 26137 | failed=`expr $failed + 1` |
| 26138 | fi |
| 26139 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26140 | { $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] | 26141 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 26142 | if test $passed -gt 0; then |
| 26143 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26144 | { $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] | 26145 | $as_echo "no -- some components failed test" >&6; } |
| 26146 | have_jbig='no (failed tests)' |
| 26147 | else |
| 26148 | JBIG_LIBS='-ljbig' |
| 26149 | LIBS="$JBIG_LIBS $LIBS" |
| 26150 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26151 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26152 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26154 | $as_echo "yes" >&6; } |
| 26155 | have_jbig='yes' |
| 26156 | fi |
| 26157 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26159 | $as_echo "no" >&6; } |
| 26160 | fi |
| 26161 | fi |
| 26162 | if test "$have_jbig" = 'yes'; then |
| 26163 | JBIG_DELEGATE_TRUE= |
| 26164 | JBIG_DELEGATE_FALSE='#' |
| 26165 | else |
| 26166 | JBIG_DELEGATE_TRUE='#' |
| 26167 | JBIG_DELEGATE_FALSE= |
| 26168 | fi |
| 26169 | |
| 26170 | |
| 26171 | |
| 26172 | |
| 26173 | # |
| 26174 | # Check for JPEG delegate library. |
| 26175 | # |
| 26176 | |
| 26177 | # Check whether --with-jpeg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26178 | if test "${with_jpeg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26179 | withval=$with_jpeg; with_jpeg=$withval |
| 26180 | else |
| 26181 | with_jpeg='yes' |
| 26182 | fi |
| 26183 | |
| 26184 | |
| 26185 | if test "$with_jpeg" != 'yes'; then |
| 26186 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 26187 | fi |
| 26188 | |
| 26189 | have_jpeg='no' |
| 26190 | JPEG_LIBS='' |
| 26191 | if test "$with_jpeg" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26193 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26195 | $as_echo_n "checking for JPEG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26197 | $as_echo "" >&6; } |
| 26198 | failed=0 |
| 26199 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26200 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" |
| 26201 | if test "x$ac_cv_header_jconfig_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26202 | passed=`expr $passed + 1` |
| 26203 | else |
| 26204 | failed=`expr $failed + 1` |
| 26205 | fi |
| 26206 | |
| 26207 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26208 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| 26209 | if test "x$ac_cv_header_jerror_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26210 | passed=`expr $passed + 1` |
| 26211 | else |
| 26212 | failed=`expr $failed + 1` |
| 26213 | fi |
| 26214 | |
| 26215 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26216 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" |
| 26217 | if test "x$ac_cv_header_jmorecfg_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26218 | passed=`expr $passed + 1` |
| 26219 | else |
| 26220 | failed=`expr $failed + 1` |
| 26221 | fi |
| 26222 | |
| 26223 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26224 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" |
| 26225 | if test "x$ac_cv_header_jpeglib_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26226 | passed=`expr $passed + 1` |
| 26227 | else |
| 26228 | failed=`expr $failed + 1` |
| 26229 | fi |
| 26230 | |
| 26231 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26232 | { $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] | 26233 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26234 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26235 | $as_echo_n "(cached) " >&6 |
| 26236 | else |
| 26237 | ac_check_lib_save_LIBS=$LIBS |
| 26238 | LIBS="-ljpeg $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26240 | /* end confdefs.h. */ |
| 26241 | |
| 26242 | /* Override any GCC internal prototype to avoid an error. |
| 26243 | Use char because int might match the return type of a GCC |
| 26244 | builtin and then its argument prototype would still apply. */ |
| 26245 | #ifdef __cplusplus |
| 26246 | extern "C" |
| 26247 | #endif |
| 26248 | char jpeg_read_header (); |
| 26249 | int |
| 26250 | main () |
| 26251 | { |
| 26252 | return jpeg_read_header (); |
| 26253 | ; |
| 26254 | return 0; |
| 26255 | } |
| 26256 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26257 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26258 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 26259 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26260 | ac_cv_lib_jpeg_jpeg_read_header=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26261 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26262 | rm -f core conftest.err conftest.$ac_objext \ |
| 26263 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26264 | LIBS=$ac_check_lib_save_LIBS |
| 26265 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26266 | { $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] | 26267 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26268 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26269 | passed=`expr $passed + 1` |
| 26270 | else |
| 26271 | failed=`expr $failed + 1` |
| 26272 | fi |
| 26273 | |
| 26274 | |
| 26275 | # Test for compatible JPEG library |
| 26276 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26277 | { $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] | 26278 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26279 | if test "${ac_cv_jpeg_version_ok+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26280 | $as_echo_n "(cached) " >&6 |
| 26281 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26283 | /* end confdefs.h. */ |
| 26284 | #include <stdio.h> |
| 26285 | #include <stdlib.h> |
| 26286 | #include <jpeglib.h> |
| 26287 | |
| 26288 | int |
| 26289 | main () |
| 26290 | { |
| 26291 | |
| 26292 | #if JPEG_LIB_VERSION < 62 |
| 26293 | #error IJG JPEG library must be version 6b or newer! |
| 26294 | #endif |
| 26295 | return 0; |
| 26296 | |
| 26297 | ; |
| 26298 | return 0; |
| 26299 | } |
| 26300 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26301 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26302 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 26303 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26304 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26305 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26307 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26308 | { $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] | 26309 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 26310 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26311 | { $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] | 26312 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 26313 | if test $passed -gt 0; then |
| 26314 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26315 | { $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] | 26316 | $as_echo "no -- some components failed test" >&6; } |
| 26317 | have_jpeg='no (failed tests)' |
| 26318 | else |
| 26319 | JPEG_LIBS='-ljpeg' |
| 26320 | LIBS="$JPEG_LIBS $LIBS" |
| 26321 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26322 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26323 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26325 | $as_echo "yes" >&6; } |
| 26326 | have_jpeg='yes' |
| 26327 | fi |
| 26328 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26330 | $as_echo "no" >&6; } |
| 26331 | fi |
| 26332 | fi |
| 26333 | if test "$have_jpeg" = 'yes'; then |
| 26334 | JPEG_DELEGATE_TRUE= |
| 26335 | JPEG_DELEGATE_FALSE='#' |
| 26336 | else |
| 26337 | JPEG_DELEGATE_TRUE='#' |
| 26338 | JPEG_DELEGATE_FALSE= |
| 26339 | fi |
| 26340 | |
| 26341 | |
| 26342 | |
| 26343 | |
| 26344 | # |
| 26345 | # Check for JPEG Version 2 delegate library. |
| 26346 | # |
| 26347 | |
| 26348 | # Check whether --with-jp2 was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26349 | if test "${with_jp2+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26350 | withval=$with_jp2; with_jp2=$withval |
| 26351 | else |
| 26352 | with_jp2='yes' |
| 26353 | fi |
| 26354 | |
| 26355 | |
| 26356 | if test "$with_jp2" != 'yes'; then |
| 26357 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 26358 | fi |
| 26359 | |
| 26360 | have_jp2='no' |
| 26361 | JP2_LIBS='' |
| 26362 | if test "$with_jp2" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26364 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26366 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26368 | $as_echo "" >&6; } |
| 26369 | failed=0 |
| 26370 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26371 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" |
| 26372 | if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26373 | passed=`expr $passed + 1` |
| 26374 | else |
| 26375 | failed=`expr $failed + 1` |
| 26376 | fi |
| 26377 | |
| 26378 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26379 | { $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] | 26380 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26381 | if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26382 | $as_echo_n "(cached) " >&6 |
| 26383 | else |
| 26384 | ac_check_lib_save_LIBS=$LIBS |
| 26385 | LIBS="-ljasper $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26387 | /* end confdefs.h. */ |
| 26388 | |
| 26389 | /* Override any GCC internal prototype to avoid an error. |
| 26390 | Use char because int might match the return type of a GCC |
| 26391 | builtin and then its argument prototype would still apply. */ |
| 26392 | #ifdef __cplusplus |
| 26393 | extern "C" |
| 26394 | #endif |
| 26395 | char jas_stream_fopen (); |
| 26396 | int |
| 26397 | main () |
| 26398 | { |
| 26399 | return jas_stream_fopen (); |
| 26400 | ; |
| 26401 | return 0; |
| 26402 | } |
| 26403 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26404 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26405 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 26406 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26407 | ac_cv_lib_jasper_jas_stream_fopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26408 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26409 | rm -f core conftest.err conftest.$ac_objext \ |
| 26410 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26411 | LIBS=$ac_check_lib_save_LIBS |
| 26412 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26413 | { $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] | 26414 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26415 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26416 | passed=`expr $passed + 1` |
| 26417 | else |
| 26418 | failed=`expr $failed + 1` |
| 26419 | fi |
| 26420 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26421 | { $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] | 26422 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 26423 | if test $passed -gt 0; then |
| 26424 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26425 | { $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] | 26426 | $as_echo "no -- some components failed test" >&6; } |
| 26427 | have_jp2='no (failed tests)' |
| 26428 | else |
| 26429 | JP2_LIBS='-ljasper' |
| 26430 | LIBS="$JP2_LIBS $LIBS" |
| 26431 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26432 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26433 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26435 | $as_echo "yes" >&6; } |
| 26436 | have_jp2='yes' |
| 26437 | fi |
| 26438 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26440 | $as_echo "no" >&6; } |
| 26441 | fi |
| 26442 | fi |
| 26443 | if test "$have_jp2" = 'yes'; then |
| 26444 | JP2_DELEGATE_TRUE= |
| 26445 | JP2_DELEGATE_FALSE='#' |
| 26446 | else |
| 26447 | JP2_DELEGATE_TRUE='#' |
| 26448 | JP2_DELEGATE_FALSE= |
| 26449 | fi |
| 26450 | |
| 26451 | |
| 26452 | |
| 26453 | |
| 26454 | # |
| 26455 | # Check for LCMS delegate library. |
| 26456 | # |
| 26457 | |
| 26458 | # Check whether --with-lcms was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26459 | if test "${with_lcms+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26460 | withval=$with_lcms; with_lcms=$withval |
| 26461 | else |
| 26462 | with_lcms='yes' |
| 26463 | fi |
| 26464 | |
| 26465 | |
| 26466 | if test "$with_lcms" != 'yes'; then |
| 26467 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 26468 | fi |
| 26469 | |
| 26470 | have_lcms='no' |
| 26471 | LCMS_LIBS='' |
| 26472 | if test "$with_lcms" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26474 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26476 | $as_echo_n "checking for LCMS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26478 | $as_echo "" >&6; } |
| 26479 | failed=0 |
| 26480 | passed=0 |
| 26481 | have_lcms_header='no' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26482 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" |
| 26483 | if test "x$ac_cv_header_lcms_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26484 | have_lcms_header='yes' |
| 26485 | fi |
| 26486 | |
| 26487 | |
| 26488 | if test "$have_lcms_header" = 'yes'; then |
| 26489 | passed=`expr $passed + 1` |
| 26490 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26491 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26492 | |
| 26493 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26494 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" |
| 26495 | if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26496 | have_lcms_header='yes' |
| 26497 | fi |
| 26498 | |
| 26499 | |
| 26500 | if test "$have_lcms_header" = 'yes'; then |
| 26501 | passed=`expr $passed + 1` |
| 26502 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26503 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26504 | |
| 26505 | else |
| 26506 | failed=`expr $failed + 1` |
| 26507 | fi |
| 26508 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26510 | $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26511 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26512 | $as_echo_n "(cached) " >&6 |
| 26513 | else |
| 26514 | ac_check_lib_save_LIBS=$LIBS |
| 26515 | LIBS="-llcms $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26516 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26517 | /* end confdefs.h. */ |
| 26518 | |
| 26519 | /* Override any GCC internal prototype to avoid an error. |
| 26520 | Use char because int might match the return type of a GCC |
| 26521 | builtin and then its argument prototype would still apply. */ |
| 26522 | #ifdef __cplusplus |
| 26523 | extern "C" |
| 26524 | #endif |
| 26525 | char cmsOpenProfileFromMem (); |
| 26526 | int |
| 26527 | main () |
| 26528 | { |
| 26529 | return cmsOpenProfileFromMem (); |
| 26530 | ; |
| 26531 | return 0; |
| 26532 | } |
| 26533 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26534 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26535 | ac_cv_lib_lcms_cmsOpenProfileFromMem=yes |
| 26536 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26537 | ac_cv_lib_lcms_cmsOpenProfileFromMem=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26538 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26539 | rm -f core conftest.err conftest.$ac_objext \ |
| 26540 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26541 | LIBS=$ac_check_lib_save_LIBS |
| 26542 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26544 | $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26545 | if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26546 | passed=`expr $passed + 1` |
| 26547 | else |
| 26548 | failed=`expr $failed + 1` |
| 26549 | fi |
| 26550 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26551 | { $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] | 26552 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 26553 | if test $passed -gt 0; then |
| 26554 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26555 | { $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] | 26556 | $as_echo "no -- some components failed test" >&6; } |
| 26557 | have_lcms='no (failed tests)' |
| 26558 | else |
| 26559 | LCMS_LIBS='-llcms' |
| 26560 | LIBS="$LCMS_LIBS $LIBS" |
| 26561 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26562 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26563 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26565 | $as_echo "yes" >&6; } |
| 26566 | have_lcms='yes' |
| 26567 | fi |
| 26568 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26570 | $as_echo "no" >&6; } |
| 26571 | fi |
| 26572 | fi |
| 26573 | if test "$have_lcms" = 'yes'; then |
| 26574 | LCMS_DELEGATE_TRUE= |
| 26575 | LCMS_DELEGATE_FALSE='#' |
| 26576 | else |
| 26577 | LCMS_DELEGATE_TRUE='#' |
| 26578 | LCMS_DELEGATE_FALSE= |
| 26579 | fi |
| 26580 | |
| 26581 | |
| 26582 | |
| 26583 | |
| 26584 | # |
| 26585 | # Check for the LQR (Liquid Rescale) delegate library. |
| 26586 | # |
| 26587 | |
| 26588 | # Check whether --with-lqr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26589 | if test "${with_lqr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26590 | withval=$with_lqr; with_lqr=$withval |
| 26591 | else |
| 26592 | with_lqr='yes' |
| 26593 | fi |
| 26594 | |
| 26595 | |
| 26596 | if test "$with_lqr" != 'yes'; then |
| 26597 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 26598 | fi |
| 26599 | |
| 26600 | have_lqr='no' |
| 26601 | LQR_CFLAGS="" |
| 26602 | LQR_LIBS="" |
| 26603 | LQR_PKG="" |
| 26604 | if test "x$with_lqr" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26606 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26607 | |
| 26608 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26610 | $as_echo_n "checking for LQR... " >&6; } |
| 26611 | |
| 26612 | if test -n "$LQR_CFLAGS"; then |
| 26613 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" |
| 26614 | elif test -n "$PKG_CONFIG"; then |
| 26615 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26616 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26617 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 26618 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26620 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26621 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` |
| 26622 | else |
| 26623 | pkg_failed=yes |
| 26624 | fi |
| 26625 | else |
| 26626 | pkg_failed=untried |
| 26627 | fi |
| 26628 | if test -n "$LQR_LIBS"; then |
| 26629 | pkg_cv_LQR_LIBS="$LQR_LIBS" |
| 26630 | elif test -n "$PKG_CONFIG"; then |
| 26631 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26632 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26633 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 26634 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26635 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26636 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26637 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` |
| 26638 | else |
| 26639 | pkg_failed=yes |
| 26640 | fi |
| 26641 | else |
| 26642 | pkg_failed=untried |
| 26643 | fi |
| 26644 | |
| 26645 | |
| 26646 | |
| 26647 | if test $pkg_failed = yes; then |
| 26648 | |
| 26649 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26650 | _pkg_short_errors_supported=yes |
| 26651 | else |
| 26652 | _pkg_short_errors_supported=no |
| 26653 | fi |
| 26654 | if test $_pkg_short_errors_supported = yes; then |
| 26655 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 26656 | else |
| 26657 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 26658 | fi |
| 26659 | # Put the nasty error message in config.log where it belongs |
| 26660 | echo "$LQR_PKG_ERRORS" >&5 |
| 26661 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26663 | $as_echo "no" >&6; } |
| 26664 | have_lqr=no |
| 26665 | elif test $pkg_failed = untried; then |
| 26666 | have_lqr=no |
| 26667 | else |
| 26668 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS |
| 26669 | LQR_LIBS=$pkg_cv_LQR_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26671 | $as_echo "yes" >&6; } |
| 26672 | have_lqr=yes |
| 26673 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26675 | $as_echo "" >&6; } |
| 26676 | fi |
| 26677 | |
| 26678 | if test "$have_lqr" = 'yes'; then |
| 26679 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26680 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26681 | |
| 26682 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 26683 | fi |
| 26684 | |
| 26685 | if test "$have_lqr" = 'yes'; then |
| 26686 | LQR_DELEGATE_TRUE= |
| 26687 | LQR_DELEGATE_FALSE='#' |
| 26688 | else |
| 26689 | LQR_DELEGATE_TRUE='#' |
| 26690 | LQR_DELEGATE_FALSE= |
| 26691 | fi |
| 26692 | |
| 26693 | |
| 26694 | |
| 26695 | |
| 26696 | |
| 26697 | # |
| 26698 | # Check for the OpenEXR delegate library. |
| 26699 | # |
| 26700 | |
| 26701 | # Check whether --with-openexr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26702 | if test "${with_openexr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26703 | withval=$with_openexr; with_openexr=$withval |
| 26704 | else |
| 26705 | with_openexr='yes' |
| 26706 | fi |
| 26707 | |
| 26708 | |
| 26709 | if test "$with_openexr" != 'yes'; then |
| 26710 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 26711 | fi |
| 26712 | |
| 26713 | have_openexr='no' |
| 26714 | OPENEXR_CFLAGS="" |
| 26715 | OPENEXR_LIBS="" |
| 26716 | OPENEXR_PKG="" |
| 26717 | if test "x$with_openexr" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26719 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26720 | |
| 26721 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26723 | $as_echo_n "checking for OPENEXR... " >&6; } |
| 26724 | |
| 26725 | if test -n "$OPENEXR_CFLAGS"; then |
| 26726 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
| 26727 | elif test -n "$PKG_CONFIG"; then |
| 26728 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26729 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26730 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 26731 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26732 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26733 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26734 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` |
| 26735 | else |
| 26736 | pkg_failed=yes |
| 26737 | fi |
| 26738 | else |
| 26739 | pkg_failed=untried |
| 26740 | fi |
| 26741 | if test -n "$OPENEXR_LIBS"; then |
| 26742 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
| 26743 | elif test -n "$PKG_CONFIG"; then |
| 26744 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26745 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26746 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 26747 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26749 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26750 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` |
| 26751 | else |
| 26752 | pkg_failed=yes |
| 26753 | fi |
| 26754 | else |
| 26755 | pkg_failed=untried |
| 26756 | fi |
| 26757 | |
| 26758 | |
| 26759 | |
| 26760 | if test $pkg_failed = yes; then |
| 26761 | |
| 26762 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26763 | _pkg_short_errors_supported=yes |
| 26764 | else |
| 26765 | _pkg_short_errors_supported=no |
| 26766 | fi |
| 26767 | if test $_pkg_short_errors_supported = yes; then |
| 26768 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 26769 | else |
| 26770 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 26771 | fi |
| 26772 | # Put the nasty error message in config.log where it belongs |
| 26773 | echo "$OPENEXR_PKG_ERRORS" >&5 |
| 26774 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26776 | $as_echo "no" >&6; } |
| 26777 | have_openexr=no |
| 26778 | elif test $pkg_failed = untried; then |
| 26779 | have_openexr=no |
| 26780 | else |
| 26781 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
| 26782 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26784 | $as_echo "yes" >&6; } |
| 26785 | have_openexr=yes |
| 26786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26788 | $as_echo "" >&6; } |
| 26789 | fi |
| 26790 | |
| 26791 | if test "$have_openexr" = 'yes'; then |
| 26792 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26793 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26794 | |
| 26795 | if test "$with_modules" = 'no'; then |
| 26796 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 26797 | fi |
| 26798 | fi |
| 26799 | |
| 26800 | if test "$have_openexr" = 'yes'; then |
| 26801 | OPENEXR_DELEGATE_TRUE= |
| 26802 | OPENEXR_DELEGATE_FALSE='#' |
| 26803 | else |
| 26804 | OPENEXR_DELEGATE_TRUE='#' |
| 26805 | OPENEXR_DELEGATE_FALSE= |
| 26806 | fi |
| 26807 | |
| 26808 | |
| 26809 | |
| 26810 | |
| 26811 | |
| 26812 | # |
| 26813 | # Check for PNG delegate library. |
| 26814 | # |
| 26815 | |
| 26816 | # Check whether --with-png was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26817 | if test "${with_png+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26818 | withval=$with_png; with_png=$withval |
| 26819 | else |
| 26820 | with_png='yes' |
| 26821 | fi |
| 26822 | |
| 26823 | |
| 26824 | if test "$with_png" != 'yes'; then |
| 26825 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 26826 | fi |
| 26827 | |
| 26828 | have_png='no' |
| 26829 | PNG_LIBS='' |
| 26830 | if test "$with_png" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26832 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26834 | $as_echo_n "checking for PNG... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26836 | $as_echo "" >&6; } |
| 26837 | failed=0 |
| 26838 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26839 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 26840 | if test "x$ac_cv_header_png_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26841 | passed=`expr $passed + 1` |
| 26842 | else |
| 26843 | failed=`expr $failed + 1` |
| 26844 | fi |
| 26845 | |
| 26846 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26847 | { $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] | 26848 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26849 | if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26850 | $as_echo_n "(cached) " >&6 |
| 26851 | else |
| 26852 | ac_check_lib_save_LIBS=$LIBS |
| 26853 | LIBS="-lpng $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26855 | /* end confdefs.h. */ |
| 26856 | |
| 26857 | /* Override any GCC internal prototype to avoid an error. |
| 26858 | Use char because int might match the return type of a GCC |
| 26859 | builtin and then its argument prototype would still apply. */ |
| 26860 | #ifdef __cplusplus |
| 26861 | extern "C" |
| 26862 | #endif |
| 26863 | char png_get_io_ptr (); |
| 26864 | int |
| 26865 | main () |
| 26866 | { |
| 26867 | return png_get_io_ptr (); |
| 26868 | ; |
| 26869 | return 0; |
| 26870 | } |
| 26871 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26872 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26873 | ac_cv_lib_png_png_get_io_ptr=yes |
| 26874 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26875 | ac_cv_lib_png_png_get_io_ptr=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26876 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26877 | rm -f core conftest.err conftest.$ac_objext \ |
| 26878 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26879 | LIBS=$ac_check_lib_save_LIBS |
| 26880 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26881 | { $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] | 26882 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26883 | 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] | 26884 | passed=`expr $passed + 1` |
| 26885 | else |
| 26886 | failed=`expr $failed + 1` |
| 26887 | fi |
| 26888 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26889 | { $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] | 26890 | $as_echo_n "checking if PNG package is complete... " >&6; } |
| 26891 | if test $passed -gt 0; then |
| 26892 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26893 | { $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] | 26894 | $as_echo "no -- some components failed test" >&6; } |
| 26895 | have_png='no (failed tests)' |
| 26896 | else |
| 26897 | PNG_LIBS='-lpng' |
| 26898 | LIBS="$PNG_LIBS $LIBS" |
| 26899 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26900 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26901 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26903 | $as_echo "yes" >&6; } |
| 26904 | have_png='yes' |
| 26905 | fi |
| 26906 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26908 | $as_echo "no" >&6; } |
| 26909 | fi |
| 26910 | fi |
| 26911 | if test "$have_png" = 'yes'; then |
| 26912 | PNG_DELEGATE_TRUE= |
| 26913 | PNG_DELEGATE_FALSE='#' |
| 26914 | else |
| 26915 | PNG_DELEGATE_TRUE='#' |
| 26916 | PNG_DELEGATE_FALSE= |
| 26917 | fi |
| 26918 | |
| 26919 | |
| 26920 | |
| 26921 | |
| 26922 | # |
| 26923 | # Check for RSVG delegate library. |
| 26924 | # |
| 26925 | |
| 26926 | # Check whether --with-rsvg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26927 | if test "${with_rsvg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26928 | withval=$with_rsvg; with_rsvg=$withval |
| 26929 | else |
| 26930 | with_rsvg=$have_x |
| 26931 | fi |
| 26932 | |
| 26933 | |
| 26934 | if test "$with_rsvg" != 'yes'; then |
| 26935 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 26936 | fi |
| 26937 | |
| 26938 | have_rsvg='no' |
| 26939 | have_cairo='no' |
| 26940 | RSVG_CFLAGS="" |
| 26941 | RSVG_LIBS="" |
| 26942 | RSVG_PKG="" |
| 26943 | if test "x$with_rsvg" = "xyes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26945 | $as_echo "-------------------------------------------------------------" >&6; } |
| 26946 | |
| 26947 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26949 | $as_echo_n "checking for RSVG... " >&6; } |
| 26950 | |
| 26951 | if test -n "$RSVG_CFLAGS"; then |
| 26952 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" |
| 26953 | elif test -n "$PKG_CONFIG"; then |
| 26954 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26956 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 26957 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26959 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26960 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 26961 | else |
| 26962 | pkg_failed=yes |
| 26963 | fi |
| 26964 | else |
| 26965 | pkg_failed=untried |
| 26966 | fi |
| 26967 | if test -n "$RSVG_LIBS"; then |
| 26968 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" |
| 26969 | elif test -n "$PKG_CONFIG"; then |
| 26970 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26971 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26972 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 26973 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 26975 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26976 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 26977 | else |
| 26978 | pkg_failed=yes |
| 26979 | fi |
| 26980 | else |
| 26981 | pkg_failed=untried |
| 26982 | fi |
| 26983 | |
| 26984 | |
| 26985 | |
| 26986 | if test $pkg_failed = yes; then |
| 26987 | |
| 26988 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 26989 | _pkg_short_errors_supported=yes |
| 26990 | else |
| 26991 | _pkg_short_errors_supported=no |
| 26992 | fi |
| 26993 | if test $_pkg_short_errors_supported = yes; then |
| 26994 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 26995 | else |
| 26996 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 26997 | fi |
| 26998 | # Put the nasty error message in config.log where it belongs |
| 26999 | echo "$RSVG_PKG_ERRORS" >&5 |
| 27000 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27002 | $as_echo "no" >&6; } |
| 27003 | have_rsvg=no |
| 27004 | elif test $pkg_failed = untried; then |
| 27005 | have_rsvg=no |
| 27006 | else |
| 27007 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS |
| 27008 | RSVG_LIBS=$pkg_cv_RSVG_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27010 | $as_echo "yes" >&6; } |
| 27011 | have_rsvg=yes |
| 27012 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27014 | $as_echo "" >&6; } |
| 27015 | |
| 27016 | pkg_failed=no |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27018 | $as_echo_n "checking for CAIRO_SVG... " >&6; } |
| 27019 | |
| 27020 | if test -n "$CAIRO_SVG_CFLAGS"; then |
| 27021 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" |
| 27022 | elif test -n "$PKG_CONFIG"; then |
| 27023 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27024 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27025 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 27026 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27027 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27028 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27029 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` |
| 27030 | else |
| 27031 | pkg_failed=yes |
| 27032 | fi |
| 27033 | else |
| 27034 | pkg_failed=untried |
| 27035 | fi |
| 27036 | if test -n "$CAIRO_SVG_LIBS"; then |
| 27037 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" |
| 27038 | elif test -n "$PKG_CONFIG"; then |
| 27039 | if test -n "$PKG_CONFIG" && \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27041 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 27042 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 27044 | test $ac_status = 0; }; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27045 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` |
| 27046 | else |
| 27047 | pkg_failed=yes |
| 27048 | fi |
| 27049 | else |
| 27050 | pkg_failed=untried |
| 27051 | fi |
| 27052 | |
| 27053 | |
| 27054 | |
| 27055 | if test $pkg_failed = yes; then |
| 27056 | |
| 27057 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 27058 | _pkg_short_errors_supported=yes |
| 27059 | else |
| 27060 | _pkg_short_errors_supported=no |
| 27061 | fi |
| 27062 | if test $_pkg_short_errors_supported = yes; then |
| 27063 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` |
| 27064 | else |
| 27065 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` |
| 27066 | fi |
| 27067 | # Put the nasty error message in config.log where it belongs |
| 27068 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 |
| 27069 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27071 | $as_echo "no" >&6; } |
| 27072 | have_cairo=no |
| 27073 | elif test $pkg_failed = untried; then |
| 27074 | have_cairo=no |
| 27075 | else |
| 27076 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS |
| 27077 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27079 | $as_echo "yes" >&6; } |
| 27080 | have_cairo=yes |
| 27081 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27083 | $as_echo "" >&6; } |
| 27084 | fi |
| 27085 | |
| 27086 | if test "$have_rsvg" = 'yes'; then |
| 27087 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27088 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27089 | |
| 27090 | if test "$with_modules" = 'no'; then |
| 27091 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 27092 | fi |
| 27093 | fi |
| 27094 | |
| 27095 | if test "$have_cairo" = 'yes'; then |
| 27096 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27097 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27098 | |
| 27099 | if test "$with_modules" = 'no'; then |
| 27100 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 27101 | fi |
| 27102 | fi |
| 27103 | |
| 27104 | if test "$have_rsvg" = 'yes'; then |
| 27105 | RSVG_DELEGATE_TRUE= |
| 27106 | RSVG_DELEGATE_FALSE='#' |
| 27107 | else |
| 27108 | RSVG_DELEGATE_TRUE='#' |
| 27109 | RSVG_DELEGATE_FALSE= |
| 27110 | fi |
| 27111 | |
| 27112 | if test "$have_cairo" = 'yes'; then |
| 27113 | CAIRO_DELEGATE_TRUE= |
| 27114 | CAIRO_DELEGATE_FALSE='#' |
| 27115 | else |
| 27116 | CAIRO_DELEGATE_TRUE='#' |
| 27117 | CAIRO_DELEGATE_FALSE= |
| 27118 | fi |
| 27119 | |
| 27120 | |
| 27121 | |
| 27122 | |
| 27123 | |
| 27124 | # |
| 27125 | # Check for TIFF delegate library. |
| 27126 | # |
| 27127 | |
| 27128 | # Check whether --with-tiff was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27129 | if test "${with_tiff+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27130 | withval=$with_tiff; with_tiff=$withval |
| 27131 | else |
| 27132 | with_tiff='yes' |
| 27133 | fi |
| 27134 | |
| 27135 | |
| 27136 | if test "$with_tiff" != 'yes'; then |
| 27137 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 27138 | fi |
| 27139 | |
| 27140 | have_tiff='no' |
| 27141 | TIFF_LIBS='' |
| 27142 | if test "$with_tiff" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27144 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27146 | $as_echo_n "checking for TIFF... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27148 | $as_echo "" >&6; } |
| 27149 | failed=0 |
| 27150 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27151 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" |
| 27152 | if test "x$ac_cv_header_tiff_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27153 | passed=`expr $passed + 1` |
| 27154 | else |
| 27155 | failed=`expr $failed + 1` |
| 27156 | fi |
| 27157 | |
| 27158 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27159 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| 27160 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27161 | passed=`expr $passed + 1` |
| 27162 | else |
| 27163 | failed=`expr $failed + 1` |
| 27164 | fi |
| 27165 | |
| 27166 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27168 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27169 | if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27170 | $as_echo_n "(cached) " >&6 |
| 27171 | else |
| 27172 | ac_check_lib_save_LIBS=$LIBS |
| 27173 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27175 | /* end confdefs.h. */ |
| 27176 | |
| 27177 | /* Override any GCC internal prototype to avoid an error. |
| 27178 | Use char because int might match the return type of a GCC |
| 27179 | builtin and then its argument prototype would still apply. */ |
| 27180 | #ifdef __cplusplus |
| 27181 | extern "C" |
| 27182 | #endif |
| 27183 | char TIFFOpen (); |
| 27184 | int |
| 27185 | main () |
| 27186 | { |
| 27187 | return TIFFOpen (); |
| 27188 | ; |
| 27189 | return 0; |
| 27190 | } |
| 27191 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27192 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27193 | ac_cv_lib_tiff_TIFFOpen=yes |
| 27194 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27195 | ac_cv_lib_tiff_TIFFOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27196 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27197 | rm -f core conftest.err conftest.$ac_objext \ |
| 27198 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27199 | LIBS=$ac_check_lib_save_LIBS |
| 27200 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27201 | { $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] | 27202 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27203 | if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27204 | passed=`expr $passed + 1` |
| 27205 | else |
| 27206 | failed=`expr $failed + 1` |
| 27207 | fi |
| 27208 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27210 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27211 | if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27212 | $as_echo_n "(cached) " >&6 |
| 27213 | else |
| 27214 | ac_check_lib_save_LIBS=$LIBS |
| 27215 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27217 | /* end confdefs.h. */ |
| 27218 | |
| 27219 | /* Override any GCC internal prototype to avoid an error. |
| 27220 | Use char because int might match the return type of a GCC |
| 27221 | builtin and then its argument prototype would still apply. */ |
| 27222 | #ifdef __cplusplus |
| 27223 | extern "C" |
| 27224 | #endif |
| 27225 | char TIFFClientOpen (); |
| 27226 | int |
| 27227 | main () |
| 27228 | { |
| 27229 | return TIFFClientOpen (); |
| 27230 | ; |
| 27231 | return 0; |
| 27232 | } |
| 27233 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27234 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27235 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 27236 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27237 | ac_cv_lib_tiff_TIFFClientOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27238 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27239 | rm -f core conftest.err conftest.$ac_objext \ |
| 27240 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27241 | LIBS=$ac_check_lib_save_LIBS |
| 27242 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27243 | { $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] | 27244 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27245 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27246 | passed=`expr $passed + 1` |
| 27247 | else |
| 27248 | failed=`expr $failed + 1` |
| 27249 | fi |
| 27250 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27252 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27253 | if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27254 | $as_echo_n "(cached) " >&6 |
| 27255 | else |
| 27256 | ac_check_lib_save_LIBS=$LIBS |
| 27257 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27259 | /* end confdefs.h. */ |
| 27260 | |
| 27261 | /* Override any GCC internal prototype to avoid an error. |
| 27262 | Use char because int might match the return type of a GCC |
| 27263 | builtin and then its argument prototype would still apply. */ |
| 27264 | #ifdef __cplusplus |
| 27265 | extern "C" |
| 27266 | #endif |
| 27267 | char TIFFIsByteSwapped (); |
| 27268 | int |
| 27269 | main () |
| 27270 | { |
| 27271 | return TIFFIsByteSwapped (); |
| 27272 | ; |
| 27273 | return 0; |
| 27274 | } |
| 27275 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27276 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27277 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 27278 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27279 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27280 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27281 | rm -f core conftest.err conftest.$ac_objext \ |
| 27282 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27283 | LIBS=$ac_check_lib_save_LIBS |
| 27284 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27285 | { $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] | 27286 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27287 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27288 | passed=`expr $passed + 1` |
| 27289 | else |
| 27290 | failed=`expr $failed + 1` |
| 27291 | fi |
| 27292 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27294 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27295 | if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27296 | $as_echo_n "(cached) " >&6 |
| 27297 | else |
| 27298 | ac_check_lib_save_LIBS=$LIBS |
| 27299 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27301 | /* end confdefs.h. */ |
| 27302 | |
| 27303 | /* Override any GCC internal prototype to avoid an error. |
| 27304 | Use char because int might match the return type of a GCC |
| 27305 | builtin and then its argument prototype would still apply. */ |
| 27306 | #ifdef __cplusplus |
| 27307 | extern "C" |
| 27308 | #endif |
| 27309 | char TIFFReadRGBATile (); |
| 27310 | int |
| 27311 | main () |
| 27312 | { |
| 27313 | return TIFFReadRGBATile (); |
| 27314 | ; |
| 27315 | return 0; |
| 27316 | } |
| 27317 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27318 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27319 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 27320 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27321 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27322 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27323 | rm -f core conftest.err conftest.$ac_objext \ |
| 27324 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27325 | LIBS=$ac_check_lib_save_LIBS |
| 27326 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27327 | { $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] | 27328 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27329 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27330 | passed=`expr $passed + 1` |
| 27331 | else |
| 27332 | failed=`expr $failed + 1` |
| 27333 | fi |
| 27334 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27336 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27337 | if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27338 | $as_echo_n "(cached) " >&6 |
| 27339 | else |
| 27340 | ac_check_lib_save_LIBS=$LIBS |
| 27341 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27343 | /* end confdefs.h. */ |
| 27344 | |
| 27345 | /* Override any GCC internal prototype to avoid an error. |
| 27346 | Use char because int might match the return type of a GCC |
| 27347 | builtin and then its argument prototype would still apply. */ |
| 27348 | #ifdef __cplusplus |
| 27349 | extern "C" |
| 27350 | #endif |
| 27351 | char TIFFReadRGBAStrip (); |
| 27352 | int |
| 27353 | main () |
| 27354 | { |
| 27355 | return TIFFReadRGBAStrip (); |
| 27356 | ; |
| 27357 | return 0; |
| 27358 | } |
| 27359 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27360 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27361 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 27362 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27363 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27364 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27365 | rm -f core conftest.err conftest.$ac_objext \ |
| 27366 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27367 | LIBS=$ac_check_lib_save_LIBS |
| 27368 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27369 | { $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] | 27370 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27371 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27372 | passed=`expr $passed + 1` |
| 27373 | else |
| 27374 | failed=`expr $failed + 1` |
| 27375 | fi |
| 27376 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27377 | { $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] | 27378 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 27379 | if test $passed -gt 0; then |
| 27380 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27381 | { $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] | 27382 | $as_echo "no -- some components failed test" >&6; } |
| 27383 | have_tiff='no (failed tests)' |
| 27384 | else |
| 27385 | TIFF_LIBS='-ltiff' |
| 27386 | LIBS="$TIFF_LIBS $LIBS" |
| 27387 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27388 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27389 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27391 | $as_echo "yes" >&6; } |
| 27392 | have_tiff='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27393 | for ac_header in tiffconf.h |
| 27394 | do : |
| 27395 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" |
| 27396 | if test "x$ac_cv_header_tiffconf_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27397 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27398 | #define HAVE_TIFFCONF_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27399 | _ACEOF |
| 27400 | |
| 27401 | fi |
| 27402 | |
| 27403 | done |
| 27404 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27405 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27406 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ |
| 27407 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27408 | do : |
| 27409 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 27410 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 27411 | eval as_val=\$$as_ac_var |
| 27412 | if test "x$as_val" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27413 | cat >>confdefs.h <<_ACEOF |
| 27414 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 27415 | _ACEOF |
| 27416 | |
| 27417 | fi |
| 27418 | done |
| 27419 | |
| 27420 | fi |
| 27421 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27423 | $as_echo "no" >&6; } |
| 27424 | fi |
| 27425 | fi |
| 27426 | if test "$have_tiff" = 'yes'; then |
| 27427 | TIFF_DELEGATE_TRUE= |
| 27428 | TIFF_DELEGATE_FALSE='#' |
| 27429 | else |
| 27430 | TIFF_DELEGATE_TRUE='#' |
| 27431 | TIFF_DELEGATE_FALSE= |
| 27432 | fi |
| 27433 | |
| 27434 | |
| 27435 | |
| 27436 | |
| 27437 | # |
| 27438 | # Set Windows font directory. |
| 27439 | # |
| 27440 | |
| 27441 | # Check whether --with-windows-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27442 | if test "${with_windows_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27443 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 27444 | else |
| 27445 | with_windows_font_dir='' |
| 27446 | fi |
| 27447 | |
| 27448 | if test "$with_windows_font_dir" != '' ; then |
| 27449 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 27450 | fi |
| 27451 | |
| 27452 | |
| 27453 | # |
| 27454 | # Check for WMF delegate library. |
| 27455 | # |
| 27456 | |
| 27457 | # Check whether --with-wmf was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27458 | if test "${with_wmf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27459 | withval=$with_wmf; with_wmf=$withval |
| 27460 | else |
| 27461 | with_wmf=$with_modules |
| 27462 | fi |
| 27463 | |
| 27464 | |
| 27465 | if test "$with_wmf" != 'yes'; then |
| 27466 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 27467 | fi |
| 27468 | |
| 27469 | have_wmf='no' |
| 27470 | WMF_LIBS='' |
| 27471 | WMF_LIBS_DEPS='' |
| 27472 | OLIBS="$LIBS" |
| 27473 | if test "$with_wmf" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27475 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27477 | $as_echo_n "checking for WMF... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27479 | $as_echo "" >&6; } |
| 27480 | have_libwmf='no' |
| 27481 | have_libwmflite='no' |
| 27482 | have_libwmf_ipa_h='no' |
| 27483 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27484 | ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H |
| 27485 | " |
| 27486 | if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27487 | have_libwmf_ipa_h='yes' |
| 27488 | fi |
| 27489 | |
| 27490 | |
| 27491 | if test "$have_libwmf_ipa_h" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27493 | $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27494 | if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27495 | $as_echo_n "(cached) " >&6 |
| 27496 | else |
| 27497 | ac_check_lib_save_LIBS=$LIBS |
| 27498 | LIBS="-lwmflite $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27499 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27500 | /* end confdefs.h. */ |
| 27501 | |
| 27502 | /* Override any GCC internal prototype to avoid an error. |
| 27503 | Use char because int might match the return type of a GCC |
| 27504 | builtin and then its argument prototype would still apply. */ |
| 27505 | #ifdef __cplusplus |
| 27506 | extern "C" |
| 27507 | #endif |
| 27508 | char wmf_lite_create (); |
| 27509 | int |
| 27510 | main () |
| 27511 | { |
| 27512 | return wmf_lite_create (); |
| 27513 | ; |
| 27514 | return 0; |
| 27515 | } |
| 27516 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27517 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27518 | ac_cv_lib_wmflite_wmf_lite_create=yes |
| 27519 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27520 | ac_cv_lib_wmflite_wmf_lite_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27521 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27522 | rm -f core conftest.err conftest.$ac_objext \ |
| 27523 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27524 | LIBS=$ac_check_lib_save_LIBS |
| 27525 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27527 | $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27528 | if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27529 | have_libwmflite='yes' |
| 27530 | fi |
| 27531 | |
| 27532 | if test "$have_libwmflite" = 'yes'; then |
| 27533 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27534 | $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27535 | |
| 27536 | WMF_LIBS='-lwmflite' |
| 27537 | LIBS="$WMF_LIBS $LIBS" |
| 27538 | have_wmf='yes' |
| 27539 | else |
| 27540 | WMF_LIBS_DEPS='' |
| 27541 | WMF_CONFIG_LIBS=`libwmf-config --libs` |
| 27542 | for lib in xml2 expat freetype jpeg png z; do |
| 27543 | testlib="-l${lib}" |
| 27544 | echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" |
| 27545 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27547 | $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27548 | if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27549 | $as_echo_n "(cached) " >&6 |
| 27550 | else |
| 27551 | ac_check_lib_save_LIBS=$LIBS |
| 27552 | LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27554 | /* end confdefs.h. */ |
| 27555 | |
| 27556 | /* Override any GCC internal prototype to avoid an error. |
| 27557 | Use char because int might match the return type of a GCC |
| 27558 | builtin and then its argument prototype would still apply. */ |
| 27559 | #ifdef __cplusplus |
| 27560 | extern "C" |
| 27561 | #endif |
| 27562 | char wmf_api_create (); |
| 27563 | int |
| 27564 | main () |
| 27565 | { |
| 27566 | return wmf_api_create (); |
| 27567 | ; |
| 27568 | return 0; |
| 27569 | } |
| 27570 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27571 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27572 | ac_cv_lib_wmf_wmf_api_create=yes |
| 27573 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27574 | ac_cv_lib_wmf_wmf_api_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27575 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27576 | rm -f core conftest.err conftest.$ac_objext \ |
| 27577 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27578 | LIBS=$ac_check_lib_save_LIBS |
| 27579 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27581 | $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27582 | if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27583 | have_libwmf='yes' |
| 27584 | fi |
| 27585 | |
| 27586 | if test "$have_libwmf" = 'yes'; then |
| 27587 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27588 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27589 | |
| 27590 | WMF_LIBS='-lwmf' |
| 27591 | LIBS="$WMF_LIBS $LIBS" |
| 27592 | have_wmf='yes' |
| 27593 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27594 | { $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] | 27595 | $as_echo "no -- some components failed test" >&6; } |
| 27596 | have_wmf='no (failed tests)' |
| 27597 | have_wmflite='no (failed tests)' |
| 27598 | LIBS="$OLIBS" |
| 27599 | WMF_LIBS='' |
| 27600 | fi |
| 27601 | fi |
| 27602 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27604 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 27605 | if test "$have_wmf" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27607 | $as_echo "yes" >&6; } |
| 27608 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27610 | $as_echo "no" >&6; } |
| 27611 | fi |
| 27612 | fi |
| 27613 | if test "$have_wmf" = 'yes'; then |
| 27614 | WMF_DELEGATE_TRUE= |
| 27615 | WMF_DELEGATE_FALSE='#' |
| 27616 | else |
| 27617 | WMF_DELEGATE_TRUE='#' |
| 27618 | WMF_DELEGATE_FALSE= |
| 27619 | fi |
| 27620 | |
| 27621 | |
| 27622 | |
| 27623 | |
| 27624 | |
| 27625 | # |
| 27626 | # Check for XML delegate library. |
| 27627 | # |
| 27628 | |
| 27629 | # Check whether --with-xml was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27630 | if test "${with_xml+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27631 | withval=$with_xml; with_xml=$withval |
| 27632 | else |
| 27633 | with_xml=$have_x |
| 27634 | fi |
| 27635 | |
| 27636 | |
| 27637 | if test "$with_xml" != 'yes' ; then |
| 27638 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 27639 | fi |
| 27640 | |
| 27641 | have_xml='no' |
| 27642 | XML_LIBS='' |
| 27643 | if test "$with_xml" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27645 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27647 | $as_echo_n "checking for XML... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27649 | $as_echo "" >&6; } |
| 27650 | PERSIST_LDFLAGS=$LDFLAGS |
| 27651 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 27652 | xml2_config='' |
| 27653 | for ac_prog in xml2-config |
| 27654 | do |
| 27655 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 27656 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27658 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27659 | if test "${ac_cv_prog_xml2_config+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27660 | $as_echo_n "(cached) " >&6 |
| 27661 | else |
| 27662 | if test -n "$xml2_config"; then |
| 27663 | ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test. |
| 27664 | else |
| 27665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 27666 | for as_dir in $PATH |
| 27667 | do |
| 27668 | IFS=$as_save_IFS |
| 27669 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 27672 | ac_cv_prog_xml2_config="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27673 | $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] | 27674 | break 2 |
| 27675 | fi |
| 27676 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27677 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27678 | IFS=$as_save_IFS |
| 27679 | |
| 27680 | fi |
| 27681 | fi |
| 27682 | xml2_config=$ac_cv_prog_xml2_config |
| 27683 | if test -n "$xml2_config"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27685 | $as_echo "$xml2_config" >&6; } |
| 27686 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27688 | $as_echo "no" >&6; } |
| 27689 | fi |
| 27690 | |
| 27691 | |
| 27692 | test -n "$xml2_config" && break |
| 27693 | done |
| 27694 | if test -n "$xml2_config"; then |
| 27695 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 27696 | # the shared library installed under /usr/lib, whereas the package |
| 27697 | # installs itself under $prefix/libxml and $prefix/lib. |
| 27698 | xml2_prefix=`xml2-config --prefix` |
| 27699 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 27700 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 27701 | fi |
| 27702 | if test "${xml2_prefix}" != '/usr'; then |
| 27703 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 27704 | fi |
| 27705 | fi |
| 27706 | failed=0 |
| 27707 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27708 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 27709 | if test "x$ac_cv_header_libxml_parser_h" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27710 | passed=`expr $passed + 1` |
| 27711 | else |
| 27712 | failed=`expr $failed + 1` |
| 27713 | fi |
| 27714 | |
| 27715 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27717 | $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27718 | if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27719 | $as_echo_n "(cached) " >&6 |
| 27720 | else |
| 27721 | ac_check_lib_save_LIBS=$LIBS |
| 27722 | LIBS="-lxml2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27724 | /* end confdefs.h. */ |
| 27725 | |
| 27726 | /* Override any GCC internal prototype to avoid an error. |
| 27727 | Use char because int might match the return type of a GCC |
| 27728 | builtin and then its argument prototype would still apply. */ |
| 27729 | #ifdef __cplusplus |
| 27730 | extern "C" |
| 27731 | #endif |
| 27732 | char xmlParseExternalEntity (); |
| 27733 | int |
| 27734 | main () |
| 27735 | { |
| 27736 | return xmlParseExternalEntity (); |
| 27737 | ; |
| 27738 | return 0; |
| 27739 | } |
| 27740 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27741 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27742 | ac_cv_lib_xml2_xmlParseExternalEntity=yes |
| 27743 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27744 | ac_cv_lib_xml2_xmlParseExternalEntity=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27745 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27746 | rm -f core conftest.err conftest.$ac_objext \ |
| 27747 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27748 | LIBS=$ac_check_lib_save_LIBS |
| 27749 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27750 | { $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] | 27751 | $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27752 | if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27753 | passed=`expr $passed + 1` |
| 27754 | else |
| 27755 | failed=`expr $failed + 1` |
| 27756 | fi |
| 27757 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27758 | { $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] | 27759 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 27760 | if test $passed -gt 0; then |
| 27761 | if test $failed -gt 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27762 | { $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] | 27763 | $as_echo "no -- some components failed test" >&6; } |
| 27764 | have_xml='no (failed tests)' |
| 27765 | LDFLAGS="$PERSIST_LDFLAGS" |
| 27766 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 27767 | else |
| 27768 | XML_LIBS='-lxml2' |
| 27769 | LIBS="$XML_LIBS $LIBS" |
| 27770 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27771 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27772 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27774 | $as_echo "yes" >&6; } |
| 27775 | have_xml='yes' |
| 27776 | fi |
| 27777 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27779 | $as_echo "no" >&6; } |
| 27780 | fi |
| 27781 | fi |
| 27782 | if test "$have_xml" = 'yes'; then |
| 27783 | XML_DELEGATE_TRUE= |
| 27784 | XML_DELEGATE_FALSE='#' |
| 27785 | else |
| 27786 | XML_DELEGATE_TRUE='#' |
| 27787 | XML_DELEGATE_FALSE= |
| 27788 | fi |
| 27789 | |
| 27790 | |
| 27791 | |
| 27792 | |
| 27793 | # Substitute compiler name to build/link PerlMagick |
| 27794 | # |
| 27795 | |
| 27796 | |
| 27797 | # |
| 27798 | # Configure install Paths |
| 27799 | # |
| 27800 | |
| 27801 | # Subdirectory under lib to place ImageMagick lib files |
| 27802 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 27803 | |
| 27804 | cat >>confdefs.h <<_ACEOF |
| 27805 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 27806 | _ACEOF |
| 27807 | |
| 27808 | |
| 27809 | # Path to ImageMagick bin directory |
| 27810 | EXECUTABLE_PATH="${BIN_DIR}" |
| 27811 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 27812 | case "${build_os}" in |
| 27813 | mingw* ) |
| 27814 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 27815 | ;; |
| 27816 | esac |
| 27817 | |
| 27818 | cat >>confdefs.h <<_ACEOF |
| 27819 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 27820 | _ACEOF |
| 27821 | |
| 27822 | |
| 27823 | |
| 27824 | # Path to ImageMagick lib |
| 27825 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 27826 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 27827 | case "${build_os}" in |
| 27828 | mingw* ) |
| 27829 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 27830 | ;; |
| 27831 | esac |
| 27832 | |
| 27833 | cat >>confdefs.h <<_ACEOF |
| 27834 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 27835 | _ACEOF |
| 27836 | |
| 27837 | |
| 27838 | |
| 27839 | # Subdirectory under lib to place ImageMagick configuration files |
| 27840 | CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 27841 | |
| 27842 | cat >>confdefs.h <<_ACEOF |
| 27843 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 27844 | _ACEOF |
| 27845 | |
| 27846 | CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 27847 | DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 27848 | case "${build_os}" in |
| 27849 | mingw* ) |
| 27850 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 27851 | ;; |
| 27852 | esac |
| 27853 | |
| 27854 | cat >>confdefs.h <<_ACEOF |
| 27855 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 27856 | _ACEOF |
| 27857 | |
| 27858 | |
| 27859 | |
| 27860 | # |
| 27861 | # Subdirectory under lib to place ImageMagick coder module files |
| 27862 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" |
| 27863 | |
| 27864 | cat >>confdefs.h <<_ACEOF |
| 27865 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" |
| 27866 | _ACEOF |
| 27867 | |
| 27868 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" |
| 27869 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" |
| 27870 | case "${build_os}" in |
| 27871 | mingw* ) |
| 27872 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` |
| 27873 | ;; |
| 27874 | esac |
| 27875 | |
| 27876 | cat >>confdefs.h <<_ACEOF |
| 27877 | #define CODER_PATH "$DEFINE_CODER_PATH" |
| 27878 | _ACEOF |
| 27879 | |
| 27880 | |
| 27881 | |
| 27882 | # |
| 27883 | # Subdirectory under lib to place ImageMagick filter module files |
| 27884 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" |
| 27885 | |
| 27886 | cat >>confdefs.h <<_ACEOF |
| 27887 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" |
| 27888 | _ACEOF |
| 27889 | |
| 27890 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" |
| 27891 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" |
| 27892 | case "${build_os}" in |
| 27893 | mingw* ) |
| 27894 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` |
| 27895 | ;; |
| 27896 | esac |
| 27897 | |
| 27898 | cat >>confdefs.h <<_ACEOF |
| 27899 | #define FILTER_PATH "$DEFINE_FILTER_PATH" |
| 27900 | _ACEOF |
| 27901 | |
| 27902 | |
| 27903 | |
| 27904 | # |
| 27905 | # Path to ImageMagick documentation files |
| 27906 | DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 27907 | DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}" |
| 27908 | DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/" |
| 27909 | case "${build_os}" in |
| 27910 | mingw* ) |
| 27911 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 27912 | ;; |
| 27913 | esac |
| 27914 | |
| 27915 | cat >>confdefs.h <<_ACEOF |
| 27916 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 27917 | _ACEOF |
| 27918 | |
| 27919 | |
| 27920 | |
| 27921 | # |
| 27922 | # Path to ImageMagick share files |
| 27923 | SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 27924 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| 27925 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| 27926 | case "${build_os}" in |
| 27927 | mingw* ) |
| 27928 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| 27929 | ;; |
| 27930 | esac |
| 27931 | |
| 27932 | cat >>confdefs.h <<_ACEOF |
| 27933 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| 27934 | _ACEOF |
| 27935 | |
| 27936 | |
| 27937 | |
| 27938 | # Subdirectory under share to place ImageMagick configuration files |
| 27939 | SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config" |
| 27940 | |
| 27941 | cat >>confdefs.h <<_ACEOF |
| 27942 | #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH" |
| 27943 | _ACEOF |
| 27944 | |
| 27945 | SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}" |
| 27946 | DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/" |
| 27947 | case "${build_os}" in |
| 27948 | mingw* ) |
| 27949 | DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1` |
| 27950 | ;; |
| 27951 | esac |
| 27952 | |
| 27953 | cat >>confdefs.h <<_ACEOF |
| 27954 | #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH" |
| 27955 | _ACEOF |
| 27956 | |
| 27957 | |
| 27958 | |
| 27959 | # |
| 27960 | # program_transform_name is formed for use in a Makefile, so create a |
| 27961 | # modified version for use in a shell script. |
| 27962 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 27963 | |
| 27964 | # Default delegate definitions |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27966 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27968 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27970 | $as_echo "" >&6; } |
| 27971 | AutotraceDecodeDelegateDefault='autotrace' |
| 27972 | AVIDecodeDelegateDefault='mplayer' |
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 27973 | BlenderDecodeDelegateDefault='blender' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27974 | BZIPDelegateDefault='bzip2' |
| 27975 | BrowseDelegateDefault='xdg-open' |
| 27976 | CGMDecodeDelegateDefault='ralcgm' |
| 27977 | CatDelegateDefault='cat' |
| 27978 | DNGDecodeDelegateDefault='ufraw-batch' |
| 27979 | GVCDecodeDelegateDefault='dot' |
| 27980 | DVIDecodeDelegateDefault='dvips' |
| 27981 | EchoDelegateDefault='echo' |
| 27982 | EditorDelegateDefault='xterm' |
| 27983 | FIGDecodeDelegateDefault='fig2dev' |
| 27984 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 27985 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 27986 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 27987 | GnuplotDecodeDelegateDefault='gnuplot' |
| 27988 | HDRDecodeDelegateDefault='ra_pfm' |
| 27989 | HPGLDecodeDelegateDefault='hp2xx' |
| 27990 | HTMLDecodeDelegateDefault='html2ps' |
| 27991 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 27992 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| 27993 | LPDelegateDefault='lp' |
| 27994 | LPRDelegateDefault='lpr' |
| 27995 | LZWDecodeDelegateDefault='uncompress' |
| 27996 | LZWEncodeDelegateDefault='compress' |
| 27997 | LaunchDelegateDefault='gimp' |
| 27998 | MANDelegateDefault='groff' |
| 27999 | MPEGDecodeDelegateDefault='ffmpeg' |
| 28000 | MPEGEncodeDelegateDefault='ffmpeg' |
| 28001 | MVDelegateDefault='mv' |
| 28002 | PCLDelegateDefault='pcl6' |
| 28003 | PGPDecodeDelegateDefault='pgpv' |
| 28004 | POVDelegateDefault='povray' |
| 28005 | if test "$native_win32_build" = 'yes'; then |
| 28006 | PSDelegateDefault='gswin32c' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28007 | elif test "$gslib_framework" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28008 | PSDelegateDefault='gsc' |
| 28009 | else |
| 28010 | PSDelegateDefault='gs' |
| 28011 | fi |
| 28012 | RLEEncodeDelegateDefault='rawtorle' |
| 28013 | RMDelegateDefault='rm' |
| 28014 | SCANDecodeDelegateDefault='scanimage' |
| 28015 | TXTDelegateDefault='enscript' |
| 28016 | WMFDecodeDelegateDefault='wmf2eps' |
| 28017 | WWWDecodeDelegateDefault='curl' |
| 28018 | XPSDelegateDefault='gxps' |
| 28019 | ZipDelegateDefault='gzip' |
| 28020 | |
| 28021 | # Search for delegates |
| 28022 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 28023 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28025 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28026 | if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28027 | $as_echo_n "(cached) " >&6 |
| 28028 | else |
| 28029 | case $AutotraceDecodeDelegate in |
| 28030 | [\\/]* | ?:[\\/]*) |
| 28031 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 28032 | ;; |
| 28033 | *) |
| 28034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28035 | for as_dir in $PATH |
| 28036 | do |
| 28037 | IFS=$as_save_IFS |
| 28038 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28039 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28040 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28041 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28042 | $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] | 28043 | break 2 |
| 28044 | fi |
| 28045 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28046 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28047 | IFS=$as_save_IFS |
| 28048 | |
| 28049 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 28050 | ;; |
| 28051 | esac |
| 28052 | fi |
| 28053 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 28054 | if test -n "$AutotraceDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28056 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 28057 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28059 | $as_echo "no" >&6; } |
| 28060 | fi |
| 28061 | |
| 28062 | |
| 28063 | # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args. |
| 28064 | set dummy "$AVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28066 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28067 | if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28068 | $as_echo_n "(cached) " >&6 |
| 28069 | else |
| 28070 | case $AVIDecodeDelegate in |
| 28071 | [\\/]* | ?:[\\/]*) |
| 28072 | ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path. |
| 28073 | ;; |
| 28074 | *) |
| 28075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28076 | for as_dir in $PATH |
| 28077 | do |
| 28078 | IFS=$as_save_IFS |
| 28079 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28082 | ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28083 | $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] | 28084 | break 2 |
| 28085 | fi |
| 28086 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28087 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28088 | IFS=$as_save_IFS |
| 28089 | |
| 28090 | test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault"" |
| 28091 | ;; |
| 28092 | esac |
| 28093 | fi |
| 28094 | AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate |
| 28095 | if test -n "$AVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28097 | $as_echo "$AVIDecodeDelegate" >&6; } |
| 28098 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28100 | $as_echo "no" >&6; } |
| 28101 | fi |
| 28102 | |
| 28103 | |
| 28104 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 28105 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28107 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28108 | if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28109 | $as_echo_n "(cached) " >&6 |
| 28110 | else |
| 28111 | case $BlenderDecodeDelegate in |
| 28112 | [\\/]* | ?:[\\/]*) |
| 28113 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 28114 | ;; |
| 28115 | *) |
| 28116 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28117 | for as_dir in $PATH |
| 28118 | do |
| 28119 | IFS=$as_save_IFS |
| 28120 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28122 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28123 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28124 | $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] | 28125 | break 2 |
| 28126 | fi |
| 28127 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28128 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28129 | IFS=$as_save_IFS |
| 28130 | |
| 28131 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 28132 | ;; |
| 28133 | esac |
| 28134 | fi |
| 28135 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 28136 | if test -n "$BlenderDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28138 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 28139 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28141 | $as_echo "no" >&6; } |
| 28142 | fi |
| 28143 | |
| 28144 | |
| 28145 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 28146 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28148 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28149 | if test "${ac_cv_path_BZIPDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28150 | $as_echo_n "(cached) " >&6 |
| 28151 | else |
| 28152 | case $BZIPDelegate in |
| 28153 | [\\/]* | ?:[\\/]*) |
| 28154 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 28155 | ;; |
| 28156 | *) |
| 28157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28158 | for as_dir in $PATH |
| 28159 | do |
| 28160 | IFS=$as_save_IFS |
| 28161 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28164 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28165 | $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] | 28166 | break 2 |
| 28167 | fi |
| 28168 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28169 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28170 | IFS=$as_save_IFS |
| 28171 | |
| 28172 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 28173 | ;; |
| 28174 | esac |
| 28175 | fi |
| 28176 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 28177 | if test -n "$BZIPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28179 | $as_echo "$BZIPDelegate" >&6; } |
| 28180 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28182 | $as_echo "no" >&6; } |
| 28183 | fi |
| 28184 | |
| 28185 | |
| 28186 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. |
| 28187 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28189 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28190 | if test "${ac_cv_path_BrowseDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28191 | $as_echo_n "(cached) " >&6 |
| 28192 | else |
| 28193 | case $BrowseDelegate in |
| 28194 | [\\/]* | ?:[\\/]*) |
| 28195 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 28196 | ;; |
| 28197 | *) |
| 28198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28199 | for as_dir in $PATH |
| 28200 | do |
| 28201 | IFS=$as_save_IFS |
| 28202 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28203 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28205 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28206 | $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] | 28207 | break 2 |
| 28208 | fi |
| 28209 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28210 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28211 | IFS=$as_save_IFS |
| 28212 | |
| 28213 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" |
| 28214 | ;; |
| 28215 | esac |
| 28216 | fi |
| 28217 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 28218 | if test -n "$BrowseDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28220 | $as_echo "$BrowseDelegate" >&6; } |
| 28221 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28223 | $as_echo "no" >&6; } |
| 28224 | fi |
| 28225 | |
| 28226 | |
| 28227 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 28228 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28230 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28231 | if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28232 | $as_echo_n "(cached) " >&6 |
| 28233 | else |
| 28234 | case $CGMDecodeDelegate in |
| 28235 | [\\/]* | ?:[\\/]*) |
| 28236 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 28237 | ;; |
| 28238 | *) |
| 28239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28240 | for as_dir in $PATH |
| 28241 | do |
| 28242 | IFS=$as_save_IFS |
| 28243 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28246 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28247 | $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] | 28248 | break 2 |
| 28249 | fi |
| 28250 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28251 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28252 | IFS=$as_save_IFS |
| 28253 | |
| 28254 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 28255 | ;; |
| 28256 | esac |
| 28257 | fi |
| 28258 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 28259 | if test -n "$CGMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28261 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 28262 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28264 | $as_echo "no" >&6; } |
| 28265 | fi |
| 28266 | |
| 28267 | |
| 28268 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 28269 | set dummy "$CatDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28271 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28272 | if test "${ac_cv_path_CatDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28273 | $as_echo_n "(cached) " >&6 |
| 28274 | else |
| 28275 | case $CatDelegate in |
| 28276 | [\\/]* | ?:[\\/]*) |
| 28277 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 28278 | ;; |
| 28279 | *) |
| 28280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28281 | for as_dir in $PATH |
| 28282 | do |
| 28283 | IFS=$as_save_IFS |
| 28284 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28285 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28287 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28288 | $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] | 28289 | break 2 |
| 28290 | fi |
| 28291 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28292 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28293 | IFS=$as_save_IFS |
| 28294 | |
| 28295 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 28296 | ;; |
| 28297 | esac |
| 28298 | fi |
| 28299 | CatDelegate=$ac_cv_path_CatDelegate |
| 28300 | if test -n "$CatDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28302 | $as_echo "$CatDelegate" >&6; } |
| 28303 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28305 | $as_echo "no" >&6; } |
| 28306 | fi |
| 28307 | |
| 28308 | |
| 28309 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 28310 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28312 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28313 | if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28314 | $as_echo_n "(cached) " >&6 |
| 28315 | else |
| 28316 | case $DNGDecodeDelegate in |
| 28317 | [\\/]* | ?:[\\/]*) |
| 28318 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 28319 | ;; |
| 28320 | *) |
| 28321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28322 | for as_dir in $PATH |
| 28323 | do |
| 28324 | IFS=$as_save_IFS |
| 28325 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28326 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28328 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28329 | $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] | 28330 | break 2 |
| 28331 | fi |
| 28332 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28333 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28334 | IFS=$as_save_IFS |
| 28335 | |
| 28336 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 28337 | ;; |
| 28338 | esac |
| 28339 | fi |
| 28340 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 28341 | if test -n "$DNGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28343 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 28344 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28346 | $as_echo "no" >&6; } |
| 28347 | fi |
| 28348 | |
| 28349 | |
| 28350 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 28351 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28353 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28354 | if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28355 | $as_echo_n "(cached) " >&6 |
| 28356 | else |
| 28357 | case $GVCDecodeDelegate in |
| 28358 | [\\/]* | ?:[\\/]*) |
| 28359 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 28360 | ;; |
| 28361 | *) |
| 28362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28363 | for as_dir in $PATH |
| 28364 | do |
| 28365 | IFS=$as_save_IFS |
| 28366 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28369 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28370 | $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] | 28371 | break 2 |
| 28372 | fi |
| 28373 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28374 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28375 | IFS=$as_save_IFS |
| 28376 | |
| 28377 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 28378 | ;; |
| 28379 | esac |
| 28380 | fi |
| 28381 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 28382 | if test -n "$GVCDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28384 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 28385 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28387 | $as_echo "no" >&6; } |
| 28388 | fi |
| 28389 | |
| 28390 | |
| 28391 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 28392 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28394 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28395 | if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28396 | $as_echo_n "(cached) " >&6 |
| 28397 | else |
| 28398 | case $DVIDecodeDelegate in |
| 28399 | [\\/]* | ?:[\\/]*) |
| 28400 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 28401 | ;; |
| 28402 | *) |
| 28403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28404 | for as_dir in $PATH |
| 28405 | do |
| 28406 | IFS=$as_save_IFS |
| 28407 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28409 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28410 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28411 | $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] | 28412 | break 2 |
| 28413 | fi |
| 28414 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28415 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28416 | IFS=$as_save_IFS |
| 28417 | |
| 28418 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 28419 | ;; |
| 28420 | esac |
| 28421 | fi |
| 28422 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 28423 | if test -n "$DVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28425 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 28426 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28428 | $as_echo "no" >&6; } |
| 28429 | fi |
| 28430 | |
| 28431 | |
| 28432 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 28433 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28435 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28436 | if test "${ac_cv_path_EchoDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28437 | $as_echo_n "(cached) " >&6 |
| 28438 | else |
| 28439 | case $EchoDelegate in |
| 28440 | [\\/]* | ?:[\\/]*) |
| 28441 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 28442 | ;; |
| 28443 | *) |
| 28444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28445 | for as_dir in $PATH |
| 28446 | do |
| 28447 | IFS=$as_save_IFS |
| 28448 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28451 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28452 | $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] | 28453 | break 2 |
| 28454 | fi |
| 28455 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28456 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28457 | IFS=$as_save_IFS |
| 28458 | |
| 28459 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 28460 | ;; |
| 28461 | esac |
| 28462 | fi |
| 28463 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 28464 | if test -n "$EchoDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28466 | $as_echo "$EchoDelegate" >&6; } |
| 28467 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28469 | $as_echo "no" >&6; } |
| 28470 | fi |
| 28471 | |
| 28472 | |
| 28473 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 28474 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28476 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28477 | if test "${ac_cv_path_EditorDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28478 | $as_echo_n "(cached) " >&6 |
| 28479 | else |
| 28480 | case $EditorDelegate in |
| 28481 | [\\/]* | ?:[\\/]*) |
| 28482 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 28483 | ;; |
| 28484 | *) |
| 28485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28486 | for as_dir in $PATH |
| 28487 | do |
| 28488 | IFS=$as_save_IFS |
| 28489 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28491 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28492 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28493 | $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] | 28494 | break 2 |
| 28495 | fi |
| 28496 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28497 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28498 | IFS=$as_save_IFS |
| 28499 | |
| 28500 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 28501 | ;; |
| 28502 | esac |
| 28503 | fi |
| 28504 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 28505 | if test -n "$EditorDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28507 | $as_echo "$EditorDelegate" >&6; } |
| 28508 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28510 | $as_echo "no" >&6; } |
| 28511 | fi |
| 28512 | |
| 28513 | |
| 28514 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 28515 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28517 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28518 | if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28519 | $as_echo_n "(cached) " >&6 |
| 28520 | else |
| 28521 | case $FIGDecodeDelegate in |
| 28522 | [\\/]* | ?:[\\/]*) |
| 28523 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 28524 | ;; |
| 28525 | *) |
| 28526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28527 | for as_dir in $PATH |
| 28528 | do |
| 28529 | IFS=$as_save_IFS |
| 28530 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28533 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28534 | $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] | 28535 | break 2 |
| 28536 | fi |
| 28537 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28538 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28539 | IFS=$as_save_IFS |
| 28540 | |
| 28541 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 28542 | ;; |
| 28543 | esac |
| 28544 | fi |
| 28545 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 28546 | if test -n "$FIGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28548 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 28549 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28551 | $as_echo "no" >&6; } |
| 28552 | fi |
| 28553 | |
| 28554 | |
| 28555 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 28556 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28558 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28559 | if test "${ac_cv_path_ConvertDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28560 | $as_echo_n "(cached) " >&6 |
| 28561 | else |
| 28562 | case $ConvertDelegate in |
| 28563 | [\\/]* | ?:[\\/]*) |
| 28564 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 28565 | ;; |
| 28566 | *) |
| 28567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28568 | for as_dir in $PATH |
| 28569 | do |
| 28570 | IFS=$as_save_IFS |
| 28571 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28573 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28574 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28575 | $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] | 28576 | break 2 |
| 28577 | fi |
| 28578 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28579 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28580 | IFS=$as_save_IFS |
| 28581 | |
| 28582 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 28583 | ;; |
| 28584 | esac |
| 28585 | fi |
| 28586 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 28587 | if test -n "$ConvertDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28589 | $as_echo "$ConvertDelegate" >&6; } |
| 28590 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28592 | $as_echo "no" >&6; } |
| 28593 | fi |
| 28594 | |
| 28595 | |
| 28596 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 28597 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28599 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28600 | if test "${ac_cv_path_DisplayDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28601 | $as_echo_n "(cached) " >&6 |
| 28602 | else |
| 28603 | case $DisplayDelegate in |
| 28604 | [\\/]* | ?:[\\/]*) |
| 28605 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 28606 | ;; |
| 28607 | *) |
| 28608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28609 | for as_dir in $PATH |
| 28610 | do |
| 28611 | IFS=$as_save_IFS |
| 28612 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28615 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28616 | $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] | 28617 | break 2 |
| 28618 | fi |
| 28619 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28620 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28621 | IFS=$as_save_IFS |
| 28622 | |
| 28623 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 28624 | ;; |
| 28625 | esac |
| 28626 | fi |
| 28627 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 28628 | if test -n "$DisplayDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28630 | $as_echo "$DisplayDelegate" >&6; } |
| 28631 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28633 | $as_echo "no" >&6; } |
| 28634 | fi |
| 28635 | |
| 28636 | |
| 28637 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 28638 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28640 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28641 | if test "${ac_cv_path_MogrifyDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28642 | $as_echo_n "(cached) " >&6 |
| 28643 | else |
| 28644 | case $MogrifyDelegate in |
| 28645 | [\\/]* | ?:[\\/]*) |
| 28646 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 28647 | ;; |
| 28648 | *) |
| 28649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28650 | for as_dir in $PATH |
| 28651 | do |
| 28652 | IFS=$as_save_IFS |
| 28653 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28656 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28657 | $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] | 28658 | break 2 |
| 28659 | fi |
| 28660 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28661 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28662 | IFS=$as_save_IFS |
| 28663 | |
| 28664 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 28665 | ;; |
| 28666 | esac |
| 28667 | fi |
| 28668 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 28669 | if test -n "$MogrifyDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28671 | $as_echo "$MogrifyDelegate" >&6; } |
| 28672 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28674 | $as_echo "no" >&6; } |
| 28675 | fi |
| 28676 | |
| 28677 | |
| 28678 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 28679 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28681 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28682 | if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28683 | $as_echo_n "(cached) " >&6 |
| 28684 | else |
| 28685 | case $GnuplotDecodeDelegate in |
| 28686 | [\\/]* | ?:[\\/]*) |
| 28687 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 28688 | ;; |
| 28689 | *) |
| 28690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28691 | for as_dir in $PATH |
| 28692 | do |
| 28693 | IFS=$as_save_IFS |
| 28694 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28697 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28698 | $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] | 28699 | break 2 |
| 28700 | fi |
| 28701 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28702 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28703 | IFS=$as_save_IFS |
| 28704 | |
| 28705 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 28706 | ;; |
| 28707 | esac |
| 28708 | fi |
| 28709 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 28710 | if test -n "$GnuplotDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28712 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 28713 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28715 | $as_echo "no" >&6; } |
| 28716 | fi |
| 28717 | |
| 28718 | |
| 28719 | # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args. |
| 28720 | set dummy "$HDRDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28722 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28723 | if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28724 | $as_echo_n "(cached) " >&6 |
| 28725 | else |
| 28726 | case $HDRDecodeDelegate in |
| 28727 | [\\/]* | ?:[\\/]*) |
| 28728 | ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path. |
| 28729 | ;; |
| 28730 | *) |
| 28731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28732 | for as_dir in $PATH |
| 28733 | do |
| 28734 | IFS=$as_save_IFS |
| 28735 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28738 | ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28739 | $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] | 28740 | break 2 |
| 28741 | fi |
| 28742 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28743 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28744 | IFS=$as_save_IFS |
| 28745 | |
| 28746 | test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault"" |
| 28747 | ;; |
| 28748 | esac |
| 28749 | fi |
| 28750 | HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate |
| 28751 | if test -n "$HDRDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28753 | $as_echo "$HDRDecodeDelegate" >&6; } |
| 28754 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28756 | $as_echo "no" >&6; } |
| 28757 | fi |
| 28758 | |
| 28759 | |
| 28760 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 28761 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28763 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28764 | if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28765 | $as_echo_n "(cached) " >&6 |
| 28766 | else |
| 28767 | case $HPGLDecodeDelegate in |
| 28768 | [\\/]* | ?:[\\/]*) |
| 28769 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 28770 | ;; |
| 28771 | *) |
| 28772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28773 | for as_dir in $PATH |
| 28774 | do |
| 28775 | IFS=$as_save_IFS |
| 28776 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28777 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28779 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28780 | $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] | 28781 | break 2 |
| 28782 | fi |
| 28783 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28784 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28785 | IFS=$as_save_IFS |
| 28786 | |
| 28787 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 28788 | ;; |
| 28789 | esac |
| 28790 | fi |
| 28791 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 28792 | if test -n "$HPGLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28794 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 28795 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28797 | $as_echo "no" >&6; } |
| 28798 | fi |
| 28799 | |
| 28800 | |
| 28801 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 28802 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28804 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28805 | if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28806 | $as_echo_n "(cached) " >&6 |
| 28807 | else |
| 28808 | case $HTMLDecodeDelegate in |
| 28809 | [\\/]* | ?:[\\/]*) |
| 28810 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 28811 | ;; |
| 28812 | *) |
| 28813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28814 | for as_dir in $PATH |
| 28815 | do |
| 28816 | IFS=$as_save_IFS |
| 28817 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28818 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28819 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28820 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28821 | $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] | 28822 | break 2 |
| 28823 | fi |
| 28824 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28825 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28826 | IFS=$as_save_IFS |
| 28827 | |
| 28828 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 28829 | ;; |
| 28830 | esac |
| 28831 | fi |
| 28832 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 28833 | if test -n "$HTMLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28835 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 28836 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28838 | $as_echo "no" >&6; } |
| 28839 | fi |
| 28840 | |
| 28841 | |
| 28842 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 28843 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28845 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28846 | if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28847 | $as_echo_n "(cached) " >&6 |
| 28848 | else |
| 28849 | case $ILBMDecodeDelegate in |
| 28850 | [\\/]* | ?:[\\/]*) |
| 28851 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 28852 | ;; |
| 28853 | *) |
| 28854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28855 | for as_dir in $PATH |
| 28856 | do |
| 28857 | IFS=$as_save_IFS |
| 28858 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28861 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28862 | $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] | 28863 | break 2 |
| 28864 | fi |
| 28865 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28866 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28867 | IFS=$as_save_IFS |
| 28868 | |
| 28869 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 28870 | ;; |
| 28871 | esac |
| 28872 | fi |
| 28873 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 28874 | if test -n "$ILBMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28876 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 28877 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28879 | $as_echo "no" >&6; } |
| 28880 | fi |
| 28881 | |
| 28882 | |
| 28883 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 28884 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28886 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28887 | if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28888 | $as_echo_n "(cached) " >&6 |
| 28889 | else |
| 28890 | case $ILBMEncodeDelegate in |
| 28891 | [\\/]* | ?:[\\/]*) |
| 28892 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 28893 | ;; |
| 28894 | *) |
| 28895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28896 | for as_dir in $PATH |
| 28897 | do |
| 28898 | IFS=$as_save_IFS |
| 28899 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28902 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28903 | $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] | 28904 | break 2 |
| 28905 | fi |
| 28906 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28907 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28908 | IFS=$as_save_IFS |
| 28909 | |
| 28910 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 28911 | ;; |
| 28912 | esac |
| 28913 | fi |
| 28914 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 28915 | if test -n "$ILBMEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28917 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 28918 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28920 | $as_echo "no" >&6; } |
| 28921 | fi |
| 28922 | |
| 28923 | |
| 28924 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 28925 | set dummy "$LPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28927 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28928 | if test "${ac_cv_path_LPDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28929 | $as_echo_n "(cached) " >&6 |
| 28930 | else |
| 28931 | case $LPDelegate in |
| 28932 | [\\/]* | ?:[\\/]*) |
| 28933 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 28934 | ;; |
| 28935 | *) |
| 28936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28937 | for as_dir in $PATH |
| 28938 | do |
| 28939 | IFS=$as_save_IFS |
| 28940 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28941 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28943 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28944 | $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] | 28945 | break 2 |
| 28946 | fi |
| 28947 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28948 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28949 | IFS=$as_save_IFS |
| 28950 | |
| 28951 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 28952 | ;; |
| 28953 | esac |
| 28954 | fi |
| 28955 | LPDelegate=$ac_cv_path_LPDelegate |
| 28956 | if test -n "$LPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28958 | $as_echo "$LPDelegate" >&6; } |
| 28959 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28961 | $as_echo "no" >&6; } |
| 28962 | fi |
| 28963 | |
| 28964 | |
| 28965 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 28966 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28968 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28969 | if test "${ac_cv_path_LPRDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28970 | $as_echo_n "(cached) " >&6 |
| 28971 | else |
| 28972 | case $LPRDelegate in |
| 28973 | [\\/]* | ?:[\\/]*) |
| 28974 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 28975 | ;; |
| 28976 | *) |
| 28977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 28978 | for as_dir in $PATH |
| 28979 | do |
| 28980 | IFS=$as_save_IFS |
| 28981 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28982 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28983 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 28984 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28985 | $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] | 28986 | break 2 |
| 28987 | fi |
| 28988 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28989 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28990 | IFS=$as_save_IFS |
| 28991 | |
| 28992 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 28993 | ;; |
| 28994 | esac |
| 28995 | fi |
| 28996 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 28997 | if test -n "$LPRDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28999 | $as_echo "$LPRDelegate" >&6; } |
| 29000 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29002 | $as_echo "no" >&6; } |
| 29003 | fi |
| 29004 | |
| 29005 | |
| 29006 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. |
| 29007 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29009 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29010 | if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29011 | $as_echo_n "(cached) " >&6 |
| 29012 | else |
| 29013 | case $LZWDecodeDelegate in |
| 29014 | [\\/]* | ?:[\\/]*) |
| 29015 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. |
| 29016 | ;; |
| 29017 | *) |
| 29018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29019 | for as_dir in $PATH |
| 29020 | do |
| 29021 | IFS=$as_save_IFS |
| 29022 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29023 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29025 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29026 | $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] | 29027 | break 2 |
| 29028 | fi |
| 29029 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29030 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29031 | IFS=$as_save_IFS |
| 29032 | |
| 29033 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" |
| 29034 | ;; |
| 29035 | esac |
| 29036 | fi |
| 29037 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate |
| 29038 | if test -n "$LZWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29040 | $as_echo "$LZWDecodeDelegate" >&6; } |
| 29041 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29043 | $as_echo "no" >&6; } |
| 29044 | fi |
| 29045 | |
| 29046 | |
| 29047 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. |
| 29048 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29050 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29051 | if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29052 | $as_echo_n "(cached) " >&6 |
| 29053 | else |
| 29054 | case $LZWEncodeDelegate in |
| 29055 | [\\/]* | ?:[\\/]*) |
| 29056 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. |
| 29057 | ;; |
| 29058 | *) |
| 29059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29060 | for as_dir in $PATH |
| 29061 | do |
| 29062 | IFS=$as_save_IFS |
| 29063 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29064 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29065 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29066 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29067 | $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] | 29068 | break 2 |
| 29069 | fi |
| 29070 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29071 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29072 | IFS=$as_save_IFS |
| 29073 | |
| 29074 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" |
| 29075 | ;; |
| 29076 | esac |
| 29077 | fi |
| 29078 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate |
| 29079 | if test -n "$LZWEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29081 | $as_echo "$LZWEncodeDelegate" >&6; } |
| 29082 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29084 | $as_echo "no" >&6; } |
| 29085 | fi |
| 29086 | |
| 29087 | |
| 29088 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 29089 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29091 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29092 | if test "${ac_cv_path_LaunchDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29093 | $as_echo_n "(cached) " >&6 |
| 29094 | else |
| 29095 | case $LaunchDelegate in |
| 29096 | [\\/]* | ?:[\\/]*) |
| 29097 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 29098 | ;; |
| 29099 | *) |
| 29100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29101 | for as_dir in $PATH |
| 29102 | do |
| 29103 | IFS=$as_save_IFS |
| 29104 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29105 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29106 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29107 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29108 | $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] | 29109 | break 2 |
| 29110 | fi |
| 29111 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29112 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29113 | IFS=$as_save_IFS |
| 29114 | |
| 29115 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 29116 | ;; |
| 29117 | esac |
| 29118 | fi |
| 29119 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 29120 | if test -n "$LaunchDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29122 | $as_echo "$LaunchDelegate" >&6; } |
| 29123 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29125 | $as_echo "no" >&6; } |
| 29126 | fi |
| 29127 | |
| 29128 | |
| 29129 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 29130 | set dummy "$MANDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29132 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29133 | if test "${ac_cv_path_MANDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29134 | $as_echo_n "(cached) " >&6 |
| 29135 | else |
| 29136 | case $MANDelegate in |
| 29137 | [\\/]* | ?:[\\/]*) |
| 29138 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 29139 | ;; |
| 29140 | *) |
| 29141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29142 | for as_dir in $PATH |
| 29143 | do |
| 29144 | IFS=$as_save_IFS |
| 29145 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29148 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29149 | $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] | 29150 | break 2 |
| 29151 | fi |
| 29152 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29153 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29154 | IFS=$as_save_IFS |
| 29155 | |
| 29156 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 29157 | ;; |
| 29158 | esac |
| 29159 | fi |
| 29160 | MANDelegate=$ac_cv_path_MANDelegate |
| 29161 | if test -n "$MANDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29163 | $as_echo "$MANDelegate" >&6; } |
| 29164 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29166 | $as_echo "no" >&6; } |
| 29167 | fi |
| 29168 | |
| 29169 | |
| 29170 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 29171 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29173 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29174 | if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29175 | $as_echo_n "(cached) " >&6 |
| 29176 | else |
| 29177 | case $MPEGDecodeDelegate in |
| 29178 | [\\/]* | ?:[\\/]*) |
| 29179 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 29180 | ;; |
| 29181 | *) |
| 29182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29183 | for as_dir in $PATH |
| 29184 | do |
| 29185 | IFS=$as_save_IFS |
| 29186 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29187 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29189 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29190 | $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] | 29191 | break 2 |
| 29192 | fi |
| 29193 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29194 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29195 | IFS=$as_save_IFS |
| 29196 | |
| 29197 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 29198 | ;; |
| 29199 | esac |
| 29200 | fi |
| 29201 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 29202 | if test -n "$MPEGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29204 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 29205 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29207 | $as_echo "no" >&6; } |
| 29208 | fi |
| 29209 | |
| 29210 | |
| 29211 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 29212 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29214 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29215 | if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29216 | $as_echo_n "(cached) " >&6 |
| 29217 | else |
| 29218 | case $MPEGEncodeDelegate in |
| 29219 | [\\/]* | ?:[\\/]*) |
| 29220 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 29221 | ;; |
| 29222 | *) |
| 29223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29224 | for as_dir in $PATH |
| 29225 | do |
| 29226 | IFS=$as_save_IFS |
| 29227 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29230 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29231 | $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] | 29232 | break 2 |
| 29233 | fi |
| 29234 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29235 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29236 | IFS=$as_save_IFS |
| 29237 | |
| 29238 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 29239 | ;; |
| 29240 | esac |
| 29241 | fi |
| 29242 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 29243 | if test -n "$MPEGEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29245 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 29246 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29248 | $as_echo "no" >&6; } |
| 29249 | fi |
| 29250 | |
| 29251 | |
| 29252 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 29253 | set dummy "$MVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29255 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29256 | if test "${ac_cv_path_MVDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29257 | $as_echo_n "(cached) " >&6 |
| 29258 | else |
| 29259 | case $MVDelegate in |
| 29260 | [\\/]* | ?:[\\/]*) |
| 29261 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 29262 | ;; |
| 29263 | *) |
| 29264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29265 | for as_dir in $PATH |
| 29266 | do |
| 29267 | IFS=$as_save_IFS |
| 29268 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29269 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29271 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29272 | $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] | 29273 | break 2 |
| 29274 | fi |
| 29275 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29276 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29277 | IFS=$as_save_IFS |
| 29278 | |
| 29279 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 29280 | ;; |
| 29281 | esac |
| 29282 | fi |
| 29283 | MVDelegate=$ac_cv_path_MVDelegate |
| 29284 | if test -n "$MVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29286 | $as_echo "$MVDelegate" >&6; } |
| 29287 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29289 | $as_echo "no" >&6; } |
| 29290 | fi |
| 29291 | |
| 29292 | |
| 29293 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 29294 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29296 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29297 | if test "${ac_cv_path_PCLDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29298 | $as_echo_n "(cached) " >&6 |
| 29299 | else |
| 29300 | case $PCLDelegate in |
| 29301 | [\\/]* | ?:[\\/]*) |
| 29302 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 29303 | ;; |
| 29304 | *) |
| 29305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29306 | for as_dir in $PATH |
| 29307 | do |
| 29308 | IFS=$as_save_IFS |
| 29309 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29312 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29313 | $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] | 29314 | break 2 |
| 29315 | fi |
| 29316 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29317 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29318 | IFS=$as_save_IFS |
| 29319 | |
| 29320 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 29321 | ;; |
| 29322 | esac |
| 29323 | fi |
| 29324 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 29325 | if test -n "$PCLDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29327 | $as_echo "$PCLDelegate" >&6; } |
| 29328 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29330 | $as_echo "no" >&6; } |
| 29331 | fi |
| 29332 | |
| 29333 | |
| 29334 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 29335 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29337 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29338 | if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29339 | $as_echo_n "(cached) " >&6 |
| 29340 | else |
| 29341 | case $PGPDecodeDelegate in |
| 29342 | [\\/]* | ?:[\\/]*) |
| 29343 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 29344 | ;; |
| 29345 | *) |
| 29346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29347 | for as_dir in $PATH |
| 29348 | do |
| 29349 | IFS=$as_save_IFS |
| 29350 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29353 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29354 | $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] | 29355 | break 2 |
| 29356 | fi |
| 29357 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29358 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29359 | IFS=$as_save_IFS |
| 29360 | |
| 29361 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 29362 | ;; |
| 29363 | esac |
| 29364 | fi |
| 29365 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 29366 | if test -n "$PGPDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29368 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 29369 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29371 | $as_echo "no" >&6; } |
| 29372 | fi |
| 29373 | |
| 29374 | |
| 29375 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 29376 | set dummy "$POVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29378 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29379 | if test "${ac_cv_path_POVDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29380 | $as_echo_n "(cached) " >&6 |
| 29381 | else |
| 29382 | case $POVDelegate in |
| 29383 | [\\/]* | ?:[\\/]*) |
| 29384 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 29385 | ;; |
| 29386 | *) |
| 29387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29388 | for as_dir in $PATH |
| 29389 | do |
| 29390 | IFS=$as_save_IFS |
| 29391 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29392 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29394 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29395 | $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] | 29396 | break 2 |
| 29397 | fi |
| 29398 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29399 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29400 | IFS=$as_save_IFS |
| 29401 | |
| 29402 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 29403 | ;; |
| 29404 | esac |
| 29405 | fi |
| 29406 | POVDelegate=$ac_cv_path_POVDelegate |
| 29407 | if test -n "$POVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29409 | $as_echo "$POVDelegate" >&6; } |
| 29410 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29412 | $as_echo "no" >&6; } |
| 29413 | fi |
| 29414 | |
| 29415 | |
| 29416 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 29417 | do |
| 29418 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 29419 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29421 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29422 | if test "${ac_cv_path_PSDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29423 | $as_echo_n "(cached) " >&6 |
| 29424 | else |
| 29425 | case $PSDelegate in |
| 29426 | [\\/]* | ?:[\\/]*) |
| 29427 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 29428 | ;; |
| 29429 | *) |
| 29430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29431 | for as_dir in $PATH |
| 29432 | do |
| 29433 | IFS=$as_save_IFS |
| 29434 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29437 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29438 | $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] | 29439 | break 2 |
| 29440 | fi |
| 29441 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29442 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29443 | IFS=$as_save_IFS |
| 29444 | |
| 29445 | ;; |
| 29446 | esac |
| 29447 | fi |
| 29448 | PSDelegate=$ac_cv_path_PSDelegate |
| 29449 | if test -n "$PSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29451 | $as_echo "$PSDelegate" >&6; } |
| 29452 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29454 | $as_echo "no" >&6; } |
| 29455 | fi |
| 29456 | |
| 29457 | |
| 29458 | test -n "$PSDelegate" && break |
| 29459 | done |
| 29460 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 29461 | |
| 29462 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 29463 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29465 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29466 | if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29467 | $as_echo_n "(cached) " >&6 |
| 29468 | else |
| 29469 | case $RLEEncodeDelegate in |
| 29470 | [\\/]* | ?:[\\/]*) |
| 29471 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 29472 | ;; |
| 29473 | *) |
| 29474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29475 | for as_dir in $PATH |
| 29476 | do |
| 29477 | IFS=$as_save_IFS |
| 29478 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29480 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29481 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29482 | $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] | 29483 | break 2 |
| 29484 | fi |
| 29485 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29486 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29487 | IFS=$as_save_IFS |
| 29488 | |
| 29489 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 29490 | ;; |
| 29491 | esac |
| 29492 | fi |
| 29493 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 29494 | if test -n "$RLEEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29496 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 29497 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29499 | $as_echo "no" >&6; } |
| 29500 | fi |
| 29501 | |
| 29502 | |
| 29503 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 29504 | set dummy "$RMDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29506 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29507 | if test "${ac_cv_path_RMDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29508 | $as_echo_n "(cached) " >&6 |
| 29509 | else |
| 29510 | case $RMDelegate in |
| 29511 | [\\/]* | ?:[\\/]*) |
| 29512 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 29513 | ;; |
| 29514 | *) |
| 29515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29516 | for as_dir in $PATH |
| 29517 | do |
| 29518 | IFS=$as_save_IFS |
| 29519 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29522 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29523 | $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] | 29524 | break 2 |
| 29525 | fi |
| 29526 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29527 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29528 | IFS=$as_save_IFS |
| 29529 | |
| 29530 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 29531 | ;; |
| 29532 | esac |
| 29533 | fi |
| 29534 | RMDelegate=$ac_cv_path_RMDelegate |
| 29535 | if test -n "$RMDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29537 | $as_echo "$RMDelegate" >&6; } |
| 29538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29540 | $as_echo "no" >&6; } |
| 29541 | fi |
| 29542 | |
| 29543 | |
| 29544 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 29545 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29547 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29548 | if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29549 | $as_echo_n "(cached) " >&6 |
| 29550 | else |
| 29551 | case $SCANDecodeDelegate in |
| 29552 | [\\/]* | ?:[\\/]*) |
| 29553 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 29554 | ;; |
| 29555 | *) |
| 29556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29557 | for as_dir in $PATH |
| 29558 | do |
| 29559 | IFS=$as_save_IFS |
| 29560 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29561 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29563 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29564 | $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] | 29565 | break 2 |
| 29566 | fi |
| 29567 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29568 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29569 | IFS=$as_save_IFS |
| 29570 | |
| 29571 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 29572 | ;; |
| 29573 | esac |
| 29574 | fi |
| 29575 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 29576 | if test -n "$SCANDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29578 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 29579 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29581 | $as_echo "no" >&6; } |
| 29582 | fi |
| 29583 | |
| 29584 | |
| 29585 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 29586 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29588 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29589 | if test "${ac_cv_path_TXTDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29590 | $as_echo_n "(cached) " >&6 |
| 29591 | else |
| 29592 | case $TXTDelegate in |
| 29593 | [\\/]* | ?:[\\/]*) |
| 29594 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 29595 | ;; |
| 29596 | *) |
| 29597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29598 | for as_dir in $PATH |
| 29599 | do |
| 29600 | IFS=$as_save_IFS |
| 29601 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29602 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29603 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29604 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29605 | $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] | 29606 | break 2 |
| 29607 | fi |
| 29608 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29609 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29610 | IFS=$as_save_IFS |
| 29611 | |
| 29612 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 29613 | ;; |
| 29614 | esac |
| 29615 | fi |
| 29616 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 29617 | if test -n "$TXTDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29619 | $as_echo "$TXTDelegate" >&6; } |
| 29620 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29622 | $as_echo "no" >&6; } |
| 29623 | fi |
| 29624 | |
| 29625 | |
| 29626 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 29627 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29629 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29630 | if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29631 | $as_echo_n "(cached) " >&6 |
| 29632 | else |
| 29633 | case $WMFDecodeDelegate in |
| 29634 | [\\/]* | ?:[\\/]*) |
| 29635 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 29636 | ;; |
| 29637 | *) |
| 29638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29639 | for as_dir in $PATH |
| 29640 | do |
| 29641 | IFS=$as_save_IFS |
| 29642 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29643 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29644 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29645 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29646 | $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] | 29647 | break 2 |
| 29648 | fi |
| 29649 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29650 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29651 | IFS=$as_save_IFS |
| 29652 | |
| 29653 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 29654 | ;; |
| 29655 | esac |
| 29656 | fi |
| 29657 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 29658 | if test -n "$WMFDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29660 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 29661 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29663 | $as_echo "no" >&6; } |
| 29664 | fi |
| 29665 | |
| 29666 | |
| 29667 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 29668 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29670 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29671 | if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29672 | $as_echo_n "(cached) " >&6 |
| 29673 | else |
| 29674 | case $WWWDecodeDelegate in |
| 29675 | [\\/]* | ?:[\\/]*) |
| 29676 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 29677 | ;; |
| 29678 | *) |
| 29679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29680 | for as_dir in $PATH |
| 29681 | do |
| 29682 | IFS=$as_save_IFS |
| 29683 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29686 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29687 | $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] | 29688 | break 2 |
| 29689 | fi |
| 29690 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29691 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29692 | IFS=$as_save_IFS |
| 29693 | |
| 29694 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 29695 | ;; |
| 29696 | esac |
| 29697 | fi |
| 29698 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 29699 | if test -n "$WWWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29701 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 29702 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29704 | $as_echo "no" >&6; } |
| 29705 | fi |
| 29706 | |
| 29707 | |
| 29708 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 29709 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29711 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29712 | if test "${ac_cv_path_XPSDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29713 | $as_echo_n "(cached) " >&6 |
| 29714 | else |
| 29715 | case $XPSDelegate in |
| 29716 | [\\/]* | ?:[\\/]*) |
| 29717 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 29718 | ;; |
| 29719 | *) |
| 29720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29721 | for as_dir in $PATH |
| 29722 | do |
| 29723 | IFS=$as_save_IFS |
| 29724 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29725 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29727 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29728 | $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] | 29729 | break 2 |
| 29730 | fi |
| 29731 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29732 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29733 | IFS=$as_save_IFS |
| 29734 | |
| 29735 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 29736 | ;; |
| 29737 | esac |
| 29738 | fi |
| 29739 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 29740 | if test -n "$XPSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29742 | $as_echo "$XPSDelegate" >&6; } |
| 29743 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29745 | $as_echo "no" >&6; } |
| 29746 | fi |
| 29747 | |
| 29748 | |
| 29749 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 29750 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29752 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29753 | if test "${ac_cv_path_ZipDelegate+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29754 | $as_echo_n "(cached) " >&6 |
| 29755 | else |
| 29756 | case $ZipDelegate in |
| 29757 | [\\/]* | ?:[\\/]*) |
| 29758 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 29759 | ;; |
| 29760 | *) |
| 29761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 29762 | for as_dir in $PATH |
| 29763 | do |
| 29764 | IFS=$as_save_IFS |
| 29765 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29766 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 29768 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29769 | $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] | 29770 | break 2 |
| 29771 | fi |
| 29772 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29773 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29774 | IFS=$as_save_IFS |
| 29775 | |
| 29776 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 29777 | ;; |
| 29778 | esac |
| 29779 | fi |
| 29780 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 29781 | if test -n "$ZipDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29783 | $as_echo "$ZipDelegate" >&6; } |
| 29784 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29786 | $as_echo "no" >&6; } |
| 29787 | fi |
| 29788 | |
| 29789 | |
| 29790 | |
| 29791 | # Prefer lpr to lp; lp needs options tacked on. |
| 29792 | if test "$LPRDelegate" != no; then |
| 29793 | PrintDelegate="$LPRDelegate" |
| 29794 | else |
| 29795 | PrintDelegate="$LPDelegate -c -s" |
| 29796 | fi |
| 29797 | |
| 29798 | |
| 29799 | # Installed ImageMagick utiltity paths |
| 29800 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 29801 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 29802 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 29803 | |
| 29804 | # Set delegate booleans |
| 29805 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 29806 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 29807 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 29808 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 29809 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| 29810 | have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi |
| 29811 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 29812 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| 29813 | have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi |
| 29814 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 29815 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 29816 | |
| 29817 | # |
| 29818 | # Test for font directories |
| 29819 | # |
| 29820 | type_include_files='' |
| 29821 | |
| 29822 | # Windows |
| 29823 | windows_font_dir='' |
| 29824 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 29825 | windows_font_dir="${with_windows_font_dir}/" |
| 29826 | fi |
| 29827 | if test -n "$windows_font_dir"; then |
| 29828 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 29829 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 29830 | fi |
| 29831 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 29832 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 29833 | fi |
| 29834 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 29835 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 29836 | fi |
| 29837 | fi |
| 29838 | if test -n "$windows_font_dir"; then |
| 29839 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 29840 | fi |
| 29841 | |
| 29842 | |
| 29843 | # Ghostscript |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29845 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 29846 | ghostscript_font_dir='' |
| 29847 | if test "${with_gs_font_dir}" != 'default'; then |
| 29848 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 29849 | else |
| 29850 | if test "${native_win32_build}" = 'yes'; then |
| 29851 | # Native Windows Build |
| 29852 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 29853 | if test -f "${font_dir}a010013l.pfb"; then |
| 29854 | ghostscript_font_dir="$font_dir" |
| 29855 | break 1 |
| 29856 | fi |
| 29857 | done |
| 29858 | if test "${PSDelegate}" != 'gswin32c'; then |
| 29859 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 29860 | fi |
| 29861 | else |
| 29862 | # Linux / Mac OS X / Unix Build |
| 29863 | 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 |
| 29864 | if test -f "${font_dir}a010013l.pfb"; then |
| 29865 | ghostscript_font_dir="${font_dir}" |
| 29866 | break 1 |
| 29867 | fi |
| 29868 | done |
| 29869 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 29870 | if test "$PSDelegate" != 'gs'; then |
| 29871 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 29872 | fi |
| 29873 | fi |
| 29874 | fi |
| 29875 | fi |
| 29876 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 29877 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29879 | $as_echo "$ghostscript_font_dir" >&6; } |
| 29880 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29882 | $as_echo "not found!" >&6; }; |
| 29883 | fi |
| 29884 | |
| 29885 | case "${build_os}" in |
| 29886 | mingw* ) |
| 29887 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 29888 | ;; |
| 29889 | esac |
| 29890 | |
| 29891 | |
| 29892 | |
| 29893 | # |
| 29894 | # Handle case where user doesn't want frozen paths |
| 29895 | # |
| 29896 | if test "$with_frozenpaths" != 'yes'; then |
| 29897 | # Re-set delegate definitions to default (no paths) |
| 29898 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| 29899 | AVIDecodeDelegate="$AVIDecodeDelegateDefault" |
| 29900 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 29901 | BZIPDelegate="$BZIPDelegateDefault" |
| 29902 | BrowseDelegate="$BrowseDelegateDefault" |
| 29903 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 29904 | CatDelegate="$CatDelegateDefault" |
| 29905 | ConvertDelegate="$ConvertDelegateDefault" |
| 29906 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| 29907 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 29908 | EchoDelegate="$EchoDelegateDefault" |
| 29909 | EditorDelegate="$EditorDelegateDefault" |
| 29910 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 29911 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| 29912 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 29913 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 29914 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 29915 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| 29916 | LPDelegate="$LPDelegateDefault" |
| 29917 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" |
| 29918 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" |
| 29919 | LaunchDelegate="$LaunchDelegateDefault" |
| 29920 | MANDelegate="$MANDelegateDefault" |
| 29921 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 29922 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
| 29923 | MVDelegate="$MVDelegateDefault" |
| 29924 | MogrifyDelegate="$MogrifyDelegateDefault" |
| 29925 | PCLDelegate="$PCLDelegateDefault" |
| 29926 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 29927 | POVDelegate="$POVDelegateDefault" |
| 29928 | PSDelegate="$PSDelegateDefault" |
| 29929 | HDRDecodeDelegate="$HDRDecodeDelegateDefault" |
| 29930 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 29931 | RMDelegate="$RMDelegateDefault" |
| 29932 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| 29933 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 29934 | TXTDelegate="$TXTDelegateDefault" |
| 29935 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 29936 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 29937 | XPSDelegate="$XPSDelegateDefault" |
| 29938 | ZipDelegate="$ZipDelegateDefault" |
| 29939 | fi |
| 29940 | |
| 29941 | # Delegate substitutions |
| 29942 | |
| 29943 | |
| 29944 | |
| 29945 | |
| 29946 | |
| 29947 | |
| 29948 | |
| 29949 | |
| 29950 | |
| 29951 | |
| 29952 | |
| 29953 | |
| 29954 | |
| 29955 | |
| 29956 | |
| 29957 | |
| 29958 | |
| 29959 | |
| 29960 | |
| 29961 | |
| 29962 | |
| 29963 | |
| 29964 | |
| 29965 | |
| 29966 | |
| 29967 | |
| 29968 | |
| 29969 | |
| 29970 | |
| 29971 | |
| 29972 | |
| 29973 | |
| 29974 | |
| 29975 | |
| 29976 | |
| 29977 | |
| 29978 | |
| 29979 | |
| 29980 | |
| 29981 | |
| 29982 | |
| 29983 | |
| 29984 | # |
| 29985 | # RPM support. |
| 29986 | # |
| 29987 | RPM='' |
| 29988 | for ac_prog in gnutar gtar tar |
| 29989 | do |
| 29990 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 29991 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29993 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29994 | if test "${ac_cv_prog_TAR+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29995 | $as_echo_n "(cached) " >&6 |
| 29996 | else |
| 29997 | if test -n "$TAR"; then |
| 29998 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 29999 | else |
| 30000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30001 | for as_dir in $PATH |
| 30002 | do |
| 30003 | IFS=$as_save_IFS |
| 30004 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30005 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30007 | ac_cv_prog_TAR="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30008 | $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] | 30009 | break 2 |
| 30010 | fi |
| 30011 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30012 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30013 | IFS=$as_save_IFS |
| 30014 | |
| 30015 | fi |
| 30016 | fi |
| 30017 | TAR=$ac_cv_prog_TAR |
| 30018 | if test -n "$TAR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30020 | $as_echo "$TAR" >&6; } |
| 30021 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30023 | $as_echo "no" >&6; } |
| 30024 | fi |
| 30025 | |
| 30026 | |
| 30027 | test -n "$TAR" && break |
| 30028 | done |
| 30029 | |
| 30030 | for ac_prog in perl |
| 30031 | do |
| 30032 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30033 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30035 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30036 | if test "${ac_cv_prog_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30037 | $as_echo_n "(cached) " >&6 |
| 30038 | else |
| 30039 | if test -n "$PERL"; then |
| 30040 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 30041 | else |
| 30042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30043 | for as_dir in $PATH |
| 30044 | do |
| 30045 | IFS=$as_save_IFS |
| 30046 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30047 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30049 | ac_cv_prog_PERL="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30050 | $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] | 30051 | break 2 |
| 30052 | fi |
| 30053 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30054 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30055 | IFS=$as_save_IFS |
| 30056 | |
| 30057 | fi |
| 30058 | fi |
| 30059 | PERL=$ac_cv_prog_PERL |
| 30060 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30062 | $as_echo "$PERL" >&6; } |
| 30063 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30065 | $as_echo "no" >&6; } |
| 30066 | fi |
| 30067 | |
| 30068 | |
| 30069 | test -n "$PERL" && break |
| 30070 | done |
| 30071 | |
| 30072 | for ac_prog in rpmbuild rpm |
| 30073 | do |
| 30074 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30075 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30077 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30078 | if test "${ac_cv_prog_RPM+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30079 | $as_echo_n "(cached) " >&6 |
| 30080 | else |
| 30081 | if test -n "$RPM"; then |
| 30082 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 30083 | else |
| 30084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30085 | for as_dir in $PATH |
| 30086 | do |
| 30087 | IFS=$as_save_IFS |
| 30088 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30091 | ac_cv_prog_RPM="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30092 | $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] | 30093 | break 2 |
| 30094 | fi |
| 30095 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30096 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30097 | IFS=$as_save_IFS |
| 30098 | |
| 30099 | fi |
| 30100 | fi |
| 30101 | RPM=$ac_cv_prog_RPM |
| 30102 | if test -n "$RPM"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30104 | $as_echo "$RPM" >&6; } |
| 30105 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30107 | $as_echo "no" >&6; } |
| 30108 | fi |
| 30109 | |
| 30110 | |
| 30111 | test -n "$RPM" && break |
| 30112 | done |
| 30113 | |
| 30114 | |
| 30115 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 30116 | |
| 30117 | |
| 30118 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 30119 | |
| 30120 | |
| 30121 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 30122 | |
| 30123 | |
| 30124 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 30125 | |
| 30126 | |
| 30127 | if test "x$RPM" != "x" ; then |
| 30128 | RPM_DELEGATE_TRUE= |
| 30129 | RPM_DELEGATE_FALSE='#' |
| 30130 | else |
| 30131 | RPM_DELEGATE_TRUE='#' |
| 30132 | RPM_DELEGATE_FALSE= |
| 30133 | fi |
| 30134 | |
| 30135 | |
| 30136 | # |
| 30137 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 30138 | # |
| 30139 | P7ZIP='' |
| 30140 | for ac_prog in 7za |
| 30141 | do |
| 30142 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30143 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30145 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30146 | if test "${ac_cv_prog_P7ZIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30147 | $as_echo_n "(cached) " >&6 |
| 30148 | else |
| 30149 | if test -n "$P7ZIP"; then |
| 30150 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 30151 | else |
| 30152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30153 | for as_dir in $PATH |
| 30154 | do |
| 30155 | IFS=$as_save_IFS |
| 30156 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30157 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30159 | ac_cv_prog_P7ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30160 | $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] | 30161 | break 2 |
| 30162 | fi |
| 30163 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30164 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30165 | IFS=$as_save_IFS |
| 30166 | |
| 30167 | fi |
| 30168 | fi |
| 30169 | P7ZIP=$ac_cv_prog_P7ZIP |
| 30170 | if test -n "$P7ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30172 | $as_echo "$P7ZIP" >&6; } |
| 30173 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30175 | $as_echo "no" >&6; } |
| 30176 | fi |
| 30177 | |
| 30178 | |
| 30179 | test -n "$P7ZIP" && break |
| 30180 | done |
| 30181 | |
| 30182 | |
| 30183 | if test "x$P7ZIP" != "x" ; then |
| 30184 | P7ZIP_DELEGATE_TRUE= |
| 30185 | P7ZIP_DELEGATE_FALSE='#' |
| 30186 | else |
| 30187 | P7ZIP_DELEGATE_TRUE='#' |
| 30188 | P7ZIP_DELEGATE_FALSE= |
| 30189 | fi |
| 30190 | |
| 30191 | |
| 30192 | # |
| 30193 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 30194 | # |
| 30195 | ZIP='' |
| 30196 | for ac_prog in zip |
| 30197 | do |
| 30198 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30199 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30201 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30202 | if test "${ac_cv_prog_ZIP+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30203 | $as_echo_n "(cached) " >&6 |
| 30204 | else |
| 30205 | if test -n "$ZIP"; then |
| 30206 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 30207 | else |
| 30208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30209 | for as_dir in $PATH |
| 30210 | do |
| 30211 | IFS=$as_save_IFS |
| 30212 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30215 | ac_cv_prog_ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30216 | $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] | 30217 | break 2 |
| 30218 | fi |
| 30219 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30220 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30221 | IFS=$as_save_IFS |
| 30222 | |
| 30223 | fi |
| 30224 | fi |
| 30225 | ZIP=$ac_cv_prog_ZIP |
| 30226 | if test -n "$ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30228 | $as_echo "$ZIP" >&6; } |
| 30229 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30231 | $as_echo "no" >&6; } |
| 30232 | fi |
| 30233 | |
| 30234 | |
| 30235 | test -n "$ZIP" && break |
| 30236 | done |
| 30237 | |
| 30238 | |
| 30239 | if test "x$ZIP" != "x" ; then |
| 30240 | ZIP_DELEGATE_TRUE= |
| 30241 | ZIP_DELEGATE_FALSE='#' |
| 30242 | else |
| 30243 | ZIP_DELEGATE_TRUE='#' |
| 30244 | ZIP_DELEGATE_FALSE= |
| 30245 | fi |
| 30246 | |
| 30247 | |
| 30248 | # |
| 30249 | # GhostPCL related configuration. |
| 30250 | # |
| 30251 | PCLColorDevice=ppmraw |
| 30252 | PCLCMYKDevice=bmpsep8 |
| 30253 | PCLMonoDevice=pbmraw |
| 30254 | if test -z "$PCLVersion"; then |
| 30255 | PCLVersion='unknown' |
| 30256 | fi |
| 30257 | if test $have_pcl = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30259 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30261 | $as_echo_n "checking for PCL... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30263 | $as_echo "" >&6; } |
| 30264 | # PCLColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30266 | $as_echo_n "checking for pcl color device... " >&6; } |
| 30267 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30268 | : |
| 30269 | else |
| 30270 | PCLColorDevice=ppmraw |
| 30271 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30273 | $as_echo "$PCLColorDevice" >&6; } |
| 30274 | |
| 30275 | # PCLCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30277 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 30278 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30279 | : |
| 30280 | else |
| 30281 | PCLCMYKDevice=$PCLColorDevice |
| 30282 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30284 | $as_echo "$PCLCMYKDevice" >&6; } |
| 30285 | |
| 30286 | # PCLMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30288 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 30289 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30290 | : |
| 30291 | else |
| 30292 | PCLMonoDevice=$PCLColorDevice |
| 30293 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30295 | $as_echo "$PCLMonoDevice" >&6; } |
| 30296 | fi |
| 30297 | |
| 30298 | |
| 30299 | |
| 30300 | |
| 30301 | |
| 30302 | |
| 30303 | # |
| 30304 | # GhostXPS related configuration. |
| 30305 | # |
| 30306 | XPSColorDevice=ppmraw |
| 30307 | XPSCMYKDevice=bmpsep8 |
| 30308 | XPSMonoDevice=pbmraw |
| 30309 | if test -z "$XPSVersion"; then |
| 30310 | XPSVersion='unknown' |
| 30311 | fi |
| 30312 | if test $have_xps = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30314 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30316 | $as_echo_n "checking for XPS... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30318 | $as_echo "" >&6; } |
| 30319 | # XPSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30321 | $as_echo_n "checking for xps color device... " >&6; } |
| 30322 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30323 | : |
| 30324 | else |
| 30325 | XPSColorDevice=ppmraw |
| 30326 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30328 | $as_echo "$XPSColorDevice" >&6; } |
| 30329 | |
| 30330 | # XPSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30332 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 30333 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30334 | : |
| 30335 | else |
| 30336 | XPSCMYKDevice=$XPSColorDevice |
| 30337 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30339 | $as_echo "$XPSCMYKDevice" >&6; } |
| 30340 | |
| 30341 | # XPSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30343 | $as_echo_n "checking for xps mono device... " >&6; } |
| 30344 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30345 | : |
| 30346 | else |
| 30347 | XPSMonoDevice=$XPSColorDevice |
| 30348 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30350 | $as_echo "$XPSMonoDevice" >&6; } |
| 30351 | fi |
| 30352 | |
| 30353 | |
| 30354 | |
| 30355 | |
| 30356 | |
| 30357 | |
| 30358 | # |
| 30359 | # Ghostscript related configuration. |
| 30360 | # |
| 30361 | if test "$have_png" = 'yes'; then |
| 30362 | GSAlphaDevice=pngalpha |
| 30363 | else |
| 30364 | GSAlphaDevice=pnmraw |
| 30365 | fi |
| 30366 | GSColorDevice=pnmraw |
| 30367 | GSCMYKDevice=pam |
| 30368 | GSMonoDevice=pbmraw |
| 30369 | GSPDFDevice=pdfwrite |
| 30370 | GSPSDevice=pswrite |
| 30371 | GSEPSDevice=epswrite |
| 30372 | GSVersion='unknown' |
| 30373 | if test $have_gs = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30375 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30377 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30379 | $as_echo "" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30381 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 30382 | if GSVersion=`$PSDelegate --version`; then |
| 30383 | : |
| 30384 | else |
| 30385 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 30386 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30388 | $as_echo "$GSVersion" >&6; } |
| 30389 | |
| 30390 | # GSAlphaDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30392 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 30393 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30394 | : |
| 30395 | else |
| 30396 | GSAlphaDevice=pnmraw |
| 30397 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30399 | $as_echo "$GSAlphaDevice" >&6; } |
| 30400 | |
| 30401 | # GSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30403 | $as_echo_n "checking for gs color device... " >&6; } |
| 30404 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30405 | : |
| 30406 | else |
| 30407 | GSColorDevice=pnmraw |
| 30408 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30410 | $as_echo "$GSColorDevice" >&6; } |
| 30411 | |
| 30412 | # GSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30414 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 30415 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30416 | : |
| 30417 | else |
| 30418 | GSCMYKDevice=bmpsep8 |
| 30419 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30421 | $as_echo "$GSCMYKDevice" >&6; } |
| 30422 | |
| 30423 | # GSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30425 | $as_echo_n "checking for gs mono device... " >&6; } |
| 30426 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30427 | : |
| 30428 | else |
| 30429 | GSMonoDevice=$GSColorDevice |
| 30430 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30432 | $as_echo "$GSMonoDevice" >&6; } |
| 30433 | |
| 30434 | # GSPDFDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30435 | { $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] | 30436 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 30437 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30438 | : |
| 30439 | else |
| 30440 | GSPDFDevice=nodevice |
| 30441 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30443 | $as_echo "$GSPDFDevice" >&6; } |
| 30444 | |
| 30445 | # GSPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30446 | { $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] | 30447 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 30448 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30449 | : |
| 30450 | else |
| 30451 | GSPSDevice=nodevice |
| 30452 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30454 | $as_echo "$GSPSDevice" >&6; } |
| 30455 | |
| 30456 | # GSEPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30457 | { $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] | 30458 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 30459 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 30460 | : |
| 30461 | else |
| 30462 | GSEPSDevice=nodevice |
| 30463 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30465 | $as_echo "$GSEPSDevice" >&6; } |
| 30466 | fi |
| 30467 | |
| 30468 | |
| 30469 | |
| 30470 | |
| 30471 | |
| 30472 | |
| 30473 | |
| 30474 | |
| 30475 | |
| 30476 | |
| 30477 | # |
| 30478 | # PerlMagick-related configuration |
| 30479 | # |
| 30480 | |
| 30481 | # Look for PERL if PerlMagick requested |
| 30482 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 30483 | have_perl='no' |
| 30484 | if test "$with_perl" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30486 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30488 | $as_echo_n "checking for Perl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30490 | $as_echo "" >&6; } |
| 30491 | if test "$with_perl" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30493 | $as_echo_n "checking for perl... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30494 | if test "${ac_cv_path_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30495 | $as_echo_n "(cached) " >&6 |
| 30496 | else |
| 30497 | ac_cv_path_PERL="$with_perl" |
| 30498 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30500 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 30501 | PERL=$ac_cv_path_PERL |
| 30502 | have_perl="$ac_cv_path_PERL" |
| 30503 | else |
| 30504 | for ac_prog in perl perl5 |
| 30505 | do |
| 30506 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 30507 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30509 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30510 | if test "${ac_cv_path_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30511 | $as_echo_n "(cached) " >&6 |
| 30512 | else |
| 30513 | case $PERL in |
| 30514 | [\\/]* | ?:[\\/]*) |
| 30515 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 30516 | ;; |
| 30517 | *) |
| 30518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30519 | for as_dir in $PATH |
| 30520 | do |
| 30521 | IFS=$as_save_IFS |
| 30522 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30524 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30525 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30526 | $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] | 30527 | break 2 |
| 30528 | fi |
| 30529 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30530 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30531 | IFS=$as_save_IFS |
| 30532 | |
| 30533 | ;; |
| 30534 | esac |
| 30535 | fi |
| 30536 | PERL=$ac_cv_path_PERL |
| 30537 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30539 | $as_echo "$PERL" >&6; } |
| 30540 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30542 | $as_echo "no" >&6; } |
| 30543 | fi |
| 30544 | |
| 30545 | |
| 30546 | test -n "$PERL" && break |
| 30547 | done |
| 30548 | if test "$ac_cv_path_PERL"; then |
| 30549 | have_perl="$ac_cv_path_PERL" |
| 30550 | fi |
| 30551 | fi |
| 30552 | fi |
| 30553 | |
| 30554 | with_perl_static='no' |
| 30555 | with_perl_dynamic='no' |
| 30556 | if test "$have_perl" != 'no'; then |
| 30557 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 30558 | with_perl_static='yes' |
| 30559 | fi |
| 30560 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 30561 | with_perl_dynamic='yes' |
| 30562 | fi |
| 30563 | # Is PERL's MakeMaker new enough to support DESTDIR? |
| 30564 | # Make sure we have perl |
| 30565 | if test -z "$PERL"; then |
| 30566 | # Extract the first word of "perl", so it can be a program name with args. |
| 30567 | set dummy perl; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30569 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30570 | if test "${ac_cv_prog_PERL+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30571 | $as_echo_n "(cached) " >&6 |
| 30572 | else |
| 30573 | if test -n "$PERL"; then |
| 30574 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 30575 | else |
| 30576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 30577 | for as_dir in $PATH |
| 30578 | do |
| 30579 | IFS=$as_save_IFS |
| 30580 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30581 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30582 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 30583 | ac_cv_prog_PERL="perl" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30584 | $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] | 30585 | break 2 |
| 30586 | fi |
| 30587 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30588 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30589 | IFS=$as_save_IFS |
| 30590 | |
| 30591 | fi |
| 30592 | fi |
| 30593 | PERL=$ac_cv_prog_PERL |
| 30594 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30596 | $as_echo "$PERL" >&6; } |
| 30597 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30599 | $as_echo "no" >&6; } |
| 30600 | fi |
| 30601 | |
| 30602 | |
| 30603 | fi |
| 30604 | |
| 30605 | # Check if version of Perl is sufficient |
| 30606 | ac_perl_version="5.8.1" |
| 30607 | |
| 30608 | if test "x$PERL" != "x"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30610 | $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; } |
| 30611 | # NB: It would be nice to log the error if there is one, but we cannot rely |
| 30612 | # on autoconf internals |
| 30613 | $PERL -e "use $ac_perl_version;" > /dev/null 2>&1 |
| 30614 | if test $? -ne 0; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30616 | $as_echo "no" >&6; }; |
| 30617 | PERL_SUPPORTS_DESTDIR='no' |
| 30618 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30620 | $as_echo "ok" >&6; }; |
| 30621 | PERL_SUPPORTS_DESTDIR='yes' |
| 30622 | fi |
| 30623 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30625 | $as_echo "$as_me: WARNING: could not find perl" >&2;} |
| 30626 | fi |
| 30627 | |
| 30628 | fi |
| 30629 | if test "$have_perl" != 'no'; then |
| 30630 | WITH_PERL_TRUE= |
| 30631 | WITH_PERL_FALSE='#' |
| 30632 | else |
| 30633 | WITH_PERL_TRUE='#' |
| 30634 | WITH_PERL_FALSE= |
| 30635 | fi |
| 30636 | |
| 30637 | if test $with_perl_static = 'yes'; then |
| 30638 | WITH_PERL_STATIC_TRUE= |
| 30639 | WITH_PERL_STATIC_FALSE='#' |
| 30640 | else |
| 30641 | WITH_PERL_STATIC_TRUE='#' |
| 30642 | WITH_PERL_STATIC_FALSE= |
| 30643 | fi |
| 30644 | |
| 30645 | if test $with_perl_dynamic = 'yes'; then |
| 30646 | WITH_PERL_DYNAMIC_TRUE= |
| 30647 | WITH_PERL_DYNAMIC_FALSE='#' |
| 30648 | else |
| 30649 | WITH_PERL_DYNAMIC_TRUE='#' |
| 30650 | WITH_PERL_DYNAMIC_FALSE= |
| 30651 | fi |
| 30652 | |
| 30653 | |
| 30654 | |
| 30655 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 30656 | MAGICKCORE_PATH="${LIB_DIR}" |
| 30657 | if test $with_perl_static = 'yes'; then |
| 30658 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 30659 | libtool_objdir=$objdir |
| 30660 | |
| 30661 | # Linker search path to library, followed by -lMagickCore |
| 30662 | MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" |
| 30663 | fi |
| 30664 | |
| 30665 | |
| 30666 | # Create a simple string containing format names for all delegate libraries |
| 30667 | DELEGATES='' |
| 30668 | if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi |
| 30669 | if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi |
| 30670 | if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi |
| 30671 | if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi |
| 30672 | if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi |
| 30673 | if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi |
| 30674 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi |
| 30675 | if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi |
| 30676 | if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi |
| 30677 | if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi |
| 30678 | if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi |
| 30679 | if test "$have_jpeg" = 'yes'; then |
| 30680 | DELEGATES="$DELEGATES jpeg"; |
| 30681 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi |
| 30682 | fi |
| 30683 | if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi |
| 30684 | if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi |
| 30685 | if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi |
| 30686 | if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi |
| 30687 | if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi |
| 30688 | if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi |
| 30689 | if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi |
| 30690 | if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi |
| 30691 | if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi |
| 30692 | if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi |
| 30693 | if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi |
| 30694 | if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi |
| 30695 | |
| 30696 | |
| 30697 | |
| 30698 | # |
| 30699 | # Handle special compiler flags |
| 30700 | # |
| 30701 | |
| 30702 | # Add '-p' if prof source profiling support enabled |
| 30703 | if test "$enable_prof" = 'yes'; then |
| 30704 | CFLAGS="-p $CFLAGS" |
| 30705 | CXXFLAGS="-p $CXXFLAGS" |
| 30706 | LDFLAGS="-p $LDFLAGS" |
| 30707 | fi |
| 30708 | |
| 30709 | # Add '-pg' if gprof source profiling support enabled |
| 30710 | if test "$enable_gprof" = 'yes'; then |
| 30711 | CFLAGS="-pg $CFLAGS" |
| 30712 | CXXFLAGS="-pg $CXXFLAGS" |
| 30713 | LDFLAGS="-pg $LDFLAGS" |
| 30714 | fi |
| 30715 | |
| 30716 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 30717 | # This is a gcc-specific feature |
| 30718 | if test "$enable_gcov" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30719 | { $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] | 30720 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30721 | if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30722 | $as_echo_n "(cached) " >&6 |
| 30723 | else |
| 30724 | ac_check_lib_save_LIBS=$LIBS |
| 30725 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30727 | /* end confdefs.h. */ |
| 30728 | |
| 30729 | /* Override any GCC internal prototype to avoid an error. |
| 30730 | Use char because int might match the return type of a GCC |
| 30731 | builtin and then its argument prototype would still apply. */ |
| 30732 | #ifdef __cplusplus |
| 30733 | extern "C" |
| 30734 | #endif |
| 30735 | char _gcov_init (); |
| 30736 | int |
| 30737 | main () |
| 30738 | { |
| 30739 | return _gcov_init (); |
| 30740 | ; |
| 30741 | return 0; |
| 30742 | } |
| 30743 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30744 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30745 | ac_cv_lib_gcov__gcov_init=yes |
| 30746 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30747 | ac_cv_lib_gcov__gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30748 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30749 | rm -f core conftest.err conftest.$ac_objext \ |
| 30750 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30751 | LIBS=$ac_check_lib_save_LIBS |
| 30752 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30753 | { $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] | 30754 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30755 | if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30756 | cat >>confdefs.h <<_ACEOF |
| 30757 | #define HAVE_LIBGCOV 1 |
| 30758 | _ACEOF |
| 30759 | |
| 30760 | LIBS="-lgcov $LIBS" |
| 30761 | |
| 30762 | fi |
| 30763 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30764 | { $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] | 30765 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30766 | if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30767 | $as_echo_n "(cached) " >&6 |
| 30768 | else |
| 30769 | ac_check_lib_save_LIBS=$LIBS |
| 30770 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30772 | /* end confdefs.h. */ |
| 30773 | |
| 30774 | /* Override any GCC internal prototype to avoid an error. |
| 30775 | Use char because int might match the return type of a GCC |
| 30776 | builtin and then its argument prototype would still apply. */ |
| 30777 | #ifdef __cplusplus |
| 30778 | extern "C" |
| 30779 | #endif |
| 30780 | char __gcov_init (); |
| 30781 | int |
| 30782 | main () |
| 30783 | { |
| 30784 | return __gcov_init (); |
| 30785 | ; |
| 30786 | return 0; |
| 30787 | } |
| 30788 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30789 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30790 | ac_cv_lib_gcov___gcov_init=yes |
| 30791 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30792 | ac_cv_lib_gcov___gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30793 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30794 | rm -f core conftest.err conftest.$ac_objext \ |
| 30795 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30796 | LIBS=$ac_check_lib_save_LIBS |
| 30797 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30798 | { $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] | 30799 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30800 | if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30801 | cat >>confdefs.h <<_ACEOF |
| 30802 | #define HAVE_LIBGCOV 1 |
| 30803 | _ACEOF |
| 30804 | |
| 30805 | LIBS="-lgcov $LIBS" |
| 30806 | |
| 30807 | fi |
| 30808 | |
| 30809 | case "$target_os" in |
| 30810 | darwin*) |
| 30811 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 30812 | ;; |
| 30813 | *) |
| 30814 | OSX_GCOV_LDFLAG="" |
| 30815 | ;; |
| 30816 | esac |
| 30817 | |
| 30818 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 30819 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 30820 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 30821 | fi |
| 30822 | |
| 30823 | # |
| 30824 | # Build library dependency list for libMagickCore |
| 30825 | # |
| 30826 | |
| 30827 | MAGICK_LIBLTDL='' # Libltdl for build |
| 30828 | MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build |
| 30829 | MAGICK_LTDLDEPS='' # extra libltdl dependencies |
| 30830 | if test "$with_ltdl" != 'no' |
| 30831 | then |
| 30832 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then |
| 30833 | MAGICK_API_LIBLTDL='-lltdl' |
| 30834 | fi |
| 30835 | MAGICK_LIBLTDL=${LIBLTDL} |
| 30836 | MAGICK_LTDLDEPS=${LTDLDEPS} |
| 30837 | fi |
| 30838 | |
| 30839 | |
| 30840 | |
| 30841 | if test "$with_modules" != 'no'; then |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 30842 | 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] | 30843 | else |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 30844 | 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] | 30845 | fi |
| 30846 | |
| 30847 | |
| 30848 | # |
| 30849 | # Remove extraneous spaces from output variables (asthetic) |
| 30850 | # |
| 30851 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 30852 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 30853 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 30854 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 30855 | |
| 30856 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 30857 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 30858 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 30859 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| 30860 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` |
| 30861 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 30862 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 30863 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 30864 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 30865 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 30866 | |
| 30867 | # Pass only user-provided LIBS as "global" libraries |
| 30868 | LIBS=$USER_LIBS |
| 30869 | |
| 30870 | #AC_SUBST(CPPFLAGS) |
| 30871 | |
| 30872 | #AC_SUBST(LDFLAGS) |
| 30873 | #AC_SUBST(X_PRE_LIBS) |
| 30874 | #AC_SUBST(X_LIBS) |
| 30875 | #AC_SUBST(X_EXTRA_LIBS) |
| 30876 | |
| 30877 | MAGICK_CFLAGS=$CFLAGS |
| 30878 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 30879 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 30880 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 30881 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| 30882 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" |
| 30883 | |
| 30884 | |
| 30885 | |
| 30886 | |
| 30887 | |
| 30888 | |
| 30889 | |
| 30890 | |
| 30891 | # Set configured scripts to executable. |
| 30892 | ac_config_commands="$ac_config_commands default" |
| 30893 | |
| 30894 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 30895 | |
| 30896 | ac_config_commands="$ac_config_commands Magick-config.in" |
| 30897 | |
| 30898 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 30899 | |
| 30900 | ac_config_commands="$ac_config_commands Wand-config.in" |
| 30901 | |
| 30902 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 30903 | |
| 30904 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 30905 | |
| 30906 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30908 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30910 | $as_echo "Update ImageMagick configuration" >&6; } |
| 30911 | cat >confcache <<\_ACEOF |
| 30912 | # This file is a shell script that caches the results of configure |
| 30913 | # tests run on this system so they can be shared between configure |
| 30914 | # scripts and configure runs, see configure's option --config-cache. |
| 30915 | # It is not useful on other systems. If it contains results you don't |
| 30916 | # want to keep, you may remove or edit it. |
| 30917 | # |
| 30918 | # config.status only pays attention to the cache file if you give it |
| 30919 | # the --recheck option to rerun configure. |
| 30920 | # |
| 30921 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 30922 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 30923 | # following values. |
| 30924 | |
| 30925 | _ACEOF |
| 30926 | |
| 30927 | # The following way of writing the cache mishandles newlines in values, |
| 30928 | # but we know of no workaround that is simple, portable, and efficient. |
| 30929 | # So, we kill variables containing newlines. |
| 30930 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 30931 | # and sets the high bit in the cache file unless we assign to the vars. |
| 30932 | ( |
| 30933 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 30934 | eval ac_val=\$$ac_var |
| 30935 | case $ac_val in #( |
| 30936 | *${as_nl}*) |
| 30937 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30938 | *_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] | 30939 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 30940 | esac |
| 30941 | case $ac_var in #( |
| 30942 | _ | IFS | as_nl) ;; #( |
| 30943 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30944 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30945 | esac ;; |
| 30946 | esac |
| 30947 | done |
| 30948 | |
| 30949 | (set) 2>&1 | |
| 30950 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 30951 | *${as_nl}ac_space=\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30952 | # `set' does not quote correctly, so add quotes: double-quote |
| 30953 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30954 | sed -n \ |
| 30955 | "s/'/'\\\\''/g; |
| 30956 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 30957 | ;; #( |
| 30958 | *) |
| 30959 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 30960 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 30961 | ;; |
| 30962 | esac | |
| 30963 | sort |
| 30964 | ) | |
| 30965 | sed ' |
| 30966 | /^ac_cv_env_/b end |
| 30967 | t clear |
| 30968 | :clear |
| 30969 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 30970 | t end |
| 30971 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 30972 | :end' >>confcache |
| 30973 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 30974 | if test -w "$cache_file"; then |
| 30975 | test "x$cache_file" != "x/dev/null" && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30976 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30977 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 30978 | cat confcache >$cache_file |
| 30979 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30980 | { $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] | 30981 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 30982 | fi |
| 30983 | fi |
| 30984 | rm -f confcache |
| 30985 | |
| 30986 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 30987 | # Let make expand exec_prefix. |
| 30988 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 30989 | |
| 30990 | DEFS=-DHAVE_CONFIG_H |
| 30991 | |
| 30992 | ac_libobjs= |
| 30993 | ac_ltlibobjs= |
| 30994 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 30995 | # 1. Remove the extension, and $U if already installed. |
| 30996 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 30997 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 30998 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 30999 | # will be set to the directory where LIBOBJS objects are built. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31000 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 31001 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31002 | done |
| 31003 | LIBOBJS=$ac_libobjs |
| 31004 | |
| 31005 | LTLIBOBJS=$ac_ltlibobjs |
| 31006 | |
| 31007 | |
| 31008 | if test -n "$EXEEXT"; then |
| 31009 | am__EXEEXT_TRUE= |
| 31010 | am__EXEEXT_FALSE='#' |
| 31011 | else |
| 31012 | am__EXEEXT_TRUE='#' |
| 31013 | am__EXEEXT_FALSE= |
| 31014 | fi |
| 31015 | |
| 31016 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31017 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 31018 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31019 | fi |
| 31020 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31021 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 31022 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31023 | fi |
| 31024 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31025 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 31026 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31027 | fi |
| 31028 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31029 | as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined. |
| 31030 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31031 | fi |
| 31032 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31033 | as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| 31034 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31035 | fi |
| 31036 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31037 | as_fn_error "conditional \"CYGWIN_BUILD\" was never defined. |
| 31038 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31039 | fi |
| 31040 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31041 | as_fn_error "conditional \"USING_CL\" was never defined. |
| 31042 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31043 | fi |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 31044 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 31045 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 31046 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 31047 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31048 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31049 | as_fn_error "conditional \"INSTALL_LTDL\" was never defined. |
| 31050 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31051 | fi |
| 31052 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31053 | as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined. |
| 31054 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31055 | fi |
| 31056 | LT_CONFIG_H=config/config.h |
| 31057 | |
| 31058 | _ltdl_libobjs= |
| 31059 | _ltdl_ltlibobjs= |
| 31060 | if test -n "$_LT_LIBOBJS"; then |
| 31061 | # Remove the extension. |
| 31062 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 31063 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do |
| 31064 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" |
| 31065 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" |
| 31066 | done |
| 31067 | fi |
| 31068 | ltdl_LIBOBJS=$_ltdl_libobjs |
| 31069 | |
| 31070 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs |
| 31071 | |
| 31072 | |
| cristy | fa11211 | 2010-01-04 17:48:07 +0000 | [diff] [blame^] | 31073 | if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then |
| 31074 | as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined. |
| 31075 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 31076 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31077 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31078 | as_fn_error "conditional \"WITH_MODULES\" was never defined. |
| 31079 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31080 | fi |
| 31081 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31082 | as_fn_error "conditional \"WITH_LTDL\" was never defined. |
| 31083 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31084 | fi |
| 31085 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31086 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. |
| 31087 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31088 | fi |
| 31089 | |
| 31090 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31091 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 31092 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31093 | fi |
| 31094 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31095 | as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| 31096 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31097 | fi |
| 31098 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31099 | as_fn_error "conditional \"HasUMEM\" was never defined. |
| 31100 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31101 | fi |
| 31102 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31103 | as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined. |
| 31104 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31105 | fi |
| 31106 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31107 | as_fn_error "conditional \"X11_DELEGATE\" was never defined. |
| 31108 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31109 | fi |
| 31110 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31111 | as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined. |
| 31112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31113 | fi |
| 31114 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31115 | as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| 31116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31117 | fi |
| 31118 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31119 | as_fn_error "conditional \"DPS_DELEGATE\" was never defined. |
| 31120 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31121 | fi |
| 31122 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31123 | as_fn_error "conditional \"DJVU_DELEGATE\" was never defined. |
| 31124 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31125 | fi |
| 31126 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31127 | as_fn_error "conditional \"FFTW_DELEGATE\" was never defined. |
| 31128 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31129 | fi |
| 31130 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31131 | as_fn_error "conditional \"FPX_DELEGATE\" was never defined. |
| 31132 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31133 | fi |
| 31134 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31135 | as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| 31136 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31137 | fi |
| 31138 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31139 | as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined. |
| 31140 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31141 | fi |
| 31142 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31143 | as_fn_error "conditional \"GS_DELEGATE\" was never defined. |
| 31144 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31145 | fi |
| 31146 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31147 | as_fn_error "conditional \"GVC_DELEGATE\" was never defined. |
| 31148 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31149 | fi |
| 31150 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31151 | as_fn_error "conditional \"JBIG_DELEGATE\" was never defined. |
| 31152 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31153 | fi |
| 31154 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31155 | as_fn_error "conditional \"JPEG_DELEGATE\" was never defined. |
| 31156 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31157 | fi |
| 31158 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31159 | as_fn_error "conditional \"JP2_DELEGATE\" was never defined. |
| 31160 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31161 | fi |
| 31162 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31163 | as_fn_error "conditional \"LCMS_DELEGATE\" was never defined. |
| 31164 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31165 | fi |
| 31166 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31167 | as_fn_error "conditional \"LQR_DELEGATE\" was never defined. |
| 31168 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31169 | fi |
| 31170 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31171 | as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined. |
| 31172 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31173 | fi |
| 31174 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31175 | as_fn_error "conditional \"PNG_DELEGATE\" was never defined. |
| 31176 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31177 | fi |
| 31178 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31179 | as_fn_error "conditional \"RSVG_DELEGATE\" was never defined. |
| 31180 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31181 | fi |
| 31182 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31183 | as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined. |
| 31184 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31185 | fi |
| 31186 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31187 | as_fn_error "conditional \"TIFF_DELEGATE\" was never defined. |
| 31188 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31189 | fi |
| 31190 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31191 | as_fn_error "conditional \"WMF_DELEGATE\" was never defined. |
| 31192 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31193 | fi |
| 31194 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31195 | as_fn_error "conditional \"XML_DELEGATE\" was never defined. |
| 31196 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31197 | fi |
| 31198 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31199 | as_fn_error "conditional \"RPM_DELEGATE\" was never defined. |
| 31200 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31201 | fi |
| 31202 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31203 | as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined. |
| 31204 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31205 | fi |
| 31206 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31207 | as_fn_error "conditional \"ZIP_DELEGATE\" was never defined. |
| 31208 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31209 | fi |
| 31210 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31211 | as_fn_error "conditional \"WITH_PERL\" was never defined. |
| 31212 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31213 | fi |
| 31214 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31215 | as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined. |
| 31216 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31217 | fi |
| 31218 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31219 | as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| 31220 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31221 | fi |
| 31222 | |
| 31223 | : ${CONFIG_STATUS=./config.status} |
| 31224 | ac_write_fail=0 |
| 31225 | ac_clean_files_save=$ac_clean_files |
| 31226 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31227 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31228 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31229 | as_write_fail=0 |
| 31230 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31231 | #! $SHELL |
| 31232 | # Generated by $as_me. |
| 31233 | # Run this file to recreate the current configuration. |
| 31234 | # Compiler output produced by configure, useful for debugging |
| 31235 | # configure, is in config.log if it exists. |
| 31236 | |
| 31237 | debug=false |
| 31238 | ac_cs_recheck=false |
| 31239 | ac_cs_silent=false |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31240 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31241 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 31242 | export SHELL |
| 31243 | _ASEOF |
| 31244 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 31245 | ## -------------------- ## |
| 31246 | ## M4sh Initialization. ## |
| 31247 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31248 | |
| 31249 | # Be more Bourne compatible |
| 31250 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31251 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31252 | emulate sh |
| 31253 | NULLCMD=: |
| 31254 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 31255 | # is contrary to our usage. Disable this feature. |
| 31256 | alias -g '${1+"$@"}'='"$@"' |
| 31257 | setopt NO_GLOB_SUBST |
| 31258 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31259 | case `(set -o) 2>/dev/null` in #( |
| 31260 | *posix*) : |
| 31261 | set -o posix ;; #( |
| 31262 | *) : |
| 31263 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31264 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31265 | fi |
| 31266 | |
| 31267 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31268 | as_nl=' |
| 31269 | ' |
| 31270 | export as_nl |
| 31271 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 31272 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 31273 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 31274 | 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] | 31275 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 31276 | # but without wasting forks for bash or zsh. |
| 31277 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 31278 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 31279 | as_echo='print -r --' |
| 31280 | as_echo_n='print -rn --' |
| 31281 | 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] | 31282 | as_echo='printf %s\n' |
| 31283 | as_echo_n='printf %s' |
| 31284 | else |
| 31285 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 31286 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 31287 | as_echo_n='/usr/ucb/echo -n' |
| 31288 | else |
| 31289 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 31290 | as_echo_n_body='eval |
| 31291 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31292 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31293 | *"$as_nl"*) |
| 31294 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 31295 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 31296 | esac; |
| 31297 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 31298 | ' |
| 31299 | export as_echo_n_body |
| 31300 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 31301 | fi |
| 31302 | export as_echo_body |
| 31303 | as_echo='sh -c $as_echo_body as_echo' |
| 31304 | fi |
| 31305 | |
| 31306 | # The user is always right. |
| 31307 | if test "${PATH_SEPARATOR+set}" != set; then |
| 31308 | PATH_SEPARATOR=: |
| 31309 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 31310 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 31311 | PATH_SEPARATOR=';' |
| 31312 | } |
| 31313 | fi |
| 31314 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31315 | |
| 31316 | # IFS |
| 31317 | # We need space, tab and new line, in precisely that order. Quoting is |
| 31318 | # there to prevent editors from complaining about space-tab. |
| 31319 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 31320 | # splitting by setting IFS to empty value.) |
| 31321 | IFS=" "" $as_nl" |
| 31322 | |
| 31323 | # 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] | 31324 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31325 | *[\\/]* ) as_myself=$0 ;; |
| 31326 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 31327 | for as_dir in $PATH |
| 31328 | do |
| 31329 | IFS=$as_save_IFS |
| 31330 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31331 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 31332 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31333 | IFS=$as_save_IFS |
| 31334 | |
| 31335 | ;; |
| 31336 | esac |
| 31337 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 31338 | # in which case we are not to be found in the path. |
| 31339 | if test "x$as_myself" = x; then |
| 31340 | as_myself=$0 |
| 31341 | fi |
| 31342 | if test ! -f "$as_myself"; then |
| 31343 | $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] | 31344 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31345 | fi |
| 31346 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31347 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 31348 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 31349 | # suppresses any "Segmentation fault" message there. '((' could |
| 31350 | # trigger a bug in pdksh 5.2.14. |
| 31351 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 31352 | do eval test x\${$as_var+set} = xset \ |
| 31353 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31354 | done |
| 31355 | PS1='$ ' |
| 31356 | PS2='> ' |
| 31357 | PS4='+ ' |
| 31358 | |
| 31359 | # NLS nuisances. |
| 31360 | LC_ALL=C |
| 31361 | export LC_ALL |
| 31362 | LANGUAGE=C |
| 31363 | export LANGUAGE |
| 31364 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31365 | # CDPATH. |
| 31366 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 31367 | |
| 31368 | |
| 31369 | # as_fn_error ERROR [LINENO LOG_FD] |
| 31370 | # --------------------------------- |
| 31371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 31372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 31373 | # script with status $?, using 1 if that was 0. |
| 31374 | as_fn_error () |
| 31375 | { |
| 31376 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 31377 | if test "$3"; then |
| 31378 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 31379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 31380 | fi |
| 31381 | $as_echo "$as_me: error: $1" >&2 |
| 31382 | as_fn_exit $as_status |
| 31383 | } # as_fn_error |
| 31384 | |
| 31385 | |
| 31386 | # as_fn_set_status STATUS |
| 31387 | # ----------------------- |
| 31388 | # Set $? to STATUS, without forking. |
| 31389 | as_fn_set_status () |
| 31390 | { |
| 31391 | return $1 |
| 31392 | } # as_fn_set_status |
| 31393 | |
| 31394 | # as_fn_exit STATUS |
| 31395 | # ----------------- |
| 31396 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 31397 | as_fn_exit () |
| 31398 | { |
| 31399 | set +e |
| 31400 | as_fn_set_status $1 |
| 31401 | exit $1 |
| 31402 | } # as_fn_exit |
| 31403 | |
| 31404 | # as_fn_unset VAR |
| 31405 | # --------------- |
| 31406 | # Portably unset VAR. |
| 31407 | as_fn_unset () |
| 31408 | { |
| 31409 | { eval $1=; unset $1;} |
| 31410 | } |
| 31411 | as_unset=as_fn_unset |
| 31412 | # as_fn_append VAR VALUE |
| 31413 | # ---------------------- |
| 31414 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 31415 | # advantage of any shell optimizations that allow amortized linear growth over |
| 31416 | # repeated appends, instead of the typical quadratic growth present in naive |
| 31417 | # implementations. |
| 31418 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 31419 | eval 'as_fn_append () |
| 31420 | { |
| 31421 | eval $1+=\$2 |
| 31422 | }' |
| 31423 | else |
| 31424 | as_fn_append () |
| 31425 | { |
| 31426 | eval $1=\$$1\$2 |
| 31427 | } |
| 31428 | fi # as_fn_append |
| 31429 | |
| 31430 | # as_fn_arith ARG... |
| 31431 | # ------------------ |
| 31432 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 31433 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 31434 | # must be portable across $(()) and expr. |
| 31435 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 31436 | eval 'as_fn_arith () |
| 31437 | { |
| 31438 | as_val=$(( $* )) |
| 31439 | }' |
| 31440 | else |
| 31441 | as_fn_arith () |
| 31442 | { |
| 31443 | as_val=`expr "$@" || test $? -eq 1` |
| 31444 | } |
| 31445 | fi # as_fn_arith |
| 31446 | |
| 31447 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31448 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 31449 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 31450 | as_expr=expr |
| 31451 | else |
| 31452 | as_expr=false |
| 31453 | fi |
| 31454 | |
| 31455 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 31456 | as_basename=basename |
| 31457 | else |
| 31458 | as_basename=false |
| 31459 | fi |
| 31460 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31461 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 31462 | as_dirname=dirname |
| 31463 | else |
| 31464 | as_dirname=false |
| 31465 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31466 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31467 | as_me=`$as_basename -- "$0" || |
| 31468 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 31469 | X"$0" : 'X\(//\)$' \| \ |
| 31470 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 31471 | $as_echo X/"$0" | |
| 31472 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 31473 | s//\1/ |
| 31474 | q |
| 31475 | } |
| 31476 | /^X\/\(\/\/\)$/{ |
| 31477 | s//\1/ |
| 31478 | q |
| 31479 | } |
| 31480 | /^X\/\(\/\).*/{ |
| 31481 | s//\1/ |
| 31482 | q |
| 31483 | } |
| 31484 | s/.*/./; q'` |
| 31485 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31486 | # Avoid depending upon Character Ranges. |
| 31487 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 31488 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 31489 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 31490 | as_cr_digits='0123456789' |
| 31491 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31492 | |
| 31493 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31494 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31495 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31496 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31497 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31498 | xy) ECHO_C='\c';; |
| 31499 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 31500 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31501 | esac;; |
| 31502 | *) |
| 31503 | ECHO_N='-n';; |
| 31504 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31505 | |
| 31506 | rm -f conf$$ conf$$.exe conf$$.file |
| 31507 | if test -d conf$$.dir; then |
| 31508 | rm -f conf$$.dir/conf$$.file |
| 31509 | else |
| 31510 | rm -f conf$$.dir |
| 31511 | mkdir conf$$.dir 2>/dev/null |
| 31512 | fi |
| 31513 | if (echo >conf$$.file) 2>/dev/null; then |
| 31514 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 31515 | as_ln_s='ln -s' |
| 31516 | # ... but there are two gotchas: |
| 31517 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 31518 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 31519 | # In both cases, we have to default to `cp -p'. |
| 31520 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 31521 | as_ln_s='cp -p' |
| 31522 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 31523 | as_ln_s=ln |
| 31524 | else |
| 31525 | as_ln_s='cp -p' |
| 31526 | fi |
| 31527 | else |
| 31528 | as_ln_s='cp -p' |
| 31529 | fi |
| 31530 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 31531 | rmdir conf$$.dir 2>/dev/null |
| 31532 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31533 | |
| 31534 | # as_fn_mkdir_p |
| 31535 | # ------------- |
| 31536 | # Create "$as_dir" as a directory, including parents if necessary. |
| 31537 | as_fn_mkdir_p () |
| 31538 | { |
| 31539 | |
| 31540 | case $as_dir in #( |
| 31541 | -*) as_dir=./$as_dir;; |
| 31542 | esac |
| 31543 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 31544 | as_dirs= |
| 31545 | while :; do |
| 31546 | case $as_dir in #( |
| 31547 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 31548 | *) as_qdir=$as_dir;; |
| 31549 | esac |
| 31550 | as_dirs="'$as_qdir' $as_dirs" |
| 31551 | as_dir=`$as_dirname -- "$as_dir" || |
| 31552 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 31553 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 31554 | X"$as_dir" : 'X\(//\)$' \| \ |
| 31555 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 31556 | $as_echo X"$as_dir" | |
| 31557 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 31558 | s//\1/ |
| 31559 | q |
| 31560 | } |
| 31561 | /^X\(\/\/\)[^/].*/{ |
| 31562 | s//\1/ |
| 31563 | q |
| 31564 | } |
| 31565 | /^X\(\/\/\)$/{ |
| 31566 | s//\1/ |
| 31567 | q |
| 31568 | } |
| 31569 | /^X\(\/\).*/{ |
| 31570 | s//\1/ |
| 31571 | q |
| 31572 | } |
| 31573 | s/.*/./; q'` |
| 31574 | test -d "$as_dir" && break |
| 31575 | done |
| 31576 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 31577 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 31578 | |
| 31579 | |
| 31580 | } # as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31581 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31582 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31583 | else |
| 31584 | test -d ./-p && rmdir ./-p |
| 31585 | as_mkdir_p=false |
| 31586 | fi |
| 31587 | |
| 31588 | if test -x / >/dev/null 2>&1; then |
| 31589 | as_test_x='test -x' |
| 31590 | else |
| 31591 | if ls -dL / >/dev/null 2>&1; then |
| 31592 | as_ls_L_option=L |
| 31593 | else |
| 31594 | as_ls_L_option= |
| 31595 | fi |
| 31596 | as_test_x=' |
| 31597 | eval sh -c '\'' |
| 31598 | if test -d "$1"; then |
| 31599 | test -d "$1/."; |
| 31600 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31601 | case $1 in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31602 | -*)set "./$1";; |
| 31603 | esac; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31604 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31605 | ???[sx]*):;;*)false;;esac;fi |
| 31606 | '\'' sh |
| 31607 | ' |
| 31608 | fi |
| 31609 | as_executable_p=$as_test_x |
| 31610 | |
| 31611 | # Sed expression to map a string onto a valid CPP name. |
| 31612 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 31613 | |
| 31614 | # Sed expression to map a string onto a valid variable name. |
| 31615 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 31616 | |
| 31617 | |
| 31618 | exec 6>&1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31619 | ## ----------------------------------- ## |
| 31620 | ## Main body of $CONFIG_STATUS script. ## |
| 31621 | ## ----------------------------------- ## |
| 31622 | _ASEOF |
| 31623 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31624 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31625 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31626 | # Save the log message, to keep $0 and so on meaningful, and to |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31627 | # report actual input values of CONFIG_FILES etc. instead of their |
| 31628 | # values after options handling. |
| 31629 | ac_log=" |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 31630 | This file was extended by ImageMagick $as_me 6.5.9, which was |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 31631 | generated by GNU Autoconf 2.65. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31632 | |
| 31633 | CONFIG_FILES = $CONFIG_FILES |
| 31634 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 31635 | CONFIG_LINKS = $CONFIG_LINKS |
| 31636 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 31637 | $ $0 $@ |
| 31638 | |
| 31639 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 31640 | " |
| 31641 | |
| 31642 | _ACEOF |
| 31643 | |
| 31644 | case $ac_config_files in *" |
| 31645 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 31646 | esac |
| 31647 | |
| 31648 | case $ac_config_headers in *" |
| 31649 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 31650 | esac |
| 31651 | |
| 31652 | |
| 31653 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31654 | # Files that config.status was made for. |
| 31655 | config_files="$ac_config_files" |
| 31656 | config_headers="$ac_config_headers" |
| 31657 | config_commands="$ac_config_commands" |
| 31658 | |
| 31659 | _ACEOF |
| 31660 | |
| 31661 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31662 | ac_cs_usage="\ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31663 | \`$as_me' instantiates files and other configuration actions |
| 31664 | from templates according to the current configuration. Unless the files |
| 31665 | and actions are specified as TAGs, all are instantiated by default. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31666 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31667 | Usage: $0 [OPTION]... [TAG]... |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31668 | |
| 31669 | -h, --help print this help, then exit |
| 31670 | -V, --version print version number and configuration settings, then exit |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 31671 | --config print configuration, then exit |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31672 | -q, --quiet, --silent |
| 31673 | do not print progress messages |
| 31674 | -d, --debug don't remove temporary files |
| 31675 | --recheck update $as_me by reconfiguring in the same conditions |
| 31676 | --file=FILE[:TEMPLATE] |
| 31677 | instantiate the configuration file FILE |
| 31678 | --header=FILE[:TEMPLATE] |
| 31679 | instantiate the configuration header FILE |
| 31680 | |
| 31681 | Configuration files: |
| 31682 | $config_files |
| 31683 | |
| 31684 | Configuration headers: |
| 31685 | $config_headers |
| 31686 | |
| 31687 | Configuration commands: |
| 31688 | $config_commands |
| 31689 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31690 | Report bugs to <http://www.imagemagick.org>." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31691 | |
| 31692 | _ACEOF |
| 31693 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 31694 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31695 | ac_cs_version="\\ |
| cristy | dc0f089 | 2009-12-29 02:21:55 +0000 | [diff] [blame] | 31696 | ImageMagick config.status 6.5.9 |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 31697 | configured by $0, generated by GNU Autoconf 2.65, |
| 31698 | with options \\"\$ac_cs_config\\" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31699 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31700 | Copyright (C) 2009 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31701 | This config.status script is free software; the Free Software Foundation |
| 31702 | gives unlimited permission to copy, distribute and modify it." |
| 31703 | |
| 31704 | ac_pwd='$ac_pwd' |
| 31705 | srcdir='$srcdir' |
| 31706 | INSTALL='$INSTALL' |
| 31707 | MKDIR_P='$MKDIR_P' |
| 31708 | AWK='$AWK' |
| 31709 | test -n "\$AWK" || AWK=awk |
| 31710 | _ACEOF |
| 31711 | |
| 31712 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31713 | # The default lists apply if the user does not specify any file. |
| 31714 | ac_need_defaults=: |
| 31715 | while test $# != 0 |
| 31716 | do |
| 31717 | case $1 in |
| 31718 | --*=*) |
| 31719 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 31720 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 31721 | ac_shift=: |
| 31722 | ;; |
| 31723 | *) |
| 31724 | ac_option=$1 |
| 31725 | ac_optarg=$2 |
| 31726 | ac_shift=shift |
| 31727 | ;; |
| 31728 | esac |
| 31729 | |
| 31730 | case $ac_option in |
| 31731 | # Handling of the options. |
| 31732 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 31733 | ac_cs_recheck=: ;; |
| 31734 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 31735 | $as_echo "$ac_cs_version"; exit ;; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 31736 | --config | --confi | --conf | --con | --co | --c ) |
| 31737 | $as_echo "$ac_cs_config"; exit ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31738 | --debug | --debu | --deb | --de | --d | -d ) |
| 31739 | debug=: ;; |
| 31740 | --file | --fil | --fi | --f ) |
| 31741 | $ac_shift |
| 31742 | case $ac_optarg in |
| 31743 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 31744 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31745 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31746 | ac_need_defaults=false;; |
| 31747 | --header | --heade | --head | --hea ) |
| 31748 | $ac_shift |
| 31749 | case $ac_optarg in |
| 31750 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 31751 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31752 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31753 | ac_need_defaults=false;; |
| 31754 | --he | --h) |
| 31755 | # Conflict between --help and --header |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31756 | as_fn_error "ambiguous option: \`$1' |
| 31757 | Try \`$0 --help' for more information.";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31758 | --help | --hel | -h ) |
| 31759 | $as_echo "$ac_cs_usage"; exit ;; |
| 31760 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 31761 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 31762 | ac_cs_silent=: ;; |
| 31763 | |
| 31764 | # This is an error. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31765 | -*) as_fn_error "unrecognized option: \`$1' |
| 31766 | Try \`$0 --help' for more information." ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31767 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31768 | *) as_fn_append ac_config_targets " $1" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31769 | ac_need_defaults=false ;; |
| 31770 | |
| 31771 | esac |
| 31772 | shift |
| 31773 | done |
| 31774 | |
| 31775 | ac_configure_extra_args= |
| 31776 | |
| 31777 | if $ac_cs_silent; then |
| 31778 | exec 6>/dev/null |
| 31779 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 31780 | fi |
| 31781 | |
| 31782 | _ACEOF |
| 31783 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31784 | if \$ac_cs_recheck; then |
| 31785 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 31786 | shift |
| 31787 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 31788 | CONFIG_SHELL='$SHELL' |
| 31789 | export CONFIG_SHELL |
| 31790 | exec "\$@" |
| 31791 | fi |
| 31792 | |
| 31793 | _ACEOF |
| 31794 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 31795 | exec 5>>config.log |
| 31796 | { |
| 31797 | echo |
| 31798 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 31799 | ## Running $as_me. ## |
| 31800 | _ASBOX |
| 31801 | $as_echo "$ac_log" |
| 31802 | } >&5 |
| 31803 | |
| 31804 | _ACEOF |
| 31805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 31806 | # |
| 31807 | # INIT-COMMANDS |
| 31808 | # |
| 31809 | PACKAGE="$PACKAGE" |
| 31810 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 31811 | |
| 31812 | |
| 31813 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 31814 | # if CDPATH is set. |
| 31815 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 31816 | |
| 31817 | sed_quote_subst='$sed_quote_subst' |
| 31818 | double_quote_subst='$double_quote_subst' |
| 31819 | delay_variable_subst='$delay_variable_subst' |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 31820 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 31821 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 31822 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31823 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31824 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31825 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 31826 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 31827 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 31828 | AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' |
| 31829 | DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31830 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31831 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 31832 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 31833 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 31834 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 31835 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 31836 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 31837 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 31838 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 31839 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 31840 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 31841 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 31842 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 31843 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 31844 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 31845 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 31846 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 31847 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31848 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31849 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31850 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31851 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 31852 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 31853 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 31854 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 31855 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 31856 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 31857 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31858 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31859 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31860 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 31861 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 31862 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 31863 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 31864 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 31865 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 31866 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 31867 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 31868 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 31869 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31870 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 31871 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 31872 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31873 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 31874 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 31875 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 31876 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 31877 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 31878 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31879 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 31880 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 31881 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 31882 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 31883 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 31884 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31885 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31886 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 31887 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 31888 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31889 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31890 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 31891 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31892 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31893 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31894 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31895 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31896 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31897 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 31898 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31899 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 31900 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31901 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 31902 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 31903 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 31904 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 31905 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 31906 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 31907 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 31908 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 31909 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 31910 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 31911 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 31912 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31913 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 31914 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 31915 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31916 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31917 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 31918 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 31919 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 31920 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 31921 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 31922 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 31923 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 31924 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31925 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31926 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31927 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31928 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31929 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 31930 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 31931 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 31932 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31933 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 31934 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 31935 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 31936 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 31937 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 31938 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 31939 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 31940 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 31941 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 31942 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 31943 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 31944 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 31945 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 31946 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31947 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31948 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31949 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31950 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31951 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31952 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31953 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31954 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31955 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31956 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31957 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31958 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31959 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31960 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31961 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31962 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31963 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31964 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31965 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31966 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31967 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31968 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31969 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31970 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31971 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31972 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31973 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31974 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31975 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31976 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31977 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31978 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31979 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31980 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31981 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31982 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31983 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31984 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31985 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31986 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31987 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31988 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31989 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31990 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31991 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 31992 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31993 | |
| 31994 | LTCC='$LTCC' |
| 31995 | LTCFLAGS='$LTCFLAGS' |
| 31996 | compiler='$compiler_DEFAULT' |
| 31997 | |
| 31998 | # Quote evaled strings. |
| 31999 | for var in SED \ |
| 32000 | GREP \ |
| 32001 | EGREP \ |
| 32002 | FGREP \ |
| 32003 | LD \ |
| 32004 | NM \ |
| 32005 | LN_S \ |
| 32006 | lt_SP2NL \ |
| 32007 | lt_NL2SP \ |
| 32008 | reload_flag \ |
| 32009 | deplibs_check_method \ |
| 32010 | file_magic_cmd \ |
| 32011 | AR \ |
| 32012 | AR_FLAGS \ |
| 32013 | STRIP \ |
| 32014 | RANLIB \ |
| 32015 | CC \ |
| 32016 | CFLAGS \ |
| 32017 | compiler \ |
| 32018 | lt_cv_sys_global_symbol_pipe \ |
| 32019 | lt_cv_sys_global_symbol_to_cdecl \ |
| 32020 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 32021 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 32022 | SHELL \ |
| 32023 | ECHO \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32024 | lt_prog_compiler_no_builtin_flag \ |
| 32025 | lt_prog_compiler_wl \ |
| 32026 | lt_prog_compiler_pic \ |
| 32027 | lt_prog_compiler_static \ |
| 32028 | lt_cv_prog_compiler_c_o \ |
| 32029 | need_locks \ |
| 32030 | DSYMUTIL \ |
| 32031 | NMEDIT \ |
| 32032 | LIPO \ |
| 32033 | OTOOL \ |
| 32034 | OTOOL64 \ |
| 32035 | shrext_cmds \ |
| 32036 | export_dynamic_flag_spec \ |
| 32037 | whole_archive_flag_spec \ |
| 32038 | compiler_needs_object \ |
| 32039 | with_gnu_ld \ |
| 32040 | allow_undefined_flag \ |
| 32041 | no_undefined_flag \ |
| 32042 | hardcode_libdir_flag_spec \ |
| 32043 | hardcode_libdir_flag_spec_ld \ |
| 32044 | hardcode_libdir_separator \ |
| 32045 | fix_srcfile_path \ |
| 32046 | exclude_expsyms \ |
| 32047 | include_expsyms \ |
| 32048 | file_list_spec \ |
| 32049 | variables_saved_for_relink \ |
| 32050 | libname_spec \ |
| 32051 | library_names_spec \ |
| 32052 | soname_spec \ |
| 32053 | finish_eval \ |
| 32054 | old_striplib \ |
| 32055 | striplib \ |
| 32056 | compiler_lib_search_dirs \ |
| 32057 | predep_objects \ |
| 32058 | postdep_objects \ |
| 32059 | predeps \ |
| 32060 | postdeps \ |
| 32061 | compiler_lib_search_path \ |
| 32062 | LD_CXX \ |
| 32063 | compiler_CXX \ |
| 32064 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 32065 | lt_prog_compiler_wl_CXX \ |
| 32066 | lt_prog_compiler_pic_CXX \ |
| 32067 | lt_prog_compiler_static_CXX \ |
| 32068 | lt_cv_prog_compiler_c_o_CXX \ |
| 32069 | export_dynamic_flag_spec_CXX \ |
| 32070 | whole_archive_flag_spec_CXX \ |
| 32071 | compiler_needs_object_CXX \ |
| 32072 | with_gnu_ld_CXX \ |
| 32073 | allow_undefined_flag_CXX \ |
| 32074 | no_undefined_flag_CXX \ |
| 32075 | hardcode_libdir_flag_spec_CXX \ |
| 32076 | hardcode_libdir_flag_spec_ld_CXX \ |
| 32077 | hardcode_libdir_separator_CXX \ |
| 32078 | fix_srcfile_path_CXX \ |
| 32079 | exclude_expsyms_CXX \ |
| 32080 | include_expsyms_CXX \ |
| 32081 | file_list_spec_CXX \ |
| 32082 | compiler_lib_search_dirs_CXX \ |
| 32083 | predep_objects_CXX \ |
| 32084 | postdep_objects_CXX \ |
| 32085 | predeps_CXX \ |
| 32086 | postdeps_CXX \ |
| 32087 | compiler_lib_search_path_CXX; do |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 32088 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32089 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 32090 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32091 | ;; |
| 32092 | *) |
| 32093 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 32094 | ;; |
| 32095 | esac |
| 32096 | done |
| 32097 | |
| 32098 | # Double-quote double-evaled strings. |
| 32099 | for var in reload_cmds \ |
| 32100 | old_postinstall_cmds \ |
| 32101 | old_postuninstall_cmds \ |
| 32102 | old_archive_cmds \ |
| 32103 | extract_expsyms_cmds \ |
| 32104 | old_archive_from_new_cmds \ |
| 32105 | old_archive_from_expsyms_cmds \ |
| 32106 | archive_cmds \ |
| 32107 | archive_expsym_cmds \ |
| 32108 | module_cmds \ |
| 32109 | module_expsym_cmds \ |
| 32110 | export_symbols_cmds \ |
| 32111 | prelink_cmds \ |
| 32112 | postinstall_cmds \ |
| 32113 | postuninstall_cmds \ |
| 32114 | finish_cmds \ |
| 32115 | sys_lib_search_path_spec \ |
| 32116 | sys_lib_dlsearch_path_spec \ |
| 32117 | old_archive_cmds_CXX \ |
| 32118 | old_archive_from_new_cmds_CXX \ |
| 32119 | old_archive_from_expsyms_cmds_CXX \ |
| 32120 | archive_cmds_CXX \ |
| 32121 | archive_expsym_cmds_CXX \ |
| 32122 | module_cmds_CXX \ |
| 32123 | module_expsym_cmds_CXX \ |
| 32124 | export_symbols_cmds_CXX \ |
| 32125 | prelink_cmds_CXX; do |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 32126 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32127 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 32128 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32129 | ;; |
| 32130 | *) |
| 32131 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 32132 | ;; |
| 32133 | esac |
| 32134 | done |
| 32135 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 32136 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 32137 | case \$lt_ECHO in |
| 32138 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 32139 | ;; |
| 32140 | esac |
| 32141 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32142 | ac_aux_dir='$ac_aux_dir' |
| 32143 | xsi_shell='$xsi_shell' |
| 32144 | lt_shell_append='$lt_shell_append' |
| 32145 | |
| 32146 | # See if we are running on zsh, and set the options which allow our |
| 32147 | # commands through without removal of \ escapes INIT. |
| 32148 | if test -n "\${ZSH_VERSION+set}" ; then |
| 32149 | setopt NO_GLOB_SUBST |
| 32150 | fi |
| 32151 | |
| 32152 | |
| 32153 | PACKAGE='$PACKAGE' |
| 32154 | VERSION='$VERSION' |
| 32155 | TIMESTAMP='$TIMESTAMP' |
| 32156 | RM='$RM' |
| 32157 | ofile='$ofile' |
| 32158 | |
| 32159 | |
| 32160 | |
| 32161 | |
| 32162 | |
| 32163 | |
| 32164 | _ACEOF |
| 32165 | |
| 32166 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32167 | |
| 32168 | # Handling of arguments. |
| 32169 | for ac_config_target in $ac_config_targets |
| 32170 | do |
| 32171 | case $ac_config_target in |
| 32172 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
| 32173 | "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;; |
| 32174 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 32175 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 32176 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 32177 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 32178 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
| 32179 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 32180 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 32181 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 32182 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 32183 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| 32184 | "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;; |
| 32185 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; |
| 32186 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| 32187 | "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;; |
| 32188 | "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;; |
| 32189 | "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;; |
| 32190 | "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;; |
| 32191 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 32192 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| 32193 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; |
| 32194 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| 32195 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| 32196 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 32197 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 32198 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 32199 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 32200 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 32201 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 32202 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 32203 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 32204 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 32205 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 32206 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 32207 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| 32208 | "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;; |
| 32209 | "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;; |
| 32210 | "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;; |
| 32211 | "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;; |
| 32212 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 32213 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 32214 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 32215 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| 32216 | "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;; |
| 32217 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| 32218 | "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;; |
| 32219 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 32220 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 32221 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32222 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32223 | esac |
| 32224 | done |
| 32225 | |
| 32226 | |
| 32227 | # If the user did not use the arguments to specify the items to instantiate, |
| 32228 | # then the envvar interface is used. Set only those that are not. |
| 32229 | # We use the long form for the default assignment because of an extremely |
| 32230 | # bizarre bug on SunOS 4.1.3. |
| 32231 | if $ac_need_defaults; then |
| 32232 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 32233 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 32234 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 32235 | fi |
| 32236 | |
| 32237 | # Have a temporary directory for convenience. Make it in the build tree |
| 32238 | # simply because there is no reason against having it here, and in addition, |
| 32239 | # creating and moving files from /tmp can sometimes cause problems. |
| 32240 | # Hook for its removal unless debugging. |
| 32241 | # Note that there is a small window in which the directory will not be cleaned: |
| 32242 | # after its creation but before its name has been assigned to `$tmp'. |
| 32243 | $debug || |
| 32244 | { |
| 32245 | tmp= |
| 32246 | trap 'exit_status=$? |
| 32247 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 32248 | ' 0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32249 | trap 'as_fn_exit 1' 1 2 13 15 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32250 | } |
| 32251 | # Create a (secure) tmp directory for tmp files. |
| 32252 | |
| 32253 | { |
| 32254 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 32255 | test -n "$tmp" && test -d "$tmp" |
| 32256 | } || |
| 32257 | { |
| 32258 | tmp=./conf$$-$RANDOM |
| 32259 | (umask 077 && mkdir "$tmp") |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32260 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32261 | |
| 32262 | # Set up the scripts for CONFIG_FILES section. |
| 32263 | # No need to generate them if there are no CONFIG_FILES. |
| 32264 | # This happens for instance with `./config.status config.h'. |
| 32265 | if test -n "$CONFIG_FILES"; then |
| 32266 | |
| 32267 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32268 | ac_cr=`echo X | tr X '\015'` |
| 32269 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 32270 | # But we know of no other shell where ac_cr would be empty at this |
| 32271 | # point, so we can use a bashism as a fallback. |
| 32272 | if test "x$ac_cr" = x; then |
| 32273 | eval ac_cr=\$\'\\r\' |
| 32274 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32275 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 32276 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32277 | ac_cs_awk_cr='\r' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32278 | else |
| 32279 | ac_cs_awk_cr=$ac_cr |
| 32280 | fi |
| 32281 | |
| 32282 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 32283 | _ACEOF |
| 32284 | |
| 32285 | |
| 32286 | { |
| 32287 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 32288 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 32289 | echo "_ACEOF" |
| 32290 | } >conf$$subs.sh || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32291 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32292 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 32293 | ac_delim='%!_!# ' |
| 32294 | for ac_last_try in false false false false false :; do |
| 32295 | . ./conf$$subs.sh || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32296 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32297 | |
| 32298 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 32299 | if test $ac_delim_n = $ac_delim_num; then |
| 32300 | break |
| 32301 | elif $ac_last_try; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32302 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32303 | else |
| 32304 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32305 | fi |
| 32306 | done |
| 32307 | rm -f conf$$subs.sh |
| 32308 | |
| 32309 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32310 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 32311 | _ACEOF |
| 32312 | sed -n ' |
| 32313 | h |
| 32314 | s/^/S["/; s/!.*/"]=/ |
| 32315 | p |
| 32316 | g |
| 32317 | s/^[^!]*!// |
| 32318 | :repl |
| 32319 | t repl |
| 32320 | s/'"$ac_delim"'$// |
| 32321 | t delim |
| 32322 | :nl |
| 32323 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 32324 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32325 | t more1 |
| 32326 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 32327 | p |
| 32328 | n |
| 32329 | b repl |
| 32330 | :more1 |
| 32331 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 32332 | p |
| 32333 | g |
| 32334 | s/.\{148\}// |
| 32335 | t nl |
| 32336 | :delim |
| 32337 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 32338 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32339 | t more2 |
| 32340 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 32341 | p |
| 32342 | b |
| 32343 | :more2 |
| 32344 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 32345 | p |
| 32346 | g |
| 32347 | s/.\{148\}// |
| 32348 | t delim |
| 32349 | ' <conf$$subs.awk | sed ' |
| 32350 | /^[^""]/{ |
| 32351 | N |
| 32352 | s/\n// |
| 32353 | } |
| 32354 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 32355 | rm -f conf$$subs.awk |
| 32356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32357 | _ACAWK |
| 32358 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 32359 | for (key in S) S_is_set[key] = 1 |
| 32360 | FS = "" |
| 32361 | |
| 32362 | } |
| 32363 | { |
| 32364 | line = $ 0 |
| 32365 | nfields = split(line, field, "@") |
| 32366 | substed = 0 |
| 32367 | len = length(field[1]) |
| 32368 | for (i = 2; i < nfields; i++) { |
| 32369 | key = field[i] |
| 32370 | keylen = length(key) |
| 32371 | if (S_is_set[key]) { |
| 32372 | value = S[key] |
| 32373 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 32374 | len += length(value) + length(field[++i]) |
| 32375 | substed = 1 |
| 32376 | } else |
| 32377 | len += 1 + keylen |
| 32378 | } |
| 32379 | |
| 32380 | print line |
| 32381 | } |
| 32382 | |
| 32383 | _ACAWK |
| 32384 | _ACEOF |
| 32385 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32386 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 32387 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 32388 | else |
| 32389 | cat |
| 32390 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32391 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32392 | _ACEOF |
| 32393 | |
| 32394 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 32395 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 32396 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 32397 | # (actually we leave an empty line to preserve line numbers). |
| 32398 | if test "x$srcdir" = x.; then |
| 32399 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 32400 | s/:*\$(srcdir):*/:/ |
| 32401 | s/:*\${srcdir}:*/:/ |
| 32402 | s/:*@srcdir@:*/:/ |
| 32403 | s/^\([^=]*=[ ]*\):*/\1/ |
| 32404 | s/:*$// |
| 32405 | s/^[^=]*=[ ]*$// |
| 32406 | }' |
| 32407 | fi |
| 32408 | |
| 32409 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32410 | fi # test -n "$CONFIG_FILES" |
| 32411 | |
| 32412 | # Set up the scripts for CONFIG_HEADERS section. |
| 32413 | # No need to generate them if there are no CONFIG_HEADERS. |
| 32414 | # This happens for instance with `./config.status Makefile'. |
| 32415 | if test -n "$CONFIG_HEADERS"; then |
| 32416 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 32417 | BEGIN { |
| 32418 | _ACEOF |
| 32419 | |
| 32420 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 32421 | # here-document in config.status, that substitutes the proper values into |
| 32422 | # config.h.in to produce config.h. |
| 32423 | |
| 32424 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 32425 | # handling of long lines. |
| 32426 | ac_delim='%!_!# ' |
| 32427 | for ac_last_try in false false :; do |
| 32428 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 32429 | if test -z "$ac_t"; then |
| 32430 | break |
| 32431 | elif $ac_last_try; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32432 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32433 | else |
| 32434 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 32435 | fi |
| 32436 | done |
| 32437 | |
| 32438 | # For the awk script, D is an array of macro values keyed by name, |
| 32439 | # likewise P contains macro parameters if any. Preserve backslash |
| 32440 | # newline sequences. |
| 32441 | |
| 32442 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 32443 | sed -n ' |
| 32444 | s/.\{148\}/&'"$ac_delim"'/g |
| 32445 | t rset |
| 32446 | :rset |
| 32447 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 32448 | t def |
| 32449 | d |
| 32450 | :def |
| 32451 | s/\\$// |
| 32452 | t bsnl |
| 32453 | s/["\\]/\\&/g |
| 32454 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 32455 | D["\1"]=" \3"/p |
| 32456 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 32457 | d |
| 32458 | :bsnl |
| 32459 | s/["\\]/\\&/g |
| 32460 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 32461 | D["\1"]=" \3\\\\\\n"\\/p |
| 32462 | t cont |
| 32463 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 32464 | t cont |
| 32465 | d |
| 32466 | :cont |
| 32467 | n |
| 32468 | s/.\{148\}/&'"$ac_delim"'/g |
| 32469 | t clear |
| 32470 | :clear |
| 32471 | s/\\$// |
| 32472 | t bsnlc |
| 32473 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 32474 | d |
| 32475 | :bsnlc |
| 32476 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 32477 | b cont |
| 32478 | ' <confdefs.h | sed ' |
| 32479 | s/'"$ac_delim"'/"\\\ |
| 32480 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 32481 | |
| 32482 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32483 | for (key in D) D_is_set[key] = 1 |
| 32484 | FS = "" |
| 32485 | } |
| 32486 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 32487 | line = \$ 0 |
| 32488 | split(line, arg, " ") |
| 32489 | if (arg[1] == "#") { |
| 32490 | defundef = arg[2] |
| 32491 | mac1 = arg[3] |
| 32492 | } else { |
| 32493 | defundef = substr(arg[1], 2) |
| 32494 | mac1 = arg[2] |
| 32495 | } |
| 32496 | split(mac1, mac2, "(") #) |
| 32497 | macro = mac2[1] |
| 32498 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 32499 | if (D_is_set[macro]) { |
| 32500 | # Preserve the white space surrounding the "#". |
| 32501 | print prefix "define", macro P[macro] D[macro] |
| 32502 | next |
| 32503 | } else { |
| 32504 | # Replace #undef with comments. This is necessary, for example, |
| 32505 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 32506 | # on some systems where configure will not decide to define it. |
| 32507 | if (defundef == "undef") { |
| 32508 | print "/*", prefix defundef, macro, "*/" |
| 32509 | next |
| 32510 | } |
| 32511 | } |
| 32512 | } |
| 32513 | { print } |
| 32514 | _ACAWK |
| 32515 | _ACEOF |
| 32516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32517 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32518 | fi # test -n "$CONFIG_HEADERS" |
| 32519 | |
| 32520 | |
| 32521 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 32522 | shift |
| 32523 | for ac_tag |
| 32524 | do |
| 32525 | case $ac_tag in |
| 32526 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 32527 | esac |
| 32528 | case $ac_mode$ac_tag in |
| 32529 | :[FHL]*:*);; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32530 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32531 | :[FH]-) ac_tag=-:-;; |
| 32532 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 32533 | esac |
| 32534 | ac_save_IFS=$IFS |
| 32535 | IFS=: |
| 32536 | set x $ac_tag |
| 32537 | IFS=$ac_save_IFS |
| 32538 | shift |
| 32539 | ac_file=$1 |
| 32540 | shift |
| 32541 | |
| 32542 | case $ac_mode in |
| 32543 | :L) ac_source=$1;; |
| 32544 | :[FH]) |
| 32545 | ac_file_inputs= |
| 32546 | for ac_f |
| 32547 | do |
| 32548 | case $ac_f in |
| 32549 | -) ac_f="$tmp/stdin";; |
| 32550 | *) # Look for the file first in the build tree, then in the source tree |
| 32551 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 32552 | # because $ac_f cannot contain `:'. |
| 32553 | test -f "$ac_f" || |
| 32554 | case $ac_f in |
| 32555 | [\\/$]*) false;; |
| 32556 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 32557 | esac || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32558 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32559 | esac |
| 32560 | 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] | 32561 | as_fn_append ac_file_inputs " '$ac_f'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32562 | done |
| 32563 | |
| 32564 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 32565 | # use $as_me), people would be surprised to read: |
| 32566 | # /* config.h. Generated by config.status. */ |
| 32567 | configure_input='Generated from '` |
| 32568 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 32569 | `' by configure.' |
| 32570 | if test x"$ac_file" != x-; then |
| 32571 | configure_input="$ac_file. $configure_input" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32572 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32573 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 32574 | fi |
| 32575 | # Neutralize special characters interpreted by sed in replacement strings. |
| 32576 | case $configure_input in #( |
| 32577 | *\&* | *\|* | *\\* ) |
| 32578 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 32579 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 32580 | *) ac_sed_conf_input=$configure_input;; |
| 32581 | esac |
| 32582 | |
| 32583 | case $ac_tag in |
| 32584 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32585 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32586 | esac |
| 32587 | ;; |
| 32588 | esac |
| 32589 | |
| 32590 | ac_dir=`$as_dirname -- "$ac_file" || |
| 32591 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32592 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 32593 | X"$ac_file" : 'X\(//\)$' \| \ |
| 32594 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 32595 | $as_echo X"$ac_file" | |
| 32596 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32597 | s//\1/ |
| 32598 | q |
| 32599 | } |
| 32600 | /^X\(\/\/\)[^/].*/{ |
| 32601 | s//\1/ |
| 32602 | q |
| 32603 | } |
| 32604 | /^X\(\/\/\)$/{ |
| 32605 | s//\1/ |
| 32606 | q |
| 32607 | } |
| 32608 | /^X\(\/\).*/{ |
| 32609 | s//\1/ |
| 32610 | q |
| 32611 | } |
| 32612 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32613 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32614 | ac_builddir=. |
| 32615 | |
| 32616 | case "$ac_dir" in |
| 32617 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 32618 | *) |
| 32619 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 32620 | # A ".." for each directory in $ac_dir_suffix. |
| 32621 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 32622 | case $ac_top_builddir_sub in |
| 32623 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 32624 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 32625 | esac ;; |
| 32626 | esac |
| 32627 | ac_abs_top_builddir=$ac_pwd |
| 32628 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 32629 | # for backward compatibility: |
| 32630 | ac_top_builddir=$ac_top_build_prefix |
| 32631 | |
| 32632 | case $srcdir in |
| 32633 | .) # We are building in place. |
| 32634 | ac_srcdir=. |
| 32635 | ac_top_srcdir=$ac_top_builddir_sub |
| 32636 | ac_abs_top_srcdir=$ac_pwd ;; |
| 32637 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 32638 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 32639 | ac_top_srcdir=$srcdir |
| 32640 | ac_abs_top_srcdir=$srcdir ;; |
| 32641 | *) # Relative name. |
| 32642 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 32643 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 32644 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 32645 | esac |
| 32646 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 32647 | |
| 32648 | |
| 32649 | case $ac_mode in |
| 32650 | :F) |
| 32651 | # |
| 32652 | # CONFIG_FILE |
| 32653 | # |
| 32654 | |
| 32655 | case $INSTALL in |
| 32656 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 32657 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 32658 | esac |
| 32659 | ac_MKDIR_P=$MKDIR_P |
| 32660 | case $MKDIR_P in |
| 32661 | [\\/$]* | ?:[\\/]* ) ;; |
| 32662 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 32663 | esac |
| 32664 | _ACEOF |
| 32665 | |
| 32666 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32667 | # If the template does not know about datarootdir, expand it. |
| 32668 | # FIXME: This hack should be removed a few years after 2.60. |
| 32669 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32670 | ac_sed_dataroot=' |
| 32671 | /datarootdir/ { |
| 32672 | p |
| 32673 | q |
| 32674 | } |
| 32675 | /@datadir@/p |
| 32676 | /@docdir@/p |
| 32677 | /@infodir@/p |
| 32678 | /@localedir@/p |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32679 | /@mandir@/p' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32680 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 32681 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 32682 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32683 | { $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] | 32684 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 32685 | _ACEOF |
| 32686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32687 | ac_datarootdir_hack=' |
| 32688 | s&@datadir@&$datadir&g |
| 32689 | s&@docdir@&$docdir&g |
| 32690 | s&@infodir@&$infodir&g |
| 32691 | s&@localedir@&$localedir&g |
| 32692 | s&@mandir@&$mandir&g |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32693 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32694 | esac |
| 32695 | _ACEOF |
| 32696 | |
| 32697 | # Neutralize VPATH when `$srcdir' = `.'. |
| 32698 | # Shell code in configure.ac might set extrasub. |
| 32699 | # FIXME: do we really want to maintain this feature? |
| 32700 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 32701 | ac_sed_extra="$ac_vpsub |
| 32702 | $extrasub |
| 32703 | _ACEOF |
| 32704 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 32705 | :t |
| 32706 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 32707 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 32708 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 32709 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 32710 | s&@srcdir@&$ac_srcdir&;t t |
| 32711 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 32712 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 32713 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 32714 | s&@builddir@&$ac_builddir&;t t |
| 32715 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 32716 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 32717 | s&@INSTALL@&$ac_INSTALL&;t t |
| 32718 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 32719 | $ac_datarootdir_hack |
| 32720 | " |
| 32721 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32722 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32723 | |
| 32724 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 32725 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 32726 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32728 | which seems to be undefined. Please make sure it is defined." >&5 |
| 32729 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 32730 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 32731 | |
| 32732 | rm -f "$tmp/stdin" |
| 32733 | case $ac_file in |
| 32734 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 32735 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 32736 | esac \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32737 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32738 | ;; |
| 32739 | :H) |
| 32740 | # |
| 32741 | # CONFIG_HEADER |
| 32742 | # |
| 32743 | if test x"$ac_file" != x-; then |
| 32744 | { |
| 32745 | $as_echo "/* $configure_input */" \ |
| 32746 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 32747 | } >"$tmp/config.h" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32748 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32749 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32750 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32751 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 32752 | else |
| 32753 | rm -f "$ac_file" |
| 32754 | mv "$tmp/config.h" "$ac_file" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32755 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32756 | fi |
| 32757 | else |
| 32758 | $as_echo "/* $configure_input */" \ |
| 32759 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32760 | || as_fn_error "could not create -" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32761 | fi |
| 32762 | # Compute "$ac_file"'s index in $config_headers. |
| 32763 | _am_arg="$ac_file" |
| 32764 | _am_stamp_count=1 |
| 32765 | for _am_header in $config_headers :; do |
| 32766 | case $_am_header in |
| 32767 | $_am_arg | $_am_arg:* ) |
| 32768 | break ;; |
| 32769 | * ) |
| 32770 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 32771 | esac |
| 32772 | done |
| 32773 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 32774 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32775 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 32776 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 32777 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 32778 | $as_echo X"$_am_arg" | |
| 32779 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32780 | s//\1/ |
| 32781 | q |
| 32782 | } |
| 32783 | /^X\(\/\/\)[^/].*/{ |
| 32784 | s//\1/ |
| 32785 | q |
| 32786 | } |
| 32787 | /^X\(\/\/\)$/{ |
| 32788 | s//\1/ |
| 32789 | q |
| 32790 | } |
| 32791 | /^X\(\/\).*/{ |
| 32792 | s//\1/ |
| 32793 | q |
| 32794 | } |
| 32795 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 32796 | ;; |
| 32797 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32798 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32799 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 32800 | ;; |
| 32801 | esac |
| 32802 | |
| 32803 | |
| 32804 | case $ac_file$ac_mode in |
| 32805 | "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h` |
| 32806 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 32807 | ac_prefix_conf_PKG=`echo MagickCore` |
| 32808 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 32809 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 32810 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 32811 | if test ".$ac_prefix_conf_INP" = "."; then |
| 32812 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 32813 | case "$ac_file" in |
| 32814 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 32815 | *) |
| 32816 | esac |
| 32817 | test ".$ac_prefix_conf_INP" != "." && break |
| 32818 | done |
| 32819 | fi |
| 32820 | if test ".$ac_prefix_conf_INP" = "."; then |
| 32821 | case "$ac_prefix_conf_OUT" in |
| 32822 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 32823 | ;; |
| 32824 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 32825 | ;; |
| 32826 | *) ac_prefix_conf_INP=config.h |
| 32827 | ;; |
| 32828 | esac |
| 32829 | fi |
| 32830 | if test -z "$ac_prefix_conf_PKG" ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32831 | as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32832 | else |
| 32833 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 32834 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 32835 | fi fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32836 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32837 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 32838 | if test -f $ac_prefix_conf_INP ; then |
| 32839 | echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 32840 | echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 32841 | echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix |
| 32842 | echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix |
| 32843 | echo "#endif/" >>conftest.prefix |
| 32844 | echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix |
| 32845 | echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix |
| 32846 | echo "#endif/" >> conftest.prefix |
| 32847 | # now executing _script on _DEF input to create _OUT output file |
| 32848 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 32849 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 32850 | echo ' ' >>$tmp/pconfig.h |
| 32851 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 32852 | |
| 32853 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 32854 | echo ' ' >>$tmp/pconfig.h |
| 32855 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 32856 | echo "#endif" >>$tmp/pconfig.h |
| 32857 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32858 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32859 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 32860 | else |
| 32861 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 32862 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32863 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 32864 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 32865 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 32866 | $as_echo X"$ac_prefix_conf_OUT" | |
| 32867 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32868 | s//\1/ |
| 32869 | q |
| 32870 | } |
| 32871 | /^X\(\/\/\)[^/].*/{ |
| 32872 | s//\1/ |
| 32873 | q |
| 32874 | } |
| 32875 | /^X\(\/\/\)$/{ |
| 32876 | s//\1/ |
| 32877 | q |
| 32878 | } |
| 32879 | /^X\(\/\).*/{ |
| 32880 | s//\1/ |
| 32881 | q |
| 32882 | } |
| 32883 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32884 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32885 | rm -f "$ac_prefix_conf_OUT" |
| 32886 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 32887 | fi |
| 32888 | cp conftest.prefix _configs.sed |
| 32889 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32890 | as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32891 | fi |
| 32892 | rm -f conftest.* |
| 32893 | fi |
| 32894 | ;; |
| 32895 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 32896 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 32897 | # are listed without --file. Let's play safe and only enable the eval |
| 32898 | # if we detect the quoting. |
| 32899 | case $CONFIG_FILES in |
| 32900 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 32901 | *) set x $CONFIG_FILES ;; |
| 32902 | esac |
| 32903 | shift |
| 32904 | for mf |
| 32905 | do |
| 32906 | # Strip MF so we end up with the name of the file. |
| 32907 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 32908 | # Check whether this is an Automake generated Makefile or not. |
| 32909 | # We used to match only the files named `Makefile.in', but |
| 32910 | # some people rename them; so instead we look at the file content. |
| 32911 | # Grep'ing the first line is not enough: some people post-process |
| 32912 | # each Makefile.in and add a new line on top of each file to say so. |
| 32913 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 32914 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 32915 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 32916 | dirpart=`$as_dirname -- "$mf" || |
| 32917 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32918 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 32919 | X"$mf" : 'X\(//\)$' \| \ |
| 32920 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 32921 | $as_echo X"$mf" | |
| 32922 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32923 | s//\1/ |
| 32924 | q |
| 32925 | } |
| 32926 | /^X\(\/\/\)[^/].*/{ |
| 32927 | s//\1/ |
| 32928 | q |
| 32929 | } |
| 32930 | /^X\(\/\/\)$/{ |
| 32931 | s//\1/ |
| 32932 | q |
| 32933 | } |
| 32934 | /^X\(\/\).*/{ |
| 32935 | s//\1/ |
| 32936 | q |
| 32937 | } |
| 32938 | s/.*/./; q'` |
| 32939 | else |
| 32940 | continue |
| 32941 | fi |
| 32942 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 32943 | # from the Makefile without running `make'. |
| 32944 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 32945 | test -z "$DEPDIR" && continue |
| 32946 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 32947 | test -z "am__include" && continue |
| 32948 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 32949 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 32950 | U=`sed -n 's/^U = //p' < "$mf"` |
| 32951 | # Find all dependency output files, they are included files with |
| 32952 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 32953 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 32954 | # expansion. |
| 32955 | for file in `sed -n " |
| 32956 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 32957 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 32958 | # Make sure the directory exists. |
| 32959 | test -f "$dirpart/$file" && continue |
| 32960 | fdir=`$as_dirname -- "$file" || |
| 32961 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 32962 | X"$file" : 'X\(//\)[^/]' \| \ |
| 32963 | X"$file" : 'X\(//\)$' \| \ |
| 32964 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 32965 | $as_echo X"$file" | |
| 32966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 32967 | s//\1/ |
| 32968 | q |
| 32969 | } |
| 32970 | /^X\(\/\/\)[^/].*/{ |
| 32971 | s//\1/ |
| 32972 | q |
| 32973 | } |
| 32974 | /^X\(\/\/\)$/{ |
| 32975 | s//\1/ |
| 32976 | q |
| 32977 | } |
| 32978 | /^X\(\/\).*/{ |
| 32979 | s//\1/ |
| 32980 | q |
| 32981 | } |
| 32982 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32983 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32984 | # echo "creating $dirpart/$file" |
| 32985 | echo '# dummy' > "$dirpart/$file" |
| 32986 | done |
| 32987 | done |
| 32988 | } |
| 32989 | ;; |
| 32990 | "libtool":C) |
| 32991 | |
| 32992 | # See if we are running on zsh, and set the options which allow our |
| 32993 | # commands through without removal of \ escapes. |
| 32994 | if test -n "${ZSH_VERSION+set}" ; then |
| 32995 | setopt NO_GLOB_SUBST |
| 32996 | fi |
| 32997 | |
| 32998 | cfgfile="${ofile}T" |
| 32999 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 33000 | $RM "$cfgfile" |
| 33001 | |
| 33002 | cat <<_LT_EOF >> "$cfgfile" |
| 33003 | #! $SHELL |
| 33004 | |
| 33005 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 33006 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 33007 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 33008 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 33009 | # |
| 33010 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33011 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33012 | # Written by Gordon Matzigkeit, 1996 |
| 33013 | # |
| 33014 | # This file is part of GNU Libtool. |
| 33015 | # |
| 33016 | # GNU Libtool is free software; you can redistribute it and/or |
| 33017 | # modify it under the terms of the GNU General Public License as |
| 33018 | # published by the Free Software Foundation; either version 2 of |
| 33019 | # the License, or (at your option) any later version. |
| 33020 | # |
| 33021 | # As a special exception to the GNU General Public License, |
| 33022 | # if you distribute this file as part of a program or library that |
| 33023 | # is built using GNU Libtool, you may include this file under the |
| 33024 | # same distribution terms that you use for the rest of that program. |
| 33025 | # |
| 33026 | # GNU Libtool is distributed in the hope that it will be useful, |
| 33027 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 33028 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 33029 | # GNU General Public License for more details. |
| 33030 | # |
| 33031 | # You should have received a copy of the GNU General Public License |
| 33032 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 33033 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 33034 | # obtained by writing to the Free Software Foundation, Inc., |
| 33035 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 33036 | |
| 33037 | |
| 33038 | # The names of the tagged configurations supported by this script. |
| 33039 | available_tags="CXX " |
| 33040 | |
| 33041 | # ### BEGIN LIBTOOL CONFIG |
| 33042 | |
| 33043 | # A sed program that does not truncate output. |
| 33044 | SED=$lt_SED |
| 33045 | |
| 33046 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 33047 | Xsed="\$SED -e 1s/^X//" |
| 33048 | |
| 33049 | # A grep program that handles long lines. |
| 33050 | GREP=$lt_GREP |
| 33051 | |
| 33052 | # An ERE matcher. |
| 33053 | EGREP=$lt_EGREP |
| 33054 | |
| 33055 | # A literal string matcher. |
| 33056 | FGREP=$lt_FGREP |
| 33057 | |
| 33058 | # Which release of libtool.m4 was used? |
| 33059 | macro_version=$macro_version |
| 33060 | macro_revision=$macro_revision |
| 33061 | |
| 33062 | # Assembler program. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33063 | AS=$AS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33064 | |
| 33065 | # DLL creation program. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33066 | DLLTOOL=$DLLTOOL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33067 | |
| 33068 | # Object dumper program. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33069 | OBJDUMP=$OBJDUMP |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33070 | |
| 33071 | # Whether or not to build shared libraries. |
| 33072 | build_libtool_libs=$enable_shared |
| 33073 | |
| 33074 | # Whether or not to build static libraries. |
| 33075 | build_old_libs=$enable_static |
| 33076 | |
| 33077 | # What type of objects to build. |
| 33078 | pic_mode=$pic_mode |
| 33079 | |
| 33080 | # Whether or not to optimize for fast installation. |
| 33081 | fast_install=$enable_fast_install |
| 33082 | |
| 33083 | # The host system. |
| 33084 | host_alias=$host_alias |
| 33085 | host=$host |
| 33086 | host_os=$host_os |
| 33087 | |
| 33088 | # The build system. |
| 33089 | build_alias=$build_alias |
| 33090 | build=$build |
| 33091 | build_os=$build_os |
| 33092 | |
| 33093 | # A BSD- or MS-compatible name lister. |
| 33094 | NM=$lt_NM |
| 33095 | |
| 33096 | # Whether we need soft or hard links. |
| 33097 | LN_S=$lt_LN_S |
| 33098 | |
| 33099 | # What is the maximum length of a command? |
| 33100 | max_cmd_len=$max_cmd_len |
| 33101 | |
| 33102 | # Object file suffix (normally "o"). |
| 33103 | objext=$ac_objext |
| 33104 | |
| 33105 | # Executable file suffix (normally ""). |
| 33106 | exeext=$exeext |
| 33107 | |
| 33108 | # whether the shell understands "unset". |
| 33109 | lt_unset=$lt_unset |
| 33110 | |
| 33111 | # turn spaces into newlines. |
| 33112 | SP2NL=$lt_lt_SP2NL |
| 33113 | |
| 33114 | # turn newlines into spaces. |
| 33115 | NL2SP=$lt_lt_NL2SP |
| 33116 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33117 | # How to create reloadable object files. |
| 33118 | reload_flag=$lt_reload_flag |
| 33119 | reload_cmds=$lt_reload_cmds |
| 33120 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33121 | # Method to check whether dependent libraries are shared objects. |
| 33122 | deplibs_check_method=$lt_deplibs_check_method |
| 33123 | |
| 33124 | # Command to use when deplibs_check_method == "file_magic". |
| 33125 | file_magic_cmd=$lt_file_magic_cmd |
| 33126 | |
| 33127 | # The archiver. |
| 33128 | AR=$lt_AR |
| 33129 | AR_FLAGS=$lt_AR_FLAGS |
| 33130 | |
| 33131 | # A symbol stripping program. |
| 33132 | STRIP=$lt_STRIP |
| 33133 | |
| 33134 | # Commands used to install an old-style archive. |
| 33135 | RANLIB=$lt_RANLIB |
| 33136 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 33137 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 33138 | |
| 33139 | # A C compiler. |
| 33140 | LTCC=$lt_CC |
| 33141 | |
| 33142 | # LTCC compiler flags. |
| 33143 | LTCFLAGS=$lt_CFLAGS |
| 33144 | |
| 33145 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 33146 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 33147 | |
| 33148 | # Transform the output of nm in a proper C declaration. |
| 33149 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 33150 | |
| 33151 | # Transform the output of nm in a C name address pair. |
| 33152 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 33153 | |
| 33154 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 33155 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 33156 | |
| 33157 | # The name of the directory that contains temporary libtool files. |
| 33158 | objdir=$objdir |
| 33159 | |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33160 | # Shell to use when invoking shell scripts. |
| 33161 | SHELL=$lt_SHELL |
| 33162 | |
| 33163 | # An echo program that does not interpret backslashes. |
| 33164 | ECHO=$lt_ECHO |
| 33165 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33166 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 33167 | MAGIC_CMD=$MAGIC_CMD |
| 33168 | |
| 33169 | # Must we lock files when doing compilation? |
| 33170 | need_locks=$lt_need_locks |
| 33171 | |
| 33172 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 33173 | DSYMUTIL=$lt_DSYMUTIL |
| 33174 | |
| 33175 | # Tool to change global to local symbols on Mac OS X. |
| 33176 | NMEDIT=$lt_NMEDIT |
| 33177 | |
| 33178 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 33179 | LIPO=$lt_LIPO |
| 33180 | |
| 33181 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 33182 | OTOOL=$lt_OTOOL |
| 33183 | |
| 33184 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 33185 | OTOOL64=$lt_OTOOL64 |
| 33186 | |
| 33187 | # Old archive suffix (normally "a"). |
| 33188 | libext=$libext |
| 33189 | |
| 33190 | # Shared library suffix (normally ".so"). |
| 33191 | shrext_cmds=$lt_shrext_cmds |
| 33192 | |
| 33193 | # The commands to extract the exported symbol list from a shared archive. |
| 33194 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 33195 | |
| 33196 | # Variables whose values should be saved in libtool wrapper scripts and |
| 33197 | # restored at link time. |
| 33198 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 33199 | |
| 33200 | # Do we need the "lib" prefix for modules? |
| 33201 | need_lib_prefix=$need_lib_prefix |
| 33202 | |
| 33203 | # Do we need a version for libraries? |
| 33204 | need_version=$need_version |
| 33205 | |
| 33206 | # Library versioning type. |
| 33207 | version_type=$version_type |
| 33208 | |
| 33209 | # Shared library runtime path variable. |
| 33210 | runpath_var=$runpath_var |
| 33211 | |
| 33212 | # Shared library path variable. |
| 33213 | shlibpath_var=$shlibpath_var |
| 33214 | |
| 33215 | # Is shlibpath searched before the hard-coded library search path? |
| 33216 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 33217 | |
| 33218 | # Format of library name prefix. |
| 33219 | libname_spec=$lt_libname_spec |
| 33220 | |
| 33221 | # List of archive names. First name is the real one, the rest are links. |
| 33222 | # The last name is the one that the linker finds with -lNAME |
| 33223 | library_names_spec=$lt_library_names_spec |
| 33224 | |
| 33225 | # The coded name of the library, if different from the real name. |
| 33226 | soname_spec=$lt_soname_spec |
| 33227 | |
| 33228 | # Command to use after installation of a shared archive. |
| 33229 | postinstall_cmds=$lt_postinstall_cmds |
| 33230 | |
| 33231 | # Command to use after uninstallation of a shared archive. |
| 33232 | postuninstall_cmds=$lt_postuninstall_cmds |
| 33233 | |
| 33234 | # Commands used to finish a libtool library installation in a directory. |
| 33235 | finish_cmds=$lt_finish_cmds |
| 33236 | |
| 33237 | # As "finish_cmds", except a single script fragment to be evaled but |
| 33238 | # not shown. |
| 33239 | finish_eval=$lt_finish_eval |
| 33240 | |
| 33241 | # Whether we should hardcode library paths into libraries. |
| 33242 | hardcode_into_libs=$hardcode_into_libs |
| 33243 | |
| 33244 | # Compile-time system search path for libraries. |
| 33245 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 33246 | |
| 33247 | # Run-time system search path for libraries. |
| 33248 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 33249 | |
| 33250 | # Whether dlopen is supported. |
| 33251 | dlopen_support=$enable_dlopen |
| 33252 | |
| 33253 | # Whether dlopen of programs is supported. |
| 33254 | dlopen_self=$enable_dlopen_self |
| 33255 | |
| 33256 | # Whether dlopen of statically linked programs is supported. |
| 33257 | dlopen_self_static=$enable_dlopen_self_static |
| 33258 | |
| 33259 | # Commands to strip libraries. |
| 33260 | old_striplib=$lt_old_striplib |
| 33261 | striplib=$lt_striplib |
| 33262 | |
| 33263 | |
| 33264 | # The linker used to build libraries. |
| 33265 | LD=$lt_LD |
| 33266 | |
| 33267 | # Commands used to build an old-style archive. |
| 33268 | old_archive_cmds=$lt_old_archive_cmds |
| 33269 | |
| 33270 | # A language specific compiler. |
| 33271 | CC=$lt_compiler |
| 33272 | |
| 33273 | # Is the compiler the GNU compiler? |
| 33274 | with_gcc=$GCC |
| 33275 | |
| 33276 | # Compiler flag to turn off builtin functions. |
| 33277 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 33278 | |
| 33279 | # How to pass a linker flag through the compiler. |
| 33280 | wl=$lt_lt_prog_compiler_wl |
| 33281 | |
| 33282 | # Additional compiler flags for building library objects. |
| 33283 | pic_flag=$lt_lt_prog_compiler_pic |
| 33284 | |
| 33285 | # Compiler flag to prevent dynamic linking. |
| 33286 | link_static_flag=$lt_lt_prog_compiler_static |
| 33287 | |
| 33288 | # Does compiler simultaneously support -c and -o options? |
| 33289 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 33290 | |
| 33291 | # Whether or not to add -lc for building shared libraries. |
| 33292 | build_libtool_need_lc=$archive_cmds_need_lc |
| 33293 | |
| 33294 | # Whether or not to disallow shared libs when runtime libs are static. |
| 33295 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 33296 | |
| 33297 | # Compiler flag to allow reflexive dlopens. |
| 33298 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 33299 | |
| 33300 | # Compiler flag to generate shared objects directly from archives. |
| 33301 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 33302 | |
| 33303 | # Whether the compiler copes with passing no objects directly. |
| 33304 | compiler_needs_object=$lt_compiler_needs_object |
| 33305 | |
| 33306 | # Create an old-style archive from a shared archive. |
| 33307 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 33308 | |
| 33309 | # Create a temporary old-style archive to link instead of a shared archive. |
| 33310 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 33311 | |
| 33312 | # Commands used to build a shared archive. |
| 33313 | archive_cmds=$lt_archive_cmds |
| 33314 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 33315 | |
| 33316 | # Commands used to build a loadable module if different from building |
| 33317 | # a shared archive. |
| 33318 | module_cmds=$lt_module_cmds |
| 33319 | module_expsym_cmds=$lt_module_expsym_cmds |
| 33320 | |
| 33321 | # Whether we are building with GNU ld or not. |
| 33322 | with_gnu_ld=$lt_with_gnu_ld |
| 33323 | |
| 33324 | # Flag that allows shared libraries with undefined symbols to be built. |
| 33325 | allow_undefined_flag=$lt_allow_undefined_flag |
| 33326 | |
| 33327 | # Flag that enforces no undefined symbols. |
| 33328 | no_undefined_flag=$lt_no_undefined_flag |
| 33329 | |
| 33330 | # Flag to hardcode \$libdir into a binary during linking. |
| 33331 | # This must work even if \$libdir does not exist |
| 33332 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 33333 | |
| 33334 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 33335 | # during linking. This must work even if \$libdir does not exist. |
| 33336 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 33337 | |
| 33338 | # Whether we need a single "-rpath" flag with a separated argument. |
| 33339 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 33340 | |
| 33341 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33342 | # DIR into the resulting binary. |
| 33343 | hardcode_direct=$hardcode_direct |
| 33344 | |
| 33345 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33346 | # DIR into the resulting binary and the resulting library dependency is |
| 33347 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 33348 | # library is relocated. |
| 33349 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 33350 | |
| 33351 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 33352 | # into the resulting binary. |
| 33353 | hardcode_minus_L=$hardcode_minus_L |
| 33354 | |
| 33355 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 33356 | # into the resulting binary. |
| 33357 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 33358 | |
| 33359 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 33360 | # into the library and all subsequent libraries and executables linked |
| 33361 | # against it. |
| 33362 | hardcode_automatic=$hardcode_automatic |
| 33363 | |
| 33364 | # Set to yes if linker adds runtime paths of dependent libraries |
| 33365 | # to runtime path list. |
| 33366 | inherit_rpath=$inherit_rpath |
| 33367 | |
| 33368 | # Whether libtool must link a program against all its dependency libraries. |
| 33369 | link_all_deplibs=$link_all_deplibs |
| 33370 | |
| 33371 | # Fix the shell variable \$srcfile for the compiler. |
| 33372 | fix_srcfile_path=$lt_fix_srcfile_path |
| 33373 | |
| 33374 | # Set to "yes" if exported symbols are required. |
| 33375 | always_export_symbols=$always_export_symbols |
| 33376 | |
| 33377 | # The commands to list exported symbols. |
| 33378 | export_symbols_cmds=$lt_export_symbols_cmds |
| 33379 | |
| 33380 | # Symbols that should not be listed in the preloaded symbols. |
| 33381 | exclude_expsyms=$lt_exclude_expsyms |
| 33382 | |
| 33383 | # Symbols that must always be exported. |
| 33384 | include_expsyms=$lt_include_expsyms |
| 33385 | |
| 33386 | # Commands necessary for linking programs (against libraries) with templates. |
| 33387 | prelink_cmds=$lt_prelink_cmds |
| 33388 | |
| 33389 | # Specify filename containing input files. |
| 33390 | file_list_spec=$lt_file_list_spec |
| 33391 | |
| 33392 | # How to hardcode a shared library path into an executable. |
| 33393 | hardcode_action=$hardcode_action |
| 33394 | |
| 33395 | # The directories searched by this compiler when creating a shared library. |
| 33396 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 33397 | |
| 33398 | # Dependencies to place before and after the objects being linked to |
| 33399 | # create a shared library. |
| 33400 | predep_objects=$lt_predep_objects |
| 33401 | postdep_objects=$lt_postdep_objects |
| 33402 | predeps=$lt_predeps |
| 33403 | postdeps=$lt_postdeps |
| 33404 | |
| 33405 | # The library search path used internally by the compiler when linking |
| 33406 | # a shared library. |
| 33407 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 33408 | |
| 33409 | # ### END LIBTOOL CONFIG |
| 33410 | |
| 33411 | _LT_EOF |
| 33412 | |
| 33413 | case $host_os in |
| 33414 | aix3*) |
| 33415 | cat <<\_LT_EOF >> "$cfgfile" |
| 33416 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 33417 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 33418 | # vanish in a puff of smoke. |
| 33419 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 33420 | COLLECT_NAMES= |
| 33421 | export COLLECT_NAMES |
| 33422 | fi |
| 33423 | _LT_EOF |
| 33424 | ;; |
| 33425 | esac |
| 33426 | |
| 33427 | |
| 33428 | ltmain="$ac_aux_dir/ltmain.sh" |
| 33429 | |
| 33430 | |
| 33431 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 33432 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 33433 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 33434 | # is reportedly fixed, but why not run on old versions too? |
| 33435 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 33436 | || (rm -f "$cfgfile"; exit 1) |
| 33437 | |
| 33438 | case $xsi_shell in |
| 33439 | yes) |
| 33440 | cat << \_LT_EOF >> "$cfgfile" |
| 33441 | |
| 33442 | # func_dirname file append nondir_replacement |
| 33443 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 33444 | # otherwise set result to NONDIR_REPLACEMENT. |
| 33445 | func_dirname () |
| 33446 | { |
| 33447 | case ${1} in |
| 33448 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 33449 | * ) func_dirname_result="${3}" ;; |
| 33450 | esac |
| 33451 | } |
| 33452 | |
| 33453 | # func_basename file |
| 33454 | func_basename () |
| 33455 | { |
| 33456 | func_basename_result="${1##*/}" |
| 33457 | } |
| 33458 | |
| 33459 | # func_dirname_and_basename file append nondir_replacement |
| 33460 | # perform func_basename and func_dirname in a single function |
| 33461 | # call: |
| 33462 | # dirname: Compute the dirname of FILE. If nonempty, |
| 33463 | # add APPEND to the result, otherwise set result |
| 33464 | # to NONDIR_REPLACEMENT. |
| 33465 | # value returned in "$func_dirname_result" |
| 33466 | # basename: Compute filename of FILE. |
| 33467 | # value retuned in "$func_basename_result" |
| 33468 | # Implementation must be kept synchronized with func_dirname |
| 33469 | # and func_basename. For efficiency, we do not delegate to |
| 33470 | # those functions but instead duplicate the functionality here. |
| 33471 | func_dirname_and_basename () |
| 33472 | { |
| 33473 | case ${1} in |
| 33474 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 33475 | * ) func_dirname_result="${3}" ;; |
| 33476 | esac |
| 33477 | func_basename_result="${1##*/}" |
| 33478 | } |
| 33479 | |
| 33480 | # func_stripname prefix suffix name |
| 33481 | # strip PREFIX and SUFFIX off of NAME. |
| 33482 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 33483 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 33484 | # dot (in which case that matches only a dot). |
| 33485 | func_stripname () |
| 33486 | { |
| 33487 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 33488 | # positional parameters, so assign one to ordinary parameter first. |
| 33489 | func_stripname_result=${3} |
| 33490 | func_stripname_result=${func_stripname_result#"${1}"} |
| 33491 | func_stripname_result=${func_stripname_result%"${2}"} |
| 33492 | } |
| 33493 | |
| 33494 | # func_opt_split |
| 33495 | func_opt_split () |
| 33496 | { |
| 33497 | func_opt_split_opt=${1%%=*} |
| 33498 | func_opt_split_arg=${1#*=} |
| 33499 | } |
| 33500 | |
| 33501 | # func_lo2o object |
| 33502 | func_lo2o () |
| 33503 | { |
| 33504 | case ${1} in |
| 33505 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 33506 | *) func_lo2o_result=${1} ;; |
| 33507 | esac |
| 33508 | } |
| 33509 | |
| 33510 | # func_xform libobj-or-source |
| 33511 | func_xform () |
| 33512 | { |
| 33513 | func_xform_result=${1%.*}.lo |
| 33514 | } |
| 33515 | |
| 33516 | # func_arith arithmetic-term... |
| 33517 | func_arith () |
| 33518 | { |
| 33519 | func_arith_result=$(( $* )) |
| 33520 | } |
| 33521 | |
| 33522 | # func_len string |
| 33523 | # STRING may not start with a hyphen. |
| 33524 | func_len () |
| 33525 | { |
| 33526 | func_len_result=${#1} |
| 33527 | } |
| 33528 | |
| 33529 | _LT_EOF |
| 33530 | ;; |
| 33531 | *) # Bourne compatible functions. |
| 33532 | cat << \_LT_EOF >> "$cfgfile" |
| 33533 | |
| 33534 | # func_dirname file append nondir_replacement |
| 33535 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 33536 | # otherwise set result to NONDIR_REPLACEMENT. |
| 33537 | func_dirname () |
| 33538 | { |
| 33539 | # Extract subdirectory from the argument. |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33540 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33541 | if test "X$func_dirname_result" = "X${1}"; then |
| 33542 | func_dirname_result="${3}" |
| 33543 | else |
| 33544 | func_dirname_result="$func_dirname_result${2}" |
| 33545 | fi |
| 33546 | } |
| 33547 | |
| 33548 | # func_basename file |
| 33549 | func_basename () |
| 33550 | { |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33551 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33552 | } |
| 33553 | |
| 33554 | |
| 33555 | # func_stripname prefix suffix name |
| 33556 | # strip PREFIX and SUFFIX off of NAME. |
| 33557 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 33558 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 33559 | # dot (in which case that matches only a dot). |
| 33560 | # func_strip_suffix prefix name |
| 33561 | func_stripname () |
| 33562 | { |
| 33563 | case ${2} in |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33564 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 33565 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 33566 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 33567 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33568 | esac |
| 33569 | } |
| 33570 | |
| 33571 | # sed scripts: |
| 33572 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 33573 | my_sed_long_arg='1s/^-[^=]*=//' |
| 33574 | |
| 33575 | # func_opt_split |
| 33576 | func_opt_split () |
| 33577 | { |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33578 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 33579 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33580 | } |
| 33581 | |
| 33582 | # func_lo2o object |
| 33583 | func_lo2o () |
| 33584 | { |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33585 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33586 | } |
| 33587 | |
| 33588 | # func_xform libobj-or-source |
| 33589 | func_xform () |
| 33590 | { |
| cristy | 18304f9 | 2009-11-22 15:48:26 +0000 | [diff] [blame] | 33591 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33592 | } |
| 33593 | |
| 33594 | # func_arith arithmetic-term... |
| 33595 | func_arith () |
| 33596 | { |
| 33597 | func_arith_result=`expr "$@"` |
| 33598 | } |
| 33599 | |
| 33600 | # func_len string |
| 33601 | # STRING may not start with a hyphen. |
| 33602 | func_len () |
| 33603 | { |
| 33604 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 33605 | } |
| 33606 | |
| 33607 | _LT_EOF |
| 33608 | esac |
| 33609 | |
| 33610 | case $lt_shell_append in |
| 33611 | yes) |
| 33612 | cat << \_LT_EOF >> "$cfgfile" |
| 33613 | |
| 33614 | # func_append var value |
| 33615 | # Append VALUE to the end of shell variable VAR. |
| 33616 | func_append () |
| 33617 | { |
| 33618 | eval "$1+=\$2" |
| 33619 | } |
| 33620 | _LT_EOF |
| 33621 | ;; |
| 33622 | *) |
| 33623 | cat << \_LT_EOF >> "$cfgfile" |
| 33624 | |
| 33625 | # func_append var value |
| 33626 | # Append VALUE to the end of shell variable VAR. |
| 33627 | func_append () |
| 33628 | { |
| 33629 | eval "$1=\$$1\$2" |
| 33630 | } |
| 33631 | |
| 33632 | _LT_EOF |
| 33633 | ;; |
| 33634 | esac |
| 33635 | |
| 33636 | |
| 33637 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 33638 | || (rm -f "$cfgfile"; exit 1) |
| 33639 | |
| 33640 | mv -f "$cfgfile" "$ofile" || |
| 33641 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 33642 | chmod +x "$ofile" |
| 33643 | |
| 33644 | |
| 33645 | cat <<_LT_EOF >> "$ofile" |
| 33646 | |
| 33647 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 33648 | |
| 33649 | # The linker used to build libraries. |
| 33650 | LD=$lt_LD_CXX |
| 33651 | |
| 33652 | # Commands used to build an old-style archive. |
| 33653 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 33654 | |
| 33655 | # A language specific compiler. |
| 33656 | CC=$lt_compiler_CXX |
| 33657 | |
| 33658 | # Is the compiler the GNU compiler? |
| 33659 | with_gcc=$GCC_CXX |
| 33660 | |
| 33661 | # Compiler flag to turn off builtin functions. |
| 33662 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 33663 | |
| 33664 | # How to pass a linker flag through the compiler. |
| 33665 | wl=$lt_lt_prog_compiler_wl_CXX |
| 33666 | |
| 33667 | # Additional compiler flags for building library objects. |
| 33668 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 33669 | |
| 33670 | # Compiler flag to prevent dynamic linking. |
| 33671 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 33672 | |
| 33673 | # Does compiler simultaneously support -c and -o options? |
| 33674 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 33675 | |
| 33676 | # Whether or not to add -lc for building shared libraries. |
| 33677 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 33678 | |
| 33679 | # Whether or not to disallow shared libs when runtime libs are static. |
| 33680 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 33681 | |
| 33682 | # Compiler flag to allow reflexive dlopens. |
| 33683 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 33684 | |
| 33685 | # Compiler flag to generate shared objects directly from archives. |
| 33686 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 33687 | |
| 33688 | # Whether the compiler copes with passing no objects directly. |
| 33689 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 33690 | |
| 33691 | # Create an old-style archive from a shared archive. |
| 33692 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 33693 | |
| 33694 | # Create a temporary old-style archive to link instead of a shared archive. |
| 33695 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 33696 | |
| 33697 | # Commands used to build a shared archive. |
| 33698 | archive_cmds=$lt_archive_cmds_CXX |
| 33699 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 33700 | |
| 33701 | # Commands used to build a loadable module if different from building |
| 33702 | # a shared archive. |
| 33703 | module_cmds=$lt_module_cmds_CXX |
| 33704 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 33705 | |
| 33706 | # Whether we are building with GNU ld or not. |
| 33707 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 33708 | |
| 33709 | # Flag that allows shared libraries with undefined symbols to be built. |
| 33710 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 33711 | |
| 33712 | # Flag that enforces no undefined symbols. |
| 33713 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 33714 | |
| 33715 | # Flag to hardcode \$libdir into a binary during linking. |
| 33716 | # This must work even if \$libdir does not exist |
| 33717 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 33718 | |
| 33719 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 33720 | # during linking. This must work even if \$libdir does not exist. |
| 33721 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 33722 | |
| 33723 | # Whether we need a single "-rpath" flag with a separated argument. |
| 33724 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 33725 | |
| 33726 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33727 | # DIR into the resulting binary. |
| 33728 | hardcode_direct=$hardcode_direct_CXX |
| 33729 | |
| 33730 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 33731 | # DIR into the resulting binary and the resulting library dependency is |
| 33732 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 33733 | # library is relocated. |
| 33734 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 33735 | |
| 33736 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 33737 | # into the resulting binary. |
| 33738 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 33739 | |
| 33740 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 33741 | # into the resulting binary. |
| 33742 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 33743 | |
| 33744 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 33745 | # into the library and all subsequent libraries and executables linked |
| 33746 | # against it. |
| 33747 | hardcode_automatic=$hardcode_automatic_CXX |
| 33748 | |
| 33749 | # Set to yes if linker adds runtime paths of dependent libraries |
| 33750 | # to runtime path list. |
| 33751 | inherit_rpath=$inherit_rpath_CXX |
| 33752 | |
| 33753 | # Whether libtool must link a program against all its dependency libraries. |
| 33754 | link_all_deplibs=$link_all_deplibs_CXX |
| 33755 | |
| 33756 | # Fix the shell variable \$srcfile for the compiler. |
| 33757 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 33758 | |
| 33759 | # Set to "yes" if exported symbols are required. |
| 33760 | always_export_symbols=$always_export_symbols_CXX |
| 33761 | |
| 33762 | # The commands to list exported symbols. |
| 33763 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 33764 | |
| 33765 | # Symbols that should not be listed in the preloaded symbols. |
| 33766 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 33767 | |
| 33768 | # Symbols that must always be exported. |
| 33769 | include_expsyms=$lt_include_expsyms_CXX |
| 33770 | |
| 33771 | # Commands necessary for linking programs (against libraries) with templates. |
| 33772 | prelink_cmds=$lt_prelink_cmds_CXX |
| 33773 | |
| 33774 | # Specify filename containing input files. |
| 33775 | file_list_spec=$lt_file_list_spec_CXX |
| 33776 | |
| 33777 | # How to hardcode a shared library path into an executable. |
| 33778 | hardcode_action=$hardcode_action_CXX |
| 33779 | |
| 33780 | # The directories searched by this compiler when creating a shared library. |
| 33781 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 33782 | |
| 33783 | # Dependencies to place before and after the objects being linked to |
| 33784 | # create a shared library. |
| 33785 | predep_objects=$lt_predep_objects_CXX |
| 33786 | postdep_objects=$lt_postdep_objects_CXX |
| 33787 | predeps=$lt_predeps_CXX |
| 33788 | postdeps=$lt_postdeps_CXX |
| 33789 | |
| 33790 | # The library search path used internally by the compiler when linking |
| 33791 | # a shared library. |
| 33792 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 33793 | |
| 33794 | # ### END LIBTOOL TAG CONFIG: CXX |
| 33795 | _LT_EOF |
| 33796 | |
| 33797 | ;; |
| 33798 | "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;; |
| 33799 | "Magick-config.in":C) chmod +x magick/Magick-config ;; |
| 33800 | "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;; |
| 33801 | "Wand-config.in":C) chmod +x wand/Wand-config ;; |
| 33802 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 33803 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 33804 | |
| 33805 | esac |
| 33806 | done # for ac_tag |
| 33807 | |
| 33808 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33809 | as_fn_exit 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33810 | _ACEOF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33811 | ac_clean_files=$ac_clean_files_save |
| 33812 | |
| 33813 | test $ac_write_fail = 0 || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33814 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33815 | |
| 33816 | |
| 33817 | # configure is writing to config.log, and then calls config.status. |
| 33818 | # config.status does its own redirection, appending to config.log. |
| 33819 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 33820 | # by configure, so config.status won't be able to write to it; its |
| 33821 | # output is simply discarded. So we exec the FD to /dev/null, |
| 33822 | # effectively closing config.log, so it can be properly (re)opened and |
| 33823 | # appended to by config.status. When coming back to configure, we |
| 33824 | # need to make the FD available again. |
| 33825 | if test "$no_create" != yes; then |
| 33826 | ac_cs_success=: |
| 33827 | ac_config_status_args= |
| 33828 | test "$silent" = yes && |
| 33829 | ac_config_status_args="$ac_config_status_args --quiet" |
| 33830 | exec 5>/dev/null |
| 33831 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 33832 | exec 5>>config.log |
| 33833 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 33834 | # would make configure fail if this is the last instruction. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33835 | $ac_cs_success || as_fn_exit $? |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33836 | fi |
| 33837 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33838 | { $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] | 33839 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 33840 | fi |
| 33841 | |
| 33842 | |
| 33843 | rm -f magick-version |
| 33844 | |
| 33845 | result_ghostscript_font_dir='none' |
| 33846 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 33847 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 33848 | fi |
| 33849 | |
| 33850 | result_windows_font_dir='none' |
| 33851 | if test "${windows_font_dir}x" != 'x'; then |
| 33852 | result_windows_font_dir=${windows_font_dir} |
| 33853 | fi |
| 33854 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33856 | ImageMagick is configured as follows. Please verify that this configuration |
| 33857 | matches your expectations. |
| 33858 | |
| 33859 | Host system type: $host |
| 33860 | Build system type: $build |
| 33861 | |
| 33862 | Option Value |
| 33863 | ------------------------------------------------------------------------------- |
| 33864 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 33865 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 33866 | Module support --with-modules=$with_modules $with_modules |
| 33867 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 33868 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 33869 | High Dynamic Range Imagery |
| 33870 | --enable-hdri=$enable_hdri $enable_hdri |
| 33871 | |
| 33872 | Delegate Configuration: |
| 33873 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 33874 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| 33875 | DJVU --with-djvu=$with_djvu $have_djvu |
| 33876 | DPS --with-dps=$with_dps $have_dps |
| 33877 | FFTW --with-fftw=$with_fftw $have_fftw |
| 33878 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 33879 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 33880 | FreeType --with-freetype=$with_freetype $have_freetype |
| 33881 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 33882 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 33883 | Ghostscript None $PSDelegate ($GSVersion) |
| 33884 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 33885 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 33886 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 33887 | JBIG --with-jbig=$with_jbig $have_jbig |
| 33888 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 33889 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| 33890 | LCMS --with-lcms=$with_lcms $have_lcms |
| 33891 | LQR --with-lqr=$with_lqr $have_lqr |
| 33892 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 33893 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 33894 | PERL --with-perl=$with_perl $have_perl |
| 33895 | PNG --with-png=$with_png $have_png |
| 33896 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 33897 | TIFF --with-tiff=$with_tiff $have_tiff |
| 33898 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 33899 | WMF --with-wmf=$with_wmf $have_wmf |
| 33900 | X11 --with-x=$with_x $have_x |
| 33901 | XML --with-xml=$with_xml $have_xml |
| 33902 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 33903 | |
| 33904 | X11 Configuration: |
| 33905 | X_CFLAGS = $X_CFLAGS |
| 33906 | X_PRE_LIBS = $X_PRE_LIBS |
| 33907 | X_LIBS = $X_LIBS |
| 33908 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 33909 | |
| 33910 | Options used to compile and link: |
| 33911 | PREFIX = $PREFIX_DIR |
| 33912 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 33913 | VERSION = $PACKAGE_VERSION |
| 33914 | CC = $CC |
| 33915 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33916 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 33917 | PCFLAGS = $MAGICK_PCFLAGS |
| 33918 | DEFS = $DEFS |
| 33919 | LDFLAGS = $LDFLAGS |
| 33920 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 33921 | LIBS = $MAGICK_LIBS |
| 33922 | CXX = $CXX |
| 33923 | CXXFLAGS = $CXXFLAGS |
| 33924 | " >&5 |
| 33925 | $as_echo " |
| 33926 | ImageMagick is configured as follows. Please verify that this configuration |
| 33927 | matches your expectations. |
| 33928 | |
| 33929 | Host system type: $host |
| 33930 | Build system type: $build |
| 33931 | |
| 33932 | Option Value |
| 33933 | ------------------------------------------------------------------------------- |
| 33934 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 33935 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| 33936 | Module support --with-modules=$with_modules $with_modules |
| 33937 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 33938 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 33939 | High Dynamic Range Imagery |
| 33940 | --enable-hdri=$enable_hdri $enable_hdri |
| 33941 | |
| 33942 | Delegate Configuration: |
| 33943 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 33944 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| 33945 | DJVU --with-djvu=$with_djvu $have_djvu |
| 33946 | DPS --with-dps=$with_dps $have_dps |
| 33947 | FFTW --with-fftw=$with_fftw $have_fftw |
| 33948 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 33949 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 33950 | FreeType --with-freetype=$with_freetype $have_freetype |
| 33951 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 33952 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 33953 | Ghostscript None $PSDelegate ($GSVersion) |
| 33954 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 33955 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 33956 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 33957 | JBIG --with-jbig=$with_jbig $have_jbig |
| 33958 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 33959 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| 33960 | LCMS --with-lcms=$with_lcms $have_lcms |
| 33961 | LQR --with-lqr=$with_lqr $have_lqr |
| 33962 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 33963 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| 33964 | PERL --with-perl=$with_perl $have_perl |
| 33965 | PNG --with-png=$with_png $have_png |
| 33966 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 33967 | TIFF --with-tiff=$with_tiff $have_tiff |
| 33968 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| 33969 | WMF --with-wmf=$with_wmf $have_wmf |
| 33970 | X11 --with-x=$with_x $have_x |
| 33971 | XML --with-xml=$with_xml $have_xml |
| 33972 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 33973 | |
| 33974 | X11 Configuration: |
| 33975 | X_CFLAGS = $X_CFLAGS |
| 33976 | X_PRE_LIBS = $X_PRE_LIBS |
| 33977 | X_LIBS = $X_LIBS |
| 33978 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 33979 | |
| 33980 | Options used to compile and link: |
| 33981 | PREFIX = $PREFIX_DIR |
| 33982 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 33983 | VERSION = $PACKAGE_VERSION |
| 33984 | CC = $CC |
| 33985 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33986 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 33987 | PCFLAGS = $MAGICK_PCFLAGS |
| 33988 | DEFS = $DEFS |
| 33989 | LDFLAGS = $LDFLAGS |
| 33990 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 33991 | LIBS = $MAGICK_LIBS |
| 33992 | CXX = $CXX |
| 33993 | CXXFLAGS = $CXXFLAGS |
| 33994 | " >&6; } |