| 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 | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for ImageMagick 6.6.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 | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | 
|  | 10 | # Foundation, Inc. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 11 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 12 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation | 
|  | 14 | # gives unlimited permission to copy, distribute and modify it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 15 | ## -------------------- ## | 
|  | 16 | ## M4sh Initialization. ## | 
|  | 17 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 18 |  | 
|  | 19 | # Be more Bourne compatible | 
|  | 20 | DUALCASE=1; export DUALCASE # for MKS sh | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22 | emulate sh | 
|  | 23 | NULLCMD=: | 
|  | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
|  | 25 | # is contrary to our usage.  Disable this feature. | 
|  | 26 | alias -g '${1+"$@"}'='"$@"' | 
|  | 27 | setopt NO_GLOB_SUBST | 
|  | 28 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( | 
|  | 30 | *posix*) : | 
|  | 31 | set -o posix ;; #( | 
|  | 32 | *) : | 
|  | 33 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35 | fi | 
|  | 36 |  | 
|  | 37 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | as_nl=' | 
|  | 39 | ' | 
|  | 40 | export as_nl | 
|  | 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 46 | # but without wasting forks for bash or zsh. | 
|  | 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 49 | as_echo='print -r --' | 
|  | 50 | as_echo_n='print -rn --' | 
|  | 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 52 | as_echo='printf %s\n' | 
|  | 53 | as_echo_n='printf %s' | 
|  | 54 | else | 
|  | 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 57 | as_echo_n='/usr/ucb/echo -n' | 
|  | 58 | else | 
|  | 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 60 | as_echo_n_body='eval | 
|  | 61 | arg=$1; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 62 | case $arg in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 63 | *"$as_nl"*) | 
|  | 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 66 | esac; | 
|  | 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 68 | ' | 
|  | 69 | export as_echo_n_body | 
|  | 70 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 71 | fi | 
|  | 72 | export as_echo_body | 
|  | 73 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 74 | fi | 
|  | 75 |  | 
|  | 76 | # The user is always right. | 
|  | 77 | if test "${PATH_SEPARATOR+set}" != set; then | 
|  | 78 | PATH_SEPARATOR=: | 
|  | 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 81 | PATH_SEPARATOR=';' | 
|  | 82 | } | 
|  | 83 | fi | 
|  | 84 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 85 |  | 
|  | 86 | # IFS | 
|  | 87 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 88 | # there to prevent editors from complaining about space-tab. | 
|  | 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 90 | # splitting by setting IFS to empty value.) | 
|  | 91 | IFS=" ""	$as_nl" | 
|  | 92 |  | 
|  | 93 | # Find who we are.  Look in the path if we contain no directory separator. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 94 | as_myself= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 95 | case $0 in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 96 | *[\\/]* ) as_myself=$0 ;; | 
|  | 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 98 | for as_dir in $PATH | 
|  | 99 | do | 
|  | 100 | IFS=$as_save_IFS | 
|  | 101 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 103 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 104 | IFS=$as_save_IFS | 
|  | 105 |  | 
|  | 106 | ;; | 
|  | 107 | esac | 
|  | 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 109 | # in which case we are not to be found in the path. | 
|  | 110 | if test "x$as_myself" = x; then | 
|  | 111 | as_myself=$0 | 
|  | 112 | fi | 
|  | 113 | if test ! -f "$as_myself"; then | 
|  | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 115 | exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 116 | fi | 
|  | 117 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 118 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 119 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 120 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 121 | # trigger a bug in pdksh 5.2.14. | 
|  | 122 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 123 | do eval test x\${$as_var+set} = xset \ | 
|  | 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 125 | done | 
|  | 126 | PS1='$ ' | 
|  | 127 | PS2='> ' | 
|  | 128 | PS4='+ ' | 
|  | 129 |  | 
|  | 130 | # NLS nuisances. | 
|  | 131 | LC_ALL=C | 
|  | 132 | export LC_ALL | 
|  | 133 | LANGUAGE=C | 
|  | 134 | export LANGUAGE | 
|  | 135 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 136 | # CDPATH. | 
|  | 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 138 |  | 
|  | 139 | if test "x$CONFIG_SHELL" = x; then | 
|  | 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | 
|  | 141 | emulate sh | 
|  | 142 | NULLCMD=: | 
|  | 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | 
|  | 144 | # is contrary to our usage.  Disable this feature. | 
|  | 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | 
|  | 146 | setopt NO_GLOB_SUBST | 
|  | 147 | else | 
|  | 148 | case \`(set -o) 2>/dev/null\` in #( | 
|  | 149 | *posix*) : | 
|  | 150 | set -o posix ;; #( | 
|  | 151 | *) : | 
|  | 152 | ;; | 
|  | 153 | esac | 
|  | 154 | fi | 
|  | 155 | " | 
|  | 156 | as_required="as_fn_return () { (exit \$1); } | 
|  | 157 | as_fn_success () { as_fn_return 0; } | 
|  | 158 | as_fn_failure () { as_fn_return 1; } | 
|  | 159 | as_fn_ret_success () { return 0; } | 
|  | 160 | as_fn_ret_failure () { return 1; } | 
|  | 161 |  | 
|  | 162 | exitcode=0 | 
|  | 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | 
|  | 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | 
|  | 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | 
|  | 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | 
|  | 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | 
|  | 168 |  | 
|  | 169 | else | 
|  | 170 | exitcode=1; echo positional parameters were not saved. | 
|  | 171 | fi | 
|  | 172 | test x\$exitcode = x0 || exit 1" | 
|  | 173 | as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | 
|  | 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | 
|  | 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | 
|  | 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 177 | test \$(( 1 + 1 )) = 2 || exit 1 | 
|  | 178 |  | 
|  | 179 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | 
|  | 180 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 181 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | 
|  | 182 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | 
|  | 183 | PATH=/empty FPATH=/empty; export PATH FPATH | 
|  | 184 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | 
|  | 185 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 186 | if (eval "$as_required") 2>/dev/null; then : | 
|  | 187 | as_have_required=yes | 
|  | 188 | else | 
|  | 189 | as_have_required=no | 
|  | 190 | fi | 
|  | 191 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | 
|  | 192 |  | 
|  | 193 | else | 
|  | 194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 195 | as_found=false | 
|  | 196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | 
|  | 197 | do | 
|  | 198 | IFS=$as_save_IFS | 
|  | 199 | test -z "$as_dir" && as_dir=. | 
|  | 200 | as_found=: | 
|  | 201 | case $as_dir in #( | 
|  | 202 | /*) | 
|  | 203 | for as_base in sh bash ksh sh5; do | 
|  | 204 | # Try only shells that exist, to save several forks. | 
|  | 205 | as_shell=$as_dir/$as_base | 
|  | 206 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | 
|  | 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 208 | CONFIG_SHELL=$as_shell as_have_required=yes | 
|  | 209 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | 
|  | 210 | break 2 | 
|  | 211 | fi | 
|  | 212 | fi | 
|  | 213 | done;; | 
|  | 214 | esac | 
|  | 215 | as_found=false | 
|  | 216 | done | 
|  | 217 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | 
|  | 218 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | 
|  | 219 | CONFIG_SHELL=$SHELL as_have_required=yes | 
|  | 220 | fi; } | 
|  | 221 | IFS=$as_save_IFS | 
|  | 222 |  | 
|  | 223 |  | 
|  | 224 | if test "x$CONFIG_SHELL" != x; then : | 
|  | 225 | # We cannot yet assume a decent shell, so we have to provide a | 
|  | 226 | # neutralization value for shells without unset; and this also | 
|  | 227 | # works around shells that cannot unset nonexistent variables. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 228 | # Preserve -v and -x to the replacement shell. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 229 | BASH_ENV=/dev/null | 
|  | 230 | ENV=/dev/null | 
|  | 231 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | 
|  | 232 | export CONFIG_SHELL | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 233 | case $- in # (((( | 
|  | 234 | *v*x* | *x*v* ) as_opts=-vx ;; | 
|  | 235 | *v* ) as_opts=-v ;; | 
|  | 236 | *x* ) as_opts=-x ;; | 
|  | 237 | * ) as_opts= ;; | 
|  | 238 | esac | 
|  | 239 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 240 | fi | 
|  | 241 |  | 
|  | 242 | if test x$as_have_required = xno; then : | 
|  | 243 | $as_echo "$0: This script requires a shell more modern than all" | 
|  | 244 | $as_echo "$0: the shells that I found on your system." | 
|  | 245 | if test x${ZSH_VERSION+set} = xset ; then | 
|  | 246 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | 
|  | 247 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | 
|  | 248 | else | 
|  | 249 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | 
|  | 250 | $0: http://www.imagemagick.org about your system, including | 
|  | 251 | $0: any error possibly output before this message. Then | 
|  | 252 | $0: install a modern shell, or manually run the script | 
|  | 253 | $0: under such a shell if you do have one." | 
|  | 254 | fi | 
|  | 255 | exit 1 | 
|  | 256 | fi | 
|  | 257 | fi | 
|  | 258 | fi | 
|  | 259 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 260 | export SHELL | 
|  | 261 | # Unset more variables known to interfere with behavior of common tools. | 
|  | 262 | CLICOLOR_FORCE= GREP_OPTIONS= | 
|  | 263 | unset CLICOLOR_FORCE GREP_OPTIONS | 
|  | 264 |  | 
|  | 265 | ## --------------------- ## | 
|  | 266 | ## M4sh Shell Functions. ## | 
|  | 267 | ## --------------------- ## | 
|  | 268 | # as_fn_unset VAR | 
|  | 269 | # --------------- | 
|  | 270 | # Portably unset VAR. | 
|  | 271 | as_fn_unset () | 
|  | 272 | { | 
|  | 273 | { eval $1=; unset $1;} | 
|  | 274 | } | 
|  | 275 | as_unset=as_fn_unset | 
|  | 276 |  | 
|  | 277 | # as_fn_set_status STATUS | 
|  | 278 | # ----------------------- | 
|  | 279 | # Set $? to STATUS, without forking. | 
|  | 280 | as_fn_set_status () | 
|  | 281 | { | 
|  | 282 | return $1 | 
|  | 283 | } # as_fn_set_status | 
|  | 284 |  | 
|  | 285 | # as_fn_exit STATUS | 
|  | 286 | # ----------------- | 
|  | 287 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 288 | as_fn_exit () | 
|  | 289 | { | 
|  | 290 | set +e | 
|  | 291 | as_fn_set_status $1 | 
|  | 292 | exit $1 | 
|  | 293 | } # as_fn_exit | 
|  | 294 |  | 
|  | 295 | # as_fn_mkdir_p | 
|  | 296 | # ------------- | 
|  | 297 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 298 | as_fn_mkdir_p () | 
|  | 299 | { | 
|  | 300 |  | 
|  | 301 | case $as_dir in #( | 
|  | 302 | -*) as_dir=./$as_dir;; | 
|  | 303 | esac | 
|  | 304 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 305 | as_dirs= | 
|  | 306 | while :; do | 
|  | 307 | case $as_dir in #( | 
|  | 308 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 309 | *) as_qdir=$as_dir;; | 
|  | 310 | esac | 
|  | 311 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 312 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 313 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 314 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 315 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 316 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 317 | $as_echo X"$as_dir" | | 
|  | 318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 319 | s//\1/ | 
|  | 320 | q | 
|  | 321 | } | 
|  | 322 | /^X\(\/\/\)[^/].*/{ | 
|  | 323 | s//\1/ | 
|  | 324 | q | 
|  | 325 | } | 
|  | 326 | /^X\(\/\/\)$/{ | 
|  | 327 | s//\1/ | 
|  | 328 | q | 
|  | 329 | } | 
|  | 330 | /^X\(\/\).*/{ | 
|  | 331 | s//\1/ | 
|  | 332 | q | 
|  | 333 | } | 
|  | 334 | s/.*/./; q'` | 
|  | 335 | test -d "$as_dir" && break | 
|  | 336 | done | 
|  | 337 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 338 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 339 |  | 
|  | 340 |  | 
|  | 341 | } # as_fn_mkdir_p | 
|  | 342 | # as_fn_append VAR VALUE | 
|  | 343 | # ---------------------- | 
|  | 344 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 345 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 346 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 347 | # implementations. | 
|  | 348 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 349 | eval 'as_fn_append () | 
|  | 350 | { | 
|  | 351 | eval $1+=\$2 | 
|  | 352 | }' | 
|  | 353 | else | 
|  | 354 | as_fn_append () | 
|  | 355 | { | 
|  | 356 | eval $1=\$$1\$2 | 
|  | 357 | } | 
|  | 358 | fi # as_fn_append | 
|  | 359 |  | 
|  | 360 | # as_fn_arith ARG... | 
|  | 361 | # ------------------ | 
|  | 362 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 363 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 364 | # must be portable across $(()) and expr. | 
|  | 365 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 366 | eval 'as_fn_arith () | 
|  | 367 | { | 
|  | 368 | as_val=$(( $* )) | 
|  | 369 | }' | 
|  | 370 | else | 
|  | 371 | as_fn_arith () | 
|  | 372 | { | 
|  | 373 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 374 | } | 
|  | 375 | fi # as_fn_arith | 
|  | 376 |  | 
|  | 377 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 378 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 379 | # ---------------------------------------- | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 380 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 381 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 382 | # script with STATUS, using 1 if that was 0. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 383 | as_fn_error () | 
|  | 384 | { | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 385 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 386 | if test "$4"; then | 
|  | 387 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 388 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 389 | fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 390 | $as_echo "$as_me: error: $2" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 391 | as_fn_exit $as_status | 
|  | 392 | } # as_fn_error | 
|  | 393 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 394 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 395 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 396 | as_expr=expr | 
|  | 397 | else | 
|  | 398 | as_expr=false | 
|  | 399 | fi | 
|  | 400 |  | 
|  | 401 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 402 | as_basename=basename | 
|  | 403 | else | 
|  | 404 | as_basename=false | 
|  | 405 | fi | 
|  | 406 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 407 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 408 | as_dirname=dirname | 
|  | 409 | else | 
|  | 410 | as_dirname=false | 
|  | 411 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 412 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 413 | as_me=`$as_basename -- "$0" || | 
|  | 414 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 415 | X"$0" : 'X\(//\)$' \| \ | 
|  | 416 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 417 | $as_echo X/"$0" | | 
|  | 418 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 419 | s//\1/ | 
|  | 420 | q | 
|  | 421 | } | 
|  | 422 | /^X\/\(\/\/\)$/{ | 
|  | 423 | s//\1/ | 
|  | 424 | q | 
|  | 425 | } | 
|  | 426 | /^X\/\(\/\).*/{ | 
|  | 427 | s//\1/ | 
|  | 428 | q | 
|  | 429 | } | 
|  | 430 | s/.*/./; q'` | 
|  | 431 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 432 | # Avoid depending upon Character Ranges. | 
|  | 433 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 434 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 435 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 436 | as_cr_digits='0123456789' | 
|  | 437 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 438 |  | 
|  | 439 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 440 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | 
|  | 441 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | 
|  | 442 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | 
|  | 443 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | 
|  | 444 | # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 445 | sed -n ' | 
|  | 446 | p | 
|  | 447 | /[$]LINENO/= | 
|  | 448 | ' <$as_myself | | 
|  | 449 | sed ' | 
|  | 450 | s/[$]LINENO.*/&-/ | 
|  | 451 | t lineno | 
|  | 452 | b | 
|  | 453 | :lineno | 
|  | 454 | N | 
|  | 455 | :loop | 
|  | 456 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | 
|  | 457 | t loop | 
|  | 458 | s/-\n.*// | 
|  | 459 | ' >$as_me.lineno && | 
|  | 460 | chmod +x "$as_me.lineno" || | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 461 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 462 |  | 
|  | 463 | # Don't try to exec as it changes $[0], causing all sort of problems | 
|  | 464 | # (the dirname of $[0] is not the place where we might find the | 
|  | 465 | # original and so on.  Autoconf is especially sensitive to this). | 
|  | 466 | . "./$as_me.lineno" | 
|  | 467 | # Exit status is that of the last command. | 
|  | 468 | exit | 
|  | 469 | } | 
|  | 470 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 471 | ECHO_C= ECHO_N= ECHO_T= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 472 | case `echo -n x` in #((((( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 473 | -n*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 474 | case `echo 'xy\c'` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 475 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 476 | xy)  ECHO_C='\c';; | 
|  | 477 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 478 | ECHO_T='	';; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 479 | esac;; | 
|  | 480 | *) | 
|  | 481 | ECHO_N='-n';; | 
|  | 482 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 483 |  | 
|  | 484 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 485 | if test -d conf$$.dir; then | 
|  | 486 | rm -f conf$$.dir/conf$$.file | 
|  | 487 | else | 
|  | 488 | rm -f conf$$.dir | 
|  | 489 | mkdir conf$$.dir 2>/dev/null | 
|  | 490 | fi | 
|  | 491 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 492 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 493 | as_ln_s='ln -s' | 
|  | 494 | # ... but there are two gotchas: | 
|  | 495 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 496 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 497 | # In both cases, we have to default to `cp -p'. | 
|  | 498 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 499 | as_ln_s='cp -p' | 
|  | 500 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 501 | as_ln_s=ln | 
|  | 502 | else | 
|  | 503 | as_ln_s='cp -p' | 
|  | 504 | fi | 
|  | 505 | else | 
|  | 506 | as_ln_s='cp -p' | 
|  | 507 | fi | 
|  | 508 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 509 | rmdir conf$$.dir 2>/dev/null | 
|  | 510 |  | 
|  | 511 | if mkdir -p . 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 512 | as_mkdir_p='mkdir -p "$as_dir"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 513 | else | 
|  | 514 | test -d ./-p && rmdir ./-p | 
|  | 515 | as_mkdir_p=false | 
|  | 516 | fi | 
|  | 517 |  | 
|  | 518 | if test -x / >/dev/null 2>&1; then | 
|  | 519 | as_test_x='test -x' | 
|  | 520 | else | 
|  | 521 | if ls -dL / >/dev/null 2>&1; then | 
|  | 522 | as_ls_L_option=L | 
|  | 523 | else | 
|  | 524 | as_ls_L_option= | 
|  | 525 | fi | 
|  | 526 | as_test_x=' | 
|  | 527 | eval sh -c '\'' | 
|  | 528 | if test -d "$1"; then | 
|  | 529 | test -d "$1/."; | 
|  | 530 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 531 | case $1 in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 532 | -*)set "./$1";; | 
|  | 533 | esac; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 534 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 535 | ???[sx]*):;;*)false;;esac;fi | 
|  | 536 | '\'' sh | 
|  | 537 | ' | 
|  | 538 | fi | 
|  | 539 | as_executable_p=$as_test_x | 
|  | 540 |  | 
|  | 541 | # Sed expression to map a string onto a valid CPP name. | 
|  | 542 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 543 |  | 
|  | 544 | # Sed expression to map a string onto a valid variable name. | 
|  | 545 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 546 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 547 | SHELL=${CONFIG_SHELL-/bin/sh} | 
|  | 548 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 549 | lt_ltdl_dir='ltdl' | 
|  | 550 |  | 
|  | 551 | lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/" | 
|  | 552 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 553 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 554 | test -n "$DJDIR" || exec 7<&0 </dev/null | 
|  | 555 | exec 6>&1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 556 |  | 
|  | 557 | # Name of the host. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 558 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 559 | # so uname gets run too. | 
|  | 560 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 561 |  | 
|  | 562 | # | 
|  | 563 | # Initializations. | 
|  | 564 | # | 
|  | 565 | ac_default_prefix=/usr/local | 
|  | 566 | ac_clean_files= | 
|  | 567 | ac_config_libobj_dir=. | 
|  | 568 | LIBOBJS= | 
|  | 569 | cross_compiling=no | 
|  | 570 | subdirs= | 
|  | 571 | MFLAGS= | 
|  | 572 | MAKEFLAGS= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 573 |  | 
|  | 574 | # Identity of this package. | 
|  | 575 | PACKAGE_NAME='ImageMagick' | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 576 | PACKAGE_TARNAME='ImageMagick-6.6.9' | 
|  | 577 | PACKAGE_VERSION='6.6.9' | 
|  | 578 | PACKAGE_STRING='ImageMagick 6.6.9' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 579 | PACKAGE_BUGREPORT='http://www.imagemagick.org' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 580 | PACKAGE_URL='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 581 |  | 
|  | 582 | ac_unique_file="magick/MagickCore.h" | 
|  | 583 | ac_config_libobj_dir=ltdl | 
|  | 584 | # Factoring default headers for most tests. | 
|  | 585 | ac_includes_default="\ | 
|  | 586 | #include <stdio.h> | 
|  | 587 | #ifdef HAVE_SYS_TYPES_H | 
|  | 588 | # include <sys/types.h> | 
|  | 589 | #endif | 
|  | 590 | #ifdef HAVE_SYS_STAT_H | 
|  | 591 | # include <sys/stat.h> | 
|  | 592 | #endif | 
|  | 593 | #ifdef STDC_HEADERS | 
|  | 594 | # include <stdlib.h> | 
|  | 595 | # include <stddef.h> | 
|  | 596 | #else | 
|  | 597 | # ifdef HAVE_STDLIB_H | 
|  | 598 | #  include <stdlib.h> | 
|  | 599 | # endif | 
|  | 600 | #endif | 
|  | 601 | #ifdef HAVE_STRING_H | 
|  | 602 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | 
|  | 603 | #  include <memory.h> | 
|  | 604 | # endif | 
|  | 605 | # include <string.h> | 
|  | 606 | #endif | 
|  | 607 | #ifdef HAVE_STRINGS_H | 
|  | 608 | # include <strings.h> | 
|  | 609 | #endif | 
|  | 610 | #ifdef HAVE_INTTYPES_H | 
|  | 611 | # include <inttypes.h> | 
|  | 612 | #endif | 
|  | 613 | #ifdef HAVE_STDINT_H | 
|  | 614 | # include <stdint.h> | 
|  | 615 | #endif | 
|  | 616 | #ifdef HAVE_UNISTD_H | 
|  | 617 | # include <unistd.h> | 
|  | 618 | #endif" | 
|  | 619 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 620 | ac_header_list= | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 621 | ac_subst_vars='ltdl_LTLIBOBJS | 
|  | 622 | ltdl_LIBOBJS | 
|  | 623 | am__EXEEXT_FALSE | 
|  | 624 | am__EXEEXT_TRUE | 
|  | 625 | LTLIBOBJS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 626 | MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 627 | MAGICK_LIBS | 
|  | 628 | MAGICK_LDFLAGS | 
|  | 629 | MAGICK_PCFLAGS | 
|  | 630 | MAGICK_CPPFLAGS | 
|  | 631 | MAGICK_CXXFLAGS | 
|  | 632 | MAGICK_CFLAGS | 
|  | 633 | MAGICK_DEP_LIBS | 
|  | 634 | MAGICK_LTDLDEPS | 
|  | 635 | MAGICK_LIBLTDL | 
|  | 636 | OSX_GCOV_LDFLAG | 
|  | 637 | DELEGATES | 
|  | 638 | MAGICKCORE_PATH | 
|  | 639 | PERL_SUPPORTS_DESTDIR | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 640 | WITH_PERL_DYNAMIC_FALSE | 
|  | 641 | WITH_PERL_DYNAMIC_TRUE | 
|  | 642 | WITH_PERL_STATIC_FALSE | 
|  | 643 | WITH_PERL_STATIC_TRUE | 
|  | 644 | WITH_PERL_FALSE | 
|  | 645 | WITH_PERL_TRUE | 
|  | 646 | PERL_VERSION | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 647 | GSVersion | 
|  | 648 | GSPSDevice | 
|  | 649 | GSPDFDevice | 
|  | 650 | GSMonoDevice | 
|  | 651 | GSEPSDevice | 
|  | 652 | GSColorDevice | 
|  | 653 | GSCMYKDevice | 
|  | 654 | GSAlphaDevice | 
|  | 655 | XPSVersion | 
|  | 656 | XPSCMYKDevice | 
|  | 657 | XPSColorDevice | 
|  | 658 | XPSMonoDevice | 
|  | 659 | PCLVersion | 
|  | 660 | PCLCMYKDevice | 
|  | 661 | PCLColorDevice | 
|  | 662 | PCLMonoDevice | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 663 | ZIP_DELEGATE_FALSE | 
|  | 664 | ZIP_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 665 | ZIP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 666 | P7ZIP_DELEGATE_FALSE | 
|  | 667 | P7ZIP_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 668 | P7ZIP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 669 | RPM_DELEGATE_FALSE | 
|  | 670 | RPM_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 671 | RPM | 
|  | 672 | PERL | 
|  | 673 | TAR | 
|  | 674 | ShowImageDelegate | 
|  | 675 | type_include_files | 
|  | 676 | ghostscript_font_dir | 
|  | 677 | windows_font_dir | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 678 | dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 679 | PrintDelegate | 
|  | 680 | ZipDelegate | 
|  | 681 | XPSDelegate | 
|  | 682 | WWWDecodeDelegate | 
|  | 683 | WMFDecodeDelegate | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 684 | UniconvertorDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 685 | TXTDelegate | 
|  | 686 | SCANDecodeDelegate | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 687 | RSVGDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 688 | RMDelegate | 
|  | 689 | RLEEncodeDelegate | 
|  | 690 | PSDelegate | 
|  | 691 | POVDelegate | 
|  | 692 | PGPDecodeDelegate | 
|  | 693 | PCLDelegate | 
|  | 694 | MVDelegate | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 695 | MrSIDDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 696 | MPEGEncodeDelegate | 
|  | 697 | MPEGDecodeDelegate | 
|  | 698 | MANDelegate | 
|  | 699 | LaunchDelegate | 
|  | 700 | LZWEncodeDelegate | 
|  | 701 | LZWDecodeDelegate | 
|  | 702 | LPRDelegate | 
|  | 703 | LPDelegate | 
|  | 704 | ILBMEncodeDelegate | 
|  | 705 | ILBMDecodeDelegate | 
|  | 706 | HTMLDecodeDelegate | 
|  | 707 | HPGLDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 708 | GnuplotDecodeDelegate | 
|  | 709 | MogrifyDelegate | 
|  | 710 | DisplayDelegate | 
|  | 711 | ConvertDelegate | 
|  | 712 | FIGDecodeDelegate | 
|  | 713 | EditorDelegate | 
|  | 714 | EchoDelegate | 
|  | 715 | DVIDecodeDelegate | 
|  | 716 | GVCDecodeDelegate | 
|  | 717 | DNGDecodeDelegate | 
|  | 718 | CatDelegate | 
|  | 719 | CGMDecodeDelegate | 
|  | 720 | BrowseDelegate | 
|  | 721 | BZIPDelegate | 
|  | 722 | BlenderDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 723 | AutotraceDecodeDelegate | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 724 | SHARE_PATH | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 725 | CONFIGURE_PATH | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 726 | DOCUMENTATION_PATH | 
|  | 727 | FILTER_PATH | 
|  | 728 | CODER_PATH | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 729 | LIBRARY_PATH | 
|  | 730 | EXECUTABLE_PATH | 
|  | 731 | PERLMAINCC | 
|  | 732 | XML_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 733 | XML_DELEGATE_FALSE | 
|  | 734 | XML_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 735 | xml2_config | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 736 | WMF_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 737 | WMF_DELEGATE_FALSE | 
|  | 738 | WMF_DELEGATE_TRUE | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 739 | WEBP_LIBS | 
|  | 740 | WEBP_DELEGATE_FALSE | 
|  | 741 | WEBP_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 742 | TIFF_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 743 | TIFF_DELEGATE_FALSE | 
|  | 744 | TIFF_DELEGATE_TRUE | 
|  | 745 | CAIRO_DELEGATE_FALSE | 
|  | 746 | CAIRO_DELEGATE_TRUE | 
|  | 747 | RSVG_DELEGATE_FALSE | 
|  | 748 | RSVG_DELEGATE_TRUE | 
|  | 749 | CAIRO_SVG_LIBS | 
|  | 750 | CAIRO_SVG_CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 751 | RSVG_LIBS | 
|  | 752 | RSVG_CFLAGS | 
|  | 753 | PNG_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 754 | PNG_DELEGATE_FALSE | 
|  | 755 | PNG_DELEGATE_TRUE | 
|  | 756 | OPENEXR_DELEGATE_FALSE | 
|  | 757 | OPENEXR_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 758 | OPENEXR_LIBS | 
|  | 759 | OPENEXR_CFLAGS | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 760 | LZMA_LIBS | 
|  | 761 | LZMA_DELEGATE_FALSE | 
|  | 762 | LZMA_DELEGATE_TRUE | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 763 | LQR_DELEGATE_FALSE | 
|  | 764 | LQR_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 765 | LQR_LIBS | 
|  | 766 | LQR_CFLAGS | 
|  | 767 | LCMS_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 768 | LCMS_DELEGATE_FALSE | 
|  | 769 | LCMS_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 770 | JP2_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 771 | JP2_DELEGATE_FALSE | 
|  | 772 | JP2_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 773 | JPEG_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 774 | JPEG_DELEGATE_FALSE | 
|  | 775 | JPEG_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 776 | JBIG_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 777 | JBIG_DELEGATE_FALSE | 
|  | 778 | JBIG_DELEGATE_TRUE | 
|  | 779 | GVC_DELEGATE_FALSE | 
|  | 780 | GVC_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 781 | GVC_LIBS | 
|  | 782 | GVC_CFLAGS | 
|  | 783 | GS_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 784 | GS_DELEGATE_FALSE | 
|  | 785 | GS_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 786 | FREETYPE_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 787 | FREETYPE_DELEGATE_FALSE | 
|  | 788 | FREETYPE_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 789 | freetype_config | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 790 | FONTCONFIG_DELEGATE_FALSE | 
|  | 791 | FONTCONFIG_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 792 | FONTCONFIG_LIBS | 
|  | 793 | FONTCONFIG_CFLAGS | 
|  | 794 | FPX_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 795 | FPX_DELEGATE_FALSE | 
|  | 796 | FPX_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 797 | FFTW_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 798 | FFTW_DELEGATE_FALSE | 
|  | 799 | FFTW_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 800 | DJVU_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 801 | DJVU_DELEGATE_FALSE | 
|  | 802 | DJVU_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 803 | DPS_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 804 | DPS_DELEGATE_FALSE | 
|  | 805 | DPS_DELEGATE_TRUE | 
|  | 806 | AUTOTRACE_DELEGATE_FALSE | 
|  | 807 | AUTOTRACE_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 808 | AUTOTRACE_LIBS | 
|  | 809 | AUTOTRACE_CFLAGS | 
|  | 810 | LIB_DL | 
|  | 811 | ZLIB_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 812 | ZLIB_DELEGATE_FALSE | 
|  | 813 | ZLIB_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 814 | XEXT_LIBS | 
|  | 815 | X11_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 816 | X11_DELEGATE_FALSE | 
|  | 817 | X11_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 818 | X_EXTRA_LIBS | 
|  | 819 | X_LIBS | 
|  | 820 | X_PRE_LIBS | 
|  | 821 | X_CFLAGS | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 822 | XMKMF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 823 | BZLIB_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 824 | BZLIB_DELEGATE_FALSE | 
|  | 825 | BZLIB_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 826 | CCMALLOCDelegate | 
|  | 827 | UMEM_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 828 | HasUMEM_FALSE | 
|  | 829 | HasUMEM_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 830 | THREAD_LIBS | 
|  | 831 | GOMP_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 832 | WITH_MAGICK_PLUS_PLUS_FALSE | 
|  | 833 | WITH_MAGICK_PLUS_PLUS_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 834 | OPENMP_CXXFLAGS | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 835 | MATH_LIBS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 836 | POW_LIB | 
|  | 837 | LIBOBJS | 
|  | 838 | UINTPTR_T | 
|  | 839 | UINTMAX_T | 
|  | 840 | UINT64_T | 
|  | 841 | INT64_T | 
|  | 842 | UINT32_T | 
|  | 843 | INT32_T | 
|  | 844 | UINT16_T | 
|  | 845 | INT16_T | 
|  | 846 | UINT8_T | 
|  | 847 | INT8_T | 
|  | 848 | LIBRARY_EXTRA_CPPFLAGS | 
|  | 849 | MODULE_EXTRA_CPPFLAGS | 
|  | 850 | LIBSTDCLDFLAGS | 
|  | 851 | PERL_MAKE_OPTIONS | 
|  | 852 | QUANTUM_DEPTH | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 853 | MAINT | 
|  | 854 | MAINTAINER_MODE_FALSE | 
|  | 855 | MAINTAINER_MODE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 856 | MAGICK_HDRI | 
|  | 857 | DLLDFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 858 | WITH_LTDL_FALSE | 
|  | 859 | WITH_LTDL_TRUE | 
|  | 860 | WITH_MODULES_FALSE | 
|  | 861 | WITH_MODULES_TRUE | 
|  | 862 | WITH_SHARED_LIBS_FALSE | 
|  | 863 | WITH_SHARED_LIBS_TRUE | 
|  | 864 | LTDLOPEN | 
|  | 865 | LT_CONFIG_H | 
|  | 866 | CONVENIENCE_LTDL_FALSE | 
|  | 867 | CONVENIENCE_LTDL_TRUE | 
|  | 868 | INSTALL_LTDL_FALSE | 
|  | 869 | INSTALL_LTDL_TRUE | 
|  | 870 | ARGZ_H | 
|  | 871 | sys_symbol_underscore | 
|  | 872 | LIBADD_DL | 
|  | 873 | LT_DLPREOPEN | 
|  | 874 | LIBADD_DLD_LINK | 
|  | 875 | LIBADD_SHL_LOAD | 
|  | 876 | LIBADD_DLOPEN | 
|  | 877 | LT_DLLOADERS | 
|  | 878 | INCLTDL | 
|  | 879 | LTDLINCL | 
|  | 880 | LTDLDEPS | 
|  | 881 | LIBLTDL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 882 | LIBTOOL_DEPS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 883 | CXXCPP | 
|  | 884 | OTOOL64 | 
|  | 885 | OTOOL | 
|  | 886 | LIPO | 
|  | 887 | NMEDIT | 
|  | 888 | DSYMUTIL | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 889 | MANIFEST_TOOL | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 890 | RANLIB | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 891 | ac_ct_AR | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 892 | AR | 
|  | 893 | NM | 
|  | 894 | ac_ct_DUMPBIN | 
|  | 895 | DUMPBIN | 
|  | 896 | LIBTOOL | 
|  | 897 | OBJDUMP | 
|  | 898 | DLLTOOL | 
|  | 899 | AS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 900 | LFS_CPPFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 901 | CL_LIBS | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 902 | CL_CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 903 | OPENMP_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 904 | PTHREAD_CFLAGS | 
|  | 905 | PTHREAD_LIBS | 
|  | 906 | PTHREAD_CC | 
|  | 907 | ax_pthread_config | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 908 | WinPathScript | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 909 | USING_CL_FALSE | 
|  | 910 | USING_CL_TRUE | 
|  | 911 | CYGWIN_BUILD_FALSE | 
|  | 912 | CYGWIN_BUILD_TRUE | 
|  | 913 | WIN32_NATIVE_BUILD_FALSE | 
|  | 914 | WIN32_NATIVE_BUILD_TRUE | 
|  | 915 | WINGDI32_DELEGATE_FALSE | 
|  | 916 | WINGDI32_DELEGATE_TRUE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 917 | GDI32_LIBS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 918 | PKG_CONFIG | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 919 | LN_S | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 920 | LD | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 921 | FGREP | 
|  | 922 | SED | 
|  | 923 | am__fastdepCXX_FALSE | 
|  | 924 | am__fastdepCXX_TRUE | 
|  | 925 | CXXDEPMODE | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 926 | ac_ct_CXX | 
|  | 927 | CXXFLAGS | 
|  | 928 | CXX | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 929 | EGREP | 
|  | 930 | GREP | 
|  | 931 | CPP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 932 | am__fastdepCC_FALSE | 
|  | 933 | am__fastdepCC_TRUE | 
|  | 934 | CCDEPMODE | 
|  | 935 | AMDEPBACKSLASH | 
|  | 936 | AMDEP_FALSE | 
|  | 937 | AMDEP_TRUE | 
|  | 938 | am__quote | 
|  | 939 | am__include | 
|  | 940 | DEPDIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 941 | OBJEXT | 
|  | 942 | EXEEXT | 
|  | 943 | ac_ct_CC | 
|  | 944 | CPPFLAGS | 
|  | 945 | LDFLAGS | 
|  | 946 | CFLAGS | 
|  | 947 | CC | 
|  | 948 | DIRSEP | 
|  | 949 | MAGICK_FILTER_MODULE_PATH | 
|  | 950 | MAGICK_CONFIGURE_BUILD_PATH | 
|  | 951 | MAGICK_CONFIGURE_SRC_PATH | 
|  | 952 | MAGICK_CODER_MODULE_PATH | 
|  | 953 | MAN_DIR | 
|  | 954 | INFO_DIR | 
|  | 955 | PERSISTINCLUDE_DIR | 
|  | 956 | INCLUDE_DIR | 
|  | 957 | LIB_DIR | 
|  | 958 | LOCALSTATE_DIR | 
|  | 959 | SHAREDSTATE_DIR | 
|  | 960 | SYSCONF_DIR | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 961 | DOC_DIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 962 | DATA_DIR | 
|  | 963 | LIBEXEC_DIR | 
|  | 964 | SBIN_DIR | 
|  | 965 | BIN_DIR | 
|  | 966 | EXEC_PREFIX_DIR | 
|  | 967 | PREFIX_DIR | 
|  | 968 | CONFIG_STATUS_DEPENDENCIES | 
|  | 969 | MAGICK_LIB_VERSION_NUMBER | 
|  | 970 | MAGICK_LIB_VERSION_TEXT | 
|  | 971 | MAGICK_LIB_VERSION | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 972 | AM_BACKSLASH | 
|  | 973 | AM_DEFAULT_VERBOSITY | 
|  | 974 | am__untar | 
|  | 975 | am__tar | 
|  | 976 | AMTAR | 
|  | 977 | am__leading_dot | 
|  | 978 | SET_MAKE | 
|  | 979 | AWK | 
|  | 980 | mkdir_p | 
|  | 981 | MKDIR_P | 
|  | 982 | INSTALL_STRIP_PROGRAM | 
|  | 983 | STRIP | 
|  | 984 | install_sh | 
|  | 985 | MAKEINFO | 
|  | 986 | AUTOHEADER | 
|  | 987 | AUTOMAKE | 
|  | 988 | AUTOCONF | 
|  | 989 | ACLOCAL | 
|  | 990 | VERSION | 
|  | 991 | PACKAGE | 
|  | 992 | CYGPATH_W | 
|  | 993 | am__isrc | 
|  | 994 | INSTALL_DATA | 
|  | 995 | INSTALL_SCRIPT | 
|  | 996 | INSTALL_PROGRAM | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 997 | PACKAGE_VERSION_ADDENDUM | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 998 | PACKAGE_RELEASE_DATE | 
|  | 999 | PACKAGE_LIB_VERSION_NUMBER | 
|  | 1000 | PACKAGE_LIB_VERSION | 
|  | 1001 | PACKAGE_CHANGE_DATE | 
|  | 1002 | PACKAGE_RELEASE | 
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 1003 | MAGICK_SVN_REVISION | 
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 1004 | MAGICK_LIBRARY_VERSION_INFO | 
|  | 1005 | MAGICK_LIBRARY_CURRENT_MIN | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1006 | MAGICK_LIBRARY_AGE | 
|  | 1007 | MAGICK_LIBRARY_REVISION | 
|  | 1008 | MAGICK_LIBRARY_CURRENT | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 1009 | MAGICK_TARGET_OS | 
|  | 1010 | MAGICK_TARGET_VENDOR | 
|  | 1011 | MAGICK_TARGET_CPU | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1012 | target_os | 
|  | 1013 | target_vendor | 
|  | 1014 | target_cpu | 
|  | 1015 | target | 
|  | 1016 | host_os | 
|  | 1017 | host_vendor | 
|  | 1018 | host_cpu | 
|  | 1019 | host | 
|  | 1020 | build_os | 
|  | 1021 | build_vendor | 
|  | 1022 | build_cpu | 
|  | 1023 | build | 
|  | 1024 | CONFIGURE_ARGS | 
|  | 1025 | DISTCHECK_CONFIG_FLAGS | 
|  | 1026 | target_alias | 
|  | 1027 | host_alias | 
|  | 1028 | build_alias | 
|  | 1029 | LIBS | 
|  | 1030 | ECHO_T | 
|  | 1031 | ECHO_N | 
|  | 1032 | ECHO_C | 
|  | 1033 | DEFS | 
|  | 1034 | mandir | 
|  | 1035 | localedir | 
|  | 1036 | libdir | 
|  | 1037 | psdir | 
|  | 1038 | pdfdir | 
|  | 1039 | dvidir | 
|  | 1040 | htmldir | 
|  | 1041 | infodir | 
|  | 1042 | docdir | 
|  | 1043 | oldincludedir | 
|  | 1044 | includedir | 
|  | 1045 | localstatedir | 
|  | 1046 | sharedstatedir | 
|  | 1047 | sysconfdir | 
|  | 1048 | datadir | 
|  | 1049 | datarootdir | 
|  | 1050 | libexecdir | 
|  | 1051 | sbindir | 
|  | 1052 | bindir | 
|  | 1053 | program_transform_name | 
|  | 1054 | prefix | 
|  | 1055 | exec_prefix | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1056 | PACKAGE_URL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1057 | PACKAGE_BUGREPORT | 
|  | 1058 | PACKAGE_STRING | 
|  | 1059 | PACKAGE_VERSION | 
|  | 1060 | PACKAGE_TARNAME | 
|  | 1061 | PACKAGE_NAME | 
|  | 1062 | PATH_SEPARATOR | 
|  | 1063 | SHELL' | 
|  | 1064 | ac_subst_files='' | 
|  | 1065 | ac_user_opts=' | 
|  | 1066 | enable_option_checking | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1067 | enable_silent_rules | 
|  | 1068 | enable_dependency_tracking | 
|  | 1069 | with_gnu_ld | 
|  | 1070 | with_dmalloc | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1071 | enable_bounds_checking | 
|  | 1072 | enable_osx_universal_binary | 
|  | 1073 | with_threads | 
|  | 1074 | enable_openmp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1075 | enable_opencl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1076 | enable_largefile | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1077 | enable_shared | 
|  | 1078 | enable_static | 
|  | 1079 | with_pic | 
|  | 1080 | enable_fast_install | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1081 | with_sysroot | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1082 | enable_libtool_lock | 
|  | 1083 | with_included_ltdl | 
|  | 1084 | with_ltdl_include | 
|  | 1085 | with_ltdl_lib | 
|  | 1086 | enable_ltdl_install | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1087 | with_modules | 
|  | 1088 | enable_delegate_build | 
|  | 1089 | enable_deprecated | 
|  | 1090 | enable_installed | 
|  | 1091 | enable_cipher | 
|  | 1092 | enable_embeddable | 
|  | 1093 | enable_hdri | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1094 | enable_assert | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1095 | enable_maintainer_mode | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1096 | enable_ccmalloc | 
|  | 1097 | enable_efence | 
|  | 1098 | enable_prof | 
|  | 1099 | enable_gprof | 
|  | 1100 | enable_gcov | 
|  | 1101 | with_method_prefix | 
|  | 1102 | with_quantum_depth | 
|  | 1103 | with_cache | 
|  | 1104 | with_frozenpaths | 
|  | 1105 | with_magick_plus_plus | 
|  | 1106 | with_perl | 
|  | 1107 | with_perl_options | 
|  | 1108 | with_umem | 
|  | 1109 | with_libstdc | 
|  | 1110 | with_bzlib | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1111 | with_x | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1112 | with_zlib | 
|  | 1113 | with_autotrace | 
|  | 1114 | with_dps | 
|  | 1115 | with_djvu | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1116 | with_dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1117 | with_fftw | 
|  | 1118 | with_fpx | 
|  | 1119 | with_fontconfig | 
|  | 1120 | with_freetype | 
|  | 1121 | with_gslib | 
|  | 1122 | with_fontpath | 
|  | 1123 | with_gs_font_dir | 
|  | 1124 | with_gvc | 
|  | 1125 | with_jbig | 
|  | 1126 | with_jpeg | 
|  | 1127 | with_jp2 | 
|  | 1128 | with_lcms | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1129 | with_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1130 | with_lqr | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1131 | with_lzma | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1132 | with_openexr | 
|  | 1133 | with_png | 
|  | 1134 | with_rsvg | 
|  | 1135 | with_tiff | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1136 | with_webp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1137 | with_windows_font_dir | 
|  | 1138 | with_wmf | 
|  | 1139 | with_xml | 
|  | 1140 | ' | 
|  | 1141 | ac_precious_vars='build_alias | 
|  | 1142 | host_alias | 
|  | 1143 | target_alias | 
|  | 1144 | CC | 
|  | 1145 | CFLAGS | 
|  | 1146 | LDFLAGS | 
|  | 1147 | LIBS | 
|  | 1148 | CPPFLAGS | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1149 | CPP | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1150 | CXX | 
|  | 1151 | CXXFLAGS | 
|  | 1152 | CCC | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1153 | PKG_CONFIG | 
|  | 1154 | CXXCPP | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1155 | XMKMF | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1156 | AUTOTRACE_CFLAGS | 
|  | 1157 | AUTOTRACE_LIBS | 
|  | 1158 | FONTCONFIG_CFLAGS | 
|  | 1159 | FONTCONFIG_LIBS | 
|  | 1160 | GVC_CFLAGS | 
|  | 1161 | GVC_LIBS | 
|  | 1162 | LQR_CFLAGS | 
|  | 1163 | LQR_LIBS | 
|  | 1164 | OPENEXR_CFLAGS | 
|  | 1165 | OPENEXR_LIBS | 
|  | 1166 | RSVG_CFLAGS | 
|  | 1167 | RSVG_LIBS | 
|  | 1168 | CAIRO_SVG_CFLAGS | 
|  | 1169 | CAIRO_SVG_LIBS' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1170 |  | 
|  | 1171 |  | 
|  | 1172 | # Initialize some variables set by options. | 
|  | 1173 | ac_init_help= | 
|  | 1174 | ac_init_version=false | 
|  | 1175 | ac_unrecognized_opts= | 
|  | 1176 | ac_unrecognized_sep= | 
|  | 1177 | # The variables have the same names as the options, with | 
|  | 1178 | # dashes changed to underlines. | 
|  | 1179 | cache_file=/dev/null | 
|  | 1180 | exec_prefix=NONE | 
|  | 1181 | no_create= | 
|  | 1182 | no_recursion= | 
|  | 1183 | prefix=NONE | 
|  | 1184 | program_prefix=NONE | 
|  | 1185 | program_suffix=NONE | 
|  | 1186 | program_transform_name=s,x,x, | 
|  | 1187 | silent= | 
|  | 1188 | site= | 
|  | 1189 | srcdir= | 
|  | 1190 | verbose= | 
|  | 1191 | x_includes=NONE | 
|  | 1192 | x_libraries=NONE | 
|  | 1193 |  | 
|  | 1194 | # Installation directory options. | 
|  | 1195 | # These are left unexpanded so users can "make install exec_prefix=/foo" | 
|  | 1196 | # and all the variables that are supposed to be based on exec_prefix | 
|  | 1197 | # by default will actually change. | 
|  | 1198 | # Use braces instead of parens because sh, perl, etc. also accept them. | 
|  | 1199 | # (The list follows the same order as the GNU Coding Standards.) | 
|  | 1200 | bindir='${exec_prefix}/bin' | 
|  | 1201 | sbindir='${exec_prefix}/sbin' | 
|  | 1202 | libexecdir='${exec_prefix}/libexec' | 
|  | 1203 | datarootdir='${prefix}/share' | 
|  | 1204 | datadir='${datarootdir}' | 
|  | 1205 | sysconfdir='${prefix}/etc' | 
|  | 1206 | sharedstatedir='${prefix}/com' | 
|  | 1207 | localstatedir='${prefix}/var' | 
|  | 1208 | includedir='${prefix}/include' | 
|  | 1209 | oldincludedir='/usr/include' | 
|  | 1210 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | 
|  | 1211 | infodir='${datarootdir}/info' | 
|  | 1212 | htmldir='${docdir}' | 
|  | 1213 | dvidir='${docdir}' | 
|  | 1214 | pdfdir='${docdir}' | 
|  | 1215 | psdir='${docdir}' | 
|  | 1216 | libdir='${exec_prefix}/lib' | 
|  | 1217 | localedir='${datarootdir}/locale' | 
|  | 1218 | mandir='${datarootdir}/man' | 
|  | 1219 |  | 
|  | 1220 | ac_prev= | 
|  | 1221 | ac_dashdash= | 
|  | 1222 | for ac_option | 
|  | 1223 | do | 
|  | 1224 | # If the previous option needs an argument, assign it. | 
|  | 1225 | if test -n "$ac_prev"; then | 
|  | 1226 | eval $ac_prev=\$ac_option | 
|  | 1227 | ac_prev= | 
|  | 1228 | continue | 
|  | 1229 | fi | 
|  | 1230 |  | 
|  | 1231 | case $ac_option in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1232 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | 
|  | 1233 | *=)   ac_optarg= ;; | 
|  | 1234 | *)    ac_optarg=yes ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1235 | esac | 
|  | 1236 |  | 
|  | 1237 | # Accept the important Cygnus configure options, so we can diagnose typos. | 
|  | 1238 |  | 
|  | 1239 | case $ac_dashdash$ac_option in | 
|  | 1240 | --) | 
|  | 1241 | ac_dashdash=yes ;; | 
|  | 1242 |  | 
|  | 1243 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
|  | 1244 | ac_prev=bindir ;; | 
|  | 1245 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
|  | 1246 | bindir=$ac_optarg ;; | 
|  | 1247 |  | 
|  | 1248 | -build | --build | --buil | --bui | --bu) | 
|  | 1249 | ac_prev=build_alias ;; | 
|  | 1250 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
|  | 1251 | build_alias=$ac_optarg ;; | 
|  | 1252 |  | 
|  | 1253 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
|  | 1254 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
|  | 1255 | ac_prev=cache_file ;; | 
|  | 1256 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
|  | 1257 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
|  | 1258 | cache_file=$ac_optarg ;; | 
|  | 1259 |  | 
|  | 1260 | --config-cache | -C) | 
|  | 1261 | cache_file=config.cache ;; | 
|  | 1262 |  | 
|  | 1263 | -datadir | --datadir | --datadi | --datad) | 
|  | 1264 | ac_prev=datadir ;; | 
|  | 1265 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | 
|  | 1266 | datadir=$ac_optarg ;; | 
|  | 1267 |  | 
|  | 1268 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | 
|  | 1269 | | --dataroo | --dataro | --datar) | 
|  | 1270 | ac_prev=datarootdir ;; | 
|  | 1271 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | 
|  | 1272 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | 
|  | 1273 | datarootdir=$ac_optarg ;; | 
|  | 1274 |  | 
|  | 1275 | -disable-* | --disable-*) | 
|  | 1276 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | 
|  | 1277 | # Reject names that are not valid shell variable names. | 
|  | 1278 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1279 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1280 | ac_useropt_orig=$ac_useropt | 
|  | 1281 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1282 | case $ac_user_opts in | 
|  | 1283 | *" | 
|  | 1284 | "enable_$ac_useropt" | 
|  | 1285 | "*) ;; | 
|  | 1286 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | 
|  | 1287 | ac_unrecognized_sep=', ';; | 
|  | 1288 | esac | 
|  | 1289 | eval enable_$ac_useropt=no ;; | 
|  | 1290 |  | 
|  | 1291 | -docdir | --docdir | --docdi | --doc | --do) | 
|  | 1292 | ac_prev=docdir ;; | 
|  | 1293 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | 
|  | 1294 | docdir=$ac_optarg ;; | 
|  | 1295 |  | 
|  | 1296 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | 
|  | 1297 | ac_prev=dvidir ;; | 
|  | 1298 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | 
|  | 1299 | dvidir=$ac_optarg ;; | 
|  | 1300 |  | 
|  | 1301 | -enable-* | --enable-*) | 
|  | 1302 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | 
|  | 1303 | # Reject names that are not valid shell variable names. | 
|  | 1304 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1305 | as_fn_error $? "invalid feature name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1306 | ac_useropt_orig=$ac_useropt | 
|  | 1307 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1308 | case $ac_user_opts in | 
|  | 1309 | *" | 
|  | 1310 | "enable_$ac_useropt" | 
|  | 1311 | "*) ;; | 
|  | 1312 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | 
|  | 1313 | ac_unrecognized_sep=', ';; | 
|  | 1314 | esac | 
|  | 1315 | eval enable_$ac_useropt=\$ac_optarg ;; | 
|  | 1316 |  | 
|  | 1317 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
|  | 1318 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
|  | 1319 | | --exec | --exe | --ex) | 
|  | 1320 | ac_prev=exec_prefix ;; | 
|  | 1321 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
|  | 1322 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
|  | 1323 | | --exec=* | --exe=* | --ex=*) | 
|  | 1324 | exec_prefix=$ac_optarg ;; | 
|  | 1325 |  | 
|  | 1326 | -gas | --gas | --ga | --g) | 
|  | 1327 | # Obsolete; use --with-gas. | 
|  | 1328 | with_gas=yes ;; | 
|  | 1329 |  | 
|  | 1330 | -help | --help | --hel | --he | -h) | 
|  | 1331 | ac_init_help=long ;; | 
|  | 1332 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | 
|  | 1333 | ac_init_help=recursive ;; | 
|  | 1334 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | 
|  | 1335 | ac_init_help=short ;; | 
|  | 1336 |  | 
|  | 1337 | -host | --host | --hos | --ho) | 
|  | 1338 | ac_prev=host_alias ;; | 
|  | 1339 | -host=* | --host=* | --hos=* | --ho=*) | 
|  | 1340 | host_alias=$ac_optarg ;; | 
|  | 1341 |  | 
|  | 1342 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | 
|  | 1343 | ac_prev=htmldir ;; | 
|  | 1344 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | 
|  | 1345 | | --ht=*) | 
|  | 1346 | htmldir=$ac_optarg ;; | 
|  | 1347 |  | 
|  | 1348 | -includedir | --includedir | --includedi | --included | --include \ | 
|  | 1349 | | --includ | --inclu | --incl | --inc) | 
|  | 1350 | ac_prev=includedir ;; | 
|  | 1351 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
|  | 1352 | | --includ=* | --inclu=* | --incl=* | --inc=*) | 
|  | 1353 | includedir=$ac_optarg ;; | 
|  | 1354 |  | 
|  | 1355 | -infodir | --infodir | --infodi | --infod | --info | --inf) | 
|  | 1356 | ac_prev=infodir ;; | 
|  | 1357 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
|  | 1358 | infodir=$ac_optarg ;; | 
|  | 1359 |  | 
|  | 1360 | -libdir | --libdir | --libdi | --libd) | 
|  | 1361 | ac_prev=libdir ;; | 
|  | 1362 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
|  | 1363 | libdir=$ac_optarg ;; | 
|  | 1364 |  | 
|  | 1365 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
|  | 1366 | | --libexe | --libex | --libe) | 
|  | 1367 | ac_prev=libexecdir ;; | 
|  | 1368 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
|  | 1369 | | --libexe=* | --libex=* | --libe=*) | 
|  | 1370 | libexecdir=$ac_optarg ;; | 
|  | 1371 |  | 
|  | 1372 | -localedir | --localedir | --localedi | --localed | --locale) | 
|  | 1373 | ac_prev=localedir ;; | 
|  | 1374 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | 
|  | 1375 | localedir=$ac_optarg ;; | 
|  | 1376 |  | 
|  | 1377 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
|  | 1378 | | --localstate | --localstat | --localsta | --localst | --locals) | 
|  | 1379 | ac_prev=localstatedir ;; | 
|  | 1380 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
|  | 1381 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | 
|  | 1382 | localstatedir=$ac_optarg ;; | 
|  | 1383 |  | 
|  | 1384 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
|  | 1385 | ac_prev=mandir ;; | 
|  | 1386 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
|  | 1387 | mandir=$ac_optarg ;; | 
|  | 1388 |  | 
|  | 1389 | -nfp | --nfp | --nf) | 
|  | 1390 | # Obsolete; use --without-fp. | 
|  | 1391 | with_fp=no ;; | 
|  | 1392 |  | 
|  | 1393 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
|  | 1394 | | --no-cr | --no-c | -n) | 
|  | 1395 | no_create=yes ;; | 
|  | 1396 |  | 
|  | 1397 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
|  | 1398 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
|  | 1399 | no_recursion=yes ;; | 
|  | 1400 |  | 
|  | 1401 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
|  | 1402 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
|  | 1403 | | --oldin | --oldi | --old | --ol | --o) | 
|  | 1404 | ac_prev=oldincludedir ;; | 
|  | 1405 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
|  | 1406 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
|  | 1407 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
|  | 1408 | oldincludedir=$ac_optarg ;; | 
|  | 1409 |  | 
|  | 1410 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
|  | 1411 | ac_prev=prefix ;; | 
|  | 1412 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
|  | 1413 | prefix=$ac_optarg ;; | 
|  | 1414 |  | 
|  | 1415 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
|  | 1416 | | --program-pre | --program-pr | --program-p) | 
|  | 1417 | ac_prev=program_prefix ;; | 
|  | 1418 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
|  | 1419 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
|  | 1420 | program_prefix=$ac_optarg ;; | 
|  | 1421 |  | 
|  | 1422 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
|  | 1423 | | --program-suf | --program-su | --program-s) | 
|  | 1424 | ac_prev=program_suffix ;; | 
|  | 1425 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
|  | 1426 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
|  | 1427 | program_suffix=$ac_optarg ;; | 
|  | 1428 |  | 
|  | 1429 | -program-transform-name | --program-transform-name \ | 
|  | 1430 | | --program-transform-nam | --program-transform-na \ | 
|  | 1431 | | --program-transform-n | --program-transform- \ | 
|  | 1432 | | --program-transform | --program-transfor \ | 
|  | 1433 | | --program-transfo | --program-transf \ | 
|  | 1434 | | --program-trans | --program-tran \ | 
|  | 1435 | | --progr-tra | --program-tr | --program-t) | 
|  | 1436 | ac_prev=program_transform_name ;; | 
|  | 1437 | -program-transform-name=* | --program-transform-name=* \ | 
|  | 1438 | | --program-transform-nam=* | --program-transform-na=* \ | 
|  | 1439 | | --program-transform-n=* | --program-transform-=* \ | 
|  | 1440 | | --program-transform=* | --program-transfor=* \ | 
|  | 1441 | | --program-transfo=* | --program-transf=* \ | 
|  | 1442 | | --program-trans=* | --program-tran=* \ | 
|  | 1443 | | --progr-tra=* | --program-tr=* | --program-t=*) | 
|  | 1444 | program_transform_name=$ac_optarg ;; | 
|  | 1445 |  | 
|  | 1446 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | 
|  | 1447 | ac_prev=pdfdir ;; | 
|  | 1448 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | 
|  | 1449 | pdfdir=$ac_optarg ;; | 
|  | 1450 |  | 
|  | 1451 | -psdir | --psdir | --psdi | --psd | --ps) | 
|  | 1452 | ac_prev=psdir ;; | 
|  | 1453 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | 
|  | 1454 | psdir=$ac_optarg ;; | 
|  | 1455 |  | 
|  | 1456 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 1457 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 1458 | silent=yes ;; | 
|  | 1459 |  | 
|  | 1460 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
|  | 1461 | ac_prev=sbindir ;; | 
|  | 1462 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
|  | 1463 | | --sbi=* | --sb=*) | 
|  | 1464 | sbindir=$ac_optarg ;; | 
|  | 1465 |  | 
|  | 1466 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
|  | 1467 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
|  | 1468 | | --sharedst | --shareds | --shared | --share | --shar \ | 
|  | 1469 | | --sha | --sh) | 
|  | 1470 | ac_prev=sharedstatedir ;; | 
|  | 1471 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
|  | 1472 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
|  | 1473 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
|  | 1474 | | --sha=* | --sh=*) | 
|  | 1475 | sharedstatedir=$ac_optarg ;; | 
|  | 1476 |  | 
|  | 1477 | -site | --site | --sit) | 
|  | 1478 | ac_prev=site ;; | 
|  | 1479 | -site=* | --site=* | --sit=*) | 
|  | 1480 | site=$ac_optarg ;; | 
|  | 1481 |  | 
|  | 1482 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
|  | 1483 | ac_prev=srcdir ;; | 
|  | 1484 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
|  | 1485 | srcdir=$ac_optarg ;; | 
|  | 1486 |  | 
|  | 1487 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
|  | 1488 | | --syscon | --sysco | --sysc | --sys | --sy) | 
|  | 1489 | ac_prev=sysconfdir ;; | 
|  | 1490 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
|  | 1491 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
|  | 1492 | sysconfdir=$ac_optarg ;; | 
|  | 1493 |  | 
|  | 1494 | -target | --target | --targe | --targ | --tar | --ta | --t) | 
|  | 1495 | ac_prev=target_alias ;; | 
|  | 1496 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
|  | 1497 | target_alias=$ac_optarg ;; | 
|  | 1498 |  | 
|  | 1499 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
|  | 1500 | verbose=yes ;; | 
|  | 1501 |  | 
|  | 1502 | -version | --version | --versio | --versi | --vers | -V) | 
|  | 1503 | ac_init_version=: ;; | 
|  | 1504 |  | 
|  | 1505 | -with-* | --with-*) | 
|  | 1506 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | 
|  | 1507 | # Reject names that are not valid shell variable names. | 
|  | 1508 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1509 | as_fn_error $? "invalid package name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1510 | ac_useropt_orig=$ac_useropt | 
|  | 1511 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1512 | case $ac_user_opts in | 
|  | 1513 | *" | 
|  | 1514 | "with_$ac_useropt" | 
|  | 1515 | "*) ;; | 
|  | 1516 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | 
|  | 1517 | ac_unrecognized_sep=', ';; | 
|  | 1518 | esac | 
|  | 1519 | eval with_$ac_useropt=\$ac_optarg ;; | 
|  | 1520 |  | 
|  | 1521 | -without-* | --without-*) | 
|  | 1522 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | 
|  | 1523 | # Reject names that are not valid shell variable names. | 
|  | 1524 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1525 | as_fn_error $? "invalid package name: $ac_useropt" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1526 | ac_useropt_orig=$ac_useropt | 
|  | 1527 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | 
|  | 1528 | case $ac_user_opts in | 
|  | 1529 | *" | 
|  | 1530 | "with_$ac_useropt" | 
|  | 1531 | "*) ;; | 
|  | 1532 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | 
|  | 1533 | ac_unrecognized_sep=', ';; | 
|  | 1534 | esac | 
|  | 1535 | eval with_$ac_useropt=no ;; | 
|  | 1536 |  | 
|  | 1537 | --x) | 
|  | 1538 | # Obsolete; use --with-x. | 
|  | 1539 | with_x=yes ;; | 
|  | 1540 |  | 
|  | 1541 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
|  | 1542 | | --x-incl | --x-inc | --x-in | --x-i) | 
|  | 1543 | ac_prev=x_includes ;; | 
|  | 1544 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
|  | 1545 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
|  | 1546 | x_includes=$ac_optarg ;; | 
|  | 1547 |  | 
|  | 1548 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
|  | 1549 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
|  | 1550 | ac_prev=x_libraries ;; | 
|  | 1551 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
|  | 1552 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
|  | 1553 | x_libraries=$ac_optarg ;; | 
|  | 1554 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1555 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | 
|  | 1556 | Try \`$0 --help' for more information" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1557 | ;; | 
|  | 1558 |  | 
|  | 1559 | *=*) | 
|  | 1560 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | 
|  | 1561 | # Reject names that are not valid shell variable names. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1562 | case $ac_envvar in #( | 
|  | 1563 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1564 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1565 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1566 | eval $ac_envvar=\$ac_optarg | 
|  | 1567 | export $ac_envvar ;; | 
|  | 1568 |  | 
|  | 1569 | *) | 
|  | 1570 | # FIXME: should be removed in autoconf 3.0. | 
|  | 1571 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | 
|  | 1572 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | 
|  | 1573 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1574 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1575 | ;; | 
|  | 1576 |  | 
|  | 1577 | esac | 
|  | 1578 | done | 
|  | 1579 |  | 
|  | 1580 | if test -n "$ac_prev"; then | 
|  | 1581 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1582 | as_fn_error $? "missing argument to $ac_option" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1583 | fi | 
|  | 1584 |  | 
|  | 1585 | if test -n "$ac_unrecognized_opts"; then | 
|  | 1586 | case $enable_option_checking in | 
|  | 1587 | no) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1588 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1589 | *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | 
|  | 1590 | esac | 
|  | 1591 | fi | 
|  | 1592 |  | 
|  | 1593 | # Check all directory arguments for consistency. | 
|  | 1594 | for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 
|  | 1595 | datadir sysconfdir sharedstatedir localstatedir includedir \ | 
|  | 1596 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | 
|  | 1597 | libdir localedir mandir | 
|  | 1598 | do | 
|  | 1599 | eval ac_val=\$$ac_var | 
|  | 1600 | # Remove trailing slashes. | 
|  | 1601 | case $ac_val in | 
|  | 1602 | */ ) | 
|  | 1603 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | 
|  | 1604 | eval $ac_var=\$ac_val;; | 
|  | 1605 | esac | 
|  | 1606 | # Be sure to have absolute directory names. | 
|  | 1607 | case $ac_val in | 
|  | 1608 | [\\/$]* | ?:[\\/]* )  continue;; | 
|  | 1609 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | 
|  | 1610 | esac | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1611 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1612 | done | 
|  | 1613 |  | 
|  | 1614 | # There might be people who depend on the old broken behavior: `$host' | 
|  | 1615 | # used to hold the argument of --host etc. | 
|  | 1616 | # FIXME: To remove some day. | 
|  | 1617 | build=$build_alias | 
|  | 1618 | host=$host_alias | 
|  | 1619 | target=$target_alias | 
|  | 1620 |  | 
|  | 1621 | # FIXME: To remove some day. | 
|  | 1622 | if test "x$host_alias" != x; then | 
|  | 1623 | if test "x$build_alias" = x; then | 
|  | 1624 | cross_compiling=maybe | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1625 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | 
|  | 1626 | If a cross compiler is detected then cross compile mode will be used" >&2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1627 | elif test "x$build_alias" != "x$host_alias"; then | 
|  | 1628 | cross_compiling=yes | 
|  | 1629 | fi | 
|  | 1630 | fi | 
|  | 1631 |  | 
|  | 1632 | ac_tool_prefix= | 
|  | 1633 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 
|  | 1634 |  | 
|  | 1635 | test "$silent" = yes && exec 6>/dev/null | 
|  | 1636 |  | 
|  | 1637 |  | 
|  | 1638 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 
|  | 1639 | ac_ls_di=`ls -di .` && | 
|  | 1640 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1641 | as_fn_error $? "working directory cannot be determined" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1642 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1643 | as_fn_error $? "pwd does not report name of working directory" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1644 |  | 
|  | 1645 |  | 
|  | 1646 | # Find the source files, if location was not specified. | 
|  | 1647 | if test -z "$srcdir"; then | 
|  | 1648 | ac_srcdir_defaulted=yes | 
|  | 1649 | # Try the directory containing this script, then the parent directory. | 
|  | 1650 | ac_confdir=`$as_dirname -- "$as_myself" || | 
|  | 1651 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 1652 | X"$as_myself" : 'X\(//\)[^/]' \| \ | 
|  | 1653 | X"$as_myself" : 'X\(//\)$' \| \ | 
|  | 1654 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 1655 | $as_echo X"$as_myself" | | 
|  | 1656 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 1657 | s//\1/ | 
|  | 1658 | q | 
|  | 1659 | } | 
|  | 1660 | /^X\(\/\/\)[^/].*/{ | 
|  | 1661 | s//\1/ | 
|  | 1662 | q | 
|  | 1663 | } | 
|  | 1664 | /^X\(\/\/\)$/{ | 
|  | 1665 | s//\1/ | 
|  | 1666 | q | 
|  | 1667 | } | 
|  | 1668 | /^X\(\/\).*/{ | 
|  | 1669 | s//\1/ | 
|  | 1670 | q | 
|  | 1671 | } | 
|  | 1672 | s/.*/./; q'` | 
|  | 1673 | srcdir=$ac_confdir | 
|  | 1674 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1675 | srcdir=.. | 
|  | 1676 | fi | 
|  | 1677 | else | 
|  | 1678 | ac_srcdir_defaulted=no | 
|  | 1679 | fi | 
|  | 1680 | if test ! -r "$srcdir/$ac_unique_file"; then | 
|  | 1681 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1682 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1683 | fi | 
|  | 1684 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | 
|  | 1685 | ac_abs_confdir=`( | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1686 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1687 | pwd)` | 
|  | 1688 | # When building in place, set srcdir=. | 
|  | 1689 | if test "$ac_abs_confdir" = "$ac_pwd"; then | 
|  | 1690 | srcdir=. | 
|  | 1691 | fi | 
|  | 1692 | # Remove unnecessary trailing slashes from srcdir. | 
|  | 1693 | # Double slashes in file names in object file debugging info | 
|  | 1694 | # mess up M-x gdb in Emacs. | 
|  | 1695 | case $srcdir in | 
|  | 1696 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | 
|  | 1697 | esac | 
|  | 1698 | for ac_var in $ac_precious_vars; do | 
|  | 1699 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1700 | eval ac_env_${ac_var}_value=\$${ac_var} | 
|  | 1701 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | 
|  | 1702 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | 
|  | 1703 | done | 
|  | 1704 |  | 
|  | 1705 | # | 
|  | 1706 | # Report the --help message. | 
|  | 1707 | # | 
|  | 1708 | if test "$ac_init_help" = "long"; then | 
|  | 1709 | # Omit some internal or obsolete options to make the list less imposing. | 
|  | 1710 | # This message is too long to be a string in the A/UX 3.1 sh. | 
|  | 1711 | cat <<_ACEOF | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 1712 | \`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1713 |  | 
|  | 1714 | Usage: $0 [OPTION]... [VAR=VALUE]... | 
|  | 1715 |  | 
|  | 1716 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 
|  | 1717 | VAR=VALUE.  See below for descriptions of some of the useful variables. | 
|  | 1718 |  | 
|  | 1719 | Defaults for the options are specified in brackets. | 
|  | 1720 |  | 
|  | 1721 | Configuration: | 
|  | 1722 | -h, --help              display this help and exit | 
|  | 1723 | --help=short        display options specific to this package | 
|  | 1724 | --help=recursive    display the short help of all the included packages | 
|  | 1725 | -V, --version           display version information and exit | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1726 | -q, --quiet, --silent   do not print \`checking ...' messages | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1727 | --cache-file=FILE   cache test results in FILE [disabled] | 
|  | 1728 | -C, --config-cache      alias for \`--cache-file=config.cache' | 
|  | 1729 | -n, --no-create         do not create output files | 
|  | 1730 | --srcdir=DIR        find the sources in DIR [configure dir or \`..'] | 
|  | 1731 |  | 
|  | 1732 | Installation directories: | 
|  | 1733 | --prefix=PREFIX         install architecture-independent files in PREFIX | 
|  | 1734 | [$ac_default_prefix] | 
|  | 1735 | --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
|  | 1736 | [PREFIX] | 
|  | 1737 |  | 
|  | 1738 | By default, \`make install' will install all the files in | 
|  | 1739 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify | 
|  | 1740 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | 
|  | 1741 | for instance \`--prefix=\$HOME'. | 
|  | 1742 |  | 
|  | 1743 | For better control, use the options below. | 
|  | 1744 |  | 
|  | 1745 | Fine tuning of the installation directories: | 
|  | 1746 | --bindir=DIR            user executables [EPREFIX/bin] | 
|  | 1747 | --sbindir=DIR           system admin executables [EPREFIX/sbin] | 
|  | 1748 | --libexecdir=DIR        program executables [EPREFIX/libexec] | 
|  | 1749 | --sysconfdir=DIR        read-only single-machine data [PREFIX/etc] | 
|  | 1750 | --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com] | 
|  | 1751 | --localstatedir=DIR     modifiable single-machine data [PREFIX/var] | 
|  | 1752 | --libdir=DIR            object code libraries [EPREFIX/lib] | 
|  | 1753 | --includedir=DIR        C header files [PREFIX/include] | 
|  | 1754 | --oldincludedir=DIR     C header files for non-gcc [/usr/include] | 
|  | 1755 | --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share] | 
|  | 1756 | --datadir=DIR           read-only architecture-independent data [DATAROOTDIR] | 
|  | 1757 | --infodir=DIR           info documentation [DATAROOTDIR/info] | 
|  | 1758 | --localedir=DIR         locale-dependent data [DATAROOTDIR/locale] | 
|  | 1759 | --mandir=DIR            man documentation [DATAROOTDIR/man] | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 1760 | --docdir=DIR            documentation root | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 1761 | [DATAROOTDIR/doc/ImageMagick-6.6.9] | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1762 | --htmldir=DIR           html documentation [DOCDIR] | 
|  | 1763 | --dvidir=DIR            dvi documentation [DOCDIR] | 
|  | 1764 | --pdfdir=DIR            pdf documentation [DOCDIR] | 
|  | 1765 | --psdir=DIR             ps documentation [DOCDIR] | 
|  | 1766 | _ACEOF | 
|  | 1767 |  | 
|  | 1768 | cat <<\_ACEOF | 
|  | 1769 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1770 | Program names: | 
|  | 1771 | --program-prefix=PREFIX            prepend PREFIX to installed program names | 
|  | 1772 | --program-suffix=SUFFIX            append SUFFIX to installed program names | 
|  | 1773 | --program-transform-name=PROGRAM   run sed PROGRAM on installed program names | 
|  | 1774 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1775 | X features: | 
|  | 1776 | --x-includes=DIR    X include files are in DIR | 
|  | 1777 | --x-libraries=DIR   X library files are in DIR | 
|  | 1778 |  | 
|  | 1779 | System types: | 
|  | 1780 | --build=BUILD     configure for building on BUILD [guessed] | 
|  | 1781 | --host=HOST       cross-compile to build programs to run on HOST [BUILD] | 
|  | 1782 | --target=TARGET   configure for building compilers for TARGET [HOST] | 
|  | 1783 | _ACEOF | 
|  | 1784 | fi | 
|  | 1785 |  | 
|  | 1786 | if test -n "$ac_init_help"; then | 
|  | 1787 | case $ac_init_help in | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 1788 | short | recursive ) echo "Configuration of ImageMagick 6.6.9:";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1789 | esac | 
|  | 1790 | cat <<\_ACEOF | 
|  | 1791 |  | 
|  | 1792 | Optional Features: | 
|  | 1793 | --disable-option-checking  ignore unrecognized --enable/--with options | 
|  | 1794 | --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
|  | 1795 | --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1796 | --enable-silent-rules          less verbose build output (undo: `make V=1') | 
|  | 1797 | --disable-silent-rules         verbose build output (undo: `make V=0') | 
|  | 1798 | --disable-dependency-tracking  speeds up one-time build | 
|  | 1799 | --enable-dependency-tracking   do not reject slow dependency extractors | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1800 | --bounds-checking       enable run-time bounds-checking | 
|  | 1801 | --enable-osx-universal-binary | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1802 | build universal binary on OS X [[default=no]] | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1803 | --disable-openmp        do not use OpenMP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1804 | --disable-opencl        do not use OpenCL | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1805 | --disable-largefile     omit support for large files | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1806 | --enable-shared[=PKGS]  build shared libraries [default=yes] | 
|  | 1807 | --enable-static[=PKGS]  build static libraries [default=yes] | 
|  | 1808 | --enable-fast-install[=PKGS] | 
|  | 1809 | optimize for fast installation [default=yes] | 
|  | 1810 | --disable-libtool-lock  avoid locking (might break parallel builds) | 
|  | 1811 | --enable-ltdl-install   install libltdl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1812 | --enable-delegate-build look for delegate libraries in build directory | 
|  | 1813 | --disable-deprecated    exclude deprecated methods in MagickCore and | 
|  | 1814 | MagickWand API's | 
|  | 1815 | --disable-installed     Formally install ImageMagick under PREFIX | 
|  | 1816 | --disable-cipher        disable enciphering and deciphering image pixels | 
|  | 1817 | --enable-embeddable     enable self-contained, embeddable, | 
|  | 1818 | zero-configuration ImageMagick | 
|  | 1819 | --enable-hdri           accurately represent the wide range of intensity | 
|  | 1820 | levels found in real scenes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1821 | --disable-assert        disable assert() statements in build | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1822 | --enable-maintainer-mode  enable make rules and dependencies not useful | 
|  | 1823 | (and sometimes confusing) to the casual installer | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1824 | --enable-ccmalloc       enable 'ccmalloc' memory debug support | 
|  | 1825 | --enable-efence         enable 'efence' memory debug support | 
|  | 1826 | --enable-prof           enable 'prof' profiling support | 
|  | 1827 | --enable-gprof          enable 'gprof' profiling support | 
|  | 1828 | --enable-gcov           enable 'gcov' profiling support | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1829 | --disable-assert        turn off assertions | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1830 |  | 
|  | 1831 | Optional Packages: | 
|  | 1832 | --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
|  | 1833 | --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1834 | --with-gnu-ld           assume the C compiler uses GNU ld [default=no] | 
|  | 1835 | --with-dmalloc          use dmalloc, as in | 
|  | 1836 | http://www.dmalloc.com/dmalloc.tar.gz | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1837 | --without-threads       disable threads support | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1838 | --with-pic              try to use only PIC/non-PIC objects [default=use | 
|  | 1839 | both] | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1840 | --with-sysroot=DIR Search for dependent libraries within DIR | 
|  | 1841 | (or the compiler's sysroot if not specified). | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1842 | --with-included-ltdl    use the GNU ltdl sources included here | 
|  | 1843 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | 
|  | 1844 | --with-ltdl-lib=DIR     use the libltdl.la installed in DIR | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1845 | --with-modules          enable building dynamically loadable modules | 
|  | 1846 | --with-method-prefix=PREFIX | 
|  | 1847 | prefix MagickCore API methods | 
|  | 1848 | --with-quantum-depth=DEPTH | 
|  | 1849 | number of bits in a pixel quantum (default 16) | 
|  | 1850 | --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available | 
|  | 1851 | memory) | 
|  | 1852 | --with-frozenpaths      freeze delegate paths | 
|  | 1853 | --without-magick-plus-plus | 
|  | 1854 | disable build/install of Magick++ | 
|  | 1855 | --with-perl             enable build/install of PerlMagick | 
|  | 1856 | --with-perl-options=OPTIONS | 
|  | 1857 | options to pass on command-line when generating | 
|  | 1858 | PerlMagick's build file | 
|  | 1859 | --with-umem             enable umem memory allocation library support | 
|  | 1860 | --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++) | 
|  | 1861 | --without-bzlib         disable BZLIB support | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1862 | --with-x                use the X Window System | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1863 | --without-zlib          disable ZLIB support | 
|  | 1864 | --with-autotrace        enable autotrace support | 
|  | 1865 | --without-dps           disable Display Postscript support | 
|  | 1866 | --without-djvu          disable DjVu support | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1867 | --with-dejavu-font-dir=DIR | 
|  | 1868 | DejaVu font directory | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1869 | --without-fftw          disable FFTW support | 
|  | 1870 | --without-fpx           disable FlashPIX support | 
|  | 1871 | --without-fontconfig    disable fontconfig support | 
|  | 1872 | --without-freetype      disable Freetype support | 
|  | 1873 | --without-gslib         enable Ghostscript library support | 
|  | 1874 | --with-fontpath=DIR     prepend to default font search path | 
|  | 1875 | --with-gs-font-dir=DIR  Ghostscript font directory | 
|  | 1876 | --without-gvc           disable GVC support | 
|  | 1877 | --without-jbig          disable JBIG support | 
|  | 1878 | --without-jpeg          disable JPEG support | 
|  | 1879 | --without-jp2           disable JPEG-2000 support | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1880 | --without-lcms          disable lcms (v1.1X) support | 
|  | 1881 | --without-lcms2         disable lcms (v2.X) support | 
| cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1882 | --without-lqr           disable Liquid Rescale support | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1883 | --without-lzma          disable LZMA support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1884 | --without-openexr       disable OpenEXR support | 
|  | 1885 | --without-png           disable PNG support | 
|  | 1886 | --without-rsvg          disable RSVG support | 
|  | 1887 | --without-tiff          disable TIFF support | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1888 | --without-webp          disable WEBP support | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1889 | --with-windows-font-dir=DIR | 
|  | 1890 | directory containing MS-Windows fonts | 
|  | 1891 | --without-wmf           disable WMF support | 
|  | 1892 | --without-xml           disable XML support | 
|  | 1893 |  | 
|  | 1894 | Some influential environment variables: | 
|  | 1895 | CC          C compiler command | 
|  | 1896 | CFLAGS      C compiler flags | 
|  | 1897 | LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a | 
|  | 1898 | nonstandard directory <lib dir> | 
|  | 1899 | LIBS        libraries to pass to the linker, e.g. -l<library> | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1900 | CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1901 | you have headers in a nonstandard directory <include dir> | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1902 | CPP         C preprocessor | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1903 | CXX         C++ compiler command | 
|  | 1904 | CXXFLAGS    C++ compiler flags | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1905 | PKG_CONFIG  path to pkg-config utility | 
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 1906 | CXXCPP      C++ preprocessor | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1907 | XMKMF       Path to xmkmf, Makefile generator for X Window System | 
|  | 1908 | AUTOTRACE_CFLAGS | 
|  | 1909 | C compiler flags for AUTOTRACE, overriding pkg-config | 
|  | 1910 | AUTOTRACE_LIBS | 
|  | 1911 | linker flags for AUTOTRACE, overriding pkg-config | 
|  | 1912 | FONTCONFIG_CFLAGS | 
|  | 1913 | C compiler flags for FONTCONFIG, overriding pkg-config | 
|  | 1914 | FONTCONFIG_LIBS | 
|  | 1915 | linker flags for FONTCONFIG, overriding pkg-config | 
|  | 1916 | GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config | 
|  | 1917 | GVC_LIBS    linker flags for GVC, overriding pkg-config | 
|  | 1918 | LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config | 
|  | 1919 | LQR_LIBS    linker flags for LQR, overriding pkg-config | 
|  | 1920 | OPENEXR_CFLAGS | 
|  | 1921 | C compiler flags for OPENEXR, overriding pkg-config | 
|  | 1922 | OPENEXR_LIBS | 
|  | 1923 | linker flags for OPENEXR, overriding pkg-config | 
|  | 1924 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config | 
|  | 1925 | RSVG_LIBS   linker flags for RSVG, overriding pkg-config | 
|  | 1926 | CAIRO_SVG_CFLAGS | 
|  | 1927 | C compiler flags for CAIRO_SVG, overriding pkg-config | 
|  | 1928 | CAIRO_SVG_LIBS | 
|  | 1929 | linker flags for CAIRO_SVG, overriding pkg-config | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1930 |  | 
|  | 1931 | Use these variables to override the choices made by `configure' or to help | 
|  | 1932 | it to find libraries and programs with nonstandard names/locations. | 
|  | 1933 |  | 
|  | 1934 | Report bugs to <http://www.imagemagick.org>. | 
|  | 1935 | _ACEOF | 
|  | 1936 | ac_status=$? | 
|  | 1937 | fi | 
|  | 1938 |  | 
|  | 1939 | if test "$ac_init_help" = "recursive"; then | 
|  | 1940 | # If there are subdirs, report their specific --help. | 
|  | 1941 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | 
|  | 1942 | test -d "$ac_dir" || | 
|  | 1943 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | 
|  | 1944 | continue | 
|  | 1945 | ac_builddir=. | 
|  | 1946 |  | 
|  | 1947 | case "$ac_dir" in | 
|  | 1948 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1949 | *) | 
|  | 1950 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
|  | 1951 | # A ".." for each directory in $ac_dir_suffix. | 
|  | 1952 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
|  | 1953 | case $ac_top_builddir_sub in | 
|  | 1954 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 1955 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 1956 | esac ;; | 
|  | 1957 | esac | 
|  | 1958 | ac_abs_top_builddir=$ac_pwd | 
|  | 1959 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 1960 | # for backward compatibility: | 
|  | 1961 | ac_top_builddir=$ac_top_build_prefix | 
|  | 1962 |  | 
|  | 1963 | case $srcdir in | 
|  | 1964 | .)  # We are building in place. | 
|  | 1965 | ac_srcdir=. | 
|  | 1966 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 1967 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 1968 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
|  | 1969 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 1970 | ac_top_srcdir=$srcdir | 
|  | 1971 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 1972 | *) # Relative name. | 
|  | 1973 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 1974 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 1975 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
|  | 1976 | esac | 
|  | 1977 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
|  | 1978 |  | 
|  | 1979 | cd "$ac_dir" || { ac_status=$?; continue; } | 
|  | 1980 | # Check for guested configure. | 
|  | 1981 | if test -f "$ac_srcdir/configure.gnu"; then | 
|  | 1982 | echo && | 
|  | 1983 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | 
|  | 1984 | elif test -f "$ac_srcdir/configure"; then | 
|  | 1985 | echo && | 
|  | 1986 | $SHELL "$ac_srcdir/configure" --help=recursive | 
|  | 1987 | else | 
|  | 1988 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | 
|  | 1989 | fi || ac_status=$? | 
|  | 1990 | cd "$ac_pwd" || { ac_status=$?; break; } | 
|  | 1991 | done | 
|  | 1992 | fi | 
|  | 1993 |  | 
|  | 1994 | test -n "$ac_init_help" && exit $ac_status | 
|  | 1995 | if $ac_init_version; then | 
|  | 1996 | cat <<\_ACEOF | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 1997 | ImageMagick configure 6.6.9 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1998 | generated by GNU Autoconf 2.68 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1999 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2000 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2001 | This configure script is free software; the Free Software Foundation | 
|  | 2002 | gives unlimited permission to copy, distribute and modify it. | 
|  | 2003 | _ACEOF | 
|  | 2004 | exit | 
|  | 2005 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2006 |  | 
|  | 2007 | ## ------------------------ ## | 
|  | 2008 | ## Autoconf initialization. ## | 
|  | 2009 | ## ------------------------ ## | 
|  | 2010 |  | 
|  | 2011 | # ac_fn_c_try_compile LINENO | 
|  | 2012 | # -------------------------- | 
|  | 2013 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 2014 | ac_fn_c_try_compile () | 
|  | 2015 | { | 
|  | 2016 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2017 | rm -f conftest.$ac_objext | 
|  | 2018 | if { { ac_try="$ac_compile" | 
|  | 2019 | case "(($ac_try" in | 
|  | 2020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2021 | *) ac_try_echo=$ac_try;; | 
|  | 2022 | esac | 
|  | 2023 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2024 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2025 | (eval "$ac_compile") 2>conftest.err | 
|  | 2026 | ac_status=$? | 
|  | 2027 | if test -s conftest.err; then | 
|  | 2028 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2029 | cat conftest.er1 >&5 | 
|  | 2030 | mv -f conftest.er1 conftest.err | 
|  | 2031 | fi | 
|  | 2032 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2033 | test $ac_status = 0; } && { | 
|  | 2034 | test -z "$ac_c_werror_flag" || | 
|  | 2035 | test ! -s conftest.err | 
|  | 2036 | } && test -s conftest.$ac_objext; then : | 
|  | 2037 | ac_retval=0 | 
|  | 2038 | else | 
|  | 2039 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2040 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2041 |  | 
|  | 2042 | ac_retval=1 | 
|  | 2043 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2044 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2045 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2046 |  | 
|  | 2047 | } # ac_fn_c_try_compile | 
|  | 2048 |  | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2049 | # ac_fn_c_try_cpp LINENO | 
|  | 2050 | # ---------------------- | 
|  | 2051 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 2052 | ac_fn_c_try_cpp () | 
|  | 2053 | { | 
|  | 2054 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2055 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 2056 | case "(($ac_try" in | 
|  | 2057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2058 | *) ac_try_echo=$ac_try;; | 
|  | 2059 | esac | 
|  | 2060 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2061 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2062 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 2063 | ac_status=$? | 
|  | 2064 | if test -s conftest.err; then | 
|  | 2065 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2066 | cat conftest.er1 >&5 | 
|  | 2067 | mv -f conftest.er1 conftest.err | 
|  | 2068 | fi | 
|  | 2069 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2070 | test $ac_status = 0; } > conftest.i && { | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2071 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | 
|  | 2072 | test ! -s conftest.err | 
|  | 2073 | }; then : | 
|  | 2074 | ac_retval=0 | 
|  | 2075 | else | 
|  | 2076 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2077 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2078 |  | 
|  | 2079 | ac_retval=1 | 
|  | 2080 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2081 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2082 | as_fn_set_status $ac_retval | 
|  | 2083 |  | 
|  | 2084 | } # ac_fn_c_try_cpp | 
|  | 2085 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2086 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 2087 | # ------------------------------------------------------- | 
|  | 2088 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 2089 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 2090 | # accordingly. | 
|  | 2091 | ac_fn_c_check_header_mongrel () | 
|  | 2092 | { | 
|  | 2093 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2094 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2096 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2097 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2098 | $as_echo_n "(cached) " >&6 | 
|  | 2099 | fi | 
|  | 2100 | eval ac_res=\$$3 | 
|  | 2101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2102 | $as_echo "$ac_res" >&6; } | 
|  | 2103 | else | 
|  | 2104 | # Is the header compilable? | 
|  | 2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 2106 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 2107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2108 | /* end confdefs.h.  */ | 
|  | 2109 | $4 | 
|  | 2110 | #include <$2> | 
|  | 2111 | _ACEOF | 
|  | 2112 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2113 | ac_header_compiler=yes | 
|  | 2114 | else | 
|  | 2115 | ac_header_compiler=no | 
|  | 2116 | fi | 
|  | 2117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 2119 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 2120 |  | 
|  | 2121 | # Is the header present? | 
|  | 2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 2123 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 2124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2125 | /* end confdefs.h.  */ | 
|  | 2126 | #include <$2> | 
|  | 2127 | _ACEOF | 
|  | 2128 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 2129 | ac_header_preproc=yes | 
|  | 2130 | else | 
|  | 2131 | ac_header_preproc=no | 
|  | 2132 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2133 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 2135 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 2136 |  | 
|  | 2137 | # So?  What about this header? | 
|  | 2138 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | 
|  | 2139 | yes:no: ) | 
|  | 2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 2141 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2143 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 2144 | ;; | 
|  | 2145 | no:yes:* ) | 
|  | 2146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 2147 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 2148 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 2149 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 2151 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 2153 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 2154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2155 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2156 | ( $as_echo "## ----------------------------------------- ## | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2157 | ## Report this to http://www.imagemagick.org ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2158 | ## ----------------------------------------- ##" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2159 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 2160 | ;; | 
|  | 2161 | esac | 
|  | 2162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2163 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2164 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2165 | $as_echo_n "(cached) " >&6 | 
|  | 2166 | else | 
|  | 2167 | eval "$3=\$ac_header_compiler" | 
|  | 2168 | fi | 
|  | 2169 | eval ac_res=\$$3 | 
|  | 2170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2171 | $as_echo "$ac_res" >&6; } | 
|  | 2172 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2173 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2174 |  | 
|  | 2175 | } # ac_fn_c_check_header_mongrel | 
|  | 2176 |  | 
|  | 2177 | # ac_fn_c_try_run LINENO | 
|  | 2178 | # ---------------------- | 
|  | 2179 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | 
|  | 2180 | # that executables *can* be run. | 
|  | 2181 | ac_fn_c_try_run () | 
|  | 2182 | { | 
|  | 2183 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2184 | if { { ac_try="$ac_link" | 
|  | 2185 | case "(($ac_try" in | 
|  | 2186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2187 | *) ac_try_echo=$ac_try;; | 
|  | 2188 | esac | 
|  | 2189 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2190 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2191 | (eval "$ac_link") 2>&5 | 
|  | 2192 | ac_status=$? | 
|  | 2193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2194 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | 
|  | 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_try") 2>&5 | 
|  | 2202 | ac_status=$? | 
|  | 2203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2204 | test $ac_status = 0; }; }; then : | 
|  | 2205 | ac_retval=0 | 
|  | 2206 | else | 
|  | 2207 | $as_echo "$as_me: program exited with status $ac_status" >&5 | 
|  | 2208 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2209 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2210 |  | 
|  | 2211 | ac_retval=$ac_status | 
|  | 2212 | fi | 
|  | 2213 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2214 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2215 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2216 |  | 
|  | 2217 | } # ac_fn_c_try_run | 
|  | 2218 |  | 
|  | 2219 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | 
|  | 2220 | # ------------------------------------------------------- | 
|  | 2221 | # Tests whether HEADER exists and can be compiled using the include files in | 
|  | 2222 | # INCLUDES, setting the cache variable VAR accordingly. | 
|  | 2223 | ac_fn_c_check_header_compile () | 
|  | 2224 | { | 
|  | 2225 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2227 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2228 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2229 | $as_echo_n "(cached) " >&6 | 
|  | 2230 | else | 
|  | 2231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2232 | /* end confdefs.h.  */ | 
|  | 2233 | $4 | 
|  | 2234 | #include <$2> | 
|  | 2235 | _ACEOF | 
|  | 2236 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2237 | eval "$3=yes" | 
|  | 2238 | else | 
|  | 2239 | eval "$3=no" | 
|  | 2240 | fi | 
|  | 2241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2242 | fi | 
|  | 2243 | eval ac_res=\$$3 | 
|  | 2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2245 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2246 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2247 |  | 
|  | 2248 | } # ac_fn_c_check_header_compile | 
|  | 2249 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2250 | # ac_fn_cxx_try_compile LINENO | 
|  | 2251 | # ---------------------------- | 
|  | 2252 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | 
|  | 2253 | ac_fn_cxx_try_compile () | 
|  | 2254 | { | 
|  | 2255 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2256 | rm -f conftest.$ac_objext | 
|  | 2257 | if { { ac_try="$ac_compile" | 
|  | 2258 | case "(($ac_try" in | 
|  | 2259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2260 | *) ac_try_echo=$ac_try;; | 
|  | 2261 | esac | 
|  | 2262 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2263 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2264 | (eval "$ac_compile") 2>conftest.err | 
|  | 2265 | ac_status=$? | 
|  | 2266 | if test -s conftest.err; then | 
|  | 2267 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2268 | cat conftest.er1 >&5 | 
|  | 2269 | mv -f conftest.er1 conftest.err | 
|  | 2270 | fi | 
|  | 2271 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2272 | test $ac_status = 0; } && { | 
|  | 2273 | test -z "$ac_cxx_werror_flag" || | 
|  | 2274 | test ! -s conftest.err | 
|  | 2275 | } && test -s conftest.$ac_objext; then : | 
|  | 2276 | ac_retval=0 | 
|  | 2277 | else | 
|  | 2278 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2279 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2280 |  | 
|  | 2281 | ac_retval=1 | 
|  | 2282 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2283 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2284 | as_fn_set_status $ac_retval | 
|  | 2285 |  | 
|  | 2286 | } # ac_fn_cxx_try_compile | 
|  | 2287 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2288 | # ac_fn_c_try_link LINENO | 
|  | 2289 | # ----------------------- | 
|  | 2290 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 2291 | ac_fn_c_try_link () | 
|  | 2292 | { | 
|  | 2293 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2294 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 2295 | if { { ac_try="$ac_link" | 
|  | 2296 | case "(($ac_try" in | 
|  | 2297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2298 | *) ac_try_echo=$ac_try;; | 
|  | 2299 | esac | 
|  | 2300 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2301 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2302 | (eval "$ac_link") 2>conftest.err | 
|  | 2303 | ac_status=$? | 
|  | 2304 | if test -s conftest.err; then | 
|  | 2305 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2306 | cat conftest.er1 >&5 | 
|  | 2307 | mv -f conftest.er1 conftest.err | 
|  | 2308 | fi | 
|  | 2309 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2310 | test $ac_status = 0; } && { | 
|  | 2311 | test -z "$ac_c_werror_flag" || | 
|  | 2312 | test ! -s conftest.err | 
|  | 2313 | } && test -s conftest$ac_exeext && { | 
|  | 2314 | test "$cross_compiling" = yes || | 
|  | 2315 | $as_test_x conftest$ac_exeext | 
|  | 2316 | }; then : | 
|  | 2317 | ac_retval=0 | 
|  | 2318 | else | 
|  | 2319 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2320 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2321 |  | 
|  | 2322 | ac_retval=1 | 
|  | 2323 | fi | 
|  | 2324 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 2325 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 2326 | # interfere with the next link command; also delete a directory that is | 
|  | 2327 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 2328 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2329 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2330 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2331 |  | 
|  | 2332 | } # ac_fn_c_try_link | 
|  | 2333 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2334 | # ac_fn_c_check_func LINENO FUNC VAR | 
|  | 2335 | # ---------------------------------- | 
|  | 2336 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | 
|  | 2337 | ac_fn_c_check_func () | 
|  | 2338 | { | 
|  | 2339 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2341 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2342 | if eval \${$3+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2343 | $as_echo_n "(cached) " >&6 | 
|  | 2344 | else | 
|  | 2345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2346 | /* end confdefs.h.  */ | 
|  | 2347 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | 
|  | 2348 | For example, HP-UX 11i <limits.h> declares gettimeofday.  */ | 
|  | 2349 | #define $2 innocuous_$2 | 
|  | 2350 |  | 
|  | 2351 | /* System header to define __stub macros and hopefully few prototypes, | 
|  | 2352 | which can conflict with char $2 (); below. | 
|  | 2353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 2354 | <limits.h> exists even on freestanding compilers.  */ | 
|  | 2355 |  | 
|  | 2356 | #ifdef __STDC__ | 
|  | 2357 | # include <limits.h> | 
|  | 2358 | #else | 
|  | 2359 | # include <assert.h> | 
|  | 2360 | #endif | 
|  | 2361 |  | 
|  | 2362 | #undef $2 | 
|  | 2363 |  | 
|  | 2364 | /* Override any GCC internal prototype to avoid an error. | 
|  | 2365 | Use char because int might match the return type of a GCC | 
|  | 2366 | builtin and then its argument prototype would still apply.  */ | 
|  | 2367 | #ifdef __cplusplus | 
|  | 2368 | extern "C" | 
|  | 2369 | #endif | 
|  | 2370 | char $2 (); | 
|  | 2371 | /* The GNU C library defines this for functions which it implements | 
|  | 2372 | to always fail with ENOSYS.  Some functions are actually named | 
|  | 2373 | something starting with __ and the normal name is an alias.  */ | 
|  | 2374 | #if defined __stub_$2 || defined __stub___$2 | 
|  | 2375 | choke me | 
|  | 2376 | #endif | 
|  | 2377 |  | 
|  | 2378 | int | 
|  | 2379 | main () | 
|  | 2380 | { | 
|  | 2381 | return $2 (); | 
|  | 2382 | ; | 
|  | 2383 | return 0; | 
|  | 2384 | } | 
|  | 2385 | _ACEOF | 
|  | 2386 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 2387 | eval "$3=yes" | 
|  | 2388 | else | 
|  | 2389 | eval "$3=no" | 
|  | 2390 | fi | 
|  | 2391 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 2392 | conftest$ac_exeext conftest.$ac_ext | 
|  | 2393 | fi | 
|  | 2394 | eval ac_res=\$$3 | 
|  | 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2396 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2397 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2398 |  | 
|  | 2399 | } # ac_fn_c_check_func | 
|  | 2400 |  | 
|  | 2401 | # ac_fn_cxx_try_cpp LINENO | 
|  | 2402 | # ------------------------ | 
|  | 2403 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | 
|  | 2404 | ac_fn_cxx_try_cpp () | 
|  | 2405 | { | 
|  | 2406 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2407 | if { { ac_try="$ac_cpp conftest.$ac_ext" | 
|  | 2408 | case "(($ac_try" in | 
|  | 2409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2410 | *) ac_try_echo=$ac_try;; | 
|  | 2411 | esac | 
|  | 2412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2413 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2414 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | 
|  | 2415 | ac_status=$? | 
|  | 2416 | if test -s conftest.err; then | 
|  | 2417 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2418 | cat conftest.er1 >&5 | 
|  | 2419 | mv -f conftest.er1 conftest.err | 
|  | 2420 | fi | 
|  | 2421 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2422 | test $ac_status = 0; } > conftest.i && { | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2423 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | 
|  | 2424 | test ! -s conftest.err | 
|  | 2425 | }; then : | 
|  | 2426 | ac_retval=0 | 
|  | 2427 | else | 
|  | 2428 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2429 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2430 |  | 
|  | 2431 | ac_retval=1 | 
|  | 2432 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2433 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2434 | as_fn_set_status $ac_retval | 
|  | 2435 |  | 
|  | 2436 | } # ac_fn_cxx_try_cpp | 
|  | 2437 |  | 
|  | 2438 | # ac_fn_cxx_try_link LINENO | 
|  | 2439 | # ------------------------- | 
|  | 2440 | # Try to link conftest.$ac_ext, and return whether this succeeded. | 
|  | 2441 | ac_fn_cxx_try_link () | 
|  | 2442 | { | 
|  | 2443 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2444 | rm -f conftest.$ac_objext conftest$ac_exeext | 
|  | 2445 | if { { ac_try="$ac_link" | 
|  | 2446 | case "(($ac_try" in | 
|  | 2447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 2448 | *) ac_try_echo=$ac_try;; | 
|  | 2449 | esac | 
|  | 2450 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 2451 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 2452 | (eval "$ac_link") 2>conftest.err | 
|  | 2453 | ac_status=$? | 
|  | 2454 | if test -s conftest.err; then | 
|  | 2455 | grep -v '^ *+' conftest.err >conftest.er1 | 
|  | 2456 | cat conftest.er1 >&5 | 
|  | 2457 | mv -f conftest.er1 conftest.err | 
|  | 2458 | fi | 
|  | 2459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 2460 | test $ac_status = 0; } && { | 
|  | 2461 | test -z "$ac_cxx_werror_flag" || | 
|  | 2462 | test ! -s conftest.err | 
|  | 2463 | } && test -s conftest$ac_exeext && { | 
|  | 2464 | test "$cross_compiling" = yes || | 
|  | 2465 | $as_test_x conftest$ac_exeext | 
|  | 2466 | }; then : | 
|  | 2467 | ac_retval=0 | 
|  | 2468 | else | 
|  | 2469 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 2470 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 2471 |  | 
|  | 2472 | ac_retval=1 | 
|  | 2473 | fi | 
|  | 2474 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | 
|  | 2475 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | 
|  | 2476 | # interfere with the next link command; also delete a directory that is | 
|  | 2477 | # left behind by Apple's compiler.  We do this before executing the actions. | 
|  | 2478 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2479 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2480 | as_fn_set_status $ac_retval | 
|  | 2481 |  | 
|  | 2482 | } # ac_fn_cxx_try_link | 
|  | 2483 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2484 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | 
|  | 2485 | # --------------------------------------------- | 
|  | 2486 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | 
|  | 2487 | # accordingly. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2488 | ac_fn_c_check_decl () | 
|  | 2489 | { | 
|  | 2490 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2491 | as_decl_name=`echo $2|sed 's/ *(.*//'` | 
|  | 2492 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | 
|  | 2493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | 
|  | 2494 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2495 | if eval \${$3+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2496 | $as_echo_n "(cached) " >&6 | 
|  | 2497 | else | 
|  | 2498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2499 | /* end confdefs.h.  */ | 
|  | 2500 | $4 | 
|  | 2501 | int | 
|  | 2502 | main () | 
|  | 2503 | { | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2504 | #ifndef $as_decl_name | 
|  | 2505 | #ifdef __cplusplus | 
|  | 2506 | (void) $as_decl_use; | 
|  | 2507 | #else | 
|  | 2508 | (void) $as_decl_name; | 
|  | 2509 | #endif | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2510 | #endif | 
|  | 2511 |  | 
|  | 2512 | ; | 
|  | 2513 | return 0; | 
|  | 2514 | } | 
|  | 2515 | _ACEOF | 
|  | 2516 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2517 | eval "$3=yes" | 
|  | 2518 | else | 
|  | 2519 | eval "$3=no" | 
|  | 2520 | fi | 
|  | 2521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2522 | fi | 
|  | 2523 | eval ac_res=\$$3 | 
|  | 2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2525 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2526 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2527 |  | 
|  | 2528 | } # ac_fn_c_check_decl | 
|  | 2529 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2530 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | 
|  | 2531 | # ------------------------------------------- | 
|  | 2532 | # Tests whether TYPE exists after having included INCLUDES, setting cache | 
|  | 2533 | # variable VAR accordingly. | 
|  | 2534 | ac_fn_c_check_type () | 
|  | 2535 | { | 
|  | 2536 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2538 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2539 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2540 | $as_echo_n "(cached) " >&6 | 
|  | 2541 | else | 
|  | 2542 | eval "$3=no" | 
|  | 2543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2544 | /* end confdefs.h.  */ | 
|  | 2545 | $4 | 
|  | 2546 | int | 
|  | 2547 | main () | 
|  | 2548 | { | 
|  | 2549 | if (sizeof ($2)) | 
|  | 2550 | return 0; | 
|  | 2551 | ; | 
|  | 2552 | return 0; | 
|  | 2553 | } | 
|  | 2554 | _ACEOF | 
|  | 2555 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2557 | /* end confdefs.h.  */ | 
|  | 2558 | $4 | 
|  | 2559 | int | 
|  | 2560 | main () | 
|  | 2561 | { | 
|  | 2562 | if (sizeof (($2))) | 
|  | 2563 | return 0; | 
|  | 2564 | ; | 
|  | 2565 | return 0; | 
|  | 2566 | } | 
|  | 2567 | _ACEOF | 
|  | 2568 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2569 |  | 
|  | 2570 | else | 
|  | 2571 | eval "$3=yes" | 
|  | 2572 | fi | 
|  | 2573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2574 | fi | 
|  | 2575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2576 | fi | 
|  | 2577 | eval ac_res=\$$3 | 
|  | 2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2579 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2580 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2581 |  | 
|  | 2582 | } # ac_fn_c_check_type | 
|  | 2583 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2584 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | 
|  | 2585 | # ---------------------------------------------------- | 
|  | 2586 | # Tries to find if the field MEMBER exists in type AGGR, after including | 
|  | 2587 | # INCLUDES, setting cache variable VAR accordingly. | 
|  | 2588 | ac_fn_c_check_member () | 
|  | 2589 | { | 
|  | 2590 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | 
|  | 2592 | $as_echo_n "checking for $2.$3... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2593 | if eval \${$4+:} false; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2594 | $as_echo_n "(cached) " >&6 | 
|  | 2595 | else | 
|  | 2596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2597 | /* end confdefs.h.  */ | 
|  | 2598 | $5 | 
|  | 2599 | int | 
|  | 2600 | main () | 
|  | 2601 | { | 
|  | 2602 | static $2 ac_aggr; | 
|  | 2603 | if (ac_aggr.$3) | 
|  | 2604 | return 0; | 
|  | 2605 | ; | 
|  | 2606 | return 0; | 
|  | 2607 | } | 
|  | 2608 | _ACEOF | 
|  | 2609 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2610 | eval "$4=yes" | 
|  | 2611 | else | 
|  | 2612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2613 | /* end confdefs.h.  */ | 
|  | 2614 | $5 | 
|  | 2615 | int | 
|  | 2616 | main () | 
|  | 2617 | { | 
|  | 2618 | static $2 ac_aggr; | 
|  | 2619 | if (sizeof ac_aggr.$3) | 
|  | 2620 | return 0; | 
|  | 2621 | ; | 
|  | 2622 | return 0; | 
|  | 2623 | } | 
|  | 2624 | _ACEOF | 
|  | 2625 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2626 | eval "$4=yes" | 
|  | 2627 | else | 
|  | 2628 | eval "$4=no" | 
|  | 2629 | fi | 
|  | 2630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2631 | fi | 
|  | 2632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2633 | fi | 
|  | 2634 | eval ac_res=\$$4 | 
|  | 2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2636 | $as_echo "$ac_res" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2637 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2638 |  | 
|  | 2639 | } # ac_fn_c_check_member | 
|  | 2640 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2641 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | 
|  | 2642 | # -------------------------------------------- | 
|  | 2643 | # Tries to find the compile-time value of EXPR in a program that includes | 
|  | 2644 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | 
|  | 2645 | # computed | 
|  | 2646 | ac_fn_c_compute_int () | 
|  | 2647 | { | 
|  | 2648 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 2649 | if test "$cross_compiling" = yes; then | 
|  | 2650 | # Depending upon the size, compute the lo and hi bounds. | 
|  | 2651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2652 | /* end confdefs.h.  */ | 
|  | 2653 | $4 | 
|  | 2654 | int | 
|  | 2655 | main () | 
|  | 2656 | { | 
|  | 2657 | static int test_array [1 - 2 * !(($2) >= 0)]; | 
|  | 2658 | test_array [0] = 0 | 
|  | 2659 |  | 
|  | 2660 | ; | 
|  | 2661 | return 0; | 
|  | 2662 | } | 
|  | 2663 | _ACEOF | 
|  | 2664 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2665 | ac_lo=0 ac_mid=0 | 
|  | 2666 | while :; do | 
|  | 2667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2668 | /* end confdefs.h.  */ | 
|  | 2669 | $4 | 
|  | 2670 | int | 
|  | 2671 | main () | 
|  | 2672 | { | 
|  | 2673 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2674 | test_array [0] = 0 | 
|  | 2675 |  | 
|  | 2676 | ; | 
|  | 2677 | return 0; | 
|  | 2678 | } | 
|  | 2679 | _ACEOF | 
|  | 2680 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2681 | ac_hi=$ac_mid; break | 
|  | 2682 | else | 
|  | 2683 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | 
|  | 2684 | if test $ac_lo -le $ac_mid; then | 
|  | 2685 | ac_lo= ac_hi= | 
|  | 2686 | break | 
|  | 2687 | fi | 
|  | 2688 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | 
|  | 2689 | fi | 
|  | 2690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2691 | done | 
|  | 2692 | else | 
|  | 2693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2694 | /* end confdefs.h.  */ | 
|  | 2695 | $4 | 
|  | 2696 | int | 
|  | 2697 | main () | 
|  | 2698 | { | 
|  | 2699 | static int test_array [1 - 2 * !(($2) < 0)]; | 
|  | 2700 | test_array [0] = 0 | 
|  | 2701 |  | 
|  | 2702 | ; | 
|  | 2703 | return 0; | 
|  | 2704 | } | 
|  | 2705 | _ACEOF | 
|  | 2706 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2707 | ac_hi=-1 ac_mid=-1 | 
|  | 2708 | while :; do | 
|  | 2709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2710 | /* end confdefs.h.  */ | 
|  | 2711 | $4 | 
|  | 2712 | int | 
|  | 2713 | main () | 
|  | 2714 | { | 
|  | 2715 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | 
|  | 2716 | test_array [0] = 0 | 
|  | 2717 |  | 
|  | 2718 | ; | 
|  | 2719 | return 0; | 
|  | 2720 | } | 
|  | 2721 | _ACEOF | 
|  | 2722 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2723 | ac_lo=$ac_mid; break | 
|  | 2724 | else | 
|  | 2725 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | 
|  | 2726 | if test $ac_mid -le $ac_hi; then | 
|  | 2727 | ac_lo= ac_hi= | 
|  | 2728 | break | 
|  | 2729 | fi | 
|  | 2730 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | 
|  | 2731 | fi | 
|  | 2732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2733 | done | 
|  | 2734 | else | 
|  | 2735 | ac_lo= ac_hi= | 
|  | 2736 | fi | 
|  | 2737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2738 | fi | 
|  | 2739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2740 | # Binary search between lo and hi bounds. | 
|  | 2741 | while test "x$ac_lo" != "x$ac_hi"; do | 
|  | 2742 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | 
|  | 2743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2744 | /* end confdefs.h.  */ | 
|  | 2745 | $4 | 
|  | 2746 | int | 
|  | 2747 | main () | 
|  | 2748 | { | 
|  | 2749 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | 
|  | 2750 | test_array [0] = 0 | 
|  | 2751 |  | 
|  | 2752 | ; | 
|  | 2753 | return 0; | 
|  | 2754 | } | 
|  | 2755 | _ACEOF | 
|  | 2756 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 2757 | ac_hi=$ac_mid | 
|  | 2758 | else | 
|  | 2759 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | 
|  | 2760 | fi | 
|  | 2761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2762 | done | 
|  | 2763 | case $ac_lo in #(( | 
|  | 2764 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | 
|  | 2765 | '') ac_retval=1 ;; | 
|  | 2766 | esac | 
|  | 2767 | else | 
|  | 2768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2769 | /* end confdefs.h.  */ | 
|  | 2770 | $4 | 
|  | 2771 | static long int longval () { return $2; } | 
|  | 2772 | static unsigned long int ulongval () { return $2; } | 
|  | 2773 | #include <stdio.h> | 
|  | 2774 | #include <stdlib.h> | 
|  | 2775 | int | 
|  | 2776 | main () | 
|  | 2777 | { | 
|  | 2778 |  | 
|  | 2779 | FILE *f = fopen ("conftest.val", "w"); | 
|  | 2780 | if (! f) | 
|  | 2781 | return 1; | 
|  | 2782 | if (($2) < 0) | 
|  | 2783 | { | 
|  | 2784 | long int i = longval (); | 
|  | 2785 | if (i != ($2)) | 
|  | 2786 | return 1; | 
|  | 2787 | fprintf (f, "%ld", i); | 
|  | 2788 | } | 
|  | 2789 | else | 
|  | 2790 | { | 
|  | 2791 | unsigned long int i = ulongval (); | 
|  | 2792 | if (i != ($2)) | 
|  | 2793 | return 1; | 
|  | 2794 | fprintf (f, "%lu", i); | 
|  | 2795 | } | 
|  | 2796 | /* Do not output a trailing newline, as this causes \r\n confusion | 
|  | 2797 | on some platforms.  */ | 
|  | 2798 | return ferror (f) || fclose (f) != 0; | 
|  | 2799 |  | 
|  | 2800 | ; | 
|  | 2801 | return 0; | 
|  | 2802 | } | 
|  | 2803 | _ACEOF | 
|  | 2804 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 2805 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | 
|  | 2806 | else | 
|  | 2807 | ac_retval=1 | 
|  | 2808 | fi | 
|  | 2809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 2810 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 2811 | rm -f conftest.val | 
|  | 2812 |  | 
|  | 2813 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2814 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2815 | as_fn_set_status $ac_retval | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2816 |  | 
|  | 2817 | } # ac_fn_c_compute_int | 
|  | 2818 |  | 
|  | 2819 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | 
|  | 2820 | # --------------------------------------------------------- | 
|  | 2821 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | 
|  | 2822 | # the include files in INCLUDES and setting the cache variable VAR | 
|  | 2823 | # accordingly. | 
|  | 2824 | ac_fn_cxx_check_header_mongrel () | 
|  | 2825 | { | 
|  | 2826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2827 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2829 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2830 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2831 | $as_echo_n "(cached) " >&6 | 
|  | 2832 | fi | 
|  | 2833 | eval ac_res=\$$3 | 
|  | 2834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2835 | $as_echo "$ac_res" >&6; } | 
|  | 2836 | else | 
|  | 2837 | # Is the header compilable? | 
|  | 2838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | 
|  | 2839 | $as_echo_n "checking $2 usability... " >&6; } | 
|  | 2840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2841 | /* end confdefs.h.  */ | 
|  | 2842 | $4 | 
|  | 2843 | #include <$2> | 
|  | 2844 | _ACEOF | 
|  | 2845 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 2846 | ac_header_compiler=yes | 
|  | 2847 | else | 
|  | 2848 | ac_header_compiler=no | 
|  | 2849 | fi | 
|  | 2850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | 
|  | 2852 | $as_echo "$ac_header_compiler" >&6; } | 
|  | 2853 |  | 
|  | 2854 | # Is the header present? | 
|  | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | 
|  | 2856 | $as_echo_n "checking $2 presence... " >&6; } | 
|  | 2857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 2858 | /* end confdefs.h.  */ | 
|  | 2859 | #include <$2> | 
|  | 2860 | _ACEOF | 
|  | 2861 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 2862 | ac_header_preproc=yes | 
|  | 2863 | else | 
|  | 2864 | ac_header_preproc=no | 
|  | 2865 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2866 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | 
|  | 2868 | $as_echo "$ac_header_preproc" >&6; } | 
|  | 2869 |  | 
|  | 2870 | # So?  What about this header? | 
|  | 2871 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | 
|  | 2872 | yes:no: ) | 
|  | 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | 
|  | 2874 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | 
|  | 2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2876 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
|  | 2877 | ;; | 
|  | 2878 | no:yes:* ) | 
|  | 2879 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | 
|  | 2880 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | 
|  | 2881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5 | 
|  | 2882 | $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;} | 
|  | 2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | 
|  | 2884 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | 
|  | 2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5 | 
|  | 2886 | $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;} | 
|  | 2887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | 
|  | 2888 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2889 | ( $as_echo "## ----------------------------------------- ## | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2890 | ## Report this to http://www.imagemagick.org ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2891 | ## ----------------------------------------- ##" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2892 | ) | sed "s/^/$as_me: WARNING:     /" >&2 | 
|  | 2893 | ;; | 
|  | 2894 | esac | 
|  | 2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | 
|  | 2896 | $as_echo_n "checking for $2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2897 | if eval \${$3+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2898 | $as_echo_n "(cached) " >&6 | 
|  | 2899 | else | 
|  | 2900 | eval "$3=\$ac_header_compiler" | 
|  | 2901 | fi | 
|  | 2902 | eval ac_res=\$$3 | 
|  | 2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
|  | 2904 | $as_echo "$ac_res" >&6; } | 
|  | 2905 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2906 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2907 |  | 
|  | 2908 | } # ac_fn_cxx_check_header_mongrel | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2909 | cat >config.log <<_ACEOF | 
|  | 2910 | This file contains any messages produced by compilers while | 
|  | 2911 | running configure, to aid debugging if configure makes a mistake. | 
|  | 2912 |  | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 2913 | It was created by ImageMagick $as_me 6.6.9, which was | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2914 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2915 |  | 
|  | 2916 | $ $0 $@ | 
|  | 2917 |  | 
|  | 2918 | _ACEOF | 
|  | 2919 | exec 5>>config.log | 
|  | 2920 | { | 
|  | 2921 | cat <<_ASUNAME | 
|  | 2922 | ## --------- ## | 
|  | 2923 | ## Platform. ## | 
|  | 2924 | ## --------- ## | 
|  | 2925 |  | 
|  | 2926 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 2927 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 
|  | 2928 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | 
|  | 2929 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | 
|  | 2930 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | 
|  | 2931 |  | 
|  | 2932 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | 
|  | 2933 | /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown` | 
|  | 2934 |  | 
|  | 2935 | /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown` | 
|  | 2936 | /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown` | 
|  | 2937 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | 
|  | 2938 | /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown` | 
|  | 2939 | /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown` | 
|  | 2940 | /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown` | 
|  | 2941 | /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown` | 
|  | 2942 |  | 
|  | 2943 | _ASUNAME | 
|  | 2944 |  | 
|  | 2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 2946 | for as_dir in $PATH | 
|  | 2947 | do | 
|  | 2948 | IFS=$as_save_IFS | 
|  | 2949 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2950 | $as_echo "PATH: $as_dir" | 
|  | 2951 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2952 | IFS=$as_save_IFS | 
|  | 2953 |  | 
|  | 2954 | } >&5 | 
|  | 2955 |  | 
|  | 2956 | cat >&5 <<_ACEOF | 
|  | 2957 |  | 
|  | 2958 |  | 
|  | 2959 | ## ----------- ## | 
|  | 2960 | ## Core tests. ## | 
|  | 2961 | ## ----------- ## | 
|  | 2962 |  | 
|  | 2963 | _ACEOF | 
|  | 2964 |  | 
|  | 2965 |  | 
|  | 2966 | # Keep a trace of the command line. | 
|  | 2967 | # Strip out --no-create and --no-recursion so they do not pile up. | 
|  | 2968 | # Strip out --silent because we don't want to record it for future runs. | 
|  | 2969 | # Also quote any args containing shell meta-characters. | 
|  | 2970 | # Make two passes to allow for proper duplicate-argument suppression. | 
|  | 2971 | ac_configure_args= | 
|  | 2972 | ac_configure_args0= | 
|  | 2973 | ac_configure_args1= | 
|  | 2974 | ac_must_keep_next=false | 
|  | 2975 | for ac_pass in 1 2 | 
|  | 2976 | do | 
|  | 2977 | for ac_arg | 
|  | 2978 | do | 
|  | 2979 | case $ac_arg in | 
|  | 2980 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | 
|  | 2981 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 2982 | | -silent | --silent | --silen | --sile | --sil) | 
|  | 2983 | continue ;; | 
|  | 2984 | *\'*) | 
|  | 2985 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 2986 | esac | 
|  | 2987 | case $ac_pass in | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2988 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2989 | 2) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2990 | as_fn_append ac_configure_args1 " '$ac_arg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2991 | if test $ac_must_keep_next = true; then | 
|  | 2992 | ac_must_keep_next=false # Got value, back to normal. | 
|  | 2993 | else | 
|  | 2994 | case $ac_arg in | 
|  | 2995 | *=* | --config-cache | -C | -disable-* | --disable-* \ | 
|  | 2996 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | 
|  | 2997 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | 
|  | 2998 | | -with-* | --with-* | -without-* | --without-* | --x) | 
|  | 2999 | case "$ac_configure_args0 " in | 
|  | 3000 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | 
|  | 3001 | esac | 
|  | 3002 | ;; | 
|  | 3003 | -* ) ac_must_keep_next=true ;; | 
|  | 3004 | esac | 
|  | 3005 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3006 | as_fn_append ac_configure_args " '$ac_arg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3007 | ;; | 
|  | 3008 | esac | 
|  | 3009 | done | 
|  | 3010 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3011 | { ac_configure_args0=; unset ac_configure_args0;} | 
|  | 3012 | { ac_configure_args1=; unset ac_configure_args1;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3013 |  | 
|  | 3014 | # When interrupted or exit'd, cleanup temporary files, and complete | 
|  | 3015 | # config.log.  We remove comments because anyway the quotes in there | 
|  | 3016 | # would cause problems or look ugly. | 
|  | 3017 | # WARNING: Use '\'' to represent an apostrophe within the trap. | 
|  | 3018 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | 
|  | 3019 | trap 'exit_status=$? | 
|  | 3020 | # Save into config.log some information that might help in debugging. | 
|  | 3021 | { | 
|  | 3022 | echo | 
|  | 3023 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3024 | $as_echo "## ---------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3025 | ## Cache variables. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3026 | ## ---------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3027 | echo | 
|  | 3028 | # The following way of writing the cache mishandles newlines in values, | 
|  | 3029 | ( | 
|  | 3030 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | 
|  | 3031 | eval ac_val=\$$ac_var | 
|  | 3032 | case $ac_val in #( | 
|  | 3033 | *${as_nl}*) | 
|  | 3034 | case $ac_var in #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3035 | *_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] | 3036 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
|  | 3037 | esac | 
|  | 3038 | case $ac_var in #( | 
|  | 3039 | _ | IFS | as_nl) ;; #( | 
|  | 3040 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3041 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3042 | esac ;; | 
|  | 3043 | esac | 
|  | 3044 | done | 
|  | 3045 | (set) 2>&1 | | 
|  | 3046 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | 
|  | 3047 | *${as_nl}ac_space=\ *) | 
|  | 3048 | sed -n \ | 
|  | 3049 | "s/'\''/'\''\\\\'\'''\''/g; | 
|  | 3050 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | 
|  | 3051 | ;; #( | 
|  | 3052 | *) | 
|  | 3053 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
|  | 3054 | ;; | 
|  | 3055 | esac | | 
|  | 3056 | sort | 
|  | 3057 | ) | 
|  | 3058 | echo | 
|  | 3059 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3060 | $as_echo "## ----------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3061 | ## Output variables. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3062 | ## ----------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3063 | echo | 
|  | 3064 | for ac_var in $ac_subst_vars | 
|  | 3065 | do | 
|  | 3066 | eval ac_val=\$$ac_var | 
|  | 3067 | case $ac_val in | 
|  | 3068 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
|  | 3069 | esac | 
|  | 3070 | $as_echo "$ac_var='\''$ac_val'\''" | 
|  | 3071 | done | sort | 
|  | 3072 | echo | 
|  | 3073 |  | 
|  | 3074 | if test -n "$ac_subst_files"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3075 | $as_echo "## ------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3076 | ## File substitutions. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3077 | ## ------------------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3078 | echo | 
|  | 3079 | for ac_var in $ac_subst_files | 
|  | 3080 | do | 
|  | 3081 | eval ac_val=\$$ac_var | 
|  | 3082 | case $ac_val in | 
|  | 3083 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | 
|  | 3084 | esac | 
|  | 3085 | $as_echo "$ac_var='\''$ac_val'\''" | 
|  | 3086 | done | sort | 
|  | 3087 | echo | 
|  | 3088 | fi | 
|  | 3089 |  | 
|  | 3090 | if test -s confdefs.h; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3091 | $as_echo "## ----------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3092 | ## confdefs.h. ## | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3093 | ## ----------- ##" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3094 | echo | 
|  | 3095 | cat confdefs.h | 
|  | 3096 | echo | 
|  | 3097 | fi | 
|  | 3098 | test "$ac_signal" != 0 && | 
|  | 3099 | $as_echo "$as_me: caught signal $ac_signal" | 
|  | 3100 | $as_echo "$as_me: exit $exit_status" | 
|  | 3101 | } >&5 | 
|  | 3102 | rm -f core *.core core.conftest.* && | 
|  | 3103 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | 
|  | 3104 | exit $exit_status | 
|  | 3105 | ' 0 | 
|  | 3106 | for ac_signal in 1 2 13 15; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3107 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3108 | done | 
|  | 3109 | ac_signal=0 | 
|  | 3110 |  | 
|  | 3111 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
|  | 3112 | rm -f -r conftest* confdefs.h | 
|  | 3113 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3114 | $as_echo "/* confdefs.h */" > confdefs.h | 
|  | 3115 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3116 | # Predefined preprocessor variables. | 
|  | 3117 |  | 
|  | 3118 | cat >>confdefs.h <<_ACEOF | 
|  | 3119 | #define PACKAGE_NAME "$PACKAGE_NAME" | 
|  | 3120 | _ACEOF | 
|  | 3121 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3122 | cat >>confdefs.h <<_ACEOF | 
|  | 3123 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | 
|  | 3124 | _ACEOF | 
|  | 3125 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3126 | cat >>confdefs.h <<_ACEOF | 
|  | 3127 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | 
|  | 3128 | _ACEOF | 
|  | 3129 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3130 | cat >>confdefs.h <<_ACEOF | 
|  | 3131 | #define PACKAGE_STRING "$PACKAGE_STRING" | 
|  | 3132 | _ACEOF | 
|  | 3133 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3134 | cat >>confdefs.h <<_ACEOF | 
|  | 3135 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | 
|  | 3136 | _ACEOF | 
|  | 3137 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3138 | cat >>confdefs.h <<_ACEOF | 
|  | 3139 | #define PACKAGE_URL "$PACKAGE_URL" | 
|  | 3140 | _ACEOF | 
|  | 3141 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3142 |  | 
|  | 3143 | # Let the site file select an alternate cache file if it wants to. | 
|  | 3144 | # Prefer an explicitly selected file to automatically selected ones. | 
|  | 3145 | ac_site_file1=NONE | 
|  | 3146 | ac_site_file2=NONE | 
|  | 3147 | if test -n "$CONFIG_SITE"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3148 | # We do not want a PATH search for config.site. | 
|  | 3149 | case $CONFIG_SITE in #(( | 
|  | 3150 | -*)  ac_site_file1=./$CONFIG_SITE;; | 
|  | 3151 | */*) ac_site_file1=$CONFIG_SITE;; | 
|  | 3152 | *)   ac_site_file1=./$CONFIG_SITE;; | 
|  | 3153 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3154 | elif test "x$prefix" != xNONE; then | 
|  | 3155 | ac_site_file1=$prefix/share/config.site | 
|  | 3156 | ac_site_file2=$prefix/etc/config.site | 
|  | 3157 | else | 
|  | 3158 | ac_site_file1=$ac_default_prefix/share/config.site | 
|  | 3159 | ac_site_file2=$ac_default_prefix/etc/config.site | 
|  | 3160 | fi | 
|  | 3161 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | 
|  | 3162 | do | 
|  | 3163 | test "x$ac_site_file" = xNONE && continue | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3164 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3165 | { $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] | 3166 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | 
|  | 3167 | sed 's/^/| /' "$ac_site_file" >&5 | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3168 | . "$ac_site_file" \ | 
|  | 3169 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 3170 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 3171 | as_fn_error $? "failed to load site script $ac_site_file | 
|  | 3172 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3173 | fi | 
|  | 3174 | done | 
|  | 3175 |  | 
|  | 3176 | if test -r "$cache_file"; then | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3177 | # Some versions of bash will fail to source /dev/null (special files | 
|  | 3178 | # actually), so we avoid doing that.  DJGPP emulates it as a regular file. | 
|  | 3179 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3181 | $as_echo "$as_me: loading cache $cache_file" >&6;} | 
|  | 3182 | case $cache_file in | 
|  | 3183 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | 
|  | 3184 | *)                      . "./$cache_file";; | 
|  | 3185 | esac | 
|  | 3186 | fi | 
|  | 3187 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3189 | $as_echo "$as_me: creating cache $cache_file" >&6;} | 
|  | 3190 | >$cache_file | 
|  | 3191 | fi | 
|  | 3192 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3193 | as_fn_append ac_header_list " stdlib.h" | 
|  | 3194 | as_fn_append ac_header_list " unistd.h" | 
|  | 3195 | as_fn_append ac_header_list " sys/param.h" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3196 | # Check that the precious variables saved in the cache have kept the same | 
|  | 3197 | # value. | 
|  | 3198 | ac_cache_corrupted=false | 
|  | 3199 | for ac_var in $ac_precious_vars; do | 
|  | 3200 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | 
|  | 3201 | eval ac_new_set=\$ac_env_${ac_var}_set | 
|  | 3202 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | 
|  | 3203 | eval ac_new_val=\$ac_env_${ac_var}_value | 
|  | 3204 | case $ac_old_set,$ac_new_set in | 
|  | 3205 | set,) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3206 | { $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] | 3207 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | 
|  | 3208 | ac_cache_corrupted=: ;; | 
|  | 3209 | ,set) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3210 | { $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] | 3211 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | 
|  | 3212 | ac_cache_corrupted=: ;; | 
|  | 3213 | ,);; | 
|  | 3214 | *) | 
|  | 3215 | if test "x$ac_old_val" != "x$ac_new_val"; then | 
|  | 3216 | # differences in whitespace do not lead to failure. | 
|  | 3217 | ac_old_val_w=`echo x $ac_old_val` | 
|  | 3218 | ac_new_val_w=`echo x $ac_new_val` | 
|  | 3219 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3220 | { $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] | 3221 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | 
|  | 3222 | ac_cache_corrupted=: | 
|  | 3223 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3224 | { $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] | 3225 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | 
|  | 3226 | eval $ac_var=\$ac_old_val | 
|  | 3227 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3229 | $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3230 | { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3231 | $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;} | 
|  | 3232 | fi;; | 
|  | 3233 | esac | 
|  | 3234 | # Pass precious variables to config.status. | 
|  | 3235 | if test "$ac_new_set" = set; then | 
|  | 3236 | case $ac_new_val in | 
|  | 3237 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 3238 | *) ac_arg=$ac_var=$ac_new_val ;; | 
|  | 3239 | esac | 
|  | 3240 | case " $ac_configure_args " in | 
|  | 3241 | *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3242 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3243 | esac | 
|  | 3244 | fi | 
|  | 3245 | done | 
|  | 3246 | if $ac_cache_corrupted; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3247 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3248 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3249 | { $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] | 3250 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3251 | 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] | 3252 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3253 | ## -------------------- ## | 
|  | 3254 | ## Main body of script. ## | 
|  | 3255 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3256 |  | 
|  | 3257 | ac_ext=c | 
|  | 3258 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 3259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 3260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 3261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 3262 |  | 
|  | 3263 |  | 
|  | 3264 |  | 
|  | 3265 | ac_aux_dir= | 
|  | 3266 | for ac_dir in config "$srcdir"/config; do | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3267 | if test -f "$ac_dir/install-sh"; then | 
|  | 3268 | ac_aux_dir=$ac_dir | 
|  | 3269 | ac_install_sh="$ac_aux_dir/install-sh -c" | 
|  | 3270 | break | 
|  | 3271 | elif test -f "$ac_dir/install.sh"; then | 
|  | 3272 | ac_aux_dir=$ac_dir | 
|  | 3273 | ac_install_sh="$ac_aux_dir/install.sh -c" | 
|  | 3274 | break | 
|  | 3275 | elif test -f "$ac_dir/shtool"; then | 
|  | 3276 | ac_aux_dir=$ac_dir | 
|  | 3277 | ac_install_sh="$ac_aux_dir/shtool install -c" | 
|  | 3278 | break | 
|  | 3279 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3280 | done | 
|  | 3281 | if test -z "$ac_aux_dir"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3282 | 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] | 3283 | fi | 
|  | 3284 |  | 
|  | 3285 | # These three variables are undocumented and unsupported, | 
|  | 3286 | # and are intended to be withdrawn in a future Autoconf release. | 
|  | 3287 | # They can cause serious problems if a builder's source tree is in a directory | 
|  | 3288 | # whose full name contains unusual characters. | 
|  | 3289 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var. | 
|  | 3290 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var. | 
|  | 3291 | ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var. | 
|  | 3292 |  | 
|  | 3293 |  | 
|  | 3294 |  | 
|  | 3295 |  | 
|  | 3296 | ac_config_headers="$ac_config_headers config/config.h" | 
|  | 3297 |  | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 3298 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3299 | ac_config_commands="$ac_config_commands magick/magick-config.h" | 
|  | 3300 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 3301 | ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3302 |  | 
|  | 3303 |  | 
|  | 3304 | # | 
|  | 3305 | # Save initial user-tunable values | 
|  | 3306 | # | 
|  | 3307 | USER_LIBS=$LIBS | 
|  | 3308 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do | 
|  | 3309 | eval isset=\${$var+set} | 
|  | 3310 | if test "$isset" = 'set'; then | 
|  | 3311 | eval val=$`echo $var` | 
|  | 3312 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " | 
|  | 3313 | fi | 
|  | 3314 | done | 
|  | 3315 |  | 
|  | 3316 |  | 
|  | 3317 | CONFIGURE_ARGS="$0 ${ac_configure_args}" | 
|  | 3318 |  | 
|  | 3319 |  | 
|  | 3320 | # Source file containing package/library versioning information. | 
|  | 3321 | . ${srcdir}/version.sh | 
|  | 3322 |  | 
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3323 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3324 | # Make sure we can run config.sub. | 
|  | 3325 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3326 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3327 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3329 | $as_echo_n "checking build system type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3330 | if ${ac_cv_build+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3331 | $as_echo_n "(cached) " >&6 | 
|  | 3332 | else | 
|  | 3333 | ac_build_alias=$build_alias | 
|  | 3334 | test "x$ac_build_alias" = x && | 
|  | 3335 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | 
|  | 3336 | test "x$ac_build_alias" = x && | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3337 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3338 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3339 | 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] | 3340 |  | 
|  | 3341 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3343 | $as_echo "$ac_cv_build" >&6; } | 
|  | 3344 | case $ac_cv_build in | 
|  | 3345 | *-*-*) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3346 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3347 | esac | 
|  | 3348 | build=$ac_cv_build | 
|  | 3349 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3350 | set x $ac_cv_build | 
|  | 3351 | shift | 
|  | 3352 | build_cpu=$1 | 
|  | 3353 | build_vendor=$2 | 
|  | 3354 | shift; shift | 
|  | 3355 | # Remember, the first character of IFS is used to create $*, | 
|  | 3356 | # except with old shells: | 
|  | 3357 | build_os=$* | 
|  | 3358 | IFS=$ac_save_IFS | 
|  | 3359 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | 
|  | 3360 |  | 
|  | 3361 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3363 | $as_echo_n "checking host system type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3364 | if ${ac_cv_host+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3365 | $as_echo_n "(cached) " >&6 | 
|  | 3366 | else | 
|  | 3367 | if test "x$host_alias" = x; then | 
|  | 3368 | ac_cv_host=$ac_cv_build | 
|  | 3369 | else | 
|  | 3370 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3371 | 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] | 3372 | fi | 
|  | 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_host" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3376 | $as_echo "$ac_cv_host" >&6; } | 
|  | 3377 | case $ac_cv_host in | 
|  | 3378 | *-*-*) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3379 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3380 | esac | 
|  | 3381 | host=$ac_cv_host | 
|  | 3382 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3383 | set x $ac_cv_host | 
|  | 3384 | shift | 
|  | 3385 | host_cpu=$1 | 
|  | 3386 | host_vendor=$2 | 
|  | 3387 | shift; shift | 
|  | 3388 | # Remember, the first character of IFS is used to create $*, | 
|  | 3389 | # except with old shells: | 
|  | 3390 | host_os=$* | 
|  | 3391 | IFS=$ac_save_IFS | 
|  | 3392 | case $host_os in *\ *) host_os=`echo "$host_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 target system type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3396 | $as_echo_n "checking target system type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3397 | if ${ac_cv_target+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3398 | $as_echo_n "(cached) " >&6 | 
|  | 3399 | else | 
|  | 3400 | if test "x$target_alias" = x; then | 
|  | 3401 | ac_cv_target=$ac_cv_host | 
|  | 3402 | else | 
|  | 3403 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3404 | 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] | 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_target" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3409 | $as_echo "$ac_cv_target" >&6; } | 
|  | 3410 | case $ac_cv_target in | 
|  | 3411 | *-*-*) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3412 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3413 | esac | 
|  | 3414 | target=$ac_cv_target | 
|  | 3415 | ac_save_IFS=$IFS; IFS='-' | 
|  | 3416 | set x $ac_cv_target | 
|  | 3417 | shift | 
|  | 3418 | target_cpu=$1 | 
|  | 3419 | target_vendor=$2 | 
|  | 3420 | shift; shift | 
|  | 3421 | # Remember, the first character of IFS is used to create $*, | 
|  | 3422 | # except with old shells: | 
|  | 3423 | target_os=$* | 
|  | 3424 | IFS=$ac_save_IFS | 
|  | 3425 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | 
|  | 3426 |  | 
|  | 3427 |  | 
|  | 3428 | # The aliases save the names the user supplied, while $host etc. | 
|  | 3429 | # will get canonicalized. | 
|  | 3430 | test -n "$target_alias" && | 
|  | 3431 | test "$program_prefix$program_suffix$program_transform_name" = \ | 
|  | 3432 | NONENONEs,x,x, && | 
|  | 3433 | program_prefix=${target_alias}- | 
|  | 3434 |  | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3435 |  | 
|  | 3436 |  | 
|  | 3437 |  | 
|  | 3438 |  | 
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3439 | MAGICK_TARGET_CPU=$target_cpu | 
|  | 3440 |  | 
|  | 3441 |  | 
|  | 3442 | MAGICK_TARGET_VENDOR=$target_vendor | 
|  | 3443 |  | 
|  | 3444 |  | 
|  | 3445 | MAGICK_TARGET_OS=$target_os | 
|  | 3446 |  | 
|  | 3447 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3448 | # Substitute library versioning | 
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3449 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` | 
|  | 3450 |  | 
|  | 3451 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE | 
|  | 3452 |  | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 3453 | MAGICK_SVN_REVISION=4138 | 
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 3454 |  | 
|  | 3455 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3456 |  | 
|  | 3457 |  | 
|  | 3458 | # Ensure that make can run correctly | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | 
|  | 3460 | $as_echo_n "checking whether build environment is sane... " >&6; } | 
|  | 3461 | # Just in case | 
|  | 3462 | sleep 1 | 
|  | 3463 | echo timestamp > conftest.file | 
|  | 3464 | # Reject unsafe characters in $srcdir or the absolute working directory | 
|  | 3465 | # name.  Accept space and tab only in the latter. | 
|  | 3466 | am_lf=' | 
|  | 3467 | ' | 
|  | 3468 | case `pwd` in | 
|  | 3469 | *[\\\"\#\$\&\'\`$am_lf]*) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3470 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3471 | esac | 
|  | 3472 | case $srcdir in | 
|  | 3473 | *[\\\"\#\$\&\'\`$am_lf\ \	]*) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3474 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3475 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3476 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3477 | # Do `set' in a subshell so we don't clobber the current shell's | 
|  | 3478 | # arguments.  Must try -L first in case configure is actually a | 
|  | 3479 | # symlink; some systems play weird games with the mod time of symlinks | 
|  | 3480 | # (eg FreeBSD returns the mod time of the symlink's containing | 
|  | 3481 | # directory). | 
|  | 3482 | if ( | 
|  | 3483 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | 
|  | 3484 | if test "$*" = "X"; then | 
|  | 3485 | # -L didn't work. | 
|  | 3486 | set X `ls -t "$srcdir/configure" conftest.file` | 
|  | 3487 | fi | 
|  | 3488 | rm -f conftest.file | 
|  | 3489 | if test "$*" != "X $srcdir/configure conftest.file" \ | 
|  | 3490 | && test "$*" != "X conftest.file $srcdir/configure"; then | 
|  | 3491 |  | 
|  | 3492 | # If neither matched, then we have a broken ls.  This can happen | 
|  | 3493 | # if, for instance, CONFIG_SHELL is bash and it inherits a | 
|  | 3494 | # broken ls alias from the environment.  This has actually | 
|  | 3495 | # happened.  Such a system could not be considered "sane". | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3496 | as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3497 | alias in your environment" "$LINENO" 5 | 
|  | 3498 | fi | 
|  | 3499 |  | 
|  | 3500 | test "$2" = conftest.file | 
|  | 3501 | ) | 
|  | 3502 | then | 
|  | 3503 | # Ok. | 
|  | 3504 | : | 
|  | 3505 | else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3506 | as_fn_error $? "newly created file is older than distributed files! | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3507 | Check your system clock" "$LINENO" 5 | 
|  | 3508 | fi | 
|  | 3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 3510 | $as_echo "yes" >&6; } | 
|  | 3511 |  | 
|  | 3512 | am__api_version='1.11' | 
|  | 3513 |  | 
|  | 3514 | # Find a good install program.  We prefer a C program (faster), | 
|  | 3515 | # so one script is as good as another.  But avoid the broken or | 
|  | 3516 | # incompatible versions: | 
|  | 3517 | # SysV /etc/install, /usr/sbin/install | 
|  | 3518 | # SunOS /usr/etc/install | 
|  | 3519 | # IRIX /sbin/install | 
|  | 3520 | # AIX /bin/install | 
|  | 3521 | # AmigaOS /C/install, which installs bootblocks on floppy discs | 
|  | 3522 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
|  | 3523 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
|  | 3524 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
|  | 3525 | # OS/2's system install, which has a completely different semantic | 
|  | 3526 | # ./install, which can be erroneously created by make from ./install.sh. | 
|  | 3527 | # Reject install programs that cannot install multiple files. | 
|  | 3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | 
|  | 3529 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | 
|  | 3530 | if test -z "$INSTALL"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3531 | if ${ac_cv_path_install+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3532 | $as_echo_n "(cached) " >&6 | 
|  | 3533 | else | 
|  | 3534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3535 | for as_dir in $PATH | 
|  | 3536 | do | 
|  | 3537 | IFS=$as_save_IFS | 
|  | 3538 | test -z "$as_dir" && as_dir=. | 
|  | 3539 | # Account for people who put trailing slashes in PATH elements. | 
|  | 3540 | case $as_dir/ in #(( | 
|  | 3541 | ./ | .// | /[cC]/* | \ | 
|  | 3542 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | 
|  | 3543 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | 
|  | 3544 | /usr/ucb/* ) ;; | 
|  | 3545 | *) | 
|  | 3546 | # OSF1 and SCO ODT 3.0 have their own names for install. | 
|  | 3547 | # Don't use installbsd from OSF since it installs stuff as root | 
|  | 3548 | # by default. | 
|  | 3549 | for ac_prog in ginstall scoinst install; do | 
|  | 3550 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3551 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | 
|  | 3552 | if test $ac_prog = install && | 
|  | 3553 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 3554 | # AIX install.  It has an incompatible calling convention. | 
|  | 3555 | : | 
|  | 3556 | elif test $ac_prog = install && | 
|  | 3557 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | 
|  | 3558 | # program-specific install script used by HP pwplus--don't use. | 
|  | 3559 | : | 
|  | 3560 | else | 
|  | 3561 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 3562 | echo one > conftest.one | 
|  | 3563 | echo two > conftest.two | 
|  | 3564 | mkdir conftest.dir | 
|  | 3565 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | 
|  | 3566 | test -s conftest.one && test -s conftest.two && | 
|  | 3567 | test -s conftest.dir/conftest.one && | 
|  | 3568 | test -s conftest.dir/conftest.two | 
|  | 3569 | then | 
|  | 3570 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | 
|  | 3571 | break 3 | 
|  | 3572 | fi | 
|  | 3573 | fi | 
|  | 3574 | fi | 
|  | 3575 | done | 
|  | 3576 | done | 
|  | 3577 | ;; | 
|  | 3578 | esac | 
|  | 3579 |  | 
|  | 3580 | done | 
|  | 3581 | IFS=$as_save_IFS | 
|  | 3582 |  | 
|  | 3583 | rm -rf conftest.one conftest.two conftest.dir | 
|  | 3584 |  | 
|  | 3585 | fi | 
|  | 3586 | if test "${ac_cv_path_install+set}" = set; then | 
|  | 3587 | INSTALL=$ac_cv_path_install | 
|  | 3588 | else | 
|  | 3589 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 3590 | # value for INSTALL within a source directory, because that will | 
|  | 3591 | # break other packages using the cache if that directory is | 
|  | 3592 | # removed, or if the value is a relative name. | 
|  | 3593 | INSTALL=$ac_install_sh | 
|  | 3594 | fi | 
|  | 3595 | fi | 
|  | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | 
|  | 3597 | $as_echo "$INSTALL" >&6; } | 
|  | 3598 |  | 
|  | 3599 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
|  | 3600 | # It thinks the first close brace ends the variable substitution. | 
|  | 3601 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
|  | 3602 |  | 
|  | 3603 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | 
|  | 3604 |  | 
|  | 3605 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
|  | 3606 |  | 
|  | 3607 | test "$program_prefix" != NONE && | 
|  | 3608 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | 
|  | 3609 | # Use a double $ so make ignores it. | 
|  | 3610 | test "$program_suffix" != NONE && | 
|  | 3611 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | 
|  | 3612 | # Double any \ or $. | 
|  | 3613 | # By default was `s,x,x', remove it if useless. | 
|  | 3614 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | 
|  | 3615 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | 
|  | 3616 |  | 
|  | 3617 | # expand $ac_aux_dir to an absolute path | 
|  | 3618 | am_aux_dir=`cd $ac_aux_dir && pwd` | 
|  | 3619 |  | 
|  | 3620 | if test x"${MISSING+set}" != xset; then | 
|  | 3621 | case $am_aux_dir in | 
|  | 3622 | *\ * | *\	*) | 
|  | 3623 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | 
|  | 3624 | *) | 
|  | 3625 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | 
|  | 3626 | esac | 
|  | 3627 | fi | 
|  | 3628 | # Use eval to expand $SHELL | 
|  | 3629 | if eval "$MISSING --run true"; then | 
|  | 3630 | am_missing_run="$MISSING --run " | 
|  | 3631 | else | 
|  | 3632 | am_missing_run= | 
|  | 3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | 
|  | 3634 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | 
|  | 3635 | fi | 
|  | 3636 |  | 
|  | 3637 | if test x"${install_sh}" != xset; then | 
|  | 3638 | case $am_aux_dir in | 
|  | 3639 | *\ * | *\	*) | 
|  | 3640 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | 
|  | 3641 | *) | 
|  | 3642 | install_sh="\${SHELL} $am_aux_dir/install-sh" | 
|  | 3643 | esac | 
|  | 3644 | fi | 
|  | 3645 |  | 
|  | 3646 | # Installed binaries are usually stripped using `strip' when the user | 
|  | 3647 | # run `make install-strip'.  However `strip' might not be the right | 
|  | 3648 | # tool to use in cross-compilation environments, therefore Automake | 
|  | 3649 | # will honor the `STRIP' environment variable to overrule this program. | 
|  | 3650 | if test "$cross_compiling" != no; then | 
|  | 3651 | if test -n "$ac_tool_prefix"; then | 
|  | 3652 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 3653 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|  | 3654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3655 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3656 | if ${ac_cv_prog_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3657 | $as_echo_n "(cached) " >&6 | 
|  | 3658 | else | 
|  | 3659 | if test -n "$STRIP"; then | 
|  | 3660 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 3661 | else | 
|  | 3662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3663 | for as_dir in $PATH | 
|  | 3664 | do | 
|  | 3665 | IFS=$as_save_IFS | 
|  | 3666 | test -z "$as_dir" && as_dir=. | 
|  | 3667 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 3669 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|  | 3670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3671 | break 2 | 
|  | 3672 | fi | 
|  | 3673 | done | 
|  | 3674 | done | 
|  | 3675 | IFS=$as_save_IFS | 
|  | 3676 |  | 
|  | 3677 | fi | 
|  | 3678 | fi | 
|  | 3679 | STRIP=$ac_cv_prog_STRIP | 
|  | 3680 | if test -n "$STRIP"; then | 
|  | 3681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 
|  | 3682 | $as_echo "$STRIP" >&6; } | 
|  | 3683 | else | 
|  | 3684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3685 | $as_echo "no" >&6; } | 
|  | 3686 | fi | 
|  | 3687 |  | 
|  | 3688 |  | 
|  | 3689 | fi | 
|  | 3690 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 3691 | ac_ct_STRIP=$STRIP | 
|  | 3692 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 3693 | set dummy strip; ac_word=$2 | 
|  | 3694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3695 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3696 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3697 | $as_echo_n "(cached) " >&6 | 
|  | 3698 | else | 
|  | 3699 | if test -n "$ac_ct_STRIP"; then | 
|  | 3700 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 3701 | else | 
|  | 3702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3703 | for as_dir in $PATH | 
|  | 3704 | do | 
|  | 3705 | IFS=$as_save_IFS | 
|  | 3706 | test -z "$as_dir" && as_dir=. | 
|  | 3707 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 3709 | ac_cv_prog_ac_ct_STRIP="strip" | 
|  | 3710 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3711 | break 2 | 
|  | 3712 | fi | 
|  | 3713 | done | 
|  | 3714 | done | 
|  | 3715 | IFS=$as_save_IFS | 
|  | 3716 |  | 
|  | 3717 | fi | 
|  | 3718 | fi | 
|  | 3719 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 3720 | if test -n "$ac_ct_STRIP"; then | 
|  | 3721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 
|  | 3722 | $as_echo "$ac_ct_STRIP" >&6; } | 
|  | 3723 | else | 
|  | 3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3725 | $as_echo "no" >&6; } | 
|  | 3726 | fi | 
|  | 3727 |  | 
|  | 3728 | if test "x$ac_ct_STRIP" = x; then | 
|  | 3729 | STRIP=":" | 
|  | 3730 | else | 
|  | 3731 | case $cross_compiling:$ac_tool_warned in | 
|  | 3732 | yes:) | 
|  | 3733 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 3734 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 3735 | ac_tool_warned=yes ;; | 
|  | 3736 | esac | 
|  | 3737 | STRIP=$ac_ct_STRIP | 
|  | 3738 | fi | 
|  | 3739 | else | 
|  | 3740 | STRIP="$ac_cv_prog_STRIP" | 
|  | 3741 | fi | 
|  | 3742 |  | 
|  | 3743 | fi | 
|  | 3744 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | 
|  | 3745 |  | 
|  | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | 
|  | 3747 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | 
|  | 3748 | if test -z "$MKDIR_P"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3749 | if ${ac_cv_path_mkdir+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3750 | $as_echo_n "(cached) " >&6 | 
|  | 3751 | else | 
|  | 3752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3753 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | 
|  | 3754 | do | 
|  | 3755 | IFS=$as_save_IFS | 
|  | 3756 | test -z "$as_dir" && as_dir=. | 
|  | 3757 | for ac_prog in mkdir gmkdir; do | 
|  | 3758 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3759 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | 
|  | 3760 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | 
|  | 3761 | 'mkdir (GNU coreutils) '* | \ | 
|  | 3762 | 'mkdir (coreutils) '* | \ | 
|  | 3763 | 'mkdir (fileutils) '4.1*) | 
|  | 3764 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | 
|  | 3765 | break 3;; | 
|  | 3766 | esac | 
|  | 3767 | done | 
|  | 3768 | done | 
|  | 3769 | done | 
|  | 3770 | IFS=$as_save_IFS | 
|  | 3771 |  | 
|  | 3772 | fi | 
|  | 3773 |  | 
|  | 3774 | test -d ./--version && rmdir ./--version | 
|  | 3775 | if test "${ac_cv_path_mkdir+set}" = set; then | 
|  | 3776 | MKDIR_P="$ac_cv_path_mkdir -p" | 
|  | 3777 | else | 
|  | 3778 | # As a last resort, use the slow shell script.  Don't cache a | 
|  | 3779 | # value for MKDIR_P within a source directory, because that will | 
|  | 3780 | # break other packages using the cache if that directory is | 
|  | 3781 | # removed, or if the value is a relative name. | 
|  | 3782 | MKDIR_P="$ac_install_sh -d" | 
|  | 3783 | fi | 
|  | 3784 | fi | 
|  | 3785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | 
|  | 3786 | $as_echo "$MKDIR_P" >&6; } | 
|  | 3787 |  | 
|  | 3788 | mkdir_p="$MKDIR_P" | 
|  | 3789 | case $mkdir_p in | 
|  | 3790 | [\\/$]* | ?:[\\/]*) ;; | 
|  | 3791 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | 
|  | 3792 | esac | 
|  | 3793 |  | 
|  | 3794 | for ac_prog in gawk mawk nawk awk | 
|  | 3795 | do | 
|  | 3796 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 3797 | set dummy $ac_prog; ac_word=$2 | 
|  | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 3799 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3800 | if ${ac_cv_prog_AWK+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3801 | $as_echo_n "(cached) " >&6 | 
|  | 3802 | else | 
|  | 3803 | if test -n "$AWK"; then | 
|  | 3804 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | 
|  | 3805 | else | 
|  | 3806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 3807 | for as_dir in $PATH | 
|  | 3808 | do | 
|  | 3809 | IFS=$as_save_IFS | 
|  | 3810 | test -z "$as_dir" && as_dir=. | 
|  | 3811 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 3812 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 3813 | ac_cv_prog_AWK="$ac_prog" | 
|  | 3814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 3815 | break 2 | 
|  | 3816 | fi | 
|  | 3817 | done | 
|  | 3818 | done | 
|  | 3819 | IFS=$as_save_IFS | 
|  | 3820 |  | 
|  | 3821 | fi | 
|  | 3822 | fi | 
|  | 3823 | AWK=$ac_cv_prog_AWK | 
|  | 3824 | if test -n "$AWK"; then | 
|  | 3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | 
|  | 3826 | $as_echo "$AWK" >&6; } | 
|  | 3827 | else | 
|  | 3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3829 | $as_echo "no" >&6; } | 
|  | 3830 | fi | 
|  | 3831 |  | 
|  | 3832 |  | 
|  | 3833 | test -n "$AWK" && break | 
|  | 3834 | done | 
|  | 3835 |  | 
|  | 3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
|  | 3837 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 
|  | 3838 | set x ${MAKE-make} | 
|  | 3839 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3840 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3841 | $as_echo_n "(cached) " >&6 | 
|  | 3842 | else | 
|  | 3843 | cat >conftest.make <<\_ACEOF | 
|  | 3844 | SHELL = /bin/sh | 
|  | 3845 | all: | 
|  | 3846 | @echo '@@@%%%=$(MAKE)=@@@%%%' | 
|  | 3847 | _ACEOF | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3848 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3849 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 
|  | 3850 | *@@@%%%=?*=@@@%%%*) | 
|  | 3851 | eval ac_cv_prog_make_${ac_make}_set=yes;; | 
|  | 3852 | *) | 
|  | 3853 | eval ac_cv_prog_make_${ac_make}_set=no;; | 
|  | 3854 | esac | 
|  | 3855 | rm -f conftest.make | 
|  | 3856 | fi | 
|  | 3857 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 
|  | 3858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 3859 | $as_echo "yes" >&6; } | 
|  | 3860 | SET_MAKE= | 
|  | 3861 | else | 
|  | 3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 3863 | $as_echo "no" >&6; } | 
|  | 3864 | SET_MAKE="MAKE=${MAKE-make}" | 
|  | 3865 | fi | 
|  | 3866 |  | 
|  | 3867 | rm -rf .tst 2>/dev/null | 
|  | 3868 | mkdir .tst 2>/dev/null | 
|  | 3869 | if test -d .tst; then | 
|  | 3870 | am__leading_dot=. | 
|  | 3871 | else | 
|  | 3872 | am__leading_dot=_ | 
|  | 3873 | fi | 
|  | 3874 | rmdir .tst 2>/dev/null | 
|  | 3875 |  | 
|  | 3876 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | 
|  | 3877 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | 
|  | 3878 | # is not polluted with repeated "-I." | 
|  | 3879 | am__isrc=' -I$(srcdir)' | 
|  | 3880 | # test to see if srcdir already configured | 
|  | 3881 | if test -f $srcdir/config.status; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3882 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3883 | fi | 
|  | 3884 | fi | 
|  | 3885 |  | 
|  | 3886 | # test whether we have cygpath | 
|  | 3887 | if test -z "$CYGPATH_W"; then | 
|  | 3888 | if (cygpath --version) >/dev/null 2>/dev/null; then | 
|  | 3889 | CYGPATH_W='cygpath -w' | 
|  | 3890 | else | 
|  | 3891 | CYGPATH_W=echo | 
|  | 3892 | fi | 
|  | 3893 | fi | 
|  | 3894 |  | 
|  | 3895 |  | 
|  | 3896 | # Define the identity of the package. | 
|  | 3897 | PACKAGE=$PACKAGE_NAME | 
|  | 3898 | VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" | 
|  | 3899 |  | 
|  | 3900 |  | 
|  | 3901 | # Some tools Automake needs. | 
|  | 3902 |  | 
|  | 3903 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | 
|  | 3904 |  | 
|  | 3905 |  | 
|  | 3906 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | 
|  | 3907 |  | 
|  | 3908 |  | 
|  | 3909 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | 
|  | 3910 |  | 
|  | 3911 |  | 
|  | 3912 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | 
|  | 3913 |  | 
|  | 3914 |  | 
|  | 3915 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | 
|  | 3916 |  | 
|  | 3917 | # We need awk for the "check" target.  The system "awk" is bad on | 
|  | 3918 | # some platforms. | 
|  | 3919 | # Always define AMTAR for backward compatibility. | 
|  | 3920 |  | 
|  | 3921 | AMTAR=${AMTAR-"${am_missing_run}tar"} | 
|  | 3922 |  | 
|  | 3923 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | 
|  | 3924 |  | 
|  | 3925 |  | 
|  | 3926 |  | 
|  | 3927 |  | 
|  | 3928 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3929 |  | 
|  | 3930 | # Enable support for silent build rules | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3931 | # Check whether --enable-silent-rules was given. | 
|  | 3932 | if test "${enable_silent_rules+set}" = set; then : | 
|  | 3933 | enableval=$enable_silent_rules; | 
|  | 3934 | fi | 
|  | 3935 |  | 
|  | 3936 | case $enable_silent_rules in | 
|  | 3937 | yes) AM_DEFAULT_VERBOSITY=0;; | 
|  | 3938 | no)  AM_DEFAULT_VERBOSITY=1;; | 
|  | 3939 | *)   AM_DEFAULT_VERBOSITY=0;; | 
|  | 3940 | esac | 
|  | 3941 | AM_BACKSLASH='\' | 
|  | 3942 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3943 |  | 
|  | 3944 | MAGICK_LIB_VERSION="0x" | 
|  | 3945 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then | 
|  | 3946 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
|  | 3947 | fi | 
|  | 3948 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} | 
|  | 3949 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then | 
|  | 3950 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
|  | 3951 | fi | 
|  | 3952 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} | 
|  | 3953 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then | 
|  | 3954 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 | 
|  | 3955 | fi | 
|  | 3956 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} | 
|  | 3957 |  | 
|  | 3958 |  | 
|  | 3959 | # Definition used to define MagickLibVersionText in version.h | 
|  | 3960 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" | 
|  | 3961 |  | 
|  | 3962 |  | 
|  | 3963 | # Definition used to define MagickLibVersionNumber in version.h | 
|  | 3964 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" | 
|  | 3965 |  | 
|  | 3966 |  | 
|  | 3967 | # Regenerate config.status if ChangeLog or version.sh is updated. | 
|  | 3968 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' | 
|  | 3969 |  | 
|  | 3970 |  | 
|  | 3971 | PERLMAINCC=$CC | 
|  | 3972 |  | 
|  | 3973 | MAGICK_CFLAGS='' | 
|  | 3974 | MAGICK_CPPFLAGS=$CPPFLAGS_USER | 
|  | 3975 | MAGICK_PCFLAGS=$CPPFLAGS_USER | 
|  | 3976 | MAGICK_LDFLAGS='' | 
|  | 3977 | MAGICK_LIBS='' | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 3978 | MAGICK_FEATURES='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3979 |  | 
|  | 3980 | # | 
|  | 3981 | # Evaluate shell variable equivalents to Makefile directory variables | 
|  | 3982 | # | 
|  | 3983 | if test "x$prefix" = xNONE; then | 
|  | 3984 | prefix=$ac_default_prefix | 
|  | 3985 | fi | 
|  | 3986 | # Let make expand exec_prefix. | 
|  | 3987 | if test "x$exec_prefix" = xNONE; then | 
|  | 3988 | exec_prefix='${prefix}' | 
|  | 3989 | fi | 
|  | 3990 |  | 
|  | 3991 | # | 
|  | 3992 | eval "eval PREFIX_DIR=${prefix}" | 
|  | 3993 |  | 
|  | 3994 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" | 
|  | 3995 |  | 
|  | 3996 | eval "eval BIN_DIR=$bindir" | 
|  | 3997 |  | 
|  | 3998 | eval "eval SBIN_DIR=$sbindir" | 
|  | 3999 |  | 
|  | 4000 | eval "eval LIBEXEC_DIR=$libexecdir" | 
|  | 4001 |  | 
|  | 4002 | eval "eval DATA_DIR=$datadir" | 
|  | 4003 |  | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 4004 | eval "eval DOC_DIR=$docdir" | 
|  | 4005 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4006 | eval "eval SYSCONF_DIR=$sysconfdir" | 
|  | 4007 |  | 
|  | 4008 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" | 
|  | 4009 |  | 
|  | 4010 | eval "eval LOCALSTATE_DIR=$localstatedir" | 
|  | 4011 |  | 
|  | 4012 | eval "eval LIB_DIR=$libdir" | 
|  | 4013 |  | 
|  | 4014 | eval "eval INCLUDE_DIR=$includedir" | 
|  | 4015 |  | 
|  | 4016 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" | 
|  | 4017 |  | 
|  | 4018 | eval "eval INFO_DIR=$infodir" | 
|  | 4019 |  | 
|  | 4020 | eval "eval MAN_DIR=$mandir" | 
|  | 4021 |  | 
|  | 4022 |  | 
|  | 4023 | # Get full paths to source and build directories | 
|  | 4024 | srcdirfull="`cd $srcdir && pwd`" | 
|  | 4025 | builddir="`pwd`" | 
|  | 4026 |  | 
|  | 4027 | # | 
|  | 4028 | # Compute variables useful for running uninstalled software. | 
|  | 4029 | # | 
|  | 4030 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" | 
|  | 4031 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" | 
|  | 4032 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" | 
|  | 4033 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" | 
|  | 4034 | DIRSEP=':' | 
|  | 4035 | case "${build_os}" in | 
|  | 4036 | mingw* ) | 
|  | 4037 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` | 
|  | 4038 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` | 
|  | 4039 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` | 
|  | 4040 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` | 
|  | 4041 | DIRSEP=';' | 
|  | 4042 | ;; | 
|  | 4043 | esac | 
|  | 4044 | case "${host_os}" in | 
|  | 4045 | mingw* ) | 
|  | 4046 | DIRSEP=';' | 
|  | 4047 | ;; | 
|  | 4048 | esac | 
|  | 4049 |  | 
|  | 4050 |  | 
|  | 4051 |  | 
|  | 4052 |  | 
|  | 4053 |  | 
|  | 4054 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4055 |  | 
|  | 4056 | # | 
|  | 4057 | # Enable OS features. | 
|  | 4058 | # | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4059 | DEPDIR="${am__leading_dot}deps" | 
|  | 4060 |  | 
|  | 4061 | ac_config_commands="$ac_config_commands depfiles" | 
|  | 4062 |  | 
|  | 4063 |  | 
|  | 4064 | am_make=${MAKE-make} | 
|  | 4065 | cat > confinc << 'END' | 
|  | 4066 | am__doit: | 
|  | 4067 | @echo this is the am__doit target | 
|  | 4068 | .PHONY: am__doit | 
|  | 4069 | END | 
|  | 4070 | # If we don't find an include directive, just comment out the code. | 
|  | 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | 
|  | 4072 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | 
|  | 4073 | am__include="#" | 
|  | 4074 | am__quote= | 
|  | 4075 | _am_result=none | 
|  | 4076 | # First try GNU make style include. | 
|  | 4077 | echo "include confinc" > confmf | 
|  | 4078 | # Ignore all kinds of additional output from `make'. | 
|  | 4079 | case `$am_make -s -f confmf 2> /dev/null` in #( | 
|  | 4080 | *the\ am__doit\ target*) | 
|  | 4081 | am__include=include | 
|  | 4082 | am__quote= | 
|  | 4083 | _am_result=GNU | 
|  | 4084 | ;; | 
|  | 4085 | esac | 
|  | 4086 | # Now try BSD make style include. | 
|  | 4087 | if test "$am__include" = "#"; then | 
|  | 4088 | echo '.include "confinc"' > confmf | 
|  | 4089 | case `$am_make -s -f confmf 2> /dev/null` in #( | 
|  | 4090 | *the\ am__doit\ target*) | 
|  | 4091 | am__include=.include | 
|  | 4092 | am__quote="\"" | 
|  | 4093 | _am_result=BSD | 
|  | 4094 | ;; | 
|  | 4095 | esac | 
|  | 4096 | fi | 
|  | 4097 |  | 
|  | 4098 |  | 
|  | 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | 
|  | 4100 | $as_echo "$_am_result" >&6; } | 
|  | 4101 | rm -f confinc confmf | 
|  | 4102 |  | 
|  | 4103 | # Check whether --enable-dependency-tracking was given. | 
|  | 4104 | if test "${enable_dependency_tracking+set}" = set; then : | 
|  | 4105 | enableval=$enable_dependency_tracking; | 
|  | 4106 | fi | 
|  | 4107 |  | 
|  | 4108 | if test "x$enable_dependency_tracking" != xno; then | 
|  | 4109 | am_depcomp="$ac_aux_dir/depcomp" | 
|  | 4110 | AMDEPBACKSLASH='\' | 
|  | 4111 | fi | 
|  | 4112 | if test "x$enable_dependency_tracking" != xno; then | 
|  | 4113 | AMDEP_TRUE= | 
|  | 4114 | AMDEP_FALSE='#' | 
|  | 4115 | else | 
|  | 4116 | AMDEP_TRUE='#' | 
|  | 4117 | AMDEP_FALSE= | 
|  | 4118 | fi | 
|  | 4119 |  | 
|  | 4120 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4121 | ac_ext=c | 
|  | 4122 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4123 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4124 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4125 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 4126 | if test -n "$ac_tool_prefix"; then | 
|  | 4127 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 4128 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4130 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4131 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4132 | $as_echo_n "(cached) " >&6 | 
|  | 4133 | else | 
|  | 4134 | if test -n "$CC"; then | 
|  | 4135 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4136 | else | 
|  | 4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4138 | for as_dir in $PATH | 
|  | 4139 | do | 
|  | 4140 | IFS=$as_save_IFS | 
|  | 4141 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4142 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4144 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4145 | $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] | 4146 | break 2 | 
|  | 4147 | fi | 
|  | 4148 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4149 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4150 | IFS=$as_save_IFS | 
|  | 4151 |  | 
|  | 4152 | fi | 
|  | 4153 | fi | 
|  | 4154 | CC=$ac_cv_prog_CC | 
|  | 4155 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4157 | $as_echo "$CC" >&6; } | 
|  | 4158 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4160 | $as_echo "no" >&6; } | 
|  | 4161 | fi | 
|  | 4162 |  | 
|  | 4163 |  | 
|  | 4164 | fi | 
|  | 4165 | if test -z "$ac_cv_prog_CC"; then | 
|  | 4166 | ac_ct_CC=$CC | 
|  | 4167 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 4168 | set dummy gcc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4170 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4171 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4172 | $as_echo_n "(cached) " >&6 | 
|  | 4173 | else | 
|  | 4174 | if test -n "$ac_ct_CC"; then | 
|  | 4175 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 4176 | else | 
|  | 4177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4178 | for as_dir in $PATH | 
|  | 4179 | do | 
|  | 4180 | IFS=$as_save_IFS | 
|  | 4181 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4182 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4184 | ac_cv_prog_ac_ct_CC="gcc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4185 | $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] | 4186 | break 2 | 
|  | 4187 | fi | 
|  | 4188 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4189 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4190 | IFS=$as_save_IFS | 
|  | 4191 |  | 
|  | 4192 | fi | 
|  | 4193 | fi | 
|  | 4194 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 4195 | if test -n "$ac_ct_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4197 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 4198 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4200 | $as_echo "no" >&6; } | 
|  | 4201 | fi | 
|  | 4202 |  | 
|  | 4203 | if test "x$ac_ct_CC" = x; then | 
|  | 4204 | CC="" | 
|  | 4205 | else | 
|  | 4206 | case $cross_compiling:$ac_tool_warned in | 
|  | 4207 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4208 | { $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] | 4209 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4210 | ac_tool_warned=yes ;; | 
|  | 4211 | esac | 
|  | 4212 | CC=$ac_ct_CC | 
|  | 4213 | fi | 
|  | 4214 | else | 
|  | 4215 | CC="$ac_cv_prog_CC" | 
|  | 4216 | fi | 
|  | 4217 |  | 
|  | 4218 | if test -z "$CC"; then | 
|  | 4219 | if test -n "$ac_tool_prefix"; then | 
|  | 4220 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
|  | 4221 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4223 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4224 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4225 | $as_echo_n "(cached) " >&6 | 
|  | 4226 | else | 
|  | 4227 | if test -n "$CC"; then | 
|  | 4228 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4229 | else | 
|  | 4230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4231 | for as_dir in $PATH | 
|  | 4232 | do | 
|  | 4233 | IFS=$as_save_IFS | 
|  | 4234 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4235 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4237 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4238 | $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] | 4239 | break 2 | 
|  | 4240 | fi | 
|  | 4241 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4242 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4243 | IFS=$as_save_IFS | 
|  | 4244 |  | 
|  | 4245 | fi | 
|  | 4246 | fi | 
|  | 4247 | CC=$ac_cv_prog_CC | 
|  | 4248 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4250 | $as_echo "$CC" >&6; } | 
|  | 4251 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4253 | $as_echo "no" >&6; } | 
|  | 4254 | fi | 
|  | 4255 |  | 
|  | 4256 |  | 
|  | 4257 | fi | 
|  | 4258 | fi | 
|  | 4259 | if test -z "$CC"; then | 
|  | 4260 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 4261 | set dummy cc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4263 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4264 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4265 | $as_echo_n "(cached) " >&6 | 
|  | 4266 | else | 
|  | 4267 | if test -n "$CC"; then | 
|  | 4268 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4269 | else | 
|  | 4270 | ac_prog_rejected=no | 
|  | 4271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4272 | for as_dir in $PATH | 
|  | 4273 | do | 
|  | 4274 | IFS=$as_save_IFS | 
|  | 4275 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4276 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4278 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 4279 | ac_prog_rejected=yes | 
|  | 4280 | continue | 
|  | 4281 | fi | 
|  | 4282 | ac_cv_prog_CC="cc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4283 | $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] | 4284 | break 2 | 
|  | 4285 | fi | 
|  | 4286 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4287 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4288 | IFS=$as_save_IFS | 
|  | 4289 |  | 
|  | 4290 | if test $ac_prog_rejected = yes; then | 
|  | 4291 | # We found a bogon in the path, so make sure we never use it. | 
|  | 4292 | set dummy $ac_cv_prog_CC | 
|  | 4293 | shift | 
|  | 4294 | if test $# != 0; then | 
|  | 4295 | # We chose a different compiler from the bogus one. | 
|  | 4296 | # However, it has the same basename, so the bogon will be chosen | 
|  | 4297 | # first if we set CC to just the basename; use the full file name. | 
|  | 4298 | shift | 
|  | 4299 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 4300 | fi | 
|  | 4301 | fi | 
|  | 4302 | fi | 
|  | 4303 | fi | 
|  | 4304 | CC=$ac_cv_prog_CC | 
|  | 4305 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4307 | $as_echo "$CC" >&6; } | 
|  | 4308 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4310 | $as_echo "no" >&6; } | 
|  | 4311 | fi | 
|  | 4312 |  | 
|  | 4313 |  | 
|  | 4314 | fi | 
|  | 4315 | if test -z "$CC"; then | 
|  | 4316 | if test -n "$ac_tool_prefix"; then | 
|  | 4317 | for ac_prog in cl.exe | 
|  | 4318 | do | 
|  | 4319 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 4320 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4322 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4323 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4324 | $as_echo_n "(cached) " >&6 | 
|  | 4325 | else | 
|  | 4326 | if test -n "$CC"; then | 
|  | 4327 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 4328 | else | 
|  | 4329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4330 | for as_dir in $PATH | 
|  | 4331 | do | 
|  | 4332 | IFS=$as_save_IFS | 
|  | 4333 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4334 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4336 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4337 | $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] | 4338 | break 2 | 
|  | 4339 | fi | 
|  | 4340 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4341 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4342 | IFS=$as_save_IFS | 
|  | 4343 |  | 
|  | 4344 | fi | 
|  | 4345 | fi | 
|  | 4346 | CC=$ac_cv_prog_CC | 
|  | 4347 | if test -n "$CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4349 | $as_echo "$CC" >&6; } | 
|  | 4350 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4352 | $as_echo "no" >&6; } | 
|  | 4353 | fi | 
|  | 4354 |  | 
|  | 4355 |  | 
|  | 4356 | test -n "$CC" && break | 
|  | 4357 | done | 
|  | 4358 | fi | 
|  | 4359 | if test -z "$CC"; then | 
|  | 4360 | ac_ct_CC=$CC | 
|  | 4361 | for ac_prog in cl.exe | 
|  | 4362 | do | 
|  | 4363 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 4364 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4366 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4367 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4368 | $as_echo_n "(cached) " >&6 | 
|  | 4369 | else | 
|  | 4370 | if test -n "$ac_ct_CC"; then | 
|  | 4371 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 4372 | else | 
|  | 4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 4374 | for as_dir in $PATH | 
|  | 4375 | do | 
|  | 4376 | IFS=$as_save_IFS | 
|  | 4377 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4378 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 4380 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4381 | $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] | 4382 | break 2 | 
|  | 4383 | fi | 
|  | 4384 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4385 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4386 | IFS=$as_save_IFS | 
|  | 4387 |  | 
|  | 4388 | fi | 
|  | 4389 | fi | 
|  | 4390 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 4391 | if test -n "$ac_ct_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4393 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 4394 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4396 | $as_echo "no" >&6; } | 
|  | 4397 | fi | 
|  | 4398 |  | 
|  | 4399 |  | 
|  | 4400 | test -n "$ac_ct_CC" && break | 
|  | 4401 | done | 
|  | 4402 |  | 
|  | 4403 | if test "x$ac_ct_CC" = x; then | 
|  | 4404 | CC="" | 
|  | 4405 | else | 
|  | 4406 | case $cross_compiling:$ac_tool_warned in | 
|  | 4407 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4408 | { $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] | 4409 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 4410 | ac_tool_warned=yes ;; | 
|  | 4411 | esac | 
|  | 4412 | CC=$ac_ct_CC | 
|  | 4413 | fi | 
|  | 4414 | fi | 
|  | 4415 |  | 
|  | 4416 | fi | 
|  | 4417 |  | 
|  | 4418 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4419 | 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] | 4420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4421 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
|  | 4422 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4423 |  | 
|  | 4424 | # Provide some information about the compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4425 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4426 | set X $ac_compile | 
|  | 4427 | ac_compiler=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4428 | for ac_option in --version -v -V -qversion; do | 
|  | 4429 | { { ac_try="$ac_compiler $ac_option >&5" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4430 | case "(($ac_try" in | 
|  | 4431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4432 | *) ac_try_echo=$ac_try;; | 
|  | 4433 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4434 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4435 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4436 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4437 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4438 | if test -s conftest.err; then | 
|  | 4439 | sed '10a\ | 
|  | 4440 | ... rest of stderr output deleted ... | 
|  | 4441 | 10q' conftest.err >conftest.er1 | 
|  | 4442 | cat conftest.er1 >&5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4443 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4444 | rm -f conftest.er1 conftest.err | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4446 | test $ac_status = 0; } | 
|  | 4447 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4448 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4450 | /* end confdefs.h.  */ | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4451 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4452 | int | 
|  | 4453 | main () | 
|  | 4454 | { | 
|  | 4455 |  | 
|  | 4456 | ; | 
|  | 4457 | return 0; | 
|  | 4458 | } | 
|  | 4459 | _ACEOF | 
|  | 4460 | ac_clean_files_save=$ac_clean_files | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4461 | 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] | 4462 | # Try to create an executable without -o first, disregard a.out. | 
|  | 4463 | # It will help us diagnose broken compilers, and finding out an intuition | 
|  | 4464 | # of exeext. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | 
|  | 4466 | $as_echo_n "checking whether the C compiler works... " >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4467 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | 
|  | 4468 |  | 
|  | 4469 | # The possible output files: | 
|  | 4470 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | 
|  | 4471 |  | 
|  | 4472 | ac_rmfiles= | 
|  | 4473 | for ac_file in $ac_files | 
|  | 4474 | do | 
|  | 4475 | case $ac_file in | 
|  | 4476 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
|  | 4477 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | 
|  | 4478 | esac | 
|  | 4479 | done | 
|  | 4480 | rm -f $ac_rmfiles | 
|  | 4481 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4482 | if { { ac_try="$ac_link_default" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4483 | case "(($ac_try" in | 
|  | 4484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4485 | *) ac_try_echo=$ac_try;; | 
|  | 4486 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4487 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4488 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4489 | (eval "$ac_link_default") 2>&5 | 
|  | 4490 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4491 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4492 | test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4493 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | 
|  | 4494 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | 
|  | 4495 | # in a Makefile.  We should not override ac_cv_exeext if it was cached, | 
|  | 4496 | # so that the user can short-circuit this test for compilers unknown to | 
|  | 4497 | # Autoconf. | 
|  | 4498 | for ac_file in $ac_files '' | 
|  | 4499 | do | 
|  | 4500 | test -f "$ac_file" || continue | 
|  | 4501 | case $ac_file in | 
|  | 4502 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | 
|  | 4503 | ;; | 
|  | 4504 | [ab].out ) | 
|  | 4505 | # We found the default executable, but exeext='' is most | 
|  | 4506 | # certainly right. | 
|  | 4507 | break;; | 
|  | 4508 | *.* ) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4509 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4510 | then :; else | 
|  | 4511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4512 | fi | 
|  | 4513 | # We set ac_cv_exeext here because the later test for it is not | 
|  | 4514 | # safe: cross compilers may not add the suffix if given an `-o' | 
|  | 4515 | # argument, so we may need to know it at that point already. | 
|  | 4516 | # Even if this section looks crufty: it has the advantage of | 
|  | 4517 | # actually working. | 
|  | 4518 | break;; | 
|  | 4519 | * ) | 
|  | 4520 | break;; | 
|  | 4521 | esac | 
|  | 4522 | done | 
|  | 4523 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 
|  | 4524 |  | 
|  | 4525 | else | 
|  | 4526 | ac_file='' | 
|  | 4527 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4528 | if test -z "$ac_file"; then : | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 4530 | $as_echo "no" >&6; } | 
|  | 4531 | $as_echo "$as_me: failed program was:" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4532 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4533 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4535 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4536 | as_fn_error 77 "C compiler cannot create executables | 
|  | 4537 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4538 | else | 
|  | 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 4540 | $as_echo "yes" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4541 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | 
|  | 4543 | $as_echo_n "checking for C compiler default output file name... " >&6; } | 
|  | 4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | 
|  | 4545 | $as_echo "$ac_file" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4546 | ac_exeext=$ac_cv_exeext | 
|  | 4547 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4548 | 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] | 4549 | ac_clean_files=$ac_clean_files_save | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4551 | $as_echo_n "checking for suffix of executables... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4552 | if { { ac_try="$ac_link" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4553 | case "(($ac_try" in | 
|  | 4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4555 | *) ac_try_echo=$ac_try;; | 
|  | 4556 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4558 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4559 | (eval "$ac_link") 2>&5 | 
|  | 4560 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4562 | test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4563 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | 
|  | 4564 | # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will | 
|  | 4565 | # work properly (i.e., refer to `conftest.exe'), while it won't with | 
|  | 4566 | # `rm'. | 
|  | 4567 | for ac_file in conftest.exe conftest conftest.*; do | 
|  | 4568 | test -f "$ac_file" || continue | 
|  | 4569 | case $ac_file in | 
|  | 4570 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | 
|  | 4571 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | 
|  | 4572 | break;; | 
|  | 4573 | * ) break;; | 
|  | 4574 | esac | 
|  | 4575 | done | 
|  | 4576 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4579 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | 
|  | 4580 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4581 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4582 | rm -f conftest conftest$ac_cv_exeext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4584 | $as_echo "$ac_cv_exeext" >&6; } | 
|  | 4585 |  | 
|  | 4586 | rm -f conftest.$ac_ext | 
|  | 4587 | EXEEXT=$ac_cv_exeext | 
|  | 4588 | ac_exeext=$EXEEXT | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 4590 | /* end confdefs.h.  */ | 
|  | 4591 | #include <stdio.h> | 
|  | 4592 | int | 
|  | 4593 | main () | 
|  | 4594 | { | 
|  | 4595 | FILE *f = fopen ("conftest.out", "w"); | 
|  | 4596 | return ferror (f) || fclose (f) != 0; | 
|  | 4597 |  | 
|  | 4598 | ; | 
|  | 4599 | return 0; | 
|  | 4600 | } | 
|  | 4601 | _ACEOF | 
|  | 4602 | ac_clean_files="$ac_clean_files conftest.out" | 
|  | 4603 | # Check that the compiler produces executables we can run.  If not, either | 
|  | 4604 | # the compiler is broken, or we cross compile. | 
|  | 4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | 
|  | 4606 | $as_echo_n "checking whether we are cross compiling... " >&6; } | 
|  | 4607 | if test "$cross_compiling" != yes; then | 
|  | 4608 | { { ac_try="$ac_link" | 
|  | 4609 | case "(($ac_try" in | 
|  | 4610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4611 | *) ac_try_echo=$ac_try;; | 
|  | 4612 | esac | 
|  | 4613 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4614 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4615 | (eval "$ac_link") 2>&5 | 
|  | 4616 | ac_status=$? | 
|  | 4617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4618 | test $ac_status = 0; } | 
|  | 4619 | if { ac_try='./conftest$ac_cv_exeext' | 
|  | 4620 | { { case "(($ac_try" in | 
|  | 4621 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4622 | *) ac_try_echo=$ac_try;; | 
|  | 4623 | esac | 
|  | 4624 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4625 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 4626 | (eval "$ac_try") 2>&5 | 
|  | 4627 | ac_status=$? | 
|  | 4628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4629 | test $ac_status = 0; }; }; then | 
|  | 4630 | cross_compiling=no | 
|  | 4631 | else | 
|  | 4632 | if test "$cross_compiling" = maybe; then | 
|  | 4633 | cross_compiling=yes | 
|  | 4634 | else | 
|  | 4635 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 4636 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4637 | as_fn_error $? "cannot run C compiled programs. | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4638 | If you meant to cross compile, use \`--host'. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4639 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4640 | fi | 
|  | 4641 | fi | 
|  | 4642 | fi | 
|  | 4643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | 
|  | 4644 | $as_echo "$cross_compiling" >&6; } | 
|  | 4645 |  | 
|  | 4646 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | 
|  | 4647 | ac_clean_files=$ac_clean_files_save | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4648 | { $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] | 4649 | $as_echo_n "checking for suffix of object files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4650 | if ${ac_cv_objext+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4651 | $as_echo_n "(cached) " >&6 | 
|  | 4652 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4654 | /* end confdefs.h.  */ | 
|  | 4655 |  | 
|  | 4656 | int | 
|  | 4657 | main () | 
|  | 4658 | { | 
|  | 4659 |  | 
|  | 4660 | ; | 
|  | 4661 | return 0; | 
|  | 4662 | } | 
|  | 4663 | _ACEOF | 
|  | 4664 | rm -f conftest.o conftest.obj | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4665 | if { { ac_try="$ac_compile" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4666 | case "(($ac_try" in | 
|  | 4667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 4668 | *) ac_try_echo=$ac_try;; | 
|  | 4669 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 4671 | $as_echo "$ac_try_echo"; } >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4672 | (eval "$ac_compile") 2>&5 | 
|  | 4673 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 4675 | test $ac_status = 0; }; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4676 | for ac_file in conftest.o conftest.obj conftest.*; do | 
|  | 4677 | test -f "$ac_file" || continue; | 
|  | 4678 | case $ac_file in | 
|  | 4679 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | 
|  | 4680 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | 
|  | 4681 | break;; | 
|  | 4682 | esac | 
|  | 4683 | done | 
|  | 4684 | else | 
|  | 4685 | $as_echo "$as_me: failed program was:" >&5 | 
|  | 4686 | sed 's/^/| /' conftest.$ac_ext >&5 | 
|  | 4687 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4688 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4689 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4690 | as_fn_error $? "cannot compute suffix of object files: cannot compile | 
|  | 4691 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4692 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4693 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 
|  | 4694 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4696 | $as_echo "$ac_cv_objext" >&6; } | 
|  | 4697 | OBJEXT=$ac_cv_objext | 
|  | 4698 | ac_objext=$OBJEXT | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4699 | { $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] | 4700 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4701 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4702 | $as_echo_n "(cached) " >&6 | 
|  | 4703 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4705 | /* end confdefs.h.  */ | 
|  | 4706 |  | 
|  | 4707 | int | 
|  | 4708 | main () | 
|  | 4709 | { | 
|  | 4710 | #ifndef __GNUC__ | 
|  | 4711 | choke me | 
|  | 4712 | #endif | 
|  | 4713 |  | 
|  | 4714 | ; | 
|  | 4715 | return 0; | 
|  | 4716 | } | 
|  | 4717 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4718 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4719 | ac_compiler_gnu=yes | 
|  | 4720 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4721 | ac_compiler_gnu=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4722 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4724 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 4725 |  | 
|  | 4726 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4727 | { $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] | 4728 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 4729 | if test $ac_compiler_gnu = yes; then | 
|  | 4730 | GCC=yes | 
|  | 4731 | else | 
|  | 4732 | GCC= | 
|  | 4733 | fi | 
|  | 4734 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 4735 | ac_save_CFLAGS=$CFLAGS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4737 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4738 | if ${ac_cv_prog_cc_g+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4739 | $as_echo_n "(cached) " >&6 | 
|  | 4740 | else | 
|  | 4741 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 4742 | ac_c_werror_flag=yes | 
|  | 4743 | ac_cv_prog_cc_g=no | 
|  | 4744 | CFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4746 | /* end confdefs.h.  */ | 
|  | 4747 |  | 
|  | 4748 | int | 
|  | 4749 | main () | 
|  | 4750 | { | 
|  | 4751 |  | 
|  | 4752 | ; | 
|  | 4753 | return 0; | 
|  | 4754 | } | 
|  | 4755 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4756 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4757 | ac_cv_prog_cc_g=yes | 
|  | 4758 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4759 | CFLAGS="" | 
|  | 4760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4761 | /* end confdefs.h.  */ | 
|  | 4762 |  | 
|  | 4763 | int | 
|  | 4764 | main () | 
|  | 4765 | { | 
|  | 4766 |  | 
|  | 4767 | ; | 
|  | 4768 | return 0; | 
|  | 4769 | } | 
|  | 4770 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4771 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4772 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4773 | else | 
|  | 4774 | ac_c_werror_flag=$ac_save_c_werror_flag | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4775 | CFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4777 | /* end confdefs.h.  */ | 
|  | 4778 |  | 
|  | 4779 | int | 
|  | 4780 | main () | 
|  | 4781 | { | 
|  | 4782 |  | 
|  | 4783 | ; | 
|  | 4784 | return 0; | 
|  | 4785 | } | 
|  | 4786 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4787 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4788 | ac_cv_prog_cc_g=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4789 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4791 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4793 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 4795 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 4796 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4797 | { $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] | 4798 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
|  | 4799 | if test "$ac_test_CFLAGS" = set; then | 
|  | 4800 | CFLAGS=$ac_save_CFLAGS | 
|  | 4801 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 4802 | if test "$GCC" = yes; then | 
|  | 4803 | CFLAGS="-g -O2" | 
|  | 4804 | else | 
|  | 4805 | CFLAGS="-g" | 
|  | 4806 | fi | 
|  | 4807 | else | 
|  | 4808 | if test "$GCC" = yes; then | 
|  | 4809 | CFLAGS="-O2" | 
|  | 4810 | else | 
|  | 4811 | CFLAGS= | 
|  | 4812 | fi | 
|  | 4813 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4814 | { $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] | 4815 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4816 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4817 | $as_echo_n "(cached) " >&6 | 
|  | 4818 | else | 
|  | 4819 | ac_cv_prog_cc_c89=no | 
|  | 4820 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4822 | /* end confdefs.h.  */ | 
|  | 4823 | #include <stdarg.h> | 
|  | 4824 | #include <stdio.h> | 
|  | 4825 | #include <sys/types.h> | 
|  | 4826 | #include <sys/stat.h> | 
|  | 4827 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 4828 | struct buf { int x; }; | 
|  | 4829 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 4830 | static char *e (p, i) | 
|  | 4831 | char **p; | 
|  | 4832 | int i; | 
|  | 4833 | { | 
|  | 4834 | return p[i]; | 
|  | 4835 | } | 
|  | 4836 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 4837 | { | 
|  | 4838 | char *s; | 
|  | 4839 | va_list v; | 
|  | 4840 | va_start (v,p); | 
|  | 4841 | s = g (p, va_arg (v,int)); | 
|  | 4842 | va_end (v); | 
|  | 4843 | return s; | 
|  | 4844 | } | 
|  | 4845 |  | 
|  | 4846 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 4847 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 4848 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 4849 | as 'x'.  The following induces an error, until -std is added to get | 
|  | 4850 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 4851 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 4852 | that's true only with -std.  */ | 
|  | 4853 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 4854 |  | 
|  | 4855 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 4856 | inside strings and character constants.  */ | 
|  | 4857 | #define FOO(x) 'x' | 
|  | 4858 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 4859 |  | 
|  | 4860 | int test (int i, double x); | 
|  | 4861 | struct s1 {int (*f) (int a);}; | 
|  | 4862 | struct s2 {int (*f) (double a);}; | 
|  | 4863 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 4864 | int argc; | 
|  | 4865 | char **argv; | 
|  | 4866 | int | 
|  | 4867 | main () | 
|  | 4868 | { | 
|  | 4869 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 4870 | ; | 
|  | 4871 | return 0; | 
|  | 4872 | } | 
|  | 4873 | _ACEOF | 
|  | 4874 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 4875 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 4876 | do | 
|  | 4877 | CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4878 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4879 | ac_cv_prog_cc_c89=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4880 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4881 | rm -f core conftest.err conftest.$ac_objext | 
|  | 4882 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
|  | 4883 | done | 
|  | 4884 | rm -f conftest.$ac_ext | 
|  | 4885 | CC=$ac_save_CC | 
|  | 4886 |  | 
|  | 4887 | fi | 
|  | 4888 | # AC_CACHE_VAL | 
|  | 4889 | case "x$ac_cv_prog_cc_c89" in | 
|  | 4890 | x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4892 | $as_echo "none needed" >&6; } ;; | 
|  | 4893 | xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4895 | $as_echo "unsupported" >&6; } ;; | 
|  | 4896 | *) | 
|  | 4897 | CC="$CC $ac_cv_prog_cc_c89" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4898 | { $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] | 4899 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
|  | 4900 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4901 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4902 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4903 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4904 |  | 
|  | 4905 | ac_ext=c | 
|  | 4906 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 4907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 4908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 4909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4910 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4911 | depcc="$CC"   am_compiler_list= | 
|  | 4912 |  | 
|  | 4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
|  | 4914 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4915 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4916 | $as_echo_n "(cached) " >&6 | 
|  | 4917 | else | 
|  | 4918 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 4919 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 4920 | # making bogus files that we don't know about and never remove.  For | 
|  | 4921 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 4922 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 4923 | # in D'. | 
|  | 4924 | mkdir conftest.dir | 
|  | 4925 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 4926 | # using a relative directory. | 
|  | 4927 | cp "$am_depcomp" conftest.dir | 
|  | 4928 | cd conftest.dir | 
|  | 4929 | # We will build objects and dependencies in a subdirectory because | 
|  | 4930 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 4931 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 4932 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 4933 | # the current directory while Tru64 will put them in the object | 
|  | 4934 | # directory. | 
|  | 4935 | mkdir sub | 
|  | 4936 |  | 
|  | 4937 | am_cv_CC_dependencies_compiler_type=none | 
|  | 4938 | if test "$am_compiler_list" = ""; then | 
|  | 4939 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 4940 | fi | 
|  | 4941 | am__universal=false | 
|  | 4942 | case " $depcc " in #( | 
|  | 4943 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 4944 | esac | 
|  | 4945 |  | 
|  | 4946 | for depmode in $am_compiler_list; do | 
|  | 4947 | # Setup a source with many dependencies, because some compilers | 
|  | 4948 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 4949 | # we should not choose a depcomp mode which is confused by this. | 
|  | 4950 | # | 
|  | 4951 | # We need to recreate these files for each test, as the compiler may | 
|  | 4952 | # overwrite some of them when testing with obscure command lines. | 
|  | 4953 | # This happens at least with the AIX C compiler. | 
|  | 4954 | : > sub/conftest.c | 
|  | 4955 | for i in 1 2 3 4 5 6; do | 
|  | 4956 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 4957 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 4958 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 4959 | touch sub/conftst$i.h | 
|  | 4960 | done | 
|  | 4961 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 4962 |  | 
|  | 4963 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 4964 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 4965 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 4966 | # versions had trouble with output in subdirs | 
|  | 4967 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 4968 | am__minus_obj="-o $am__obj" | 
|  | 4969 | case $depmode in | 
|  | 4970 | gcc) | 
|  | 4971 | # This depmode causes a compiler race in universal mode. | 
|  | 4972 | test "$am__universal" = false || continue | 
|  | 4973 | ;; | 
|  | 4974 | nosideeffect) | 
|  | 4975 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 4976 | # only be used when explicitly requested | 
|  | 4977 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 4978 | continue | 
|  | 4979 | else | 
|  | 4980 | break | 
|  | 4981 | fi | 
|  | 4982 | ;; | 
|  | 4983 | msvisualcpp | msvcmsys) | 
|  | 4984 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 4985 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 4986 | # so weak that their functioning should not be impacted. | 
|  | 4987 | am__obj=conftest.${OBJEXT-o} | 
|  | 4988 | am__minus_obj= | 
|  | 4989 | ;; | 
|  | 4990 | none) break ;; | 
|  | 4991 | esac | 
|  | 4992 | if depmode=$depmode \ | 
|  | 4993 | source=sub/conftest.c object=$am__obj \ | 
|  | 4994 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 4995 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 4996 | >/dev/null 2>conftest.err && | 
|  | 4997 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 4998 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 4999 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 5000 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 5001 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 5002 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 5003 | # that says an option was ignored or not supported. | 
|  | 5004 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 5005 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 5006 | # The diagnosis changed in icc 8.0: | 
|  | 5007 | #   icc: Command line remark: option '-MP' not supported | 
|  | 5008 | if (grep 'ignoring option' conftest.err || | 
|  | 5009 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 5010 | am_cv_CC_dependencies_compiler_type=$depmode | 
|  | 5011 | break | 
|  | 5012 | fi | 
|  | 5013 | fi | 
|  | 5014 | done | 
|  | 5015 |  | 
|  | 5016 | cd .. | 
|  | 5017 | rm -rf conftest.dir | 
|  | 5018 | else | 
|  | 5019 | am_cv_CC_dependencies_compiler_type=none | 
|  | 5020 | fi | 
|  | 5021 |  | 
|  | 5022 | fi | 
|  | 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | 
|  | 5024 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | 
|  | 5025 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 
|  | 5026 |  | 
|  | 5027 | if | 
|  | 5028 | test "x$enable_dependency_tracking" != xno \ | 
|  | 5029 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | 
|  | 5030 | am__fastdepCC_TRUE= | 
|  | 5031 | am__fastdepCC_FALSE='#' | 
|  | 5032 | else | 
|  | 5033 | am__fastdepCC_TRUE='#' | 
|  | 5034 | am__fastdepCC_FALSE= | 
|  | 5035 | fi | 
|  | 5036 |  | 
|  | 5037 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5038 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5039 | ac_ext=c | 
|  | 5040 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | 
|  | 5045 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 5046 | # On Suns, sometimes $CPP names a directory. | 
|  | 5047 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 5048 | CPP= | 
|  | 5049 | fi | 
|  | 5050 | if test -z "$CPP"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5051 | if ${ac_cv_prog_CPP+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5052 | $as_echo_n "(cached) " >&6 | 
|  | 5053 | else | 
|  | 5054 | # Double quotes because CPP needs to be expanded | 
|  | 5055 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 5056 | do | 
|  | 5057 | ac_preproc_ok=false | 
|  | 5058 | for ac_c_preproc_warn_flag in '' yes | 
|  | 5059 | do | 
|  | 5060 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 5061 | # with a fresh cross-compiler works. | 
|  | 5062 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 5063 | # <limits.h> exists even on freestanding compilers. | 
|  | 5064 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 5065 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 5066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5067 | /* end confdefs.h.  */ | 
|  | 5068 | #ifdef __STDC__ | 
|  | 5069 | # include <limits.h> | 
|  | 5070 | #else | 
|  | 5071 | # include <assert.h> | 
|  | 5072 | #endif | 
|  | 5073 | Syntax error | 
|  | 5074 | _ACEOF | 
|  | 5075 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5076 |  | 
|  | 5077 | else | 
|  | 5078 | # Broken: fails on valid input. | 
|  | 5079 | continue | 
|  | 5080 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5081 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5082 |  | 
|  | 5083 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 5084 | # can be detected and how. | 
|  | 5085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5086 | /* end confdefs.h.  */ | 
|  | 5087 | #include <ac_nonexistent.h> | 
|  | 5088 | _ACEOF | 
|  | 5089 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5090 | # Broken: success on invalid input. | 
|  | 5091 | continue | 
|  | 5092 | else | 
|  | 5093 | # Passes both tests. | 
|  | 5094 | ac_preproc_ok=: | 
|  | 5095 | break | 
|  | 5096 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5097 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5098 |  | 
|  | 5099 | done | 
|  | 5100 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5101 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5102 | if $ac_preproc_ok; then : | 
|  | 5103 | break | 
|  | 5104 | fi | 
|  | 5105 |  | 
|  | 5106 | done | 
|  | 5107 | ac_cv_prog_CPP=$CPP | 
|  | 5108 |  | 
|  | 5109 | fi | 
|  | 5110 | CPP=$ac_cv_prog_CPP | 
|  | 5111 | else | 
|  | 5112 | ac_cv_prog_CPP=$CPP | 
|  | 5113 | fi | 
|  | 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
|  | 5115 | $as_echo "$CPP" >&6; } | 
|  | 5116 | ac_preproc_ok=false | 
|  | 5117 | for ac_c_preproc_warn_flag in '' yes | 
|  | 5118 | do | 
|  | 5119 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 5120 | # with a fresh cross-compiler works. | 
|  | 5121 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 5122 | # <limits.h> exists even on freestanding compilers. | 
|  | 5123 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 5124 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 5125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5126 | /* end confdefs.h.  */ | 
|  | 5127 | #ifdef __STDC__ | 
|  | 5128 | # include <limits.h> | 
|  | 5129 | #else | 
|  | 5130 | # include <assert.h> | 
|  | 5131 | #endif | 
|  | 5132 | Syntax error | 
|  | 5133 | _ACEOF | 
|  | 5134 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5135 |  | 
|  | 5136 | else | 
|  | 5137 | # Broken: fails on valid input. | 
|  | 5138 | continue | 
|  | 5139 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5140 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5141 |  | 
|  | 5142 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 5143 | # can be detected and how. | 
|  | 5144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5145 | /* end confdefs.h.  */ | 
|  | 5146 | #include <ac_nonexistent.h> | 
|  | 5147 | _ACEOF | 
|  | 5148 | if ac_fn_c_try_cpp "$LINENO"; then : | 
|  | 5149 | # Broken: success on invalid input. | 
|  | 5150 | continue | 
|  | 5151 | else | 
|  | 5152 | # Passes both tests. | 
|  | 5153 | ac_preproc_ok=: | 
|  | 5154 | break | 
|  | 5155 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5156 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5157 |  | 
|  | 5158 | done | 
|  | 5159 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5160 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5161 | if $ac_preproc_ok; then : | 
|  | 5162 |  | 
|  | 5163 | else | 
|  | 5164 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 5165 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5166 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 5167 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5168 | fi | 
|  | 5169 |  | 
|  | 5170 | ac_ext=c | 
|  | 5171 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5175 |  | 
|  | 5176 |  | 
|  | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | 
|  | 5178 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5179 | if ${ac_cv_path_GREP+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5180 | $as_echo_n "(cached) " >&6 | 
|  | 5181 | else | 
|  | 5182 | if test -z "$GREP"; then | 
|  | 5183 | ac_path_GREP_found=false | 
|  | 5184 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5186 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5187 | do | 
|  | 5188 | IFS=$as_save_IFS | 
|  | 5189 | test -z "$as_dir" && as_dir=. | 
|  | 5190 | for ac_prog in grep ggrep; do | 
|  | 5191 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5192 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 5193 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | 
|  | 5194 | # Check for GNU ac_path_GREP and select it if it is found. | 
|  | 5195 | # Check for GNU $ac_path_GREP | 
|  | 5196 | case `"$ac_path_GREP" --version 2>&1` in | 
|  | 5197 | *GNU*) | 
|  | 5198 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | 
|  | 5199 | *) | 
|  | 5200 | ac_count=0 | 
|  | 5201 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 5202 | while : | 
|  | 5203 | do | 
|  | 5204 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5205 | mv "conftest.tmp" "conftest.in" | 
|  | 5206 | cp "conftest.in" "conftest.nl" | 
|  | 5207 | $as_echo 'GREP' >> "conftest.nl" | 
|  | 5208 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5209 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 5210 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 5211 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | 
|  | 5212 | # Best one so far, save it but keep looking for a better one | 
|  | 5213 | ac_cv_path_GREP="$ac_path_GREP" | 
|  | 5214 | ac_path_GREP_max=$ac_count | 
|  | 5215 | fi | 
|  | 5216 | # 10*(2^10) chars as input seems more than enough | 
|  | 5217 | test $ac_count -gt 10 && break | 
|  | 5218 | done | 
|  | 5219 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5220 | esac | 
|  | 5221 |  | 
|  | 5222 | $ac_path_GREP_found && break 3 | 
|  | 5223 | done | 
|  | 5224 | done | 
|  | 5225 | done | 
|  | 5226 | IFS=$as_save_IFS | 
|  | 5227 | if test -z "$ac_cv_path_GREP"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5228 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5229 | fi | 
|  | 5230 | else | 
|  | 5231 | ac_cv_path_GREP=$GREP | 
|  | 5232 | fi | 
|  | 5233 |  | 
|  | 5234 | fi | 
|  | 5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | 
|  | 5236 | $as_echo "$ac_cv_path_GREP" >&6; } | 
|  | 5237 | GREP="$ac_cv_path_GREP" | 
|  | 5238 |  | 
|  | 5239 |  | 
|  | 5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | 
|  | 5241 | $as_echo_n "checking for egrep... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5242 | if ${ac_cv_path_EGREP+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5243 | $as_echo_n "(cached) " >&6 | 
|  | 5244 | else | 
|  | 5245 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | 
|  | 5246 | then ac_cv_path_EGREP="$GREP -E" | 
|  | 5247 | else | 
|  | 5248 | if test -z "$EGREP"; then | 
|  | 5249 | ac_path_EGREP_found=false | 
|  | 5250 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5252 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 5253 | do | 
|  | 5254 | IFS=$as_save_IFS | 
|  | 5255 | test -z "$as_dir" && as_dir=. | 
|  | 5256 | for ac_prog in egrep; do | 
|  | 5257 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5258 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 5259 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | 
|  | 5260 | # Check for GNU ac_path_EGREP and select it if it is found. | 
|  | 5261 | # Check for GNU $ac_path_EGREP | 
|  | 5262 | case `"$ac_path_EGREP" --version 2>&1` in | 
|  | 5263 | *GNU*) | 
|  | 5264 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | 
|  | 5265 | *) | 
|  | 5266 | ac_count=0 | 
|  | 5267 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 5268 | while : | 
|  | 5269 | do | 
|  | 5270 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 5271 | mv "conftest.tmp" "conftest.in" | 
|  | 5272 | cp "conftest.in" "conftest.nl" | 
|  | 5273 | $as_echo 'EGREP' >> "conftest.nl" | 
|  | 5274 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 5275 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 5276 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 5277 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | 
|  | 5278 | # Best one so far, save it but keep looking for a better one | 
|  | 5279 | ac_cv_path_EGREP="$ac_path_EGREP" | 
|  | 5280 | ac_path_EGREP_max=$ac_count | 
|  | 5281 | fi | 
|  | 5282 | # 10*(2^10) chars as input seems more than enough | 
|  | 5283 | test $ac_count -gt 10 && break | 
|  | 5284 | done | 
|  | 5285 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 5286 | esac | 
|  | 5287 |  | 
|  | 5288 | $ac_path_EGREP_found && break 3 | 
|  | 5289 | done | 
|  | 5290 | done | 
|  | 5291 | done | 
|  | 5292 | IFS=$as_save_IFS | 
|  | 5293 | if test -z "$ac_cv_path_EGREP"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5294 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5295 | fi | 
|  | 5296 | else | 
|  | 5297 | ac_cv_path_EGREP=$EGREP | 
|  | 5298 | fi | 
|  | 5299 |  | 
|  | 5300 | fi | 
|  | 5301 | fi | 
|  | 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | 
|  | 5303 | $as_echo "$ac_cv_path_EGREP" >&6; } | 
|  | 5304 | EGREP="$ac_cv_path_EGREP" | 
|  | 5305 |  | 
|  | 5306 |  | 
|  | 5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | 
|  | 5308 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5309 | if ${ac_cv_header_stdc+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5310 | $as_echo_n "(cached) " >&6 | 
|  | 5311 | else | 
|  | 5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5313 | /* end confdefs.h.  */ | 
|  | 5314 | #include <stdlib.h> | 
|  | 5315 | #include <stdarg.h> | 
|  | 5316 | #include <string.h> | 
|  | 5317 | #include <float.h> | 
|  | 5318 |  | 
|  | 5319 | int | 
|  | 5320 | main () | 
|  | 5321 | { | 
|  | 5322 |  | 
|  | 5323 | ; | 
|  | 5324 | return 0; | 
|  | 5325 | } | 
|  | 5326 | _ACEOF | 
|  | 5327 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5328 | ac_cv_header_stdc=yes | 
|  | 5329 | else | 
|  | 5330 | ac_cv_header_stdc=no | 
|  | 5331 | fi | 
|  | 5332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5333 |  | 
|  | 5334 | if test $ac_cv_header_stdc = yes; then | 
|  | 5335 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
|  | 5336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5337 | /* end confdefs.h.  */ | 
|  | 5338 | #include <string.h> | 
|  | 5339 |  | 
|  | 5340 | _ACEOF | 
|  | 5341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5342 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 5343 |  | 
|  | 5344 | else | 
|  | 5345 | ac_cv_header_stdc=no | 
|  | 5346 | fi | 
|  | 5347 | rm -f conftest* | 
|  | 5348 |  | 
|  | 5349 | fi | 
|  | 5350 |  | 
|  | 5351 | if test $ac_cv_header_stdc = yes; then | 
|  | 5352 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
|  | 5353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5354 | /* end confdefs.h.  */ | 
|  | 5355 | #include <stdlib.h> | 
|  | 5356 |  | 
|  | 5357 | _ACEOF | 
|  | 5358 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
|  | 5359 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 5360 |  | 
|  | 5361 | else | 
|  | 5362 | ac_cv_header_stdc=no | 
|  | 5363 | fi | 
|  | 5364 | rm -f conftest* | 
|  | 5365 |  | 
|  | 5366 | fi | 
|  | 5367 |  | 
|  | 5368 | if test $ac_cv_header_stdc = yes; then | 
|  | 5369 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
|  | 5370 | if test "$cross_compiling" = yes; then : | 
|  | 5371 | : | 
|  | 5372 | else | 
|  | 5373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5374 | /* end confdefs.h.  */ | 
|  | 5375 | #include <ctype.h> | 
|  | 5376 | #include <stdlib.h> | 
|  | 5377 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 5378 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 5379 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 5380 | #else | 
|  | 5381 | # define ISLOWER(c) \ | 
|  | 5382 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 5383 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 5384 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 5385 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 5386 | #endif | 
|  | 5387 |  | 
|  | 5388 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 5389 | int | 
|  | 5390 | main () | 
|  | 5391 | { | 
|  | 5392 | int i; | 
|  | 5393 | for (i = 0; i < 256; i++) | 
|  | 5394 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 5395 | || toupper (i) != TOUPPER (i)) | 
|  | 5396 | return 2; | 
|  | 5397 | return 0; | 
|  | 5398 | } | 
|  | 5399 | _ACEOF | 
|  | 5400 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 5401 |  | 
|  | 5402 | else | 
|  | 5403 | ac_cv_header_stdc=no | 
|  | 5404 | fi | 
|  | 5405 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 5406 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 5407 | fi | 
|  | 5408 |  | 
|  | 5409 | fi | 
|  | 5410 | fi | 
|  | 5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
|  | 5412 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 5413 | if test $ac_cv_header_stdc = yes; then | 
|  | 5414 |  | 
|  | 5415 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
|  | 5416 |  | 
|  | 5417 | fi | 
|  | 5418 |  | 
|  | 5419 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | 
|  | 5420 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | 
|  | 5421 | inttypes.h stdint.h unistd.h | 
|  | 5422 | do : | 
|  | 5423 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 5424 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 5425 | " | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5426 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5427 | cat >>confdefs.h <<_ACEOF | 
|  | 5428 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 5429 | _ACEOF | 
|  | 5430 |  | 
|  | 5431 | fi | 
|  | 5432 |  | 
|  | 5433 | done | 
|  | 5434 |  | 
|  | 5435 |  | 
|  | 5436 |  | 
|  | 5437 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5438 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5439 | MINIX=yes | 
|  | 5440 | else | 
|  | 5441 | MINIX= | 
|  | 5442 | fi | 
|  | 5443 |  | 
|  | 5444 |  | 
|  | 5445 | if test "$MINIX" = yes; then | 
|  | 5446 |  | 
|  | 5447 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | 
|  | 5448 |  | 
|  | 5449 |  | 
|  | 5450 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | 
|  | 5451 |  | 
|  | 5452 |  | 
|  | 5453 | $as_echo "#define _MINIX 1" >>confdefs.h | 
|  | 5454 |  | 
|  | 5455 | fi | 
|  | 5456 |  | 
|  | 5457 |  | 
|  | 5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | 
|  | 5459 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5460 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5461 | $as_echo_n "(cached) " >&6 | 
|  | 5462 | else | 
|  | 5463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5464 | /* end confdefs.h.  */ | 
|  | 5465 |  | 
|  | 5466 | #	  define __EXTENSIONS__ 1 | 
|  | 5467 | $ac_includes_default | 
|  | 5468 | int | 
|  | 5469 | main () | 
|  | 5470 | { | 
|  | 5471 |  | 
|  | 5472 | ; | 
|  | 5473 | return 0; | 
|  | 5474 | } | 
|  | 5475 | _ACEOF | 
|  | 5476 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5477 | ac_cv_safe_to_define___extensions__=yes | 
|  | 5478 | else | 
|  | 5479 | ac_cv_safe_to_define___extensions__=no | 
|  | 5480 | fi | 
|  | 5481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5482 | fi | 
|  | 5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | 
|  | 5484 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | 
|  | 5485 | test $ac_cv_safe_to_define___extensions__ = yes && | 
|  | 5486 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | 
|  | 5487 |  | 
|  | 5488 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | 
|  | 5489 |  | 
|  | 5490 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | 
|  | 5491 |  | 
|  | 5492 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | 
|  | 5493 |  | 
|  | 5494 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | 
|  | 5495 |  | 
|  | 5496 |  | 
|  | 5497 |  | 
|  | 5498 | # Check for programs | 
|  | 5499 | ac_ext=c | 
|  | 5500 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 5501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 5502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 5503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 5504 | if test -n "$ac_tool_prefix"; then | 
|  | 5505 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | 
|  | 5506 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | 
|  | 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5508 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5509 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5510 | $as_echo_n "(cached) " >&6 | 
|  | 5511 | else | 
|  | 5512 | if test -n "$CC"; then | 
|  | 5513 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5514 | else | 
|  | 5515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5516 | for as_dir in $PATH | 
|  | 5517 | do | 
|  | 5518 | IFS=$as_save_IFS | 
|  | 5519 | test -z "$as_dir" && as_dir=. | 
|  | 5520 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5522 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | 
|  | 5523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5524 | break 2 | 
|  | 5525 | fi | 
|  | 5526 | done | 
|  | 5527 | done | 
|  | 5528 | IFS=$as_save_IFS | 
|  | 5529 |  | 
|  | 5530 | fi | 
|  | 5531 | fi | 
|  | 5532 | CC=$ac_cv_prog_CC | 
|  | 5533 | if test -n "$CC"; then | 
|  | 5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5535 | $as_echo "$CC" >&6; } | 
|  | 5536 | else | 
|  | 5537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5538 | $as_echo "no" >&6; } | 
|  | 5539 | fi | 
|  | 5540 |  | 
|  | 5541 |  | 
|  | 5542 | fi | 
|  | 5543 | if test -z "$ac_cv_prog_CC"; then | 
|  | 5544 | ac_ct_CC=$CC | 
|  | 5545 | # Extract the first word of "gcc", so it can be a program name with args. | 
|  | 5546 | set dummy gcc; ac_word=$2 | 
|  | 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5548 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5549 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5550 | $as_echo_n "(cached) " >&6 | 
|  | 5551 | else | 
|  | 5552 | if test -n "$ac_ct_CC"; then | 
|  | 5553 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 5554 | else | 
|  | 5555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5556 | for as_dir in $PATH | 
|  | 5557 | do | 
|  | 5558 | IFS=$as_save_IFS | 
|  | 5559 | test -z "$as_dir" && as_dir=. | 
|  | 5560 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5561 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5562 | ac_cv_prog_ac_ct_CC="gcc" | 
|  | 5563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5564 | break 2 | 
|  | 5565 | fi | 
|  | 5566 | done | 
|  | 5567 | done | 
|  | 5568 | IFS=$as_save_IFS | 
|  | 5569 |  | 
|  | 5570 | fi | 
|  | 5571 | fi | 
|  | 5572 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 5573 | if test -n "$ac_ct_CC"; then | 
|  | 5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 5575 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 5576 | else | 
|  | 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5578 | $as_echo "no" >&6; } | 
|  | 5579 | fi | 
|  | 5580 |  | 
|  | 5581 | if test "x$ac_ct_CC" = x; then | 
|  | 5582 | CC="" | 
|  | 5583 | else | 
|  | 5584 | case $cross_compiling:$ac_tool_warned in | 
|  | 5585 | yes:) | 
|  | 5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5587 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5588 | ac_tool_warned=yes ;; | 
|  | 5589 | esac | 
|  | 5590 | CC=$ac_ct_CC | 
|  | 5591 | fi | 
|  | 5592 | else | 
|  | 5593 | CC="$ac_cv_prog_CC" | 
|  | 5594 | fi | 
|  | 5595 |  | 
|  | 5596 | if test -z "$CC"; then | 
|  | 5597 | if test -n "$ac_tool_prefix"; then | 
|  | 5598 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | 
|  | 5599 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 
|  | 5600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5601 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5602 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5603 | $as_echo_n "(cached) " >&6 | 
|  | 5604 | else | 
|  | 5605 | if test -n "$CC"; then | 
|  | 5606 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5607 | else | 
|  | 5608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5609 | for as_dir in $PATH | 
|  | 5610 | do | 
|  | 5611 | IFS=$as_save_IFS | 
|  | 5612 | test -z "$as_dir" && as_dir=. | 
|  | 5613 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5615 | ac_cv_prog_CC="${ac_tool_prefix}cc" | 
|  | 5616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5617 | break 2 | 
|  | 5618 | fi | 
|  | 5619 | done | 
|  | 5620 | done | 
|  | 5621 | IFS=$as_save_IFS | 
|  | 5622 |  | 
|  | 5623 | fi | 
|  | 5624 | fi | 
|  | 5625 | CC=$ac_cv_prog_CC | 
|  | 5626 | if test -n "$CC"; then | 
|  | 5627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5628 | $as_echo "$CC" >&6; } | 
|  | 5629 | else | 
|  | 5630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5631 | $as_echo "no" >&6; } | 
|  | 5632 | fi | 
|  | 5633 |  | 
|  | 5634 |  | 
|  | 5635 | fi | 
|  | 5636 | fi | 
|  | 5637 | if test -z "$CC"; then | 
|  | 5638 | # Extract the first word of "cc", so it can be a program name with args. | 
|  | 5639 | set dummy cc; ac_word=$2 | 
|  | 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5641 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5642 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5643 | $as_echo_n "(cached) " >&6 | 
|  | 5644 | else | 
|  | 5645 | if test -n "$CC"; then | 
|  | 5646 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5647 | else | 
|  | 5648 | ac_prog_rejected=no | 
|  | 5649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5650 | for as_dir in $PATH | 
|  | 5651 | do | 
|  | 5652 | IFS=$as_save_IFS | 
|  | 5653 | test -z "$as_dir" && as_dir=. | 
|  | 5654 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5656 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | 
|  | 5657 | ac_prog_rejected=yes | 
|  | 5658 | continue | 
|  | 5659 | fi | 
|  | 5660 | ac_cv_prog_CC="cc" | 
|  | 5661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5662 | break 2 | 
|  | 5663 | fi | 
|  | 5664 | done | 
|  | 5665 | done | 
|  | 5666 | IFS=$as_save_IFS | 
|  | 5667 |  | 
|  | 5668 | if test $ac_prog_rejected = yes; then | 
|  | 5669 | # We found a bogon in the path, so make sure we never use it. | 
|  | 5670 | set dummy $ac_cv_prog_CC | 
|  | 5671 | shift | 
|  | 5672 | if test $# != 0; then | 
|  | 5673 | # We chose a different compiler from the bogus one. | 
|  | 5674 | # However, it has the same basename, so the bogon will be chosen | 
|  | 5675 | # first if we set CC to just the basename; use the full file name. | 
|  | 5676 | shift | 
|  | 5677 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | 
|  | 5678 | fi | 
|  | 5679 | fi | 
|  | 5680 | fi | 
|  | 5681 | fi | 
|  | 5682 | CC=$ac_cv_prog_CC | 
|  | 5683 | if test -n "$CC"; then | 
|  | 5684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5685 | $as_echo "$CC" >&6; } | 
|  | 5686 | else | 
|  | 5687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5688 | $as_echo "no" >&6; } | 
|  | 5689 | fi | 
|  | 5690 |  | 
|  | 5691 |  | 
|  | 5692 | fi | 
|  | 5693 | if test -z "$CC"; then | 
|  | 5694 | if test -n "$ac_tool_prefix"; then | 
|  | 5695 | for ac_prog in cl.exe | 
|  | 5696 | do | 
|  | 5697 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 5698 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5700 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5701 | if ${ac_cv_prog_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5702 | $as_echo_n "(cached) " >&6 | 
|  | 5703 | else | 
|  | 5704 | if test -n "$CC"; then | 
|  | 5705 | ac_cv_prog_CC="$CC" # Let the user override the test. | 
|  | 5706 | else | 
|  | 5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5708 | for as_dir in $PATH | 
|  | 5709 | do | 
|  | 5710 | IFS=$as_save_IFS | 
|  | 5711 | test -z "$as_dir" && as_dir=. | 
|  | 5712 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5714 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | 
|  | 5715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5716 | break 2 | 
|  | 5717 | fi | 
|  | 5718 | done | 
|  | 5719 | done | 
|  | 5720 | IFS=$as_save_IFS | 
|  | 5721 |  | 
|  | 5722 | fi | 
|  | 5723 | fi | 
|  | 5724 | CC=$ac_cv_prog_CC | 
|  | 5725 | if test -n "$CC"; then | 
|  | 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | 
|  | 5727 | $as_echo "$CC" >&6; } | 
|  | 5728 | else | 
|  | 5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5730 | $as_echo "no" >&6; } | 
|  | 5731 | fi | 
|  | 5732 |  | 
|  | 5733 |  | 
|  | 5734 | test -n "$CC" && break | 
|  | 5735 | done | 
|  | 5736 | fi | 
|  | 5737 | if test -z "$CC"; then | 
|  | 5738 | ac_ct_CC=$CC | 
|  | 5739 | for ac_prog in cl.exe | 
|  | 5740 | do | 
|  | 5741 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 5742 | set dummy $ac_prog; ac_word=$2 | 
|  | 5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 5744 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5745 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5746 | $as_echo_n "(cached) " >&6 | 
|  | 5747 | else | 
|  | 5748 | if test -n "$ac_ct_CC"; then | 
|  | 5749 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | 
|  | 5750 | else | 
|  | 5751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 5752 | for as_dir in $PATH | 
|  | 5753 | do | 
|  | 5754 | IFS=$as_save_IFS | 
|  | 5755 | test -z "$as_dir" && as_dir=. | 
|  | 5756 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 5757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 5758 | ac_cv_prog_ac_ct_CC="$ac_prog" | 
|  | 5759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 5760 | break 2 | 
|  | 5761 | fi | 
|  | 5762 | done | 
|  | 5763 | done | 
|  | 5764 | IFS=$as_save_IFS | 
|  | 5765 |  | 
|  | 5766 | fi | 
|  | 5767 | fi | 
|  | 5768 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | 
|  | 5769 | if test -n "$ac_ct_CC"; then | 
|  | 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | 
|  | 5771 | $as_echo "$ac_ct_CC" >&6; } | 
|  | 5772 | else | 
|  | 5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 5774 | $as_echo "no" >&6; } | 
|  | 5775 | fi | 
|  | 5776 |  | 
|  | 5777 |  | 
|  | 5778 | test -n "$ac_ct_CC" && break | 
|  | 5779 | done | 
|  | 5780 |  | 
|  | 5781 | if test "x$ac_ct_CC" = x; then | 
|  | 5782 | CC="" | 
|  | 5783 | else | 
|  | 5784 | case $cross_compiling:$ac_tool_warned in | 
|  | 5785 | yes:) | 
|  | 5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 5787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 5788 | ac_tool_warned=yes ;; | 
|  | 5789 | esac | 
|  | 5790 | CC=$ac_ct_CC | 
|  | 5791 | fi | 
|  | 5792 | fi | 
|  | 5793 |  | 
|  | 5794 | fi | 
|  | 5795 |  | 
|  | 5796 |  | 
|  | 5797 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 5798 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5799 | as_fn_error $? "no acceptable C compiler found in \$PATH | 
|  | 5800 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5801 |  | 
|  | 5802 | # Provide some information about the compiler. | 
|  | 5803 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | 
|  | 5804 | set X $ac_compile | 
|  | 5805 | ac_compiler=$2 | 
|  | 5806 | for ac_option in --version -v -V -qversion; do | 
|  | 5807 | { { ac_try="$ac_compiler $ac_option >&5" | 
|  | 5808 | case "(($ac_try" in | 
|  | 5809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 5810 | *) ac_try_echo=$ac_try;; | 
|  | 5811 | esac | 
|  | 5812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 5813 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 5814 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
|  | 5815 | ac_status=$? | 
|  | 5816 | if test -s conftest.err; then | 
|  | 5817 | sed '10a\ | 
|  | 5818 | ... rest of stderr output deleted ... | 
|  | 5819 | 10q' conftest.err >conftest.er1 | 
|  | 5820 | cat conftest.er1 >&5 | 
|  | 5821 | fi | 
|  | 5822 | rm -f conftest.er1 conftest.err | 
|  | 5823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 5824 | test $ac_status = 0; } | 
|  | 5825 | done | 
|  | 5826 |  | 
|  | 5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | 
|  | 5828 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5829 | if ${ac_cv_c_compiler_gnu+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5830 | $as_echo_n "(cached) " >&6 | 
|  | 5831 | else | 
|  | 5832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5833 | /* end confdefs.h.  */ | 
|  | 5834 |  | 
|  | 5835 | int | 
|  | 5836 | main () | 
|  | 5837 | { | 
|  | 5838 | #ifndef __GNUC__ | 
|  | 5839 | choke me | 
|  | 5840 | #endif | 
|  | 5841 |  | 
|  | 5842 | ; | 
|  | 5843 | return 0; | 
|  | 5844 | } | 
|  | 5845 | _ACEOF | 
|  | 5846 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5847 | ac_compiler_gnu=yes | 
|  | 5848 | else | 
|  | 5849 | ac_compiler_gnu=no | 
|  | 5850 | fi | 
|  | 5851 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5852 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | 
|  | 5853 |  | 
|  | 5854 | fi | 
|  | 5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | 
|  | 5856 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | 
|  | 5857 | if test $ac_compiler_gnu = yes; then | 
|  | 5858 | GCC=yes | 
|  | 5859 | else | 
|  | 5860 | GCC= | 
|  | 5861 | fi | 
|  | 5862 | ac_test_CFLAGS=${CFLAGS+set} | 
|  | 5863 | ac_save_CFLAGS=$CFLAGS | 
|  | 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | 
|  | 5865 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5866 | if ${ac_cv_prog_cc_g+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5867 | $as_echo_n "(cached) " >&6 | 
|  | 5868 | else | 
|  | 5869 | ac_save_c_werror_flag=$ac_c_werror_flag | 
|  | 5870 | ac_c_werror_flag=yes | 
|  | 5871 | ac_cv_prog_cc_g=no | 
|  | 5872 | CFLAGS="-g" | 
|  | 5873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5874 | /* end confdefs.h.  */ | 
|  | 5875 |  | 
|  | 5876 | int | 
|  | 5877 | main () | 
|  | 5878 | { | 
|  | 5879 |  | 
|  | 5880 | ; | 
|  | 5881 | return 0; | 
|  | 5882 | } | 
|  | 5883 | _ACEOF | 
|  | 5884 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5885 | ac_cv_prog_cc_g=yes | 
|  | 5886 | else | 
|  | 5887 | CFLAGS="" | 
|  | 5888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5889 | /* end confdefs.h.  */ | 
|  | 5890 |  | 
|  | 5891 | int | 
|  | 5892 | main () | 
|  | 5893 | { | 
|  | 5894 |  | 
|  | 5895 | ; | 
|  | 5896 | return 0; | 
|  | 5897 | } | 
|  | 5898 | _ACEOF | 
|  | 5899 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5900 |  | 
|  | 5901 | else | 
|  | 5902 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 5903 | CFLAGS="-g" | 
|  | 5904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5905 | /* end confdefs.h.  */ | 
|  | 5906 |  | 
|  | 5907 | int | 
|  | 5908 | main () | 
|  | 5909 | { | 
|  | 5910 |  | 
|  | 5911 | ; | 
|  | 5912 | return 0; | 
|  | 5913 | } | 
|  | 5914 | _ACEOF | 
|  | 5915 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 5916 | ac_cv_prog_cc_g=yes | 
|  | 5917 | fi | 
|  | 5918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5919 | fi | 
|  | 5920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5921 | fi | 
|  | 5922 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 5923 | ac_c_werror_flag=$ac_save_c_werror_flag | 
|  | 5924 | fi | 
|  | 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | 
|  | 5926 | $as_echo "$ac_cv_prog_cc_g" >&6; } | 
|  | 5927 | if test "$ac_test_CFLAGS" = set; then | 
|  | 5928 | CFLAGS=$ac_save_CFLAGS | 
|  | 5929 | elif test $ac_cv_prog_cc_g = yes; then | 
|  | 5930 | if test "$GCC" = yes; then | 
|  | 5931 | CFLAGS="-g -O2" | 
|  | 5932 | else | 
|  | 5933 | CFLAGS="-g" | 
|  | 5934 | fi | 
|  | 5935 | else | 
|  | 5936 | if test "$GCC" = yes; then | 
|  | 5937 | CFLAGS="-O2" | 
|  | 5938 | else | 
|  | 5939 | CFLAGS= | 
|  | 5940 | fi | 
|  | 5941 | fi | 
|  | 5942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | 
|  | 5943 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5944 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5945 | $as_echo_n "(cached) " >&6 | 
|  | 5946 | else | 
|  | 5947 | ac_cv_prog_cc_c89=no | 
|  | 5948 | ac_save_CC=$CC | 
|  | 5949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 5950 | /* end confdefs.h.  */ | 
|  | 5951 | #include <stdarg.h> | 
|  | 5952 | #include <stdio.h> | 
|  | 5953 | #include <sys/types.h> | 
|  | 5954 | #include <sys/stat.h> | 
|  | 5955 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 5956 | struct buf { int x; }; | 
|  | 5957 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 5958 | static char *e (p, i) | 
|  | 5959 | char **p; | 
|  | 5960 | int i; | 
|  | 5961 | { | 
|  | 5962 | return p[i]; | 
|  | 5963 | } | 
|  | 5964 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 5965 | { | 
|  | 5966 | char *s; | 
|  | 5967 | va_list v; | 
|  | 5968 | va_start (v,p); | 
|  | 5969 | s = g (p, va_arg (v,int)); | 
|  | 5970 | va_end (v); | 
|  | 5971 | return s; | 
|  | 5972 | } | 
|  | 5973 |  | 
|  | 5974 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 5975 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 5976 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 5977 | as 'x'.  The following induces an error, until -std is added to get | 
|  | 5978 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 5979 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 5980 | that's true only with -std.  */ | 
|  | 5981 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 5982 |  | 
|  | 5983 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 5984 | inside strings and character constants.  */ | 
|  | 5985 | #define FOO(x) 'x' | 
|  | 5986 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 5987 |  | 
|  | 5988 | int test (int i, double x); | 
|  | 5989 | struct s1 {int (*f) (int a);}; | 
|  | 5990 | struct s2 {int (*f) (double a);}; | 
|  | 5991 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 5992 | int argc; | 
|  | 5993 | char **argv; | 
|  | 5994 | int | 
|  | 5995 | main () | 
|  | 5996 | { | 
|  | 5997 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 5998 | ; | 
|  | 5999 | return 0; | 
|  | 6000 | } | 
|  | 6001 | _ACEOF | 
|  | 6002 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 6003 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 6004 | do | 
|  | 6005 | CC="$ac_save_CC $ac_arg" | 
|  | 6006 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 6007 | ac_cv_prog_cc_c89=$ac_arg | 
|  | 6008 | fi | 
|  | 6009 | rm -f core conftest.err conftest.$ac_objext | 
|  | 6010 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
|  | 6011 | done | 
|  | 6012 | rm -f conftest.$ac_ext | 
|  | 6013 | CC=$ac_save_CC | 
|  | 6014 |  | 
|  | 6015 | fi | 
|  | 6016 | # AC_CACHE_VAL | 
|  | 6017 | case "x$ac_cv_prog_cc_c89" in | 
|  | 6018 | x) | 
|  | 6019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 6020 | $as_echo "none needed" >&6; } ;; | 
|  | 6021 | xno) | 
|  | 6022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 6023 | $as_echo "unsupported" >&6; } ;; | 
|  | 6024 | *) | 
|  | 6025 | CC="$CC $ac_cv_prog_cc_c89" | 
|  | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | 
|  | 6027 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
|  | 6028 | esac | 
|  | 6029 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
|  | 6030 |  | 
|  | 6031 | fi | 
|  | 6032 |  | 
|  | 6033 | ac_ext=c | 
|  | 6034 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6035 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6036 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6037 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6038 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6039 | depcc="$CC"   am_compiler_list= | 
|  | 6040 |  | 
|  | 6041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
|  | 6042 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6043 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6044 | $as_echo_n "(cached) " >&6 | 
|  | 6045 | else | 
|  | 6046 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 6047 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 6048 | # making bogus files that we don't know about and never remove.  For | 
|  | 6049 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 6050 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 6051 | # in D'. | 
|  | 6052 | mkdir conftest.dir | 
|  | 6053 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 6054 | # using a relative directory. | 
|  | 6055 | cp "$am_depcomp" conftest.dir | 
|  | 6056 | cd conftest.dir | 
|  | 6057 | # We will build objects and dependencies in a subdirectory because | 
|  | 6058 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 6059 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 6060 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 6061 | # the current directory while Tru64 will put them in the object | 
|  | 6062 | # directory. | 
|  | 6063 | mkdir sub | 
|  | 6064 |  | 
|  | 6065 | am_cv_CC_dependencies_compiler_type=none | 
|  | 6066 | if test "$am_compiler_list" = ""; then | 
|  | 6067 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 6068 | fi | 
|  | 6069 | am__universal=false | 
|  | 6070 | case " $depcc " in #( | 
|  | 6071 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 6072 | esac | 
|  | 6073 |  | 
|  | 6074 | for depmode in $am_compiler_list; do | 
|  | 6075 | # Setup a source with many dependencies, because some compilers | 
|  | 6076 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 6077 | # we should not choose a depcomp mode which is confused by this. | 
|  | 6078 | # | 
|  | 6079 | # We need to recreate these files for each test, as the compiler may | 
|  | 6080 | # overwrite some of them when testing with obscure command lines. | 
|  | 6081 | # This happens at least with the AIX C compiler. | 
|  | 6082 | : > sub/conftest.c | 
|  | 6083 | for i in 1 2 3 4 5 6; do | 
|  | 6084 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 6085 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 6086 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 6087 | touch sub/conftst$i.h | 
|  | 6088 | done | 
|  | 6089 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 6090 |  | 
|  | 6091 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 6092 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 6093 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 6094 | # versions had trouble with output in subdirs | 
|  | 6095 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 6096 | am__minus_obj="-o $am__obj" | 
|  | 6097 | case $depmode in | 
|  | 6098 | gcc) | 
|  | 6099 | # This depmode causes a compiler race in universal mode. | 
|  | 6100 | test "$am__universal" = false || continue | 
|  | 6101 | ;; | 
|  | 6102 | nosideeffect) | 
|  | 6103 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 6104 | # only be used when explicitly requested | 
|  | 6105 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 6106 | continue | 
|  | 6107 | else | 
|  | 6108 | break | 
|  | 6109 | fi | 
|  | 6110 | ;; | 
|  | 6111 | msvisualcpp | msvcmsys) | 
|  | 6112 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 6113 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 6114 | # so weak that their functioning should not be impacted. | 
|  | 6115 | am__obj=conftest.${OBJEXT-o} | 
|  | 6116 | am__minus_obj= | 
|  | 6117 | ;; | 
|  | 6118 | none) break ;; | 
|  | 6119 | esac | 
|  | 6120 | if depmode=$depmode \ | 
|  | 6121 | source=sub/conftest.c object=$am__obj \ | 
|  | 6122 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 6123 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 6124 | >/dev/null 2>conftest.err && | 
|  | 6125 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6126 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6127 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6128 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 6129 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 6130 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 6131 | # that says an option was ignored or not supported. | 
|  | 6132 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 6133 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 6134 | # The diagnosis changed in icc 8.0: | 
|  | 6135 | #   icc: Command line remark: option '-MP' not supported | 
|  | 6136 | if (grep 'ignoring option' conftest.err || | 
|  | 6137 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 6138 | am_cv_CC_dependencies_compiler_type=$depmode | 
|  | 6139 | break | 
|  | 6140 | fi | 
|  | 6141 | fi | 
|  | 6142 | done | 
|  | 6143 |  | 
|  | 6144 | cd .. | 
|  | 6145 | rm -rf conftest.dir | 
|  | 6146 | else | 
|  | 6147 | am_cv_CC_dependencies_compiler_type=none | 
|  | 6148 | fi | 
|  | 6149 |  | 
|  | 6150 | fi | 
|  | 6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | 
|  | 6152 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | 
|  | 6153 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | 
|  | 6154 |  | 
|  | 6155 | if | 
|  | 6156 | test "x$enable_dependency_tracking" != xno \ | 
|  | 6157 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | 
|  | 6158 | am__fastdepCC_TRUE= | 
|  | 6159 | am__fastdepCC_FALSE='#' | 
|  | 6160 | else | 
|  | 6161 | am__fastdepCC_TRUE='#' | 
|  | 6162 | am__fastdepCC_FALSE= | 
|  | 6163 | fi | 
|  | 6164 |  | 
|  | 6165 |  | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6166 | ac_ext=cpp | 
|  | 6167 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 6168 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6169 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6170 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 6171 | if test -z "$CXX"; then | 
|  | 6172 | if test -n "$CCC"; then | 
|  | 6173 | CXX=$CCC | 
|  | 6174 | else | 
|  | 6175 | if test -n "$ac_tool_prefix"; then | 
|  | 6176 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 6177 | do | 
|  | 6178 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 6179 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 6180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6181 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6182 | if ${ac_cv_prog_CXX+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6183 | $as_echo_n "(cached) " >&6 | 
|  | 6184 | else | 
|  | 6185 | if test -n "$CXX"; then | 
|  | 6186 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 6187 | else | 
|  | 6188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6189 | for as_dir in $PATH | 
|  | 6190 | do | 
|  | 6191 | IFS=$as_save_IFS | 
|  | 6192 | test -z "$as_dir" && as_dir=. | 
|  | 6193 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6195 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
|  | 6196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6197 | break 2 | 
|  | 6198 | fi | 
|  | 6199 | done | 
|  | 6200 | done | 
|  | 6201 | IFS=$as_save_IFS | 
|  | 6202 |  | 
|  | 6203 | fi | 
|  | 6204 | fi | 
|  | 6205 | CXX=$ac_cv_prog_CXX | 
|  | 6206 | if test -n "$CXX"; then | 
|  | 6207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
|  | 6208 | $as_echo "$CXX" >&6; } | 
|  | 6209 | else | 
|  | 6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6211 | $as_echo "no" >&6; } | 
|  | 6212 | fi | 
|  | 6213 |  | 
|  | 6214 |  | 
|  | 6215 | test -n "$CXX" && break | 
|  | 6216 | done | 
|  | 6217 | fi | 
|  | 6218 | if test -z "$CXX"; then | 
|  | 6219 | ac_ct_CXX=$CXX | 
|  | 6220 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 6221 | do | 
|  | 6222 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 6223 | set dummy $ac_prog; ac_word=$2 | 
|  | 6224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 6225 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6226 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6227 | $as_echo_n "(cached) " >&6 | 
|  | 6228 | else | 
|  | 6229 | if test -n "$ac_ct_CXX"; then | 
|  | 6230 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 6231 | else | 
|  | 6232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6233 | for as_dir in $PATH | 
|  | 6234 | do | 
|  | 6235 | IFS=$as_save_IFS | 
|  | 6236 | test -z "$as_dir" && as_dir=. | 
|  | 6237 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 6238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 6239 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
|  | 6240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 6241 | break 2 | 
|  | 6242 | fi | 
|  | 6243 | done | 
|  | 6244 | done | 
|  | 6245 | IFS=$as_save_IFS | 
|  | 6246 |  | 
|  | 6247 | fi | 
|  | 6248 | fi | 
|  | 6249 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 6250 | if test -n "$ac_ct_CXX"; then | 
|  | 6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
|  | 6252 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 6253 | else | 
|  | 6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 6255 | $as_echo "no" >&6; } | 
|  | 6256 | fi | 
|  | 6257 |  | 
|  | 6258 |  | 
|  | 6259 | test -n "$ac_ct_CXX" && break | 
|  | 6260 | done | 
|  | 6261 |  | 
|  | 6262 | if test "x$ac_ct_CXX" = x; then | 
|  | 6263 | CXX="g++" | 
|  | 6264 | else | 
|  | 6265 | case $cross_compiling:$ac_tool_warned in | 
|  | 6266 | yes:) | 
|  | 6267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 6268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 6269 | ac_tool_warned=yes ;; | 
|  | 6270 | esac | 
|  | 6271 | CXX=$ac_ct_CXX | 
|  | 6272 | fi | 
|  | 6273 | fi | 
|  | 6274 |  | 
|  | 6275 | fi | 
|  | 6276 | fi | 
|  | 6277 | # Provide some information about the compiler. | 
|  | 6278 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 
|  | 6279 | set X $ac_compile | 
|  | 6280 | ac_compiler=$2 | 
|  | 6281 | for ac_option in --version -v -V -qversion; do | 
|  | 6282 | { { ac_try="$ac_compiler $ac_option >&5" | 
|  | 6283 | case "(($ac_try" in | 
|  | 6284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 6285 | *) ac_try_echo=$ac_try;; | 
|  | 6286 | esac | 
|  | 6287 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 6288 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 6289 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
|  | 6290 | ac_status=$? | 
|  | 6291 | if test -s conftest.err; then | 
|  | 6292 | sed '10a\ | 
|  | 6293 | ... rest of stderr output deleted ... | 
|  | 6294 | 10q' conftest.err >conftest.er1 | 
|  | 6295 | cat conftest.er1 >&5 | 
|  | 6296 | fi | 
|  | 6297 | rm -f conftest.er1 conftest.err | 
|  | 6298 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 6299 | test $ac_status = 0; } | 
|  | 6300 | done | 
|  | 6301 |  | 
|  | 6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | 
|  | 6303 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6304 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6305 | $as_echo_n "(cached) " >&6 | 
|  | 6306 | else | 
|  | 6307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6308 | /* end confdefs.h.  */ | 
|  | 6309 |  | 
|  | 6310 | int | 
|  | 6311 | main () | 
|  | 6312 | { | 
|  | 6313 | #ifndef __GNUC__ | 
|  | 6314 | choke me | 
|  | 6315 | #endif | 
|  | 6316 |  | 
|  | 6317 | ; | 
|  | 6318 | return 0; | 
|  | 6319 | } | 
|  | 6320 | _ACEOF | 
|  | 6321 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6322 | ac_compiler_gnu=yes | 
|  | 6323 | else | 
|  | 6324 | ac_compiler_gnu=no | 
|  | 6325 | fi | 
|  | 6326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6327 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 6328 |  | 
|  | 6329 | fi | 
|  | 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | 
|  | 6331 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | 
|  | 6332 | if test $ac_compiler_gnu = yes; then | 
|  | 6333 | GXX=yes | 
|  | 6334 | else | 
|  | 6335 | GXX= | 
|  | 6336 | fi | 
|  | 6337 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 6338 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 
|  | 6340 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6341 | if ${ac_cv_prog_cxx_g+:} false; then : | 
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6342 | $as_echo_n "(cached) " >&6 | 
|  | 6343 | else | 
|  | 6344 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
|  | 6345 | ac_cxx_werror_flag=yes | 
|  | 6346 | ac_cv_prog_cxx_g=no | 
|  | 6347 | CXXFLAGS="-g" | 
|  | 6348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6349 | /* end confdefs.h.  */ | 
|  | 6350 |  | 
|  | 6351 | int | 
|  | 6352 | main () | 
|  | 6353 | { | 
|  | 6354 |  | 
|  | 6355 | ; | 
|  | 6356 | return 0; | 
|  | 6357 | } | 
|  | 6358 | _ACEOF | 
|  | 6359 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6360 | ac_cv_prog_cxx_g=yes | 
|  | 6361 | else | 
|  | 6362 | CXXFLAGS="" | 
|  | 6363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6364 | /* end confdefs.h.  */ | 
|  | 6365 |  | 
|  | 6366 | int | 
|  | 6367 | main () | 
|  | 6368 | { | 
|  | 6369 |  | 
|  | 6370 | ; | 
|  | 6371 | return 0; | 
|  | 6372 | } | 
|  | 6373 | _ACEOF | 
|  | 6374 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6375 |  | 
|  | 6376 | else | 
|  | 6377 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 6378 | CXXFLAGS="-g" | 
|  | 6379 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 6380 | /* end confdefs.h.  */ | 
|  | 6381 |  | 
|  | 6382 | int | 
|  | 6383 | main () | 
|  | 6384 | { | 
|  | 6385 |  | 
|  | 6386 | ; | 
|  | 6387 | return 0; | 
|  | 6388 | } | 
|  | 6389 | _ACEOF | 
|  | 6390 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 6391 | ac_cv_prog_cxx_g=yes | 
|  | 6392 | fi | 
|  | 6393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6394 | fi | 
|  | 6395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6396 | fi | 
|  | 6397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 6398 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 6399 | fi | 
|  | 6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | 
|  | 6401 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | 
|  | 6402 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 6403 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 6404 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 6405 | if test "$GXX" = yes; then | 
|  | 6406 | CXXFLAGS="-g -O2" | 
|  | 6407 | else | 
|  | 6408 | CXXFLAGS="-g" | 
|  | 6409 | fi | 
|  | 6410 | else | 
|  | 6411 | if test "$GXX" = yes; then | 
|  | 6412 | CXXFLAGS="-O2" | 
|  | 6413 | else | 
|  | 6414 | CXXFLAGS= | 
|  | 6415 | fi | 
|  | 6416 | fi | 
|  | 6417 | ac_ext=c | 
|  | 6418 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6419 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6420 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6421 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6422 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6423 | depcc="$CXX"  am_compiler_list= | 
|  | 6424 |  | 
|  | 6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
|  | 6426 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6427 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6428 | $as_echo_n "(cached) " >&6 | 
|  | 6429 | else | 
|  | 6430 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 6431 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 6432 | # making bogus files that we don't know about and never remove.  For | 
|  | 6433 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 6434 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 6435 | # in D'. | 
|  | 6436 | mkdir conftest.dir | 
|  | 6437 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 6438 | # using a relative directory. | 
|  | 6439 | cp "$am_depcomp" conftest.dir | 
|  | 6440 | cd conftest.dir | 
|  | 6441 | # We will build objects and dependencies in a subdirectory because | 
|  | 6442 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 6443 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 6444 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 6445 | # the current directory while Tru64 will put them in the object | 
|  | 6446 | # directory. | 
|  | 6447 | mkdir sub | 
|  | 6448 |  | 
|  | 6449 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 6450 | if test "$am_compiler_list" = ""; then | 
|  | 6451 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 6452 | fi | 
|  | 6453 | am__universal=false | 
|  | 6454 | case " $depcc " in #( | 
|  | 6455 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 6456 | esac | 
|  | 6457 |  | 
|  | 6458 | for depmode in $am_compiler_list; do | 
|  | 6459 | # Setup a source with many dependencies, because some compilers | 
|  | 6460 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 6461 | # we should not choose a depcomp mode which is confused by this. | 
|  | 6462 | # | 
|  | 6463 | # We need to recreate these files for each test, as the compiler may | 
|  | 6464 | # overwrite some of them when testing with obscure command lines. | 
|  | 6465 | # This happens at least with the AIX C compiler. | 
|  | 6466 | : > sub/conftest.c | 
|  | 6467 | for i in 1 2 3 4 5 6; do | 
|  | 6468 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 6469 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 6470 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 6471 | touch sub/conftst$i.h | 
|  | 6472 | done | 
|  | 6473 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 6474 |  | 
|  | 6475 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 6476 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 6477 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 6478 | # versions had trouble with output in subdirs | 
|  | 6479 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 6480 | am__minus_obj="-o $am__obj" | 
|  | 6481 | case $depmode in | 
|  | 6482 | gcc) | 
|  | 6483 | # This depmode causes a compiler race in universal mode. | 
|  | 6484 | test "$am__universal" = false || continue | 
|  | 6485 | ;; | 
|  | 6486 | nosideeffect) | 
|  | 6487 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 6488 | # only be used when explicitly requested | 
|  | 6489 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 6490 | continue | 
|  | 6491 | else | 
|  | 6492 | break | 
|  | 6493 | fi | 
|  | 6494 | ;; | 
|  | 6495 | msvisualcpp | msvcmsys) | 
|  | 6496 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 6497 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 6498 | # so weak that their functioning should not be impacted. | 
|  | 6499 | am__obj=conftest.${OBJEXT-o} | 
|  | 6500 | am__minus_obj= | 
|  | 6501 | ;; | 
|  | 6502 | none) break ;; | 
|  | 6503 | esac | 
|  | 6504 | if depmode=$depmode \ | 
|  | 6505 | source=sub/conftest.c object=$am__obj \ | 
|  | 6506 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 6507 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 6508 | >/dev/null 2>conftest.err && | 
|  | 6509 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6510 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6511 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 6512 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 6513 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 6514 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 6515 | # that says an option was ignored or not supported. | 
|  | 6516 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 6517 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 6518 | # The diagnosis changed in icc 8.0: | 
|  | 6519 | #   icc: Command line remark: option '-MP' not supported | 
|  | 6520 | if (grep 'ignoring option' conftest.err || | 
|  | 6521 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 6522 | am_cv_CXX_dependencies_compiler_type=$depmode | 
|  | 6523 | break | 
|  | 6524 | fi | 
|  | 6525 | fi | 
|  | 6526 | done | 
|  | 6527 |  | 
|  | 6528 | cd .. | 
|  | 6529 | rm -rf conftest.dir | 
|  | 6530 | else | 
|  | 6531 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 6532 | fi | 
|  | 6533 |  | 
|  | 6534 | fi | 
|  | 6535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 
|  | 6536 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | 
|  | 6537 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 
|  | 6538 |  | 
|  | 6539 | if | 
|  | 6540 | test "x$enable_dependency_tracking" != xno \ | 
|  | 6541 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | 
|  | 6542 | am__fastdepCXX_TRUE= | 
|  | 6543 | am__fastdepCXX_FALSE='#' | 
|  | 6544 | else | 
|  | 6545 | am__fastdepCXX_TRUE='#' | 
|  | 6546 | am__fastdepCXX_FALSE= | 
|  | 6547 | fi | 
|  | 6548 |  | 
|  | 6549 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6550 | case $ac_cv_prog_cc_stdc in #( | 
|  | 6551 | no) : | 
|  | 6552 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( | 
|  | 6553 | *) : | 
|  | 6554 | { $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] | 6555 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6556 | if ${ac_cv_prog_cc_c99+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6557 | $as_echo_n "(cached) " >&6 | 
|  | 6558 | else | 
|  | 6559 | ac_cv_prog_cc_c99=no | 
|  | 6560 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6562 | /* end confdefs.h.  */ | 
|  | 6563 | #include <stdarg.h> | 
|  | 6564 | #include <stdbool.h> | 
|  | 6565 | #include <stdlib.h> | 
|  | 6566 | #include <wchar.h> | 
|  | 6567 | #include <stdio.h> | 
|  | 6568 |  | 
|  | 6569 | // Check varargs macros.  These examples are taken from C99 6.10.3.5. | 
|  | 6570 | #define debug(...) fprintf (stderr, __VA_ARGS__) | 
|  | 6571 | #define showlist(...) puts (#__VA_ARGS__) | 
|  | 6572 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | 
|  | 6573 | static void | 
|  | 6574 | test_varargs_macros (void) | 
|  | 6575 | { | 
|  | 6576 | int x = 1234; | 
|  | 6577 | int y = 5678; | 
|  | 6578 | debug ("Flag"); | 
|  | 6579 | debug ("X = %d\n", x); | 
|  | 6580 | showlist (The first, second, and third items.); | 
|  | 6581 | report (x>y, "x is %d but y is %d", x, y); | 
|  | 6582 | } | 
|  | 6583 |  | 
|  | 6584 | // Check long long types. | 
|  | 6585 | #define BIG64 18446744073709551615ull | 
|  | 6586 | #define BIG32 4294967295ul | 
|  | 6587 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | 
|  | 6588 | #if !BIG_OK | 
|  | 6589 | your preprocessor is broken; | 
|  | 6590 | #endif | 
|  | 6591 | #if BIG_OK | 
|  | 6592 | #else | 
|  | 6593 | your preprocessor is broken; | 
|  | 6594 | #endif | 
|  | 6595 | static long long int bignum = -9223372036854775807LL; | 
|  | 6596 | static unsigned long long int ubignum = BIG64; | 
|  | 6597 |  | 
|  | 6598 | struct incomplete_array | 
|  | 6599 | { | 
|  | 6600 | int datasize; | 
|  | 6601 | double data[]; | 
|  | 6602 | }; | 
|  | 6603 |  | 
|  | 6604 | struct named_init { | 
|  | 6605 | int number; | 
|  | 6606 | const wchar_t *name; | 
|  | 6607 | double average; | 
|  | 6608 | }; | 
|  | 6609 |  | 
|  | 6610 | typedef const char *ccp; | 
|  | 6611 |  | 
|  | 6612 | static inline int | 
|  | 6613 | test_restrict (ccp restrict text) | 
|  | 6614 | { | 
|  | 6615 | // See if C++-style comments work. | 
|  | 6616 | // Iterate through items via the restricted pointer. | 
|  | 6617 | // Also check for declarations in for loops. | 
|  | 6618 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | 
|  | 6619 | continue; | 
|  | 6620 | return 0; | 
|  | 6621 | } | 
|  | 6622 |  | 
|  | 6623 | // Check varargs and va_copy. | 
|  | 6624 | static void | 
|  | 6625 | test_varargs (const char *format, ...) | 
|  | 6626 | { | 
|  | 6627 | va_list args; | 
|  | 6628 | va_start (args, format); | 
|  | 6629 | va_list args_copy; | 
|  | 6630 | va_copy (args_copy, args); | 
|  | 6631 |  | 
|  | 6632 | const char *str; | 
|  | 6633 | int number; | 
|  | 6634 | float fnumber; | 
|  | 6635 |  | 
|  | 6636 | while (*format) | 
|  | 6637 | { | 
|  | 6638 | switch (*format++) | 
|  | 6639 | { | 
|  | 6640 | case 's': // string | 
|  | 6641 | str = va_arg (args_copy, const char *); | 
|  | 6642 | break; | 
|  | 6643 | case 'd': // int | 
|  | 6644 | number = va_arg (args_copy, int); | 
|  | 6645 | break; | 
|  | 6646 | case 'f': // float | 
|  | 6647 | fnumber = va_arg (args_copy, double); | 
|  | 6648 | break; | 
|  | 6649 | default: | 
|  | 6650 | break; | 
|  | 6651 | } | 
|  | 6652 | } | 
|  | 6653 | va_end (args_copy); | 
|  | 6654 | va_end (args); | 
|  | 6655 | } | 
|  | 6656 |  | 
|  | 6657 | int | 
|  | 6658 | main () | 
|  | 6659 | { | 
|  | 6660 |  | 
|  | 6661 | // Check bool. | 
|  | 6662 | _Bool success = false; | 
|  | 6663 |  | 
|  | 6664 | // Check restrict. | 
|  | 6665 | if (test_restrict ("String literal") == 0) | 
|  | 6666 | success = true; | 
|  | 6667 | char *restrict newvar = "Another string"; | 
|  | 6668 |  | 
|  | 6669 | // Check varargs. | 
|  | 6670 | test_varargs ("s, d' f .", "string", 65, 34.234); | 
|  | 6671 | test_varargs_macros (); | 
|  | 6672 |  | 
|  | 6673 | // Check flexible array members. | 
|  | 6674 | struct incomplete_array *ia = | 
|  | 6675 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | 
|  | 6676 | ia->datasize = 10; | 
|  | 6677 | for (int i = 0; i < ia->datasize; ++i) | 
|  | 6678 | ia->data[i] = i * 1.234; | 
|  | 6679 |  | 
|  | 6680 | // Check named initializers. | 
|  | 6681 | struct named_init ni = { | 
|  | 6682 | .number = 34, | 
|  | 6683 | .name = L"Test wide string", | 
|  | 6684 | .average = 543.34343, | 
|  | 6685 | }; | 
|  | 6686 |  | 
|  | 6687 | ni.number = 58; | 
|  | 6688 |  | 
|  | 6689 | int dynamic_array[ni.number]; | 
|  | 6690 | dynamic_array[ni.number - 1] = 543; | 
|  | 6691 |  | 
|  | 6692 | // work around unused variable warnings | 
|  | 6693 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | 
|  | 6694 | || dynamic_array[ni.number - 1] != 543); | 
|  | 6695 |  | 
|  | 6696 | ; | 
|  | 6697 | return 0; | 
|  | 6698 | } | 
|  | 6699 | _ACEOF | 
|  | 6700 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | 
|  | 6701 | do | 
|  | 6702 | CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6703 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6704 | ac_cv_prog_cc_c99=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6705 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6706 | rm -f core conftest.err conftest.$ac_objext | 
|  | 6707 | test "x$ac_cv_prog_cc_c99" != "xno" && break | 
|  | 6708 | done | 
|  | 6709 | rm -f conftest.$ac_ext | 
|  | 6710 | CC=$ac_save_CC | 
|  | 6711 |  | 
|  | 6712 | fi | 
|  | 6713 | # AC_CACHE_VAL | 
|  | 6714 | case "x$ac_cv_prog_cc_c99" in | 
|  | 6715 | x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6717 | $as_echo "none needed" >&6; } ;; | 
|  | 6718 | xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6720 | $as_echo "unsupported" >&6; } ;; | 
|  | 6721 | *) | 
|  | 6722 | CC="$CC $ac_cv_prog_cc_c99" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6723 | { $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] | 6724 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | 
|  | 6725 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6726 | if test "x$ac_cv_prog_cc_c99" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6727 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | 
|  | 6728 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6729 | { $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] | 6730 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6731 | if ${ac_cv_prog_cc_c89+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6732 | $as_echo_n "(cached) " >&6 | 
|  | 6733 | else | 
|  | 6734 | ac_cv_prog_cc_c89=no | 
|  | 6735 | ac_save_CC=$CC | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6737 | /* end confdefs.h.  */ | 
|  | 6738 | #include <stdarg.h> | 
|  | 6739 | #include <stdio.h> | 
|  | 6740 | #include <sys/types.h> | 
|  | 6741 | #include <sys/stat.h> | 
|  | 6742 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */ | 
|  | 6743 | struct buf { int x; }; | 
|  | 6744 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | 
|  | 6745 | static char *e (p, i) | 
|  | 6746 | char **p; | 
|  | 6747 | int i; | 
|  | 6748 | { | 
|  | 6749 | return p[i]; | 
|  | 6750 | } | 
|  | 6751 | static char *f (char * (*g) (char **, int), char **p, ...) | 
|  | 6752 | { | 
|  | 6753 | char *s; | 
|  | 6754 | va_list v; | 
|  | 6755 | va_start (v,p); | 
|  | 6756 | s = g (p, va_arg (v,int)); | 
|  | 6757 | va_end (v); | 
|  | 6758 | return s; | 
|  | 6759 | } | 
|  | 6760 |  | 
|  | 6761 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has | 
|  | 6762 | function prototypes and stuff, but not '\xHH' hex character constants. | 
|  | 6763 | These don't provoke an error unfortunately, instead are silently treated | 
|  | 6764 | as 'x'.  The following induces an error, until -std is added to get | 
|  | 6765 | proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an | 
|  | 6766 | array size at least.  It's necessary to write '\x00'==0 to get something | 
|  | 6767 | that's true only with -std.  */ | 
|  | 6768 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | 
|  | 6769 |  | 
|  | 6770 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | 
|  | 6771 | inside strings and character constants.  */ | 
|  | 6772 | #define FOO(x) 'x' | 
|  | 6773 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | 
|  | 6774 |  | 
|  | 6775 | int test (int i, double x); | 
|  | 6776 | struct s1 {int (*f) (int a);}; | 
|  | 6777 | struct s2 {int (*f) (double a);}; | 
|  | 6778 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | 
|  | 6779 | int argc; | 
|  | 6780 | char **argv; | 
|  | 6781 | int | 
|  | 6782 | main () | 
|  | 6783 | { | 
|  | 6784 | return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1]; | 
|  | 6785 | ; | 
|  | 6786 | return 0; | 
|  | 6787 | } | 
|  | 6788 | _ACEOF | 
|  | 6789 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | 
|  | 6790 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 
|  | 6791 | do | 
|  | 6792 | CC="$ac_save_CC $ac_arg" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6793 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6794 | ac_cv_prog_cc_c89=$ac_arg | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6795 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6796 | rm -f core conftest.err conftest.$ac_objext | 
|  | 6797 | test "x$ac_cv_prog_cc_c89" != "xno" && break | 
|  | 6798 | done | 
|  | 6799 | rm -f conftest.$ac_ext | 
|  | 6800 | CC=$ac_save_CC | 
|  | 6801 |  | 
|  | 6802 | fi | 
|  | 6803 | # AC_CACHE_VAL | 
|  | 6804 | case "x$ac_cv_prog_cc_c89" in | 
|  | 6805 | x) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6807 | $as_echo "none needed" >&6; } ;; | 
|  | 6808 | xno) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6810 | $as_echo "unsupported" >&6; } ;; | 
|  | 6811 | *) | 
|  | 6812 | CC="$CC $ac_cv_prog_cc_c89" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6813 | { $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] | 6814 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | 
|  | 6815 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6816 | if test "x$ac_cv_prog_cc_c89" != xno; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6817 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | 
|  | 6818 | else | 
|  | 6819 | ac_cv_prog_cc_stdc=no | 
|  | 6820 | fi | 
|  | 6821 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6822 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6823 | ;; | 
|  | 6824 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6825 | { $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] | 6826 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6827 | if ${ac_cv_prog_cc_stdc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6828 | $as_echo_n "(cached) " >&6 | 
|  | 6829 | fi | 
|  | 6830 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6831 | case $ac_cv_prog_cc_stdc in #( | 
|  | 6832 | no) : | 
|  | 6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 6834 | $as_echo "unsupported" >&6; } ;; #( | 
|  | 6835 | '') : | 
|  | 6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 6837 | $as_echo "none needed" >&6; } ;; #( | 
|  | 6838 | *) : | 
|  | 6839 | { $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] | 6840 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; | 
|  | 6841 | esac | 
|  | 6842 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6843 | ac_ext=c | 
|  | 6844 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6848 | { $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] | 6849 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | 
|  | 6850 | # On Suns, sometimes $CPP names a directory. | 
|  | 6851 | if test -n "$CPP" && test -d "$CPP"; then | 
|  | 6852 | CPP= | 
|  | 6853 | fi | 
|  | 6854 | if test -z "$CPP"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6855 | if ${ac_cv_prog_CPP+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6856 | $as_echo_n "(cached) " >&6 | 
|  | 6857 | else | 
|  | 6858 | # Double quotes because CPP needs to be expanded | 
|  | 6859 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | 
|  | 6860 | do | 
|  | 6861 | ac_preproc_ok=false | 
|  | 6862 | for ac_c_preproc_warn_flag in '' yes | 
|  | 6863 | do | 
|  | 6864 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 6865 | # with a fresh cross-compiler works. | 
|  | 6866 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 6867 | # <limits.h> exists even on freestanding compilers. | 
|  | 6868 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 6869 | # not just through cpp. "Syntax error" is here to catch this case. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6871 | /* end confdefs.h.  */ | 
|  | 6872 | #ifdef __STDC__ | 
|  | 6873 | # include <limits.h> | 
|  | 6874 | #else | 
|  | 6875 | # include <assert.h> | 
|  | 6876 | #endif | 
|  | 6877 | Syntax error | 
|  | 6878 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6879 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6880 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6881 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6882 | # Broken: fails on valid input. | 
|  | 6883 | continue | 
|  | 6884 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6885 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6886 |  | 
|  | 6887 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 6888 | # can be detected and how. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6890 | /* end confdefs.h.  */ | 
|  | 6891 | #include <ac_nonexistent.h> | 
|  | 6892 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6893 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6894 | # Broken: success on invalid input. | 
|  | 6895 | continue | 
|  | 6896 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6897 | # Passes both tests. | 
|  | 6898 | ac_preproc_ok=: | 
|  | 6899 | break | 
|  | 6900 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6901 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6902 |  | 
|  | 6903 | done | 
|  | 6904 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6905 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6906 | if $ac_preproc_ok; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6907 | break | 
|  | 6908 | fi | 
|  | 6909 |  | 
|  | 6910 | done | 
|  | 6911 | ac_cv_prog_CPP=$CPP | 
|  | 6912 |  | 
|  | 6913 | fi | 
|  | 6914 | CPP=$ac_cv_prog_CPP | 
|  | 6915 | else | 
|  | 6916 | ac_cv_prog_CPP=$CPP | 
|  | 6917 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6919 | $as_echo "$CPP" >&6; } | 
|  | 6920 | ac_preproc_ok=false | 
|  | 6921 | for ac_c_preproc_warn_flag in '' yes | 
|  | 6922 | do | 
|  | 6923 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 6924 | # with a fresh cross-compiler works. | 
|  | 6925 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 6926 | # <limits.h> exists even on freestanding compilers. | 
|  | 6927 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 6928 | # not just through cpp. "Syntax error" is here to catch this case. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6930 | /* end confdefs.h.  */ | 
|  | 6931 | #ifdef __STDC__ | 
|  | 6932 | # include <limits.h> | 
|  | 6933 | #else | 
|  | 6934 | # include <assert.h> | 
|  | 6935 | #endif | 
|  | 6936 | Syntax error | 
|  | 6937 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6938 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6939 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6940 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6941 | # Broken: fails on valid input. | 
|  | 6942 | continue | 
|  | 6943 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6944 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6945 |  | 
|  | 6946 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 6947 | # can be detected and how. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6949 | /* end confdefs.h.  */ | 
|  | 6950 | #include <ac_nonexistent.h> | 
|  | 6951 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6952 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6953 | # Broken: success on invalid input. | 
|  | 6954 | continue | 
|  | 6955 | else | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6956 | # Passes both tests. | 
|  | 6957 | ac_preproc_ok=: | 
|  | 6958 | break | 
|  | 6959 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6960 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6961 |  | 
|  | 6962 | done | 
|  | 6963 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6964 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6965 | if $ac_preproc_ok; then : | 
|  | 6966 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6967 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 6970 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | 
|  | 6971 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6972 | fi | 
|  | 6973 |  | 
|  | 6974 | ac_ext=c | 
|  | 6975 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 6976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 6977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 6978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 6979 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | 
|  | 6981 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6982 | if ${ac_cv_path_SED+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6983 | $as_echo_n "(cached) " >&6 | 
|  | 6984 | else | 
|  | 6985 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | 
|  | 6986 | for ac_i in 1 2 3 4 5 6 7; do | 
|  | 6987 | ac_script="$ac_script$as_nl$ac_script" | 
|  | 6988 | done | 
|  | 6989 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | 
|  | 6990 | { ac_script=; unset ac_script;} | 
|  | 6991 | if test -z "$SED"; then | 
|  | 6992 | ac_path_SED_found=false | 
|  | 6993 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 6994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 6995 | for as_dir in $PATH | 
|  | 6996 | do | 
|  | 6997 | IFS=$as_save_IFS | 
|  | 6998 | test -z "$as_dir" && as_dir=. | 
|  | 6999 | for ac_prog in sed gsed; do | 
|  | 7000 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7001 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 7002 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | 
|  | 7003 | # Check for GNU ac_path_SED and select it if it is found. | 
|  | 7004 | # Check for GNU $ac_path_SED | 
|  | 7005 | case `"$ac_path_SED" --version 2>&1` in | 
|  | 7006 | *GNU*) | 
|  | 7007 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | 
|  | 7008 | *) | 
|  | 7009 | ac_count=0 | 
|  | 7010 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 7011 | while : | 
|  | 7012 | do | 
|  | 7013 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 7014 | mv "conftest.tmp" "conftest.in" | 
|  | 7015 | cp "conftest.in" "conftest.nl" | 
|  | 7016 | $as_echo '' >> "conftest.nl" | 
|  | 7017 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 7018 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 7019 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 7020 | if test $ac_count -gt ${ac_path_SED_max-0}; then | 
|  | 7021 | # Best one so far, save it but keep looking for a better one | 
|  | 7022 | ac_cv_path_SED="$ac_path_SED" | 
|  | 7023 | ac_path_SED_max=$ac_count | 
|  | 7024 | fi | 
|  | 7025 | # 10*(2^10) chars as input seems more than enough | 
|  | 7026 | test $ac_count -gt 10 && break | 
|  | 7027 | done | 
|  | 7028 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 7029 | esac | 
|  | 7030 |  | 
|  | 7031 | $ac_path_SED_found && break 3 | 
|  | 7032 | done | 
|  | 7033 | done | 
|  | 7034 | done | 
|  | 7035 | IFS=$as_save_IFS | 
|  | 7036 | if test -z "$ac_cv_path_SED"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7037 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7038 | fi | 
|  | 7039 | else | 
|  | 7040 | ac_cv_path_SED=$SED | 
|  | 7041 | fi | 
|  | 7042 |  | 
|  | 7043 | fi | 
|  | 7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | 
|  | 7045 | $as_echo "$ac_cv_path_SED" >&6; } | 
|  | 7046 | SED="$ac_cv_path_SED" | 
|  | 7047 | rm -f conftest.sed | 
|  | 7048 |  | 
|  | 7049 | test -z "$SED" && SED=sed | 
|  | 7050 | Xsed="$SED -e 1s/^X//" | 
|  | 7051 |  | 
|  | 7052 |  | 
|  | 7053 |  | 
|  | 7054 |  | 
|  | 7055 |  | 
|  | 7056 |  | 
|  | 7057 |  | 
|  | 7058 |  | 
|  | 7059 |  | 
|  | 7060 |  | 
|  | 7061 |  | 
|  | 7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | 
|  | 7063 | $as_echo_n "checking for fgrep... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7064 | if ${ac_cv_path_FGREP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7065 | $as_echo_n "(cached) " >&6 | 
|  | 7066 | else | 
|  | 7067 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | 
|  | 7068 | then ac_cv_path_FGREP="$GREP -F" | 
|  | 7069 | else | 
|  | 7070 | if test -z "$FGREP"; then | 
|  | 7071 | ac_path_FGREP_found=false | 
|  | 7072 | # Loop through the user's path and test for each of PROGNAME-LIST | 
|  | 7073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7074 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | 
|  | 7075 | do | 
|  | 7076 | IFS=$as_save_IFS | 
|  | 7077 | test -z "$as_dir" && as_dir=. | 
|  | 7078 | for ac_prog in fgrep; do | 
|  | 7079 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7080 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | 
|  | 7081 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | 
|  | 7082 | # Check for GNU ac_path_FGREP and select it if it is found. | 
|  | 7083 | # Check for GNU $ac_path_FGREP | 
|  | 7084 | case `"$ac_path_FGREP" --version 2>&1` in | 
|  | 7085 | *GNU*) | 
|  | 7086 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | 
|  | 7087 | *) | 
|  | 7088 | ac_count=0 | 
|  | 7089 | $as_echo_n 0123456789 >"conftest.in" | 
|  | 7090 | while : | 
|  | 7091 | do | 
|  | 7092 | cat "conftest.in" "conftest.in" >"conftest.tmp" | 
|  | 7093 | mv "conftest.tmp" "conftest.in" | 
|  | 7094 | cp "conftest.in" "conftest.nl" | 
|  | 7095 | $as_echo 'FGREP' >> "conftest.nl" | 
|  | 7096 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | 
|  | 7097 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | 
|  | 7098 | as_fn_arith $ac_count + 1 && ac_count=$as_val | 
|  | 7099 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | 
|  | 7100 | # Best one so far, save it but keep looking for a better one | 
|  | 7101 | ac_cv_path_FGREP="$ac_path_FGREP" | 
|  | 7102 | ac_path_FGREP_max=$ac_count | 
|  | 7103 | fi | 
|  | 7104 | # 10*(2^10) chars as input seems more than enough | 
|  | 7105 | test $ac_count -gt 10 && break | 
|  | 7106 | done | 
|  | 7107 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | 
|  | 7108 | esac | 
|  | 7109 |  | 
|  | 7110 | $ac_path_FGREP_found && break 3 | 
|  | 7111 | done | 
|  | 7112 | done | 
|  | 7113 | done | 
|  | 7114 | IFS=$as_save_IFS | 
|  | 7115 | if test -z "$ac_cv_path_FGREP"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7116 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7117 | fi | 
|  | 7118 | else | 
|  | 7119 | ac_cv_path_FGREP=$FGREP | 
|  | 7120 | fi | 
|  | 7121 |  | 
|  | 7122 | fi | 
|  | 7123 | fi | 
|  | 7124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | 
|  | 7125 | $as_echo "$ac_cv_path_FGREP" >&6; } | 
|  | 7126 | FGREP="$ac_cv_path_FGREP" | 
|  | 7127 |  | 
|  | 7128 |  | 
|  | 7129 | test -z "$GREP" && GREP=grep | 
|  | 7130 |  | 
|  | 7131 |  | 
|  | 7132 |  | 
|  | 7133 |  | 
|  | 7134 |  | 
|  | 7135 |  | 
|  | 7136 |  | 
|  | 7137 |  | 
|  | 7138 |  | 
|  | 7139 |  | 
|  | 7140 |  | 
|  | 7141 |  | 
|  | 7142 |  | 
|  | 7143 |  | 
|  | 7144 |  | 
|  | 7145 |  | 
|  | 7146 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7147 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 7148 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | 
|  | 7149 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | 
|  | 7150 |  | 
|  | 7151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | 
|  | 7152 | $as_echo_n "checking how to print strings... " >&6; } | 
|  | 7153 | # Test print first, because it will be a builtin if present. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7154 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7155 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | 
|  | 7156 | ECHO='print -r --' | 
|  | 7157 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | 
|  | 7158 | ECHO='printf %s\n' | 
|  | 7159 | else | 
|  | 7160 | # Use this function as a fallback that always works. | 
|  | 7161 | func_fallback_echo () | 
|  | 7162 | { | 
|  | 7163 | eval 'cat <<_LTECHO_EOF | 
|  | 7164 | $1 | 
|  | 7165 | _LTECHO_EOF' | 
|  | 7166 | } | 
|  | 7167 | ECHO='func_fallback_echo' | 
|  | 7168 | fi | 
|  | 7169 |  | 
|  | 7170 | # func_echo_all arg... | 
|  | 7171 | # Invoke $ECHO with all args, space-separated. | 
|  | 7172 | func_echo_all () | 
|  | 7173 | { | 
|  | 7174 | $ECHO "" | 
|  | 7175 | } | 
|  | 7176 |  | 
|  | 7177 | case "$ECHO" in | 
|  | 7178 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | 
|  | 7179 | $as_echo "printf" >&6; } ;; | 
|  | 7180 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | 
|  | 7181 | $as_echo "print -r" >&6; } ;; | 
|  | 7182 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | 
|  | 7183 | $as_echo "cat" >&6; } ;; | 
|  | 7184 | esac | 
|  | 7185 |  | 
|  | 7186 |  | 
|  | 7187 |  | 
|  | 7188 |  | 
|  | 7189 |  | 
|  | 7190 |  | 
|  | 7191 |  | 
|  | 7192 |  | 
|  | 7193 |  | 
|  | 7194 |  | 
|  | 7195 |  | 
|  | 7196 |  | 
|  | 7197 |  | 
|  | 7198 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7199 |  | 
|  | 7200 |  | 
|  | 7201 | # Check whether --with-gnu-ld was given. | 
|  | 7202 | if test "${with_gnu_ld+set}" = set; then : | 
|  | 7203 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
|  | 7204 | else | 
|  | 7205 | with_gnu_ld=no | 
|  | 7206 | fi | 
|  | 7207 |  | 
|  | 7208 | ac_prog=ld | 
|  | 7209 | if test "$GCC" = yes; then | 
|  | 7210 | # Check if gcc -print-prog-name=ld gives a path. | 
|  | 7211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | 
|  | 7212 | $as_echo_n "checking for ld used by $CC... " >&6; } | 
|  | 7213 | case $host in | 
|  | 7214 | *-*-mingw*) | 
|  | 7215 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 7216 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 7217 | *) | 
|  | 7218 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 7219 | esac | 
|  | 7220 | case $ac_prog in | 
|  | 7221 | # Accept absolute paths. | 
|  | 7222 | [\\/]* | ?:[\\/]*) | 
|  | 7223 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 7224 | # Canonicalize the pathname of ld | 
|  | 7225 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 
|  | 7226 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 
|  | 7227 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 7228 | done | 
|  | 7229 | test -z "$LD" && LD="$ac_prog" | 
|  | 7230 | ;; | 
|  | 7231 | "") | 
|  | 7232 | # If it fails, then pretend we aren't using GCC. | 
|  | 7233 | ac_prog=ld | 
|  | 7234 | ;; | 
|  | 7235 | *) | 
|  | 7236 | # If it is relative, then search for the first ld in PATH. | 
|  | 7237 | with_gnu_ld=unknown | 
|  | 7238 | ;; | 
|  | 7239 | esac | 
|  | 7240 | elif test "$with_gnu_ld" = yes; then | 
|  | 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 7242 | $as_echo_n "checking for GNU ld... " >&6; } | 
|  | 7243 | else | 
|  | 7244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | 
|  | 7245 | $as_echo_n "checking for non-GNU ld... " >&6; } | 
|  | 7246 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7247 | if ${lt_cv_path_LD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7248 | $as_echo_n "(cached) " >&6 | 
|  | 7249 | else | 
|  | 7250 | if test -z "$LD"; then | 
|  | 7251 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 7252 | for ac_dir in $PATH; do | 
|  | 7253 | IFS="$lt_save_ifs" | 
|  | 7254 | test -z "$ac_dir" && ac_dir=. | 
|  | 7255 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 7256 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 7257 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 7258 | # but apparently some variants of GNU ld only accept -v. | 
|  | 7259 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 7260 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 7261 | *GNU* | *'with BFD'*) | 
|  | 7262 | test "$with_gnu_ld" != no && break | 
|  | 7263 | ;; | 
|  | 7264 | *) | 
|  | 7265 | test "$with_gnu_ld" != yes && break | 
|  | 7266 | ;; | 
|  | 7267 | esac | 
|  | 7268 | fi | 
|  | 7269 | done | 
|  | 7270 | IFS="$lt_save_ifs" | 
|  | 7271 | else | 
|  | 7272 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 7273 | fi | 
|  | 7274 | fi | 
|  | 7275 |  | 
|  | 7276 | LD="$lt_cv_path_LD" | 
|  | 7277 | if test -n "$LD"; then | 
|  | 7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | 
|  | 7279 | $as_echo "$LD" >&6; } | 
|  | 7280 | else | 
|  | 7281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7282 | $as_echo "no" >&6; } | 
|  | 7283 | fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7284 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 7286 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7287 | if ${lt_cv_prog_gnu_ld+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7288 | $as_echo_n "(cached) " >&6 | 
|  | 7289 | else | 
|  | 7290 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
|  | 7291 | case `$LD -v 2>&1 </dev/null` in | 
|  | 7292 | *GNU* | *'with BFD'*) | 
|  | 7293 | lt_cv_prog_gnu_ld=yes | 
|  | 7294 | ;; | 
|  | 7295 | *) | 
|  | 7296 | lt_cv_prog_gnu_ld=no | 
|  | 7297 | ;; | 
|  | 7298 | esac | 
|  | 7299 | fi | 
|  | 7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 7301 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | 
|  | 7302 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 7303 |  | 
|  | 7304 |  | 
|  | 7305 |  | 
|  | 7306 |  | 
|  | 7307 |  | 
|  | 7308 |  | 
|  | 7309 |  | 
|  | 7310 |  | 
|  | 7311 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7312 |  | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | 
|  | 7314 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7315 | if ${ac_cv_prog_cc_c99+:} false; then : | 
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7316 | $as_echo_n "(cached) " >&6 | 
|  | 7317 | else | 
|  | 7318 | ac_cv_prog_cc_c99=no | 
|  | 7319 | ac_save_CC=$CC | 
|  | 7320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7321 | /* end confdefs.h.  */ | 
|  | 7322 | #include <stdarg.h> | 
|  | 7323 | #include <stdbool.h> | 
|  | 7324 | #include <stdlib.h> | 
|  | 7325 | #include <wchar.h> | 
|  | 7326 | #include <stdio.h> | 
|  | 7327 |  | 
|  | 7328 | // Check varargs macros.  These examples are taken from C99 6.10.3.5. | 
|  | 7329 | #define debug(...) fprintf (stderr, __VA_ARGS__) | 
|  | 7330 | #define showlist(...) puts (#__VA_ARGS__) | 
|  | 7331 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | 
|  | 7332 | static void | 
|  | 7333 | test_varargs_macros (void) | 
|  | 7334 | { | 
|  | 7335 | int x = 1234; | 
|  | 7336 | int y = 5678; | 
|  | 7337 | debug ("Flag"); | 
|  | 7338 | debug ("X = %d\n", x); | 
|  | 7339 | showlist (The first, second, and third items.); | 
|  | 7340 | report (x>y, "x is %d but y is %d", x, y); | 
|  | 7341 | } | 
|  | 7342 |  | 
|  | 7343 | // Check long long types. | 
|  | 7344 | #define BIG64 18446744073709551615ull | 
|  | 7345 | #define BIG32 4294967295ul | 
|  | 7346 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | 
|  | 7347 | #if !BIG_OK | 
|  | 7348 | your preprocessor is broken; | 
|  | 7349 | #endif | 
|  | 7350 | #if BIG_OK | 
|  | 7351 | #else | 
|  | 7352 | your preprocessor is broken; | 
|  | 7353 | #endif | 
|  | 7354 | static long long int bignum = -9223372036854775807LL; | 
|  | 7355 | static unsigned long long int ubignum = BIG64; | 
|  | 7356 |  | 
|  | 7357 | struct incomplete_array | 
|  | 7358 | { | 
|  | 7359 | int datasize; | 
|  | 7360 | double data[]; | 
|  | 7361 | }; | 
|  | 7362 |  | 
|  | 7363 | struct named_init { | 
|  | 7364 | int number; | 
|  | 7365 | const wchar_t *name; | 
|  | 7366 | double average; | 
|  | 7367 | }; | 
|  | 7368 |  | 
|  | 7369 | typedef const char *ccp; | 
|  | 7370 |  | 
|  | 7371 | static inline int | 
|  | 7372 | test_restrict (ccp restrict text) | 
|  | 7373 | { | 
|  | 7374 | // See if C++-style comments work. | 
|  | 7375 | // Iterate through items via the restricted pointer. | 
|  | 7376 | // Also check for declarations in for loops. | 
|  | 7377 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | 
|  | 7378 | continue; | 
|  | 7379 | return 0; | 
|  | 7380 | } | 
|  | 7381 |  | 
|  | 7382 | // Check varargs and va_copy. | 
|  | 7383 | static void | 
|  | 7384 | test_varargs (const char *format, ...) | 
|  | 7385 | { | 
|  | 7386 | va_list args; | 
|  | 7387 | va_start (args, format); | 
|  | 7388 | va_list args_copy; | 
|  | 7389 | va_copy (args_copy, args); | 
|  | 7390 |  | 
|  | 7391 | const char *str; | 
|  | 7392 | int number; | 
|  | 7393 | float fnumber; | 
|  | 7394 |  | 
|  | 7395 | while (*format) | 
|  | 7396 | { | 
|  | 7397 | switch (*format++) | 
|  | 7398 | { | 
|  | 7399 | case 's': // string | 
|  | 7400 | str = va_arg (args_copy, const char *); | 
|  | 7401 | break; | 
|  | 7402 | case 'd': // int | 
|  | 7403 | number = va_arg (args_copy, int); | 
|  | 7404 | break; | 
|  | 7405 | case 'f': // float | 
|  | 7406 | fnumber = va_arg (args_copy, double); | 
|  | 7407 | break; | 
|  | 7408 | default: | 
|  | 7409 | break; | 
|  | 7410 | } | 
|  | 7411 | } | 
|  | 7412 | va_end (args_copy); | 
|  | 7413 | va_end (args); | 
|  | 7414 | } | 
|  | 7415 |  | 
|  | 7416 | int | 
|  | 7417 | main () | 
|  | 7418 | { | 
|  | 7419 |  | 
|  | 7420 | // Check bool. | 
|  | 7421 | _Bool success = false; | 
|  | 7422 |  | 
|  | 7423 | // Check restrict. | 
|  | 7424 | if (test_restrict ("String literal") == 0) | 
|  | 7425 | success = true; | 
|  | 7426 | char *restrict newvar = "Another string"; | 
|  | 7427 |  | 
|  | 7428 | // Check varargs. | 
|  | 7429 | test_varargs ("s, d' f .", "string", 65, 34.234); | 
|  | 7430 | test_varargs_macros (); | 
|  | 7431 |  | 
|  | 7432 | // Check flexible array members. | 
|  | 7433 | struct incomplete_array *ia = | 
|  | 7434 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | 
|  | 7435 | ia->datasize = 10; | 
|  | 7436 | for (int i = 0; i < ia->datasize; ++i) | 
|  | 7437 | ia->data[i] = i * 1.234; | 
|  | 7438 |  | 
|  | 7439 | // Check named initializers. | 
|  | 7440 | struct named_init ni = { | 
|  | 7441 | .number = 34, | 
|  | 7442 | .name = L"Test wide string", | 
|  | 7443 | .average = 543.34343, | 
|  | 7444 | }; | 
|  | 7445 |  | 
|  | 7446 | ni.number = 58; | 
|  | 7447 |  | 
|  | 7448 | int dynamic_array[ni.number]; | 
|  | 7449 | dynamic_array[ni.number - 1] = 543; | 
|  | 7450 |  | 
|  | 7451 | // work around unused variable warnings | 
|  | 7452 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | 
|  | 7453 | || dynamic_array[ni.number - 1] != 543); | 
|  | 7454 |  | 
|  | 7455 | ; | 
|  | 7456 | return 0; | 
|  | 7457 | } | 
|  | 7458 | _ACEOF | 
|  | 7459 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 | 
|  | 7460 | do | 
|  | 7461 | CC="$ac_save_CC $ac_arg" | 
|  | 7462 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7463 | ac_cv_prog_cc_c99=$ac_arg | 
|  | 7464 | fi | 
|  | 7465 | rm -f core conftest.err conftest.$ac_objext | 
|  | 7466 | test "x$ac_cv_prog_cc_c99" != "xno" && break | 
|  | 7467 | done | 
|  | 7468 | rm -f conftest.$ac_ext | 
|  | 7469 | CC=$ac_save_CC | 
|  | 7470 |  | 
|  | 7471 | fi | 
|  | 7472 | # AC_CACHE_VAL | 
|  | 7473 | case "x$ac_cv_prog_cc_c99" in | 
|  | 7474 | x) | 
|  | 7475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | 
|  | 7476 | $as_echo "none needed" >&6; } ;; | 
|  | 7477 | xno) | 
|  | 7478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | 
|  | 7479 | $as_echo "unsupported" >&6; } ;; | 
|  | 7480 | *) | 
|  | 7481 | CC="$CC $ac_cv_prog_cc_c99" | 
|  | 7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | 
|  | 7483 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | 
|  | 7484 | esac | 
|  | 7485 | if test "x$ac_cv_prog_cc_c99" != xno; then : | 
|  | 7486 |  | 
|  | 7487 | fi | 
|  | 7488 |  | 
|  | 7489 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7490 | if test "x$CC" != xcc; then | 
|  | 7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 | 
|  | 7492 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | 
|  | 7493 | else | 
|  | 7494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 | 
|  | 7495 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | 
|  | 7496 | fi | 
|  | 7497 | set dummy $CC; ac_cc=`$as_echo "$2" | | 
|  | 7498 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7499 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7500 | $as_echo_n "(cached) " >&6 | 
|  | 7501 | else | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7503 | /* end confdefs.h.  */ | 
|  | 7504 |  | 
|  | 7505 | int | 
|  | 7506 | main () | 
|  | 7507 | { | 
|  | 7508 |  | 
|  | 7509 | ; | 
|  | 7510 | return 0; | 
|  | 7511 | } | 
|  | 7512 | _ACEOF | 
|  | 7513 | # Make sure it works both with $CC and with simple cc. | 
|  | 7514 | # We do the test twice because some compilers refuse to overwrite an | 
|  | 7515 | # existing .o file with -o, though they will create one. | 
|  | 7516 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | 
|  | 7517 | rm -f conftest2.* | 
|  | 7518 | if { { case "(($ac_try" in | 
|  | 7519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7520 | *) ac_try_echo=$ac_try;; | 
|  | 7521 | esac | 
|  | 7522 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7523 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 7524 | (eval "$ac_try") 2>&5 | 
|  | 7525 | ac_status=$? | 
|  | 7526 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7527 | test $ac_status = 0; } && | 
|  | 7528 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | 
|  | 7529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7530 | *) ac_try_echo=$ac_try;; | 
|  | 7531 | esac | 
|  | 7532 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7533 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 7534 | (eval "$ac_try") 2>&5 | 
|  | 7535 | ac_status=$? | 
|  | 7536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7537 | test $ac_status = 0; }; | 
|  | 7538 | then | 
|  | 7539 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | 
|  | 7540 | if test "x$CC" != xcc; then | 
|  | 7541 | # Test first that cc exists at all. | 
|  | 7542 | if { ac_try='cc -c conftest.$ac_ext >&5' | 
|  | 7543 | { { case "(($ac_try" in | 
|  | 7544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7545 | *) ac_try_echo=$ac_try;; | 
|  | 7546 | esac | 
|  | 7547 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7548 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 7549 | (eval "$ac_try") 2>&5 | 
|  | 7550 | ac_status=$? | 
|  | 7551 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7552 | test $ac_status = 0; }; }; then | 
|  | 7553 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | 
|  | 7554 | rm -f conftest2.* | 
|  | 7555 | if { { case "(($ac_try" in | 
|  | 7556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7557 | *) ac_try_echo=$ac_try;; | 
|  | 7558 | esac | 
|  | 7559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7560 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 7561 | (eval "$ac_try") 2>&5 | 
|  | 7562 | ac_status=$? | 
|  | 7563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7564 | test $ac_status = 0; } && | 
|  | 7565 | test -f conftest2.$ac_objext && { { case "(($ac_try" in | 
|  | 7566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 7567 | *) ac_try_echo=$ac_try;; | 
|  | 7568 | esac | 
|  | 7569 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 7570 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 7571 | (eval "$ac_try") 2>&5 | 
|  | 7572 | ac_status=$? | 
|  | 7573 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7574 | test $ac_status = 0; }; | 
|  | 7575 | then | 
|  | 7576 | # cc works too. | 
|  | 7577 | : | 
|  | 7578 | else | 
|  | 7579 | # cc exists but doesn't like -o. | 
|  | 7580 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | 
|  | 7581 | fi | 
|  | 7582 | fi | 
|  | 7583 | fi | 
|  | 7584 | else | 
|  | 7585 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | 
|  | 7586 | fi | 
|  | 7587 | rm -f core conftest* | 
|  | 7588 |  | 
|  | 7589 | fi | 
|  | 7590 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | 
|  | 7591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7592 | $as_echo "yes" >&6; } | 
|  | 7593 | else | 
|  | 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7595 | $as_echo "no" >&6; } | 
|  | 7596 |  | 
|  | 7597 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h | 
|  | 7598 |  | 
|  | 7599 | fi | 
|  | 7600 |  | 
|  | 7601 | # FIXME: we rely on the cache variable name because | 
|  | 7602 | # there is no other way. | 
|  | 7603 | set dummy $CC | 
|  | 7604 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | 
|  | 7605 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | 
|  | 7606 | if test "$am_t" != yes; then | 
|  | 7607 | # Losing compiler, so override with the script. | 
|  | 7608 | # FIXME: It is wrong to rewrite CC. | 
|  | 7609 | # But if we don't then we get into trouble of one sort or another. | 
|  | 7610 | # A longer-term fix would be to have automake use am__CC in this case, | 
|  | 7611 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | 
|  | 7612 | CC="$am_aux_dir/compile $CC" | 
|  | 7613 | fi | 
|  | 7614 |  | 
|  | 7615 |  | 
|  | 7616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 | 
|  | 7617 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7618 | if ${ac_cv_cflags_warn_all+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7619 | $as_echo_n "(cached) " >&6 | 
|  | 7620 | else | 
|  | 7621 | ac_cv_cflags_warn_all="no, unknown" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7622 | ac_ext=c | 
|  | 7623 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7627 |  | 
|  | 7628 | ac_save_CFLAGS="$CFLAGS" | 
|  | 7629 | for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    # | 
|  | 7630 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | 
|  | 7631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7632 | /* end confdefs.h.  */ | 
|  | 7633 |  | 
|  | 7634 | int | 
|  | 7635 | main () | 
|  | 7636 | { | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 7637 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7638 | ; | 
|  | 7639 | return 0; | 
|  | 7640 | } | 
|  | 7641 | _ACEOF | 
|  | 7642 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7643 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break | 
|  | 7644 | fi | 
|  | 7645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7646 | done | 
|  | 7647 | CFLAGS="$ac_save_CFLAGS" | 
|  | 7648 | ac_ext=c | 
|  | 7649 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 7650 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 7651 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 7652 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 7653 |  | 
|  | 7654 |  | 
|  | 7655 | fi | 
|  | 7656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 | 
|  | 7657 | $as_echo "$ac_cv_cflags_warn_all" >&6; } | 
|  | 7658 | case ".$ac_cv_cflags_warn_all" in | 
|  | 7659 | .ok|.ok,*)  ;; | 
|  | 7660 | .|.no|.no,*) | 
|  | 7661 | ;; | 
|  | 7662 | *) | 
|  | 7663 | if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null | 
|  | 7664 | then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 | 
|  | 7665 | (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 | 
|  | 7666 | ac_status=$? | 
|  | 7667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7668 | test $ac_status = 0; } | 
|  | 7669 | else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 | 
|  | 7670 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 | 
|  | 7671 | ac_status=$? | 
|  | 7672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 7673 | test $ac_status = 0; } | 
|  | 7674 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" | 
|  | 7675 | fi | 
|  | 7676 | ;; | 
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 7677 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7678 |  | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7679 |  | 
|  | 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | 
|  | 7681 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | 
|  | 7682 | set x ${MAKE-make} | 
|  | 7683 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7684 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7685 | $as_echo_n "(cached) " >&6 | 
|  | 7686 | else | 
|  | 7687 | cat >conftest.make <<\_ACEOF | 
|  | 7688 | SHELL = /bin/sh | 
|  | 7689 | all: | 
|  | 7690 | @echo '@@@%%%=$(MAKE)=@@@%%%' | 
|  | 7691 | _ACEOF | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7692 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 7693 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | 
|  | 7694 | *@@@%%%=?*=@@@%%%*) | 
|  | 7695 | eval ac_cv_prog_make_${ac_make}_set=yes;; | 
|  | 7696 | *) | 
|  | 7697 | eval ac_cv_prog_make_${ac_make}_set=no;; | 
|  | 7698 | esac | 
|  | 7699 | rm -f conftest.make | 
|  | 7700 | fi | 
|  | 7701 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | 
|  | 7702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7703 | $as_echo "yes" >&6; } | 
|  | 7704 | SET_MAKE= | 
|  | 7705 | else | 
|  | 7706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7707 | $as_echo "no" >&6; } | 
|  | 7708 | SET_MAKE="MAKE=${MAKE-make}" | 
|  | 7709 | fi | 
|  | 7710 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7712 | $as_echo_n "checking whether ln -s works... " >&6; } | 
|  | 7713 | LN_S=$as_ln_s | 
|  | 7714 | if test "$LN_S" = "ln -s"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7716 | $as_echo "yes" >&6; } | 
|  | 7717 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7719 | $as_echo "no, using $LN_S" >&6; } | 
|  | 7720 | fi | 
|  | 7721 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 | 
|  | 7723 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } | 
|  | 7724 |  | 
|  | 7725 | # Check whether --with-dmalloc was given. | 
|  | 7726 | if test "${with_dmalloc+set}" = set; then : | 
|  | 7727 | withval=$with_dmalloc; if test "$withval" = yes; then | 
|  | 7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7729 | $as_echo "yes" >&6; } | 
|  | 7730 |  | 
|  | 7731 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h | 
|  | 7732 |  | 
|  | 7733 | LIBS="$LIBS -ldmalloc" | 
|  | 7734 | LDFLAGS="$LDFLAGS -g" | 
|  | 7735 | else | 
|  | 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7737 | $as_echo "no" >&6; } | 
|  | 7738 | fi | 
|  | 7739 | else | 
|  | 7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7741 | $as_echo "no" >&6; } | 
|  | 7742 | fi | 
|  | 7743 |  | 
|  | 7744 |  | 
|  | 7745 |  | 
|  | 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 | 
|  | 7747 | $as_echo_n "checking for __attribute__... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7748 | if ${ax_cv___attribute__+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7749 | $as_echo_n "(cached) " >&6 | 
|  | 7750 | else | 
|  | 7751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7752 | /* end confdefs.h.  */ | 
|  | 7753 | #include <stdlib.h> | 
|  | 7754 | static void foo(void) __attribute__ ((unused)); | 
|  | 7755 | static void | 
|  | 7756 | foo(void) { | 
|  | 7757 | exit(1); | 
|  | 7758 | } | 
|  | 7759 |  | 
|  | 7760 | int | 
|  | 7761 | main () | 
|  | 7762 | { | 
|  | 7763 |  | 
|  | 7764 | ; | 
|  | 7765 | return 0; | 
|  | 7766 | } | 
|  | 7767 | _ACEOF | 
|  | 7768 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7769 | ax_cv___attribute__=yes | 
|  | 7770 | else | 
|  | 7771 | ax_cv___attribute__=no | 
|  | 7772 |  | 
|  | 7773 | fi | 
|  | 7774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7775 |  | 
|  | 7776 | fi | 
|  | 7777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 | 
|  | 7778 | $as_echo "$ax_cv___attribute__" >&6; } | 
|  | 7779 | if test "$ax_cv___attribute__" = "yes"; then | 
|  | 7780 |  | 
|  | 7781 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h | 
|  | 7782 |  | 
|  | 7783 | fi | 
|  | 7784 |  | 
|  | 7785 |  | 
|  | 7786 |  | 
|  | 7787 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | 
|  | 7788 | if test -n "$ac_tool_prefix"; then | 
|  | 7789 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | 
|  | 7790 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | 
|  | 7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 7792 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7793 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7794 | $as_echo_n "(cached) " >&6 | 
|  | 7795 | else | 
|  | 7796 | case $PKG_CONFIG in | 
|  | 7797 | [\\/]* | ?:[\\/]*) | 
|  | 7798 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | 
|  | 7799 | ;; | 
|  | 7800 | *) | 
|  | 7801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7802 | for as_dir in $PATH | 
|  | 7803 | do | 
|  | 7804 | IFS=$as_save_IFS | 
|  | 7805 | test -z "$as_dir" && as_dir=. | 
|  | 7806 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7808 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7810 | break 2 | 
|  | 7811 | fi | 
|  | 7812 | done | 
|  | 7813 | done | 
|  | 7814 | IFS=$as_save_IFS | 
|  | 7815 |  | 
|  | 7816 | ;; | 
|  | 7817 | esac | 
|  | 7818 | fi | 
|  | 7819 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | 
|  | 7820 | if test -n "$PKG_CONFIG"; then | 
|  | 7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | 
|  | 7822 | $as_echo "$PKG_CONFIG" >&6; } | 
|  | 7823 | else | 
|  | 7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7825 | $as_echo "no" >&6; } | 
|  | 7826 | fi | 
|  | 7827 |  | 
|  | 7828 |  | 
|  | 7829 | fi | 
|  | 7830 | if test -z "$ac_cv_path_PKG_CONFIG"; then | 
|  | 7831 | ac_pt_PKG_CONFIG=$PKG_CONFIG | 
|  | 7832 | # Extract the first word of "pkg-config", so it can be a program name with args. | 
|  | 7833 | set dummy pkg-config; ac_word=$2 | 
|  | 7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 7835 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7836 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7837 | $as_echo_n "(cached) " >&6 | 
|  | 7838 | else | 
|  | 7839 | case $ac_pt_PKG_CONFIG in | 
|  | 7840 | [\\/]* | ?:[\\/]*) | 
|  | 7841 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | 
|  | 7842 | ;; | 
|  | 7843 | *) | 
|  | 7844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 7845 | for as_dir in $PATH | 
|  | 7846 | do | 
|  | 7847 | IFS=$as_save_IFS | 
|  | 7848 | test -z "$as_dir" && as_dir=. | 
|  | 7849 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 7850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 7851 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | 
|  | 7852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 7853 | break 2 | 
|  | 7854 | fi | 
|  | 7855 | done | 
|  | 7856 | done | 
|  | 7857 | IFS=$as_save_IFS | 
|  | 7858 |  | 
|  | 7859 | ;; | 
|  | 7860 | esac | 
|  | 7861 | fi | 
|  | 7862 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | 
|  | 7863 | if test -n "$ac_pt_PKG_CONFIG"; then | 
|  | 7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | 
|  | 7865 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | 
|  | 7866 | else | 
|  | 7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7868 | $as_echo "no" >&6; } | 
|  | 7869 | fi | 
|  | 7870 |  | 
|  | 7871 | if test "x$ac_pt_PKG_CONFIG" = x; then | 
|  | 7872 | PKG_CONFIG="" | 
|  | 7873 | else | 
|  | 7874 | case $cross_compiling:$ac_tool_warned in | 
|  | 7875 | yes:) | 
|  | 7876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 7877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 7878 | ac_tool_warned=yes ;; | 
|  | 7879 | esac | 
|  | 7880 | PKG_CONFIG=$ac_pt_PKG_CONFIG | 
|  | 7881 | fi | 
|  | 7882 | else | 
|  | 7883 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | 
|  | 7884 | fi | 
|  | 7885 |  | 
|  | 7886 | fi | 
|  | 7887 | if test -n "$PKG_CONFIG"; then | 
|  | 7888 | _pkg_min_version=0.9.0 | 
|  | 7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | 
|  | 7890 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | 
|  | 7891 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | 
|  | 7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 7893 | $as_echo "yes" >&6; } | 
|  | 7894 | else | 
|  | 7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 7896 | $as_echo "no" >&6; } | 
|  | 7897 | PKG_CONFIG="" | 
|  | 7898 | fi | 
|  | 7899 |  | 
|  | 7900 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7901 |  | 
|  | 7902 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7903 | # Enable run-time checking. | 
|  | 7904 | # | 
|  | 7905 | # Check whether --enable-bounds-checking was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7906 | if test "${enable_bounds_checking+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7907 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval | 
|  | 7908 | else | 
|  | 7909 | enable_bounds_checking='no' | 
|  | 7910 | fi | 
|  | 7911 |  | 
|  | 7912 |  | 
|  | 7913 | if test "$enable_bounds_checking" = yes; then | 
|  | 7914 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7915 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7916 |  | 
|  | 7917 | fi | 
|  | 7918 |  | 
|  | 7919 | # | 
|  | 7920 | # Tests for Windows | 
|  | 7921 | # | 
|  | 7922 |  | 
|  | 7923 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 | 
|  | 7925 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7926 | if ${ax_cv_c_compiler_ms+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7927 | $as_echo_n "(cached) " >&6 | 
|  | 7928 | else | 
|  | 7929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 7930 | /* end confdefs.h.  */ | 
|  | 7931 |  | 
|  | 7932 | int | 
|  | 7933 | main () | 
|  | 7934 | { | 
|  | 7935 | #ifndef _MSC_VER | 
|  | 7936 | choke me | 
|  | 7937 | #endif | 
|  | 7938 |  | 
|  | 7939 | ; | 
|  | 7940 | return 0; | 
|  | 7941 | } | 
|  | 7942 | _ACEOF | 
|  | 7943 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 7944 | ax_compiler_ms=yes | 
|  | 7945 | else | 
|  | 7946 | ax_compiler_ms=no | 
|  | 7947 | fi | 
|  | 7948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 7949 | ax_cv_c_compiler_ms=$ax_compiler_ms | 
|  | 7950 |  | 
|  | 7951 | fi | 
|  | 7952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 | 
|  | 7953 | $as_echo "$ax_cv_c_compiler_ms" >&6; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7954 |  | 
|  | 7955 | GDI32_LIBS='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7956 | native_win32_build='no' | 
|  | 7957 | cygwin_build='no' | 
|  | 7958 | case "${host_os}" in | 
|  | 7959 | cygwin* ) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7960 | cygwin_build='yes' | 
|  | 7961 | GDI32_LIBS='-lgdi32' | 
|  | 7962 | ;; | 
|  | 7963 | mingw* ) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7964 | native_win32_build='yes' | 
|  | 7965 | GDI32_LIBS='-lgdi32' | 
|  | 7966 | ;; | 
|  | 7967 | esac | 
|  | 7968 | if test "${GDI32_LIBS}x" != 'x'; then | 
|  | 7969 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7970 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7971 |  | 
|  | 7972 | fi | 
|  | 7973 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7974 | if test "${GDI32_LIBS}x" != 'x' ; then | 
|  | 7975 | WINGDI32_DELEGATE_TRUE= | 
|  | 7976 | WINGDI32_DELEGATE_FALSE='#' | 
|  | 7977 | else | 
|  | 7978 | WINGDI32_DELEGATE_TRUE='#' | 
|  | 7979 | WINGDI32_DELEGATE_FALSE= | 
|  | 7980 | fi | 
|  | 7981 |  | 
|  | 7982 | if test "${native_win32_build}" = 'yes' ; then | 
|  | 7983 | WIN32_NATIVE_BUILD_TRUE= | 
|  | 7984 | WIN32_NATIVE_BUILD_FALSE='#' | 
|  | 7985 | else | 
|  | 7986 | WIN32_NATIVE_BUILD_TRUE='#' | 
|  | 7987 | WIN32_NATIVE_BUILD_FALSE= | 
|  | 7988 | fi | 
|  | 7989 |  | 
|  | 7990 | if test "${cygwin_build}" = 'yes' ; then | 
|  | 7991 | CYGWIN_BUILD_TRUE= | 
|  | 7992 | CYGWIN_BUILD_FALSE='#' | 
|  | 7993 | else | 
|  | 7994 | CYGWIN_BUILD_TRUE='#' | 
|  | 7995 | CYGWIN_BUILD_FALSE= | 
|  | 7996 | fi | 
|  | 7997 |  | 
|  | 7998 | if test "x${CC}" = 'xcl.exe' ; then | 
|  | 7999 | USING_CL_TRUE= | 
|  | 8000 | USING_CL_FALSE='#' | 
|  | 8001 | else | 
|  | 8002 | USING_CL_TRUE='#' | 
|  | 8003 | USING_CL_FALSE= | 
|  | 8004 | fi | 
|  | 8005 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8006 |  | 
|  | 8007 | WinPathScript="${srcdirfull}/winpath.sh" | 
|  | 8008 |  | 
|  | 8009 |  | 
|  | 8010 | # | 
|  | 8011 | # Compiler flags tweaks | 
|  | 8012 | # | 
|  | 8013 | if test "${GCC}" != "yes"; then | 
|  | 8014 | case "${host}" in | 
|  | 8015 | *-*-hpux* ) | 
|  | 8016 | # aCC: HP ANSI C++ B3910B A.03.34 | 
|  | 8017 | CFLAGS="${CFLAGS} -Wp,-H30000" | 
|  | 8018 | if test -n "${CXXFLAGS}"; then | 
|  | 8019 | CXXFLAGS='-AA' | 
|  | 8020 | else | 
|  | 8021 | CXXFLAGS="${CXXFLAGS} -AA" | 
|  | 8022 | fi | 
|  | 8023 | ;; | 
|  | 8024 | *-dec-osf5.* ) | 
|  | 8025 | # Compaq alphaev68-dec-osf5.1 compiler | 
|  | 8026 | if test -n "${CXXFLAGS}"; then | 
|  | 8027 | CXXFLAGS='-std strict_ansi -noimplicit_include' | 
|  | 8028 | else | 
|  | 8029 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" | 
|  | 8030 | fi | 
|  | 8031 | esac | 
|  | 8032 | fi | 
|  | 8033 |  | 
|  | 8034 | # Check for lazy-loading. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8036 | $as_echo_n "checking for linker lazyload option... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8037 | if ${im_cv_ld_lazyload+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8038 | $as_echo_n "(cached) " >&6 | 
|  | 8039 | else | 
|  | 8040 |  | 
|  | 8041 | im_cv_ld_lazyload='none' | 
|  | 8042 | case "${host}" in | 
|  | 8043 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) | 
|  | 8044 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then | 
|  | 8045 | im_cv_ld_lazyload='-Wl,-zlazyload' | 
|  | 8046 | fi | 
|  | 8047 | ;; | 
|  | 8048 | esac | 
|  | 8049 |  | 
|  | 8050 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8052 | $as_echo "$im_cv_ld_lazyload" >&6; } | 
|  | 8053 | if test "${im_cv_ld_lazyload}" != 'none' ; then | 
|  | 8054 | if test -z "${LDFLAGS}" ; then | 
|  | 8055 | LDFLAGS="${im_cv_ld_lazyload}" | 
|  | 8056 | else | 
|  | 8057 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" | 
|  | 8058 | fi | 
|  | 8059 | fi | 
|  | 8060 |  | 
|  | 8061 | case "$host" in | 
|  | 8062 | *darwin* | *-macos10*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8063 | # Check whether --enable-osx-universal-binary was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8064 | if test "${enable_osx_universal_binary+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8065 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" | 
|  | 8066 | else | 
|  | 8067 | build_osxuniversal=no | 
|  | 8068 | fi | 
|  | 8069 |  | 
|  | 8070 |  | 
|  | 8071 | if test "${build_osxuniversal}" != no ; then | 
|  | 8072 | if test "$enable_dependency_tracking" != no ; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 8073 | as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8074 | Please re-run configure with these options: | 
|  | 8075 | --disable-dependency-tracking --enable-osx-universal-binary | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8076 | " "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8077 | fi | 
|  | 8078 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
|  | 8079 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
|  | 8080 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" | 
|  | 8081 | fi | 
|  | 8082 | ;; | 
|  | 8083 | esac | 
|  | 8084 |  | 
|  | 8085 | # Enable support for threads | 
|  | 8086 |  | 
|  | 8087 | # Check whether --with-threads was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8088 | if test "${with_threads+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8089 | withval=$with_threads; with_threads=$withval | 
|  | 8090 | else | 
|  | 8091 | with_threads='yes' | 
|  | 8092 | fi | 
|  | 8093 |  | 
|  | 8094 |  | 
|  | 8095 | have_threads=no | 
|  | 8096 | if test "$with_threads" != 'no'; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8097 |  | 
|  | 8098 |  | 
|  | 8099 |  | 
|  | 8100 | ac_ext=c | 
|  | 8101 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8105 |  | 
|  | 8106 | ax_pthread_ok=no | 
|  | 8107 |  | 
|  | 8108 | # We used to check for pthread.h first, but this fails if pthread.h | 
|  | 8109 | # requires special compiler flags (e.g. on True64 or Sequent). | 
|  | 8110 | # It gets checked for in the link test anyway. | 
|  | 8111 |  | 
|  | 8112 | # First of all, check if the user has set any of the PTHREAD_LIBS, | 
|  | 8113 | # etcetera environment variables, and if threads linking works using | 
|  | 8114 | # them: | 
|  | 8115 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | 
|  | 8116 | save_CFLAGS="$CFLAGS" | 
|  | 8117 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8118 | save_LIBS="$LIBS" | 
|  | 8119 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | 
|  | 8121 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | 
|  | 8122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8123 | /* end confdefs.h.  */ | 
|  | 8124 |  | 
|  | 8125 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8126 | Use char because int might match the return type of a GCC | 
|  | 8127 | builtin and then its argument prototype would still apply.  */ | 
|  | 8128 | #ifdef __cplusplus | 
|  | 8129 | extern "C" | 
|  | 8130 | #endif | 
|  | 8131 | char pthread_join (); | 
|  | 8132 | int | 
|  | 8133 | main () | 
|  | 8134 | { | 
|  | 8135 | return pthread_join (); | 
|  | 8136 | ; | 
|  | 8137 | return 0; | 
|  | 8138 | } | 
|  | 8139 | _ACEOF | 
|  | 8140 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8141 | ax_pthread_ok=yes | 
|  | 8142 | fi | 
|  | 8143 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8144 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8146 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8147 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8148 | PTHREAD_LIBS="" | 
|  | 8149 | PTHREAD_CFLAGS="" | 
|  | 8150 | fi | 
|  | 8151 | LIBS="$save_LIBS" | 
|  | 8152 | CFLAGS="$save_CFLAGS" | 
|  | 8153 | fi | 
|  | 8154 |  | 
|  | 8155 | # We must check for the threads library under a number of different | 
|  | 8156 | # names; the ordering is very important because some systems | 
|  | 8157 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | 
|  | 8158 | # libraries is broken (non-POSIX). | 
|  | 8159 |  | 
|  | 8160 | # Create a list of thread flags to try.  Items starting with a "-" are | 
|  | 8161 | # C compiler flags, and other items are library names, except for "none" | 
|  | 8162 | # which indicates that we try without any flags at all, and "pthread-config" | 
|  | 8163 | # which is a program returning the flags for the Pth emulation library. | 
|  | 8164 |  | 
|  | 8165 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | 
|  | 8166 |  | 
|  | 8167 | # The ordering *is* (sometimes) important.  Some notes on the | 
|  | 8168 | # individual items follow: | 
|  | 8169 |  | 
|  | 8170 | # pthreads: AIX (must check this before -lpthread) | 
|  | 8171 | # none: in case threads are in libc; should be tried before -Kthread and | 
|  | 8172 | #       other compiler flags to prevent continual compiler warnings | 
|  | 8173 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | 
|  | 8174 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | 
|  | 8175 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | 
|  | 8176 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | 
|  | 8177 | # -pthreads: Solaris/gcc | 
|  | 8178 | # -mthreads: Mingw32/gcc, Lynx/gcc | 
|  | 8179 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | 
|  | 8180 | #      doesn't hurt to check since this sometimes defines pthreads too; | 
|  | 8181 | #      also defines -D_REENTRANT) | 
|  | 8182 | #      ... -mt is also the pthreads flag for HP/aCC | 
|  | 8183 | # pthread: Linux, etcetera | 
|  | 8184 | # --thread-safe: KAI C++ | 
|  | 8185 | # pthread-config: use pthread-config program (for GNU Pth library) | 
|  | 8186 |  | 
|  | 8187 | case "${host_cpu}-${host_os}" in | 
|  | 8188 | *solaris*) | 
|  | 8189 |  | 
|  | 8190 | # On Solaris (at least, for some versions), libc contains stubbed | 
|  | 8191 | # (non-functional) versions of the pthreads routines, so link-based | 
|  | 8192 | # tests will erroneously succeed.  (We need to link with -pthreads/-mt/ | 
|  | 8193 | # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather | 
|  | 8194 | # a function called by this macro, so we could check for that, but | 
|  | 8195 | # who knows whether they'll stub that too in a future libc.)  So, | 
|  | 8196 | # we'll just look for -pthreads and -lpthread first: | 
|  | 8197 |  | 
|  | 8198 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | 
|  | 8199 | ;; | 
|  | 8200 |  | 
|  | 8201 | *-darwin*) | 
|  | 8202 | ax_pthread_flags="-pthread $ax_pthread_flags" | 
|  | 8203 | ;; | 
|  | 8204 | esac | 
|  | 8205 |  | 
|  | 8206 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8207 | for flag in $ax_pthread_flags; do | 
|  | 8208 |  | 
|  | 8209 | case $flag in | 
|  | 8210 | none) | 
|  | 8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | 
|  | 8212 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | 
|  | 8213 | ;; | 
|  | 8214 |  | 
|  | 8215 | -*) | 
|  | 8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | 
|  | 8217 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | 
|  | 8218 | PTHREAD_CFLAGS="$flag" | 
|  | 8219 | ;; | 
|  | 8220 |  | 
|  | 8221 | pthread-config) | 
|  | 8222 | # Extract the first word of "pthread-config", so it can be a program name with args. | 
|  | 8223 | set dummy pthread-config; ac_word=$2 | 
|  | 8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8225 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8226 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8227 | $as_echo_n "(cached) " >&6 | 
|  | 8228 | else | 
|  | 8229 | if test -n "$ax_pthread_config"; then | 
|  | 8230 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | 
|  | 8231 | else | 
|  | 8232 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8233 | for as_dir in $PATH | 
|  | 8234 | do | 
|  | 8235 | IFS=$as_save_IFS | 
|  | 8236 | test -z "$as_dir" && as_dir=. | 
|  | 8237 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 8238 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8239 | ac_cv_prog_ax_pthread_config="yes" | 
|  | 8240 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 8241 | break 2 | 
|  | 8242 | fi | 
|  | 8243 | done | 
|  | 8244 | done | 
|  | 8245 | IFS=$as_save_IFS | 
|  | 8246 |  | 
|  | 8247 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | 
|  | 8248 | fi | 
|  | 8249 | fi | 
|  | 8250 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | 
|  | 8251 | if test -n "$ax_pthread_config"; then | 
|  | 8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | 
|  | 8253 | $as_echo "$ax_pthread_config" >&6; } | 
|  | 8254 | else | 
|  | 8255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8256 | $as_echo "no" >&6; } | 
|  | 8257 | fi | 
|  | 8258 |  | 
|  | 8259 |  | 
|  | 8260 | if test x"$ax_pthread_config" = xno; then continue; fi | 
|  | 8261 | PTHREAD_CFLAGS="`pthread-config --cflags`" | 
|  | 8262 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | 
|  | 8263 | ;; | 
|  | 8264 |  | 
|  | 8265 | *) | 
|  | 8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | 
|  | 8267 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | 
|  | 8268 | PTHREAD_LIBS="-l$flag" | 
|  | 8269 | ;; | 
|  | 8270 | esac | 
|  | 8271 |  | 
|  | 8272 | save_LIBS="$LIBS" | 
|  | 8273 | save_CFLAGS="$CFLAGS" | 
|  | 8274 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8275 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8276 |  | 
|  | 8277 | # Check for various functions.  We must include pthread.h, | 
|  | 8278 | # since some functions may be macros.  (On the Sequent, we | 
|  | 8279 | # need a special flag -Kthread to make this header compile.) | 
|  | 8280 | # We check for pthread_join because it is in -lpthread on IRIX | 
|  | 8281 | # while pthread_create is in libc.  We check for pthread_attr_init | 
|  | 8282 | # due to DEC craziness with -lpthreads.  We check for | 
|  | 8283 | # pthread_cleanup_push because it is one of the few pthread | 
|  | 8284 | # functions on Solaris that doesn't have a non-functional libc stub. | 
|  | 8285 | # We try pthread_create on general principles. | 
|  | 8286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8287 | /* end confdefs.h.  */ | 
|  | 8288 | #include <pthread.h> | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 8289 | static void routine(void* a) {a=0;} | 
|  | 8290 | static void* start_routine(void* a) {return a;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8291 | int | 
|  | 8292 | main () | 
|  | 8293 | { | 
|  | 8294 | pthread_t th; pthread_attr_t attr; | 
|  | 8295 | pthread_create(&th,0,start_routine,0); | 
|  | 8296 | pthread_join(th, 0); | 
|  | 8297 | pthread_attr_init(&attr); | 
|  | 8298 | pthread_cleanup_push(routine, 0); | 
|  | 8299 | pthread_cleanup_pop(0); | 
|  | 8300 | ; | 
|  | 8301 | return 0; | 
|  | 8302 | } | 
|  | 8303 | _ACEOF | 
|  | 8304 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8305 | ax_pthread_ok=yes | 
|  | 8306 | fi | 
|  | 8307 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8308 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8309 |  | 
|  | 8310 | LIBS="$save_LIBS" | 
|  | 8311 | CFLAGS="$save_CFLAGS" | 
|  | 8312 |  | 
|  | 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8314 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8315 | if test "x$ax_pthread_ok" = xyes; then | 
|  | 8316 | break; | 
|  | 8317 | fi | 
|  | 8318 |  | 
|  | 8319 | PTHREAD_LIBS="" | 
|  | 8320 | PTHREAD_CFLAGS="" | 
|  | 8321 | done | 
|  | 8322 | fi | 
|  | 8323 |  | 
|  | 8324 | # Various other checks: | 
|  | 8325 | if test "x$ax_pthread_ok" = xyes; then | 
|  | 8326 | save_LIBS="$LIBS" | 
|  | 8327 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8328 | save_CFLAGS="$CFLAGS" | 
|  | 8329 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8330 |  | 
|  | 8331 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | 
|  | 8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | 
|  | 8333 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | 
|  | 8334 | attr_name=unknown | 
|  | 8335 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | 
|  | 8336 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8337 | /* end confdefs.h.  */ | 
|  | 8338 | #include <pthread.h> | 
|  | 8339 | int | 
|  | 8340 | main () | 
|  | 8341 | { | 
|  | 8342 | int attr=$attr; return attr; | 
|  | 8343 | ; | 
|  | 8344 | return 0; | 
|  | 8345 | } | 
|  | 8346 | _ACEOF | 
|  | 8347 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8348 | attr_name=$attr; break | 
|  | 8349 | fi | 
|  | 8350 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8351 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8352 | done | 
|  | 8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | 
|  | 8354 | $as_echo "$attr_name" >&6; } | 
|  | 8355 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | 
|  | 8356 |  | 
|  | 8357 | cat >>confdefs.h <<_ACEOF | 
|  | 8358 | #define PTHREAD_CREATE_JOINABLE $attr_name | 
|  | 8359 | _ACEOF | 
|  | 8360 |  | 
|  | 8361 | fi | 
|  | 8362 |  | 
|  | 8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | 
|  | 8364 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | 
|  | 8365 | flag=no | 
|  | 8366 | case "${host_cpu}-${host_os}" in | 
|  | 8367 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | 
|  | 8368 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | 
|  | 8369 | esac | 
|  | 8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | 
|  | 8371 | $as_echo "${flag}" >&6; } | 
|  | 8372 | if test "x$flag" != xno; then | 
|  | 8373 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | 
|  | 8374 | fi | 
|  | 8375 |  | 
|  | 8376 | LIBS="$save_LIBS" | 
|  | 8377 | CFLAGS="$save_CFLAGS" | 
|  | 8378 |  | 
|  | 8379 | # More AIX lossage: must compile with xlc_r or cc_r | 
|  | 8380 | if test x"$GCC" != xyes; then | 
|  | 8381 | for ac_prog in xlc_r cc_r | 
|  | 8382 | do | 
|  | 8383 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 8384 | set dummy $ac_prog; ac_word=$2 | 
|  | 8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8386 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8387 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8388 | $as_echo_n "(cached) " >&6 | 
|  | 8389 | else | 
|  | 8390 | if test -n "$PTHREAD_CC"; then | 
|  | 8391 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | 
|  | 8392 | else | 
|  | 8393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8394 | for as_dir in $PATH | 
|  | 8395 | do | 
|  | 8396 | IFS=$as_save_IFS | 
|  | 8397 | test -z "$as_dir" && as_dir=. | 
|  | 8398 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 8399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8400 | ac_cv_prog_PTHREAD_CC="$ac_prog" | 
|  | 8401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 8402 | break 2 | 
|  | 8403 | fi | 
|  | 8404 | done | 
|  | 8405 | done | 
|  | 8406 | IFS=$as_save_IFS | 
|  | 8407 |  | 
|  | 8408 | fi | 
|  | 8409 | fi | 
|  | 8410 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | 
|  | 8411 | if test -n "$PTHREAD_CC"; then | 
|  | 8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | 
|  | 8413 | $as_echo "$PTHREAD_CC" >&6; } | 
|  | 8414 | else | 
|  | 8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8416 | $as_echo "no" >&6; } | 
|  | 8417 | fi | 
|  | 8418 |  | 
|  | 8419 |  | 
|  | 8420 | test -n "$PTHREAD_CC" && break | 
|  | 8421 | done | 
|  | 8422 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | 
|  | 8423 |  | 
|  | 8424 | else | 
|  | 8425 | PTHREAD_CC=$CC | 
|  | 8426 | fi | 
|  | 8427 | else | 
|  | 8428 | PTHREAD_CC="$CC" | 
|  | 8429 | fi | 
|  | 8430 |  | 
|  | 8431 |  | 
|  | 8432 |  | 
|  | 8433 |  | 
|  | 8434 |  | 
|  | 8435 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
|  | 8436 | if test x"$ax_pthread_ok" = xyes; then | 
|  | 8437 |  | 
|  | 8438 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | 
|  | 8439 |  | 
|  | 8440 | : | 
|  | 8441 | else | 
|  | 8442 | ax_pthread_ok=no | 
|  | 8443 |  | 
|  | 8444 | fi | 
|  | 8445 | ac_ext=c | 
|  | 8446 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8450 |  | 
|  | 8451 |  | 
| cristy | 7acf8fb | 2010-09-23 19:58:53 +0000 | [diff] [blame] | 8452 | if test "$ax_pthread_ok" = yes; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8453 | have_threads=yes | 
|  | 8454 | DEF_THREAD="$PTHREAD_CFLAGS" | 
|  | 8455 | CFLAGS="$CFLAGS $DEF_THREAD" | 
|  | 8456 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" | 
|  | 8457 | if test "$CC" != "$PTHREAD_CC"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8458 | { $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] | 8459 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} | 
|  | 8460 | CC="$PTHREAD_CC" | 
|  | 8461 | fi | 
| cristy | 55bf91c | 2010-09-24 00:29:41 +0000 | [diff] [blame] | 8462 |  | 
|  | 8463 | $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h | 
|  | 8464 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8465 | fi | 
|  | 8466 | fi | 
|  | 8467 |  | 
|  | 8468 | # Enable support for OpenMP | 
|  | 8469 | if test "$have_threads" != 'yes'; then | 
|  | 8470 | ac_cv_prog_c_openmp=unsupported | 
|  | 8471 | fi | 
|  | 8472 |  | 
|  | 8473 | OPENMP_CFLAGS= | 
|  | 8474 | # Check whether --enable-openmp was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8475 | if test "${enable_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8476 | enableval=$enable_openmp; | 
|  | 8477 | fi | 
|  | 8478 |  | 
|  | 8479 | if test "$enable_openmp" != no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8480 | { $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] | 8481 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8482 | if ${ac_cv_prog_c_openmp+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8483 | $as_echo_n "(cached) " >&6 | 
|  | 8484 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8486 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8487 |  | 
|  | 8488 | #ifndef _OPENMP | 
|  | 8489 | choke me | 
|  | 8490 | #endif | 
|  | 8491 | #include <omp.h> | 
|  | 8492 | int main () { return omp_get_num_threads (); } | 
|  | 8493 |  | 
|  | 8494 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8495 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8496 | ac_cv_prog_c_openmp='none needed' | 
|  | 8497 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8498 | ac_cv_prog_c_openmp='unsupported' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8499 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do | 
|  | 8500 | ac_save_CFLAGS=$CFLAGS | 
|  | 8501 | CFLAGS="$CFLAGS $ac_option" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8503 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8504 |  | 
|  | 8505 | #ifndef _OPENMP | 
|  | 8506 | choke me | 
|  | 8507 | #endif | 
|  | 8508 | #include <omp.h> | 
|  | 8509 | int main () { return omp_get_num_threads (); } | 
|  | 8510 |  | 
|  | 8511 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8512 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8513 | ac_cv_prog_c_openmp=$ac_option | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8514 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8515 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8516 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8517 | CFLAGS=$ac_save_CFLAGS | 
|  | 8518 | if test "$ac_cv_prog_c_openmp" != unsupported; then | 
|  | 8519 | break | 
|  | 8520 | fi | 
|  | 8521 | done | 
|  | 8522 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8523 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8524 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8525 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8526 | { $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] | 8527 | $as_echo "$ac_cv_prog_c_openmp" >&6; } | 
|  | 8528 | case $ac_cv_prog_c_openmp in #( | 
|  | 8529 | "none needed" | unsupported) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8530 | ;; #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8531 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8532 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8533 | esac | 
|  | 8534 | fi | 
|  | 8535 |  | 
|  | 8536 |  | 
|  | 8537 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" | 
|  | 8538 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" | 
|  | 8539 |  | 
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 8540 | if test "$enable_openmp" != no; then | 
|  | 8541 | if test "$ac_cv_prog_c_openmp" != 'unsupported'; then | 
|  | 8542 | MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" | 
|  | 8543 | fi | 
|  | 8544 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8545 |  | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 8546 | # Enable support for OpenCL | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8547 |  | 
|  | 8548 |  | 
|  | 8549 |  | 
|  | 8550 | ac_ext=c | 
|  | 8551 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8555 |  | 
|  | 8556 | ax_pthread_ok=no | 
|  | 8557 |  | 
|  | 8558 | # We used to check for pthread.h first, but this fails if pthread.h | 
|  | 8559 | # requires special compiler flags (e.g. on True64 or Sequent). | 
|  | 8560 | # It gets checked for in the link test anyway. | 
|  | 8561 |  | 
|  | 8562 | # First of all, check if the user has set any of the PTHREAD_LIBS, | 
|  | 8563 | # etcetera environment variables, and if threads linking works using | 
|  | 8564 | # them: | 
|  | 8565 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then | 
|  | 8566 | save_CFLAGS="$CFLAGS" | 
|  | 8567 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8568 | save_LIBS="$LIBS" | 
|  | 8569 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 | 
|  | 8571 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } | 
|  | 8572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8573 | /* end confdefs.h.  */ | 
|  | 8574 |  | 
|  | 8575 | /* Override any GCC internal prototype to avoid an error. | 
|  | 8576 | Use char because int might match the return type of a GCC | 
|  | 8577 | builtin and then its argument prototype would still apply.  */ | 
|  | 8578 | #ifdef __cplusplus | 
|  | 8579 | extern "C" | 
|  | 8580 | #endif | 
|  | 8581 | char pthread_join (); | 
|  | 8582 | int | 
|  | 8583 | main () | 
|  | 8584 | { | 
|  | 8585 | return pthread_join (); | 
|  | 8586 | ; | 
|  | 8587 | return 0; | 
|  | 8588 | } | 
|  | 8589 | _ACEOF | 
|  | 8590 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8591 | ax_pthread_ok=yes | 
|  | 8592 | fi | 
|  | 8593 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8594 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8596 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8597 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8598 | PTHREAD_LIBS="" | 
|  | 8599 | PTHREAD_CFLAGS="" | 
|  | 8600 | fi | 
|  | 8601 | LIBS="$save_LIBS" | 
|  | 8602 | CFLAGS="$save_CFLAGS" | 
|  | 8603 | fi | 
|  | 8604 |  | 
|  | 8605 | # We must check for the threads library under a number of different | 
|  | 8606 | # names; the ordering is very important because some systems | 
|  | 8607 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the | 
|  | 8608 | # libraries is broken (non-POSIX). | 
|  | 8609 |  | 
|  | 8610 | # Create a list of thread flags to try.  Items starting with a "-" are | 
|  | 8611 | # C compiler flags, and other items are library names, except for "none" | 
|  | 8612 | # which indicates that we try without any flags at all, and "pthread-config" | 
|  | 8613 | # which is a program returning the flags for the Pth emulation library. | 
|  | 8614 |  | 
|  | 8615 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" | 
|  | 8616 |  | 
|  | 8617 | # The ordering *is* (sometimes) important.  Some notes on the | 
|  | 8618 | # individual items follow: | 
|  | 8619 |  | 
|  | 8620 | # pthreads: AIX (must check this before -lpthread) | 
|  | 8621 | # none: in case threads are in libc; should be tried before -Kthread and | 
|  | 8622 | #       other compiler flags to prevent continual compiler warnings | 
|  | 8623 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) | 
|  | 8624 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) | 
|  | 8625 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) | 
|  | 8626 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) | 
|  | 8627 | # -pthreads: Solaris/gcc | 
|  | 8628 | # -mthreads: Mingw32/gcc, Lynx/gcc | 
|  | 8629 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it | 
|  | 8630 | #      doesn't hurt to check since this sometimes defines pthreads too; | 
|  | 8631 | #      also defines -D_REENTRANT) | 
|  | 8632 | #      ... -mt is also the pthreads flag for HP/aCC | 
|  | 8633 | # pthread: Linux, etcetera | 
|  | 8634 | # --thread-safe: KAI C++ | 
|  | 8635 | # pthread-config: use pthread-config program (for GNU Pth library) | 
|  | 8636 |  | 
|  | 8637 | case "${host_cpu}-${host_os}" in | 
|  | 8638 | *solaris*) | 
|  | 8639 |  | 
|  | 8640 | # On Solaris (at least, for some versions), libc contains stubbed | 
|  | 8641 | # (non-functional) versions of the pthreads routines, so link-based | 
|  | 8642 | # tests will erroneously succeed.  (We need to link with -pthreads/-mt/ | 
|  | 8643 | # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather | 
|  | 8644 | # a function called by this macro, so we could check for that, but | 
|  | 8645 | # who knows whether they'll stub that too in a future libc.)  So, | 
|  | 8646 | # we'll just look for -pthreads and -lpthread first: | 
|  | 8647 |  | 
|  | 8648 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" | 
|  | 8649 | ;; | 
|  | 8650 |  | 
|  | 8651 | *-darwin*) | 
|  | 8652 | ax_pthread_flags="-pthread $ax_pthread_flags" | 
|  | 8653 | ;; | 
|  | 8654 | esac | 
|  | 8655 |  | 
|  | 8656 | if test x"$ax_pthread_ok" = xno; then | 
|  | 8657 | for flag in $ax_pthread_flags; do | 
|  | 8658 |  | 
|  | 8659 | case $flag in | 
|  | 8660 | none) | 
|  | 8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 | 
|  | 8662 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | 
|  | 8663 | ;; | 
|  | 8664 |  | 
|  | 8665 | -*) | 
|  | 8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 | 
|  | 8667 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | 
|  | 8668 | PTHREAD_CFLAGS="$flag" | 
|  | 8669 | ;; | 
|  | 8670 |  | 
|  | 8671 | pthread-config) | 
|  | 8672 | # Extract the first word of "pthread-config", so it can be a program name with args. | 
|  | 8673 | set dummy pthread-config; ac_word=$2 | 
|  | 8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8675 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8676 | if ${ac_cv_prog_ax_pthread_config+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8677 | $as_echo_n "(cached) " >&6 | 
|  | 8678 | else | 
|  | 8679 | if test -n "$ax_pthread_config"; then | 
|  | 8680 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. | 
|  | 8681 | else | 
|  | 8682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8683 | for as_dir in $PATH | 
|  | 8684 | do | 
|  | 8685 | IFS=$as_save_IFS | 
|  | 8686 | test -z "$as_dir" && as_dir=. | 
|  | 8687 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 8688 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8689 | ac_cv_prog_ax_pthread_config="yes" | 
|  | 8690 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 8691 | break 2 | 
|  | 8692 | fi | 
|  | 8693 | done | 
|  | 8694 | done | 
|  | 8695 | IFS=$as_save_IFS | 
|  | 8696 |  | 
|  | 8697 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" | 
|  | 8698 | fi | 
|  | 8699 | fi | 
|  | 8700 | ax_pthread_config=$ac_cv_prog_ax_pthread_config | 
|  | 8701 | if test -n "$ax_pthread_config"; then | 
|  | 8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 | 
|  | 8703 | $as_echo "$ax_pthread_config" >&6; } | 
|  | 8704 | else | 
|  | 8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8706 | $as_echo "no" >&6; } | 
|  | 8707 | fi | 
|  | 8708 |  | 
|  | 8709 |  | 
|  | 8710 | if test x"$ax_pthread_config" = xno; then continue; fi | 
|  | 8711 | PTHREAD_CFLAGS="`pthread-config --cflags`" | 
|  | 8712 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" | 
|  | 8713 | ;; | 
|  | 8714 |  | 
|  | 8715 | *) | 
|  | 8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 | 
|  | 8717 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | 
|  | 8718 | PTHREAD_LIBS="-l$flag" | 
|  | 8719 | ;; | 
|  | 8720 | esac | 
|  | 8721 |  | 
|  | 8722 | save_LIBS="$LIBS" | 
|  | 8723 | save_CFLAGS="$CFLAGS" | 
|  | 8724 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8725 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8726 |  | 
|  | 8727 | # Check for various functions.  We must include pthread.h, | 
|  | 8728 | # since some functions may be macros.  (On the Sequent, we | 
|  | 8729 | # need a special flag -Kthread to make this header compile.) | 
|  | 8730 | # We check for pthread_join because it is in -lpthread on IRIX | 
|  | 8731 | # while pthread_create is in libc.  We check for pthread_attr_init | 
|  | 8732 | # due to DEC craziness with -lpthreads.  We check for | 
|  | 8733 | # pthread_cleanup_push because it is one of the few pthread | 
|  | 8734 | # functions on Solaris that doesn't have a non-functional libc stub. | 
|  | 8735 | # We try pthread_create on general principles. | 
|  | 8736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8737 | /* end confdefs.h.  */ | 
|  | 8738 | #include <pthread.h> | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 8739 | static void routine(void* a) {a=0;} | 
|  | 8740 | static void* start_routine(void* a) {return a;} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8741 | int | 
|  | 8742 | main () | 
|  | 8743 | { | 
|  | 8744 | pthread_t th; pthread_attr_t attr; | 
|  | 8745 | pthread_create(&th,0,start_routine,0); | 
|  | 8746 | pthread_join(th, 0); | 
|  | 8747 | pthread_attr_init(&attr); | 
|  | 8748 | pthread_cleanup_push(routine, 0); | 
|  | 8749 | pthread_cleanup_pop(0); | 
|  | 8750 | ; | 
|  | 8751 | return 0; | 
|  | 8752 | } | 
|  | 8753 | _ACEOF | 
|  | 8754 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8755 | ax_pthread_ok=yes | 
|  | 8756 | fi | 
|  | 8757 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8758 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8759 |  | 
|  | 8760 | LIBS="$save_LIBS" | 
|  | 8761 | CFLAGS="$save_CFLAGS" | 
|  | 8762 |  | 
|  | 8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 | 
|  | 8764 | $as_echo "$ax_pthread_ok" >&6; } | 
|  | 8765 | if test "x$ax_pthread_ok" = xyes; then | 
|  | 8766 | break; | 
|  | 8767 | fi | 
|  | 8768 |  | 
|  | 8769 | PTHREAD_LIBS="" | 
|  | 8770 | PTHREAD_CFLAGS="" | 
|  | 8771 | done | 
|  | 8772 | fi | 
|  | 8773 |  | 
|  | 8774 | # Various other checks: | 
|  | 8775 | if test "x$ax_pthread_ok" = xyes; then | 
|  | 8776 | save_LIBS="$LIBS" | 
|  | 8777 | LIBS="$PTHREAD_LIBS $LIBS" | 
|  | 8778 | save_CFLAGS="$CFLAGS" | 
|  | 8779 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" | 
|  | 8780 |  | 
|  | 8781 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. | 
|  | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 | 
|  | 8783 | $as_echo_n "checking for joinable pthread attribute... " >&6; } | 
|  | 8784 | attr_name=unknown | 
|  | 8785 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do | 
|  | 8786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8787 | /* end confdefs.h.  */ | 
|  | 8788 | #include <pthread.h> | 
|  | 8789 | int | 
|  | 8790 | main () | 
|  | 8791 | { | 
|  | 8792 | int attr=$attr; return attr; | 
|  | 8793 | ; | 
|  | 8794 | return 0; | 
|  | 8795 | } | 
|  | 8796 | _ACEOF | 
|  | 8797 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 8798 | attr_name=$attr; break | 
|  | 8799 | fi | 
|  | 8800 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 8801 | conftest$ac_exeext conftest.$ac_ext | 
|  | 8802 | done | 
|  | 8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 | 
|  | 8804 | $as_echo "$attr_name" >&6; } | 
|  | 8805 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then | 
|  | 8806 |  | 
|  | 8807 | cat >>confdefs.h <<_ACEOF | 
|  | 8808 | #define PTHREAD_CREATE_JOINABLE $attr_name | 
|  | 8809 | _ACEOF | 
|  | 8810 |  | 
|  | 8811 | fi | 
|  | 8812 |  | 
|  | 8813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 | 
|  | 8814 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | 
|  | 8815 | flag=no | 
|  | 8816 | case "${host_cpu}-${host_os}" in | 
|  | 8817 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; | 
|  | 8818 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; | 
|  | 8819 | esac | 
|  | 8820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 | 
|  | 8821 | $as_echo "${flag}" >&6; } | 
|  | 8822 | if test "x$flag" != xno; then | 
|  | 8823 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" | 
|  | 8824 | fi | 
|  | 8825 |  | 
|  | 8826 | LIBS="$save_LIBS" | 
|  | 8827 | CFLAGS="$save_CFLAGS" | 
|  | 8828 |  | 
|  | 8829 | # More AIX lossage: must compile with xlc_r or cc_r | 
|  | 8830 | if test x"$GCC" != xyes; then | 
|  | 8831 | for ac_prog in xlc_r cc_r | 
|  | 8832 | do | 
|  | 8833 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 8834 | set dummy $ac_prog; ac_word=$2 | 
|  | 8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 8836 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8837 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8838 | $as_echo_n "(cached) " >&6 | 
|  | 8839 | else | 
|  | 8840 | if test -n "$PTHREAD_CC"; then | 
|  | 8841 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. | 
|  | 8842 | else | 
|  | 8843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 8844 | for as_dir in $PATH | 
|  | 8845 | do | 
|  | 8846 | IFS=$as_save_IFS | 
|  | 8847 | test -z "$as_dir" && as_dir=. | 
|  | 8848 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 8849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 8850 | ac_cv_prog_PTHREAD_CC="$ac_prog" | 
|  | 8851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 8852 | break 2 | 
|  | 8853 | fi | 
|  | 8854 | done | 
|  | 8855 | done | 
|  | 8856 | IFS=$as_save_IFS | 
|  | 8857 |  | 
|  | 8858 | fi | 
|  | 8859 | fi | 
|  | 8860 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC | 
|  | 8861 | if test -n "$PTHREAD_CC"; then | 
|  | 8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 | 
|  | 8863 | $as_echo "$PTHREAD_CC" >&6; } | 
|  | 8864 | else | 
|  | 8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 8866 | $as_echo "no" >&6; } | 
|  | 8867 | fi | 
|  | 8868 |  | 
|  | 8869 |  | 
|  | 8870 | test -n "$PTHREAD_CC" && break | 
|  | 8871 | done | 
|  | 8872 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" | 
|  | 8873 |  | 
|  | 8874 | else | 
|  | 8875 | PTHREAD_CC=$CC | 
|  | 8876 | fi | 
|  | 8877 | else | 
|  | 8878 | PTHREAD_CC="$CC" | 
|  | 8879 | fi | 
|  | 8880 |  | 
|  | 8881 |  | 
|  | 8882 |  | 
|  | 8883 |  | 
|  | 8884 |  | 
|  | 8885 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: | 
|  | 8886 | if test x"$ax_pthread_ok" = xyes; then | 
|  | 8887 |  | 
|  | 8888 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h | 
|  | 8889 |  | 
|  | 8890 | : | 
|  | 8891 | else | 
|  | 8892 | ax_pthread_ok=no | 
|  | 8893 |  | 
|  | 8894 | fi | 
|  | 8895 | ac_ext=c | 
|  | 8896 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8897 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8898 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8899 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8900 |  | 
|  | 8901 |  | 
|  | 8902 |  | 
|  | 8903 | # Check whether --enable-opencl was given. | 
|  | 8904 | if test "${enable_opencl+set}" = set; then : | 
|  | 8905 | enableval=$enable_opencl; disable_opencl=$enableval | 
|  | 8906 | else | 
|  | 8907 | disable_opencl='yes' | 
|  | 8908 | fi | 
|  | 8909 |  | 
|  | 8910 |  | 
|  | 8911 | if test "$disable_opencl" = 'yes'; then | 
|  | 8912 | ac_ext=c | 
|  | 8913 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 8914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 8915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 8916 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 8917 |  | 
|  | 8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 | 
|  | 8919 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8920 | if ${ax_cv_c_compiler_ms+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8921 | $as_echo_n "(cached) " >&6 | 
|  | 8922 | else | 
|  | 8923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 8924 | /* end confdefs.h.  */ | 
|  | 8925 |  | 
|  | 8926 | int | 
|  | 8927 | main () | 
|  | 8928 | { | 
|  | 8929 | #ifndef _MSC_VER | 
|  | 8930 | choke me | 
|  | 8931 | #endif | 
|  | 8932 |  | 
|  | 8933 | ; | 
|  | 8934 | return 0; | 
|  | 8935 | } | 
|  | 8936 | _ACEOF | 
|  | 8937 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 8938 | ax_compiler_ms=yes | 
|  | 8939 | else | 
|  | 8940 | ax_compiler_ms=no | 
|  | 8941 | fi | 
|  | 8942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 8943 | ax_cv_c_compiler_ms=$ax_compiler_ms | 
|  | 8944 |  | 
|  | 8945 | fi | 
|  | 8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 | 
|  | 8947 | $as_echo "$ax_cv_c_compiler_ms" >&6; } | 
|  | 8948 | if test X$ax_compiler_ms = Xno; then : | 
|  | 8949 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" | 
|  | 8950 | fi | 
|  | 8951 |  | 
|  | 8952 | ax_save_CPPFLAGS=$CPPFLAGS | 
|  | 8953 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" | 
|  | 8954 | for ac_header in CL/cl.h OpenCL/cl.h | 
|  | 8955 | do : | 
|  | 8956 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 8957 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 8958 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8959 | cat >>confdefs.h <<_ACEOF | 
|  | 8960 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 8961 | _ACEOF | 
|  | 8962 |  | 
|  | 8963 | fi | 
|  | 8964 |  | 
|  | 8965 | done | 
|  | 8966 |  | 
|  | 8967 | CPPFLAGS=$ax_save_CPPFLAGS | 
|  | 8968 |  | 
|  | 8969 | for ac_header in windows.h | 
|  | 8970 | do : | 
|  | 8971 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8972 | if test "x$ac_cv_header_windows_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8973 | cat >>confdefs.h <<_ACEOF | 
|  | 8974 | #define HAVE_WINDOWS_H 1 | 
|  | 8975 | _ACEOF | 
|  | 8976 |  | 
|  | 8977 | fi | 
|  | 8978 |  | 
|  | 8979 | done | 
|  | 8980 |  | 
|  | 8981 |  | 
|  | 8982 |  | 
|  | 8983 |  | 
|  | 8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 | 
|  | 8985 | $as_echo_n "checking for OpenCL library... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8986 | if ${ax_cv_check_cl_libcl+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8987 | $as_echo_n "(cached) " >&6 | 
|  | 8988 | else | 
|  | 8989 | ax_cv_check_cl_libcl=no | 
|  | 8990 | case $host_cpu in | 
|  | 8991 | x86_64) ax_check_cl_libdir=lib64 ;; | 
|  | 8992 | *)      ax_check_cl_libdir=lib ;; | 
|  | 8993 | esac | 
|  | 8994 | ax_save_CPPFLAGS=$CPPFLAGS | 
|  | 8995 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" | 
|  | 8996 | ax_save_LIBS=$LIBS | 
|  | 8997 | LIBS="" | 
|  | 8998 | ax_check_libs="-lOpenCL -lCL -lclparser" | 
|  | 8999 | for ax_lib in $ax_check_libs; do | 
|  | 9000 | if test X$ax_compiler_ms = Xyes; then : | 
|  | 9001 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` | 
|  | 9002 | else | 
|  | 9003 | ax_try_lib=$ax_lib | 
|  | 9004 | fi | 
|  | 9005 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" | 
|  | 9006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9007 | /* end confdefs.h.  */ | 
|  | 9008 |  | 
|  | 9009 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9010 | #   include <windows.h> | 
|  | 9011 | # endif | 
|  | 9012 | # ifdef HAVE_CL_CL_H | 
|  | 9013 | #   include <CL/cl.h> | 
|  | 9014 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9015 | #   include <OpenCL/cl.h> | 
|  | 9016 | # else | 
|  | 9017 | #   error no CL.h | 
|  | 9018 | # endif | 
|  | 9019 | int | 
|  | 9020 | main () | 
|  | 9021 | { | 
|  | 9022 | clCreateContextFromType(0,0,0,0,0) | 
|  | 9023 | ; | 
|  | 9024 | return 0; | 
|  | 9025 | } | 
|  | 9026 | _ACEOF | 
|  | 9027 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9028 | ax_cv_check_cl_libcl=$ax_try_lib; break | 
|  | 9029 | else | 
|  | 9030 | 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" | 
|  | 9031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9032 | /* end confdefs.h.  */ | 
|  | 9033 |  | 
|  | 9034 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9035 | #   include <windows.h> | 
|  | 9036 | # endif | 
|  | 9037 | # ifdef HAVE_CL_CL_H | 
|  | 9038 | #   include <CL/cl.h> | 
|  | 9039 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9040 | #   include <OpenCL/cl.h> | 
|  | 9041 | # else | 
|  | 9042 | #   error no CL.h | 
|  | 9043 | # endif | 
|  | 9044 | int | 
|  | 9045 | main () | 
|  | 9046 | { | 
|  | 9047 | clCreateContextFromType(0,0,0,0,0) | 
|  | 9048 | ; | 
|  | 9049 | return 0; | 
|  | 9050 | } | 
|  | 9051 | _ACEOF | 
|  | 9052 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9053 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break | 
|  | 9054 | else | 
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9055 | ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9057 | /* end confdefs.h.  */ | 
|  | 9058 |  | 
|  | 9059 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9060 | #   include <windows.h> | 
|  | 9061 | # endif | 
|  | 9062 | # ifdef HAVE_CL_CL_H | 
|  | 9063 | #   include <CL/cl.h> | 
|  | 9064 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9065 | #   include <OpenCL/cl.h> | 
|  | 9066 | # else | 
|  | 9067 | #   error no CL.h | 
|  | 9068 | # endif | 
|  | 9069 | int | 
|  | 9070 | main () | 
|  | 9071 | { | 
|  | 9072 | clCreateContextFromType(0,0,0,0,0) | 
|  | 9073 | ; | 
|  | 9074 | return 0; | 
|  | 9075 | } | 
|  | 9076 | _ACEOF | 
|  | 9077 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9078 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break | 
|  | 9079 | fi | 
|  | 9080 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9081 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9082 | fi | 
|  | 9083 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9084 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9085 | fi | 
|  | 9086 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9087 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9088 | done | 
|  | 9089 |  | 
|  | 9090 | if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then : | 
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 9091 | LIBS='-Wl,-framework,OpenCL' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9093 | /* end confdefs.h.  */ | 
|  | 9094 |  | 
|  | 9095 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) | 
|  | 9096 | #   include <windows.h> | 
|  | 9097 | # endif | 
|  | 9098 | # ifdef HAVE_CL_CL_H | 
|  | 9099 | #   include <CL/cl.h> | 
|  | 9100 | # elif defined(HAVE_OPENCL_CL_H) | 
|  | 9101 | #   include <OpenCL/cl.h> | 
|  | 9102 | # else | 
|  | 9103 | #   error no CL.h | 
|  | 9104 | # endif | 
|  | 9105 | int | 
|  | 9106 | main () | 
|  | 9107 | { | 
|  | 9108 | clCreateContextFromType(0,0,0,0,0) | 
|  | 9109 | ; | 
|  | 9110 | return 0; | 
|  | 9111 | } | 
|  | 9112 | _ACEOF | 
|  | 9113 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 9114 | ax_cv_check_cl_libcl=$LIBS | 
|  | 9115 | fi | 
|  | 9116 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9117 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9118 | fi | 
|  | 9119 |  | 
|  | 9120 | LIBS=$ax_save_LIBS | 
|  | 9121 | CPPFLAGS=$ax_save_CPPFLAGS | 
|  | 9122 | fi | 
|  | 9123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 | 
|  | 9124 | $as_echo "$ax_cv_check_cl_libcl" >&6; } | 
|  | 9125 |  | 
|  | 9126 | if test "X$ax_cv_check_cl_libcl" = Xno; then : | 
|  | 9127 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" | 
|  | 9128 | else | 
|  | 9129 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; | 
|  | 9130 | $as_echo "#define _OPENCL 1" >>confdefs.h | 
|  | 9131 |  | 
|  | 9132 | fi | 
|  | 9133 | ac_ext=c | 
|  | 9134 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 9135 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 9136 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 9137 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 9138 |  | 
|  | 9139 | fi | 
|  | 9140 |  | 
|  | 9141 |  | 
|  | 9142 |  | 
|  | 9143 |  | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 9144 | CFLAGS="$CL_CFLAGS $CFLAGS" | 
|  | 9145 | LIBS="$CL_LIBS $LIBS" | 
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9146 |  | 
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9147 | if test "$enable_opencl" != no; then | 
|  | 9148 | if test "_OPENCL" = '1'; then | 
|  | 9149 | MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" | 
|  | 9150 | fi | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 9151 | fi | 
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 9152 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9153 | ######## | 
|  | 9154 | # | 
|  | 9155 | # Check for large file support | 
|  | 9156 | # | 
|  | 9157 | ######## | 
|  | 9158 | # Check whether --enable-largefile was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9159 | if test "${enable_largefile+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9160 | enableval=$enable_largefile; | 
|  | 9161 | fi | 
|  | 9162 |  | 
|  | 9163 | if test "$enable_largefile" != no; then | 
|  | 9164 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9165 | { $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] | 9166 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9167 | if ${ac_cv_sys_largefile_CC+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9168 | $as_echo_n "(cached) " >&6 | 
|  | 9169 | else | 
|  | 9170 | ac_cv_sys_largefile_CC=no | 
|  | 9171 | if test "$GCC" != yes; then | 
|  | 9172 | ac_save_CC=$CC | 
|  | 9173 | while :; do | 
|  | 9174 | # IRIX 6.2 and later do not support large files by default, | 
|  | 9175 | # so use the C compiler's -n32 option if that helps. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9177 | /* end confdefs.h.  */ | 
|  | 9178 | #include <sys/types.h> | 
|  | 9179 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9180 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9181 | since some C++ compilers masquerading as C compilers | 
|  | 9182 | incorrectly reject 9223372036854775807.  */ | 
|  | 9183 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9184 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9185 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9186 | ? 1 : -1]; | 
|  | 9187 | int | 
|  | 9188 | main () | 
|  | 9189 | { | 
|  | 9190 |  | 
|  | 9191 | ; | 
|  | 9192 | return 0; | 
|  | 9193 | } | 
|  | 9194 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9195 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9196 | break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9197 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9198 | rm -f core conftest.err conftest.$ac_objext | 
|  | 9199 | CC="$CC -n32" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9200 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9201 | ac_cv_sys_largefile_CC=' -n32'; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9202 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9203 | rm -f core conftest.err conftest.$ac_objext | 
|  | 9204 | break | 
|  | 9205 | done | 
|  | 9206 | CC=$ac_save_CC | 
|  | 9207 | rm -f conftest.$ac_ext | 
|  | 9208 | fi | 
|  | 9209 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9210 | { $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] | 9211 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | 
|  | 9212 | if test "$ac_cv_sys_largefile_CC" != no; then | 
|  | 9213 | CC=$CC$ac_cv_sys_largefile_CC | 
|  | 9214 | fi | 
|  | 9215 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9216 | { $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] | 9217 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9218 | if ${ac_cv_sys_file_offset_bits+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9219 | $as_echo_n "(cached) " >&6 | 
|  | 9220 | else | 
|  | 9221 | while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9223 | /* end confdefs.h.  */ | 
|  | 9224 | #include <sys/types.h> | 
|  | 9225 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9226 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9227 | since some C++ compilers masquerading as C compilers | 
|  | 9228 | incorrectly reject 9223372036854775807.  */ | 
|  | 9229 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9230 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9231 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9232 | ? 1 : -1]; | 
|  | 9233 | int | 
|  | 9234 | main () | 
|  | 9235 | { | 
|  | 9236 |  | 
|  | 9237 | ; | 
|  | 9238 | return 0; | 
|  | 9239 | } | 
|  | 9240 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9241 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9242 | ac_cv_sys_file_offset_bits=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9243 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9246 | /* end confdefs.h.  */ | 
|  | 9247 | #define _FILE_OFFSET_BITS 64 | 
|  | 9248 | #include <sys/types.h> | 
|  | 9249 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9250 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9251 | since some C++ compilers masquerading as C compilers | 
|  | 9252 | incorrectly reject 9223372036854775807.  */ | 
|  | 9253 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9254 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9255 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9256 | ? 1 : -1]; | 
|  | 9257 | int | 
|  | 9258 | main () | 
|  | 9259 | { | 
|  | 9260 |  | 
|  | 9261 | ; | 
|  | 9262 | return 0; | 
|  | 9263 | } | 
|  | 9264 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9265 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9266 | ac_cv_sys_file_offset_bits=64; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9267 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9269 | ac_cv_sys_file_offset_bits=unknown | 
|  | 9270 | break | 
|  | 9271 | done | 
|  | 9272 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9273 | { $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] | 9274 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | 
|  | 9275 | case $ac_cv_sys_file_offset_bits in #( | 
|  | 9276 | no | unknown) ;; | 
|  | 9277 | *) | 
|  | 9278 | cat >>confdefs.h <<_ACEOF | 
|  | 9279 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 
|  | 9280 | _ACEOF | 
|  | 9281 | ;; | 
|  | 9282 | esac | 
|  | 9283 | rm -rf conftest* | 
|  | 9284 | if test $ac_cv_sys_file_offset_bits = unknown; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9285 | { $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] | 9286 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9287 | if ${ac_cv_sys_large_files+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9288 | $as_echo_n "(cached) " >&6 | 
|  | 9289 | else | 
|  | 9290 | while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9292 | /* end confdefs.h.  */ | 
|  | 9293 | #include <sys/types.h> | 
|  | 9294 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9295 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9296 | since some C++ compilers masquerading as C compilers | 
|  | 9297 | incorrectly reject 9223372036854775807.  */ | 
|  | 9298 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9299 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9300 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9301 | ? 1 : -1]; | 
|  | 9302 | int | 
|  | 9303 | main () | 
|  | 9304 | { | 
|  | 9305 |  | 
|  | 9306 | ; | 
|  | 9307 | return 0; | 
|  | 9308 | } | 
|  | 9309 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9310 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9311 | ac_cv_sys_large_files=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9312 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9315 | /* end confdefs.h.  */ | 
|  | 9316 | #define _LARGE_FILES 1 | 
|  | 9317 | #include <sys/types.h> | 
|  | 9318 | /* Check that off_t can represent 2**63 - 1 correctly. | 
|  | 9319 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | 
|  | 9320 | since some C++ compilers masquerading as C compilers | 
|  | 9321 | incorrectly reject 9223372036854775807.  */ | 
|  | 9322 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | 
|  | 9323 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | 
|  | 9324 | && LARGE_OFF_T % 2147483647 == 1) | 
|  | 9325 | ? 1 : -1]; | 
|  | 9326 | int | 
|  | 9327 | main () | 
|  | 9328 | { | 
|  | 9329 |  | 
|  | 9330 | ; | 
|  | 9331 | return 0; | 
|  | 9332 | } | 
|  | 9333 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9334 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9335 | ac_cv_sys_large_files=1; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9336 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9337 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 9338 | ac_cv_sys_large_files=unknown | 
|  | 9339 | break | 
|  | 9340 | done | 
|  | 9341 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9342 | { $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] | 9343 | $as_echo "$ac_cv_sys_large_files" >&6; } | 
|  | 9344 | case $ac_cv_sys_large_files in #( | 
|  | 9345 | no | unknown) ;; | 
|  | 9346 | *) | 
|  | 9347 | cat >>confdefs.h <<_ACEOF | 
|  | 9348 | #define _LARGE_FILES $ac_cv_sys_large_files | 
|  | 9349 | _ACEOF | 
|  | 9350 | ;; | 
|  | 9351 | esac | 
|  | 9352 | rm -rf conftest* | 
|  | 9353 | fi | 
|  | 9354 | fi | 
|  | 9355 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9356 | { $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] | 9357 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9358 | if ${ac_cv_sys_largefile_source+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9359 | $as_echo_n "(cached) " >&6 | 
|  | 9360 | else | 
|  | 9361 | while :; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9363 | /* end confdefs.h.  */ | 
|  | 9364 | #include <sys/types.h> /* for off_t */ | 
|  | 9365 | #include <stdio.h> | 
|  | 9366 | int | 
|  | 9367 | main () | 
|  | 9368 | { | 
|  | 9369 | int (*fp) (FILE *, off_t, int) = fseeko; | 
|  | 9370 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 
|  | 9371 | ; | 
|  | 9372 | return 0; | 
|  | 9373 | } | 
|  | 9374 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9375 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9376 | ac_cv_sys_largefile_source=no; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9377 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9378 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9379 | conftest$ac_exeext conftest.$ac_ext | 
|  | 9380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9381 | /* end confdefs.h.  */ | 
|  | 9382 | #define _LARGEFILE_SOURCE 1 | 
|  | 9383 | #include <sys/types.h> /* for off_t */ | 
|  | 9384 | #include <stdio.h> | 
|  | 9385 | int | 
|  | 9386 | main () | 
|  | 9387 | { | 
|  | 9388 | int (*fp) (FILE *, off_t, int) = fseeko; | 
|  | 9389 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | 
|  | 9390 | ; | 
|  | 9391 | return 0; | 
|  | 9392 | } | 
|  | 9393 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9394 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9395 | ac_cv_sys_largefile_source=1; break | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9396 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9397 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 9398 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9399 | ac_cv_sys_largefile_source=unknown | 
|  | 9400 | break | 
|  | 9401 | done | 
|  | 9402 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9403 | { $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] | 9404 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | 
|  | 9405 | case $ac_cv_sys_largefile_source in #( | 
|  | 9406 | no | unknown) ;; | 
|  | 9407 | *) | 
|  | 9408 | cat >>confdefs.h <<_ACEOF | 
|  | 9409 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 
|  | 9410 | _ACEOF | 
|  | 9411 | ;; | 
|  | 9412 | esac | 
|  | 9413 | rm -rf conftest* | 
|  | 9414 |  | 
|  | 9415 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 
|  | 9416 | # in glibc 2.1.3, but that breaks too many other things. | 
|  | 9417 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 
|  | 9418 | if test $ac_cv_sys_largefile_source != unknown; then | 
|  | 9419 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9420 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9421 |  | 
|  | 9422 | fi | 
|  | 9423 |  | 
|  | 9424 | LFS_CPPFLAGS='' | 
|  | 9425 | if test "$enable_largefile" != no; then | 
|  | 9426 | if test "$ac_cv_sys_file_offset_bits" != 'no'; then | 
|  | 9427 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" | 
|  | 9428 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9429 | { $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] | 9430 | $as_echo_n "checking for native large file support... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9431 | if test "$cross_compiling" = yes; then : | 
|  | 9432 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9433 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 9434 | as_fn_error $? "cannot run test program while cross compiling | 
|  | 9435 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9436 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 9438 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9439 | #include <unistd.h> | 
|  | 9440 | main () { | 
|  | 9441 | exit(!(sizeof(off_t) == 8)); | 
|  | 9442 | } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9443 | int | 
|  | 9444 | main () | 
|  | 9445 | { | 
|  | 9446 |  | 
|  | 9447 | ; | 
|  | 9448 | return 0; | 
|  | 9449 | } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9450 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9451 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 9452 | 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] | 9453 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9455 | $as_echo "yes" >&6; } | 
|  | 9456 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9458 | $as_echo "no" >&6; } | 
|  | 9459 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9460 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 9461 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9462 | fi | 
|  | 9463 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9464 | fi | 
|  | 9465 | if test "$ac_cv_sys_large_files" != 'no'; then | 
|  | 9466 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" | 
|  | 9467 | fi | 
|  | 9468 | if test "$ac_cv_sys_largefile_source" != 'no'; then | 
|  | 9469 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" | 
|  | 9470 | fi | 
|  | 9471 | fi | 
|  | 9472 |  | 
|  | 9473 |  | 
|  | 9474 | # | 
|  | 9475 | # Configure libtool & libltdl | 
|  | 9476 | # | 
|  | 9477 | # Configure libtool | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9478 | enable_dlopen=yes | 
|  | 9479 |  | 
|  | 9480 |  | 
|  | 9481 |  | 
|  | 9482 | case `pwd` in | 
|  | 9483 | *\ * | *\	*) | 
|  | 9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | 
|  | 9485 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | 
|  | 9486 | esac | 
|  | 9487 |  | 
|  | 9488 |  | 
|  | 9489 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9490 | macro_version='2.4' | 
|  | 9491 | macro_revision='1.3293' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9492 |  | 
|  | 9493 |  | 
|  | 9494 |  | 
|  | 9495 |  | 
|  | 9496 |  | 
|  | 9497 |  | 
|  | 9498 |  | 
|  | 9499 |  | 
|  | 9500 |  | 
|  | 9501 |  | 
|  | 9502 |  | 
|  | 9503 |  | 
|  | 9504 |  | 
|  | 9505 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 9506 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9507 | # Backslashify metacharacters that are still active within | 
|  | 9508 | # double-quoted strings. | 
|  | 9509 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | 
|  | 9510 |  | 
|  | 9511 | # Same as above, but do not quote variable references. | 
|  | 9512 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | 
|  | 9513 |  | 
|  | 9514 | # Sed substitution to delay expansion of an escaped shell variable in a | 
|  | 9515 | # double_quote_subst'ed string. | 
|  | 9516 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | 
|  | 9517 |  | 
|  | 9518 | # Sed substitution to delay expansion of an escaped single quote. | 
|  | 9519 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | 
|  | 9520 |  | 
|  | 9521 | # Sed substitution to avoid accidental globbing in evaled expressions | 
|  | 9522 | no_glob_subst='s/\*/\\\*/g' | 
|  | 9523 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | 
|  | 9525 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9526 | if ${lt_cv_path_NM+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9527 | $as_echo_n "(cached) " >&6 | 
|  | 9528 | else | 
|  | 9529 | if test -n "$NM"; then | 
|  | 9530 | # Let the user override the test. | 
|  | 9531 | lt_cv_path_NM="$NM" | 
|  | 9532 | else | 
|  | 9533 | lt_nm_to_check="${ac_tool_prefix}nm" | 
|  | 9534 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | 
|  | 9535 | lt_nm_to_check="$lt_nm_to_check nm" | 
|  | 9536 | fi | 
|  | 9537 | for lt_tmp_nm in $lt_nm_to_check; do | 
|  | 9538 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 9539 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | 
|  | 9540 | IFS="$lt_save_ifs" | 
|  | 9541 | test -z "$ac_dir" && ac_dir=. | 
|  | 9542 | tmp_nm="$ac_dir/$lt_tmp_nm" | 
|  | 9543 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 
|  | 9544 | # Check to see if the nm accepts a BSD-compat flag. | 
|  | 9545 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 
|  | 9546 | #   nm: unknown option "B" ignored | 
|  | 9547 | # Tru64's nm complains that /dev/null is an invalid object file | 
|  | 9548 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 
|  | 9549 | */dev/null* | *'Invalid file or object type'*) | 
|  | 9550 | lt_cv_path_NM="$tmp_nm -B" | 
|  | 9551 | break | 
|  | 9552 | ;; | 
|  | 9553 | *) | 
|  | 9554 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 
|  | 9555 | */dev/null*) | 
|  | 9556 | lt_cv_path_NM="$tmp_nm -p" | 
|  | 9557 | break | 
|  | 9558 | ;; | 
|  | 9559 | *) | 
|  | 9560 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 
|  | 9561 | continue # so that we can try to find one that supports BSD flags | 
|  | 9562 | ;; | 
|  | 9563 | esac | 
|  | 9564 | ;; | 
|  | 9565 | esac | 
|  | 9566 | fi | 
|  | 9567 | done | 
|  | 9568 | IFS="$lt_save_ifs" | 
|  | 9569 | done | 
|  | 9570 | : ${lt_cv_path_NM=no} | 
|  | 9571 | fi | 
|  | 9572 | fi | 
|  | 9573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | 
|  | 9574 | $as_echo "$lt_cv_path_NM" >&6; } | 
|  | 9575 | if test "$lt_cv_path_NM" != "no"; then | 
|  | 9576 | NM="$lt_cv_path_NM" | 
|  | 9577 | else | 
|  | 9578 | # Didn't find any BSD compatible name lister, look for dumpbin. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9579 | if test -n "$DUMPBIN"; then : | 
|  | 9580 | # Let the user override the test. | 
|  | 9581 | else | 
|  | 9582 | if test -n "$ac_tool_prefix"; then | 
|  | 9583 | for ac_prog in dumpbin "link -dump" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9584 | do | 
|  | 9585 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 9586 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9588 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9589 | if ${ac_cv_prog_DUMPBIN+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9590 | $as_echo_n "(cached) " >&6 | 
|  | 9591 | else | 
|  | 9592 | if test -n "$DUMPBIN"; then | 
|  | 9593 | ac_cv_prog_DUMPBIN="$DUMPBIN" # 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=. | 
|  | 9600 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 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_DUMPBIN="$ac_tool_prefix$ac_prog" | 
|  | 9603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9604 | break 2 | 
|  | 9605 | fi | 
|  | 9606 | done | 
|  | 9607 | done | 
|  | 9608 | IFS=$as_save_IFS | 
|  | 9609 |  | 
|  | 9610 | fi | 
|  | 9611 | fi | 
|  | 9612 | DUMPBIN=$ac_cv_prog_DUMPBIN | 
|  | 9613 | if test -n "$DUMPBIN"; then | 
|  | 9614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | 
|  | 9615 | $as_echo "$DUMPBIN" >&6; } | 
|  | 9616 | else | 
|  | 9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9618 | $as_echo "no" >&6; } | 
|  | 9619 | fi | 
|  | 9620 |  | 
|  | 9621 |  | 
|  | 9622 | test -n "$DUMPBIN" && break | 
|  | 9623 | done | 
|  | 9624 | fi | 
|  | 9625 | if test -z "$DUMPBIN"; then | 
|  | 9626 | ac_ct_DUMPBIN=$DUMPBIN | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9627 | for ac_prog in dumpbin "link -dump" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9628 | do | 
|  | 9629 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 9630 | set dummy $ac_prog; ac_word=$2 | 
|  | 9631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 9632 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9633 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9634 | $as_echo_n "(cached) " >&6 | 
|  | 9635 | else | 
|  | 9636 | if test -n "$ac_ct_DUMPBIN"; then | 
|  | 9637 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | 
|  | 9638 | else | 
|  | 9639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 9640 | for as_dir in $PATH | 
|  | 9641 | do | 
|  | 9642 | IFS=$as_save_IFS | 
|  | 9643 | test -z "$as_dir" && as_dir=. | 
|  | 9644 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 9645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 9646 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | 
|  | 9647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 9648 | break 2 | 
|  | 9649 | fi | 
|  | 9650 | done | 
|  | 9651 | done | 
|  | 9652 | IFS=$as_save_IFS | 
|  | 9653 |  | 
|  | 9654 | fi | 
|  | 9655 | fi | 
|  | 9656 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | 
|  | 9657 | if test -n "$ac_ct_DUMPBIN"; then | 
|  | 9658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | 
|  | 9659 | $as_echo "$ac_ct_DUMPBIN" >&6; } | 
|  | 9660 | else | 
|  | 9661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 9662 | $as_echo "no" >&6; } | 
|  | 9663 | fi | 
|  | 9664 |  | 
|  | 9665 |  | 
|  | 9666 | test -n "$ac_ct_DUMPBIN" && break | 
|  | 9667 | done | 
|  | 9668 |  | 
|  | 9669 | if test "x$ac_ct_DUMPBIN" = x; then | 
|  | 9670 | DUMPBIN=":" | 
|  | 9671 | else | 
|  | 9672 | case $cross_compiling:$ac_tool_warned in | 
|  | 9673 | yes:) | 
|  | 9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 9675 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 9676 | ac_tool_warned=yes ;; | 
|  | 9677 | esac | 
|  | 9678 | DUMPBIN=$ac_ct_DUMPBIN | 
|  | 9679 | fi | 
|  | 9680 | fi | 
|  | 9681 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9682 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | 
|  | 9683 | *COFF*) | 
|  | 9684 | DUMPBIN="$DUMPBIN -symbols" | 
|  | 9685 | ;; | 
|  | 9686 | *) | 
|  | 9687 | DUMPBIN=: | 
|  | 9688 | ;; | 
|  | 9689 | esac | 
|  | 9690 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9691 |  | 
|  | 9692 | if test "$DUMPBIN" != ":"; then | 
|  | 9693 | NM="$DUMPBIN" | 
|  | 9694 | fi | 
|  | 9695 | fi | 
|  | 9696 | test -z "$NM" && NM=nm | 
|  | 9697 |  | 
|  | 9698 |  | 
|  | 9699 |  | 
|  | 9700 |  | 
|  | 9701 |  | 
|  | 9702 |  | 
|  | 9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | 
|  | 9704 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9705 | if ${lt_cv_nm_interface+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9706 | $as_echo_n "(cached) " >&6 | 
|  | 9707 | else | 
|  | 9708 | lt_cv_nm_interface="BSD nm" | 
|  | 9709 | echo "int some_variable = 0;" > conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9710 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9711 | (eval "$ac_compile" 2>conftest.err) | 
|  | 9712 | cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9713 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9714 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | 
|  | 9715 | cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9716 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9717 | cat conftest.out >&5 | 
|  | 9718 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | 
|  | 9719 | lt_cv_nm_interface="MS dumpbin" | 
|  | 9720 | fi | 
|  | 9721 | rm -f conftest* | 
|  | 9722 | fi | 
|  | 9723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | 
|  | 9724 | $as_echo "$lt_cv_nm_interface" >&6; } | 
|  | 9725 |  | 
|  | 9726 | # find the maximum length of command line arguments | 
|  | 9727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | 
|  | 9728 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9729 | if ${lt_cv_sys_max_cmd_len+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9730 | $as_echo_n "(cached) " >&6 | 
|  | 9731 | else | 
|  | 9732 | i=0 | 
|  | 9733 | teststring="ABCD" | 
|  | 9734 |  | 
|  | 9735 | case $build_os in | 
|  | 9736 | msdosdjgpp*) | 
|  | 9737 | # On DJGPP, this test can blow up pretty badly due to problems in libc | 
|  | 9738 | # (any single argument exceeding 2000 bytes causes a buffer overrun | 
|  | 9739 | # during glob expansion).  Even if it were fixed, the result of this | 
|  | 9740 | # check would be larger than it should be. | 
|  | 9741 | lt_cv_sys_max_cmd_len=12288;    # 12K is about right | 
|  | 9742 | ;; | 
|  | 9743 |  | 
|  | 9744 | gnu*) | 
|  | 9745 | # Under GNU Hurd, this test is not required because there is | 
|  | 9746 | # no limit to the length of command line arguments. | 
|  | 9747 | # Libtool will interpret -1 as no limit whatsoever | 
|  | 9748 | lt_cv_sys_max_cmd_len=-1; | 
|  | 9749 | ;; | 
|  | 9750 |  | 
|  | 9751 | cygwin* | mingw* | cegcc*) | 
|  | 9752 | # On Win9x/ME, this test blows up -- it succeeds, but takes | 
|  | 9753 | # about 5 minutes as the teststring grows exponentially. | 
|  | 9754 | # Worse, since 9x/ME are not pre-emptively multitasking, | 
|  | 9755 | # you end up with a "frozen" computer, even though with patience | 
|  | 9756 | # the test eventually succeeds (with a max line length of 256k). | 
|  | 9757 | # Instead, let's just punt: use the minimum linelength reported by | 
|  | 9758 | # all of the supported platforms: 8192 (on NT/2K/XP). | 
|  | 9759 | lt_cv_sys_max_cmd_len=8192; | 
|  | 9760 | ;; | 
|  | 9761 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9762 | mint*) | 
|  | 9763 | # On MiNT this can take a long time and run out of memory. | 
|  | 9764 | lt_cv_sys_max_cmd_len=8192; | 
|  | 9765 | ;; | 
|  | 9766 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9767 | amigaos*) | 
|  | 9768 | # On AmigaOS with pdksh, this test takes hours, literally. | 
|  | 9769 | # So we just punt and use a minimum line length of 8192. | 
|  | 9770 | lt_cv_sys_max_cmd_len=8192; | 
|  | 9771 | ;; | 
|  | 9772 |  | 
|  | 9773 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | 
|  | 9774 | # This has been around since 386BSD, at least.  Likely further. | 
|  | 9775 | if test -x /sbin/sysctl; then | 
|  | 9776 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | 
|  | 9777 | elif test -x /usr/sbin/sysctl; then | 
|  | 9778 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | 
|  | 9779 | else | 
|  | 9780 | lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs | 
|  | 9781 | fi | 
|  | 9782 | # And add a safety zone | 
|  | 9783 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
|  | 9784 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
|  | 9785 | ;; | 
|  | 9786 |  | 
|  | 9787 | interix*) | 
|  | 9788 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | 
|  | 9789 | lt_cv_sys_max_cmd_len=196608 | 
|  | 9790 | ;; | 
|  | 9791 |  | 
|  | 9792 | osf*) | 
|  | 9793 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 
|  | 9794 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 
|  | 9795 | # nice to cause kernel panics so lets avoid the loop below. | 
|  | 9796 | # First set a reasonable default. | 
|  | 9797 | lt_cv_sys_max_cmd_len=16384 | 
|  | 9798 | # | 
|  | 9799 | if test -x /sbin/sysconfig; then | 
|  | 9800 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | 
|  | 9801 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | 
|  | 9802 | esac | 
|  | 9803 | fi | 
|  | 9804 | ;; | 
|  | 9805 | sco3.2v5*) | 
|  | 9806 | lt_cv_sys_max_cmd_len=102400 | 
|  | 9807 | ;; | 
|  | 9808 | sysv5* | sco5v6* | sysv4.2uw2*) | 
|  | 9809 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | 
|  | 9810 | if test -n "$kargmax"; then | 
|  | 9811 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'` | 
|  | 9812 | else | 
|  | 9813 | lt_cv_sys_max_cmd_len=32768 | 
|  | 9814 | fi | 
|  | 9815 | ;; | 
|  | 9816 | *) | 
|  | 9817 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | 
|  | 9818 | if test -n "$lt_cv_sys_max_cmd_len"; then | 
|  | 9819 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 
|  | 9820 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 
|  | 9821 | else | 
|  | 9822 | # Make teststring a little bigger before we do anything with it. | 
|  | 9823 | # a 1K string should be a reasonable start. | 
|  | 9824 | for i in 1 2 3 4 5 6 7 8 ; do | 
|  | 9825 | teststring=$teststring$teststring | 
|  | 9826 | done | 
|  | 9827 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | 
|  | 9828 | # If test is not a shell built-in, we'll probably end up computing a | 
|  | 9829 | # maximum length that is only half of the actual maximum length, but | 
|  | 9830 | # we can't tell. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 9831 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | 
|  | 9832 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9833 | test $i != 17 # 1/2 MB should be enough | 
|  | 9834 | do | 
|  | 9835 | i=`expr $i + 1` | 
|  | 9836 | teststring=$teststring$teststring | 
|  | 9837 | done | 
|  | 9838 | # Only check the string length outside the loop. | 
|  | 9839 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | 
|  | 9840 | teststring= | 
|  | 9841 | # Add a significant safety factor because C++ compilers can tack on | 
|  | 9842 | # massive amounts of additional arguments before passing them to the | 
|  | 9843 | # linker.  It appears as though 1/2 is a usable value. | 
|  | 9844 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | 
|  | 9845 | fi | 
|  | 9846 | ;; | 
|  | 9847 | esac | 
|  | 9848 |  | 
|  | 9849 | fi | 
|  | 9850 |  | 
|  | 9851 | if test -n $lt_cv_sys_max_cmd_len ; then | 
|  | 9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | 
|  | 9853 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | 
|  | 9854 | else | 
|  | 9855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | 
|  | 9856 | $as_echo "none" >&6; } | 
|  | 9857 | fi | 
|  | 9858 | max_cmd_len=$lt_cv_sys_max_cmd_len | 
|  | 9859 |  | 
|  | 9860 |  | 
|  | 9861 |  | 
|  | 9862 |  | 
|  | 9863 |  | 
|  | 9864 |  | 
|  | 9865 | : ${CP="cp -f"} | 
|  | 9866 | : ${MV="mv -f"} | 
|  | 9867 | : ${RM="rm -f"} | 
|  | 9868 |  | 
|  | 9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | 
|  | 9870 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | 
|  | 9871 | # Try some XSI features | 
|  | 9872 | xsi_shell=no | 
|  | 9873 | ( _lt_dummy="a/b/c" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9874 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | 
|  | 9875 | = c,a/b,b/c, \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9876 | && eval 'test $(( 1 + 1 )) -eq 2 \ | 
|  | 9877 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | 
|  | 9878 | && xsi_shell=yes | 
|  | 9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | 
|  | 9880 | $as_echo "$xsi_shell" >&6; } | 
|  | 9881 |  | 
|  | 9882 |  | 
|  | 9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | 
|  | 9884 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | 
|  | 9885 | lt_shell_append=no | 
|  | 9886 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | 
|  | 9887 | >/dev/null 2>&1 \ | 
|  | 9888 | && lt_shell_append=yes | 
|  | 9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | 
|  | 9890 | $as_echo "$lt_shell_append" >&6; } | 
|  | 9891 |  | 
|  | 9892 |  | 
|  | 9893 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | 
|  | 9894 | lt_unset=unset | 
|  | 9895 | else | 
|  | 9896 | lt_unset=false | 
|  | 9897 | fi | 
|  | 9898 |  | 
|  | 9899 |  | 
|  | 9900 |  | 
|  | 9901 |  | 
|  | 9902 |  | 
|  | 9903 | # test EBCDIC or ASCII | 
|  | 9904 | case `echo X|tr X '\101'` in | 
|  | 9905 | A) # ASCII based system | 
|  | 9906 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | 
|  | 9907 | lt_SP2NL='tr \040 \012' | 
|  | 9908 | lt_NL2SP='tr \015\012 \040\040' | 
|  | 9909 | ;; | 
|  | 9910 | *) # EBCDIC based system | 
|  | 9911 | lt_SP2NL='tr \100 \n' | 
|  | 9912 | lt_NL2SP='tr \r\n \100\100' | 
|  | 9913 | ;; | 
|  | 9914 | esac | 
|  | 9915 |  | 
|  | 9916 |  | 
|  | 9917 |  | 
|  | 9918 |  | 
|  | 9919 |  | 
|  | 9920 |  | 
|  | 9921 |  | 
|  | 9922 |  | 
|  | 9923 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | 
|  | 9925 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | 
|  | 9926 | if ${lt_cv_to_host_file_cmd+:} false; then : | 
|  | 9927 | $as_echo_n "(cached) " >&6 | 
|  | 9928 | else | 
|  | 9929 | case $host in | 
|  | 9930 | *-*-mingw* ) | 
|  | 9931 | case $build in | 
|  | 9932 | *-*-mingw* ) # actually msys | 
|  | 9933 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | 
|  | 9934 | ;; | 
|  | 9935 | *-*-cygwin* ) | 
|  | 9936 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | 
|  | 9937 | ;; | 
|  | 9938 | * ) # otherwise, assume *nix | 
|  | 9939 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | 
|  | 9940 | ;; | 
|  | 9941 | esac | 
|  | 9942 | ;; | 
|  | 9943 | *-*-cygwin* ) | 
|  | 9944 | case $build in | 
|  | 9945 | *-*-mingw* ) # actually msys | 
|  | 9946 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | 
|  | 9947 | ;; | 
|  | 9948 | *-*-cygwin* ) | 
|  | 9949 | lt_cv_to_host_file_cmd=func_convert_file_noop | 
|  | 9950 | ;; | 
|  | 9951 | * ) # otherwise, assume *nix | 
|  | 9952 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | 
|  | 9953 | ;; | 
|  | 9954 | esac | 
|  | 9955 | ;; | 
|  | 9956 | * ) # unhandled hosts (and "normal" native builds) | 
|  | 9957 | lt_cv_to_host_file_cmd=func_convert_file_noop | 
|  | 9958 | ;; | 
|  | 9959 | esac | 
|  | 9960 |  | 
|  | 9961 | fi | 
|  | 9962 |  | 
|  | 9963 | to_host_file_cmd=$lt_cv_to_host_file_cmd | 
|  | 9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | 
|  | 9965 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | 
|  | 9966 |  | 
|  | 9967 |  | 
|  | 9968 |  | 
|  | 9969 |  | 
|  | 9970 |  | 
|  | 9971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | 
|  | 9972 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | 
|  | 9973 | if ${lt_cv_to_tool_file_cmd+:} false; then : | 
|  | 9974 | $as_echo_n "(cached) " >&6 | 
|  | 9975 | else | 
|  | 9976 | #assume ordinary cross tools, or native build. | 
|  | 9977 | lt_cv_to_tool_file_cmd=func_convert_file_noop | 
|  | 9978 | case $host in | 
|  | 9979 | *-*-mingw* ) | 
|  | 9980 | case $build in | 
|  | 9981 | *-*-mingw* ) # actually msys | 
|  | 9982 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | 
|  | 9983 | ;; | 
|  | 9984 | esac | 
|  | 9985 | ;; | 
|  | 9986 | esac | 
|  | 9987 |  | 
|  | 9988 | fi | 
|  | 9989 |  | 
|  | 9990 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | 
|  | 9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | 
|  | 9992 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | 
|  | 9993 |  | 
|  | 9994 |  | 
|  | 9995 |  | 
|  | 9996 |  | 
|  | 9997 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | 
|  | 9999 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10000 | if ${lt_cv_ld_reload_flag+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10001 | $as_echo_n "(cached) " >&6 | 
|  | 10002 | else | 
|  | 10003 | lt_cv_ld_reload_flag='-r' | 
|  | 10004 | fi | 
|  | 10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | 
|  | 10006 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | 
|  | 10007 | reload_flag=$lt_cv_ld_reload_flag | 
|  | 10008 | case $reload_flag in | 
|  | 10009 | "" | " "*) ;; | 
|  | 10010 | *) reload_flag=" $reload_flag" ;; | 
|  | 10011 | esac | 
|  | 10012 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 10013 | case $host_os in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10014 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 10015 | if test "$GCC" != yes; then | 
|  | 10016 | reload_cmds=false | 
|  | 10017 | fi | 
|  | 10018 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10019 | darwin*) | 
|  | 10020 | if test "$GCC" = yes; then | 
|  | 10021 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | 
|  | 10022 | else | 
|  | 10023 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 
|  | 10024 | fi | 
|  | 10025 | ;; | 
|  | 10026 | esac | 
|  | 10027 |  | 
|  | 10028 |  | 
|  | 10029 |  | 
|  | 10030 |  | 
|  | 10031 |  | 
|  | 10032 |  | 
|  | 10033 |  | 
|  | 10034 |  | 
|  | 10035 |  | 
|  | 10036 | if test -n "$ac_tool_prefix"; then | 
|  | 10037 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | 
|  | 10038 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 
|  | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10040 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10041 | if ${ac_cv_prog_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10042 | $as_echo_n "(cached) " >&6 | 
|  | 10043 | else | 
|  | 10044 | if test -n "$OBJDUMP"; then | 
|  | 10045 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | 
|  | 10046 | else | 
|  | 10047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10048 | for as_dir in $PATH | 
|  | 10049 | do | 
|  | 10050 | IFS=$as_save_IFS | 
|  | 10051 | test -z "$as_dir" && as_dir=. | 
|  | 10052 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10054 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | 
|  | 10055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10056 | break 2 | 
|  | 10057 | fi | 
|  | 10058 | done | 
|  | 10059 | done | 
|  | 10060 | IFS=$as_save_IFS | 
|  | 10061 |  | 
|  | 10062 | fi | 
|  | 10063 | fi | 
|  | 10064 | OBJDUMP=$ac_cv_prog_OBJDUMP | 
|  | 10065 | if test -n "$OBJDUMP"; then | 
|  | 10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | 
|  | 10067 | $as_echo "$OBJDUMP" >&6; } | 
|  | 10068 | else | 
|  | 10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10070 | $as_echo "no" >&6; } | 
|  | 10071 | fi | 
|  | 10072 |  | 
|  | 10073 |  | 
|  | 10074 | fi | 
|  | 10075 | if test -z "$ac_cv_prog_OBJDUMP"; then | 
|  | 10076 | ac_ct_OBJDUMP=$OBJDUMP | 
|  | 10077 | # Extract the first word of "objdump", so it can be a program name with args. | 
|  | 10078 | set dummy objdump; ac_word=$2 | 
|  | 10079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10080 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10081 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10082 | $as_echo_n "(cached) " >&6 | 
|  | 10083 | else | 
|  | 10084 | if test -n "$ac_ct_OBJDUMP"; then | 
|  | 10085 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | 
|  | 10086 | else | 
|  | 10087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10088 | for as_dir in $PATH | 
|  | 10089 | do | 
|  | 10090 | IFS=$as_save_IFS | 
|  | 10091 | test -z "$as_dir" && as_dir=. | 
|  | 10092 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10094 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | 
|  | 10095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10096 | break 2 | 
|  | 10097 | fi | 
|  | 10098 | done | 
|  | 10099 | done | 
|  | 10100 | IFS=$as_save_IFS | 
|  | 10101 |  | 
|  | 10102 | fi | 
|  | 10103 | fi | 
|  | 10104 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 
|  | 10105 | if test -n "$ac_ct_OBJDUMP"; then | 
|  | 10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | 
|  | 10107 | $as_echo "$ac_ct_OBJDUMP" >&6; } | 
|  | 10108 | else | 
|  | 10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10110 | $as_echo "no" >&6; } | 
|  | 10111 | fi | 
|  | 10112 |  | 
|  | 10113 | if test "x$ac_ct_OBJDUMP" = x; then | 
|  | 10114 | OBJDUMP="false" | 
|  | 10115 | else | 
|  | 10116 | case $cross_compiling:$ac_tool_warned in | 
|  | 10117 | yes:) | 
|  | 10118 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10119 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10120 | ac_tool_warned=yes ;; | 
|  | 10121 | esac | 
|  | 10122 | OBJDUMP=$ac_ct_OBJDUMP | 
|  | 10123 | fi | 
|  | 10124 | else | 
|  | 10125 | OBJDUMP="$ac_cv_prog_OBJDUMP" | 
|  | 10126 | fi | 
|  | 10127 |  | 
|  | 10128 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 10129 |  | 
|  | 10130 |  | 
|  | 10131 |  | 
|  | 10132 |  | 
|  | 10133 |  | 
|  | 10134 |  | 
|  | 10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | 
|  | 10136 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10137 | if ${lt_cv_deplibs_check_method+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10138 | $as_echo_n "(cached) " >&6 | 
|  | 10139 | else | 
|  | 10140 | lt_cv_file_magic_cmd='$MAGIC_CMD' | 
|  | 10141 | lt_cv_file_magic_test_file= | 
|  | 10142 | lt_cv_deplibs_check_method='unknown' | 
|  | 10143 | # Need to set the preceding variable on all platforms that support | 
|  | 10144 | # interlibrary dependencies. | 
|  | 10145 | # 'none' -- dependencies not supported. | 
|  | 10146 | # `unknown' -- same as none, but documents that we really don't know. | 
|  | 10147 | # 'pass_all' -- all dependencies passed with no checks. | 
|  | 10148 | # 'test_compile' -- check by making test program. | 
|  | 10149 | # 'file_magic [[regex]]' -- check by looking for files in library path | 
|  | 10150 | # which responds to the $file_magic_cmd with a given extended regex. | 
|  | 10151 | # If you have `file' or equivalent on your system and you're not sure | 
|  | 10152 | # whether `pass_all' will *always* work, you probably want this one. | 
|  | 10153 |  | 
|  | 10154 | case $host_os in | 
|  | 10155 | aix[4-9]*) | 
|  | 10156 | lt_cv_deplibs_check_method=pass_all | 
|  | 10157 | ;; | 
|  | 10158 |  | 
|  | 10159 | beos*) | 
|  | 10160 | lt_cv_deplibs_check_method=pass_all | 
|  | 10161 | ;; | 
|  | 10162 |  | 
|  | 10163 | bsdi[45]*) | 
|  | 10164 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | 
|  | 10165 | lt_cv_file_magic_cmd='/usr/bin/file -L' | 
|  | 10166 | lt_cv_file_magic_test_file=/shlib/libc.so | 
|  | 10167 | ;; | 
|  | 10168 |  | 
|  | 10169 | cygwin*) | 
|  | 10170 | # func_win32_libid is a shell function defined in ltmain.sh | 
|  | 10171 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
|  | 10172 | lt_cv_file_magic_cmd='func_win32_libid' | 
|  | 10173 | ;; | 
|  | 10174 |  | 
|  | 10175 | mingw* | pw32*) | 
|  | 10176 | # Base MSYS/MinGW do not provide the 'file' command needed by | 
|  | 10177 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | 
|  | 10178 | # unless we find 'file', for example because we are cross-compiling. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10179 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | 
|  | 10180 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10181 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | 
|  | 10182 | lt_cv_file_magic_cmd='func_win32_libid' | 
|  | 10183 | else | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10184 | # Keep this pattern in sync with the one in func_win32_libid. | 
|  | 10185 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10186 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|  | 10187 | fi | 
|  | 10188 | ;; | 
|  | 10189 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10190 | cegcc*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10191 | # use the weaker test based on 'objdump'. See mingw*. | 
|  | 10192 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | 
|  | 10193 | lt_cv_file_magic_cmd='$OBJDUMP -f' | 
|  | 10194 | ;; | 
|  | 10195 |  | 
|  | 10196 | darwin* | rhapsody*) | 
|  | 10197 | lt_cv_deplibs_check_method=pass_all | 
|  | 10198 | ;; | 
|  | 10199 |  | 
|  | 10200 | freebsd* | dragonfly*) | 
|  | 10201 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 
|  | 10202 | case $host_cpu in | 
|  | 10203 | i*86 ) | 
|  | 10204 | # Not sure whether the presence of OpenBSD here was a mistake. | 
|  | 10205 | # Let's accept both of them until this is cleared up. | 
|  | 10206 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | 
|  | 10207 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10208 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | 
|  | 10209 | ;; | 
|  | 10210 | esac | 
|  | 10211 | else | 
|  | 10212 | lt_cv_deplibs_check_method=pass_all | 
|  | 10213 | fi | 
|  | 10214 | ;; | 
|  | 10215 |  | 
|  | 10216 | gnu*) | 
|  | 10217 | lt_cv_deplibs_check_method=pass_all | 
|  | 10218 | ;; | 
|  | 10219 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10220 | haiku*) | 
|  | 10221 | lt_cv_deplibs_check_method=pass_all | 
|  | 10222 | ;; | 
|  | 10223 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10224 | hpux10.20* | hpux11*) | 
|  | 10225 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10226 | case $host_cpu in | 
|  | 10227 | ia64*) | 
|  | 10228 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | 
|  | 10229 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | 
|  | 10230 | ;; | 
|  | 10231 | hppa*64*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10232 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10233 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | 
|  | 10234 | ;; | 
|  | 10235 | *) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10236 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10237 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | 
|  | 10238 | ;; | 
|  | 10239 | esac | 
|  | 10240 | ;; | 
|  | 10241 |  | 
|  | 10242 | interix[3-9]*) | 
|  | 10243 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | 
|  | 10244 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | 
|  | 10245 | ;; | 
|  | 10246 |  | 
|  | 10247 | irix5* | irix6* | nonstopux*) | 
|  | 10248 | case $LD in | 
|  | 10249 | *-32|*"-32 ") libmagic=32-bit;; | 
|  | 10250 | *-n32|*"-n32 ") libmagic=N32;; | 
|  | 10251 | *-64|*"-64 ") libmagic=64-bit;; | 
|  | 10252 | *) libmagic=never-match;; | 
|  | 10253 | esac | 
|  | 10254 | lt_cv_deplibs_check_method=pass_all | 
|  | 10255 | ;; | 
|  | 10256 |  | 
|  | 10257 | # This must be Linux ELF. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10258 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10259 | lt_cv_deplibs_check_method=pass_all | 
|  | 10260 | ;; | 
|  | 10261 |  | 
|  | 10262 | netbsd*) | 
|  | 10263 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | 
|  | 10264 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
|  | 10265 | else | 
|  | 10266 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | 
|  | 10267 | fi | 
|  | 10268 | ;; | 
|  | 10269 |  | 
|  | 10270 | newos6*) | 
|  | 10271 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | 
|  | 10272 | lt_cv_file_magic_cmd=/usr/bin/file | 
|  | 10273 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | 
|  | 10274 | ;; | 
|  | 10275 |  | 
|  | 10276 | *nto* | *qnx*) | 
|  | 10277 | lt_cv_deplibs_check_method=pass_all | 
|  | 10278 | ;; | 
|  | 10279 |  | 
|  | 10280 | openbsd*) | 
|  | 10281 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 10282 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | 
|  | 10283 | else | 
|  | 10284 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | 
|  | 10285 | fi | 
|  | 10286 | ;; | 
|  | 10287 |  | 
|  | 10288 | osf3* | osf4* | osf5*) | 
|  | 10289 | lt_cv_deplibs_check_method=pass_all | 
|  | 10290 | ;; | 
|  | 10291 |  | 
|  | 10292 | rdos*) | 
|  | 10293 | lt_cv_deplibs_check_method=pass_all | 
|  | 10294 | ;; | 
|  | 10295 |  | 
|  | 10296 | solaris*) | 
|  | 10297 | lt_cv_deplibs_check_method=pass_all | 
|  | 10298 | ;; | 
|  | 10299 |  | 
|  | 10300 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 10301 | lt_cv_deplibs_check_method=pass_all | 
|  | 10302 | ;; | 
|  | 10303 |  | 
|  | 10304 | sysv4 | sysv4.3*) | 
|  | 10305 | case $host_vendor in | 
|  | 10306 | motorola) | 
|  | 10307 | 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]' | 
|  | 10308 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | 
|  | 10309 | ;; | 
|  | 10310 | ncr) | 
|  | 10311 | lt_cv_deplibs_check_method=pass_all | 
|  | 10312 | ;; | 
|  | 10313 | sequent) | 
|  | 10314 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 10315 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | 
|  | 10316 | ;; | 
|  | 10317 | sni) | 
|  | 10318 | lt_cv_file_magic_cmd='/bin/file' | 
|  | 10319 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | 
|  | 10320 | lt_cv_file_magic_test_file=/lib/libc.so | 
|  | 10321 | ;; | 
|  | 10322 | siemens) | 
|  | 10323 | lt_cv_deplibs_check_method=pass_all | 
|  | 10324 | ;; | 
|  | 10325 | pc) | 
|  | 10326 | lt_cv_deplibs_check_method=pass_all | 
|  | 10327 | ;; | 
|  | 10328 | esac | 
|  | 10329 | ;; | 
|  | 10330 |  | 
|  | 10331 | tpf*) | 
|  | 10332 | lt_cv_deplibs_check_method=pass_all | 
|  | 10333 | ;; | 
|  | 10334 | esac | 
|  | 10335 |  | 
|  | 10336 | fi | 
|  | 10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | 
|  | 10338 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10339 |  | 
|  | 10340 | file_magic_glob= | 
|  | 10341 | want_nocaseglob=no | 
|  | 10342 | if test "$build" = "$host"; then | 
|  | 10343 | case $host_os in | 
|  | 10344 | mingw* | pw32*) | 
|  | 10345 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | 
|  | 10346 | want_nocaseglob=yes | 
|  | 10347 | else | 
|  | 10348 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | 
|  | 10349 | fi | 
|  | 10350 | ;; | 
|  | 10351 | esac | 
|  | 10352 | fi | 
|  | 10353 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10354 | file_magic_cmd=$lt_cv_file_magic_cmd | 
|  | 10355 | deplibs_check_method=$lt_cv_deplibs_check_method | 
|  | 10356 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | 
|  | 10357 |  | 
|  | 10358 |  | 
|  | 10359 |  | 
|  | 10360 |  | 
|  | 10361 |  | 
|  | 10362 |  | 
|  | 10363 |  | 
|  | 10364 |  | 
|  | 10365 |  | 
|  | 10366 |  | 
|  | 10367 |  | 
|  | 10368 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10369 |  | 
|  | 10370 |  | 
|  | 10371 |  | 
|  | 10372 |  | 
|  | 10373 |  | 
|  | 10374 |  | 
|  | 10375 |  | 
|  | 10376 |  | 
|  | 10377 |  | 
|  | 10378 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10379 | if test -n "$ac_tool_prefix"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10380 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | 
|  | 10381 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10383 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10384 | if ${ac_cv_prog_DLLTOOL+:} false; then : | 
|  | 10385 | $as_echo_n "(cached) " >&6 | 
|  | 10386 | else | 
|  | 10387 | if test -n "$DLLTOOL"; then | 
|  | 10388 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | 
|  | 10389 | else | 
|  | 10390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10391 | for as_dir in $PATH | 
|  | 10392 | do | 
|  | 10393 | IFS=$as_save_IFS | 
|  | 10394 | test -z "$as_dir" && as_dir=. | 
|  | 10395 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10397 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | 
|  | 10398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10399 | break 2 | 
|  | 10400 | fi | 
|  | 10401 | done | 
|  | 10402 | done | 
|  | 10403 | IFS=$as_save_IFS | 
|  | 10404 |  | 
|  | 10405 | fi | 
|  | 10406 | fi | 
|  | 10407 | DLLTOOL=$ac_cv_prog_DLLTOOL | 
|  | 10408 | if test -n "$DLLTOOL"; then | 
|  | 10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | 
|  | 10410 | $as_echo "$DLLTOOL" >&6; } | 
|  | 10411 | else | 
|  | 10412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10413 | $as_echo "no" >&6; } | 
|  | 10414 | fi | 
|  | 10415 |  | 
|  | 10416 |  | 
|  | 10417 | fi | 
|  | 10418 | if test -z "$ac_cv_prog_DLLTOOL"; then | 
|  | 10419 | ac_ct_DLLTOOL=$DLLTOOL | 
|  | 10420 | # Extract the first word of "dlltool", so it can be a program name with args. | 
|  | 10421 | set dummy dlltool; ac_word=$2 | 
|  | 10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10423 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 10424 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | 
|  | 10425 | $as_echo_n "(cached) " >&6 | 
|  | 10426 | else | 
|  | 10427 | if test -n "$ac_ct_DLLTOOL"; then | 
|  | 10428 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | 
|  | 10429 | else | 
|  | 10430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10431 | for as_dir in $PATH | 
|  | 10432 | do | 
|  | 10433 | IFS=$as_save_IFS | 
|  | 10434 | test -z "$as_dir" && as_dir=. | 
|  | 10435 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10437 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | 
|  | 10438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10439 | break 2 | 
|  | 10440 | fi | 
|  | 10441 | done | 
|  | 10442 | done | 
|  | 10443 | IFS=$as_save_IFS | 
|  | 10444 |  | 
|  | 10445 | fi | 
|  | 10446 | fi | 
|  | 10447 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | 
|  | 10448 | if test -n "$ac_ct_DLLTOOL"; then | 
|  | 10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | 
|  | 10450 | $as_echo "$ac_ct_DLLTOOL" >&6; } | 
|  | 10451 | else | 
|  | 10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10453 | $as_echo "no" >&6; } | 
|  | 10454 | fi | 
|  | 10455 |  | 
|  | 10456 | if test "x$ac_ct_DLLTOOL" = x; then | 
|  | 10457 | DLLTOOL="false" | 
|  | 10458 | else | 
|  | 10459 | case $cross_compiling:$ac_tool_warned in | 
|  | 10460 | yes:) | 
|  | 10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10462 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10463 | ac_tool_warned=yes ;; | 
|  | 10464 | esac | 
|  | 10465 | DLLTOOL=$ac_ct_DLLTOOL | 
|  | 10466 | fi | 
|  | 10467 | else | 
|  | 10468 | DLLTOOL="$ac_cv_prog_DLLTOOL" | 
|  | 10469 | fi | 
|  | 10470 |  | 
|  | 10471 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|  | 10472 |  | 
|  | 10473 |  | 
|  | 10474 |  | 
|  | 10475 |  | 
|  | 10476 |  | 
|  | 10477 |  | 
|  | 10478 |  | 
|  | 10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | 
|  | 10480 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | 
|  | 10481 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | 
|  | 10482 | $as_echo_n "(cached) " >&6 | 
|  | 10483 | else | 
|  | 10484 | lt_cv_sharedlib_from_linklib_cmd='unknown' | 
|  | 10485 |  | 
|  | 10486 | case $host_os in | 
|  | 10487 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 10488 | # two different shell functions defined in ltmain.sh | 
|  | 10489 | # decide which to use based on capabilities of $DLLTOOL | 
|  | 10490 | case `$DLLTOOL --help 2>&1` in | 
|  | 10491 | *--identify-strict*) | 
|  | 10492 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | 
|  | 10493 | ;; | 
|  | 10494 | *) | 
|  | 10495 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | 
|  | 10496 | ;; | 
|  | 10497 | esac | 
|  | 10498 | ;; | 
|  | 10499 | *) | 
|  | 10500 | # fallback: assume linklib IS sharedlib | 
|  | 10501 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | 
|  | 10502 | ;; | 
|  | 10503 | esac | 
|  | 10504 |  | 
|  | 10505 | fi | 
|  | 10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | 
|  | 10507 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | 
|  | 10508 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | 
|  | 10509 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | 
|  | 10510 |  | 
|  | 10511 |  | 
|  | 10512 |  | 
|  | 10513 |  | 
|  | 10514 |  | 
|  | 10515 |  | 
|  | 10516 |  | 
|  | 10517 | if test -n "$ac_tool_prefix"; then | 
|  | 10518 | for ac_prog in ar | 
|  | 10519 | do | 
|  | 10520 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 10521 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
|  | 10522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10523 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 10524 | if ${ac_cv_prog_AR+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10525 | $as_echo_n "(cached) " >&6 | 
|  | 10526 | else | 
|  | 10527 | if test -n "$AR"; then | 
|  | 10528 | ac_cv_prog_AR="$AR" # Let the user override the test. | 
|  | 10529 | else | 
|  | 10530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10531 | for as_dir in $PATH | 
|  | 10532 | do | 
|  | 10533 | IFS=$as_save_IFS | 
|  | 10534 | test -z "$as_dir" && as_dir=. | 
|  | 10535 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10537 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10539 | break 2 | 
|  | 10540 | fi | 
|  | 10541 | done | 
|  | 10542 | done | 
|  | 10543 | IFS=$as_save_IFS | 
|  | 10544 |  | 
|  | 10545 | fi | 
|  | 10546 | fi | 
|  | 10547 | AR=$ac_cv_prog_AR | 
|  | 10548 | if test -n "$AR"; then | 
|  | 10549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | 
|  | 10550 | $as_echo "$AR" >&6; } | 
|  | 10551 | else | 
|  | 10552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10553 | $as_echo "no" >&6; } | 
|  | 10554 | fi | 
|  | 10555 |  | 
|  | 10556 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10557 | test -n "$AR" && break | 
|  | 10558 | done | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10559 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10560 | if test -z "$AR"; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10561 | ac_ct_AR=$AR | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10562 | for ac_prog in ar | 
|  | 10563 | do | 
|  | 10564 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 10565 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10567 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10568 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10569 | $as_echo_n "(cached) " >&6 | 
|  | 10570 | else | 
|  | 10571 | if test -n "$ac_ct_AR"; then | 
|  | 10572 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | 
|  | 10573 | else | 
|  | 10574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10575 | for as_dir in $PATH | 
|  | 10576 | do | 
|  | 10577 | IFS=$as_save_IFS | 
|  | 10578 | test -z "$as_dir" && as_dir=. | 
|  | 10579 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10581 | ac_cv_prog_ac_ct_AR="$ac_prog" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10583 | break 2 | 
|  | 10584 | fi | 
|  | 10585 | done | 
|  | 10586 | done | 
|  | 10587 | IFS=$as_save_IFS | 
|  | 10588 |  | 
|  | 10589 | fi | 
|  | 10590 | fi | 
|  | 10591 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | 
|  | 10592 | if test -n "$ac_ct_AR"; then | 
|  | 10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | 
|  | 10594 | $as_echo "$ac_ct_AR" >&6; } | 
|  | 10595 | else | 
|  | 10596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10597 | $as_echo "no" >&6; } | 
|  | 10598 | fi | 
|  | 10599 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10600 |  | 
|  | 10601 | test -n "$ac_ct_AR" && break | 
|  | 10602 | done | 
|  | 10603 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10604 | if test "x$ac_ct_AR" = x; then | 
|  | 10605 | AR="false" | 
|  | 10606 | else | 
|  | 10607 | case $cross_compiling:$ac_tool_warned in | 
|  | 10608 | yes:) | 
|  | 10609 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10610 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10611 | ac_tool_warned=yes ;; | 
|  | 10612 | esac | 
|  | 10613 | AR=$ac_ct_AR | 
|  | 10614 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10615 | fi | 
|  | 10616 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10617 | : ${AR=ar} | 
|  | 10618 | : ${AR_FLAGS=cru} | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10619 |  | 
|  | 10620 |  | 
|  | 10621 |  | 
|  | 10622 |  | 
|  | 10623 |  | 
|  | 10624 |  | 
|  | 10625 |  | 
|  | 10626 |  | 
|  | 10627 |  | 
|  | 10628 |  | 
|  | 10629 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | 
|  | 10631 | $as_echo_n "checking for archiver @FILE support... " >&6; } | 
|  | 10632 | if ${lt_cv_ar_at_file+:} false; then : | 
|  | 10633 | $as_echo_n "(cached) " >&6 | 
|  | 10634 | else | 
|  | 10635 | lt_cv_ar_at_file=no | 
|  | 10636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 10637 | /* end confdefs.h.  */ | 
|  | 10638 |  | 
|  | 10639 | int | 
|  | 10640 | main () | 
|  | 10641 | { | 
|  | 10642 |  | 
|  | 10643 | ; | 
|  | 10644 | return 0; | 
|  | 10645 | } | 
|  | 10646 | _ACEOF | 
|  | 10647 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 10648 | echo conftest.$ac_objext > conftest.lst | 
|  | 10649 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | 
|  | 10650 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | 
|  | 10651 | (eval $lt_ar_try) 2>&5 | 
|  | 10652 | ac_status=$? | 
|  | 10653 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10654 | test $ac_status = 0; } | 
|  | 10655 | if test "$ac_status" -eq 0; then | 
|  | 10656 | # Ensure the archiver fails upon bogus file names. | 
|  | 10657 | rm -f conftest.$ac_objext libconftest.a | 
|  | 10658 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | 
|  | 10659 | (eval $lt_ar_try) 2>&5 | 
|  | 10660 | ac_status=$? | 
|  | 10661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 10662 | test $ac_status = 0; } | 
|  | 10663 | if test "$ac_status" -ne 0; then | 
|  | 10664 | lt_cv_ar_at_file=@ | 
|  | 10665 | fi | 
|  | 10666 | fi | 
|  | 10667 | rm -f conftest.* libconftest.a | 
|  | 10668 |  | 
|  | 10669 | fi | 
|  | 10670 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 10671 |  | 
|  | 10672 | fi | 
|  | 10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | 
|  | 10674 | $as_echo "$lt_cv_ar_at_file" >&6; } | 
|  | 10675 |  | 
|  | 10676 | if test "x$lt_cv_ar_at_file" = xno; then | 
|  | 10677 | archiver_list_spec= | 
|  | 10678 | else | 
|  | 10679 | archiver_list_spec=$lt_cv_ar_at_file | 
|  | 10680 | fi | 
|  | 10681 |  | 
|  | 10682 |  | 
|  | 10683 |  | 
|  | 10684 |  | 
|  | 10685 |  | 
|  | 10686 |  | 
|  | 10687 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10688 | if test -n "$ac_tool_prefix"; then | 
|  | 10689 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
|  | 10690 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
|  | 10691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10692 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10693 | if ${ac_cv_prog_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10694 | $as_echo_n "(cached) " >&6 | 
|  | 10695 | else | 
|  | 10696 | if test -n "$STRIP"; then | 
|  | 10697 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
|  | 10698 | else | 
|  | 10699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10700 | for as_dir in $PATH | 
|  | 10701 | do | 
|  | 10702 | IFS=$as_save_IFS | 
|  | 10703 | test -z "$as_dir" && as_dir=. | 
|  | 10704 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10706 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
|  | 10707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10708 | break 2 | 
|  | 10709 | fi | 
|  | 10710 | done | 
|  | 10711 | done | 
|  | 10712 | IFS=$as_save_IFS | 
|  | 10713 |  | 
|  | 10714 | fi | 
|  | 10715 | fi | 
|  | 10716 | STRIP=$ac_cv_prog_STRIP | 
|  | 10717 | if test -n "$STRIP"; then | 
|  | 10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | 
|  | 10719 | $as_echo "$STRIP" >&6; } | 
|  | 10720 | else | 
|  | 10721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10722 | $as_echo "no" >&6; } | 
|  | 10723 | fi | 
|  | 10724 |  | 
|  | 10725 |  | 
|  | 10726 | fi | 
|  | 10727 | if test -z "$ac_cv_prog_STRIP"; then | 
|  | 10728 | ac_ct_STRIP=$STRIP | 
|  | 10729 | # Extract the first word of "strip", so it can be a program name with args. | 
|  | 10730 | set dummy strip; ac_word=$2 | 
|  | 10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10732 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10733 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10734 | $as_echo_n "(cached) " >&6 | 
|  | 10735 | else | 
|  | 10736 | if test -n "$ac_ct_STRIP"; then | 
|  | 10737 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | 
|  | 10738 | else | 
|  | 10739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10740 | for as_dir in $PATH | 
|  | 10741 | do | 
|  | 10742 | IFS=$as_save_IFS | 
|  | 10743 | test -z "$as_dir" && as_dir=. | 
|  | 10744 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10746 | ac_cv_prog_ac_ct_STRIP="strip" | 
|  | 10747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10748 | break 2 | 
|  | 10749 | fi | 
|  | 10750 | done | 
|  | 10751 | done | 
|  | 10752 | IFS=$as_save_IFS | 
|  | 10753 |  | 
|  | 10754 | fi | 
|  | 10755 | fi | 
|  | 10756 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | 
|  | 10757 | if test -n "$ac_ct_STRIP"; then | 
|  | 10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | 
|  | 10759 | $as_echo "$ac_ct_STRIP" >&6; } | 
|  | 10760 | else | 
|  | 10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10762 | $as_echo "no" >&6; } | 
|  | 10763 | fi | 
|  | 10764 |  | 
|  | 10765 | if test "x$ac_ct_STRIP" = x; then | 
|  | 10766 | STRIP=":" | 
|  | 10767 | else | 
|  | 10768 | case $cross_compiling:$ac_tool_warned in | 
|  | 10769 | yes:) | 
|  | 10770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10771 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10772 | ac_tool_warned=yes ;; | 
|  | 10773 | esac | 
|  | 10774 | STRIP=$ac_ct_STRIP | 
|  | 10775 | fi | 
|  | 10776 | else | 
|  | 10777 | STRIP="$ac_cv_prog_STRIP" | 
|  | 10778 | fi | 
|  | 10779 |  | 
|  | 10780 | test -z "$STRIP" && STRIP=: | 
|  | 10781 |  | 
|  | 10782 |  | 
|  | 10783 |  | 
|  | 10784 |  | 
|  | 10785 |  | 
|  | 10786 |  | 
|  | 10787 | if test -n "$ac_tool_prefix"; then | 
|  | 10788 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
|  | 10789 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
|  | 10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10791 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10792 | if ${ac_cv_prog_RANLIB+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10793 | $as_echo_n "(cached) " >&6 | 
|  | 10794 | else | 
|  | 10795 | if test -n "$RANLIB"; then | 
|  | 10796 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
|  | 10797 | else | 
|  | 10798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10799 | for as_dir in $PATH | 
|  | 10800 | do | 
|  | 10801 | IFS=$as_save_IFS | 
|  | 10802 | test -z "$as_dir" && as_dir=. | 
|  | 10803 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10804 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10805 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
|  | 10806 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10807 | break 2 | 
|  | 10808 | fi | 
|  | 10809 | done | 
|  | 10810 | done | 
|  | 10811 | IFS=$as_save_IFS | 
|  | 10812 |  | 
|  | 10813 | fi | 
|  | 10814 | fi | 
|  | 10815 | RANLIB=$ac_cv_prog_RANLIB | 
|  | 10816 | if test -n "$RANLIB"; then | 
|  | 10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | 
|  | 10818 | $as_echo "$RANLIB" >&6; } | 
|  | 10819 | else | 
|  | 10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10821 | $as_echo "no" >&6; } | 
|  | 10822 | fi | 
|  | 10823 |  | 
|  | 10824 |  | 
|  | 10825 | fi | 
|  | 10826 | if test -z "$ac_cv_prog_RANLIB"; then | 
|  | 10827 | ac_ct_RANLIB=$RANLIB | 
|  | 10828 | # Extract the first word of "ranlib", so it can be a program name with args. | 
|  | 10829 | set dummy ranlib; ac_word=$2 | 
|  | 10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 10831 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10832 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10833 | $as_echo_n "(cached) " >&6 | 
|  | 10834 | else | 
|  | 10835 | if test -n "$ac_ct_RANLIB"; then | 
|  | 10836 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | 
|  | 10837 | else | 
|  | 10838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 10839 | for as_dir in $PATH | 
|  | 10840 | do | 
|  | 10841 | IFS=$as_save_IFS | 
|  | 10842 | test -z "$as_dir" && as_dir=. | 
|  | 10843 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 10844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 10845 | ac_cv_prog_ac_ct_RANLIB="ranlib" | 
|  | 10846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 10847 | break 2 | 
|  | 10848 | fi | 
|  | 10849 | done | 
|  | 10850 | done | 
|  | 10851 | IFS=$as_save_IFS | 
|  | 10852 |  | 
|  | 10853 | fi | 
|  | 10854 | fi | 
|  | 10855 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | 
|  | 10856 | if test -n "$ac_ct_RANLIB"; then | 
|  | 10857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | 
|  | 10858 | $as_echo "$ac_ct_RANLIB" >&6; } | 
|  | 10859 | else | 
|  | 10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 10861 | $as_echo "no" >&6; } | 
|  | 10862 | fi | 
|  | 10863 |  | 
|  | 10864 | if test "x$ac_ct_RANLIB" = x; then | 
|  | 10865 | RANLIB=":" | 
|  | 10866 | else | 
|  | 10867 | case $cross_compiling:$ac_tool_warned in | 
|  | 10868 | yes:) | 
|  | 10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 10870 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 10871 | ac_tool_warned=yes ;; | 
|  | 10872 | esac | 
|  | 10873 | RANLIB=$ac_ct_RANLIB | 
|  | 10874 | fi | 
|  | 10875 | else | 
|  | 10876 | RANLIB="$ac_cv_prog_RANLIB" | 
|  | 10877 | fi | 
|  | 10878 |  | 
|  | 10879 | test -z "$RANLIB" && RANLIB=: | 
|  | 10880 |  | 
|  | 10881 |  | 
|  | 10882 |  | 
|  | 10883 |  | 
|  | 10884 |  | 
|  | 10885 |  | 
|  | 10886 | # Determine commands to create old-style static archives. | 
|  | 10887 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | 
|  | 10888 | old_postinstall_cmds='chmod 644 $oldlib' | 
|  | 10889 | old_postuninstall_cmds= | 
|  | 10890 |  | 
|  | 10891 | if test -n "$RANLIB"; then | 
|  | 10892 | case $host_os in | 
|  | 10893 | openbsd*) | 
|  | 10894 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | 
|  | 10895 | ;; | 
|  | 10896 | *) | 
|  | 10897 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | 
|  | 10898 | ;; | 
|  | 10899 | esac | 
|  | 10900 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 
|  | 10901 | fi | 
|  | 10902 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10903 | case $host_os in | 
|  | 10904 | darwin*) | 
|  | 10905 | lock_old_archive_extraction=yes ;; | 
|  | 10906 | *) | 
|  | 10907 | lock_old_archive_extraction=no ;; | 
|  | 10908 | esac | 
|  | 10909 |  | 
|  | 10910 |  | 
|  | 10911 |  | 
|  | 10912 |  | 
|  | 10913 |  | 
|  | 10914 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10915 |  | 
|  | 10916 |  | 
|  | 10917 |  | 
|  | 10918 |  | 
|  | 10919 |  | 
|  | 10920 |  | 
|  | 10921 |  | 
|  | 10922 |  | 
|  | 10923 |  | 
|  | 10924 |  | 
|  | 10925 |  | 
|  | 10926 |  | 
|  | 10927 |  | 
|  | 10928 |  | 
|  | 10929 |  | 
|  | 10930 |  | 
|  | 10931 |  | 
|  | 10932 |  | 
|  | 10933 |  | 
|  | 10934 |  | 
|  | 10935 |  | 
|  | 10936 |  | 
|  | 10937 |  | 
|  | 10938 |  | 
|  | 10939 |  | 
|  | 10940 |  | 
|  | 10941 |  | 
|  | 10942 |  | 
|  | 10943 |  | 
|  | 10944 |  | 
|  | 10945 |  | 
|  | 10946 |  | 
|  | 10947 |  | 
|  | 10948 | # If no C compiler was specified, use CC. | 
|  | 10949 | LTCC=${LTCC-"$CC"} | 
|  | 10950 |  | 
|  | 10951 | # If no C compiler flags were specified, use CFLAGS. | 
|  | 10952 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
|  | 10953 |  | 
|  | 10954 | # Allow CC to be a program name with arguments. | 
|  | 10955 | compiler=$CC | 
|  | 10956 |  | 
|  | 10957 |  | 
|  | 10958 | # Check for command to grab the raw symbol name followed by C symbol from nm. | 
|  | 10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | 
|  | 10960 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10961 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10962 | $as_echo_n "(cached) " >&6 | 
|  | 10963 | else | 
|  | 10964 |  | 
|  | 10965 | # These are sane defaults that work on at least a few old systems. | 
|  | 10966 | # [They come from Ultrix.  What could be older than Ultrix?!! ;)] | 
|  | 10967 |  | 
|  | 10968 | # Character class describing NM global symbol codes. | 
|  | 10969 | symcode='[BCDEGRST]' | 
|  | 10970 |  | 
|  | 10971 | # Regexp to match symbols that can be accessed directly from C. | 
|  | 10972 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | 
|  | 10973 |  | 
|  | 10974 | # Define system-specific variables. | 
|  | 10975 | case $host_os in | 
|  | 10976 | aix*) | 
|  | 10977 | symcode='[BCDT]' | 
|  | 10978 | ;; | 
|  | 10979 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 10980 | symcode='[ABCDGISTW]' | 
|  | 10981 | ;; | 
|  | 10982 | hpux*) | 
|  | 10983 | if test "$host_cpu" = ia64; then | 
|  | 10984 | symcode='[ABCDEGRST]' | 
|  | 10985 | fi | 
|  | 10986 | ;; | 
|  | 10987 | irix* | nonstopux*) | 
|  | 10988 | symcode='[BCDEGRST]' | 
|  | 10989 | ;; | 
|  | 10990 | osf*) | 
|  | 10991 | symcode='[BCDEGQRST]' | 
|  | 10992 | ;; | 
|  | 10993 | solaris*) | 
|  | 10994 | symcode='[BDRT]' | 
|  | 10995 | ;; | 
|  | 10996 | sco3.2v5*) | 
|  | 10997 | symcode='[DT]' | 
|  | 10998 | ;; | 
|  | 10999 | sysv4.2uw2*) | 
|  | 11000 | symcode='[DT]' | 
|  | 11001 | ;; | 
|  | 11002 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 11003 | symcode='[ABDT]' | 
|  | 11004 | ;; | 
|  | 11005 | sysv4) | 
|  | 11006 | symcode='[DFNSTU]' | 
|  | 11007 | ;; | 
|  | 11008 | esac | 
|  | 11009 |  | 
|  | 11010 | # If we're using GNU nm, then use its standard symbol codes. | 
|  | 11011 | case `$NM -V 2>&1` in | 
|  | 11012 | *GNU* | *'with BFD'*) | 
|  | 11013 | symcode='[ABCDGIRSTW]' ;; | 
|  | 11014 | esac | 
|  | 11015 |  | 
|  | 11016 | # Transform an extracted symbol line into a proper C declaration. | 
|  | 11017 | # Some systems (esp. on ia64) link data and code symbols differently, | 
|  | 11018 | # so use this general approach. | 
|  | 11019 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | 
|  | 11020 |  | 
|  | 11021 | # Transform an extracted symbol line into symbol name and symbol address | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11022 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'" | 
|  | 11023 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11024 |  | 
|  | 11025 | # Handle CRLF in mingw tool chain | 
|  | 11026 | opt_cr= | 
|  | 11027 | case $build_os in | 
|  | 11028 | mingw*) | 
|  | 11029 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | 
|  | 11030 | ;; | 
|  | 11031 | esac | 
|  | 11032 |  | 
|  | 11033 | # Try without a prefix underscore, then with it. | 
|  | 11034 | for ac_symprfx in "" "_"; do | 
|  | 11035 |  | 
|  | 11036 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | 
|  | 11037 | symxfrm="\\1 $ac_symprfx\\2 \\2" | 
|  | 11038 |  | 
|  | 11039 | # Write the raw and C identifiers. | 
|  | 11040 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 
|  | 11041 | # Fake it for dumpbin and say T for any non-static function | 
|  | 11042 | # and D for any global variable. | 
|  | 11043 | # Also find C++ and __fastcall symbols from MSVC++, | 
|  | 11044 | # which start with @ or ?. | 
|  | 11045 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | 
|  | 11046 | "     {last_section=section; section=\$ 3};"\ | 
|  | 11047 | "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | 
|  | 11048 | "     \$ 0!~/External *\|/{next};"\ | 
|  | 11049 | "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | 
|  | 11050 | "     {if(hide[section]) next};"\ | 
|  | 11051 | "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | 
|  | 11052 | "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | 
|  | 11053 | "     s[1]~/^[@?]/{print s[1], s[1]; next};"\ | 
|  | 11054 | "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | 
|  | 11055 | "     ' prfx=^$ac_symprfx" | 
|  | 11056 | else | 
|  | 11057 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | 
|  | 11058 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11059 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11060 |  | 
|  | 11061 | # Check to see that the pipe works correctly. | 
|  | 11062 | pipe_works=no | 
|  | 11063 |  | 
|  | 11064 | rm -f conftest* | 
|  | 11065 | cat > conftest.$ac_ext <<_LT_EOF | 
|  | 11066 | #ifdef __cplusplus | 
|  | 11067 | extern "C" { | 
|  | 11068 | #endif | 
|  | 11069 | char nm_test_var; | 
|  | 11070 | void nm_test_func(void); | 
|  | 11071 | void nm_test_func(void){} | 
|  | 11072 | #ifdef __cplusplus | 
|  | 11073 | } | 
|  | 11074 | #endif | 
|  | 11075 | int main(){nm_test_var='a';nm_test_func();return(0);} | 
|  | 11076 | _LT_EOF | 
|  | 11077 |  | 
|  | 11078 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 11079 | (eval $ac_compile) 2>&5 | 
|  | 11080 | ac_status=$? | 
|  | 11081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11082 | test $ac_status = 0; }; then | 
|  | 11083 | # Now try to grab the symbols. | 
|  | 11084 | nlist=conftest.nm | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11085 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | 
|  | 11086 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11087 | ac_status=$? | 
|  | 11088 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11089 | test $ac_status = 0; } && test -s "$nlist"; then | 
|  | 11090 | # Try sorting and uniquifying the output. | 
|  | 11091 | if sort "$nlist" | uniq > "$nlist"T; then | 
|  | 11092 | mv -f "$nlist"T "$nlist" | 
|  | 11093 | else | 
|  | 11094 | rm -f "$nlist"T | 
|  | 11095 | fi | 
|  | 11096 |  | 
|  | 11097 | # Make sure that we snagged all the symbols we need. | 
|  | 11098 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | 
|  | 11099 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | 
|  | 11100 | cat <<_LT_EOF > conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11101 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */ | 
|  | 11102 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | 
|  | 11103 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | 
|  | 11104 | relocations are performed -- see ld's documentation on pseudo-relocs.  */ | 
|  | 11105 | # define LT_DLSYM_CONST | 
|  | 11106 | #elif defined(__osf__) | 
|  | 11107 | /* This system does not cope well with relocations in const data.  */ | 
|  | 11108 | # define LT_DLSYM_CONST | 
|  | 11109 | #else | 
|  | 11110 | # define LT_DLSYM_CONST const | 
|  | 11111 | #endif | 
|  | 11112 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11113 | #ifdef __cplusplus | 
|  | 11114 | extern "C" { | 
|  | 11115 | #endif | 
|  | 11116 |  | 
|  | 11117 | _LT_EOF | 
|  | 11118 | # Now generate the symbol file. | 
|  | 11119 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | 
|  | 11120 |  | 
|  | 11121 | cat <<_LT_EOF >> conftest.$ac_ext | 
|  | 11122 |  | 
|  | 11123 | /* The mapping between symbol names and symbols.  */ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11124 | LT_DLSYM_CONST struct { | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11125 | const char *name; | 
|  | 11126 | void       *address; | 
|  | 11127 | } | 
|  | 11128 | lt__PROGRAM__LTX_preloaded_symbols[] = | 
|  | 11129 | { | 
|  | 11130 | { "@PROGRAM@", (void *) 0 }, | 
|  | 11131 | _LT_EOF | 
|  | 11132 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | 
|  | 11133 | cat <<\_LT_EOF >> conftest.$ac_ext | 
|  | 11134 | {0, (void *) 0} | 
|  | 11135 | }; | 
|  | 11136 |  | 
|  | 11137 | /* This works around a problem in FreeBSD linker */ | 
|  | 11138 | #ifdef FREEBSD_WORKAROUND | 
|  | 11139 | static const void *lt_preloaded_setup() { | 
|  | 11140 | return lt__PROGRAM__LTX_preloaded_symbols; | 
|  | 11141 | } | 
|  | 11142 | #endif | 
|  | 11143 |  | 
|  | 11144 | #ifdef __cplusplus | 
|  | 11145 | } | 
|  | 11146 | #endif | 
|  | 11147 | _LT_EOF | 
|  | 11148 | # Now try linking the two files. | 
|  | 11149 | mv conftest.$ac_objext conftstm.$ac_objext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11150 | lt_globsym_save_LIBS=$LIBS | 
|  | 11151 | lt_globsym_save_CFLAGS=$CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11152 | LIBS="conftstm.$ac_objext" | 
|  | 11153 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | 
|  | 11154 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
|  | 11155 | (eval $ac_link) 2>&5 | 
|  | 11156 | ac_status=$? | 
|  | 11157 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11158 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | 
|  | 11159 | pipe_works=yes | 
|  | 11160 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11161 | LIBS=$lt_globsym_save_LIBS | 
|  | 11162 | CFLAGS=$lt_globsym_save_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11163 | else | 
|  | 11164 | echo "cannot find nm_test_func in $nlist" >&5 | 
|  | 11165 | fi | 
|  | 11166 | else | 
|  | 11167 | echo "cannot find nm_test_var in $nlist" >&5 | 
|  | 11168 | fi | 
|  | 11169 | else | 
|  | 11170 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 11171 | fi | 
|  | 11172 | else | 
|  | 11173 | echo "$progname: failed program was:" >&5 | 
|  | 11174 | cat conftest.$ac_ext >&5 | 
|  | 11175 | fi | 
|  | 11176 | rm -rf conftest* conftst* | 
|  | 11177 |  | 
|  | 11178 | # Do not use the global_symbol_pipe unless it works. | 
|  | 11179 | if test "$pipe_works" = yes; then | 
|  | 11180 | break | 
|  | 11181 | else | 
|  | 11182 | lt_cv_sys_global_symbol_pipe= | 
|  | 11183 | fi | 
|  | 11184 | done | 
|  | 11185 |  | 
|  | 11186 | fi | 
|  | 11187 |  | 
|  | 11188 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 11189 | lt_cv_sys_global_symbol_to_cdecl= | 
|  | 11190 | fi | 
|  | 11191 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | 
|  | 11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | 
|  | 11193 | $as_echo "failed" >&6; } | 
|  | 11194 | else | 
|  | 11195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | 
|  | 11196 | $as_echo "ok" >&6; } | 
|  | 11197 | fi | 
|  | 11198 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11199 | # Response file support. | 
|  | 11200 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | 
|  | 11201 | nm_file_list_spec='@' | 
|  | 11202 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | 
|  | 11203 | nm_file_list_spec='@' | 
|  | 11204 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11205 |  | 
|  | 11206 |  | 
|  | 11207 |  | 
|  | 11208 |  | 
|  | 11209 |  | 
|  | 11210 |  | 
|  | 11211 |  | 
|  | 11212 |  | 
|  | 11213 |  | 
|  | 11214 |  | 
|  | 11215 |  | 
|  | 11216 |  | 
|  | 11217 |  | 
|  | 11218 |  | 
|  | 11219 |  | 
|  | 11220 |  | 
|  | 11221 |  | 
|  | 11222 |  | 
|  | 11223 |  | 
|  | 11224 |  | 
|  | 11225 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11226 |  | 
|  | 11227 |  | 
|  | 11228 |  | 
|  | 11229 |  | 
|  | 11230 |  | 
|  | 11231 |  | 
|  | 11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | 
|  | 11233 | $as_echo_n "checking for sysroot... " >&6; } | 
|  | 11234 |  | 
|  | 11235 | # Check whether --with-sysroot was given. | 
|  | 11236 | if test "${with_sysroot+set}" = set; then : | 
|  | 11237 | withval=$with_sysroot; | 
|  | 11238 | else | 
|  | 11239 | with_sysroot=no | 
|  | 11240 | fi | 
|  | 11241 |  | 
|  | 11242 |  | 
|  | 11243 | lt_sysroot= | 
|  | 11244 | case ${with_sysroot} in #( | 
|  | 11245 | yes) | 
|  | 11246 | if test "$GCC" = yes; then | 
|  | 11247 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | 
|  | 11248 | fi | 
|  | 11249 | ;; #( | 
|  | 11250 | /*) | 
|  | 11251 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | 
|  | 11252 | ;; #( | 
|  | 11253 | no|'') | 
|  | 11254 | ;; #( | 
|  | 11255 | *) | 
|  | 11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | 
|  | 11257 | $as_echo "${with_sysroot}" >&6; } | 
|  | 11258 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | 
|  | 11259 | ;; | 
|  | 11260 | esac | 
|  | 11261 |  | 
|  | 11262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | 
|  | 11263 | $as_echo "${lt_sysroot:-no}" >&6; } | 
|  | 11264 |  | 
|  | 11265 |  | 
|  | 11266 |  | 
|  | 11267 |  | 
|  | 11268 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11269 | # Check whether --enable-libtool-lock was given. | 
|  | 11270 | if test "${enable_libtool_lock+set}" = set; then : | 
|  | 11271 | enableval=$enable_libtool_lock; | 
|  | 11272 | fi | 
|  | 11273 |  | 
|  | 11274 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | 
|  | 11275 |  | 
|  | 11276 | # Some flags need to be propagated to the compiler or linker for good | 
|  | 11277 | # libtool support. | 
|  | 11278 | case $host in | 
|  | 11279 | ia64-*-hpux*) | 
|  | 11280 | # Find out which ABI we are using. | 
|  | 11281 | echo 'int i;' > conftest.$ac_ext | 
|  | 11282 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 11283 | (eval $ac_compile) 2>&5 | 
|  | 11284 | ac_status=$? | 
|  | 11285 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11286 | test $ac_status = 0; }; then | 
|  | 11287 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 11288 | *ELF-32*) | 
|  | 11289 | HPUX_IA64_MODE="32" | 
|  | 11290 | ;; | 
|  | 11291 | *ELF-64*) | 
|  | 11292 | HPUX_IA64_MODE="64" | 
|  | 11293 | ;; | 
|  | 11294 | esac | 
|  | 11295 | fi | 
|  | 11296 | rm -rf conftest* | 
|  | 11297 | ;; | 
|  | 11298 | *-*-irix6*) | 
|  | 11299 | # Find out which ABI we are using. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11300 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11301 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 11302 | (eval $ac_compile) 2>&5 | 
|  | 11303 | ac_status=$? | 
|  | 11304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11305 | test $ac_status = 0; }; then | 
|  | 11306 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 11307 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 11308 | *32-bit*) | 
|  | 11309 | LD="${LD-ld} -melf32bsmip" | 
|  | 11310 | ;; | 
|  | 11311 | *N32*) | 
|  | 11312 | LD="${LD-ld} -melf32bmipn32" | 
|  | 11313 | ;; | 
|  | 11314 | *64-bit*) | 
|  | 11315 | LD="${LD-ld} -melf64bmip" | 
|  | 11316 | ;; | 
|  | 11317 | esac | 
|  | 11318 | else | 
|  | 11319 | case `/usr/bin/file conftest.$ac_objext` in | 
|  | 11320 | *32-bit*) | 
|  | 11321 | LD="${LD-ld} -32" | 
|  | 11322 | ;; | 
|  | 11323 | *N32*) | 
|  | 11324 | LD="${LD-ld} -n32" | 
|  | 11325 | ;; | 
|  | 11326 | *64-bit*) | 
|  | 11327 | LD="${LD-ld} -64" | 
|  | 11328 | ;; | 
|  | 11329 | esac | 
|  | 11330 | fi | 
|  | 11331 | fi | 
|  | 11332 | rm -rf conftest* | 
|  | 11333 | ;; | 
|  | 11334 |  | 
|  | 11335 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | 
|  | 11336 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | 
|  | 11337 | # Find out which ABI we are using. | 
|  | 11338 | echo 'int i;' > conftest.$ac_ext | 
|  | 11339 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 11340 | (eval $ac_compile) 2>&5 | 
|  | 11341 | ac_status=$? | 
|  | 11342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11343 | test $ac_status = 0; }; then | 
|  | 11344 | case `/usr/bin/file conftest.o` in | 
|  | 11345 | *32-bit*) | 
|  | 11346 | case $host in | 
|  | 11347 | x86_64-*kfreebsd*-gnu) | 
|  | 11348 | LD="${LD-ld} -m elf_i386_fbsd" | 
|  | 11349 | ;; | 
|  | 11350 | x86_64-*linux*) | 
|  | 11351 | LD="${LD-ld} -m elf_i386" | 
|  | 11352 | ;; | 
|  | 11353 | ppc64-*linux*|powerpc64-*linux*) | 
|  | 11354 | LD="${LD-ld} -m elf32ppclinux" | 
|  | 11355 | ;; | 
|  | 11356 | s390x-*linux*) | 
|  | 11357 | LD="${LD-ld} -m elf_s390" | 
|  | 11358 | ;; | 
|  | 11359 | sparc64-*linux*) | 
|  | 11360 | LD="${LD-ld} -m elf32_sparc" | 
|  | 11361 | ;; | 
|  | 11362 | esac | 
|  | 11363 | ;; | 
|  | 11364 | *64-bit*) | 
|  | 11365 | case $host in | 
|  | 11366 | x86_64-*kfreebsd*-gnu) | 
|  | 11367 | LD="${LD-ld} -m elf_x86_64_fbsd" | 
|  | 11368 | ;; | 
|  | 11369 | x86_64-*linux*) | 
|  | 11370 | LD="${LD-ld} -m elf_x86_64" | 
|  | 11371 | ;; | 
|  | 11372 | ppc*-*linux*|powerpc*-*linux*) | 
|  | 11373 | LD="${LD-ld} -m elf64ppc" | 
|  | 11374 | ;; | 
|  | 11375 | s390*-*linux*|s390*-*tpf*) | 
|  | 11376 | LD="${LD-ld} -m elf64_s390" | 
|  | 11377 | ;; | 
|  | 11378 | sparc*-*linux*) | 
|  | 11379 | LD="${LD-ld} -m elf64_sparc" | 
|  | 11380 | ;; | 
|  | 11381 | esac | 
|  | 11382 | ;; | 
|  | 11383 | esac | 
|  | 11384 | fi | 
|  | 11385 | rm -rf conftest* | 
|  | 11386 | ;; | 
|  | 11387 |  | 
|  | 11388 | *-*-sco3.2v5*) | 
|  | 11389 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | 
|  | 11390 | SAVE_CFLAGS="$CFLAGS" | 
|  | 11391 | CFLAGS="$CFLAGS -belf" | 
|  | 11392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | 
|  | 11393 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11394 | if ${lt_cv_cc_needs_belf+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11395 | $as_echo_n "(cached) " >&6 | 
|  | 11396 | else | 
|  | 11397 | ac_ext=c | 
|  | 11398 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 11399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 11400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 11401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 11402 |  | 
|  | 11403 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 11404 | /* end confdefs.h.  */ | 
|  | 11405 |  | 
|  | 11406 | int | 
|  | 11407 | main () | 
|  | 11408 | { | 
|  | 11409 |  | 
|  | 11410 | ; | 
|  | 11411 | return 0; | 
|  | 11412 | } | 
|  | 11413 | _ACEOF | 
|  | 11414 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 11415 | lt_cv_cc_needs_belf=yes | 
|  | 11416 | else | 
|  | 11417 | lt_cv_cc_needs_belf=no | 
|  | 11418 | fi | 
|  | 11419 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 11420 | conftest$ac_exeext conftest.$ac_ext | 
|  | 11421 | ac_ext=c | 
|  | 11422 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 11423 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 11424 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 11425 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 11426 |  | 
|  | 11427 | fi | 
|  | 11428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | 
|  | 11429 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | 
|  | 11430 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 
|  | 11431 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 
|  | 11432 | CFLAGS="$SAVE_CFLAGS" | 
|  | 11433 | fi | 
|  | 11434 | ;; | 
|  | 11435 | sparc*-*solaris*) | 
|  | 11436 | # Find out which ABI we are using. | 
|  | 11437 | echo 'int i;' > conftest.$ac_ext | 
|  | 11438 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 11439 | (eval $ac_compile) 2>&5 | 
|  | 11440 | ac_status=$? | 
|  | 11441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 11442 | test $ac_status = 0; }; then | 
|  | 11443 | case `/usr/bin/file conftest.o` in | 
|  | 11444 | *64-bit*) | 
|  | 11445 | case $lt_cv_prog_gnu_ld in | 
|  | 11446 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | 
|  | 11447 | *) | 
|  | 11448 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | 
|  | 11449 | LD="${LD-ld} -64" | 
|  | 11450 | fi | 
|  | 11451 | ;; | 
|  | 11452 | esac | 
|  | 11453 | ;; | 
|  | 11454 | esac | 
|  | 11455 | fi | 
|  | 11456 | rm -rf conftest* | 
|  | 11457 | ;; | 
|  | 11458 | esac | 
|  | 11459 |  | 
|  | 11460 | need_locks="$enable_libtool_lock" | 
|  | 11461 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11462 | if test -n "$ac_tool_prefix"; then | 
|  | 11463 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | 
|  | 11464 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | 
|  | 11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11466 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 11467 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | 
|  | 11468 | $as_echo_n "(cached) " >&6 | 
|  | 11469 | else | 
|  | 11470 | if test -n "$MANIFEST_TOOL"; then | 
|  | 11471 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | 
|  | 11472 | else | 
|  | 11473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11474 | for as_dir in $PATH | 
|  | 11475 | do | 
|  | 11476 | IFS=$as_save_IFS | 
|  | 11477 | test -z "$as_dir" && as_dir=. | 
|  | 11478 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11480 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | 
|  | 11481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11482 | break 2 | 
|  | 11483 | fi | 
|  | 11484 | done | 
|  | 11485 | done | 
|  | 11486 | IFS=$as_save_IFS | 
|  | 11487 |  | 
|  | 11488 | fi | 
|  | 11489 | fi | 
|  | 11490 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | 
|  | 11491 | if test -n "$MANIFEST_TOOL"; then | 
|  | 11492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | 
|  | 11493 | $as_echo "$MANIFEST_TOOL" >&6; } | 
|  | 11494 | else | 
|  | 11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11496 | $as_echo "no" >&6; } | 
|  | 11497 | fi | 
|  | 11498 |  | 
|  | 11499 |  | 
|  | 11500 | fi | 
|  | 11501 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | 
|  | 11502 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | 
|  | 11503 | # Extract the first word of "mt", so it can be a program name with args. | 
|  | 11504 | set dummy mt; ac_word=$2 | 
|  | 11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11506 | $as_echo_n "checking for $ac_word... " >&6; } | 
|  | 11507 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | 
|  | 11508 | $as_echo_n "(cached) " >&6 | 
|  | 11509 | else | 
|  | 11510 | if test -n "$ac_ct_MANIFEST_TOOL"; then | 
|  | 11511 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | 
|  | 11512 | else | 
|  | 11513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11514 | for as_dir in $PATH | 
|  | 11515 | do | 
|  | 11516 | IFS=$as_save_IFS | 
|  | 11517 | test -z "$as_dir" && as_dir=. | 
|  | 11518 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11519 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11520 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | 
|  | 11521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11522 | break 2 | 
|  | 11523 | fi | 
|  | 11524 | done | 
|  | 11525 | done | 
|  | 11526 | IFS=$as_save_IFS | 
|  | 11527 |  | 
|  | 11528 | fi | 
|  | 11529 | fi | 
|  | 11530 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | 
|  | 11531 | if test -n "$ac_ct_MANIFEST_TOOL"; then | 
|  | 11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | 
|  | 11533 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | 
|  | 11534 | else | 
|  | 11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11536 | $as_echo "no" >&6; } | 
|  | 11537 | fi | 
|  | 11538 |  | 
|  | 11539 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | 
|  | 11540 | MANIFEST_TOOL=":" | 
|  | 11541 | else | 
|  | 11542 | case $cross_compiling:$ac_tool_warned in | 
|  | 11543 | yes:) | 
|  | 11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 11545 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11546 | ac_tool_warned=yes ;; | 
|  | 11547 | esac | 
|  | 11548 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | 
|  | 11549 | fi | 
|  | 11550 | else | 
|  | 11551 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | 
|  | 11552 | fi | 
|  | 11553 |  | 
|  | 11554 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | 
|  | 11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | 
|  | 11556 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | 
|  | 11557 | if ${lt_cv_path_mainfest_tool+:} false; then : | 
|  | 11558 | $as_echo_n "(cached) " >&6 | 
|  | 11559 | else | 
|  | 11560 | lt_cv_path_mainfest_tool=no | 
|  | 11561 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | 
|  | 11562 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | 
|  | 11563 | cat conftest.err >&5 | 
|  | 11564 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | 
|  | 11565 | lt_cv_path_mainfest_tool=yes | 
|  | 11566 | fi | 
|  | 11567 | rm -f conftest* | 
|  | 11568 | fi | 
|  | 11569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | 
|  | 11570 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | 
|  | 11571 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | 
|  | 11572 | MANIFEST_TOOL=: | 
|  | 11573 | fi | 
|  | 11574 |  | 
|  | 11575 |  | 
|  | 11576 |  | 
|  | 11577 |  | 
|  | 11578 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11579 |  | 
|  | 11580 | case $host_os in | 
|  | 11581 | rhapsody* | darwin*) | 
|  | 11582 | if test -n "$ac_tool_prefix"; then | 
|  | 11583 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | 
|  | 11584 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | 
|  | 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11586 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11587 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11588 | $as_echo_n "(cached) " >&6 | 
|  | 11589 | else | 
|  | 11590 | if test -n "$DSYMUTIL"; then | 
|  | 11591 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | 
|  | 11592 | else | 
|  | 11593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11594 | for as_dir in $PATH | 
|  | 11595 | do | 
|  | 11596 | IFS=$as_save_IFS | 
|  | 11597 | test -z "$as_dir" && as_dir=. | 
|  | 11598 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11600 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | 
|  | 11601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11602 | break 2 | 
|  | 11603 | fi | 
|  | 11604 | done | 
|  | 11605 | done | 
|  | 11606 | IFS=$as_save_IFS | 
|  | 11607 |  | 
|  | 11608 | fi | 
|  | 11609 | fi | 
|  | 11610 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | 
|  | 11611 | if test -n "$DSYMUTIL"; then | 
|  | 11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | 
|  | 11613 | $as_echo "$DSYMUTIL" >&6; } | 
|  | 11614 | else | 
|  | 11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11616 | $as_echo "no" >&6; } | 
|  | 11617 | fi | 
|  | 11618 |  | 
|  | 11619 |  | 
|  | 11620 | fi | 
|  | 11621 | if test -z "$ac_cv_prog_DSYMUTIL"; then | 
|  | 11622 | ac_ct_DSYMUTIL=$DSYMUTIL | 
|  | 11623 | # Extract the first word of "dsymutil", so it can be a program name with args. | 
|  | 11624 | set dummy dsymutil; ac_word=$2 | 
|  | 11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11626 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11627 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11628 | $as_echo_n "(cached) " >&6 | 
|  | 11629 | else | 
|  | 11630 | if test -n "$ac_ct_DSYMUTIL"; then | 
|  | 11631 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | 
|  | 11632 | else | 
|  | 11633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11634 | for as_dir in $PATH | 
|  | 11635 | do | 
|  | 11636 | IFS=$as_save_IFS | 
|  | 11637 | test -z "$as_dir" && as_dir=. | 
|  | 11638 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11640 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | 
|  | 11641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11642 | break 2 | 
|  | 11643 | fi | 
|  | 11644 | done | 
|  | 11645 | done | 
|  | 11646 | IFS=$as_save_IFS | 
|  | 11647 |  | 
|  | 11648 | fi | 
|  | 11649 | fi | 
|  | 11650 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | 
|  | 11651 | if test -n "$ac_ct_DSYMUTIL"; then | 
|  | 11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | 
|  | 11653 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | 
|  | 11654 | else | 
|  | 11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11656 | $as_echo "no" >&6; } | 
|  | 11657 | fi | 
|  | 11658 |  | 
|  | 11659 | if test "x$ac_ct_DSYMUTIL" = x; then | 
|  | 11660 | DSYMUTIL=":" | 
|  | 11661 | else | 
|  | 11662 | case $cross_compiling:$ac_tool_warned in | 
|  | 11663 | yes:) | 
|  | 11664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 11665 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11666 | ac_tool_warned=yes ;; | 
|  | 11667 | esac | 
|  | 11668 | DSYMUTIL=$ac_ct_DSYMUTIL | 
|  | 11669 | fi | 
|  | 11670 | else | 
|  | 11671 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | 
|  | 11672 | fi | 
|  | 11673 |  | 
|  | 11674 | if test -n "$ac_tool_prefix"; then | 
|  | 11675 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | 
|  | 11676 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | 
|  | 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11678 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11679 | if ${ac_cv_prog_NMEDIT+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11680 | $as_echo_n "(cached) " >&6 | 
|  | 11681 | else | 
|  | 11682 | if test -n "$NMEDIT"; then | 
|  | 11683 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | 
|  | 11684 | else | 
|  | 11685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11686 | for as_dir in $PATH | 
|  | 11687 | do | 
|  | 11688 | IFS=$as_save_IFS | 
|  | 11689 | test -z "$as_dir" && as_dir=. | 
|  | 11690 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11692 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | 
|  | 11693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11694 | break 2 | 
|  | 11695 | fi | 
|  | 11696 | done | 
|  | 11697 | done | 
|  | 11698 | IFS=$as_save_IFS | 
|  | 11699 |  | 
|  | 11700 | fi | 
|  | 11701 | fi | 
|  | 11702 | NMEDIT=$ac_cv_prog_NMEDIT | 
|  | 11703 | if test -n "$NMEDIT"; then | 
|  | 11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | 
|  | 11705 | $as_echo "$NMEDIT" >&6; } | 
|  | 11706 | else | 
|  | 11707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11708 | $as_echo "no" >&6; } | 
|  | 11709 | fi | 
|  | 11710 |  | 
|  | 11711 |  | 
|  | 11712 | fi | 
|  | 11713 | if test -z "$ac_cv_prog_NMEDIT"; then | 
|  | 11714 | ac_ct_NMEDIT=$NMEDIT | 
|  | 11715 | # Extract the first word of "nmedit", so it can be a program name with args. | 
|  | 11716 | set dummy nmedit; ac_word=$2 | 
|  | 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11718 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11719 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11720 | $as_echo_n "(cached) " >&6 | 
|  | 11721 | else | 
|  | 11722 | if test -n "$ac_ct_NMEDIT"; then | 
|  | 11723 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | 
|  | 11724 | else | 
|  | 11725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11726 | for as_dir in $PATH | 
|  | 11727 | do | 
|  | 11728 | IFS=$as_save_IFS | 
|  | 11729 | test -z "$as_dir" && as_dir=. | 
|  | 11730 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11732 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | 
|  | 11733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11734 | break 2 | 
|  | 11735 | fi | 
|  | 11736 | done | 
|  | 11737 | done | 
|  | 11738 | IFS=$as_save_IFS | 
|  | 11739 |  | 
|  | 11740 | fi | 
|  | 11741 | fi | 
|  | 11742 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | 
|  | 11743 | if test -n "$ac_ct_NMEDIT"; then | 
|  | 11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | 
|  | 11745 | $as_echo "$ac_ct_NMEDIT" >&6; } | 
|  | 11746 | else | 
|  | 11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11748 | $as_echo "no" >&6; } | 
|  | 11749 | fi | 
|  | 11750 |  | 
|  | 11751 | if test "x$ac_ct_NMEDIT" = x; then | 
|  | 11752 | NMEDIT=":" | 
|  | 11753 | else | 
|  | 11754 | case $cross_compiling:$ac_tool_warned in | 
|  | 11755 | yes:) | 
|  | 11756 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 11757 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11758 | ac_tool_warned=yes ;; | 
|  | 11759 | esac | 
|  | 11760 | NMEDIT=$ac_ct_NMEDIT | 
|  | 11761 | fi | 
|  | 11762 | else | 
|  | 11763 | NMEDIT="$ac_cv_prog_NMEDIT" | 
|  | 11764 | fi | 
|  | 11765 |  | 
|  | 11766 | if test -n "$ac_tool_prefix"; then | 
|  | 11767 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | 
|  | 11768 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | 
|  | 11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11770 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11771 | if ${ac_cv_prog_LIPO+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11772 | $as_echo_n "(cached) " >&6 | 
|  | 11773 | else | 
|  | 11774 | if test -n "$LIPO"; then | 
|  | 11775 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | 
|  | 11776 | else | 
|  | 11777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11778 | for as_dir in $PATH | 
|  | 11779 | do | 
|  | 11780 | IFS=$as_save_IFS | 
|  | 11781 | test -z "$as_dir" && as_dir=. | 
|  | 11782 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11784 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | 
|  | 11785 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11786 | break 2 | 
|  | 11787 | fi | 
|  | 11788 | done | 
|  | 11789 | done | 
|  | 11790 | IFS=$as_save_IFS | 
|  | 11791 |  | 
|  | 11792 | fi | 
|  | 11793 | fi | 
|  | 11794 | LIPO=$ac_cv_prog_LIPO | 
|  | 11795 | if test -n "$LIPO"; then | 
|  | 11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | 
|  | 11797 | $as_echo "$LIPO" >&6; } | 
|  | 11798 | else | 
|  | 11799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11800 | $as_echo "no" >&6; } | 
|  | 11801 | fi | 
|  | 11802 |  | 
|  | 11803 |  | 
|  | 11804 | fi | 
|  | 11805 | if test -z "$ac_cv_prog_LIPO"; then | 
|  | 11806 | ac_ct_LIPO=$LIPO | 
|  | 11807 | # Extract the first word of "lipo", so it can be a program name with args. | 
|  | 11808 | set dummy lipo; ac_word=$2 | 
|  | 11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11810 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11811 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11812 | $as_echo_n "(cached) " >&6 | 
|  | 11813 | else | 
|  | 11814 | if test -n "$ac_ct_LIPO"; then | 
|  | 11815 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | 
|  | 11816 | else | 
|  | 11817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11818 | for as_dir in $PATH | 
|  | 11819 | do | 
|  | 11820 | IFS=$as_save_IFS | 
|  | 11821 | test -z "$as_dir" && as_dir=. | 
|  | 11822 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11824 | ac_cv_prog_ac_ct_LIPO="lipo" | 
|  | 11825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11826 | break 2 | 
|  | 11827 | fi | 
|  | 11828 | done | 
|  | 11829 | done | 
|  | 11830 | IFS=$as_save_IFS | 
|  | 11831 |  | 
|  | 11832 | fi | 
|  | 11833 | fi | 
|  | 11834 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | 
|  | 11835 | if test -n "$ac_ct_LIPO"; then | 
|  | 11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | 
|  | 11837 | $as_echo "$ac_ct_LIPO" >&6; } | 
|  | 11838 | else | 
|  | 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11840 | $as_echo "no" >&6; } | 
|  | 11841 | fi | 
|  | 11842 |  | 
|  | 11843 | if test "x$ac_ct_LIPO" = x; then | 
|  | 11844 | LIPO=":" | 
|  | 11845 | else | 
|  | 11846 | case $cross_compiling:$ac_tool_warned in | 
|  | 11847 | yes:) | 
|  | 11848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 11849 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11850 | ac_tool_warned=yes ;; | 
|  | 11851 | esac | 
|  | 11852 | LIPO=$ac_ct_LIPO | 
|  | 11853 | fi | 
|  | 11854 | else | 
|  | 11855 | LIPO="$ac_cv_prog_LIPO" | 
|  | 11856 | fi | 
|  | 11857 |  | 
|  | 11858 | if test -n "$ac_tool_prefix"; then | 
|  | 11859 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | 
|  | 11860 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | 
|  | 11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11862 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11863 | if ${ac_cv_prog_OTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11864 | $as_echo_n "(cached) " >&6 | 
|  | 11865 | else | 
|  | 11866 | if test -n "$OTOOL"; then | 
|  | 11867 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | 
|  | 11868 | else | 
|  | 11869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11870 | for as_dir in $PATH | 
|  | 11871 | do | 
|  | 11872 | IFS=$as_save_IFS | 
|  | 11873 | test -z "$as_dir" && as_dir=. | 
|  | 11874 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11876 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | 
|  | 11877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11878 | break 2 | 
|  | 11879 | fi | 
|  | 11880 | done | 
|  | 11881 | done | 
|  | 11882 | IFS=$as_save_IFS | 
|  | 11883 |  | 
|  | 11884 | fi | 
|  | 11885 | fi | 
|  | 11886 | OTOOL=$ac_cv_prog_OTOOL | 
|  | 11887 | if test -n "$OTOOL"; then | 
|  | 11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | 
|  | 11889 | $as_echo "$OTOOL" >&6; } | 
|  | 11890 | else | 
|  | 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11892 | $as_echo "no" >&6; } | 
|  | 11893 | fi | 
|  | 11894 |  | 
|  | 11895 |  | 
|  | 11896 | fi | 
|  | 11897 | if test -z "$ac_cv_prog_OTOOL"; then | 
|  | 11898 | ac_ct_OTOOL=$OTOOL | 
|  | 11899 | # Extract the first word of "otool", so it can be a program name with args. | 
|  | 11900 | set dummy otool; ac_word=$2 | 
|  | 11901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11902 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11903 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11904 | $as_echo_n "(cached) " >&6 | 
|  | 11905 | else | 
|  | 11906 | if test -n "$ac_ct_OTOOL"; then | 
|  | 11907 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | 
|  | 11908 | else | 
|  | 11909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11910 | for as_dir in $PATH | 
|  | 11911 | do | 
|  | 11912 | IFS=$as_save_IFS | 
|  | 11913 | test -z "$as_dir" && as_dir=. | 
|  | 11914 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11916 | ac_cv_prog_ac_ct_OTOOL="otool" | 
|  | 11917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11918 | break 2 | 
|  | 11919 | fi | 
|  | 11920 | done | 
|  | 11921 | done | 
|  | 11922 | IFS=$as_save_IFS | 
|  | 11923 |  | 
|  | 11924 | fi | 
|  | 11925 | fi | 
|  | 11926 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | 
|  | 11927 | if test -n "$ac_ct_OTOOL"; then | 
|  | 11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | 
|  | 11929 | $as_echo "$ac_ct_OTOOL" >&6; } | 
|  | 11930 | else | 
|  | 11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11932 | $as_echo "no" >&6; } | 
|  | 11933 | fi | 
|  | 11934 |  | 
|  | 11935 | if test "x$ac_ct_OTOOL" = x; then | 
|  | 11936 | OTOOL=":" | 
|  | 11937 | else | 
|  | 11938 | case $cross_compiling:$ac_tool_warned in | 
|  | 11939 | yes:) | 
|  | 11940 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 11941 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 11942 | ac_tool_warned=yes ;; | 
|  | 11943 | esac | 
|  | 11944 | OTOOL=$ac_ct_OTOOL | 
|  | 11945 | fi | 
|  | 11946 | else | 
|  | 11947 | OTOOL="$ac_cv_prog_OTOOL" | 
|  | 11948 | fi | 
|  | 11949 |  | 
|  | 11950 | if test -n "$ac_tool_prefix"; then | 
|  | 11951 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | 
|  | 11952 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | 
|  | 11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11954 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11955 | if ${ac_cv_prog_OTOOL64+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11956 | $as_echo_n "(cached) " >&6 | 
|  | 11957 | else | 
|  | 11958 | if test -n "$OTOOL64"; then | 
|  | 11959 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | 
|  | 11960 | else | 
|  | 11961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 11962 | for as_dir in $PATH | 
|  | 11963 | do | 
|  | 11964 | IFS=$as_save_IFS | 
|  | 11965 | test -z "$as_dir" && as_dir=. | 
|  | 11966 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 11967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 11968 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | 
|  | 11969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 11970 | break 2 | 
|  | 11971 | fi | 
|  | 11972 | done | 
|  | 11973 | done | 
|  | 11974 | IFS=$as_save_IFS | 
|  | 11975 |  | 
|  | 11976 | fi | 
|  | 11977 | fi | 
|  | 11978 | OTOOL64=$ac_cv_prog_OTOOL64 | 
|  | 11979 | if test -n "$OTOOL64"; then | 
|  | 11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | 
|  | 11981 | $as_echo "$OTOOL64" >&6; } | 
|  | 11982 | else | 
|  | 11983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 11984 | $as_echo "no" >&6; } | 
|  | 11985 | fi | 
|  | 11986 |  | 
|  | 11987 |  | 
|  | 11988 | fi | 
|  | 11989 | if test -z "$ac_cv_prog_OTOOL64"; then | 
|  | 11990 | ac_ct_OTOOL64=$OTOOL64 | 
|  | 11991 | # Extract the first word of "otool64", so it can be a program name with args. | 
|  | 11992 | set dummy otool64; ac_word=$2 | 
|  | 11993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 11994 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11995 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11996 | $as_echo_n "(cached) " >&6 | 
|  | 11997 | else | 
|  | 11998 | if test -n "$ac_ct_OTOOL64"; then | 
|  | 11999 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | 
|  | 12000 | else | 
|  | 12001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12002 | for as_dir in $PATH | 
|  | 12003 | do | 
|  | 12004 | IFS=$as_save_IFS | 
|  | 12005 | test -z "$as_dir" && as_dir=. | 
|  | 12006 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12008 | ac_cv_prog_ac_ct_OTOOL64="otool64" | 
|  | 12009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12010 | break 2 | 
|  | 12011 | fi | 
|  | 12012 | done | 
|  | 12013 | done | 
|  | 12014 | IFS=$as_save_IFS | 
|  | 12015 |  | 
|  | 12016 | fi | 
|  | 12017 | fi | 
|  | 12018 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | 
|  | 12019 | if test -n "$ac_ct_OTOOL64"; then | 
|  | 12020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | 
|  | 12021 | $as_echo "$ac_ct_OTOOL64" >&6; } | 
|  | 12022 | else | 
|  | 12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12024 | $as_echo "no" >&6; } | 
|  | 12025 | fi | 
|  | 12026 |  | 
|  | 12027 | if test "x$ac_ct_OTOOL64" = x; then | 
|  | 12028 | OTOOL64=":" | 
|  | 12029 | else | 
|  | 12030 | case $cross_compiling:$ac_tool_warned in | 
|  | 12031 | yes:) | 
|  | 12032 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 12033 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 12034 | ac_tool_warned=yes ;; | 
|  | 12035 | esac | 
|  | 12036 | OTOOL64=$ac_ct_OTOOL64 | 
|  | 12037 | fi | 
|  | 12038 | else | 
|  | 12039 | OTOOL64="$ac_cv_prog_OTOOL64" | 
|  | 12040 | fi | 
|  | 12041 |  | 
|  | 12042 |  | 
|  | 12043 |  | 
|  | 12044 |  | 
|  | 12045 |  | 
|  | 12046 |  | 
|  | 12047 |  | 
|  | 12048 |  | 
|  | 12049 |  | 
|  | 12050 |  | 
|  | 12051 |  | 
|  | 12052 |  | 
|  | 12053 |  | 
|  | 12054 |  | 
|  | 12055 |  | 
|  | 12056 |  | 
|  | 12057 |  | 
|  | 12058 |  | 
|  | 12059 |  | 
|  | 12060 |  | 
|  | 12061 |  | 
|  | 12062 |  | 
|  | 12063 |  | 
|  | 12064 |  | 
|  | 12065 |  | 
|  | 12066 |  | 
|  | 12067 |  | 
|  | 12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | 
|  | 12069 | $as_echo_n "checking for -single_module linker flag... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12070 | if ${lt_cv_apple_cc_single_mod+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12071 | $as_echo_n "(cached) " >&6 | 
|  | 12072 | else | 
|  | 12073 | lt_cv_apple_cc_single_mod=no | 
|  | 12074 | if test -z "${LT_MULTI_MODULE}"; then | 
|  | 12075 | # By default we will add the -single_module flag. You can override | 
|  | 12076 | # by either setting the environment variable LT_MULTI_MODULE | 
|  | 12077 | # non-empty at configure time, or by adding -multi_module to the | 
|  | 12078 | # link flags. | 
|  | 12079 | rm -rf libconftest.dylib* | 
|  | 12080 | echo "int foo(void){return 1;}" > conftest.c | 
|  | 12081 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 
|  | 12082 | -dynamiclib -Wl,-single_module conftest.c" >&5 | 
|  | 12083 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | 
|  | 12084 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | 
|  | 12085 | _lt_result=$? | 
|  | 12086 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | 
|  | 12087 | lt_cv_apple_cc_single_mod=yes | 
|  | 12088 | else | 
|  | 12089 | cat conftest.err >&5 | 
|  | 12090 | fi | 
|  | 12091 | rm -rf libconftest.dylib* | 
|  | 12092 | rm -f conftest.* | 
|  | 12093 | fi | 
|  | 12094 | fi | 
|  | 12095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | 
|  | 12096 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | 
|  | 12097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | 
|  | 12098 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12099 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12100 | $as_echo_n "(cached) " >&6 | 
|  | 12101 | else | 
|  | 12102 | lt_cv_ld_exported_symbols_list=no | 
|  | 12103 | save_LDFLAGS=$LDFLAGS | 
|  | 12104 | echo "_main" > conftest.sym | 
|  | 12105 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | 
|  | 12106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 12107 | /* end confdefs.h.  */ | 
|  | 12108 |  | 
|  | 12109 | int | 
|  | 12110 | main () | 
|  | 12111 | { | 
|  | 12112 |  | 
|  | 12113 | ; | 
|  | 12114 | return 0; | 
|  | 12115 | } | 
|  | 12116 | _ACEOF | 
|  | 12117 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 12118 | lt_cv_ld_exported_symbols_list=yes | 
|  | 12119 | else | 
|  | 12120 | lt_cv_ld_exported_symbols_list=no | 
|  | 12121 | fi | 
|  | 12122 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 12123 | conftest$ac_exeext conftest.$ac_ext | 
|  | 12124 | LDFLAGS="$save_LDFLAGS" | 
|  | 12125 |  | 
|  | 12126 | fi | 
|  | 12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | 
|  | 12128 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | 
|  | 12130 | $as_echo_n "checking for -force_load linker flag... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12131 | if ${lt_cv_ld_force_load+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12132 | $as_echo_n "(cached) " >&6 | 
|  | 12133 | else | 
|  | 12134 | lt_cv_ld_force_load=no | 
|  | 12135 | cat > conftest.c << _LT_EOF | 
|  | 12136 | int forced_loaded() { return 2;} | 
|  | 12137 | _LT_EOF | 
|  | 12138 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | 
|  | 12139 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | 
|  | 12140 | echo "$AR cru libconftest.a conftest.o" >&5 | 
|  | 12141 | $AR cru libconftest.a conftest.o 2>&5 | 
|  | 12142 | echo "$RANLIB libconftest.a" >&5 | 
|  | 12143 | $RANLIB libconftest.a 2>&5 | 
|  | 12144 | cat > conftest.c << _LT_EOF | 
|  | 12145 | int main() { return 0;} | 
|  | 12146 | _LT_EOF | 
|  | 12147 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | 
|  | 12148 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | 
|  | 12149 | _lt_result=$? | 
|  | 12150 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | 
|  | 12151 | lt_cv_ld_force_load=yes | 
|  | 12152 | else | 
|  | 12153 | cat conftest.err >&5 | 
|  | 12154 | fi | 
|  | 12155 | rm -f conftest.err libconftest.a conftest conftest.c | 
|  | 12156 | rm -rf conftest.dSYM | 
|  | 12157 |  | 
|  | 12158 | fi | 
|  | 12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | 
|  | 12160 | $as_echo "$lt_cv_ld_force_load" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12161 | case $host_os in | 
|  | 12162 | rhapsody* | darwin1.[012]) | 
|  | 12163 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | 
|  | 12164 | darwin1.*) | 
|  | 12165 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 
|  | 12166 | darwin*) # darwin 5.x on | 
|  | 12167 | # if running on 10.5 or later, the deployment target defaults | 
|  | 12168 | # to the OS version, if on x86, and 10.4, the deployment | 
|  | 12169 | # target defaults to 10.4. Don't you love it? | 
|  | 12170 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | 
|  | 12171 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | 
|  | 12172 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 
|  | 12173 | 10.[012]*) | 
|  | 12174 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | 
|  | 12175 | 10.*) | 
|  | 12176 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | 
|  | 12177 | esac | 
|  | 12178 | ;; | 
|  | 12179 | esac | 
|  | 12180 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | 
|  | 12181 | _lt_dar_single_mod='$single_module' | 
|  | 12182 | fi | 
|  | 12183 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | 
|  | 12184 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | 
|  | 12185 | else | 
|  | 12186 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | 
|  | 12187 | fi | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12188 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12189 | _lt_dsymutil='~$DSYMUTIL $lib || :' | 
|  | 12190 | else | 
|  | 12191 | _lt_dsymutil= | 
|  | 12192 | fi | 
|  | 12193 | ;; | 
|  | 12194 | esac | 
|  | 12195 |  | 
|  | 12196 | for ac_header in dlfcn.h | 
|  | 12197 | do : | 
|  | 12198 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | 
|  | 12199 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12200 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12201 | cat >>confdefs.h <<_ACEOF | 
|  | 12202 | #define HAVE_DLFCN_H 1 | 
|  | 12203 | _ACEOF | 
|  | 12204 |  | 
|  | 12205 | fi | 
|  | 12206 |  | 
|  | 12207 | done | 
|  | 12208 |  | 
|  | 12209 |  | 
|  | 12210 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12211 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12212 | func_stripname_cnf () | 
|  | 12213 | { | 
|  | 12214 | case ${2} in | 
|  | 12215 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | 
|  | 12216 | *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | 
|  | 12217 | esac | 
|  | 12218 | } # func_stripname_cnf | 
|  | 12219 |  | 
|  | 12220 |  | 
|  | 12221 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12222 |  | 
|  | 12223 |  | 
|  | 12224 | # Set options | 
|  | 12225 | enable_win32_dll=yes | 
|  | 12226 |  | 
|  | 12227 | case $host in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12228 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12229 | if test -n "$ac_tool_prefix"; then | 
|  | 12230 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | 
|  | 12231 | set dummy ${ac_tool_prefix}as; ac_word=$2 | 
|  | 12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 12233 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12234 | if ${ac_cv_prog_AS+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12235 | $as_echo_n "(cached) " >&6 | 
|  | 12236 | else | 
|  | 12237 | if test -n "$AS"; then | 
|  | 12238 | ac_cv_prog_AS="$AS" # Let the user override the test. | 
|  | 12239 | else | 
|  | 12240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12241 | for as_dir in $PATH | 
|  | 12242 | do | 
|  | 12243 | IFS=$as_save_IFS | 
|  | 12244 | test -z "$as_dir" && as_dir=. | 
|  | 12245 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12247 | ac_cv_prog_AS="${ac_tool_prefix}as" | 
|  | 12248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12249 | break 2 | 
|  | 12250 | fi | 
|  | 12251 | done | 
|  | 12252 | done | 
|  | 12253 | IFS=$as_save_IFS | 
|  | 12254 |  | 
|  | 12255 | fi | 
|  | 12256 | fi | 
|  | 12257 | AS=$ac_cv_prog_AS | 
|  | 12258 | if test -n "$AS"; then | 
|  | 12259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | 
|  | 12260 | $as_echo "$AS" >&6; } | 
|  | 12261 | else | 
|  | 12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12263 | $as_echo "no" >&6; } | 
|  | 12264 | fi | 
|  | 12265 |  | 
|  | 12266 |  | 
|  | 12267 | fi | 
|  | 12268 | if test -z "$ac_cv_prog_AS"; then | 
|  | 12269 | ac_ct_AS=$AS | 
|  | 12270 | # Extract the first word of "as", so it can be a program name with args. | 
|  | 12271 | set dummy as; ac_word=$2 | 
|  | 12272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 12273 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12274 | if ${ac_cv_prog_ac_ct_AS+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12275 | $as_echo_n "(cached) " >&6 | 
|  | 12276 | else | 
|  | 12277 | if test -n "$ac_ct_AS"; then | 
|  | 12278 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | 
|  | 12279 | else | 
|  | 12280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12281 | for as_dir in $PATH | 
|  | 12282 | do | 
|  | 12283 | IFS=$as_save_IFS | 
|  | 12284 | test -z "$as_dir" && as_dir=. | 
|  | 12285 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12287 | ac_cv_prog_ac_ct_AS="as" | 
|  | 12288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12289 | break 2 | 
|  | 12290 | fi | 
|  | 12291 | done | 
|  | 12292 | done | 
|  | 12293 | IFS=$as_save_IFS | 
|  | 12294 |  | 
|  | 12295 | fi | 
|  | 12296 | fi | 
|  | 12297 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | 
|  | 12298 | if test -n "$ac_ct_AS"; then | 
|  | 12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | 
|  | 12300 | $as_echo "$ac_ct_AS" >&6; } | 
|  | 12301 | else | 
|  | 12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12303 | $as_echo "no" >&6; } | 
|  | 12304 | fi | 
|  | 12305 |  | 
|  | 12306 | if test "x$ac_ct_AS" = x; then | 
|  | 12307 | AS="false" | 
|  | 12308 | else | 
|  | 12309 | case $cross_compiling:$ac_tool_warned in | 
|  | 12310 | yes:) | 
|  | 12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 12312 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 12313 | ac_tool_warned=yes ;; | 
|  | 12314 | esac | 
|  | 12315 | AS=$ac_ct_AS | 
|  | 12316 | fi | 
|  | 12317 | else | 
|  | 12318 | AS="$ac_cv_prog_AS" | 
|  | 12319 | fi | 
|  | 12320 |  | 
|  | 12321 | if test -n "$ac_tool_prefix"; then | 
|  | 12322 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | 
|  | 12323 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | 
|  | 12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 12325 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12326 | if ${ac_cv_prog_DLLTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12327 | $as_echo_n "(cached) " >&6 | 
|  | 12328 | else | 
|  | 12329 | if test -n "$DLLTOOL"; then | 
|  | 12330 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | 
|  | 12331 | else | 
|  | 12332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12333 | for as_dir in $PATH | 
|  | 12334 | do | 
|  | 12335 | IFS=$as_save_IFS | 
|  | 12336 | test -z "$as_dir" && as_dir=. | 
|  | 12337 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12339 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | 
|  | 12340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12341 | break 2 | 
|  | 12342 | fi | 
|  | 12343 | done | 
|  | 12344 | done | 
|  | 12345 | IFS=$as_save_IFS | 
|  | 12346 |  | 
|  | 12347 | fi | 
|  | 12348 | fi | 
|  | 12349 | DLLTOOL=$ac_cv_prog_DLLTOOL | 
|  | 12350 | if test -n "$DLLTOOL"; then | 
|  | 12351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | 
|  | 12352 | $as_echo "$DLLTOOL" >&6; } | 
|  | 12353 | else | 
|  | 12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12355 | $as_echo "no" >&6; } | 
|  | 12356 | fi | 
|  | 12357 |  | 
|  | 12358 |  | 
|  | 12359 | fi | 
|  | 12360 | if test -z "$ac_cv_prog_DLLTOOL"; then | 
|  | 12361 | ac_ct_DLLTOOL=$DLLTOOL | 
|  | 12362 | # Extract the first word of "dlltool", so it can be a program name with args. | 
|  | 12363 | set dummy dlltool; ac_word=$2 | 
|  | 12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 12365 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12366 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12367 | $as_echo_n "(cached) " >&6 | 
|  | 12368 | else | 
|  | 12369 | if test -n "$ac_ct_DLLTOOL"; then | 
|  | 12370 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | 
|  | 12371 | else | 
|  | 12372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12373 | for as_dir in $PATH | 
|  | 12374 | do | 
|  | 12375 | IFS=$as_save_IFS | 
|  | 12376 | test -z "$as_dir" && as_dir=. | 
|  | 12377 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12378 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12379 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | 
|  | 12380 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12381 | break 2 | 
|  | 12382 | fi | 
|  | 12383 | done | 
|  | 12384 | done | 
|  | 12385 | IFS=$as_save_IFS | 
|  | 12386 |  | 
|  | 12387 | fi | 
|  | 12388 | fi | 
|  | 12389 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | 
|  | 12390 | if test -n "$ac_ct_DLLTOOL"; then | 
|  | 12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | 
|  | 12392 | $as_echo "$ac_ct_DLLTOOL" >&6; } | 
|  | 12393 | else | 
|  | 12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12395 | $as_echo "no" >&6; } | 
|  | 12396 | fi | 
|  | 12397 |  | 
|  | 12398 | if test "x$ac_ct_DLLTOOL" = x; then | 
|  | 12399 | DLLTOOL="false" | 
|  | 12400 | else | 
|  | 12401 | case $cross_compiling:$ac_tool_warned in | 
|  | 12402 | yes:) | 
|  | 12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 12404 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 12405 | ac_tool_warned=yes ;; | 
|  | 12406 | esac | 
|  | 12407 | DLLTOOL=$ac_ct_DLLTOOL | 
|  | 12408 | fi | 
|  | 12409 | else | 
|  | 12410 | DLLTOOL="$ac_cv_prog_DLLTOOL" | 
|  | 12411 | fi | 
|  | 12412 |  | 
|  | 12413 | if test -n "$ac_tool_prefix"; then | 
|  | 12414 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | 
|  | 12415 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | 
|  | 12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 12417 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12418 | if ${ac_cv_prog_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12419 | $as_echo_n "(cached) " >&6 | 
|  | 12420 | else | 
|  | 12421 | if test -n "$OBJDUMP"; then | 
|  | 12422 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | 
|  | 12423 | else | 
|  | 12424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12425 | for as_dir in $PATH | 
|  | 12426 | do | 
|  | 12427 | IFS=$as_save_IFS | 
|  | 12428 | test -z "$as_dir" && as_dir=. | 
|  | 12429 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12431 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | 
|  | 12432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12433 | break 2 | 
|  | 12434 | fi | 
|  | 12435 | done | 
|  | 12436 | done | 
|  | 12437 | IFS=$as_save_IFS | 
|  | 12438 |  | 
|  | 12439 | fi | 
|  | 12440 | fi | 
|  | 12441 | OBJDUMP=$ac_cv_prog_OBJDUMP | 
|  | 12442 | if test -n "$OBJDUMP"; then | 
|  | 12443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | 
|  | 12444 | $as_echo "$OBJDUMP" >&6; } | 
|  | 12445 | else | 
|  | 12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12447 | $as_echo "no" >&6; } | 
|  | 12448 | fi | 
|  | 12449 |  | 
|  | 12450 |  | 
|  | 12451 | fi | 
|  | 12452 | if test -z "$ac_cv_prog_OBJDUMP"; then | 
|  | 12453 | ac_ct_OBJDUMP=$OBJDUMP | 
|  | 12454 | # Extract the first word of "objdump", so it can be a program name with args. | 
|  | 12455 | set dummy objdump; ac_word=$2 | 
|  | 12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 12457 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12458 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12459 | $as_echo_n "(cached) " >&6 | 
|  | 12460 | else | 
|  | 12461 | if test -n "$ac_ct_OBJDUMP"; then | 
|  | 12462 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | 
|  | 12463 | else | 
|  | 12464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 12465 | for as_dir in $PATH | 
|  | 12466 | do | 
|  | 12467 | IFS=$as_save_IFS | 
|  | 12468 | test -z "$as_dir" && as_dir=. | 
|  | 12469 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 12470 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 12471 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | 
|  | 12472 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 12473 | break 2 | 
|  | 12474 | fi | 
|  | 12475 | done | 
|  | 12476 | done | 
|  | 12477 | IFS=$as_save_IFS | 
|  | 12478 |  | 
|  | 12479 | fi | 
|  | 12480 | fi | 
|  | 12481 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | 
|  | 12482 | if test -n "$ac_ct_OBJDUMP"; then | 
|  | 12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | 
|  | 12484 | $as_echo "$ac_ct_OBJDUMP" >&6; } | 
|  | 12485 | else | 
|  | 12486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12487 | $as_echo "no" >&6; } | 
|  | 12488 | fi | 
|  | 12489 |  | 
|  | 12490 | if test "x$ac_ct_OBJDUMP" = x; then | 
|  | 12491 | OBJDUMP="false" | 
|  | 12492 | else | 
|  | 12493 | case $cross_compiling:$ac_tool_warned in | 
|  | 12494 | yes:) | 
|  | 12495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | 
|  | 12496 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 12497 | ac_tool_warned=yes ;; | 
|  | 12498 | esac | 
|  | 12499 | OBJDUMP=$ac_ct_OBJDUMP | 
|  | 12500 | fi | 
|  | 12501 | else | 
|  | 12502 | OBJDUMP="$ac_cv_prog_OBJDUMP" | 
|  | 12503 | fi | 
|  | 12504 |  | 
|  | 12505 | ;; | 
|  | 12506 | esac | 
|  | 12507 |  | 
|  | 12508 | test -z "$AS" && AS=as | 
|  | 12509 |  | 
|  | 12510 |  | 
|  | 12511 |  | 
|  | 12512 |  | 
|  | 12513 |  | 
|  | 12514 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 
|  | 12515 |  | 
|  | 12516 |  | 
|  | 12517 |  | 
|  | 12518 |  | 
|  | 12519 |  | 
|  | 12520 | test -z "$OBJDUMP" && OBJDUMP=objdump | 
|  | 12521 |  | 
|  | 12522 |  | 
|  | 12523 |  | 
|  | 12524 |  | 
|  | 12525 |  | 
|  | 12526 |  | 
|  | 12527 |  | 
|  | 12528 |  | 
|  | 12529 |  | 
|  | 12530 | # Check whether --enable-shared was given. | 
|  | 12531 | if test "${enable_shared+set}" = set; then : | 
|  | 12532 | enableval=$enable_shared; p=${PACKAGE-default} | 
|  | 12533 | case $enableval in | 
|  | 12534 | yes) enable_shared=yes ;; | 
|  | 12535 | no) enable_shared=no ;; | 
|  | 12536 | *) | 
|  | 12537 | enable_shared=no | 
|  | 12538 | # Look at the argument we got.  We use all the common list separators. | 
|  | 12539 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 12540 | for pkg in $enableval; do | 
|  | 12541 | IFS="$lt_save_ifs" | 
|  | 12542 | if test "X$pkg" = "X$p"; then | 
|  | 12543 | enable_shared=yes | 
|  | 12544 | fi | 
|  | 12545 | done | 
|  | 12546 | IFS="$lt_save_ifs" | 
|  | 12547 | ;; | 
|  | 12548 | esac | 
|  | 12549 | else | 
|  | 12550 | enable_shared=yes | 
|  | 12551 | fi | 
|  | 12552 |  | 
|  | 12553 |  | 
|  | 12554 |  | 
|  | 12555 |  | 
|  | 12556 |  | 
|  | 12557 |  | 
|  | 12558 |  | 
|  | 12559 |  | 
|  | 12560 |  | 
|  | 12561 | # Check whether --enable-static was given. | 
|  | 12562 | if test "${enable_static+set}" = set; then : | 
|  | 12563 | enableval=$enable_static; p=${PACKAGE-default} | 
|  | 12564 | case $enableval in | 
|  | 12565 | yes) enable_static=yes ;; | 
|  | 12566 | no) enable_static=no ;; | 
|  | 12567 | *) | 
|  | 12568 | enable_static=no | 
|  | 12569 | # Look at the argument we got.  We use all the common list separators. | 
|  | 12570 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 12571 | for pkg in $enableval; do | 
|  | 12572 | IFS="$lt_save_ifs" | 
|  | 12573 | if test "X$pkg" = "X$p"; then | 
|  | 12574 | enable_static=yes | 
|  | 12575 | fi | 
|  | 12576 | done | 
|  | 12577 | IFS="$lt_save_ifs" | 
|  | 12578 | ;; | 
|  | 12579 | esac | 
|  | 12580 | else | 
|  | 12581 | enable_static=yes | 
|  | 12582 | fi | 
|  | 12583 |  | 
|  | 12584 |  | 
|  | 12585 |  | 
|  | 12586 |  | 
|  | 12587 |  | 
|  | 12588 |  | 
|  | 12589 |  | 
|  | 12590 |  | 
|  | 12591 |  | 
|  | 12592 |  | 
|  | 12593 | # Check whether --with-pic was given. | 
|  | 12594 | if test "${with_pic+set}" = set; then : | 
|  | 12595 | withval=$with_pic; pic_mode="$withval" | 
|  | 12596 | else | 
|  | 12597 | pic_mode=default | 
|  | 12598 | fi | 
|  | 12599 |  | 
|  | 12600 |  | 
|  | 12601 | test -z "$pic_mode" && pic_mode=default | 
|  | 12602 |  | 
|  | 12603 |  | 
|  | 12604 |  | 
|  | 12605 |  | 
|  | 12606 |  | 
|  | 12607 |  | 
|  | 12608 |  | 
|  | 12609 | # Check whether --enable-fast-install was given. | 
|  | 12610 | if test "${enable_fast_install+set}" = set; then : | 
|  | 12611 | enableval=$enable_fast_install; p=${PACKAGE-default} | 
|  | 12612 | case $enableval in | 
|  | 12613 | yes) enable_fast_install=yes ;; | 
|  | 12614 | no) enable_fast_install=no ;; | 
|  | 12615 | *) | 
|  | 12616 | enable_fast_install=no | 
|  | 12617 | # Look at the argument we got.  We use all the common list separators. | 
|  | 12618 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | 
|  | 12619 | for pkg in $enableval; do | 
|  | 12620 | IFS="$lt_save_ifs" | 
|  | 12621 | if test "X$pkg" = "X$p"; then | 
|  | 12622 | enable_fast_install=yes | 
|  | 12623 | fi | 
|  | 12624 | done | 
|  | 12625 | IFS="$lt_save_ifs" | 
|  | 12626 | ;; | 
|  | 12627 | esac | 
|  | 12628 | else | 
|  | 12629 | enable_fast_install=yes | 
|  | 12630 | fi | 
|  | 12631 |  | 
|  | 12632 |  | 
|  | 12633 |  | 
|  | 12634 |  | 
|  | 12635 |  | 
|  | 12636 |  | 
|  | 12637 |  | 
|  | 12638 |  | 
|  | 12639 |  | 
|  | 12640 |  | 
|  | 12641 |  | 
|  | 12642 | # This can be used to rebuild libtool when needed | 
|  | 12643 | LIBTOOL_DEPS="$ltmain" | 
|  | 12644 |  | 
|  | 12645 | # Always use our own libtool. | 
|  | 12646 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 
|  | 12647 |  | 
|  | 12648 |  | 
|  | 12649 |  | 
|  | 12650 |  | 
|  | 12651 |  | 
|  | 12652 |  | 
|  | 12653 |  | 
|  | 12654 |  | 
|  | 12655 |  | 
|  | 12656 |  | 
|  | 12657 |  | 
|  | 12658 |  | 
|  | 12659 |  | 
|  | 12660 |  | 
|  | 12661 |  | 
|  | 12662 |  | 
|  | 12663 |  | 
|  | 12664 |  | 
|  | 12665 |  | 
|  | 12666 |  | 
|  | 12667 |  | 
|  | 12668 |  | 
|  | 12669 |  | 
|  | 12670 |  | 
|  | 12671 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12672 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12673 | test -z "$LN_S" && LN_S="ln -s" | 
|  | 12674 |  | 
|  | 12675 |  | 
|  | 12676 |  | 
|  | 12677 |  | 
|  | 12678 |  | 
|  | 12679 |  | 
|  | 12680 |  | 
|  | 12681 |  | 
|  | 12682 |  | 
|  | 12683 |  | 
|  | 12684 |  | 
|  | 12685 |  | 
|  | 12686 |  | 
|  | 12687 |  | 
|  | 12688 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 12689 | setopt NO_GLOB_SUBST | 
|  | 12690 | fi | 
|  | 12691 |  | 
|  | 12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | 
|  | 12693 | $as_echo_n "checking for objdir... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12694 | if ${lt_cv_objdir+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12695 | $as_echo_n "(cached) " >&6 | 
|  | 12696 | else | 
|  | 12697 | rm -f .libs 2>/dev/null | 
|  | 12698 | mkdir .libs 2>/dev/null | 
|  | 12699 | if test -d .libs; then | 
|  | 12700 | lt_cv_objdir=.libs | 
|  | 12701 | else | 
|  | 12702 | # MS-DOS does not allow filenames that begin with a dot. | 
|  | 12703 | lt_cv_objdir=_libs | 
|  | 12704 | fi | 
|  | 12705 | rmdir .libs 2>/dev/null | 
|  | 12706 | fi | 
|  | 12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | 
|  | 12708 | $as_echo "$lt_cv_objdir" >&6; } | 
|  | 12709 | objdir=$lt_cv_objdir | 
|  | 12710 |  | 
|  | 12711 |  | 
|  | 12712 |  | 
|  | 12713 |  | 
|  | 12714 |  | 
|  | 12715 | cat >>confdefs.h <<_ACEOF | 
|  | 12716 | #define LT_OBJDIR "$lt_cv_objdir/" | 
|  | 12717 | _ACEOF | 
|  | 12718 |  | 
|  | 12719 |  | 
|  | 12720 |  | 
|  | 12721 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12722 | case $host_os in | 
|  | 12723 | aix3*) | 
|  | 12724 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 12725 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 12726 | # vanish in a puff of smoke. | 
|  | 12727 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 12728 | COLLECT_NAMES= | 
|  | 12729 | export COLLECT_NAMES | 
|  | 12730 | fi | 
|  | 12731 | ;; | 
|  | 12732 | esac | 
|  | 12733 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12734 | # Global variables: | 
|  | 12735 | ofile=libtool | 
|  | 12736 | can_build_shared=yes | 
|  | 12737 |  | 
|  | 12738 | # All known linkers require a `.a' archive for static linking (except MSVC, | 
|  | 12739 | # which needs '.lib'). | 
|  | 12740 | libext=a | 
|  | 12741 |  | 
|  | 12742 | with_gnu_ld="$lt_cv_prog_gnu_ld" | 
|  | 12743 |  | 
|  | 12744 | old_CC="$CC" | 
|  | 12745 | old_CFLAGS="$CFLAGS" | 
|  | 12746 |  | 
|  | 12747 | # Set sane defaults for various variables | 
|  | 12748 | test -z "$CC" && CC=cc | 
|  | 12749 | test -z "$LTCC" && LTCC=$CC | 
|  | 12750 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | 
|  | 12751 | test -z "$LD" && LD=ld | 
|  | 12752 | test -z "$ac_objext" && ac_objext=o | 
|  | 12753 |  | 
|  | 12754 | for cc_temp in $compiler""; do | 
|  | 12755 | case $cc_temp in | 
|  | 12756 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
|  | 12757 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
|  | 12758 | \-*) ;; | 
|  | 12759 | *) break;; | 
|  | 12760 | esac | 
|  | 12761 | done | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12762 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12763 |  | 
|  | 12764 |  | 
|  | 12765 | # Only perform the check for file, if the check method requires it | 
|  | 12766 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | 
|  | 12767 | case $deplibs_check_method in | 
|  | 12768 | file_magic*) | 
|  | 12769 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | 
|  | 12770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | 
|  | 12771 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12772 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12773 | $as_echo_n "(cached) " >&6 | 
|  | 12774 | else | 
|  | 12775 | case $MAGIC_CMD in | 
|  | 12776 | [\\/*] |  ?:[\\/]*) | 
|  | 12777 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 12778 | ;; | 
|  | 12779 | *) | 
|  | 12780 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 12781 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 12782 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 12783 | for ac_dir in $ac_dummy; do | 
|  | 12784 | IFS="$lt_save_ifs" | 
|  | 12785 | test -z "$ac_dir" && ac_dir=. | 
|  | 12786 | if test -f $ac_dir/${ac_tool_prefix}file; then | 
|  | 12787 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | 
|  | 12788 | if test -n "$file_magic_test_file"; then | 
|  | 12789 | case $deplibs_check_method in | 
|  | 12790 | "file_magic "*) | 
|  | 12791 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
|  | 12792 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12793 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 12794 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 12795 | : | 
|  | 12796 | else | 
|  | 12797 | cat <<_LT_EOF 1>&2 | 
|  | 12798 |  | 
|  | 12799 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 12800 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 12801 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 12802 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 12803 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 12804 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 12805 | *** may want to report the problem to your system manager and/or to | 
|  | 12806 | *** bug-libtool@gnu.org | 
|  | 12807 |  | 
|  | 12808 | _LT_EOF | 
|  | 12809 | fi ;; | 
|  | 12810 | esac | 
|  | 12811 | fi | 
|  | 12812 | break | 
|  | 12813 | fi | 
|  | 12814 | done | 
|  | 12815 | IFS="$lt_save_ifs" | 
|  | 12816 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 12817 | ;; | 
|  | 12818 | esac | 
|  | 12819 | fi | 
|  | 12820 |  | 
|  | 12821 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12822 | if test -n "$MAGIC_CMD"; then | 
|  | 12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | 
|  | 12824 | $as_echo "$MAGIC_CMD" >&6; } | 
|  | 12825 | else | 
|  | 12826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12827 | $as_echo "no" >&6; } | 
|  | 12828 | fi | 
|  | 12829 |  | 
|  | 12830 |  | 
|  | 12831 |  | 
|  | 12832 |  | 
|  | 12833 |  | 
|  | 12834 | if test -z "$lt_cv_path_MAGIC_CMD"; then | 
|  | 12835 | if test -n "$ac_tool_prefix"; then | 
|  | 12836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | 
|  | 12837 | $as_echo_n "checking for file... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12838 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12839 | $as_echo_n "(cached) " >&6 | 
|  | 12840 | else | 
|  | 12841 | case $MAGIC_CMD in | 
|  | 12842 | [\\/*] |  ?:[\\/]*) | 
|  | 12843 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | 
|  | 12844 | ;; | 
|  | 12845 | *) | 
|  | 12846 | lt_save_MAGIC_CMD="$MAGIC_CMD" | 
|  | 12847 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 12848 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | 
|  | 12849 | for ac_dir in $ac_dummy; do | 
|  | 12850 | IFS="$lt_save_ifs" | 
|  | 12851 | test -z "$ac_dir" && ac_dir=. | 
|  | 12852 | if test -f $ac_dir/file; then | 
|  | 12853 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | 
|  | 12854 | if test -n "$file_magic_test_file"; then | 
|  | 12855 | case $deplibs_check_method in | 
|  | 12856 | "file_magic "*) | 
|  | 12857 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | 
|  | 12858 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12859 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | 
|  | 12860 | $EGREP "$file_magic_regex" > /dev/null; then | 
|  | 12861 | : | 
|  | 12862 | else | 
|  | 12863 | cat <<_LT_EOF 1>&2 | 
|  | 12864 |  | 
|  | 12865 | *** Warning: the command libtool uses to detect shared libraries, | 
|  | 12866 | *** $file_magic_cmd, produces output that libtool cannot recognize. | 
|  | 12867 | *** The result is that libtool may fail to recognize shared libraries | 
|  | 12868 | *** as such.  This will affect the creation of libtool libraries that | 
|  | 12869 | *** depend on shared libraries, but programs linked with such libtool | 
|  | 12870 | *** libraries will work regardless of this problem.  Nevertheless, you | 
|  | 12871 | *** may want to report the problem to your system manager and/or to | 
|  | 12872 | *** bug-libtool@gnu.org | 
|  | 12873 |  | 
|  | 12874 | _LT_EOF | 
|  | 12875 | fi ;; | 
|  | 12876 | esac | 
|  | 12877 | fi | 
|  | 12878 | break | 
|  | 12879 | fi | 
|  | 12880 | done | 
|  | 12881 | IFS="$lt_save_ifs" | 
|  | 12882 | MAGIC_CMD="$lt_save_MAGIC_CMD" | 
|  | 12883 | ;; | 
|  | 12884 | esac | 
|  | 12885 | fi | 
|  | 12886 |  | 
|  | 12887 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | 
|  | 12888 | if test -n "$MAGIC_CMD"; then | 
|  | 12889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | 
|  | 12890 | $as_echo "$MAGIC_CMD" >&6; } | 
|  | 12891 | else | 
|  | 12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 12893 | $as_echo "no" >&6; } | 
|  | 12894 | fi | 
|  | 12895 |  | 
|  | 12896 |  | 
|  | 12897 | else | 
|  | 12898 | MAGIC_CMD=: | 
|  | 12899 | fi | 
|  | 12900 | fi | 
|  | 12901 |  | 
|  | 12902 | fi | 
|  | 12903 | ;; | 
|  | 12904 | esac | 
|  | 12905 |  | 
|  | 12906 | # Use C for the default configuration in the libtool script | 
|  | 12907 |  | 
|  | 12908 | lt_save_CC="$CC" | 
|  | 12909 | ac_ext=c | 
|  | 12910 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 12911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 12912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 12913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 12914 |  | 
|  | 12915 |  | 
|  | 12916 | # Source file extension for C test sources. | 
|  | 12917 | ac_ext=c | 
|  | 12918 |  | 
|  | 12919 | # Object file extension for compiled C test sources. | 
|  | 12920 | objext=o | 
|  | 12921 | objext=$objext | 
|  | 12922 |  | 
|  | 12923 | # Code to be used in simple compile tests | 
|  | 12924 | lt_simple_compile_test_code="int some_variable = 0;" | 
|  | 12925 |  | 
|  | 12926 | # Code to be used in simple link tests | 
|  | 12927 | lt_simple_link_test_code='int main(){return(0);}' | 
|  | 12928 |  | 
|  | 12929 |  | 
|  | 12930 |  | 
|  | 12931 |  | 
|  | 12932 |  | 
|  | 12933 |  | 
|  | 12934 |  | 
|  | 12935 | # If no C compiler was specified, use CC. | 
|  | 12936 | LTCC=${LTCC-"$CC"} | 
|  | 12937 |  | 
|  | 12938 | # If no C compiler flags were specified, use CFLAGS. | 
|  | 12939 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
|  | 12940 |  | 
|  | 12941 | # Allow CC to be a program name with arguments. | 
|  | 12942 | compiler=$CC | 
|  | 12943 |  | 
|  | 12944 | # Save the default compiler, since it gets overwritten when the other | 
|  | 12945 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | 
|  | 12946 | compiler_DEFAULT=$CC | 
|  | 12947 |  | 
|  | 12948 | # save warnings/boilerplate of simple test code | 
|  | 12949 | ac_outfile=conftest.$ac_objext | 
|  | 12950 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | 
|  | 12951 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 12952 | _lt_compiler_boilerplate=`cat conftest.err` | 
|  | 12953 | $RM conftest* | 
|  | 12954 |  | 
|  | 12955 | ac_outfile=conftest.$ac_objext | 
|  | 12956 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | 
|  | 12957 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 12958 | _lt_linker_boilerplate=`cat conftest.err` | 
|  | 12959 | $RM -r conftest* | 
|  | 12960 |  | 
|  | 12961 |  | 
|  | 12962 | ## CAVEAT EMPTOR: | 
|  | 12963 | ## There is no encapsulation within the following macros, do not change | 
|  | 12964 | ## the running order or otherwise move them around unless you know exactly | 
|  | 12965 | ## what you are doing... | 
|  | 12966 | if test -n "$compiler"; then | 
|  | 12967 |  | 
|  | 12968 | lt_prog_compiler_no_builtin_flag= | 
|  | 12969 |  | 
|  | 12970 | if test "$GCC" = yes; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12971 | case $cc_basename in | 
|  | 12972 | nvcc*) | 
|  | 12973 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | 
|  | 12974 | *) | 
|  | 12975 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | 
|  | 12976 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12977 |  | 
|  | 12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | 
|  | 12979 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12980 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12981 | $as_echo_n "(cached) " >&6 | 
|  | 12982 | else | 
|  | 12983 | lt_cv_prog_compiler_rtti_exceptions=no | 
|  | 12984 | ac_outfile=conftest.$ac_objext | 
|  | 12985 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 12986 | lt_compiler_flag="-fno-rtti -fno-exceptions" | 
|  | 12987 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 12988 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 12989 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 12990 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 12991 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 12992 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 12993 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 12994 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 12995 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12996 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12997 | (eval "$lt_compile" 2>conftest.err) | 
|  | 12998 | ac_status=$? | 
|  | 12999 | cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13001 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 13002 | # The compiler can only warn and ignore the option if not recognized | 
|  | 13003 | # So say no if there are warnings other than the usual output. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13004 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13005 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 13006 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 13007 | lt_cv_prog_compiler_rtti_exceptions=yes | 
|  | 13008 | fi | 
|  | 13009 | fi | 
|  | 13010 | $RM conftest* | 
|  | 13011 |  | 
|  | 13012 | fi | 
|  | 13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | 
|  | 13014 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | 
|  | 13015 |  | 
|  | 13016 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | 
|  | 13017 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | 
|  | 13018 | else | 
|  | 13019 | : | 
|  | 13020 | fi | 
|  | 13021 |  | 
|  | 13022 | fi | 
|  | 13023 |  | 
|  | 13024 |  | 
|  | 13025 |  | 
|  | 13026 |  | 
|  | 13027 |  | 
|  | 13028 |  | 
|  | 13029 | lt_prog_compiler_wl= | 
|  | 13030 | lt_prog_compiler_pic= | 
|  | 13031 | lt_prog_compiler_static= | 
|  | 13032 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13033 |  | 
|  | 13034 | if test "$GCC" = yes; then | 
|  | 13035 | lt_prog_compiler_wl='-Wl,' | 
|  | 13036 | lt_prog_compiler_static='-static' | 
|  | 13037 |  | 
|  | 13038 | case $host_os in | 
|  | 13039 | aix*) | 
|  | 13040 | # All AIX code is PIC. | 
|  | 13041 | if test "$host_cpu" = ia64; then | 
|  | 13042 | # AIX 5 now supports IA64 processor | 
|  | 13043 | lt_prog_compiler_static='-Bstatic' | 
|  | 13044 | fi | 
|  | 13045 | ;; | 
|  | 13046 |  | 
|  | 13047 | amigaos*) | 
|  | 13048 | case $host_cpu in | 
|  | 13049 | powerpc) | 
|  | 13050 | # see comment about AmigaOS4 .so support | 
|  | 13051 | lt_prog_compiler_pic='-fPIC' | 
|  | 13052 | ;; | 
|  | 13053 | m68k) | 
|  | 13054 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 13055 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 13056 | # like `-m68040'. | 
|  | 13057 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | 
|  | 13058 | ;; | 
|  | 13059 | esac | 
|  | 13060 | ;; | 
|  | 13061 |  | 
|  | 13062 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 13063 | # PIC is the default for these OSes. | 
|  | 13064 | ;; | 
|  | 13065 |  | 
|  | 13066 | mingw* | cygwin* | pw32* | os2* | cegcc*) | 
|  | 13067 | # This hack is so that the source file can tell whether it is being | 
|  | 13068 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 13069 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | 
|  | 13070 | # (--disable-auto-import) libraries | 
|  | 13071 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 13072 | ;; | 
|  | 13073 |  | 
|  | 13074 | darwin* | rhapsody*) | 
|  | 13075 | # PIC is the default on this platform | 
|  | 13076 | # Common symbols not allowed in MH_DYLIB files | 
|  | 13077 | lt_prog_compiler_pic='-fno-common' | 
|  | 13078 | ;; | 
|  | 13079 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13080 | haiku*) | 
|  | 13081 | # PIC is the default for Haiku. | 
|  | 13082 | # The "-static" flag exists, but is broken. | 
|  | 13083 | lt_prog_compiler_static= | 
|  | 13084 | ;; | 
|  | 13085 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13086 | hpux*) | 
|  | 13087 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 
|  | 13088 | # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag | 
|  | 13089 | # sets the default TLS model and affects inlining. | 
|  | 13090 | case $host_cpu in | 
|  | 13091 | hppa*64*) | 
|  | 13092 | # +Z the default | 
|  | 13093 | ;; | 
|  | 13094 | *) | 
|  | 13095 | lt_prog_compiler_pic='-fPIC' | 
|  | 13096 | ;; | 
|  | 13097 | esac | 
|  | 13098 | ;; | 
|  | 13099 |  | 
|  | 13100 | interix[3-9]*) | 
|  | 13101 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
|  | 13102 | # Instead, we relocate shared libraries at runtime. | 
|  | 13103 | ;; | 
|  | 13104 |  | 
|  | 13105 | msdosdjgpp*) | 
|  | 13106 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 
|  | 13107 | # on systems that don't support them. | 
|  | 13108 | lt_prog_compiler_can_build_shared=no | 
|  | 13109 | enable_shared=no | 
|  | 13110 | ;; | 
|  | 13111 |  | 
|  | 13112 | *nto* | *qnx*) | 
|  | 13113 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 13114 | # it will coredump. | 
|  | 13115 | lt_prog_compiler_pic='-fPIC -shared' | 
|  | 13116 | ;; | 
|  | 13117 |  | 
|  | 13118 | sysv4*MP*) | 
|  | 13119 | if test -d /usr/nec; then | 
|  | 13120 | lt_prog_compiler_pic=-Kconform_pic | 
|  | 13121 | fi | 
|  | 13122 | ;; | 
|  | 13123 |  | 
|  | 13124 | *) | 
|  | 13125 | lt_prog_compiler_pic='-fPIC' | 
|  | 13126 | ;; | 
|  | 13127 | esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13128 |  | 
|  | 13129 | case $cc_basename in | 
|  | 13130 | nvcc*) # Cuda Compiler Driver 2.2 | 
|  | 13131 | lt_prog_compiler_wl='-Xlinker ' | 
|  | 13132 | lt_prog_compiler_pic='-Xcompiler -fPIC' | 
|  | 13133 | ;; | 
|  | 13134 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13135 | else | 
|  | 13136 | # PORTME Check for flag to pass linker flags through the system compiler. | 
|  | 13137 | case $host_os in | 
|  | 13138 | aix*) | 
|  | 13139 | lt_prog_compiler_wl='-Wl,' | 
|  | 13140 | if test "$host_cpu" = ia64; then | 
|  | 13141 | # AIX 5 now supports IA64 processor | 
|  | 13142 | lt_prog_compiler_static='-Bstatic' | 
|  | 13143 | else | 
|  | 13144 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | 
|  | 13145 | fi | 
|  | 13146 | ;; | 
|  | 13147 |  | 
|  | 13148 | mingw* | cygwin* | pw32* | os2* | cegcc*) | 
|  | 13149 | # This hack is so that the source file can tell whether it is being | 
|  | 13150 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 13151 | lt_prog_compiler_pic='-DDLL_EXPORT' | 
|  | 13152 | ;; | 
|  | 13153 |  | 
|  | 13154 | hpux9* | hpux10* | hpux11*) | 
|  | 13155 | lt_prog_compiler_wl='-Wl,' | 
|  | 13156 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | 
|  | 13157 | # not for PA HP-UX. | 
|  | 13158 | case $host_cpu in | 
|  | 13159 | hppa*64*|ia64*) | 
|  | 13160 | # +Z the default | 
|  | 13161 | ;; | 
|  | 13162 | *) | 
|  | 13163 | lt_prog_compiler_pic='+Z' | 
|  | 13164 | ;; | 
|  | 13165 | esac | 
|  | 13166 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | 
|  | 13167 | lt_prog_compiler_static='${wl}-a ${wl}archive' | 
|  | 13168 | ;; | 
|  | 13169 |  | 
|  | 13170 | irix5* | irix6* | nonstopux*) | 
|  | 13171 | lt_prog_compiler_wl='-Wl,' | 
|  | 13172 | # PIC (with -KPIC) is the default. | 
|  | 13173 | lt_prog_compiler_static='-non_shared' | 
|  | 13174 | ;; | 
|  | 13175 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13176 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13177 | case $cc_basename in | 
|  | 13178 | # old Intel for x86_64 which still supported -KPIC. | 
|  | 13179 | ecc*) | 
|  | 13180 | lt_prog_compiler_wl='-Wl,' | 
|  | 13181 | lt_prog_compiler_pic='-KPIC' | 
|  | 13182 | lt_prog_compiler_static='-static' | 
|  | 13183 | ;; | 
|  | 13184 | # icc used to be incompatible with GCC. | 
|  | 13185 | # ICC 10 doesn't accept -KPIC any more. | 
|  | 13186 | icc* | ifort*) | 
|  | 13187 | lt_prog_compiler_wl='-Wl,' | 
|  | 13188 | lt_prog_compiler_pic='-fPIC' | 
|  | 13189 | lt_prog_compiler_static='-static' | 
|  | 13190 | ;; | 
|  | 13191 | # Lahey Fortran 8.1. | 
|  | 13192 | lf95*) | 
|  | 13193 | lt_prog_compiler_wl='-Wl,' | 
|  | 13194 | lt_prog_compiler_pic='--shared' | 
|  | 13195 | lt_prog_compiler_static='--static' | 
|  | 13196 | ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13197 | nagfor*) | 
|  | 13198 | # NAG Fortran compiler | 
|  | 13199 | lt_prog_compiler_wl='-Wl,-Wl,,' | 
|  | 13200 | lt_prog_compiler_pic='-PIC' | 
|  | 13201 | lt_prog_compiler_static='-Bstatic' | 
|  | 13202 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13203 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13204 | # Portland Group compilers (*not* the Pentium gcc compiler, | 
|  | 13205 | # which looks to be a dead project) | 
|  | 13206 | lt_prog_compiler_wl='-Wl,' | 
|  | 13207 | lt_prog_compiler_pic='-fpic' | 
|  | 13208 | lt_prog_compiler_static='-Bstatic' | 
|  | 13209 | ;; | 
|  | 13210 | ccc*) | 
|  | 13211 | lt_prog_compiler_wl='-Wl,' | 
|  | 13212 | # All Alpha code is PIC. | 
|  | 13213 | lt_prog_compiler_static='-non_shared' | 
|  | 13214 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13215 | xl* | bgxl* | bgf* | mpixl*) | 
|  | 13216 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13217 | lt_prog_compiler_wl='-Wl,' | 
|  | 13218 | lt_prog_compiler_pic='-qpic' | 
|  | 13219 | lt_prog_compiler_static='-qstaticlink' | 
|  | 13220 | ;; | 
|  | 13221 | *) | 
|  | 13222 | case `$CC -V 2>&1 | sed 5q` in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13223 | *Sun\ F* | *Sun*Fortran*) | 
|  | 13224 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | 
|  | 13225 | lt_prog_compiler_pic='-KPIC' | 
|  | 13226 | lt_prog_compiler_static='-Bstatic' | 
|  | 13227 | lt_prog_compiler_wl='' | 
|  | 13228 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13229 | *Sun\ C*) | 
|  | 13230 | # Sun C 5.9 | 
|  | 13231 | lt_prog_compiler_pic='-KPIC' | 
|  | 13232 | lt_prog_compiler_static='-Bstatic' | 
|  | 13233 | lt_prog_compiler_wl='-Wl,' | 
|  | 13234 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13235 | esac | 
|  | 13236 | ;; | 
|  | 13237 | esac | 
|  | 13238 | ;; | 
|  | 13239 |  | 
|  | 13240 | newsos6) | 
|  | 13241 | lt_prog_compiler_pic='-KPIC' | 
|  | 13242 | lt_prog_compiler_static='-Bstatic' | 
|  | 13243 | ;; | 
|  | 13244 |  | 
|  | 13245 | *nto* | *qnx*) | 
|  | 13246 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 13247 | # it will coredump. | 
|  | 13248 | lt_prog_compiler_pic='-fPIC -shared' | 
|  | 13249 | ;; | 
|  | 13250 |  | 
|  | 13251 | osf3* | osf4* | osf5*) | 
|  | 13252 | lt_prog_compiler_wl='-Wl,' | 
|  | 13253 | # All OSF/1 code is PIC. | 
|  | 13254 | lt_prog_compiler_static='-non_shared' | 
|  | 13255 | ;; | 
|  | 13256 |  | 
|  | 13257 | rdos*) | 
|  | 13258 | lt_prog_compiler_static='-non_shared' | 
|  | 13259 | ;; | 
|  | 13260 |  | 
|  | 13261 | solaris*) | 
|  | 13262 | lt_prog_compiler_pic='-KPIC' | 
|  | 13263 | lt_prog_compiler_static='-Bstatic' | 
|  | 13264 | case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13265 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13266 | lt_prog_compiler_wl='-Qoption ld ';; | 
|  | 13267 | *) | 
|  | 13268 | lt_prog_compiler_wl='-Wl,';; | 
|  | 13269 | esac | 
|  | 13270 | ;; | 
|  | 13271 |  | 
|  | 13272 | sunos4*) | 
|  | 13273 | lt_prog_compiler_wl='-Qoption ld ' | 
|  | 13274 | lt_prog_compiler_pic='-PIC' | 
|  | 13275 | lt_prog_compiler_static='-Bstatic' | 
|  | 13276 | ;; | 
|  | 13277 |  | 
|  | 13278 | sysv4 | sysv4.2uw2* | sysv4.3*) | 
|  | 13279 | lt_prog_compiler_wl='-Wl,' | 
|  | 13280 | lt_prog_compiler_pic='-KPIC' | 
|  | 13281 | lt_prog_compiler_static='-Bstatic' | 
|  | 13282 | ;; | 
|  | 13283 |  | 
|  | 13284 | sysv4*MP*) | 
|  | 13285 | if test -d /usr/nec ;then | 
|  | 13286 | lt_prog_compiler_pic='-Kconform_pic' | 
|  | 13287 | lt_prog_compiler_static='-Bstatic' | 
|  | 13288 | fi | 
|  | 13289 | ;; | 
|  | 13290 |  | 
|  | 13291 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
|  | 13292 | lt_prog_compiler_wl='-Wl,' | 
|  | 13293 | lt_prog_compiler_pic='-KPIC' | 
|  | 13294 | lt_prog_compiler_static='-Bstatic' | 
|  | 13295 | ;; | 
|  | 13296 |  | 
|  | 13297 | unicos*) | 
|  | 13298 | lt_prog_compiler_wl='-Wl,' | 
|  | 13299 | lt_prog_compiler_can_build_shared=no | 
|  | 13300 | ;; | 
|  | 13301 |  | 
|  | 13302 | uts4*) | 
|  | 13303 | lt_prog_compiler_pic='-pic' | 
|  | 13304 | lt_prog_compiler_static='-Bstatic' | 
|  | 13305 | ;; | 
|  | 13306 |  | 
|  | 13307 | *) | 
|  | 13308 | lt_prog_compiler_can_build_shared=no | 
|  | 13309 | ;; | 
|  | 13310 | esac | 
|  | 13311 | fi | 
|  | 13312 |  | 
|  | 13313 | case $host_os in | 
|  | 13314 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 13315 | *djgpp*) | 
|  | 13316 | lt_prog_compiler_pic= | 
|  | 13317 | ;; | 
|  | 13318 | *) | 
|  | 13319 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | 
|  | 13320 | ;; | 
|  | 13321 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13322 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | 
|  | 13324 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | 
|  | 13325 | if ${lt_cv_prog_compiler_pic+:} false; then : | 
|  | 13326 | $as_echo_n "(cached) " >&6 | 
|  | 13327 | else | 
|  | 13328 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | 
|  | 13329 | fi | 
|  | 13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | 
|  | 13331 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | 
|  | 13332 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13333 |  | 
|  | 13334 | # | 
|  | 13335 | # Check to make sure the PIC flag actually works. | 
|  | 13336 | # | 
|  | 13337 | if test -n "$lt_prog_compiler_pic"; then | 
|  | 13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | 
|  | 13339 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13340 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13341 | $as_echo_n "(cached) " >&6 | 
|  | 13342 | else | 
|  | 13343 | lt_cv_prog_compiler_pic_works=no | 
|  | 13344 | ac_outfile=conftest.$ac_objext | 
|  | 13345 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 13346 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | 
|  | 13347 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 13348 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 13349 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 13350 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 13351 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 13352 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 13353 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 13354 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 13355 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13356 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13357 | (eval "$lt_compile" 2>conftest.err) | 
|  | 13358 | ac_status=$? | 
|  | 13359 | cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13361 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 13362 | # The compiler can only warn and ignore the option if not recognized | 
|  | 13363 | # So say no if there are warnings other than the usual output. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13364 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13365 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 13366 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 13367 | lt_cv_prog_compiler_pic_works=yes | 
|  | 13368 | fi | 
|  | 13369 | fi | 
|  | 13370 | $RM conftest* | 
|  | 13371 |  | 
|  | 13372 | fi | 
|  | 13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | 
|  | 13374 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | 
|  | 13375 |  | 
|  | 13376 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | 
|  | 13377 | case $lt_prog_compiler_pic in | 
|  | 13378 | "" | " "*) ;; | 
|  | 13379 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | 
|  | 13380 | esac | 
|  | 13381 | else | 
|  | 13382 | lt_prog_compiler_pic= | 
|  | 13383 | lt_prog_compiler_can_build_shared=no | 
|  | 13384 | fi | 
|  | 13385 |  | 
|  | 13386 | fi | 
|  | 13387 |  | 
|  | 13388 |  | 
|  | 13389 |  | 
|  | 13390 |  | 
|  | 13391 |  | 
|  | 13392 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13393 |  | 
|  | 13394 |  | 
|  | 13395 |  | 
|  | 13396 |  | 
|  | 13397 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13398 | # | 
|  | 13399 | # Check to make sure the static flag actually works. | 
|  | 13400 | # | 
|  | 13401 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | 
|  | 13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
|  | 13403 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13404 | if ${lt_cv_prog_compiler_static_works+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13405 | $as_echo_n "(cached) " >&6 | 
|  | 13406 | else | 
|  | 13407 | lt_cv_prog_compiler_static_works=no | 
|  | 13408 | save_LDFLAGS="$LDFLAGS" | 
|  | 13409 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
|  | 13410 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 13411 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 13412 | # The linker can only warn and ignore the option if not recognized | 
|  | 13413 | # So say no if there are warnings | 
|  | 13414 | if test -s conftest.err; then | 
|  | 13415 | # Append any errors to the config.log. | 
|  | 13416 | cat conftest.err 1>&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13417 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13418 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 13419 | if diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 13420 | lt_cv_prog_compiler_static_works=yes | 
|  | 13421 | fi | 
|  | 13422 | else | 
|  | 13423 | lt_cv_prog_compiler_static_works=yes | 
|  | 13424 | fi | 
|  | 13425 | fi | 
|  | 13426 | $RM -r conftest* | 
|  | 13427 | LDFLAGS="$save_LDFLAGS" | 
|  | 13428 |  | 
|  | 13429 | fi | 
|  | 13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | 
|  | 13431 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | 
|  | 13432 |  | 
|  | 13433 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | 
|  | 13434 | : | 
|  | 13435 | else | 
|  | 13436 | lt_prog_compiler_static= | 
|  | 13437 | fi | 
|  | 13438 |  | 
|  | 13439 |  | 
|  | 13440 |  | 
|  | 13441 |  | 
|  | 13442 |  | 
|  | 13443 |  | 
|  | 13444 |  | 
|  | 13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 13446 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13447 | if ${lt_cv_prog_compiler_c_o+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13448 | $as_echo_n "(cached) " >&6 | 
|  | 13449 | else | 
|  | 13450 | lt_cv_prog_compiler_c_o=no | 
|  | 13451 | $RM -r conftest 2>/dev/null | 
|  | 13452 | mkdir conftest | 
|  | 13453 | cd conftest | 
|  | 13454 | mkdir out | 
|  | 13455 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 13456 |  | 
|  | 13457 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 13458 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 13459 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 13460 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 13461 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 13462 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 13463 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 13464 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 13465 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13466 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13467 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 13468 | ac_status=$? | 
|  | 13469 | cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13471 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 13472 | then | 
|  | 13473 | # The compiler can only warn and ignore the option if not recognized | 
|  | 13474 | # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13475 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13476 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 13477 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 13478 | lt_cv_prog_compiler_c_o=yes | 
|  | 13479 | fi | 
|  | 13480 | fi | 
|  | 13481 | chmod u+w . 2>&5 | 
|  | 13482 | $RM conftest* | 
|  | 13483 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 13484 | # template instantiation | 
|  | 13485 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 13486 | $RM out/* && rmdir out | 
|  | 13487 | cd .. | 
|  | 13488 | $RM -r conftest | 
|  | 13489 | $RM conftest* | 
|  | 13490 |  | 
|  | 13491 | fi | 
|  | 13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | 
|  | 13493 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | 
|  | 13494 |  | 
|  | 13495 |  | 
|  | 13496 |  | 
|  | 13497 |  | 
|  | 13498 |  | 
|  | 13499 |  | 
|  | 13500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 13501 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13502 | if ${lt_cv_prog_compiler_c_o+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13503 | $as_echo_n "(cached) " >&6 | 
|  | 13504 | else | 
|  | 13505 | lt_cv_prog_compiler_c_o=no | 
|  | 13506 | $RM -r conftest 2>/dev/null | 
|  | 13507 | mkdir conftest | 
|  | 13508 | cd conftest | 
|  | 13509 | mkdir out | 
|  | 13510 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 13511 |  | 
|  | 13512 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 13513 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 13514 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 13515 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 13516 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 13517 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 13518 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 13519 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 13520 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13521 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13522 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 13523 | ac_status=$? | 
|  | 13524 | cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13526 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 13527 | then | 
|  | 13528 | # The compiler can only warn and ignore the option if not recognized | 
|  | 13529 | # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13530 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13531 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 13532 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 13533 | lt_cv_prog_compiler_c_o=yes | 
|  | 13534 | fi | 
|  | 13535 | fi | 
|  | 13536 | chmod u+w . 2>&5 | 
|  | 13537 | $RM conftest* | 
|  | 13538 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 13539 | # template instantiation | 
|  | 13540 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 13541 | $RM out/* && rmdir out | 
|  | 13542 | cd .. | 
|  | 13543 | $RM -r conftest | 
|  | 13544 | $RM conftest* | 
|  | 13545 |  | 
|  | 13546 | fi | 
|  | 13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | 
|  | 13548 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | 
|  | 13549 |  | 
|  | 13550 |  | 
|  | 13551 |  | 
|  | 13552 |  | 
|  | 13553 | hard_links="nottested" | 
|  | 13554 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | 
|  | 13555 | # do not overwrite the value of need_locks provided by the user | 
|  | 13556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | 
|  | 13557 | $as_echo_n "checking if we can lock with hard links... " >&6; } | 
|  | 13558 | hard_links=yes | 
|  | 13559 | $RM conftest* | 
|  | 13560 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 13561 | touch conftest.a | 
|  | 13562 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 13563 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 13564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | 
|  | 13565 | $as_echo "$hard_links" >&6; } | 
|  | 13566 | if test "$hard_links" = no; then | 
|  | 13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 13568 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 13569 | need_locks=warn | 
|  | 13570 | fi | 
|  | 13571 | else | 
|  | 13572 | need_locks=no | 
|  | 13573 | fi | 
|  | 13574 |  | 
|  | 13575 |  | 
|  | 13576 |  | 
|  | 13577 |  | 
|  | 13578 |  | 
|  | 13579 |  | 
|  | 13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 13581 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
|  | 13582 |  | 
|  | 13583 | runpath_var= | 
|  | 13584 | allow_undefined_flag= | 
|  | 13585 | always_export_symbols=no | 
|  | 13586 | archive_cmds= | 
|  | 13587 | archive_expsym_cmds= | 
|  | 13588 | compiler_needs_object=no | 
|  | 13589 | enable_shared_with_static_runtimes=no | 
|  | 13590 | export_dynamic_flag_spec= | 
|  | 13591 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 13592 | hardcode_automatic=no | 
|  | 13593 | hardcode_direct=no | 
|  | 13594 | hardcode_direct_absolute=no | 
|  | 13595 | hardcode_libdir_flag_spec= | 
|  | 13596 | hardcode_libdir_flag_spec_ld= | 
|  | 13597 | hardcode_libdir_separator= | 
|  | 13598 | hardcode_minus_L=no | 
|  | 13599 | hardcode_shlibpath_var=unsupported | 
|  | 13600 | inherit_rpath=no | 
|  | 13601 | link_all_deplibs=unknown | 
|  | 13602 | module_cmds= | 
|  | 13603 | module_expsym_cmds= | 
|  | 13604 | old_archive_from_new_cmds= | 
|  | 13605 | old_archive_from_expsyms_cmds= | 
|  | 13606 | thread_safe_flag_spec= | 
|  | 13607 | whole_archive_flag_spec= | 
|  | 13608 | # include_expsyms should be a list of space-separated symbols to be *always* | 
|  | 13609 | # included in the symbol list | 
|  | 13610 | include_expsyms= | 
|  | 13611 | # exclude_expsyms can be an extended regexp of symbols to exclude | 
|  | 13612 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | 
|  | 13613 | # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | 
|  | 13614 | # as well as any symbol that contains `d'. | 
|  | 13615 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | 
|  | 13616 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | 
|  | 13617 | # platforms (ab)use it in PIC code, but their linkers get confused if | 
|  | 13618 | # the symbol is explicitly referenced.  Since portable code cannot | 
|  | 13619 | # rely on this symbol name, it's probably fine to never include it in | 
|  | 13620 | # preloaded symbol tables. | 
|  | 13621 | # Exclude shared library initialization/finalization symbols. | 
|  | 13622 | extract_expsyms_cmds= | 
|  | 13623 |  | 
|  | 13624 | case $host_os in | 
|  | 13625 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 13626 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | 
|  | 13627 | # When not using gcc, we currently assume that we are using | 
|  | 13628 | # Microsoft Visual C++. | 
|  | 13629 | if test "$GCC" != yes; then | 
|  | 13630 | with_gnu_ld=no | 
|  | 13631 | fi | 
|  | 13632 | ;; | 
|  | 13633 | interix*) | 
|  | 13634 | # we just hope/assume this is gcc and not c89 (= MSVC++) | 
|  | 13635 | with_gnu_ld=yes | 
|  | 13636 | ;; | 
|  | 13637 | openbsd*) | 
|  | 13638 | with_gnu_ld=no | 
|  | 13639 | ;; | 
|  | 13640 | esac | 
|  | 13641 |  | 
|  | 13642 | ld_shlibs=yes | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13643 |  | 
|  | 13644 | # On some targets, GNU ld is compatible enough with the native linker | 
|  | 13645 | # that we're better off using the native interface for both. | 
|  | 13646 | lt_use_gnu_ld_interface=no | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13647 | if test "$with_gnu_ld" = yes; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13648 | case $host_os in | 
|  | 13649 | aix*) | 
|  | 13650 | # The AIX port of GNU ld has always aspired to compatibility | 
|  | 13651 | # with the native linker.  However, as the warning in the GNU ld | 
|  | 13652 | # block says, versions before 2.19.5* couldn't really create working | 
|  | 13653 | # shared libraries, regardless of the interface used. | 
|  | 13654 | case `$LD -v 2>&1` in | 
|  | 13655 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | 
|  | 13656 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | 
|  | 13657 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | 
|  | 13658 | *) | 
|  | 13659 | lt_use_gnu_ld_interface=yes | 
|  | 13660 | ;; | 
|  | 13661 | esac | 
|  | 13662 | ;; | 
|  | 13663 | *) | 
|  | 13664 | lt_use_gnu_ld_interface=yes | 
|  | 13665 | ;; | 
|  | 13666 | esac | 
|  | 13667 | fi | 
|  | 13668 |  | 
|  | 13669 | if test "$lt_use_gnu_ld_interface" = yes; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13670 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 13671 | wlarc='${wl}' | 
|  | 13672 |  | 
|  | 13673 | # Set some defaults for GNU ld with shared library support. These | 
|  | 13674 | # are reset later if shared libraries are not supported. Putting them | 
|  | 13675 | # here allows them to be overridden if necessary. | 
|  | 13676 | runpath_var=LD_RUN_PATH | 
|  | 13677 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13678 | export_dynamic_flag_spec='${wl}--export-dynamic' | 
|  | 13679 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 13680 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | 
|  | 13681 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 13682 | else | 
|  | 13683 | whole_archive_flag_spec= | 
|  | 13684 | fi | 
|  | 13685 | supports_anon_versioning=no | 
|  | 13686 | case `$LD -v 2>&1` in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13687 | *GNU\ gold*) supports_anon_versioning=yes ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13688 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | 
|  | 13689 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | 
|  | 13690 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | 
|  | 13691 | *\ 2.11.*) ;; # other 2.11 versions | 
|  | 13692 | *) supports_anon_versioning=yes ;; | 
|  | 13693 | esac | 
|  | 13694 |  | 
|  | 13695 | # See if GNU ld supports shared libraries. | 
|  | 13696 | case $host_os in | 
|  | 13697 | aix[3-9]*) | 
|  | 13698 | # On AIX/PPC, the GNU linker is very broken | 
|  | 13699 | if test "$host_cpu" != ia64; then | 
|  | 13700 | ld_shlibs=no | 
|  | 13701 | cat <<_LT_EOF 1>&2 | 
|  | 13702 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13703 | *** Warning: the GNU linker, at least up to release 2.19, is reported | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13704 | *** to be unable to reliably create shared libraries on AIX. | 
|  | 13705 | *** Therefore, libtool is disabling shared libraries support.  If you | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13706 | *** really care for shared libraries, you may want to install binutils | 
|  | 13707 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | 
|  | 13708 | *** You will then need to restart the configuration process. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13709 |  | 
|  | 13710 | _LT_EOF | 
|  | 13711 | fi | 
|  | 13712 | ;; | 
|  | 13713 |  | 
|  | 13714 | amigaos*) | 
|  | 13715 | case $host_cpu in | 
|  | 13716 | powerpc) | 
|  | 13717 | # see comment about AmigaOS4 .so support | 
|  | 13718 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13719 | archive_expsym_cmds='' | 
|  | 13720 | ;; | 
|  | 13721 | m68k) | 
|  | 13722 | 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)' | 
|  | 13723 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 13724 | hardcode_minus_L=yes | 
|  | 13725 | ;; | 
|  | 13726 | esac | 
|  | 13727 | ;; | 
|  | 13728 |  | 
|  | 13729 | beos*) | 
|  | 13730 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 13731 | allow_undefined_flag=unsupported | 
|  | 13732 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 13733 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 13734 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13735 | else | 
|  | 13736 | ld_shlibs=no | 
|  | 13737 | fi | 
|  | 13738 | ;; | 
|  | 13739 |  | 
|  | 13740 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 13741 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | 
|  | 13742 | # as there is no search path for DLLs. | 
|  | 13743 | hardcode_libdir_flag_spec='-L$libdir' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13744 | export_dynamic_flag_spec='${wl}--export-all-symbols' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13745 | allow_undefined_flag=unsupported | 
|  | 13746 | always_export_symbols=no | 
|  | 13747 | enable_shared_with_static_runtimes=yes | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13748 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 13749 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13750 |  | 
|  | 13751 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 
|  | 13752 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
|  | 13753 | # If the export-symbols file already is a .def file (1st line | 
|  | 13754 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 13755 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 13756 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 13757 | else | 
|  | 13758 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 13759 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 13760 | fi~ | 
|  | 13761 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | 
|  | 13762 | else | 
|  | 13763 | ld_shlibs=no | 
|  | 13764 | fi | 
|  | 13765 | ;; | 
|  | 13766 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13767 | haiku*) | 
|  | 13768 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13769 | link_all_deplibs=yes | 
|  | 13770 | ;; | 
|  | 13771 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13772 | interix[3-9]*) | 
|  | 13773 | hardcode_direct=no | 
|  | 13774 | hardcode_shlibpath_var=no | 
|  | 13775 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 13776 | export_dynamic_flag_spec='${wl}-E' | 
|  | 13777 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
|  | 13778 | # Instead, shared libraries are loaded at an image base (0x10000000 by | 
|  | 13779 | # default) and relocated if they conflict, which is a slow very memory | 
|  | 13780 | # consuming and fragmenting process.  To avoid this, we pick a random, | 
|  | 13781 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
|  | 13782 | # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
|  | 13783 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | 
|  | 13784 | 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' | 
|  | 13785 | ;; | 
|  | 13786 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13787 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13788 | tmp_diet=no | 
|  | 13789 | if test "$host_os" = linux-dietlibc; then | 
|  | 13790 | case $cc_basename in | 
|  | 13791 | diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn) | 
|  | 13792 | esac | 
|  | 13793 | fi | 
|  | 13794 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | 
|  | 13795 | && test "$tmp_diet" = no | 
|  | 13796 | then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13797 | tmp_addflag=' $pic_flag' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13798 | tmp_sharedflag='-shared' | 
|  | 13799 | case $cc_basename,$host_cpu in | 
|  | 13800 | pgcc*)				# Portland Group C compiler | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13801 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13802 | tmp_addflag=' $pic_flag' | 
|  | 13803 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13804 | pgf77* | pgf90* | pgf95* | pgfortran*) | 
|  | 13805 | # Portland Group f77 and f90 compilers | 
|  | 13806 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13807 | tmp_addflag=' $pic_flag -Mnomain' ;; | 
|  | 13808 | ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64 | 
|  | 13809 | tmp_addflag=' -i_dynamic' ;; | 
|  | 13810 | efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64 | 
|  | 13811 | tmp_addflag=' -i_dynamic -nofor_main' ;; | 
|  | 13812 | ifc* | ifort*)			# Intel Fortran compiler | 
|  | 13813 | tmp_addflag=' -nofor_main' ;; | 
|  | 13814 | lf95*)				# Lahey Fortran 8.1 | 
|  | 13815 | whole_archive_flag_spec= | 
|  | 13816 | tmp_sharedflag='--shared' ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13817 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13818 | tmp_sharedflag='-qmkshrobj' | 
|  | 13819 | tmp_addflag= ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13820 | nvcc*)	# Cuda Compiler Driver 2.2 | 
|  | 13821 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
|  | 13822 | compiler_needs_object=yes | 
|  | 13823 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13824 | esac | 
|  | 13825 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 13826 | *Sun\ C*)			# Sun C 5.9 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13827 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13828 | compiler_needs_object=yes | 
|  | 13829 | tmp_sharedflag='-G' ;; | 
|  | 13830 | *Sun\ F*)			# Sun Fortran 8.3 | 
|  | 13831 | tmp_sharedflag='-G' ;; | 
|  | 13832 | esac | 
|  | 13833 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13834 |  | 
|  | 13835 | if test "x$supports_anon_versioning" = xyes; then | 
|  | 13836 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 13837 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 13838 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 
|  | 13839 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 13840 | fi | 
|  | 13841 |  | 
|  | 13842 | case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13843 | xlf* | bgf* | bgxlf* | mpixlf*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13844 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | 
|  | 13845 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | 
|  | 13846 | hardcode_libdir_flag_spec= | 
|  | 13847 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13848 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13849 | if test "x$supports_anon_versioning" = xyes; then | 
|  | 13850 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 13851 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 13852 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13853 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13854 | fi | 
|  | 13855 | ;; | 
|  | 13856 | esac | 
|  | 13857 | else | 
|  | 13858 | ld_shlibs=no | 
|  | 13859 | fi | 
|  | 13860 | ;; | 
|  | 13861 |  | 
|  | 13862 | netbsd*) | 
|  | 13863 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 13864 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | 
|  | 13865 | wlarc= | 
|  | 13866 | else | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13867 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13868 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13869 | fi | 
|  | 13870 | ;; | 
|  | 13871 |  | 
|  | 13872 | solaris*) | 
|  | 13873 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | 
|  | 13874 | ld_shlibs=no | 
|  | 13875 | cat <<_LT_EOF 1>&2 | 
|  | 13876 |  | 
|  | 13877 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | 
|  | 13878 | *** create shared libraries on Solaris systems.  Therefore, libtool | 
|  | 13879 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 13880 | *** binutils to release 2.9.1 or newer.  Another option is to modify | 
|  | 13881 | *** your PATH or compiler configuration so that the native linker is | 
|  | 13882 | *** used, and then restart. | 
|  | 13883 |  | 
|  | 13884 | _LT_EOF | 
|  | 13885 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13886 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13887 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13888 | else | 
|  | 13889 | ld_shlibs=no | 
|  | 13890 | fi | 
|  | 13891 | ;; | 
|  | 13892 |  | 
|  | 13893 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | 
|  | 13894 | case `$LD -v 2>&1` in | 
|  | 13895 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | 
|  | 13896 | ld_shlibs=no | 
|  | 13897 | cat <<_LT_EOF 1>&2 | 
|  | 13898 |  | 
|  | 13899 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | 
|  | 13900 | *** reliably create shared libraries on SCO systems.  Therefore, libtool | 
|  | 13901 | *** is disabling shared libraries support.  We urge you to upgrade GNU | 
|  | 13902 | *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify | 
|  | 13903 | *** your PATH or compiler configuration so that the native linker is | 
|  | 13904 | *** used, and then restart. | 
|  | 13905 |  | 
|  | 13906 | _LT_EOF | 
|  | 13907 | ;; | 
|  | 13908 | *) | 
|  | 13909 | # For security reasons, it is highly recommended that you always | 
|  | 13910 | # use absolute paths for naming shared libraries, and exclude the | 
|  | 13911 | # DT_RUNPATH tag from executables and libraries.  But doing so | 
|  | 13912 | # requires that you compile everything twice, which is a pain. | 
|  | 13913 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 13914 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 13915 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13916 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
|  | 13917 | else | 
|  | 13918 | ld_shlibs=no | 
|  | 13919 | fi | 
|  | 13920 | ;; | 
|  | 13921 | esac | 
|  | 13922 | ;; | 
|  | 13923 |  | 
|  | 13924 | sunos4*) | 
|  | 13925 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 13926 | wlarc= | 
|  | 13927 | hardcode_direct=yes | 
|  | 13928 | hardcode_shlibpath_var=no | 
|  | 13929 | ;; | 
|  | 13930 |  | 
|  | 13931 | *) | 
|  | 13932 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13933 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 13934 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13935 | else | 
|  | 13936 | ld_shlibs=no | 
|  | 13937 | fi | 
|  | 13938 | ;; | 
|  | 13939 | esac | 
|  | 13940 |  | 
|  | 13941 | if test "$ld_shlibs" = no; then | 
|  | 13942 | runpath_var= | 
|  | 13943 | hardcode_libdir_flag_spec= | 
|  | 13944 | export_dynamic_flag_spec= | 
|  | 13945 | whole_archive_flag_spec= | 
|  | 13946 | fi | 
|  | 13947 | else | 
|  | 13948 | # PORTME fill in a description of your system's linker (not GNU ld) | 
|  | 13949 | case $host_os in | 
|  | 13950 | aix3*) | 
|  | 13951 | allow_undefined_flag=unsupported | 
|  | 13952 | always_export_symbols=yes | 
|  | 13953 | 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' | 
|  | 13954 | # Note: this linker hardcodes the directories in LIBPATH if there | 
|  | 13955 | # are no directories specified by -L. | 
|  | 13956 | hardcode_minus_L=yes | 
|  | 13957 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | 
|  | 13958 | # Neither direct hardcoding nor static linking is supported with a | 
|  | 13959 | # broken collect2. | 
|  | 13960 | hardcode_direct=unsupported | 
|  | 13961 | fi | 
|  | 13962 | ;; | 
|  | 13963 |  | 
|  | 13964 | aix[4-9]*) | 
|  | 13965 | if test "$host_cpu" = ia64; then | 
|  | 13966 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 13967 | # have to do anything special. | 
|  | 13968 | aix_use_runtimelinking=no | 
|  | 13969 | exp_sym_flag='-Bexport' | 
|  | 13970 | no_entry_flag="" | 
|  | 13971 | else | 
|  | 13972 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 13973 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13974 | # Also, AIX nm treats weak defined symbols like other global | 
|  | 13975 | # defined symbols, whereas GNU nm marks them as "W". | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13976 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13977 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13978 | else | 
|  | 13979 | 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' | 
|  | 13980 | fi | 
|  | 13981 | aix_use_runtimelinking=no | 
|  | 13982 |  | 
|  | 13983 | # Test if we are trying to use run time linking or normal | 
|  | 13984 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 13985 | # need to do runtime linking. | 
|  | 13986 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | 
|  | 13987 | for ld_flag in $LDFLAGS; do | 
|  | 13988 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | 
|  | 13989 | aix_use_runtimelinking=yes | 
|  | 13990 | break | 
|  | 13991 | fi | 
|  | 13992 | done | 
|  | 13993 | ;; | 
|  | 13994 | esac | 
|  | 13995 |  | 
|  | 13996 | exp_sym_flag='-bexport' | 
|  | 13997 | no_entry_flag='-bnoentry' | 
|  | 13998 | fi | 
|  | 13999 |  | 
|  | 14000 | # When large executables or shared objects are built, AIX ld can | 
|  | 14001 | # have problems creating the table of contents.  If linking a library | 
|  | 14002 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 14003 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 14004 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 14005 |  | 
|  | 14006 | archive_cmds='' | 
|  | 14007 | hardcode_direct=yes | 
|  | 14008 | hardcode_direct_absolute=yes | 
|  | 14009 | hardcode_libdir_separator=':' | 
|  | 14010 | link_all_deplibs=yes | 
|  | 14011 | file_list_spec='${wl}-f,' | 
|  | 14012 |  | 
|  | 14013 | if test "$GCC" = yes; then | 
|  | 14014 | case $host_os in aix4.[012]|aix4.[012].*) | 
|  | 14015 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 14016 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 14017 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 14018 | if test -f "$collect2name" && | 
|  | 14019 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 
|  | 14020 | then | 
|  | 14021 | # We have reworked collect2 | 
|  | 14022 | : | 
|  | 14023 | else | 
|  | 14024 | # We have old collect2 | 
|  | 14025 | hardcode_direct=unsupported | 
|  | 14026 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 14027 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 14028 | # to unsupported forces relinking | 
|  | 14029 | hardcode_minus_L=yes | 
|  | 14030 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14031 | hardcode_libdir_separator= | 
|  | 14032 | fi | 
|  | 14033 | ;; | 
|  | 14034 | esac | 
|  | 14035 | shared_flag='-shared' | 
|  | 14036 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 14037 | shared_flag="$shared_flag "'${wl}-G' | 
|  | 14038 | fi | 
|  | 14039 | else | 
|  | 14040 | # not using gcc | 
|  | 14041 | if test "$host_cpu" = ia64; then | 
|  | 14042 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 14043 | # chokes on -Wl,-G. The following line is correct: | 
|  | 14044 | shared_flag='-G' | 
|  | 14045 | else | 
|  | 14046 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 14047 | shared_flag='${wl}-G' | 
|  | 14048 | else | 
|  | 14049 | shared_flag='${wl}-bM:SRE' | 
|  | 14050 | fi | 
|  | 14051 | fi | 
|  | 14052 | fi | 
|  | 14053 |  | 
|  | 14054 | export_dynamic_flag_spec='${wl}-bexpall' | 
|  | 14055 | # It seems that -bexpall does not export symbols beginning with | 
|  | 14056 | # underscore (_), so it is better to generate a list of symbols to export. | 
|  | 14057 | always_export_symbols=yes | 
|  | 14058 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 14059 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 14060 | # -berok will link without error, but may produce a broken library. | 
|  | 14061 | allow_undefined_flag='-berok' | 
|  | 14062 | # Determine the default libpath from the value encoded in an | 
|  | 14063 | # empty executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14064 | if test "${lt_cv_aix_libpath+set}" = set; then | 
|  | 14065 | aix_libpath=$lt_cv_aix_libpath | 
|  | 14066 | else | 
|  | 14067 | if ${lt_cv_aix_libpath_+:} false; then : | 
|  | 14068 | $as_echo_n "(cached) " >&6 | 
|  | 14069 | else | 
|  | 14070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14071 | /* end confdefs.h.  */ | 
|  | 14072 |  | 
|  | 14073 | int | 
|  | 14074 | main () | 
|  | 14075 | { | 
|  | 14076 |  | 
|  | 14077 | ; | 
|  | 14078 | return 0; | 
|  | 14079 | } | 
|  | 14080 | _ACEOF | 
|  | 14081 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 14082 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14083 | lt_aix_libpath_sed=' | 
|  | 14084 | /Import File Strings/,/^$/ { | 
|  | 14085 | /^0/ { | 
|  | 14086 | s/^0  *\([^ ]*\) *$/\1/ | 
|  | 14087 | p | 
|  | 14088 | } | 
|  | 14089 | }' | 
|  | 14090 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 14091 | # Check for a 64-bit object if we didn't find anything. | 
|  | 14092 | if test -z "$lt_cv_aix_libpath_"; then | 
|  | 14093 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 14094 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14095 | fi | 
|  | 14096 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14097 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14098 | if test -z "$lt_cv_aix_libpath_"; then | 
|  | 14099 | lt_cv_aix_libpath_="/usr/lib:/lib" | 
|  | 14100 | fi | 
|  | 14101 |  | 
|  | 14102 | fi | 
|  | 14103 |  | 
|  | 14104 | aix_libpath=$lt_cv_aix_libpath_ | 
|  | 14105 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14106 |  | 
|  | 14107 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14108 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14109 | else | 
|  | 14110 | if test "$host_cpu" = ia64; then | 
|  | 14111 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 14112 | allow_undefined_flag="-z nodefs" | 
|  | 14113 | 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" | 
|  | 14114 | else | 
|  | 14115 | # Determine the default libpath from the value encoded in an | 
|  | 14116 | # empty executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14117 | if test "${lt_cv_aix_libpath+set}" = set; then | 
|  | 14118 | aix_libpath=$lt_cv_aix_libpath | 
|  | 14119 | else | 
|  | 14120 | if ${lt_cv_aix_libpath_+:} false; then : | 
|  | 14121 | $as_echo_n "(cached) " >&6 | 
|  | 14122 | else | 
|  | 14123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14124 | /* end confdefs.h.  */ | 
|  | 14125 |  | 
|  | 14126 | int | 
|  | 14127 | main () | 
|  | 14128 | { | 
|  | 14129 |  | 
|  | 14130 | ; | 
|  | 14131 | return 0; | 
|  | 14132 | } | 
|  | 14133 | _ACEOF | 
|  | 14134 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 14135 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14136 | lt_aix_libpath_sed=' | 
|  | 14137 | /Import File Strings/,/^$/ { | 
|  | 14138 | /^0/ { | 
|  | 14139 | s/^0  *\([^ ]*\) *$/\1/ | 
|  | 14140 | p | 
|  | 14141 | } | 
|  | 14142 | }' | 
|  | 14143 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 14144 | # Check for a 64-bit object if we didn't find anything. | 
|  | 14145 | if test -z "$lt_cv_aix_libpath_"; then | 
|  | 14146 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 14147 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14148 | fi | 
|  | 14149 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14150 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14151 | if test -z "$lt_cv_aix_libpath_"; then | 
|  | 14152 | lt_cv_aix_libpath_="/usr/lib:/lib" | 
|  | 14153 | fi | 
|  | 14154 |  | 
|  | 14155 | fi | 
|  | 14156 |  | 
|  | 14157 | aix_libpath=$lt_cv_aix_libpath_ | 
|  | 14158 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14159 |  | 
|  | 14160 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 14161 | # Warning - without using the other run time loading flags, | 
|  | 14162 | # -berok will link without error, but may produce a broken library. | 
|  | 14163 | no_undefined_flag=' ${wl}-bernotok' | 
|  | 14164 | allow_undefined_flag=' ${wl}-berok' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14165 | if test "$with_gnu_ld" = yes; then | 
|  | 14166 | # We only use this code for GNU lds that support --whole-archive. | 
|  | 14167 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 14168 | else | 
|  | 14169 | # Exported symbols can be pulled into shared objects from archives | 
|  | 14170 | whole_archive_flag_spec='$convenience' | 
|  | 14171 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14172 | archive_cmds_need_lc=yes | 
|  | 14173 | # This is similar to how AIX traditionally builds its shared libraries. | 
|  | 14174 | 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' | 
|  | 14175 | fi | 
|  | 14176 | fi | 
|  | 14177 | ;; | 
|  | 14178 |  | 
|  | 14179 | amigaos*) | 
|  | 14180 | case $host_cpu in | 
|  | 14181 | powerpc) | 
|  | 14182 | # see comment about AmigaOS4 .so support | 
|  | 14183 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 14184 | archive_expsym_cmds='' | 
|  | 14185 | ;; | 
|  | 14186 | m68k) | 
|  | 14187 | 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)' | 
|  | 14188 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14189 | hardcode_minus_L=yes | 
|  | 14190 | ;; | 
|  | 14191 | esac | 
|  | 14192 | ;; | 
|  | 14193 |  | 
|  | 14194 | bsdi[45]*) | 
|  | 14195 | export_dynamic_flag_spec=-rdynamic | 
|  | 14196 | ;; | 
|  | 14197 |  | 
|  | 14198 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 14199 | # When not using gcc, we currently assume that we are using | 
|  | 14200 | # Microsoft Visual C++. | 
|  | 14201 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 14202 | # no search path for DLLs. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14203 | case $cc_basename in | 
|  | 14204 | cl*) | 
|  | 14205 | # Native MSVC | 
|  | 14206 | hardcode_libdir_flag_spec=' ' | 
|  | 14207 | allow_undefined_flag=unsupported | 
|  | 14208 | always_export_symbols=yes | 
|  | 14209 | file_list_spec='@' | 
|  | 14210 | # Tell ltmain to make .lib files, not .a files. | 
|  | 14211 | libext=lib | 
|  | 14212 | # Tell ltmain to make .dll files, not .so files. | 
|  | 14213 | shrext_cmds=".dll" | 
|  | 14214 | # FIXME: Setting linknames here is a bad hack. | 
|  | 14215 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | 
|  | 14216 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 14217 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | 
|  | 14218 | else | 
|  | 14219 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | 
|  | 14220 | fi~ | 
|  | 14221 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | 
|  | 14222 | linknames=' | 
|  | 14223 | # The linker will not automatically build a static lib if we build a DLL. | 
|  | 14224 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | 
|  | 14225 | enable_shared_with_static_runtimes=yes | 
|  | 14226 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | 
|  | 14227 | # Don't use ranlib | 
|  | 14228 | old_postinstall_cmds='chmod 644 $oldlib' | 
|  | 14229 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | 
|  | 14230 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | 
|  | 14231 | case $lt_outputfile in | 
|  | 14232 | *.exe|*.EXE) ;; | 
|  | 14233 | *) | 
|  | 14234 | lt_outputfile="$lt_outputfile.exe" | 
|  | 14235 | lt_tool_outputfile="$lt_tool_outputfile.exe" | 
|  | 14236 | ;; | 
|  | 14237 | esac~ | 
|  | 14238 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | 
|  | 14239 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | 
|  | 14240 | $RM "$lt_outputfile.manifest"; | 
|  | 14241 | fi' | 
|  | 14242 | ;; | 
|  | 14243 | *) | 
|  | 14244 | # Assume MSVC wrapper | 
|  | 14245 | hardcode_libdir_flag_spec=' ' | 
|  | 14246 | allow_undefined_flag=unsupported | 
|  | 14247 | # Tell ltmain to make .lib files, not .a files. | 
|  | 14248 | libext=lib | 
|  | 14249 | # Tell ltmain to make .dll files, not .so files. | 
|  | 14250 | shrext_cmds=".dll" | 
|  | 14251 | # FIXME: Setting linknames here is a bad hack. | 
|  | 14252 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | 
|  | 14253 | # The linker will automatically build a .lib file if we build a DLL. | 
|  | 14254 | old_archive_from_new_cmds='true' | 
|  | 14255 | # FIXME: Should let the user specify the lib program. | 
|  | 14256 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | 
|  | 14257 | enable_shared_with_static_runtimes=yes | 
|  | 14258 | ;; | 
|  | 14259 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14260 | ;; | 
|  | 14261 |  | 
|  | 14262 | darwin* | rhapsody*) | 
|  | 14263 |  | 
|  | 14264 |  | 
|  | 14265 | archive_cmds_need_lc=no | 
|  | 14266 | hardcode_direct=no | 
|  | 14267 | hardcode_automatic=yes | 
|  | 14268 | hardcode_shlibpath_var=unsupported | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14269 | if test "$lt_cv_ld_force_load" = "yes"; then | 
|  | 14270 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | 
|  | 14271 | else | 
|  | 14272 | whole_archive_flag_spec='' | 
|  | 14273 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14274 | link_all_deplibs=yes | 
|  | 14275 | allow_undefined_flag="$_lt_dar_allow_undefined" | 
|  | 14276 | case $cc_basename in | 
|  | 14277 | ifort*) _lt_dar_can_shared=yes ;; | 
|  | 14278 | *) _lt_dar_can_shared=$GCC ;; | 
|  | 14279 | esac | 
|  | 14280 | if test "$_lt_dar_can_shared" = "yes"; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14281 | output_verbose_link_cmd=func_echo_all | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14282 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | 
|  | 14283 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 
|  | 14284 | 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}" | 
|  | 14285 | 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}" | 
|  | 14286 |  | 
|  | 14287 | else | 
|  | 14288 | ld_shlibs=no | 
|  | 14289 | fi | 
|  | 14290 |  | 
|  | 14291 | ;; | 
|  | 14292 |  | 
|  | 14293 | dgux*) | 
|  | 14294 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14295 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14296 | hardcode_shlibpath_var=no | 
|  | 14297 | ;; | 
|  | 14298 |  | 
|  | 14299 | freebsd1*) | 
|  | 14300 | ld_shlibs=no | 
|  | 14301 | ;; | 
|  | 14302 |  | 
|  | 14303 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | 
|  | 14304 | # support.  Future versions do this automatically, but an explicit c++rt0.o | 
|  | 14305 | # does not break anything, and helps significantly (at the cost of a little | 
|  | 14306 | # extra space). | 
|  | 14307 | freebsd2.2*) | 
|  | 14308 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | 
|  | 14309 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 14310 | hardcode_direct=yes | 
|  | 14311 | hardcode_shlibpath_var=no | 
|  | 14312 | ;; | 
|  | 14313 |  | 
|  | 14314 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | 
|  | 14315 | freebsd2*) | 
|  | 14316 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14317 | hardcode_direct=yes | 
|  | 14318 | hardcode_minus_L=yes | 
|  | 14319 | hardcode_shlibpath_var=no | 
|  | 14320 | ;; | 
|  | 14321 |  | 
|  | 14322 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 
|  | 14323 | freebsd* | dragonfly*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14324 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14325 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 14326 | hardcode_direct=yes | 
|  | 14327 | hardcode_shlibpath_var=no | 
|  | 14328 | ;; | 
|  | 14329 |  | 
|  | 14330 | hpux9*) | 
|  | 14331 | if test "$GCC" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14332 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14333 | else | 
|  | 14334 | 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' | 
|  | 14335 | fi | 
|  | 14336 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 14337 | hardcode_libdir_separator=: | 
|  | 14338 | hardcode_direct=yes | 
|  | 14339 |  | 
|  | 14340 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 14341 | # but as the default location of the library. | 
|  | 14342 | hardcode_minus_L=yes | 
|  | 14343 | export_dynamic_flag_spec='${wl}-E' | 
|  | 14344 | ;; | 
|  | 14345 |  | 
|  | 14346 | hpux10*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14347 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14348 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14349 | else | 
|  | 14350 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14351 | fi | 
|  | 14352 | if test "$with_gnu_ld" = no; then | 
|  | 14353 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 14354 | hardcode_libdir_flag_spec_ld='+b $libdir' | 
|  | 14355 | hardcode_libdir_separator=: | 
|  | 14356 | hardcode_direct=yes | 
|  | 14357 | hardcode_direct_absolute=yes | 
|  | 14358 | export_dynamic_flag_spec='${wl}-E' | 
|  | 14359 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 14360 | # but as the default location of the library. | 
|  | 14361 | hardcode_minus_L=yes | 
|  | 14362 | fi | 
|  | 14363 | ;; | 
|  | 14364 |  | 
|  | 14365 | hpux11*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14366 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14367 | case $host_cpu in | 
|  | 14368 | hppa*64*) | 
|  | 14369 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14370 | ;; | 
|  | 14371 | ia64*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14372 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14373 | ;; | 
|  | 14374 | *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14375 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14376 | ;; | 
|  | 14377 | esac | 
|  | 14378 | else | 
|  | 14379 | case $host_cpu in | 
|  | 14380 | hppa*64*) | 
|  | 14381 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14382 | ;; | 
|  | 14383 | ia64*) | 
|  | 14384 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14385 | ;; | 
|  | 14386 | *) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14387 |  | 
|  | 14388 | # Older versions of the 11.00 compiler do not understand -b yet | 
|  | 14389 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | 
|  | 14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | 
|  | 14391 | $as_echo_n "checking if $CC understands -b... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14392 | if ${lt_cv_prog_compiler__b+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14393 | $as_echo_n "(cached) " >&6 | 
|  | 14394 | else | 
|  | 14395 | lt_cv_prog_compiler__b=no | 
|  | 14396 | save_LDFLAGS="$LDFLAGS" | 
|  | 14397 | LDFLAGS="$LDFLAGS -b" | 
|  | 14398 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 14399 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 14400 | # The linker can only warn and ignore the option if not recognized | 
|  | 14401 | # So say no if there are warnings | 
|  | 14402 | if test -s conftest.err; then | 
|  | 14403 | # Append any errors to the config.log. | 
|  | 14404 | cat conftest.err 1>&5 | 
|  | 14405 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
|  | 14406 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 14407 | if diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 14408 | lt_cv_prog_compiler__b=yes | 
|  | 14409 | fi | 
|  | 14410 | else | 
|  | 14411 | lt_cv_prog_compiler__b=yes | 
|  | 14412 | fi | 
|  | 14413 | fi | 
|  | 14414 | $RM -r conftest* | 
|  | 14415 | LDFLAGS="$save_LDFLAGS" | 
|  | 14416 |  | 
|  | 14417 | fi | 
|  | 14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | 
|  | 14419 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | 
|  | 14420 |  | 
|  | 14421 | if test x"$lt_cv_prog_compiler__b" = xyes; then | 
|  | 14422 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14423 | else | 
|  | 14424 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14425 | fi | 
|  | 14426 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14427 | ;; | 
|  | 14428 | esac | 
|  | 14429 | fi | 
|  | 14430 | if test "$with_gnu_ld" = no; then | 
|  | 14431 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | 
|  | 14432 | hardcode_libdir_separator=: | 
|  | 14433 |  | 
|  | 14434 | case $host_cpu in | 
|  | 14435 | hppa*64*|ia64*) | 
|  | 14436 | hardcode_direct=no | 
|  | 14437 | hardcode_shlibpath_var=no | 
|  | 14438 | ;; | 
|  | 14439 | *) | 
|  | 14440 | hardcode_direct=yes | 
|  | 14441 | hardcode_direct_absolute=yes | 
|  | 14442 | export_dynamic_flag_spec='${wl}-E' | 
|  | 14443 |  | 
|  | 14444 | # hardcode_minus_L: Not really in the search PATH, | 
|  | 14445 | # but as the default location of the library. | 
|  | 14446 | hardcode_minus_L=yes | 
|  | 14447 | ;; | 
|  | 14448 | esac | 
|  | 14449 | fi | 
|  | 14450 | ;; | 
|  | 14451 |  | 
|  | 14452 | irix5* | irix6* | nonstopux*) | 
|  | 14453 | if test "$GCC" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14454 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14455 | # Try to use the -exported_symbol ld option, if it does not | 
|  | 14456 | # work, assume that -exports_file does not work either and | 
|  | 14457 | # implicitly export all symbols. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14458 | # This should be the same for all languages, so no per-tag cache variable. | 
|  | 14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | 
|  | 14460 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | 
|  | 14461 | if ${lt_cv_irix_exported_symbol+:} false; then : | 
|  | 14462 | $as_echo_n "(cached) " >&6 | 
|  | 14463 | else | 
|  | 14464 | save_LDFLAGS="$LDFLAGS" | 
|  | 14465 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | 
|  | 14466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14467 | /* end confdefs.h.  */ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14468 | int foo (void) { return 0; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14469 | _ACEOF | 
|  | 14470 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14471 | lt_cv_irix_exported_symbol=yes | 
|  | 14472 | else | 
|  | 14473 | lt_cv_irix_exported_symbol=no | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14474 | fi | 
|  | 14475 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 14476 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14477 | LDFLAGS="$save_LDFLAGS" | 
|  | 14478 | fi | 
|  | 14479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | 
|  | 14480 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | 
|  | 14481 | if test "$lt_cv_irix_exported_symbol" = yes; then | 
|  | 14482 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | 
|  | 14483 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14484 | else | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14485 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
|  | 14486 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14487 | fi | 
|  | 14488 | archive_cmds_need_lc='no' | 
|  | 14489 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 14490 | hardcode_libdir_separator=: | 
|  | 14491 | inherit_rpath=yes | 
|  | 14492 | link_all_deplibs=yes | 
|  | 14493 | ;; | 
|  | 14494 |  | 
|  | 14495 | netbsd*) | 
|  | 14496 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 14497 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out | 
|  | 14498 | else | 
|  | 14499 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF | 
|  | 14500 | fi | 
|  | 14501 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 14502 | hardcode_direct=yes | 
|  | 14503 | hardcode_shlibpath_var=no | 
|  | 14504 | ;; | 
|  | 14505 |  | 
|  | 14506 | newsos6) | 
|  | 14507 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14508 | hardcode_direct=yes | 
|  | 14509 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 14510 | hardcode_libdir_separator=: | 
|  | 14511 | hardcode_shlibpath_var=no | 
|  | 14512 | ;; | 
|  | 14513 |  | 
|  | 14514 | *nto* | *qnx*) | 
|  | 14515 | ;; | 
|  | 14516 |  | 
|  | 14517 | openbsd*) | 
|  | 14518 | if test -f /usr/libexec/ld.so; then | 
|  | 14519 | hardcode_direct=yes | 
|  | 14520 | hardcode_shlibpath_var=no | 
|  | 14521 | hardcode_direct_absolute=yes | 
|  | 14522 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 14523 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14524 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | 
|  | 14525 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 14526 | export_dynamic_flag_spec='${wl}-E' | 
|  | 14527 | else | 
|  | 14528 | case $host_os in | 
|  | 14529 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | 
|  | 14530 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14531 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 14532 | ;; | 
|  | 14533 | *) | 
|  | 14534 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14535 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | 
|  | 14536 | ;; | 
|  | 14537 | esac | 
|  | 14538 | fi | 
|  | 14539 | else | 
|  | 14540 | ld_shlibs=no | 
|  | 14541 | fi | 
|  | 14542 | ;; | 
|  | 14543 |  | 
|  | 14544 | os2*) | 
|  | 14545 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14546 | hardcode_minus_L=yes | 
|  | 14547 | allow_undefined_flag=unsupported | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14548 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14549 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | 
|  | 14550 | ;; | 
|  | 14551 |  | 
|  | 14552 | osf3*) | 
|  | 14553 | if test "$GCC" = yes; then | 
|  | 14554 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14555 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14556 | else | 
|  | 14557 | allow_undefined_flag=' -expect_unresolved \*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14558 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14559 | fi | 
|  | 14560 | archive_cmds_need_lc='no' | 
|  | 14561 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 14562 | hardcode_libdir_separator=: | 
|  | 14563 | ;; | 
|  | 14564 |  | 
|  | 14565 | osf4* | osf5*)	# as osf3* with the addition of -msym flag | 
|  | 14566 | if test "$GCC" = yes; then | 
|  | 14567 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14568 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14569 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | 
|  | 14570 | else | 
|  | 14571 | allow_undefined_flag=' -expect_unresolved \*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14572 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14573 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14574 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14575 |  | 
|  | 14576 | # Both c and cxx compiler support -rpath directly | 
|  | 14577 | hardcode_libdir_flag_spec='-rpath $libdir' | 
|  | 14578 | fi | 
|  | 14579 | archive_cmds_need_lc='no' | 
|  | 14580 | hardcode_libdir_separator=: | 
|  | 14581 | ;; | 
|  | 14582 |  | 
|  | 14583 | solaris*) | 
|  | 14584 | no_undefined_flag=' -z defs' | 
|  | 14585 | if test "$GCC" = yes; then | 
|  | 14586 | wlarc='${wl}' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14587 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14588 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14589 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14590 | else | 
|  | 14591 | case `$CC -V 2>&1` in | 
|  | 14592 | *"Compilers 5.0"*) | 
|  | 14593 | wlarc='' | 
|  | 14594 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14595 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 14596 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | 
|  | 14597 | ;; | 
|  | 14598 | *) | 
|  | 14599 | wlarc='${wl}' | 
|  | 14600 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14601 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 14602 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | 
|  | 14603 | ;; | 
|  | 14604 | esac | 
|  | 14605 | fi | 
|  | 14606 | hardcode_libdir_flag_spec='-R$libdir' | 
|  | 14607 | hardcode_shlibpath_var=no | 
|  | 14608 | case $host_os in | 
|  | 14609 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 14610 | *) | 
|  | 14611 | # The compiler driver will combine and reorder linker options, | 
|  | 14612 | # but understands `-z linker_flag'.  GCC discards it without `$wl', | 
|  | 14613 | # but is careful enough not to reorder. | 
|  | 14614 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 14615 | if test "$GCC" = yes; then | 
|  | 14616 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 14617 | else | 
|  | 14618 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | 
|  | 14619 | fi | 
|  | 14620 | ;; | 
|  | 14621 | esac | 
|  | 14622 | link_all_deplibs=yes | 
|  | 14623 | ;; | 
|  | 14624 |  | 
|  | 14625 | sunos4*) | 
|  | 14626 | if test "x$host_vendor" = xsequent; then | 
|  | 14627 | # Use $CC to link under sequent, because it throws in some extra .o | 
|  | 14628 | # files that make .init and .fini sections work. | 
|  | 14629 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14630 | else | 
|  | 14631 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14632 | fi | 
|  | 14633 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14634 | hardcode_direct=yes | 
|  | 14635 | hardcode_minus_L=yes | 
|  | 14636 | hardcode_shlibpath_var=no | 
|  | 14637 | ;; | 
|  | 14638 |  | 
|  | 14639 | sysv4) | 
|  | 14640 | case $host_vendor in | 
|  | 14641 | sni) | 
|  | 14642 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14643 | hardcode_direct=yes # is this really true??? | 
|  | 14644 | ;; | 
|  | 14645 | siemens) | 
|  | 14646 | ## LD is ld it makes a PLAMLIB | 
|  | 14647 | ## CC just makes a GrossModule. | 
|  | 14648 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14649 | reload_cmds='$CC -r -o $output$reload_objs' | 
|  | 14650 | hardcode_direct=no | 
|  | 14651 | ;; | 
|  | 14652 | motorola) | 
|  | 14653 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14654 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | 
|  | 14655 | ;; | 
|  | 14656 | esac | 
|  | 14657 | runpath_var='LD_RUN_PATH' | 
|  | 14658 | hardcode_shlibpath_var=no | 
|  | 14659 | ;; | 
|  | 14660 |  | 
|  | 14661 | sysv4.3*) | 
|  | 14662 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14663 | hardcode_shlibpath_var=no | 
|  | 14664 | export_dynamic_flag_spec='-Bexport' | 
|  | 14665 | ;; | 
|  | 14666 |  | 
|  | 14667 | sysv4*MP*) | 
|  | 14668 | if test -d /usr/nec; then | 
|  | 14669 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14670 | hardcode_shlibpath_var=no | 
|  | 14671 | runpath_var=LD_RUN_PATH | 
|  | 14672 | hardcode_runpath_var=yes | 
|  | 14673 | ld_shlibs=yes | 
|  | 14674 | fi | 
|  | 14675 | ;; | 
|  | 14676 |  | 
|  | 14677 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
|  | 14678 | no_undefined_flag='${wl}-z,text' | 
|  | 14679 | archive_cmds_need_lc=no | 
|  | 14680 | hardcode_shlibpath_var=no | 
|  | 14681 | runpath_var='LD_RUN_PATH' | 
|  | 14682 |  | 
|  | 14683 | if test "$GCC" = yes; then | 
|  | 14684 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14685 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14686 | else | 
|  | 14687 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14688 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14689 | fi | 
|  | 14690 | ;; | 
|  | 14691 |  | 
|  | 14692 | sysv5* | sco3.2v5* | sco5v6*) | 
|  | 14693 | # Note: We can NOT use -z defs as we might desire, because we do not | 
|  | 14694 | # link with -lc, and that would cause any symbols used from libc to | 
|  | 14695 | # always be unresolved, which means just about no library would | 
|  | 14696 | # ever link correctly.  If we're not using GNU ld we use -z text | 
|  | 14697 | # though, which does catch some bad symbols but isn't as heavy-handed | 
|  | 14698 | # as -z defs. | 
|  | 14699 | no_undefined_flag='${wl}-z,text' | 
|  | 14700 | allow_undefined_flag='${wl}-z,nodefs' | 
|  | 14701 | archive_cmds_need_lc=no | 
|  | 14702 | hardcode_shlibpath_var=no | 
|  | 14703 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | 
|  | 14704 | hardcode_libdir_separator=':' | 
|  | 14705 | link_all_deplibs=yes | 
|  | 14706 | export_dynamic_flag_spec='${wl}-Bexport' | 
|  | 14707 | runpath_var='LD_RUN_PATH' | 
|  | 14708 |  | 
|  | 14709 | if test "$GCC" = yes; then | 
|  | 14710 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14711 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14712 | else | 
|  | 14713 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14714 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 14715 | fi | 
|  | 14716 | ;; | 
|  | 14717 |  | 
|  | 14718 | uts4*) | 
|  | 14719 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | 
|  | 14720 | hardcode_libdir_flag_spec='-L$libdir' | 
|  | 14721 | hardcode_shlibpath_var=no | 
|  | 14722 | ;; | 
|  | 14723 |  | 
|  | 14724 | *) | 
|  | 14725 | ld_shlibs=no | 
|  | 14726 | ;; | 
|  | 14727 | esac | 
|  | 14728 |  | 
|  | 14729 | if test x$host_vendor = xsni; then | 
|  | 14730 | case $host in | 
|  | 14731 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 
|  | 14732 | export_dynamic_flag_spec='${wl}-Blargedynsym' | 
|  | 14733 | ;; | 
|  | 14734 | esac | 
|  | 14735 | fi | 
|  | 14736 | fi | 
|  | 14737 |  | 
|  | 14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | 
|  | 14739 | $as_echo "$ld_shlibs" >&6; } | 
|  | 14740 | test "$ld_shlibs" = no && can_build_shared=no | 
|  | 14741 |  | 
|  | 14742 | with_gnu_ld=$with_gnu_ld | 
|  | 14743 |  | 
|  | 14744 |  | 
|  | 14745 |  | 
|  | 14746 |  | 
|  | 14747 |  | 
|  | 14748 |  | 
|  | 14749 |  | 
|  | 14750 |  | 
|  | 14751 |  | 
|  | 14752 |  | 
|  | 14753 |  | 
|  | 14754 |  | 
|  | 14755 |  | 
|  | 14756 |  | 
|  | 14757 |  | 
|  | 14758 | # | 
|  | 14759 | # Do we need to explicitly link libc? | 
|  | 14760 | # | 
|  | 14761 | case "x$archive_cmds_need_lc" in | 
|  | 14762 | x|xyes) | 
|  | 14763 | # Assume -lc should be added | 
|  | 14764 | archive_cmds_need_lc=yes | 
|  | 14765 |  | 
|  | 14766 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 14767 | case $archive_cmds in | 
|  | 14768 | *'~'*) | 
|  | 14769 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 14770 | ;; | 
|  | 14771 | '$CC '*) | 
|  | 14772 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 14773 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 14774 | # to ld, don't add -lc before -lgcc. | 
|  | 14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | 
|  | 14776 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14777 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14778 | $as_echo_n "(cached) " >&6 | 
|  | 14779 | else | 
|  | 14780 | $RM conftest* | 
|  | 14781 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14782 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14783 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14784 | (eval $ac_compile) 2>&5 | 
|  | 14785 | ac_status=$? | 
|  | 14786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 14787 | test $ac_status = 0; } 2>conftest.err; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14788 | soname=conftest | 
|  | 14789 | lib=conftest | 
|  | 14790 | libobjs=conftest.$ac_objext | 
|  | 14791 | deplibs= | 
|  | 14792 | wl=$lt_prog_compiler_wl | 
|  | 14793 | pic_flag=$lt_prog_compiler_pic | 
|  | 14794 | compiler_flags=-v | 
|  | 14795 | linker_flags=-v | 
|  | 14796 | verstring= | 
|  | 14797 | output_objdir=. | 
|  | 14798 | libname=conftest | 
|  | 14799 | lt_save_allow_undefined_flag=$allow_undefined_flag | 
|  | 14800 | allow_undefined_flag= | 
|  | 14801 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14802 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 14803 | ac_status=$? | 
|  | 14804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 14805 | test $ac_status = 0; } | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14806 | then | 
|  | 14807 | lt_cv_archive_cmds_need_lc=no | 
|  | 14808 | else | 
|  | 14809 | lt_cv_archive_cmds_need_lc=yes | 
|  | 14810 | fi | 
|  | 14811 | allow_undefined_flag=$lt_save_allow_undefined_flag | 
|  | 14812 | else | 
|  | 14813 | cat conftest.err 1>&5 | 
|  | 14814 | fi | 
|  | 14815 | $RM conftest* | 
|  | 14816 |  | 
|  | 14817 | fi | 
|  | 14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | 
|  | 14819 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | 
|  | 14820 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14821 | ;; | 
|  | 14822 | esac | 
|  | 14823 | fi | 
|  | 14824 | ;; | 
|  | 14825 | esac | 
|  | 14826 |  | 
|  | 14827 |  | 
|  | 14828 |  | 
|  | 14829 |  | 
|  | 14830 |  | 
|  | 14831 |  | 
|  | 14832 |  | 
|  | 14833 |  | 
|  | 14834 |  | 
|  | 14835 |  | 
|  | 14836 |  | 
|  | 14837 |  | 
|  | 14838 |  | 
|  | 14839 |  | 
|  | 14840 |  | 
|  | 14841 |  | 
|  | 14842 |  | 
|  | 14843 |  | 
|  | 14844 |  | 
|  | 14845 |  | 
|  | 14846 |  | 
|  | 14847 |  | 
|  | 14848 |  | 
|  | 14849 |  | 
|  | 14850 |  | 
|  | 14851 |  | 
|  | 14852 |  | 
|  | 14853 |  | 
|  | 14854 |  | 
|  | 14855 |  | 
|  | 14856 |  | 
|  | 14857 |  | 
|  | 14858 |  | 
|  | 14859 |  | 
|  | 14860 |  | 
|  | 14861 |  | 
|  | 14862 |  | 
|  | 14863 |  | 
|  | 14864 |  | 
|  | 14865 |  | 
|  | 14866 |  | 
|  | 14867 |  | 
|  | 14868 |  | 
|  | 14869 |  | 
|  | 14870 |  | 
|  | 14871 |  | 
|  | 14872 |  | 
|  | 14873 |  | 
|  | 14874 |  | 
|  | 14875 |  | 
|  | 14876 |  | 
|  | 14877 |  | 
|  | 14878 |  | 
|  | 14879 |  | 
|  | 14880 |  | 
|  | 14881 |  | 
|  | 14882 |  | 
|  | 14883 |  | 
|  | 14884 |  | 
|  | 14885 |  | 
|  | 14886 |  | 
|  | 14887 |  | 
|  | 14888 |  | 
|  | 14889 |  | 
|  | 14890 |  | 
|  | 14891 |  | 
|  | 14892 |  | 
|  | 14893 |  | 
|  | 14894 |  | 
|  | 14895 |  | 
|  | 14896 |  | 
|  | 14897 |  | 
|  | 14898 |  | 
|  | 14899 |  | 
|  | 14900 |  | 
|  | 14901 |  | 
|  | 14902 |  | 
|  | 14903 |  | 
|  | 14904 |  | 
|  | 14905 |  | 
|  | 14906 |  | 
|  | 14907 |  | 
|  | 14908 |  | 
|  | 14909 |  | 
|  | 14910 |  | 
|  | 14911 |  | 
|  | 14912 |  | 
|  | 14913 |  | 
|  | 14914 |  | 
|  | 14915 |  | 
|  | 14916 |  | 
|  | 14917 |  | 
|  | 14918 |  | 
|  | 14919 |  | 
|  | 14920 |  | 
|  | 14921 |  | 
|  | 14922 |  | 
|  | 14923 |  | 
|  | 14924 |  | 
|  | 14925 |  | 
|  | 14926 |  | 
|  | 14927 |  | 
|  | 14928 |  | 
|  | 14929 |  | 
|  | 14930 |  | 
|  | 14931 |  | 
|  | 14932 |  | 
|  | 14933 |  | 
|  | 14934 |  | 
|  | 14935 |  | 
|  | 14936 |  | 
|  | 14937 |  | 
|  | 14938 |  | 
|  | 14939 |  | 
|  | 14940 |  | 
|  | 14941 |  | 
|  | 14942 |  | 
|  | 14943 |  | 
|  | 14944 |  | 
|  | 14945 |  | 
|  | 14946 |  | 
|  | 14947 |  | 
|  | 14948 |  | 
|  | 14949 |  | 
|  | 14950 |  | 
|  | 14951 |  | 
|  | 14952 |  | 
|  | 14953 |  | 
|  | 14954 |  | 
|  | 14955 |  | 
|  | 14956 |  | 
|  | 14957 |  | 
|  | 14958 |  | 
|  | 14959 |  | 
|  | 14960 |  | 
|  | 14961 |  | 
|  | 14962 |  | 
|  | 14963 |  | 
|  | 14964 |  | 
|  | 14965 |  | 
|  | 14966 |  | 
|  | 14967 |  | 
|  | 14968 |  | 
|  | 14969 |  | 
|  | 14970 |  | 
|  | 14971 |  | 
|  | 14972 |  | 
|  | 14973 |  | 
|  | 14974 |  | 
|  | 14975 |  | 
|  | 14976 |  | 
|  | 14977 |  | 
|  | 14978 |  | 
|  | 14979 |  | 
|  | 14980 |  | 
|  | 14981 |  | 
|  | 14982 |  | 
|  | 14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 
|  | 14984 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 
|  | 14985 |  | 
|  | 14986 | if test "$GCC" = yes; then | 
|  | 14987 | case $host_os in | 
|  | 14988 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | 
|  | 14989 | *) lt_awk_arg="/^libraries:/" ;; | 
|  | 14990 | esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14991 | case $host_os in | 
|  | 14992 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | 
|  | 14993 | *) lt_sed_strip_eq="s,=/,/,g" ;; | 
|  | 14994 | esac | 
|  | 14995 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | 
|  | 14996 | case $lt_search_path_spec in | 
|  | 14997 | *\;*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14998 | # if the path contains ";" then we assume it to be the separator | 
|  | 14999 | # otherwise default to the standard path separator (i.e. ":") - it is | 
|  | 15000 | # assumed that no part of a normal pathname contains ";" but that should | 
|  | 15001 | # okay in the real world where ";" in dirpaths is itself problematic. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15002 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | 
|  | 15003 | ;; | 
|  | 15004 | *) | 
|  | 15005 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | 
|  | 15006 | ;; | 
|  | 15007 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15008 | # Ok, now we have the path, separated by spaces, we can step through it | 
|  | 15009 | # and add multilib dir if necessary. | 
|  | 15010 | lt_tmp_lt_search_path_spec= | 
|  | 15011 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | 
|  | 15012 | for lt_sys_path in $lt_search_path_spec; do | 
|  | 15013 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | 
|  | 15014 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | 
|  | 15015 | else | 
|  | 15016 | test -d "$lt_sys_path" && \ | 
|  | 15017 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | 
|  | 15018 | fi | 
|  | 15019 | done | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15020 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15021 | BEGIN {RS=" "; FS="/|\n";} { | 
|  | 15022 | lt_foo=""; | 
|  | 15023 | lt_count=0; | 
|  | 15024 | for (lt_i = NF; lt_i > 0; lt_i--) { | 
|  | 15025 | if ($lt_i != "" && $lt_i != ".") { | 
|  | 15026 | if ($lt_i == "..") { | 
|  | 15027 | lt_count++; | 
|  | 15028 | } else { | 
|  | 15029 | if (lt_count == 0) { | 
|  | 15030 | lt_foo="/" $lt_i lt_foo; | 
|  | 15031 | } else { | 
|  | 15032 | lt_count--; | 
|  | 15033 | } | 
|  | 15034 | } | 
|  | 15035 | } | 
|  | 15036 | } | 
|  | 15037 | if (lt_foo != "") { lt_freq[lt_foo]++; } | 
|  | 15038 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | 
|  | 15039 | }'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15040 | # AWK program above erroneously prepends '/' to C:/dos/paths | 
|  | 15041 | # for these hosts. | 
|  | 15042 | case $host_os in | 
|  | 15043 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | 
|  | 15044 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | 
|  | 15045 | esac | 
|  | 15046 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15047 | else | 
|  | 15048 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | 
|  | 15049 | fi | 
|  | 15050 | library_names_spec= | 
|  | 15051 | libname_spec='lib$name' | 
|  | 15052 | soname_spec= | 
|  | 15053 | shrext_cmds=".so" | 
|  | 15054 | postinstall_cmds= | 
|  | 15055 | postuninstall_cmds= | 
|  | 15056 | finish_cmds= | 
|  | 15057 | finish_eval= | 
|  | 15058 | shlibpath_var= | 
|  | 15059 | shlibpath_overrides_runpath=unknown | 
|  | 15060 | version_type=none | 
|  | 15061 | dynamic_linker="$host_os ld.so" | 
|  | 15062 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 15063 | need_lib_prefix=unknown | 
|  | 15064 | hardcode_into_libs=no | 
|  | 15065 |  | 
|  | 15066 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 15067 | # flags to be left without arguments | 
|  | 15068 | need_version=unknown | 
|  | 15069 |  | 
|  | 15070 | case $host_os in | 
|  | 15071 | aix3*) | 
|  | 15072 | version_type=linux | 
|  | 15073 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 15074 | shlibpath_var=LIBPATH | 
|  | 15075 |  | 
|  | 15076 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 15077 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15078 | ;; | 
|  | 15079 |  | 
|  | 15080 | aix[4-9]*) | 
|  | 15081 | version_type=linux | 
|  | 15082 | need_lib_prefix=no | 
|  | 15083 | need_version=no | 
|  | 15084 | hardcode_into_libs=yes | 
|  | 15085 | if test "$host_cpu" = ia64; then | 
|  | 15086 | # AIX 5 supports IA64 | 
|  | 15087 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 15088 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15089 | else | 
|  | 15090 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 15091 | # for dependence libraries.  The import file would start with | 
|  | 15092 | # the line `#! .'.  This would cause the generated library to | 
|  | 15093 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 15094 | # development snapshots of GCC prior to 3.0. | 
|  | 15095 | case $host_os in | 
|  | 15096 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 15097 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 15098 | echo ' yes ' | 
|  | 15099 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 
|  | 15100 | : | 
|  | 15101 | else | 
|  | 15102 | can_build_shared=no | 
|  | 15103 | fi | 
|  | 15104 | ;; | 
|  | 15105 | esac | 
|  | 15106 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 15107 | # soname into executable. Probably we can add versioning support to | 
|  | 15108 | # collect2, so additional links can be useful in future. | 
|  | 15109 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 15110 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 15111 | # instead of lib<name>.a to let people know that these are not | 
|  | 15112 | # typical AIX shared libraries. | 
|  | 15113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15114 | else | 
|  | 15115 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 15116 | # and later when we are not doing run time linking. | 
|  | 15117 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 15118 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15119 | fi | 
|  | 15120 | shlibpath_var=LIBPATH | 
|  | 15121 | fi | 
|  | 15122 | ;; | 
|  | 15123 |  | 
|  | 15124 | amigaos*) | 
|  | 15125 | case $host_cpu in | 
|  | 15126 | powerpc) | 
|  | 15127 | # Since July 2007 AmigaOS4 officially supports .so libraries. | 
|  | 15128 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 
|  | 15129 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15130 | ;; | 
|  | 15131 | m68k) | 
|  | 15132 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 15133 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15134 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15135 | ;; | 
|  | 15136 | esac | 
|  | 15137 | ;; | 
|  | 15138 |  | 
|  | 15139 | beos*) | 
|  | 15140 | library_names_spec='${libname}${shared_ext}' | 
|  | 15141 | dynamic_linker="$host_os ld.so" | 
|  | 15142 | shlibpath_var=LIBRARY_PATH | 
|  | 15143 | ;; | 
|  | 15144 |  | 
|  | 15145 | bsdi[45]*) | 
|  | 15146 | version_type=linux | 
|  | 15147 | need_version=no | 
|  | 15148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15149 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15150 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 15151 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15152 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 15153 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 15154 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 15155 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 15156 | # libtool to hard-code these into programs | 
|  | 15157 | ;; | 
|  | 15158 |  | 
|  | 15159 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 15160 | version_type=windows | 
|  | 15161 | shrext_cmds=".dll" | 
|  | 15162 | need_version=no | 
|  | 15163 | need_lib_prefix=no | 
|  | 15164 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15165 | case $GCC,$cc_basename in | 
|  | 15166 | yes,*) | 
|  | 15167 | # gcc | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15168 | library_names_spec='$libname.dll.a' | 
|  | 15169 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 15170 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 15171 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
|  | 15172 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 15173 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 15174 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 15175 | chmod a+x \$dldir/$dlname~ | 
|  | 15176 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 
|  | 15177 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 
|  | 15178 | fi' | 
|  | 15179 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 15180 | dlpath=$dir/\$dldll~ | 
|  | 15181 | $RM \$dlpath' | 
|  | 15182 | shlibpath_overrides_runpath=yes | 
|  | 15183 |  | 
|  | 15184 | case $host_os in | 
|  | 15185 | cygwin*) | 
|  | 15186 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 15187 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15188 |  | 
|  | 15189 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15190 | ;; | 
|  | 15191 | mingw* | cegcc*) | 
|  | 15192 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 15193 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15194 | ;; | 
|  | 15195 | pw32*) | 
|  | 15196 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 15197 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 15198 | ;; | 
|  | 15199 | esac | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15200 | dynamic_linker='Win32 ld.exe' | 
|  | 15201 | ;; | 
|  | 15202 |  | 
|  | 15203 | *,cl*) | 
|  | 15204 | # Native MSVC | 
|  | 15205 | libname_spec='$name' | 
|  | 15206 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 15207 | library_names_spec='${libname}.dll.lib' | 
|  | 15208 |  | 
|  | 15209 | case $build_os in | 
|  | 15210 | mingw*) | 
|  | 15211 | sys_lib_search_path_spec= | 
|  | 15212 | lt_save_ifs=$IFS | 
|  | 15213 | IFS=';' | 
|  | 15214 | for lt_path in $LIB | 
|  | 15215 | do | 
|  | 15216 | IFS=$lt_save_ifs | 
|  | 15217 | # Let DOS variable expansion print the short 8.3 style file name. | 
|  | 15218 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | 
|  | 15219 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | 
|  | 15220 | done | 
|  | 15221 | IFS=$lt_save_ifs | 
|  | 15222 | # Convert to MSYS style. | 
|  | 15223 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | 
|  | 15224 | ;; | 
|  | 15225 | cygwin*) | 
|  | 15226 | # Convert to unix form, then to dos form, then back to unix form | 
|  | 15227 | # but this time dos style (no spaces!) so that the unix form looks | 
|  | 15228 | # like /cygdrive/c/PROGRA~1:/cygdr... | 
|  | 15229 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | 
|  | 15230 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | 
|  | 15231 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 15232 | ;; | 
|  | 15233 | *) | 
|  | 15234 | sys_lib_search_path_spec="$LIB" | 
|  | 15235 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | 
|  | 15236 | # It is most probably a Windows format PATH. | 
|  | 15237 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 15238 | else | 
|  | 15239 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 15240 | fi | 
|  | 15241 | # FIXME: find the short name or the path components, as spaces are | 
|  | 15242 | # common. (e.g. "Program Files" -> "PROGRA~1") | 
|  | 15243 | ;; | 
|  | 15244 | esac | 
|  | 15245 |  | 
|  | 15246 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 15247 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 15248 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
|  | 15249 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 15250 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 15251 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 15252 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 15253 | dlpath=$dir/\$dldll~ | 
|  | 15254 | $RM \$dlpath' | 
|  | 15255 | shlibpath_overrides_runpath=yes | 
|  | 15256 | dynamic_linker='Win32 link.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15257 | ;; | 
|  | 15258 |  | 
|  | 15259 | *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15260 | # Assume MSVC wrapper | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15261 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15262 | dynamic_linker='Win32 ld.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15263 | ;; | 
|  | 15264 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15265 | # FIXME: first we should search . and the directory the executable is in | 
|  | 15266 | shlibpath_var=PATH | 
|  | 15267 | ;; | 
|  | 15268 |  | 
|  | 15269 | darwin* | rhapsody*) | 
|  | 15270 | dynamic_linker="$host_os dyld" | 
|  | 15271 | version_type=darwin | 
|  | 15272 | need_lib_prefix=no | 
|  | 15273 | need_version=no | 
|  | 15274 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 15275 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 15276 | shlibpath_overrides_runpath=yes | 
|  | 15277 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 15278 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 
|  | 15279 |  | 
|  | 15280 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | 
|  | 15281 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 15282 | ;; | 
|  | 15283 |  | 
|  | 15284 | dgux*) | 
|  | 15285 | version_type=linux | 
|  | 15286 | need_lib_prefix=no | 
|  | 15287 | need_version=no | 
|  | 15288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 15289 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15290 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15291 | ;; | 
|  | 15292 |  | 
|  | 15293 | freebsd1*) | 
|  | 15294 | dynamic_linker=no | 
|  | 15295 | ;; | 
|  | 15296 |  | 
|  | 15297 | freebsd* | dragonfly*) | 
|  | 15298 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 15299 | # versioning mechanism, adjust this. | 
|  | 15300 | if test -x /usr/bin/objformat; then | 
|  | 15301 | objformat=`/usr/bin/objformat` | 
|  | 15302 | else | 
|  | 15303 | case $host_os in | 
|  | 15304 | freebsd[123]*) objformat=aout ;; | 
|  | 15305 | *) objformat=elf ;; | 
|  | 15306 | esac | 
|  | 15307 | fi | 
|  | 15308 | version_type=freebsd-$objformat | 
|  | 15309 | case $version_type in | 
|  | 15310 | freebsd-elf*) | 
|  | 15311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 15312 | need_version=no | 
|  | 15313 | need_lib_prefix=no | 
|  | 15314 | ;; | 
|  | 15315 | freebsd-*) | 
|  | 15316 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 15317 | need_version=yes | 
|  | 15318 | ;; | 
|  | 15319 | esac | 
|  | 15320 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15321 | case $host_os in | 
|  | 15322 | freebsd2*) | 
|  | 15323 | shlibpath_overrides_runpath=yes | 
|  | 15324 | ;; | 
|  | 15325 | freebsd3.[01]* | freebsdelf3.[01]*) | 
|  | 15326 | shlibpath_overrides_runpath=yes | 
|  | 15327 | hardcode_into_libs=yes | 
|  | 15328 | ;; | 
|  | 15329 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 15330 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
|  | 15331 | shlibpath_overrides_runpath=no | 
|  | 15332 | hardcode_into_libs=yes | 
|  | 15333 | ;; | 
|  | 15334 | *) # from 4.6 on, and DragonFly | 
|  | 15335 | shlibpath_overrides_runpath=yes | 
|  | 15336 | hardcode_into_libs=yes | 
|  | 15337 | ;; | 
|  | 15338 | esac | 
|  | 15339 | ;; | 
|  | 15340 |  | 
|  | 15341 | gnu*) | 
|  | 15342 | version_type=linux | 
|  | 15343 | need_lib_prefix=no | 
|  | 15344 | need_version=no | 
|  | 15345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 15346 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15347 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15348 | hardcode_into_libs=yes | 
|  | 15349 | ;; | 
|  | 15350 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15351 | haiku*) | 
|  | 15352 | version_type=linux | 
|  | 15353 | need_lib_prefix=no | 
|  | 15354 | need_version=no | 
|  | 15355 | dynamic_linker="$host_os runtime_loader" | 
|  | 15356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 15357 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15358 | shlibpath_var=LIBRARY_PATH | 
|  | 15359 | shlibpath_overrides_runpath=yes | 
|  | 15360 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | 
|  | 15361 | hardcode_into_libs=yes | 
|  | 15362 | ;; | 
|  | 15363 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15364 | hpux9* | hpux10* | hpux11*) | 
|  | 15365 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 15366 | # link against other versions. | 
|  | 15367 | version_type=sunos | 
|  | 15368 | need_lib_prefix=no | 
|  | 15369 | need_version=no | 
|  | 15370 | case $host_cpu in | 
|  | 15371 | ia64*) | 
|  | 15372 | shrext_cmds='.so' | 
|  | 15373 | hardcode_into_libs=yes | 
|  | 15374 | dynamic_linker="$host_os dld.so" | 
|  | 15375 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15376 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 15377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15378 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15379 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 15380 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 15381 | else | 
|  | 15382 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 15383 | fi | 
|  | 15384 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 15385 | ;; | 
|  | 15386 | hppa*64*) | 
|  | 15387 | shrext_cmds='.sl' | 
|  | 15388 | hardcode_into_libs=yes | 
|  | 15389 | dynamic_linker="$host_os dld.sl" | 
|  | 15390 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 15391 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 15392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15393 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15394 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 15395 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 15396 | ;; | 
|  | 15397 | *) | 
|  | 15398 | shrext_cmds='.sl' | 
|  | 15399 | dynamic_linker="$host_os dld.sl" | 
|  | 15400 | shlibpath_var=SHLIB_PATH | 
|  | 15401 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 15402 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15403 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15404 | ;; | 
|  | 15405 | esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15406 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15407 | postinstall_cmds='chmod 555 $lib' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15408 | # or fails outright, so override atomically: | 
|  | 15409 | install_override_mode=555 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15410 | ;; | 
|  | 15411 |  | 
|  | 15412 | interix[3-9]*) | 
|  | 15413 | version_type=linux | 
|  | 15414 | need_lib_prefix=no | 
|  | 15415 | need_version=no | 
|  | 15416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 15417 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15418 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 15419 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15420 | shlibpath_overrides_runpath=no | 
|  | 15421 | hardcode_into_libs=yes | 
|  | 15422 | ;; | 
|  | 15423 |  | 
|  | 15424 | irix5* | irix6* | nonstopux*) | 
|  | 15425 | case $host_os in | 
|  | 15426 | nonstopux*) version_type=nonstopux ;; | 
|  | 15427 | *) | 
|  | 15428 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 15429 | version_type=linux | 
|  | 15430 | else | 
|  | 15431 | version_type=irix | 
|  | 15432 | fi ;; | 
|  | 15433 | esac | 
|  | 15434 | need_lib_prefix=no | 
|  | 15435 | need_version=no | 
|  | 15436 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 15438 | case $host_os in | 
|  | 15439 | irix5* | nonstopux*) | 
|  | 15440 | libsuff= shlibsuff= | 
|  | 15441 | ;; | 
|  | 15442 | *) | 
|  | 15443 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 15444 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 15445 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 15446 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 15447 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 15448 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 15449 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 15450 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 15451 | esac | 
|  | 15452 | ;; | 
|  | 15453 | esac | 
|  | 15454 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 15455 | shlibpath_overrides_runpath=no | 
|  | 15456 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 15457 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 15458 | hardcode_into_libs=yes | 
|  | 15459 | ;; | 
|  | 15460 |  | 
|  | 15461 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 15462 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 15463 | dynamic_linker=no | 
|  | 15464 | ;; | 
|  | 15465 |  | 
|  | 15466 | # This must be Linux ELF. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15467 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15468 | version_type=linux | 
|  | 15469 | need_lib_prefix=no | 
|  | 15470 | need_version=no | 
|  | 15471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15472 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15473 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 15474 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15475 | shlibpath_overrides_runpath=no | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15476 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15477 | # Some binutils ld are patched to set DT_RUNPATH | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15478 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15479 | $as_echo_n "(cached) " >&6 | 
|  | 15480 | else | 
|  | 15481 | lt_cv_shlibpath_overrides_runpath=no | 
|  | 15482 | save_LDFLAGS=$LDFLAGS | 
|  | 15483 | save_libdir=$libdir | 
|  | 15484 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | 
|  | 15485 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | 
|  | 15486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15487 | /* end confdefs.h.  */ | 
|  | 15488 |  | 
|  | 15489 | int | 
|  | 15490 | main () | 
|  | 15491 | { | 
|  | 15492 |  | 
|  | 15493 | ; | 
|  | 15494 | return 0; | 
|  | 15495 | } | 
|  | 15496 | _ACEOF | 
|  | 15497 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15498 | if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15499 | lt_cv_shlibpath_overrides_runpath=yes | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15500 | fi | 
|  | 15501 | fi | 
|  | 15502 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15503 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15504 | LDFLAGS=$save_LDFLAGS | 
|  | 15505 | libdir=$save_libdir | 
|  | 15506 |  | 
|  | 15507 | fi | 
|  | 15508 |  | 
|  | 15509 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15510 |  | 
|  | 15511 | # This implies no fast_install, which is unacceptable. | 
|  | 15512 | # Some rework will be needed to allow for fast_install | 
|  | 15513 | # before this can be enabled. | 
|  | 15514 | hardcode_into_libs=yes | 
|  | 15515 |  | 
|  | 15516 | # Add ABI-specific directories to the system library path. | 
|  | 15517 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | 
|  | 15518 |  | 
|  | 15519 | # Append ld.so.conf contents to the search path | 
|  | 15520 | if test -f /etc/ld.so.conf; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15521 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15522 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15523 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15524 | fi | 
|  | 15525 |  | 
|  | 15526 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 15527 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 15528 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 15529 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 15530 | # people can always --disable-shared, the test was removed, and we | 
|  | 15531 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 15532 | dynamic_linker='GNU/Linux ld.so' | 
|  | 15533 | ;; | 
|  | 15534 |  | 
|  | 15535 | netbsd*) | 
|  | 15536 | version_type=sunos | 
|  | 15537 | need_lib_prefix=no | 
|  | 15538 | need_version=no | 
|  | 15539 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 15540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 15541 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 15542 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 15543 | else | 
|  | 15544 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 15545 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15546 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 15547 | fi | 
|  | 15548 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15549 | shlibpath_overrides_runpath=yes | 
|  | 15550 | hardcode_into_libs=yes | 
|  | 15551 | ;; | 
|  | 15552 |  | 
|  | 15553 | newsos6) | 
|  | 15554 | version_type=linux | 
|  | 15555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15556 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15557 | shlibpath_overrides_runpath=yes | 
|  | 15558 | ;; | 
|  | 15559 |  | 
|  | 15560 | *nto* | *qnx*) | 
|  | 15561 | version_type=qnx | 
|  | 15562 | need_lib_prefix=no | 
|  | 15563 | need_version=no | 
|  | 15564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15565 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15566 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15567 | shlibpath_overrides_runpath=no | 
|  | 15568 | hardcode_into_libs=yes | 
|  | 15569 | dynamic_linker='ldqnx.so' | 
|  | 15570 | ;; | 
|  | 15571 |  | 
|  | 15572 | openbsd*) | 
|  | 15573 | version_type=sunos | 
|  | 15574 | sys_lib_dlsearch_path_spec="/usr/lib" | 
|  | 15575 | need_lib_prefix=no | 
|  | 15576 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 15577 | case $host_os in | 
|  | 15578 | openbsd3.3 | openbsd3.3.*)	need_version=yes ;; | 
|  | 15579 | *)				need_version=no  ;; | 
|  | 15580 | esac | 
|  | 15581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 15582 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 15583 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15584 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 15585 | case $host_os in | 
|  | 15586 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 15587 | shlibpath_overrides_runpath=no | 
|  | 15588 | ;; | 
|  | 15589 | *) | 
|  | 15590 | shlibpath_overrides_runpath=yes | 
|  | 15591 | ;; | 
|  | 15592 | esac | 
|  | 15593 | else | 
|  | 15594 | shlibpath_overrides_runpath=yes | 
|  | 15595 | fi | 
|  | 15596 | ;; | 
|  | 15597 |  | 
|  | 15598 | os2*) | 
|  | 15599 | libname_spec='$name' | 
|  | 15600 | shrext_cmds=".dll" | 
|  | 15601 | need_lib_prefix=no | 
|  | 15602 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 15603 | dynamic_linker='OS/2 ld.exe' | 
|  | 15604 | shlibpath_var=LIBPATH | 
|  | 15605 | ;; | 
|  | 15606 |  | 
|  | 15607 | osf3* | osf4* | osf5*) | 
|  | 15608 | version_type=osf | 
|  | 15609 | need_lib_prefix=no | 
|  | 15610 | need_version=no | 
|  | 15611 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15613 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15614 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 15615 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 15616 | ;; | 
|  | 15617 |  | 
|  | 15618 | rdos*) | 
|  | 15619 | dynamic_linker=no | 
|  | 15620 | ;; | 
|  | 15621 |  | 
|  | 15622 | solaris*) | 
|  | 15623 | version_type=linux | 
|  | 15624 | need_lib_prefix=no | 
|  | 15625 | need_version=no | 
|  | 15626 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15627 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15628 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15629 | shlibpath_overrides_runpath=yes | 
|  | 15630 | hardcode_into_libs=yes | 
|  | 15631 | # ldd complains unless libraries are executable | 
|  | 15632 | postinstall_cmds='chmod +x $lib' | 
|  | 15633 | ;; | 
|  | 15634 |  | 
|  | 15635 | sunos4*) | 
|  | 15636 | version_type=sunos | 
|  | 15637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 15638 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 15639 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15640 | shlibpath_overrides_runpath=yes | 
|  | 15641 | if test "$with_gnu_ld" = yes; then | 
|  | 15642 | need_lib_prefix=no | 
|  | 15643 | fi | 
|  | 15644 | need_version=yes | 
|  | 15645 | ;; | 
|  | 15646 |  | 
|  | 15647 | sysv4 | sysv4.3*) | 
|  | 15648 | version_type=linux | 
|  | 15649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15650 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15651 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15652 | case $host_vendor in | 
|  | 15653 | sni) | 
|  | 15654 | shlibpath_overrides_runpath=no | 
|  | 15655 | need_lib_prefix=no | 
|  | 15656 | runpath_var=LD_RUN_PATH | 
|  | 15657 | ;; | 
|  | 15658 | siemens) | 
|  | 15659 | need_lib_prefix=no | 
|  | 15660 | ;; | 
|  | 15661 | motorola) | 
|  | 15662 | need_lib_prefix=no | 
|  | 15663 | need_version=no | 
|  | 15664 | shlibpath_overrides_runpath=no | 
|  | 15665 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 15666 | ;; | 
|  | 15667 | esac | 
|  | 15668 | ;; | 
|  | 15669 |  | 
|  | 15670 | sysv4*MP*) | 
|  | 15671 | if test -d /usr/nec ;then | 
|  | 15672 | version_type=linux | 
|  | 15673 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 15674 | soname_spec='$libname${shared_ext}.$major' | 
|  | 15675 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15676 | fi | 
|  | 15677 | ;; | 
|  | 15678 |  | 
|  | 15679 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 15680 | version_type=freebsd-elf | 
|  | 15681 | need_lib_prefix=no | 
|  | 15682 | need_version=no | 
|  | 15683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 15684 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15685 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15686 | shlibpath_overrides_runpath=yes | 
|  | 15687 | hardcode_into_libs=yes | 
|  | 15688 | if test "$with_gnu_ld" = yes; then | 
|  | 15689 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 15690 | else | 
|  | 15691 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 15692 | case $host_os in | 
|  | 15693 | sco3.2v5*) | 
|  | 15694 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 15695 | ;; | 
|  | 15696 | esac | 
|  | 15697 | fi | 
|  | 15698 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 15699 | ;; | 
|  | 15700 |  | 
|  | 15701 | tpf*) | 
|  | 15702 | # TPF is a cross-target only.  Preferred cross-host = GNU/Linux. | 
|  | 15703 | version_type=linux | 
|  | 15704 | need_lib_prefix=no | 
|  | 15705 | need_version=no | 
|  | 15706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15707 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15708 | shlibpath_overrides_runpath=no | 
|  | 15709 | hardcode_into_libs=yes | 
|  | 15710 | ;; | 
|  | 15711 |  | 
|  | 15712 | uts4*) | 
|  | 15713 | version_type=linux | 
|  | 15714 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 15715 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 15716 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 15717 | ;; | 
|  | 15718 |  | 
|  | 15719 | *) | 
|  | 15720 | dynamic_linker=no | 
|  | 15721 | ;; | 
|  | 15722 | esac | 
|  | 15723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | 
|  | 15724 | $as_echo "$dynamic_linker" >&6; } | 
|  | 15725 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 15726 |  | 
|  | 15727 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 15728 | if test "$GCC" = yes; then | 
|  | 15729 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 15730 | fi | 
|  | 15731 |  | 
|  | 15732 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 
|  | 15733 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 
|  | 15734 | fi | 
|  | 15735 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 
|  | 15736 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 
|  | 15737 | fi | 
|  | 15738 |  | 
|  | 15739 |  | 
|  | 15740 |  | 
|  | 15741 |  | 
|  | 15742 |  | 
|  | 15743 |  | 
|  | 15744 |  | 
|  | 15745 |  | 
|  | 15746 |  | 
|  | 15747 |  | 
|  | 15748 |  | 
|  | 15749 |  | 
|  | 15750 |  | 
|  | 15751 |  | 
|  | 15752 |  | 
|  | 15753 |  | 
|  | 15754 |  | 
|  | 15755 |  | 
|  | 15756 |  | 
|  | 15757 |  | 
|  | 15758 |  | 
|  | 15759 |  | 
|  | 15760 |  | 
|  | 15761 |  | 
|  | 15762 |  | 
|  | 15763 |  | 
|  | 15764 |  | 
|  | 15765 |  | 
|  | 15766 |  | 
|  | 15767 |  | 
|  | 15768 |  | 
|  | 15769 |  | 
|  | 15770 |  | 
|  | 15771 |  | 
|  | 15772 |  | 
|  | 15773 |  | 
|  | 15774 |  | 
|  | 15775 |  | 
|  | 15776 |  | 
|  | 15777 |  | 
|  | 15778 |  | 
|  | 15779 |  | 
|  | 15780 |  | 
|  | 15781 |  | 
|  | 15782 |  | 
|  | 15783 |  | 
|  | 15784 |  | 
|  | 15785 |  | 
|  | 15786 |  | 
|  | 15787 |  | 
|  | 15788 |  | 
|  | 15789 |  | 
|  | 15790 |  | 
|  | 15791 |  | 
|  | 15792 |  | 
|  | 15793 |  | 
|  | 15794 |  | 
|  | 15795 |  | 
|  | 15796 |  | 
|  | 15797 |  | 
|  | 15798 |  | 
|  | 15799 |  | 
|  | 15800 |  | 
|  | 15801 |  | 
|  | 15802 |  | 
|  | 15803 |  | 
|  | 15804 |  | 
|  | 15805 |  | 
|  | 15806 |  | 
|  | 15807 |  | 
|  | 15808 |  | 
|  | 15809 |  | 
|  | 15810 |  | 
|  | 15811 |  | 
|  | 15812 |  | 
|  | 15813 |  | 
|  | 15814 |  | 
|  | 15815 |  | 
|  | 15816 |  | 
|  | 15817 |  | 
|  | 15818 |  | 
|  | 15819 |  | 
|  | 15820 |  | 
|  | 15821 |  | 
|  | 15822 |  | 
|  | 15823 |  | 
|  | 15824 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15825 |  | 
|  | 15826 |  | 
|  | 15827 |  | 
|  | 15828 |  | 
|  | 15829 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | 
|  | 15831 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | 
|  | 15832 | hardcode_action= | 
|  | 15833 | if test -n "$hardcode_libdir_flag_spec" || | 
|  | 15834 | test -n "$runpath_var" || | 
|  | 15835 | test "X$hardcode_automatic" = "Xyes" ; then | 
|  | 15836 |  | 
|  | 15837 | # We can hardcode non-existent directories. | 
|  | 15838 | if test "$hardcode_direct" != no && | 
|  | 15839 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 15840 | # have to relink, otherwise we might link with an installed library | 
|  | 15841 | # when we should be linking with a yet-to-be-installed one | 
|  | 15842 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | 
|  | 15843 | test "$hardcode_minus_L" != no; then | 
|  | 15844 | # Linking always hardcodes the temporary library directory. | 
|  | 15845 | hardcode_action=relink | 
|  | 15846 | else | 
|  | 15847 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 15848 | hardcode_action=immediate | 
|  | 15849 | fi | 
|  | 15850 | else | 
|  | 15851 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 15852 | # directories. | 
|  | 15853 | hardcode_action=unsupported | 
|  | 15854 | fi | 
|  | 15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | 
|  | 15856 | $as_echo "$hardcode_action" >&6; } | 
|  | 15857 |  | 
|  | 15858 | if test "$hardcode_action" = relink || | 
|  | 15859 | test "$inherit_rpath" = yes; then | 
|  | 15860 | # Fast installation is not supported | 
|  | 15861 | enable_fast_install=no | 
|  | 15862 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 15863 | test "$enable_shared" = no; then | 
|  | 15864 | # Fast installation is not necessary | 
|  | 15865 | enable_fast_install=needless | 
|  | 15866 | fi | 
|  | 15867 |  | 
|  | 15868 |  | 
|  | 15869 |  | 
|  | 15870 |  | 
|  | 15871 |  | 
|  | 15872 |  | 
|  | 15873 | if test "x$enable_dlopen" != xyes; then | 
|  | 15874 | enable_dlopen=unknown | 
|  | 15875 | enable_dlopen_self=unknown | 
|  | 15876 | enable_dlopen_self_static=unknown | 
|  | 15877 | else | 
|  | 15878 | lt_cv_dlopen=no | 
|  | 15879 | lt_cv_dlopen_libs= | 
|  | 15880 |  | 
|  | 15881 | case $host_os in | 
|  | 15882 | beos*) | 
|  | 15883 | lt_cv_dlopen="load_add_on" | 
|  | 15884 | lt_cv_dlopen_libs= | 
|  | 15885 | lt_cv_dlopen_self=yes | 
|  | 15886 | ;; | 
|  | 15887 |  | 
|  | 15888 | mingw* | pw32* | cegcc*) | 
|  | 15889 | lt_cv_dlopen="LoadLibrary" | 
|  | 15890 | lt_cv_dlopen_libs= | 
|  | 15891 | ;; | 
|  | 15892 |  | 
|  | 15893 | cygwin*) | 
|  | 15894 | lt_cv_dlopen="dlopen" | 
|  | 15895 | lt_cv_dlopen_libs= | 
|  | 15896 | ;; | 
|  | 15897 |  | 
|  | 15898 | darwin*) | 
|  | 15899 | # if libdl is installed we need to link against it | 
|  | 15900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 15901 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15902 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15903 | $as_echo_n "(cached) " >&6 | 
|  | 15904 | else | 
|  | 15905 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15906 | LIBS="-ldl  $LIBS" | 
|  | 15907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15908 | /* end confdefs.h.  */ | 
|  | 15909 |  | 
|  | 15910 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15911 | Use char because int might match the return type of a GCC | 
|  | 15912 | builtin and then its argument prototype would still apply.  */ | 
|  | 15913 | #ifdef __cplusplus | 
|  | 15914 | extern "C" | 
|  | 15915 | #endif | 
|  | 15916 | char dlopen (); | 
|  | 15917 | int | 
|  | 15918 | main () | 
|  | 15919 | { | 
|  | 15920 | return dlopen (); | 
|  | 15921 | ; | 
|  | 15922 | return 0; | 
|  | 15923 | } | 
|  | 15924 | _ACEOF | 
|  | 15925 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15926 | ac_cv_lib_dl_dlopen=yes | 
|  | 15927 | else | 
|  | 15928 | ac_cv_lib_dl_dlopen=no | 
|  | 15929 | fi | 
|  | 15930 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15931 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15932 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15933 | fi | 
|  | 15934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 15935 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15936 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15937 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 15938 | else | 
|  | 15939 |  | 
|  | 15940 | lt_cv_dlopen="dyld" | 
|  | 15941 | lt_cv_dlopen_libs= | 
|  | 15942 | lt_cv_dlopen_self=yes | 
|  | 15943 |  | 
|  | 15944 | fi | 
|  | 15945 |  | 
|  | 15946 | ;; | 
|  | 15947 |  | 
|  | 15948 | *) | 
|  | 15949 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15950 | if test "x$ac_cv_func_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15951 | lt_cv_dlopen="shl_load" | 
|  | 15952 | else | 
|  | 15953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 15954 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15955 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15956 | $as_echo_n "(cached) " >&6 | 
|  | 15957 | else | 
|  | 15958 | ac_check_lib_save_LIBS=$LIBS | 
|  | 15959 | LIBS="-ldld  $LIBS" | 
|  | 15960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 15961 | /* end confdefs.h.  */ | 
|  | 15962 |  | 
|  | 15963 | /* Override any GCC internal prototype to avoid an error. | 
|  | 15964 | Use char because int might match the return type of a GCC | 
|  | 15965 | builtin and then its argument prototype would still apply.  */ | 
|  | 15966 | #ifdef __cplusplus | 
|  | 15967 | extern "C" | 
|  | 15968 | #endif | 
|  | 15969 | char shl_load (); | 
|  | 15970 | int | 
|  | 15971 | main () | 
|  | 15972 | { | 
|  | 15973 | return shl_load (); | 
|  | 15974 | ; | 
|  | 15975 | return 0; | 
|  | 15976 | } | 
|  | 15977 | _ACEOF | 
|  | 15978 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 15979 | ac_cv_lib_dld_shl_load=yes | 
|  | 15980 | else | 
|  | 15981 | ac_cv_lib_dld_shl_load=no | 
|  | 15982 | fi | 
|  | 15983 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 15984 | conftest$ac_exeext conftest.$ac_ext | 
|  | 15985 | LIBS=$ac_check_lib_save_LIBS | 
|  | 15986 | fi | 
|  | 15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 15988 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15989 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15990 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | 
|  | 15991 | else | 
|  | 15992 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15993 | if test "x$ac_cv_func_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15994 | lt_cv_dlopen="dlopen" | 
|  | 15995 | else | 
|  | 15996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
|  | 15997 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15998 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15999 | $as_echo_n "(cached) " >&6 | 
|  | 16000 | else | 
|  | 16001 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16002 | LIBS="-ldl  $LIBS" | 
|  | 16003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16004 | /* end confdefs.h.  */ | 
|  | 16005 |  | 
|  | 16006 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16007 | Use char because int might match the return type of a GCC | 
|  | 16008 | builtin and then its argument prototype would still apply.  */ | 
|  | 16009 | #ifdef __cplusplus | 
|  | 16010 | extern "C" | 
|  | 16011 | #endif | 
|  | 16012 | char dlopen (); | 
|  | 16013 | int | 
|  | 16014 | main () | 
|  | 16015 | { | 
|  | 16016 | return dlopen (); | 
|  | 16017 | ; | 
|  | 16018 | return 0; | 
|  | 16019 | } | 
|  | 16020 | _ACEOF | 
|  | 16021 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16022 | ac_cv_lib_dl_dlopen=yes | 
|  | 16023 | else | 
|  | 16024 | ac_cv_lib_dl_dlopen=no | 
|  | 16025 | fi | 
|  | 16026 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16027 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16028 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16029 | fi | 
|  | 16030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | 
|  | 16031 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16032 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16033 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | 
|  | 16034 | else | 
|  | 16035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | 
|  | 16036 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16037 | if ${ac_cv_lib_svld_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16038 | $as_echo_n "(cached) " >&6 | 
|  | 16039 | else | 
|  | 16040 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16041 | LIBS="-lsvld  $LIBS" | 
|  | 16042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16043 | /* end confdefs.h.  */ | 
|  | 16044 |  | 
|  | 16045 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16046 | Use char because int might match the return type of a GCC | 
|  | 16047 | builtin and then its argument prototype would still apply.  */ | 
|  | 16048 | #ifdef __cplusplus | 
|  | 16049 | extern "C" | 
|  | 16050 | #endif | 
|  | 16051 | char dlopen (); | 
|  | 16052 | int | 
|  | 16053 | main () | 
|  | 16054 | { | 
|  | 16055 | return dlopen (); | 
|  | 16056 | ; | 
|  | 16057 | return 0; | 
|  | 16058 | } | 
|  | 16059 | _ACEOF | 
|  | 16060 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16061 | ac_cv_lib_svld_dlopen=yes | 
|  | 16062 | else | 
|  | 16063 | ac_cv_lib_svld_dlopen=no | 
|  | 16064 | fi | 
|  | 16065 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16066 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16067 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16068 | fi | 
|  | 16069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 16070 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16071 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16072 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | 
|  | 16073 | else | 
|  | 16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | 
|  | 16075 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16076 | if ${ac_cv_lib_dld_dld_link+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16077 | $as_echo_n "(cached) " >&6 | 
|  | 16078 | else | 
|  | 16079 | ac_check_lib_save_LIBS=$LIBS | 
|  | 16080 | LIBS="-ldld  $LIBS" | 
|  | 16081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16082 | /* end confdefs.h.  */ | 
|  | 16083 |  | 
|  | 16084 | /* Override any GCC internal prototype to avoid an error. | 
|  | 16085 | Use char because int might match the return type of a GCC | 
|  | 16086 | builtin and then its argument prototype would still apply.  */ | 
|  | 16087 | #ifdef __cplusplus | 
|  | 16088 | extern "C" | 
|  | 16089 | #endif | 
|  | 16090 | char dld_link (); | 
|  | 16091 | int | 
|  | 16092 | main () | 
|  | 16093 | { | 
|  | 16094 | return dld_link (); | 
|  | 16095 | ; | 
|  | 16096 | return 0; | 
|  | 16097 | } | 
|  | 16098 | _ACEOF | 
|  | 16099 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 16100 | ac_cv_lib_dld_dld_link=yes | 
|  | 16101 | else | 
|  | 16102 | ac_cv_lib_dld_dld_link=no | 
|  | 16103 | fi | 
|  | 16104 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 16105 | conftest$ac_exeext conftest.$ac_ext | 
|  | 16106 | LIBS=$ac_check_lib_save_LIBS | 
|  | 16107 | fi | 
|  | 16108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 16109 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16110 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16111 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | 
|  | 16112 | fi | 
|  | 16113 |  | 
|  | 16114 |  | 
|  | 16115 | fi | 
|  | 16116 |  | 
|  | 16117 |  | 
|  | 16118 | fi | 
|  | 16119 |  | 
|  | 16120 |  | 
|  | 16121 | fi | 
|  | 16122 |  | 
|  | 16123 |  | 
|  | 16124 | fi | 
|  | 16125 |  | 
|  | 16126 |  | 
|  | 16127 | fi | 
|  | 16128 |  | 
|  | 16129 | ;; | 
|  | 16130 | esac | 
|  | 16131 |  | 
|  | 16132 | if test "x$lt_cv_dlopen" != xno; then | 
|  | 16133 | enable_dlopen=yes | 
|  | 16134 | else | 
|  | 16135 | enable_dlopen=no | 
|  | 16136 | fi | 
|  | 16137 |  | 
|  | 16138 | case $lt_cv_dlopen in | 
|  | 16139 | dlopen) | 
|  | 16140 | save_CPPFLAGS="$CPPFLAGS" | 
|  | 16141 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 
|  | 16142 |  | 
|  | 16143 | save_LDFLAGS="$LDFLAGS" | 
|  | 16144 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 
|  | 16145 |  | 
|  | 16146 | save_LIBS="$LIBS" | 
|  | 16147 | LIBS="$lt_cv_dlopen_libs $LIBS" | 
|  | 16148 |  | 
|  | 16149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | 
|  | 16150 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16151 | if ${lt_cv_dlopen_self+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16152 | $as_echo_n "(cached) " >&6 | 
|  | 16153 | else | 
|  | 16154 | if test "$cross_compiling" = yes; then : | 
|  | 16155 | lt_cv_dlopen_self=cross | 
|  | 16156 | else | 
|  | 16157 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 16158 | lt_status=$lt_dlunknown | 
|  | 16159 | cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16160 | #line $LINENO "configure" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16161 | #include "confdefs.h" | 
|  | 16162 |  | 
|  | 16163 | #if HAVE_DLFCN_H | 
|  | 16164 | #include <dlfcn.h> | 
|  | 16165 | #endif | 
|  | 16166 |  | 
|  | 16167 | #include <stdio.h> | 
|  | 16168 |  | 
|  | 16169 | #ifdef RTLD_GLOBAL | 
|  | 16170 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 16171 | #else | 
|  | 16172 | #  ifdef DL_GLOBAL | 
|  | 16173 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 16174 | #  else | 
|  | 16175 | #    define LT_DLGLOBAL		0 | 
|  | 16176 | #  endif | 
|  | 16177 | #endif | 
|  | 16178 |  | 
|  | 16179 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 16180 | find out it does not work in some platform. */ | 
|  | 16181 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 16182 | #  ifdef RTLD_LAZY | 
|  | 16183 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 16184 | #  else | 
|  | 16185 | #    ifdef DL_LAZY | 
|  | 16186 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 16187 | #    else | 
|  | 16188 | #      ifdef RTLD_NOW | 
|  | 16189 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 16190 | #      else | 
|  | 16191 | #        ifdef DL_NOW | 
|  | 16192 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 16193 | #        else | 
|  | 16194 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 16195 | #        endif | 
|  | 16196 | #      endif | 
|  | 16197 | #    endif | 
|  | 16198 | #  endif | 
|  | 16199 | #endif | 
|  | 16200 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16201 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
|  | 16202 | correspondingly for the symbols needed.  */ | 
|  | 16203 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16204 | int fnord () __attribute__((visibility("default"))); | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16205 | #endif | 
|  | 16206 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16207 | int fnord () { return 42; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16208 | int main () | 
|  | 16209 | { | 
|  | 16210 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 16211 | int status = $lt_dlunknown; | 
|  | 16212 |  | 
|  | 16213 | if (self) | 
|  | 16214 | { | 
|  | 16215 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16216 | else | 
|  | 16217 | { | 
|  | 16218 | if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
|  | 16219 | else puts (dlerror ()); | 
|  | 16220 | } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16221 | /* dlclose (self); */ | 
|  | 16222 | } | 
|  | 16223 | else | 
|  | 16224 | puts (dlerror ()); | 
|  | 16225 |  | 
|  | 16226 | return status; | 
|  | 16227 | } | 
|  | 16228 | _LT_EOF | 
|  | 16229 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
|  | 16230 | (eval $ac_link) 2>&5 | 
|  | 16231 | ac_status=$? | 
|  | 16232 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 16233 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 16234 | (./conftest; exit; ) >&5 2>/dev/null | 
|  | 16235 | lt_status=$? | 
|  | 16236 | case x$lt_status in | 
|  | 16237 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 16238 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 
|  | 16239 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | 
|  | 16240 | esac | 
|  | 16241 | else : | 
|  | 16242 | # compilation failed | 
|  | 16243 | lt_cv_dlopen_self=no | 
|  | 16244 | fi | 
|  | 16245 | fi | 
|  | 16246 | rm -fr conftest* | 
|  | 16247 |  | 
|  | 16248 |  | 
|  | 16249 | fi | 
|  | 16250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | 
|  | 16251 | $as_echo "$lt_cv_dlopen_self" >&6; } | 
|  | 16252 |  | 
|  | 16253 | if test "x$lt_cv_dlopen_self" = xyes; then | 
|  | 16254 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | 
|  | 16255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | 
|  | 16256 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16257 | if ${lt_cv_dlopen_self_static+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16258 | $as_echo_n "(cached) " >&6 | 
|  | 16259 | else | 
|  | 16260 | if test "$cross_compiling" = yes; then : | 
|  | 16261 | lt_cv_dlopen_self_static=cross | 
|  | 16262 | else | 
|  | 16263 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 16264 | lt_status=$lt_dlunknown | 
|  | 16265 | cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16266 | #line $LINENO "configure" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16267 | #include "confdefs.h" | 
|  | 16268 |  | 
|  | 16269 | #if HAVE_DLFCN_H | 
|  | 16270 | #include <dlfcn.h> | 
|  | 16271 | #endif | 
|  | 16272 |  | 
|  | 16273 | #include <stdio.h> | 
|  | 16274 |  | 
|  | 16275 | #ifdef RTLD_GLOBAL | 
|  | 16276 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 16277 | #else | 
|  | 16278 | #  ifdef DL_GLOBAL | 
|  | 16279 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 16280 | #  else | 
|  | 16281 | #    define LT_DLGLOBAL		0 | 
|  | 16282 | #  endif | 
|  | 16283 | #endif | 
|  | 16284 |  | 
|  | 16285 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 16286 | find out it does not work in some platform. */ | 
|  | 16287 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 16288 | #  ifdef RTLD_LAZY | 
|  | 16289 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 16290 | #  else | 
|  | 16291 | #    ifdef DL_LAZY | 
|  | 16292 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 16293 | #    else | 
|  | 16294 | #      ifdef RTLD_NOW | 
|  | 16295 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 16296 | #      else | 
|  | 16297 | #        ifdef DL_NOW | 
|  | 16298 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 16299 | #        else | 
|  | 16300 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 16301 | #        endif | 
|  | 16302 | #      endif | 
|  | 16303 | #    endif | 
|  | 16304 | #  endif | 
|  | 16305 | #endif | 
|  | 16306 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16307 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
|  | 16308 | correspondingly for the symbols needed.  */ | 
|  | 16309 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16310 | int fnord () __attribute__((visibility("default"))); | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16311 | #endif | 
|  | 16312 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16313 | int fnord () { return 42; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16314 | int main () | 
|  | 16315 | { | 
|  | 16316 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 16317 | int status = $lt_dlunknown; | 
|  | 16318 |  | 
|  | 16319 | if (self) | 
|  | 16320 | { | 
|  | 16321 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16322 | else | 
|  | 16323 | { | 
|  | 16324 | if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
|  | 16325 | else puts (dlerror ()); | 
|  | 16326 | } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16327 | /* dlclose (self); */ | 
|  | 16328 | } | 
|  | 16329 | else | 
|  | 16330 | puts (dlerror ()); | 
|  | 16331 |  | 
|  | 16332 | return status; | 
|  | 16333 | } | 
|  | 16334 | _LT_EOF | 
|  | 16335 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
|  | 16336 | (eval $ac_link) 2>&5 | 
|  | 16337 | ac_status=$? | 
|  | 16338 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 16339 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 16340 | (./conftest; exit; ) >&5 2>/dev/null | 
|  | 16341 | lt_status=$? | 
|  | 16342 | case x$lt_status in | 
|  | 16343 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 16344 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 
|  | 16345 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | 
|  | 16346 | esac | 
|  | 16347 | else : | 
|  | 16348 | # compilation failed | 
|  | 16349 | lt_cv_dlopen_self_static=no | 
|  | 16350 | fi | 
|  | 16351 | fi | 
|  | 16352 | rm -fr conftest* | 
|  | 16353 |  | 
|  | 16354 |  | 
|  | 16355 | fi | 
|  | 16356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | 
|  | 16357 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | 
|  | 16358 | fi | 
|  | 16359 |  | 
|  | 16360 | CPPFLAGS="$save_CPPFLAGS" | 
|  | 16361 | LDFLAGS="$save_LDFLAGS" | 
|  | 16362 | LIBS="$save_LIBS" | 
|  | 16363 | ;; | 
|  | 16364 | esac | 
|  | 16365 |  | 
|  | 16366 | case $lt_cv_dlopen_self in | 
|  | 16367 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | 
|  | 16368 | *) enable_dlopen_self=unknown ;; | 
|  | 16369 | esac | 
|  | 16370 |  | 
|  | 16371 | case $lt_cv_dlopen_self_static in | 
|  | 16372 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | 
|  | 16373 | *) enable_dlopen_self_static=unknown ;; | 
|  | 16374 | esac | 
|  | 16375 | fi | 
|  | 16376 |  | 
|  | 16377 |  | 
|  | 16378 |  | 
|  | 16379 |  | 
|  | 16380 |  | 
|  | 16381 |  | 
|  | 16382 |  | 
|  | 16383 |  | 
|  | 16384 |  | 
|  | 16385 |  | 
|  | 16386 |  | 
|  | 16387 |  | 
|  | 16388 |  | 
|  | 16389 |  | 
|  | 16390 |  | 
|  | 16391 |  | 
|  | 16392 |  | 
|  | 16393 | striplib= | 
|  | 16394 | old_striplib= | 
|  | 16395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | 
|  | 16396 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | 
|  | 16397 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | 
|  | 16398 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | 
|  | 16399 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | 
|  | 16400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 16401 | $as_echo "yes" >&6; } | 
|  | 16402 | else | 
|  | 16403 | # FIXME - insert some real tests, host_os isn't really good enough | 
|  | 16404 | case $host_os in | 
|  | 16405 | darwin*) | 
|  | 16406 | if test -n "$STRIP" ; then | 
|  | 16407 | striplib="$STRIP -x" | 
|  | 16408 | old_striplib="$STRIP -S" | 
|  | 16409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 16410 | $as_echo "yes" >&6; } | 
|  | 16411 | else | 
|  | 16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16413 | $as_echo "no" >&6; } | 
|  | 16414 | fi | 
|  | 16415 | ;; | 
|  | 16416 | *) | 
|  | 16417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16418 | $as_echo "no" >&6; } | 
|  | 16419 | ;; | 
|  | 16420 | esac | 
|  | 16421 | fi | 
|  | 16422 |  | 
|  | 16423 |  | 
|  | 16424 |  | 
|  | 16425 |  | 
|  | 16426 |  | 
|  | 16427 |  | 
|  | 16428 |  | 
|  | 16429 |  | 
|  | 16430 |  | 
|  | 16431 |  | 
|  | 16432 |  | 
|  | 16433 |  | 
|  | 16434 | # Report which library types will actually be built | 
|  | 16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | 
|  | 16436 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | 
|  | 16437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | 
|  | 16438 | $as_echo "$can_build_shared" >&6; } | 
|  | 16439 |  | 
|  | 16440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | 
|  | 16441 | $as_echo_n "checking whether to build shared libraries... " >&6; } | 
|  | 16442 | test "$can_build_shared" = "no" && enable_shared=no | 
|  | 16443 |  | 
|  | 16444 | # On AIX, shared libraries and static libraries use the same namespace, and | 
|  | 16445 | # are all built from PIC. | 
|  | 16446 | case $host_os in | 
|  | 16447 | aix3*) | 
|  | 16448 | test "$enable_shared" = yes && enable_static=no | 
|  | 16449 | if test -n "$RANLIB"; then | 
|  | 16450 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | 
|  | 16451 | postinstall_cmds='$RANLIB $lib' | 
|  | 16452 | fi | 
|  | 16453 | ;; | 
|  | 16454 |  | 
|  | 16455 | aix[4-9]*) | 
|  | 16456 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | 
|  | 16457 | test "$enable_shared" = yes && enable_static=no | 
|  | 16458 | fi | 
|  | 16459 | ;; | 
|  | 16460 | esac | 
|  | 16461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | 
|  | 16462 | $as_echo "$enable_shared" >&6; } | 
|  | 16463 |  | 
|  | 16464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | 
|  | 16465 | $as_echo_n "checking whether to build static libraries... " >&6; } | 
|  | 16466 | # Make sure either enable_shared or enable_static is yes. | 
|  | 16467 | test "$enable_shared" = yes || enable_static=yes | 
|  | 16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | 
|  | 16469 | $as_echo "$enable_static" >&6; } | 
|  | 16470 |  | 
|  | 16471 |  | 
|  | 16472 |  | 
|  | 16473 |  | 
|  | 16474 | fi | 
|  | 16475 | ac_ext=c | 
|  | 16476 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16477 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16478 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16479 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 16480 |  | 
|  | 16481 | CC="$lt_save_CC" | 
|  | 16482 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16483 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | 
|  | 16484 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | 
|  | 16485 | (test "X$CXX" != "Xg++"))) ; then | 
|  | 16486 | ac_ext=cpp | 
|  | 16487 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 16488 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16489 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16490 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | 
|  | 16492 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | 
|  | 16493 | if test -z "$CXXCPP"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16494 | if ${ac_cv_prog_CXXCPP+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16495 | $as_echo_n "(cached) " >&6 | 
|  | 16496 | else | 
|  | 16497 | # Double quotes because CXXCPP needs to be expanded | 
|  | 16498 | for CXXCPP in "$CXX -E" "/lib/cpp" | 
|  | 16499 | do | 
|  | 16500 | ac_preproc_ok=false | 
|  | 16501 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 16502 | do | 
|  | 16503 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 16504 | # with a fresh cross-compiler works. | 
|  | 16505 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16506 | # <limits.h> exists even on freestanding compilers. | 
|  | 16507 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 16508 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 16509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16510 | /* end confdefs.h.  */ | 
|  | 16511 | #ifdef __STDC__ | 
|  | 16512 | # include <limits.h> | 
|  | 16513 | #else | 
|  | 16514 | # include <assert.h> | 
|  | 16515 | #endif | 
|  | 16516 | Syntax error | 
|  | 16517 | _ACEOF | 
|  | 16518 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 16519 |  | 
|  | 16520 | else | 
|  | 16521 | # Broken: fails on valid input. | 
|  | 16522 | continue | 
|  | 16523 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16524 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16525 |  | 
|  | 16526 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 16527 | # can be detected and how. | 
|  | 16528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16529 | /* end confdefs.h.  */ | 
|  | 16530 | #include <ac_nonexistent.h> | 
|  | 16531 | _ACEOF | 
|  | 16532 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 16533 | # Broken: success on invalid input. | 
|  | 16534 | continue | 
|  | 16535 | else | 
|  | 16536 | # Passes both tests. | 
|  | 16537 | ac_preproc_ok=: | 
|  | 16538 | break | 
|  | 16539 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16540 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16541 |  | 
|  | 16542 | done | 
|  | 16543 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16544 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16545 | if $ac_preproc_ok; then : | 
|  | 16546 | break | 
|  | 16547 | fi | 
|  | 16548 |  | 
|  | 16549 | done | 
|  | 16550 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 16551 |  | 
|  | 16552 | fi | 
|  | 16553 | CXXCPP=$ac_cv_prog_CXXCPP | 
|  | 16554 | else | 
|  | 16555 | ac_cv_prog_CXXCPP=$CXXCPP | 
|  | 16556 | fi | 
|  | 16557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | 
|  | 16558 | $as_echo "$CXXCPP" >&6; } | 
|  | 16559 | ac_preproc_ok=false | 
|  | 16560 | for ac_cxx_preproc_warn_flag in '' yes | 
|  | 16561 | do | 
|  | 16562 | # Use a header file that comes with gcc, so configuring glibc | 
|  | 16563 | # with a fresh cross-compiler works. | 
|  | 16564 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | 
|  | 16565 | # <limits.h> exists even on freestanding compilers. | 
|  | 16566 | # On the NeXT, cc -E runs the code through the compiler's parser, | 
|  | 16567 | # not just through cpp. "Syntax error" is here to catch this case. | 
|  | 16568 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16569 | /* end confdefs.h.  */ | 
|  | 16570 | #ifdef __STDC__ | 
|  | 16571 | # include <limits.h> | 
|  | 16572 | #else | 
|  | 16573 | # include <assert.h> | 
|  | 16574 | #endif | 
|  | 16575 | Syntax error | 
|  | 16576 | _ACEOF | 
|  | 16577 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 16578 |  | 
|  | 16579 | else | 
|  | 16580 | # Broken: fails on valid input. | 
|  | 16581 | continue | 
|  | 16582 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16583 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16584 |  | 
|  | 16585 | # OK, works on sane cases.  Now check whether nonexistent headers | 
|  | 16586 | # can be detected and how. | 
|  | 16587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 16588 | /* end confdefs.h.  */ | 
|  | 16589 | #include <ac_nonexistent.h> | 
|  | 16590 | _ACEOF | 
|  | 16591 | if ac_fn_cxx_try_cpp "$LINENO"; then : | 
|  | 16592 | # Broken: success on invalid input. | 
|  | 16593 | continue | 
|  | 16594 | else | 
|  | 16595 | # Passes both tests. | 
|  | 16596 | ac_preproc_ok=: | 
|  | 16597 | break | 
|  | 16598 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16599 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16600 |  | 
|  | 16601 | done | 
|  | 16602 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16603 | rm -f conftest.i conftest.err conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16604 | if $ac_preproc_ok; then : | 
|  | 16605 |  | 
|  | 16606 | else | 
|  | 16607 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 16608 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
|  | 16609 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | 
|  | 16610 | See \`config.log' for more details" "$LINENO" 5; } | 
|  | 16611 | fi | 
|  | 16612 |  | 
|  | 16613 | ac_ext=c | 
|  | 16614 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 16615 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16616 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16617 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 16618 |  | 
|  | 16619 | else | 
|  | 16620 | _lt_caught_CXX_error=yes | 
|  | 16621 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16622 |  | 
|  | 16623 | ac_ext=cpp | 
|  | 16624 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 16625 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 16626 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 16627 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 16628 |  | 
|  | 16629 | archive_cmds_need_lc_CXX=no | 
|  | 16630 | allow_undefined_flag_CXX= | 
|  | 16631 | always_export_symbols_CXX=no | 
|  | 16632 | archive_expsym_cmds_CXX= | 
|  | 16633 | compiler_needs_object_CXX=no | 
|  | 16634 | export_dynamic_flag_spec_CXX= | 
|  | 16635 | hardcode_direct_CXX=no | 
|  | 16636 | hardcode_direct_absolute_CXX=no | 
|  | 16637 | hardcode_libdir_flag_spec_CXX= | 
|  | 16638 | hardcode_libdir_flag_spec_ld_CXX= | 
|  | 16639 | hardcode_libdir_separator_CXX= | 
|  | 16640 | hardcode_minus_L_CXX=no | 
|  | 16641 | hardcode_shlibpath_var_CXX=unsupported | 
|  | 16642 | hardcode_automatic_CXX=no | 
|  | 16643 | inherit_rpath_CXX=no | 
|  | 16644 | module_cmds_CXX= | 
|  | 16645 | module_expsym_cmds_CXX= | 
|  | 16646 | link_all_deplibs_CXX=unknown | 
|  | 16647 | old_archive_cmds_CXX=$old_archive_cmds | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16648 | reload_flag_CXX=$reload_flag | 
|  | 16649 | reload_cmds_CXX=$reload_cmds | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16650 | no_undefined_flag_CXX= | 
|  | 16651 | whole_archive_flag_spec_CXX= | 
|  | 16652 | enable_shared_with_static_runtimes_CXX=no | 
|  | 16653 |  | 
|  | 16654 | # Source file extension for C++ test sources. | 
|  | 16655 | ac_ext=cpp | 
|  | 16656 |  | 
|  | 16657 | # Object file extension for compiled C++ test sources. | 
|  | 16658 | objext=o | 
|  | 16659 | objext_CXX=$objext | 
|  | 16660 |  | 
|  | 16661 | # No sense in running all these tests if we already determined that | 
|  | 16662 | # the CXX compiler isn't working.  Some variables (like enable_shared) | 
|  | 16663 | # are currently assumed to apply to all compilers on this platform, | 
|  | 16664 | # and will be corrupted by setting them based on a non-working compiler. | 
|  | 16665 | if test "$_lt_caught_CXX_error" != yes; then | 
|  | 16666 | # Code to be used in simple compile tests | 
|  | 16667 | lt_simple_compile_test_code="int some_variable = 0;" | 
|  | 16668 |  | 
|  | 16669 | # Code to be used in simple link tests | 
|  | 16670 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | 
|  | 16671 |  | 
|  | 16672 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 
|  | 16673 |  | 
|  | 16674 |  | 
|  | 16675 |  | 
|  | 16676 |  | 
|  | 16677 |  | 
|  | 16678 |  | 
|  | 16679 | # If no C compiler was specified, use CC. | 
|  | 16680 | LTCC=${LTCC-"$CC"} | 
|  | 16681 |  | 
|  | 16682 | # If no C compiler flags were specified, use CFLAGS. | 
|  | 16683 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | 
|  | 16684 |  | 
|  | 16685 | # Allow CC to be a program name with arguments. | 
|  | 16686 | compiler=$CC | 
|  | 16687 |  | 
|  | 16688 |  | 
|  | 16689 | # save warnings/boilerplate of simple test code | 
|  | 16690 | ac_outfile=conftest.$ac_objext | 
|  | 16691 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | 
|  | 16692 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 16693 | _lt_compiler_boilerplate=`cat conftest.err` | 
|  | 16694 | $RM conftest* | 
|  | 16695 |  | 
|  | 16696 | ac_outfile=conftest.$ac_objext | 
|  | 16697 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | 
|  | 16698 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | 
|  | 16699 | _lt_linker_boilerplate=`cat conftest.err` | 
|  | 16700 | $RM -r conftest* | 
|  | 16701 |  | 
|  | 16702 |  | 
|  | 16703 | # Allow CC to be a program name with arguments. | 
|  | 16704 | lt_save_CC=$CC | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16705 | lt_save_CFLAGS=$CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16706 | lt_save_LD=$LD | 
|  | 16707 | lt_save_GCC=$GCC | 
|  | 16708 | GCC=$GXX | 
|  | 16709 | lt_save_with_gnu_ld=$with_gnu_ld | 
|  | 16710 | lt_save_path_LD=$lt_cv_path_LD | 
|  | 16711 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 
|  | 16712 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 
|  | 16713 | else | 
|  | 16714 | $as_unset lt_cv_prog_gnu_ld | 
|  | 16715 | fi | 
|  | 16716 | if test -n "${lt_cv_path_LDCXX+set}"; then | 
|  | 16717 | lt_cv_path_LD=$lt_cv_path_LDCXX | 
|  | 16718 | else | 
|  | 16719 | $as_unset lt_cv_path_LD | 
|  | 16720 | fi | 
|  | 16721 | test -z "${LDCXX+set}" || LD=$LDCXX | 
|  | 16722 | CC=${CXX-"c++"} | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16723 | CFLAGS=$CXXFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16724 | compiler=$CC | 
|  | 16725 | compiler_CXX=$CC | 
|  | 16726 | for cc_temp in $compiler""; do | 
|  | 16727 | case $cc_temp in | 
|  | 16728 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | 
|  | 16729 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | 
|  | 16730 | \-*) ;; | 
|  | 16731 | *) break;; | 
|  | 16732 | esac | 
|  | 16733 | done | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16734 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16735 |  | 
|  | 16736 |  | 
|  | 16737 | if test -n "$compiler"; then | 
|  | 16738 | # We don't want -fno-exception when compiling C++ code, so set the | 
|  | 16739 | # no_builtin_flag separately | 
|  | 16740 | if test "$GXX" = yes; then | 
|  | 16741 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | 
|  | 16742 | else | 
|  | 16743 | lt_prog_compiler_no_builtin_flag_CXX= | 
|  | 16744 | fi | 
|  | 16745 |  | 
|  | 16746 | if test "$GXX" = yes; then | 
|  | 16747 | # Set up default GNU C++ configuration | 
|  | 16748 |  | 
|  | 16749 |  | 
|  | 16750 |  | 
|  | 16751 | # Check whether --with-gnu-ld was given. | 
|  | 16752 | if test "${with_gnu_ld+set}" = set; then : | 
|  | 16753 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | 
|  | 16754 | else | 
|  | 16755 | with_gnu_ld=no | 
|  | 16756 | fi | 
|  | 16757 |  | 
|  | 16758 | ac_prog=ld | 
|  | 16759 | if test "$GCC" = yes; then | 
|  | 16760 | # Check if gcc -print-prog-name=ld gives a path. | 
|  | 16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | 
|  | 16762 | $as_echo_n "checking for ld used by $CC... " >&6; } | 
|  | 16763 | case $host in | 
|  | 16764 | *-*-mingw*) | 
|  | 16765 | # gcc leaves a trailing carriage return which upsets mingw | 
|  | 16766 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
|  | 16767 | *) | 
|  | 16768 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
|  | 16769 | esac | 
|  | 16770 | case $ac_prog in | 
|  | 16771 | # Accept absolute paths. | 
|  | 16772 | [\\/]* | ?:[\\/]*) | 
|  | 16773 | re_direlt='/[^/][^/]*/\.\./' | 
|  | 16774 | # Canonicalize the pathname of ld | 
|  | 16775 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | 
|  | 16776 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | 
|  | 16777 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | 
|  | 16778 | done | 
|  | 16779 | test -z "$LD" && LD="$ac_prog" | 
|  | 16780 | ;; | 
|  | 16781 | "") | 
|  | 16782 | # If it fails, then pretend we aren't using GCC. | 
|  | 16783 | ac_prog=ld | 
|  | 16784 | ;; | 
|  | 16785 | *) | 
|  | 16786 | # If it is relative, then search for the first ld in PATH. | 
|  | 16787 | with_gnu_ld=unknown | 
|  | 16788 | ;; | 
|  | 16789 | esac | 
|  | 16790 | elif test "$with_gnu_ld" = yes; then | 
|  | 16791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | 
|  | 16792 | $as_echo_n "checking for GNU ld... " >&6; } | 
|  | 16793 | else | 
|  | 16794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | 
|  | 16795 | $as_echo_n "checking for non-GNU ld... " >&6; } | 
|  | 16796 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16797 | if ${lt_cv_path_LD+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16798 | $as_echo_n "(cached) " >&6 | 
|  | 16799 | else | 
|  | 16800 | if test -z "$LD"; then | 
|  | 16801 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 
|  | 16802 | for ac_dir in $PATH; do | 
|  | 16803 | IFS="$lt_save_ifs" | 
|  | 16804 | test -z "$ac_dir" && ac_dir=. | 
|  | 16805 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
|  | 16806 | lt_cv_path_LD="$ac_dir/$ac_prog" | 
|  | 16807 | # Check to see if the program is GNU ld.  I'd rather use --version, | 
|  | 16808 | # but apparently some variants of GNU ld only accept -v. | 
|  | 16809 | # Break only if it was the GNU/non-GNU ld that we prefer. | 
|  | 16810 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | 
|  | 16811 | *GNU* | *'with BFD'*) | 
|  | 16812 | test "$with_gnu_ld" != no && break | 
|  | 16813 | ;; | 
|  | 16814 | *) | 
|  | 16815 | test "$with_gnu_ld" != yes && break | 
|  | 16816 | ;; | 
|  | 16817 | esac | 
|  | 16818 | fi | 
|  | 16819 | done | 
|  | 16820 | IFS="$lt_save_ifs" | 
|  | 16821 | else | 
|  | 16822 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | 
|  | 16823 | fi | 
|  | 16824 | fi | 
|  | 16825 |  | 
|  | 16826 | LD="$lt_cv_path_LD" | 
|  | 16827 | if test -n "$LD"; then | 
|  | 16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | 
|  | 16829 | $as_echo "$LD" >&6; } | 
|  | 16830 | else | 
|  | 16831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 16832 | $as_echo "no" >&6; } | 
|  | 16833 | fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 16834 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | 
|  | 16836 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16837 | if ${lt_cv_prog_gnu_ld+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16838 | $as_echo_n "(cached) " >&6 | 
|  | 16839 | else | 
|  | 16840 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | 
|  | 16841 | case `$LD -v 2>&1 </dev/null` in | 
|  | 16842 | *GNU* | *'with BFD'*) | 
|  | 16843 | lt_cv_prog_gnu_ld=yes | 
|  | 16844 | ;; | 
|  | 16845 | *) | 
|  | 16846 | lt_cv_prog_gnu_ld=no | 
|  | 16847 | ;; | 
|  | 16848 | esac | 
|  | 16849 | fi | 
|  | 16850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | 
|  | 16851 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | 
|  | 16852 | with_gnu_ld=$lt_cv_prog_gnu_ld | 
|  | 16853 |  | 
|  | 16854 |  | 
|  | 16855 |  | 
|  | 16856 |  | 
|  | 16857 |  | 
|  | 16858 |  | 
|  | 16859 |  | 
|  | 16860 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | 
|  | 16861 | # archiving commands below assume that GNU ld is being used. | 
|  | 16862 | if test "$with_gnu_ld" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16863 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 16864 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16865 |  | 
|  | 16866 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 16867 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 16868 |  | 
|  | 16869 | # If archive_cmds runs LD, not CC, wlarc should be empty | 
|  | 16870 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | 
|  | 16871 | #     investigate it a little bit more. (MM) | 
|  | 16872 | wlarc='${wl}' | 
|  | 16873 |  | 
|  | 16874 | # ancient GNU ld didn't support --whole-archive et. al. | 
|  | 16875 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | 
|  | 16876 | $GREP 'no-whole-archive' > /dev/null; then | 
|  | 16877 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 16878 | else | 
|  | 16879 | whole_archive_flag_spec_CXX= | 
|  | 16880 | fi | 
|  | 16881 | else | 
|  | 16882 | with_gnu_ld=no | 
|  | 16883 | wlarc= | 
|  | 16884 |  | 
|  | 16885 | # A generic and very simple default shared library creation | 
|  | 16886 | # command for GNU C++ for the case where it uses the native | 
|  | 16887 | # linker, instead of GNU ld.  If possible, this setting should | 
|  | 16888 | # overridden to take advantage of the native linker features on | 
|  | 16889 | # the platform it is being used on. | 
|  | 16890 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 16891 | fi | 
|  | 16892 |  | 
|  | 16893 | # Commands to make compiler produce verbose output that lists | 
|  | 16894 | # what "hidden" libraries, object files and flags are used when | 
|  | 16895 | # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16896 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16897 |  | 
|  | 16898 | else | 
|  | 16899 | GXX=no | 
|  | 16900 | with_gnu_ld=no | 
|  | 16901 | wlarc= | 
|  | 16902 | fi | 
|  | 16903 |  | 
|  | 16904 | # PORTME: fill in a description of your system's C++ link characteristics | 
|  | 16905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 16906 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
|  | 16907 | ld_shlibs_CXX=yes | 
|  | 16908 | case $host_os in | 
|  | 16909 | aix3*) | 
|  | 16910 | # FIXME: insert proper C++ library support | 
|  | 16911 | ld_shlibs_CXX=no | 
|  | 16912 | ;; | 
|  | 16913 | aix[4-9]*) | 
|  | 16914 | if test "$host_cpu" = ia64; then | 
|  | 16915 | # On IA64, the linker does run time linking by default, so we don't | 
|  | 16916 | # have to do anything special. | 
|  | 16917 | aix_use_runtimelinking=no | 
|  | 16918 | exp_sym_flag='-Bexport' | 
|  | 16919 | no_entry_flag="" | 
|  | 16920 | else | 
|  | 16921 | aix_use_runtimelinking=no | 
|  | 16922 |  | 
|  | 16923 | # Test if we are trying to use run time linking or normal | 
|  | 16924 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | 
|  | 16925 | # need to do runtime linking. | 
|  | 16926 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | 
|  | 16927 | for ld_flag in $LDFLAGS; do | 
|  | 16928 | case $ld_flag in | 
|  | 16929 | *-brtl*) | 
|  | 16930 | aix_use_runtimelinking=yes | 
|  | 16931 | break | 
|  | 16932 | ;; | 
|  | 16933 | esac | 
|  | 16934 | done | 
|  | 16935 | ;; | 
|  | 16936 | esac | 
|  | 16937 |  | 
|  | 16938 | exp_sym_flag='-bexport' | 
|  | 16939 | no_entry_flag='-bnoentry' | 
|  | 16940 | fi | 
|  | 16941 |  | 
|  | 16942 | # When large executables or shared objects are built, AIX ld can | 
|  | 16943 | # have problems creating the table of contents.  If linking a library | 
|  | 16944 | # or program results in "error TOC overflow" add -mminimal-toc to | 
|  | 16945 | # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not | 
|  | 16946 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | 
|  | 16947 |  | 
|  | 16948 | archive_cmds_CXX='' | 
|  | 16949 | hardcode_direct_CXX=yes | 
|  | 16950 | hardcode_direct_absolute_CXX=yes | 
|  | 16951 | hardcode_libdir_separator_CXX=':' | 
|  | 16952 | link_all_deplibs_CXX=yes | 
|  | 16953 | file_list_spec_CXX='${wl}-f,' | 
|  | 16954 |  | 
|  | 16955 | if test "$GXX" = yes; then | 
|  | 16956 | case $host_os in aix4.[012]|aix4.[012].*) | 
|  | 16957 | # We only want to do this on AIX 4.2 and lower, the check | 
|  | 16958 | # below for broken collect2 doesn't work under 4.3+ | 
|  | 16959 | collect2name=`${CC} -print-prog-name=collect2` | 
|  | 16960 | if test -f "$collect2name" && | 
|  | 16961 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | 
|  | 16962 | then | 
|  | 16963 | # We have reworked collect2 | 
|  | 16964 | : | 
|  | 16965 | else | 
|  | 16966 | # We have old collect2 | 
|  | 16967 | hardcode_direct_CXX=unsupported | 
|  | 16968 | # It fails to find uninstalled libraries when the uninstalled | 
|  | 16969 | # path is not listed in the libpath.  Setting hardcode_minus_L | 
|  | 16970 | # to unsupported forces relinking | 
|  | 16971 | hardcode_minus_L_CXX=yes | 
|  | 16972 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 16973 | hardcode_libdir_separator_CXX= | 
|  | 16974 | fi | 
|  | 16975 | esac | 
|  | 16976 | shared_flag='-shared' | 
|  | 16977 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16978 | shared_flag="$shared_flag "'${wl}-G' | 
|  | 16979 | fi | 
|  | 16980 | else | 
|  | 16981 | # not using gcc | 
|  | 16982 | if test "$host_cpu" = ia64; then | 
|  | 16983 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | 
|  | 16984 | # chokes on -Wl,-G. The following line is correct: | 
|  | 16985 | shared_flag='-G' | 
|  | 16986 | else | 
|  | 16987 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 16988 | shared_flag='${wl}-G' | 
|  | 16989 | else | 
|  | 16990 | shared_flag='${wl}-bM:SRE' | 
|  | 16991 | fi | 
|  | 16992 | fi | 
|  | 16993 | fi | 
|  | 16994 |  | 
|  | 16995 | export_dynamic_flag_spec_CXX='${wl}-bexpall' | 
|  | 16996 | # It seems that -bexpall does not export symbols beginning with | 
|  | 16997 | # underscore (_), so it is better to generate a list of symbols to | 
|  | 16998 | # export. | 
|  | 16999 | always_export_symbols_CXX=yes | 
|  | 17000 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 17001 | # Warning - without using the other runtime loading flags (-brtl), | 
|  | 17002 | # -berok will link without error, but may produce a broken library. | 
|  | 17003 | allow_undefined_flag_CXX='-berok' | 
|  | 17004 | # Determine the default libpath from the value encoded in an empty | 
|  | 17005 | # executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17006 | if test "${lt_cv_aix_libpath+set}" = set; then | 
|  | 17007 | aix_libpath=$lt_cv_aix_libpath | 
|  | 17008 | else | 
|  | 17009 | if ${lt_cv_aix_libpath__CXX+:} false; then : | 
|  | 17010 | $as_echo_n "(cached) " >&6 | 
|  | 17011 | else | 
|  | 17012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17013 | /* end confdefs.h.  */ | 
|  | 17014 |  | 
|  | 17015 | int | 
|  | 17016 | main () | 
|  | 17017 | { | 
|  | 17018 |  | 
|  | 17019 | ; | 
|  | 17020 | return 0; | 
|  | 17021 | } | 
|  | 17022 | _ACEOF | 
|  | 17023 | if ac_fn_cxx_try_link "$LINENO"; then : | 
|  | 17024 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17025 | lt_aix_libpath_sed=' | 
|  | 17026 | /Import File Strings/,/^$/ { | 
|  | 17027 | /^0/ { | 
|  | 17028 | s/^0  *\([^ ]*\) *$/\1/ | 
|  | 17029 | p | 
|  | 17030 | } | 
|  | 17031 | }' | 
|  | 17032 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 17033 | # Check for a 64-bit object if we didn't find anything. | 
|  | 17034 | if test -z "$lt_cv_aix_libpath__CXX"; then | 
|  | 17035 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 17036 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17037 | fi | 
|  | 17038 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17039 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17040 | if test -z "$lt_cv_aix_libpath__CXX"; then | 
|  | 17041 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | 
|  | 17042 | fi | 
|  | 17043 |  | 
|  | 17044 | fi | 
|  | 17045 |  | 
|  | 17046 | aix_libpath=$lt_cv_aix_libpath__CXX | 
|  | 17047 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17048 |  | 
|  | 17049 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 17050 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17051 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17052 | else | 
|  | 17053 | if test "$host_cpu" = ia64; then | 
|  | 17054 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 
|  | 17055 | allow_undefined_flag_CXX="-z nodefs" | 
|  | 17056 | 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" | 
|  | 17057 | else | 
|  | 17058 | # Determine the default libpath from the value encoded in an | 
|  | 17059 | # empty executable. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17060 | if test "${lt_cv_aix_libpath+set}" = set; then | 
|  | 17061 | aix_libpath=$lt_cv_aix_libpath | 
|  | 17062 | else | 
|  | 17063 | if ${lt_cv_aix_libpath__CXX+:} false; then : | 
|  | 17064 | $as_echo_n "(cached) " >&6 | 
|  | 17065 | else | 
|  | 17066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17067 | /* end confdefs.h.  */ | 
|  | 17068 |  | 
|  | 17069 | int | 
|  | 17070 | main () | 
|  | 17071 | { | 
|  | 17072 |  | 
|  | 17073 | ; | 
|  | 17074 | return 0; | 
|  | 17075 | } | 
|  | 17076 | _ACEOF | 
|  | 17077 | if ac_fn_cxx_try_link "$LINENO"; then : | 
|  | 17078 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17079 | lt_aix_libpath_sed=' | 
|  | 17080 | /Import File Strings/,/^$/ { | 
|  | 17081 | /^0/ { | 
|  | 17082 | s/^0  *\([^ ]*\) *$/\1/ | 
|  | 17083 | p | 
|  | 17084 | } | 
|  | 17085 | }' | 
|  | 17086 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 17087 | # Check for a 64-bit object if we didn't find anything. | 
|  | 17088 | if test -z "$lt_cv_aix_libpath__CXX"; then | 
|  | 17089 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | 
|  | 17090 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17091 | fi | 
|  | 17092 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 17093 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17094 | if test -z "$lt_cv_aix_libpath__CXX"; then | 
|  | 17095 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" | 
|  | 17096 | fi | 
|  | 17097 |  | 
|  | 17098 | fi | 
|  | 17099 |  | 
|  | 17100 | aix_libpath=$lt_cv_aix_libpath__CXX | 
|  | 17101 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17102 |  | 
|  | 17103 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 
|  | 17104 | # Warning - without using the other run time loading flags, | 
|  | 17105 | # -berok will link without error, but may produce a broken library. | 
|  | 17106 | no_undefined_flag_CXX=' ${wl}-bernotok' | 
|  | 17107 | allow_undefined_flag_CXX=' ${wl}-berok' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17108 | if test "$with_gnu_ld" = yes; then | 
|  | 17109 | # We only use this code for GNU lds that support --whole-archive. | 
|  | 17110 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 17111 | else | 
|  | 17112 | # Exported symbols can be pulled into shared objects from archives | 
|  | 17113 | whole_archive_flag_spec_CXX='$convenience' | 
|  | 17114 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17115 | archive_cmds_need_lc_CXX=yes | 
|  | 17116 | # This is similar to how AIX traditionally builds its shared | 
|  | 17117 | # libraries. | 
|  | 17118 | 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' | 
|  | 17119 | fi | 
|  | 17120 | fi | 
|  | 17121 | ;; | 
|  | 17122 |  | 
|  | 17123 | beos*) | 
|  | 17124 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | 
|  | 17125 | allow_undefined_flag_CXX=unsupported | 
|  | 17126 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | 
|  | 17127 | # support --undefined.  This deserves some investigation.  FIXME | 
|  | 17128 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 17129 | else | 
|  | 17130 | ld_shlibs_CXX=no | 
|  | 17131 | fi | 
|  | 17132 | ;; | 
|  | 17133 |  | 
|  | 17134 | chorus*) | 
|  | 17135 | case $cc_basename in | 
|  | 17136 | *) | 
|  | 17137 | # FIXME: insert proper C++ library support | 
|  | 17138 | ld_shlibs_CXX=no | 
|  | 17139 | ;; | 
|  | 17140 | esac | 
|  | 17141 | ;; | 
|  | 17142 |  | 
|  | 17143 | cygwin* | mingw* | pw32* | cegcc*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17144 | case $GXX,$cc_basename in | 
|  | 17145 | ,cl* | no,cl*) | 
|  | 17146 | # Native MSVC | 
|  | 17147 | # hardcode_libdir_flag_spec is actually meaningless, as there is | 
|  | 17148 | # no search path for DLLs. | 
|  | 17149 | hardcode_libdir_flag_spec_CXX=' ' | 
|  | 17150 | allow_undefined_flag_CXX=unsupported | 
|  | 17151 | always_export_symbols_CXX=yes | 
|  | 17152 | file_list_spec_CXX='@' | 
|  | 17153 | # Tell ltmain to make .lib files, not .a files. | 
|  | 17154 | libext=lib | 
|  | 17155 | # Tell ltmain to make .dll files, not .so files. | 
|  | 17156 | shrext_cmds=".dll" | 
|  | 17157 | # FIXME: Setting linknames here is a bad hack. | 
|  | 17158 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | 
|  | 17159 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 17160 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | 
|  | 17161 | else | 
|  | 17162 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | 
|  | 17163 | fi~ | 
|  | 17164 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | 
|  | 17165 | linknames=' | 
|  | 17166 | # The linker will not automatically build a static lib if we build a DLL. | 
|  | 17167 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | 
|  | 17168 | enable_shared_with_static_runtimes_CXX=yes | 
|  | 17169 | # Don't use ranlib | 
|  | 17170 | old_postinstall_cmds_CXX='chmod 644 $oldlib' | 
|  | 17171 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | 
|  | 17172 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | 
|  | 17173 | case $lt_outputfile in | 
|  | 17174 | *.exe|*.EXE) ;; | 
|  | 17175 | *) | 
|  | 17176 | lt_outputfile="$lt_outputfile.exe" | 
|  | 17177 | lt_tool_outputfile="$lt_tool_outputfile.exe" | 
|  | 17178 | ;; | 
|  | 17179 | esac~ | 
|  | 17180 | func_to_tool_file "$lt_outputfile"~ | 
|  | 17181 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | 
|  | 17182 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | 
|  | 17183 | $RM "$lt_outputfile.manifest"; | 
|  | 17184 | fi' | 
|  | 17185 | ;; | 
|  | 17186 | *) | 
|  | 17187 | # g++ | 
|  | 17188 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 
|  | 17189 | # as there is no search path for DLLs. | 
|  | 17190 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 
|  | 17191 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | 
|  | 17192 | allow_undefined_flag_CXX=unsupported | 
|  | 17193 | always_export_symbols_CXX=no | 
|  | 17194 | enable_shared_with_static_runtimes_CXX=yes | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17195 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17196 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | 
|  | 17197 | 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' | 
|  | 17198 | # If the export-symbols file already is a .def file (1st line | 
|  | 17199 | # is EXPORTS), use it as is; otherwise, prepend... | 
|  | 17200 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 
|  | 17201 | cp $export_symbols $output_objdir/$soname.def; | 
|  | 17202 | else | 
|  | 17203 | echo EXPORTS > $output_objdir/$soname.def; | 
|  | 17204 | cat $export_symbols >> $output_objdir/$soname.def; | 
|  | 17205 | fi~ | 
|  | 17206 | $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' | 
|  | 17207 | else | 
|  | 17208 | ld_shlibs_CXX=no | 
|  | 17209 | fi | 
|  | 17210 | ;; | 
|  | 17211 | esac | 
|  | 17212 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17213 | darwin* | rhapsody*) | 
|  | 17214 |  | 
|  | 17215 |  | 
|  | 17216 | archive_cmds_need_lc_CXX=no | 
|  | 17217 | hardcode_direct_CXX=no | 
|  | 17218 | hardcode_automatic_CXX=yes | 
|  | 17219 | hardcode_shlibpath_var_CXX=unsupported | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17220 | if test "$lt_cv_ld_force_load" = "yes"; then | 
|  | 17221 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | 
|  | 17222 | else | 
|  | 17223 | whole_archive_flag_spec_CXX='' | 
|  | 17224 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17225 | link_all_deplibs_CXX=yes | 
|  | 17226 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | 
|  | 17227 | case $cc_basename in | 
|  | 17228 | ifort*) _lt_dar_can_shared=yes ;; | 
|  | 17229 | *) _lt_dar_can_shared=$GCC ;; | 
|  | 17230 | esac | 
|  | 17231 | if test "$_lt_dar_can_shared" = "yes"; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17232 | output_verbose_link_cmd=func_echo_all | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17233 | 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}" | 
|  | 17234 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | 
|  | 17235 | 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}" | 
|  | 17236 | 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}" | 
|  | 17237 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then | 
|  | 17238 | 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}" | 
|  | 17239 | 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}" | 
|  | 17240 | fi | 
|  | 17241 |  | 
|  | 17242 | else | 
|  | 17243 | ld_shlibs_CXX=no | 
|  | 17244 | fi | 
|  | 17245 |  | 
|  | 17246 | ;; | 
|  | 17247 |  | 
|  | 17248 | dgux*) | 
|  | 17249 | case $cc_basename in | 
|  | 17250 | ec++*) | 
|  | 17251 | # FIXME: insert proper C++ library support | 
|  | 17252 | ld_shlibs_CXX=no | 
|  | 17253 | ;; | 
|  | 17254 | ghcx*) | 
|  | 17255 | # Green Hills C++ Compiler | 
|  | 17256 | # FIXME: insert proper C++ library support | 
|  | 17257 | ld_shlibs_CXX=no | 
|  | 17258 | ;; | 
|  | 17259 | *) | 
|  | 17260 | # FIXME: insert proper C++ library support | 
|  | 17261 | ld_shlibs_CXX=no | 
|  | 17262 | ;; | 
|  | 17263 | esac | 
|  | 17264 | ;; | 
|  | 17265 |  | 
|  | 17266 | freebsd[12]*) | 
|  | 17267 | # C++ shared libraries reported to be fairly broken before | 
|  | 17268 | # switch to ELF | 
|  | 17269 | ld_shlibs_CXX=no | 
|  | 17270 | ;; | 
|  | 17271 |  | 
|  | 17272 | freebsd-elf*) | 
|  | 17273 | archive_cmds_need_lc_CXX=no | 
|  | 17274 | ;; | 
|  | 17275 |  | 
|  | 17276 | freebsd* | dragonfly*) | 
|  | 17277 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | 
|  | 17278 | # conventions | 
|  | 17279 | ld_shlibs_CXX=yes | 
|  | 17280 | ;; | 
|  | 17281 |  | 
|  | 17282 | gnu*) | 
|  | 17283 | ;; | 
|  | 17284 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17285 | haiku*) | 
|  | 17286 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 17287 | link_all_deplibs_CXX=yes | 
|  | 17288 | ;; | 
|  | 17289 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17290 | hpux9*) | 
|  | 17291 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 17292 | hardcode_libdir_separator_CXX=: | 
|  | 17293 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 17294 | hardcode_direct_CXX=yes | 
|  | 17295 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 17296 | # but as the default | 
|  | 17297 | # location of the library. | 
|  | 17298 |  | 
|  | 17299 | case $cc_basename in | 
|  | 17300 | CC*) | 
|  | 17301 | # FIXME: insert proper C++ library support | 
|  | 17302 | ld_shlibs_CXX=no | 
|  | 17303 | ;; | 
|  | 17304 | aCC*) | 
|  | 17305 | 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' | 
|  | 17306 | # Commands to make compiler produce verbose output that lists | 
|  | 17307 | # what "hidden" libraries, object files and flags are used when | 
|  | 17308 | # linking a shared library. | 
|  | 17309 | # | 
|  | 17310 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 17311 | # explicitly linking system object files so we need to strip them | 
|  | 17312 | # from the output so that they don't get included in the library | 
|  | 17313 | # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17314 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17315 | ;; | 
|  | 17316 | *) | 
|  | 17317 | if test "$GXX" = yes; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17318 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17319 | else | 
|  | 17320 | # FIXME: insert proper C++ library support | 
|  | 17321 | ld_shlibs_CXX=no | 
|  | 17322 | fi | 
|  | 17323 | ;; | 
|  | 17324 | esac | 
|  | 17325 | ;; | 
|  | 17326 |  | 
|  | 17327 | hpux10*|hpux11*) | 
|  | 17328 | if test $with_gnu_ld = no; then | 
|  | 17329 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | 
|  | 17330 | hardcode_libdir_separator_CXX=: | 
|  | 17331 |  | 
|  | 17332 | case $host_cpu in | 
|  | 17333 | hppa*64*|ia64*) | 
|  | 17334 | ;; | 
|  | 17335 | *) | 
|  | 17336 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 17337 | ;; | 
|  | 17338 | esac | 
|  | 17339 | fi | 
|  | 17340 | case $host_cpu in | 
|  | 17341 | hppa*64*|ia64*) | 
|  | 17342 | hardcode_direct_CXX=no | 
|  | 17343 | hardcode_shlibpath_var_CXX=no | 
|  | 17344 | ;; | 
|  | 17345 | *) | 
|  | 17346 | hardcode_direct_CXX=yes | 
|  | 17347 | hardcode_direct_absolute_CXX=yes | 
|  | 17348 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 
|  | 17349 | # but as the default | 
|  | 17350 | # location of the library. | 
|  | 17351 | ;; | 
|  | 17352 | esac | 
|  | 17353 |  | 
|  | 17354 | case $cc_basename in | 
|  | 17355 | CC*) | 
|  | 17356 | # FIXME: insert proper C++ library support | 
|  | 17357 | ld_shlibs_CXX=no | 
|  | 17358 | ;; | 
|  | 17359 | aCC*) | 
|  | 17360 | case $host_cpu in | 
|  | 17361 | hppa*64*) | 
|  | 17362 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 17363 | ;; | 
|  | 17364 | ia64*) | 
|  | 17365 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 17366 | ;; | 
|  | 17367 | *) | 
|  | 17368 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 17369 | ;; | 
|  | 17370 | esac | 
|  | 17371 | # Commands to make compiler produce verbose output that lists | 
|  | 17372 | # what "hidden" libraries, object files and flags are used when | 
|  | 17373 | # linking a shared library. | 
|  | 17374 | # | 
|  | 17375 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 17376 | # explicitly linking system object files so we need to strip them | 
|  | 17377 | # from the output so that they don't get included in the library | 
|  | 17378 | # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17379 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17380 | ;; | 
|  | 17381 | *) | 
|  | 17382 | if test "$GXX" = yes; then | 
|  | 17383 | if test $with_gnu_ld = no; then | 
|  | 17384 | case $host_cpu in | 
|  | 17385 | hppa*64*) | 
|  | 17386 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 17387 | ;; | 
|  | 17388 | ia64*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17389 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17390 | ;; | 
|  | 17391 | *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17392 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17393 | ;; | 
|  | 17394 | esac | 
|  | 17395 | fi | 
|  | 17396 | else | 
|  | 17397 | # FIXME: insert proper C++ library support | 
|  | 17398 | ld_shlibs_CXX=no | 
|  | 17399 | fi | 
|  | 17400 | ;; | 
|  | 17401 | esac | 
|  | 17402 | ;; | 
|  | 17403 |  | 
|  | 17404 | interix[3-9]*) | 
|  | 17405 | hardcode_direct_CXX=no | 
|  | 17406 | hardcode_shlibpath_var_CXX=no | 
|  | 17407 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 17408 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 17409 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | 
|  | 17410 | # Instead, shared libraries are loaded at an image base (0x10000000 by | 
|  | 17411 | # default) and relocated if they conflict, which is a slow very memory | 
|  | 17412 | # consuming and fragmenting process.  To avoid this, we pick a random, | 
|  | 17413 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | 
|  | 17414 | # time.  Moving up from 0x10000000 also allows more sbrk(2) space. | 
|  | 17415 | 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' | 
|  | 17416 | 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' | 
|  | 17417 | ;; | 
|  | 17418 | irix5* | irix6*) | 
|  | 17419 | case $cc_basename in | 
|  | 17420 | CC*) | 
|  | 17421 | # SGI C++ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17422 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17423 |  | 
|  | 17424 | # Archives containing C++ object files must be created using | 
|  | 17425 | # "CC -ar", where "CC" is the IRIX C++ compiler.  This is | 
|  | 17426 | # necessary to make sure instantiated templates are included | 
|  | 17427 | # in the archive. | 
|  | 17428 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | 
|  | 17429 | ;; | 
|  | 17430 | *) | 
|  | 17431 | if test "$GXX" = yes; then | 
|  | 17432 | if test "$with_gnu_ld" = no; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17433 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17434 | else | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17435 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17436 | fi | 
|  | 17437 | fi | 
|  | 17438 | link_all_deplibs_CXX=yes | 
|  | 17439 | ;; | 
|  | 17440 | esac | 
|  | 17441 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 17442 | hardcode_libdir_separator_CXX=: | 
|  | 17443 | inherit_rpath_CXX=yes | 
|  | 17444 | ;; | 
|  | 17445 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17446 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17447 | case $cc_basename in | 
|  | 17448 | KCC*) | 
|  | 17449 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 17450 |  | 
|  | 17451 | # KCC will only create a shared library if the output file | 
|  | 17452 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 17453 | # to its proper name (with version) after linking. | 
|  | 17454 | 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' | 
|  | 17455 | 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' | 
|  | 17456 | # Commands to make compiler produce verbose output that lists | 
|  | 17457 | # what "hidden" libraries, object files and flags are used when | 
|  | 17458 | # linking a shared library. | 
|  | 17459 | # | 
|  | 17460 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 17461 | # explicitly linking system object files so we need to strip them | 
|  | 17462 | # from the output so that they don't get included in the library | 
|  | 17463 | # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17464 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17465 |  | 
|  | 17466 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 17467 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 17468 |  | 
|  | 17469 | # Archives containing C++ object files must be created using | 
|  | 17470 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | 
|  | 17471 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | 
|  | 17472 | ;; | 
|  | 17473 | icpc* | ecpc* ) | 
|  | 17474 | # Intel C++ | 
|  | 17475 | with_gnu_ld=yes | 
|  | 17476 | # version 8.0 and above of icpc choke on multiply defined symbols | 
|  | 17477 | # if we add $predep_objects and $postdep_objects, however 7.1 and | 
|  | 17478 | # earlier do not add the objects themselves. | 
|  | 17479 | case `$CC -V 2>&1` in | 
|  | 17480 | *"Version 7."*) | 
|  | 17481 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 17482 | 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' | 
|  | 17483 | ;; | 
|  | 17484 | *)  # Version 8.0 or newer | 
|  | 17485 | tmp_idyn= | 
|  | 17486 | case $host_cpu in | 
|  | 17487 | ia64*) tmp_idyn=' -i_dynamic';; | 
|  | 17488 | esac | 
|  | 17489 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 17490 | 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' | 
|  | 17491 | ;; | 
|  | 17492 | esac | 
|  | 17493 | archive_cmds_need_lc_CXX=no | 
|  | 17494 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 17495 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 17496 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | 
|  | 17497 | ;; | 
|  | 17498 | pgCC* | pgcpp*) | 
|  | 17499 | # Portland Group C++ compiler | 
|  | 17500 | case `$CC -V` in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17501 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17502 | prelink_cmds_CXX='tpldir=Template.dir~ | 
|  | 17503 | rm -rf $tpldir~ | 
|  | 17504 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17505 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17506 | old_archive_cmds_CXX='tpldir=Template.dir~ | 
|  | 17507 | rm -rf $tpldir~ | 
|  | 17508 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17509 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17510 | $RANLIB $oldlib' | 
|  | 17511 | archive_cmds_CXX='tpldir=Template.dir~ | 
|  | 17512 | rm -rf $tpldir~ | 
|  | 17513 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17514 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17515 | archive_expsym_cmds_CXX='tpldir=Template.dir~ | 
|  | 17516 | rm -rf $tpldir~ | 
|  | 17517 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17518 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17519 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17520 | *) # Version 6 and above use weak symbols | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17521 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | 
|  | 17522 | 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' | 
|  | 17523 | ;; | 
|  | 17524 | esac | 
|  | 17525 |  | 
|  | 17526 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | 
|  | 17527 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17528 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17529 | ;; | 
|  | 17530 | cxx*) | 
|  | 17531 | # Compaq C++ | 
|  | 17532 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 17533 | 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' | 
|  | 17534 |  | 
|  | 17535 | runpath_var=LD_RUN_PATH | 
|  | 17536 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 17537 | hardcode_libdir_separator_CXX=: | 
|  | 17538 |  | 
|  | 17539 | # Commands to make compiler produce verbose output that lists | 
|  | 17540 | # what "hidden" libraries, object files and flags are used when | 
|  | 17541 | # linking a shared library. | 
|  | 17542 | # | 
|  | 17543 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 17544 | # explicitly linking system object files so we need to strip them | 
|  | 17545 | # from the output so that they don't get included in the library | 
|  | 17546 | # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17547 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17548 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17549 | xl* | mpixl* | bgxl*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17550 | # IBM XL 8.0 on PPC, with GNU ld | 
|  | 17551 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 17552 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | 
|  | 17553 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | 
|  | 17554 | if test "x$supports_anon_versioning" = xyes; then | 
|  | 17555 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | 
|  | 17556 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | 
|  | 17557 | echo "local: *; };" >> $output_objdir/$libname.ver~ | 
|  | 17558 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | 
|  | 17559 | fi | 
|  | 17560 | ;; | 
|  | 17561 | *) | 
|  | 17562 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 17563 | *Sun\ C*) | 
|  | 17564 | # Sun C++ 5.9 | 
|  | 17565 | no_undefined_flag_CXX=' -zdefs' | 
|  | 17566 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 17567 | 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' | 
|  | 17568 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17569 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17570 | compiler_needs_object_CXX=yes | 
|  | 17571 |  | 
|  | 17572 | # Not sure whether something based on | 
|  | 17573 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | 
|  | 17574 | # would be better. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17575 | output_verbose_link_cmd='func_echo_all' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17576 |  | 
|  | 17577 | # Archives containing C++ object files must be created using | 
|  | 17578 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 17579 | # necessary to make sure instantiated templates are included | 
|  | 17580 | # in the archive. | 
|  | 17581 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 17582 | ;; | 
|  | 17583 | esac | 
|  | 17584 | ;; | 
|  | 17585 | esac | 
|  | 17586 | ;; | 
|  | 17587 |  | 
|  | 17588 | lynxos*) | 
|  | 17589 | # FIXME: insert proper C++ library support | 
|  | 17590 | ld_shlibs_CXX=no | 
|  | 17591 | ;; | 
|  | 17592 |  | 
|  | 17593 | m88k*) | 
|  | 17594 | # FIXME: insert proper C++ library support | 
|  | 17595 | ld_shlibs_CXX=no | 
|  | 17596 | ;; | 
|  | 17597 |  | 
|  | 17598 | mvs*) | 
|  | 17599 | case $cc_basename in | 
|  | 17600 | cxx*) | 
|  | 17601 | # FIXME: insert proper C++ library support | 
|  | 17602 | ld_shlibs_CXX=no | 
|  | 17603 | ;; | 
|  | 17604 | *) | 
|  | 17605 | # FIXME: insert proper C++ library support | 
|  | 17606 | ld_shlibs_CXX=no | 
|  | 17607 | ;; | 
|  | 17608 | esac | 
|  | 17609 | ;; | 
|  | 17610 |  | 
|  | 17611 | netbsd*) | 
|  | 17612 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 17613 | archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | 
|  | 17614 | wlarc= | 
|  | 17615 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 17616 | hardcode_direct_CXX=yes | 
|  | 17617 | hardcode_shlibpath_var_CXX=no | 
|  | 17618 | fi | 
|  | 17619 | # Workaround some broken pre-1.5 toolchains | 
|  | 17620 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | 
|  | 17621 | ;; | 
|  | 17622 |  | 
|  | 17623 | *nto* | *qnx*) | 
|  | 17624 | ld_shlibs_CXX=yes | 
|  | 17625 | ;; | 
|  | 17626 |  | 
|  | 17627 | openbsd2*) | 
|  | 17628 | # C++ shared libraries are fairly broken | 
|  | 17629 | ld_shlibs_CXX=no | 
|  | 17630 | ;; | 
|  | 17631 |  | 
|  | 17632 | openbsd*) | 
|  | 17633 | if test -f /usr/libexec/ld.so; then | 
|  | 17634 | hardcode_direct_CXX=yes | 
|  | 17635 | hardcode_shlibpath_var_CXX=no | 
|  | 17636 | hardcode_direct_absolute_CXX=yes | 
|  | 17637 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | 
|  | 17638 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 17639 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 17640 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | 
|  | 17641 | export_dynamic_flag_spec_CXX='${wl}-E' | 
|  | 17642 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | 
|  | 17643 | fi | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17644 | output_verbose_link_cmd=func_echo_all | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17645 | else | 
|  | 17646 | ld_shlibs_CXX=no | 
|  | 17647 | fi | 
|  | 17648 | ;; | 
|  | 17649 |  | 
|  | 17650 | osf3* | osf4* | osf5*) | 
|  | 17651 | case $cc_basename in | 
|  | 17652 | KCC*) | 
|  | 17653 | # Kuck and Associates, Inc. (KAI) C++ Compiler | 
|  | 17654 |  | 
|  | 17655 | # KCC will only create a shared library if the output file | 
|  | 17656 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | 
|  | 17657 | # to its proper name (with version) after linking. | 
|  | 17658 | 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' | 
|  | 17659 |  | 
|  | 17660 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | 
|  | 17661 | hardcode_libdir_separator_CXX=: | 
|  | 17662 |  | 
|  | 17663 | # Archives containing C++ object files must be created using | 
|  | 17664 | # the KAI C++ compiler. | 
|  | 17665 | case $host in | 
|  | 17666 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | 
|  | 17667 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | 
|  | 17668 | esac | 
|  | 17669 | ;; | 
|  | 17670 | RCC*) | 
|  | 17671 | # Rational C++ 2.4.1 | 
|  | 17672 | # FIXME: insert proper C++ library support | 
|  | 17673 | ld_shlibs_CXX=no | 
|  | 17674 | ;; | 
|  | 17675 | cxx*) | 
|  | 17676 | case $host in | 
|  | 17677 | osf3*) | 
|  | 17678 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17679 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17680 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 17681 | ;; | 
|  | 17682 | *) | 
|  | 17683 | allow_undefined_flag_CXX=' -expect_unresolved \*' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17684 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17685 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | 
|  | 17686 | echo "-hidden">> $lib.exp~ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17687 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17688 | $RM $lib.exp' | 
|  | 17689 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | 
|  | 17690 | ;; | 
|  | 17691 | esac | 
|  | 17692 |  | 
|  | 17693 | hardcode_libdir_separator_CXX=: | 
|  | 17694 |  | 
|  | 17695 | # Commands to make compiler produce verbose output that lists | 
|  | 17696 | # what "hidden" libraries, object files and flags are used when | 
|  | 17697 | # linking a shared library. | 
|  | 17698 | # | 
|  | 17699 | # There doesn't appear to be a way to prevent this compiler from | 
|  | 17700 | # explicitly linking system object files so we need to strip them | 
|  | 17701 | # from the output so that they don't get included in the library | 
|  | 17702 | # dependencies. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17703 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17704 | ;; | 
|  | 17705 | *) | 
|  | 17706 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 17707 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | 
|  | 17708 | case $host in | 
|  | 17709 | osf3*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17710 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17711 | ;; | 
|  | 17712 | *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17713 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17714 | ;; | 
|  | 17715 | esac | 
|  | 17716 |  | 
|  | 17717 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | 
|  | 17718 | hardcode_libdir_separator_CXX=: | 
|  | 17719 |  | 
|  | 17720 | # Commands to make compiler produce verbose output that lists | 
|  | 17721 | # what "hidden" libraries, object files and flags are used when | 
|  | 17722 | # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17723 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17724 |  | 
|  | 17725 | else | 
|  | 17726 | # FIXME: insert proper C++ library support | 
|  | 17727 | ld_shlibs_CXX=no | 
|  | 17728 | fi | 
|  | 17729 | ;; | 
|  | 17730 | esac | 
|  | 17731 | ;; | 
|  | 17732 |  | 
|  | 17733 | psos*) | 
|  | 17734 | # FIXME: insert proper C++ library support | 
|  | 17735 | ld_shlibs_CXX=no | 
|  | 17736 | ;; | 
|  | 17737 |  | 
|  | 17738 | sunos4*) | 
|  | 17739 | case $cc_basename in | 
|  | 17740 | CC*) | 
|  | 17741 | # Sun C++ 4.x | 
|  | 17742 | # FIXME: insert proper C++ library support | 
|  | 17743 | ld_shlibs_CXX=no | 
|  | 17744 | ;; | 
|  | 17745 | lcc*) | 
|  | 17746 | # Lucid | 
|  | 17747 | # FIXME: insert proper C++ library support | 
|  | 17748 | ld_shlibs_CXX=no | 
|  | 17749 | ;; | 
|  | 17750 | *) | 
|  | 17751 | # FIXME: insert proper C++ library support | 
|  | 17752 | ld_shlibs_CXX=no | 
|  | 17753 | ;; | 
|  | 17754 | esac | 
|  | 17755 | ;; | 
|  | 17756 |  | 
|  | 17757 | solaris*) | 
|  | 17758 | case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17759 | CC* | sunCC*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17760 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 17761 | archive_cmds_need_lc_CXX=yes | 
|  | 17762 | no_undefined_flag_CXX=' -zdefs' | 
|  | 17763 | archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 
|  | 17764 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 17765 | $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' | 
|  | 17766 |  | 
|  | 17767 | hardcode_libdir_flag_spec_CXX='-R$libdir' | 
|  | 17768 | hardcode_shlibpath_var_CXX=no | 
|  | 17769 | case $host_os in | 
|  | 17770 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 17771 | *) | 
|  | 17772 | # The compiler driver will combine and reorder linker options, | 
|  | 17773 | # but understands `-z linker_flag'. | 
|  | 17774 | # Supported since Solaris 2.6 (maybe 2.5.1?) | 
|  | 17775 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | 
|  | 17776 | ;; | 
|  | 17777 | esac | 
|  | 17778 | link_all_deplibs_CXX=yes | 
|  | 17779 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17780 | output_verbose_link_cmd='func_echo_all' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17781 |  | 
|  | 17782 | # Archives containing C++ object files must be created using | 
|  | 17783 | # "CC -xar", where "CC" is the Sun C++ compiler.  This is | 
|  | 17784 | # necessary to make sure instantiated templates are included | 
|  | 17785 | # in the archive. | 
|  | 17786 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | 
|  | 17787 | ;; | 
|  | 17788 | gcx*) | 
|  | 17789 | # Green Hills C++ Compiler | 
|  | 17790 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 17791 |  | 
|  | 17792 | # The C++ compiler must be used to create the archive. | 
|  | 17793 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | 
|  | 17794 | ;; | 
|  | 17795 | *) | 
|  | 17796 | # GNU C++ compiler with Solaris linker | 
|  | 17797 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | 
|  | 17798 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | 
|  | 17799 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17800 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17801 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17802 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17803 |  | 
|  | 17804 | # Commands to make compiler produce verbose output that lists | 
|  | 17805 | # what "hidden" libraries, object files and flags are used when | 
|  | 17806 | # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17807 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17808 | else | 
|  | 17809 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | 
|  | 17810 | # platform. | 
|  | 17811 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | 
|  | 17812 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | 
|  | 17813 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | 
|  | 17814 |  | 
|  | 17815 | # Commands to make compiler produce verbose output that lists | 
|  | 17816 | # what "hidden" libraries, object files and flags are used when | 
|  | 17817 | # linking a shared library. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17818 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17819 | fi | 
|  | 17820 |  | 
|  | 17821 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | 
|  | 17822 | case $host_os in | 
|  | 17823 | solaris2.[0-5] | solaris2.[0-5].*) ;; | 
|  | 17824 | *) | 
|  | 17825 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | 
|  | 17826 | ;; | 
|  | 17827 | esac | 
|  | 17828 | fi | 
|  | 17829 | ;; | 
|  | 17830 | esac | 
|  | 17831 | ;; | 
|  | 17832 |  | 
|  | 17833 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | 
|  | 17834 | no_undefined_flag_CXX='${wl}-z,text' | 
|  | 17835 | archive_cmds_need_lc_CXX=no | 
|  | 17836 | hardcode_shlibpath_var_CXX=no | 
|  | 17837 | runpath_var='LD_RUN_PATH' | 
|  | 17838 |  | 
|  | 17839 | case $cc_basename in | 
|  | 17840 | CC*) | 
|  | 17841 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17842 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17843 | ;; | 
|  | 17844 | *) | 
|  | 17845 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17846 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17847 | ;; | 
|  | 17848 | esac | 
|  | 17849 | ;; | 
|  | 17850 |  | 
|  | 17851 | sysv5* | sco3.2v5* | sco5v6*) | 
|  | 17852 | # Note: We can NOT use -z defs as we might desire, because we do not | 
|  | 17853 | # link with -lc, and that would cause any symbols used from libc to | 
|  | 17854 | # always be unresolved, which means just about no library would | 
|  | 17855 | # ever link correctly.  If we're not using GNU ld we use -z text | 
|  | 17856 | # though, which does catch some bad symbols but isn't as heavy-handed | 
|  | 17857 | # as -z defs. | 
|  | 17858 | no_undefined_flag_CXX='${wl}-z,text' | 
|  | 17859 | allow_undefined_flag_CXX='${wl}-z,nodefs' | 
|  | 17860 | archive_cmds_need_lc_CXX=no | 
|  | 17861 | hardcode_shlibpath_var_CXX=no | 
|  | 17862 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | 
|  | 17863 | hardcode_libdir_separator_CXX=':' | 
|  | 17864 | link_all_deplibs_CXX=yes | 
|  | 17865 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | 
|  | 17866 | runpath_var='LD_RUN_PATH' | 
|  | 17867 |  | 
|  | 17868 | case $cc_basename in | 
|  | 17869 | CC*) | 
|  | 17870 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17871 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17872 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | 
|  | 17873 | '"$old_archive_cmds_CXX" | 
|  | 17874 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | 
|  | 17875 | '"$reload_cmds_CXX" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17876 | ;; | 
|  | 17877 | *) | 
|  | 17878 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17879 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | 
|  | 17880 | ;; | 
|  | 17881 | esac | 
|  | 17882 | ;; | 
|  | 17883 |  | 
|  | 17884 | tandem*) | 
|  | 17885 | case $cc_basename in | 
|  | 17886 | NCC*) | 
|  | 17887 | # NonStop-UX NCC 3.20 | 
|  | 17888 | # FIXME: insert proper C++ library support | 
|  | 17889 | ld_shlibs_CXX=no | 
|  | 17890 | ;; | 
|  | 17891 | *) | 
|  | 17892 | # FIXME: insert proper C++ library support | 
|  | 17893 | ld_shlibs_CXX=no | 
|  | 17894 | ;; | 
|  | 17895 | esac | 
|  | 17896 | ;; | 
|  | 17897 |  | 
|  | 17898 | vxworks*) | 
|  | 17899 | # FIXME: insert proper C++ library support | 
|  | 17900 | ld_shlibs_CXX=no | 
|  | 17901 | ;; | 
|  | 17902 |  | 
|  | 17903 | *) | 
|  | 17904 | # FIXME: insert proper C++ library support | 
|  | 17905 | ld_shlibs_CXX=no | 
|  | 17906 | ;; | 
|  | 17907 | esac | 
|  | 17908 |  | 
|  | 17909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | 
|  | 17910 | $as_echo "$ld_shlibs_CXX" >&6; } | 
|  | 17911 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 17912 |  | 
|  | 17913 | GCC_CXX="$GXX" | 
|  | 17914 | LD_CXX="$LD" | 
|  | 17915 |  | 
|  | 17916 | ## CAVEAT EMPTOR: | 
|  | 17917 | ## There is no encapsulation within the following macros, do not change | 
|  | 17918 | ## the running order or otherwise move them around unless you know exactly | 
|  | 17919 | ## what you are doing... | 
|  | 17920 | # Dependencies to place before and after the object being linked: | 
|  | 17921 | predep_objects_CXX= | 
|  | 17922 | postdep_objects_CXX= | 
|  | 17923 | predeps_CXX= | 
|  | 17924 | postdeps_CXX= | 
|  | 17925 | compiler_lib_search_path_CXX= | 
|  | 17926 |  | 
|  | 17927 | cat > conftest.$ac_ext <<_LT_EOF | 
|  | 17928 | class Foo | 
|  | 17929 | { | 
|  | 17930 | public: | 
|  | 17931 | Foo (void) { a = 0; } | 
|  | 17932 | private: | 
|  | 17933 | int a; | 
|  | 17934 | }; | 
|  | 17935 | _LT_EOF | 
|  | 17936 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17937 |  | 
|  | 17938 | _lt_libdeps_save_CFLAGS=$CFLAGS | 
|  | 17939 | case "$CC $CFLAGS " in #( | 
|  | 17940 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | 
|  | 17941 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | 
|  | 17942 | esac | 
|  | 17943 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17944 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 17945 | (eval $ac_compile) 2>&5 | 
|  | 17946 | ac_status=$? | 
|  | 17947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 17948 | test $ac_status = 0; }; then | 
|  | 17949 | # Parse the compiler output and extract the necessary | 
|  | 17950 | # objects, libraries and library flags. | 
|  | 17951 |  | 
|  | 17952 | # Sentinel used to keep track of whether or not we are before | 
|  | 17953 | # the conftest object file. | 
|  | 17954 | pre_test_object_deps_done=no | 
|  | 17955 |  | 
|  | 17956 | for p in `eval "$output_verbose_link_cmd"`; do | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17957 | case ${prev}${p} in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17958 |  | 
|  | 17959 | -L* | -R* | -l*) | 
|  | 17960 | # Some compilers place space between "-{L,R}" and the path. | 
|  | 17961 | # Remove the space. | 
|  | 17962 | if test $p = "-L" || | 
|  | 17963 | test $p = "-R"; then | 
|  | 17964 | prev=$p | 
|  | 17965 | continue | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17966 | fi | 
|  | 17967 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17968 | # Expand the sysroot to ease extracting the directories later. | 
|  | 17969 | if test -z "$prev"; then | 
|  | 17970 | case $p in | 
|  | 17971 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | 
|  | 17972 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | 
|  | 17973 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | 
|  | 17974 | esac | 
|  | 17975 | fi | 
|  | 17976 | case $p in | 
|  | 17977 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | 
|  | 17978 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17979 | if test "$pre_test_object_deps_done" = no; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17980 | case ${prev} in | 
|  | 17981 | -L | -R) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17982 | # Internal compiler library paths should come after those | 
|  | 17983 | # provided the user.  The postdeps already come after the | 
|  | 17984 | # user supplied libs so there is no need to process them. | 
|  | 17985 | if test -z "$compiler_lib_search_path_CXX"; then | 
|  | 17986 | compiler_lib_search_path_CXX="${prev}${p}" | 
|  | 17987 | else | 
|  | 17988 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | 
|  | 17989 | fi | 
|  | 17990 | ;; | 
|  | 17991 | # The "-l" case would never come before the object being | 
|  | 17992 | # linked, so don't bother handling this case. | 
|  | 17993 | esac | 
|  | 17994 | else | 
|  | 17995 | if test -z "$postdeps_CXX"; then | 
|  | 17996 | postdeps_CXX="${prev}${p}" | 
|  | 17997 | else | 
|  | 17998 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | 
|  | 17999 | fi | 
|  | 18000 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18001 | prev= | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18002 | ;; | 
|  | 18003 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18004 | *.lto.$objext) ;; # Ignore GCC LTO objects | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18005 | *.$objext) | 
|  | 18006 | # This assumes that the test object file only shows up | 
|  | 18007 | # once in the compiler output. | 
|  | 18008 | if test "$p" = "conftest.$objext"; then | 
|  | 18009 | pre_test_object_deps_done=yes | 
|  | 18010 | continue | 
|  | 18011 | fi | 
|  | 18012 |  | 
|  | 18013 | if test "$pre_test_object_deps_done" = no; then | 
|  | 18014 | if test -z "$predep_objects_CXX"; then | 
|  | 18015 | predep_objects_CXX="$p" | 
|  | 18016 | else | 
|  | 18017 | predep_objects_CXX="$predep_objects_CXX $p" | 
|  | 18018 | fi | 
|  | 18019 | else | 
|  | 18020 | if test -z "$postdep_objects_CXX"; then | 
|  | 18021 | postdep_objects_CXX="$p" | 
|  | 18022 | else | 
|  | 18023 | postdep_objects_CXX="$postdep_objects_CXX $p" | 
|  | 18024 | fi | 
|  | 18025 | fi | 
|  | 18026 | ;; | 
|  | 18027 |  | 
|  | 18028 | *) ;; # Ignore the rest. | 
|  | 18029 |  | 
|  | 18030 | esac | 
|  | 18031 | done | 
|  | 18032 |  | 
|  | 18033 | # Clean up. | 
|  | 18034 | rm -f a.out a.exe | 
|  | 18035 | else | 
|  | 18036 | echo "libtool.m4: error: problem compiling CXX test program" | 
|  | 18037 | fi | 
|  | 18038 |  | 
|  | 18039 | $RM -f confest.$objext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18040 | CFLAGS=$_lt_libdeps_save_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18041 |  | 
|  | 18042 | # PORTME: override above test on systems where it is broken | 
|  | 18043 | case $host_os in | 
|  | 18044 | interix[3-9]*) | 
|  | 18045 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | 
|  | 18046 | # hack all around it, let's just trust "g++" to DTRT. | 
|  | 18047 | predep_objects_CXX= | 
|  | 18048 | postdep_objects_CXX= | 
|  | 18049 | postdeps_CXX= | 
|  | 18050 | ;; | 
|  | 18051 |  | 
|  | 18052 | linux*) | 
|  | 18053 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 18054 | *Sun\ C*) | 
|  | 18055 | # Sun C++ 5.9 | 
|  | 18056 |  | 
|  | 18057 | # The more standards-conforming stlport4 library is | 
|  | 18058 | # incompatible with the Cstd library. Avoid specifying | 
|  | 18059 | # it if it's in CXXFLAGS. Ignore libCrun as | 
|  | 18060 | # -library=stlport4 depends on it. | 
|  | 18061 | case " $CXX $CXXFLAGS " in | 
|  | 18062 | *" -library=stlport4 "*) | 
|  | 18063 | solaris_use_stlport4=yes | 
|  | 18064 | ;; | 
|  | 18065 | esac | 
|  | 18066 |  | 
|  | 18067 | if test "$solaris_use_stlport4" != yes; then | 
|  | 18068 | postdeps_CXX='-library=Cstd -library=Crun' | 
|  | 18069 | fi | 
|  | 18070 | ;; | 
|  | 18071 | esac | 
|  | 18072 | ;; | 
|  | 18073 |  | 
|  | 18074 | solaris*) | 
|  | 18075 | case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18076 | CC* | sunCC*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18077 | # The more standards-conforming stlport4 library is | 
|  | 18078 | # incompatible with the Cstd library. Avoid specifying | 
|  | 18079 | # it if it's in CXXFLAGS. Ignore libCrun as | 
|  | 18080 | # -library=stlport4 depends on it. | 
|  | 18081 | case " $CXX $CXXFLAGS " in | 
|  | 18082 | *" -library=stlport4 "*) | 
|  | 18083 | solaris_use_stlport4=yes | 
|  | 18084 | ;; | 
|  | 18085 | esac | 
|  | 18086 |  | 
|  | 18087 | # Adding this requires a known-good setup of shared libraries for | 
|  | 18088 | # Sun compiler versions before 5.6, else PIC objects from an old | 
|  | 18089 | # archive will be linked into the output, leading to subtle bugs. | 
|  | 18090 | if test "$solaris_use_stlport4" != yes; then | 
|  | 18091 | postdeps_CXX='-library=Cstd -library=Crun' | 
|  | 18092 | fi | 
|  | 18093 | ;; | 
|  | 18094 | esac | 
|  | 18095 | ;; | 
|  | 18096 | esac | 
|  | 18097 |  | 
|  | 18098 |  | 
|  | 18099 | case " $postdeps_CXX " in | 
|  | 18100 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | 
|  | 18101 | esac | 
|  | 18102 | compiler_lib_search_dirs_CXX= | 
|  | 18103 | if test -n "${compiler_lib_search_path_CXX}"; then | 
|  | 18104 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | 
|  | 18105 | fi | 
|  | 18106 |  | 
|  | 18107 |  | 
|  | 18108 |  | 
|  | 18109 |  | 
|  | 18110 |  | 
|  | 18111 |  | 
|  | 18112 |  | 
|  | 18113 |  | 
|  | 18114 |  | 
|  | 18115 |  | 
|  | 18116 |  | 
|  | 18117 |  | 
|  | 18118 |  | 
|  | 18119 |  | 
|  | 18120 |  | 
|  | 18121 |  | 
|  | 18122 |  | 
|  | 18123 |  | 
|  | 18124 |  | 
|  | 18125 |  | 
|  | 18126 |  | 
|  | 18127 |  | 
|  | 18128 |  | 
|  | 18129 |  | 
|  | 18130 |  | 
|  | 18131 |  | 
|  | 18132 |  | 
|  | 18133 |  | 
|  | 18134 |  | 
|  | 18135 |  | 
|  | 18136 |  | 
|  | 18137 | lt_prog_compiler_wl_CXX= | 
|  | 18138 | lt_prog_compiler_pic_CXX= | 
|  | 18139 | lt_prog_compiler_static_CXX= | 
|  | 18140 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18141 |  | 
|  | 18142 | # C++ specific cases for pic, static, wl, etc. | 
|  | 18143 | if test "$GXX" = yes; then | 
|  | 18144 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18145 | lt_prog_compiler_static_CXX='-static' | 
|  | 18146 |  | 
|  | 18147 | case $host_os in | 
|  | 18148 | aix*) | 
|  | 18149 | # All AIX code is PIC. | 
|  | 18150 | if test "$host_cpu" = ia64; then | 
|  | 18151 | # AIX 5 now supports IA64 processor | 
|  | 18152 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18153 | fi | 
|  | 18154 | ;; | 
|  | 18155 |  | 
|  | 18156 | amigaos*) | 
|  | 18157 | case $host_cpu in | 
|  | 18158 | powerpc) | 
|  | 18159 | # see comment about AmigaOS4 .so support | 
|  | 18160 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 18161 | ;; | 
|  | 18162 | m68k) | 
|  | 18163 | # FIXME: we need at least 68020 code to build shared libraries, but | 
|  | 18164 | # adding the `-m68020' flag to GCC prevents building anything better, | 
|  | 18165 | # like `-m68040'. | 
|  | 18166 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | 
|  | 18167 | ;; | 
|  | 18168 | esac | 
|  | 18169 | ;; | 
|  | 18170 |  | 
|  | 18171 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | 
|  | 18172 | # PIC is the default for these OSes. | 
|  | 18173 | ;; | 
|  | 18174 | mingw* | cygwin* | os2* | pw32* | cegcc*) | 
|  | 18175 | # This hack is so that the source file can tell whether it is being | 
|  | 18176 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 18177 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | 
|  | 18178 | # (--disable-auto-import) libraries | 
|  | 18179 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
|  | 18180 | ;; | 
|  | 18181 | darwin* | rhapsody*) | 
|  | 18182 | # PIC is the default on this platform | 
|  | 18183 | # Common symbols not allowed in MH_DYLIB files | 
|  | 18184 | lt_prog_compiler_pic_CXX='-fno-common' | 
|  | 18185 | ;; | 
|  | 18186 | *djgpp*) | 
|  | 18187 | # DJGPP does not support shared libraries at all | 
|  | 18188 | lt_prog_compiler_pic_CXX= | 
|  | 18189 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18190 | haiku*) | 
|  | 18191 | # PIC is the default for Haiku. | 
|  | 18192 | # The "-static" flag exists, but is broken. | 
|  | 18193 | lt_prog_compiler_static_CXX= | 
|  | 18194 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18195 | interix[3-9]*) | 
|  | 18196 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | 
|  | 18197 | # Instead, we relocate shared libraries at runtime. | 
|  | 18198 | ;; | 
|  | 18199 | sysv4*MP*) | 
|  | 18200 | if test -d /usr/nec; then | 
|  | 18201 | lt_prog_compiler_pic_CXX=-Kconform_pic | 
|  | 18202 | fi | 
|  | 18203 | ;; | 
|  | 18204 | hpux*) | 
|  | 18205 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | 
|  | 18206 | # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag | 
|  | 18207 | # sets the default TLS model and affects inlining. | 
|  | 18208 | case $host_cpu in | 
|  | 18209 | hppa*64*) | 
|  | 18210 | ;; | 
|  | 18211 | *) | 
|  | 18212 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 18213 | ;; | 
|  | 18214 | esac | 
|  | 18215 | ;; | 
|  | 18216 | *qnx* | *nto*) | 
|  | 18217 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 18218 | # it will coredump. | 
|  | 18219 | lt_prog_compiler_pic_CXX='-fPIC -shared' | 
|  | 18220 | ;; | 
|  | 18221 | *) | 
|  | 18222 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 18223 | ;; | 
|  | 18224 | esac | 
|  | 18225 | else | 
|  | 18226 | case $host_os in | 
|  | 18227 | aix[4-9]*) | 
|  | 18228 | # All AIX code is PIC. | 
|  | 18229 | if test "$host_cpu" = ia64; then | 
|  | 18230 | # AIX 5 now supports IA64 processor | 
|  | 18231 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18232 | else | 
|  | 18233 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | 
|  | 18234 | fi | 
|  | 18235 | ;; | 
|  | 18236 | chorus*) | 
|  | 18237 | case $cc_basename in | 
|  | 18238 | cxch68*) | 
|  | 18239 | # Green Hills C++ Compiler | 
|  | 18240 | # _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" | 
|  | 18241 | ;; | 
|  | 18242 | esac | 
|  | 18243 | ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18244 | mingw* | cygwin* | os2* | pw32* | cegcc*) | 
|  | 18245 | # This hack is so that the source file can tell whether it is being | 
|  | 18246 | # built for inclusion in a dll (and should export symbols for example). | 
|  | 18247 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | 
|  | 18248 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18249 | dgux*) | 
|  | 18250 | case $cc_basename in | 
|  | 18251 | ec++*) | 
|  | 18252 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 18253 | ;; | 
|  | 18254 | ghcx*) | 
|  | 18255 | # Green Hills C++ Compiler | 
|  | 18256 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 18257 | ;; | 
|  | 18258 | *) | 
|  | 18259 | ;; | 
|  | 18260 | esac | 
|  | 18261 | ;; | 
|  | 18262 | freebsd* | dragonfly*) | 
|  | 18263 | # FreeBSD uses GNU C++ | 
|  | 18264 | ;; | 
|  | 18265 | hpux9* | hpux10* | hpux11*) | 
|  | 18266 | case $cc_basename in | 
|  | 18267 | CC*) | 
|  | 18268 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18269 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
|  | 18270 | if test "$host_cpu" != ia64; then | 
|  | 18271 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 18272 | fi | 
|  | 18273 | ;; | 
|  | 18274 | aCC*) | 
|  | 18275 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18276 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | 
|  | 18277 | case $host_cpu in | 
|  | 18278 | hppa*64*|ia64*) | 
|  | 18279 | # +Z the default | 
|  | 18280 | ;; | 
|  | 18281 | *) | 
|  | 18282 | lt_prog_compiler_pic_CXX='+Z' | 
|  | 18283 | ;; | 
|  | 18284 | esac | 
|  | 18285 | ;; | 
|  | 18286 | *) | 
|  | 18287 | ;; | 
|  | 18288 | esac | 
|  | 18289 | ;; | 
|  | 18290 | interix*) | 
|  | 18291 | # This is c89, which is MS Visual C++ (no shared libs) | 
|  | 18292 | # Anyone wants to do a port? | 
|  | 18293 | ;; | 
|  | 18294 | irix5* | irix6* | nonstopux*) | 
|  | 18295 | case $cc_basename in | 
|  | 18296 | CC*) | 
|  | 18297 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18298 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 18299 | # CC pic flag -KPIC is the default. | 
|  | 18300 | ;; | 
|  | 18301 | *) | 
|  | 18302 | ;; | 
|  | 18303 | esac | 
|  | 18304 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18305 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18306 | case $cc_basename in | 
|  | 18307 | KCC*) | 
|  | 18308 | # KAI C++ Compiler | 
|  | 18309 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 18310 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 18311 | ;; | 
|  | 18312 | ecpc* ) | 
|  | 18313 | # old Intel C++ for x86_64 which still supported -KPIC. | 
|  | 18314 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18315 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 18316 | lt_prog_compiler_static_CXX='-static' | 
|  | 18317 | ;; | 
|  | 18318 | icpc* ) | 
|  | 18319 | # Intel C++, used to be incompatible with GCC. | 
|  | 18320 | # ICC 10 doesn't accept -KPIC any more. | 
|  | 18321 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18322 | lt_prog_compiler_pic_CXX='-fPIC' | 
|  | 18323 | lt_prog_compiler_static_CXX='-static' | 
|  | 18324 | ;; | 
|  | 18325 | pgCC* | pgcpp*) | 
|  | 18326 | # Portland Group C++ compiler | 
|  | 18327 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18328 | lt_prog_compiler_pic_CXX='-fpic' | 
|  | 18329 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18330 | ;; | 
|  | 18331 | cxx*) | 
|  | 18332 | # Compaq C++ | 
|  | 18333 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 18334 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 18335 | lt_prog_compiler_pic_CXX= | 
|  | 18336 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 18337 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18338 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | 
|  | 18339 | # IBM XL 8.0, 9.0 on PPC and BlueGene | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18340 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18341 | lt_prog_compiler_pic_CXX='-qpic' | 
|  | 18342 | lt_prog_compiler_static_CXX='-qstaticlink' | 
|  | 18343 | ;; | 
|  | 18344 | *) | 
|  | 18345 | case `$CC -V 2>&1 | sed 5q` in | 
|  | 18346 | *Sun\ C*) | 
|  | 18347 | # Sun C++ 5.9 | 
|  | 18348 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 18349 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18350 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 18351 | ;; | 
|  | 18352 | esac | 
|  | 18353 | ;; | 
|  | 18354 | esac | 
|  | 18355 | ;; | 
|  | 18356 | lynxos*) | 
|  | 18357 | ;; | 
|  | 18358 | m88k*) | 
|  | 18359 | ;; | 
|  | 18360 | mvs*) | 
|  | 18361 | case $cc_basename in | 
|  | 18362 | cxx*) | 
|  | 18363 | lt_prog_compiler_pic_CXX='-W c,exportall' | 
|  | 18364 | ;; | 
|  | 18365 | *) | 
|  | 18366 | ;; | 
|  | 18367 | esac | 
|  | 18368 | ;; | 
|  | 18369 | netbsd*) | 
|  | 18370 | ;; | 
|  | 18371 | *qnx* | *nto*) | 
|  | 18372 | # QNX uses GNU C++, but need to define -shared option too, otherwise | 
|  | 18373 | # it will coredump. | 
|  | 18374 | lt_prog_compiler_pic_CXX='-fPIC -shared' | 
|  | 18375 | ;; | 
|  | 18376 | osf3* | osf4* | osf5*) | 
|  | 18377 | case $cc_basename in | 
|  | 18378 | KCC*) | 
|  | 18379 | lt_prog_compiler_wl_CXX='--backend -Wl,' | 
|  | 18380 | ;; | 
|  | 18381 | RCC*) | 
|  | 18382 | # Rational C++ 2.4.1 | 
|  | 18383 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 18384 | ;; | 
|  | 18385 | cxx*) | 
|  | 18386 | # Digital/Compaq C++ | 
|  | 18387 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18388 | # Make sure the PIC flag is empty.  It appears that all Alpha | 
|  | 18389 | # Linux and Compaq Tru64 Unix objects are PIC. | 
|  | 18390 | lt_prog_compiler_pic_CXX= | 
|  | 18391 | lt_prog_compiler_static_CXX='-non_shared' | 
|  | 18392 | ;; | 
|  | 18393 | *) | 
|  | 18394 | ;; | 
|  | 18395 | esac | 
|  | 18396 | ;; | 
|  | 18397 | psos*) | 
|  | 18398 | ;; | 
|  | 18399 | solaris*) | 
|  | 18400 | case $cc_basename in | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18401 | CC* | sunCC*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18402 | # Sun C++ 4.2, 5.x and Centerline C++ | 
|  | 18403 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 18404 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18405 | lt_prog_compiler_wl_CXX='-Qoption ld ' | 
|  | 18406 | ;; | 
|  | 18407 | gcx*) | 
|  | 18408 | # Green Hills C++ Compiler | 
|  | 18409 | lt_prog_compiler_pic_CXX='-PIC' | 
|  | 18410 | ;; | 
|  | 18411 | *) | 
|  | 18412 | ;; | 
|  | 18413 | esac | 
|  | 18414 | ;; | 
|  | 18415 | sunos4*) | 
|  | 18416 | case $cc_basename in | 
|  | 18417 | CC*) | 
|  | 18418 | # Sun C++ 4.x | 
|  | 18419 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 18420 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18421 | ;; | 
|  | 18422 | lcc*) | 
|  | 18423 | # Lucid | 
|  | 18424 | lt_prog_compiler_pic_CXX='-pic' | 
|  | 18425 | ;; | 
|  | 18426 | *) | 
|  | 18427 | ;; | 
|  | 18428 | esac | 
|  | 18429 | ;; | 
|  | 18430 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | 
|  | 18431 | case $cc_basename in | 
|  | 18432 | CC*) | 
|  | 18433 | lt_prog_compiler_wl_CXX='-Wl,' | 
|  | 18434 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 18435 | lt_prog_compiler_static_CXX='-Bstatic' | 
|  | 18436 | ;; | 
|  | 18437 | esac | 
|  | 18438 | ;; | 
|  | 18439 | tandem*) | 
|  | 18440 | case $cc_basename in | 
|  | 18441 | NCC*) | 
|  | 18442 | # NonStop-UX NCC 3.20 | 
|  | 18443 | lt_prog_compiler_pic_CXX='-KPIC' | 
|  | 18444 | ;; | 
|  | 18445 | *) | 
|  | 18446 | ;; | 
|  | 18447 | esac | 
|  | 18448 | ;; | 
|  | 18449 | vxworks*) | 
|  | 18450 | ;; | 
|  | 18451 | *) | 
|  | 18452 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 18453 | ;; | 
|  | 18454 | esac | 
|  | 18455 | fi | 
|  | 18456 |  | 
|  | 18457 | case $host_os in | 
|  | 18458 | # For platforms which do not support PIC, -DPIC is meaningless: | 
|  | 18459 | *djgpp*) | 
|  | 18460 | lt_prog_compiler_pic_CXX= | 
|  | 18461 | ;; | 
|  | 18462 | *) | 
|  | 18463 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 18464 | ;; | 
|  | 18465 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18466 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | 
|  | 18468 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | 
|  | 18469 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | 
|  | 18470 | $as_echo_n "(cached) " >&6 | 
|  | 18471 | else | 
|  | 18472 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | 
|  | 18473 | fi | 
|  | 18474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | 
|  | 18475 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | 
|  | 18476 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18477 |  | 
|  | 18478 | # | 
|  | 18479 | # Check to make sure the PIC flag actually works. | 
|  | 18480 | # | 
|  | 18481 | if test -n "$lt_prog_compiler_pic_CXX"; then | 
|  | 18482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | 
|  | 18483 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18484 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18485 | $as_echo_n "(cached) " >&6 | 
|  | 18486 | else | 
|  | 18487 | lt_cv_prog_compiler_pic_works_CXX=no | 
|  | 18488 | ac_outfile=conftest.$ac_objext | 
|  | 18489 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 18490 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | 
|  | 18491 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 18492 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 18493 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 18494 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 18495 | # The option is referenced via a variable to avoid confusing sed. | 
|  | 18496 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 18497 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 18498 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 18499 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18500 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18501 | (eval "$lt_compile" 2>conftest.err) | 
|  | 18502 | ac_status=$? | 
|  | 18503 | cat conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18505 | if (exit $ac_status) && test -s "$ac_outfile"; then | 
|  | 18506 | # The compiler can only warn and ignore the option if not recognized | 
|  | 18507 | # So say no if there are warnings other than the usual output. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18508 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18509 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 18510 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 18511 | lt_cv_prog_compiler_pic_works_CXX=yes | 
|  | 18512 | fi | 
|  | 18513 | fi | 
|  | 18514 | $RM conftest* | 
|  | 18515 |  | 
|  | 18516 | fi | 
|  | 18517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | 
|  | 18518 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | 
|  | 18519 |  | 
|  | 18520 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | 
|  | 18521 | case $lt_prog_compiler_pic_CXX in | 
|  | 18522 | "" | " "*) ;; | 
|  | 18523 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | 
|  | 18524 | esac | 
|  | 18525 | else | 
|  | 18526 | lt_prog_compiler_pic_CXX= | 
|  | 18527 | lt_prog_compiler_can_build_shared_CXX=no | 
|  | 18528 | fi | 
|  | 18529 |  | 
|  | 18530 | fi | 
|  | 18531 |  | 
|  | 18532 |  | 
|  | 18533 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18534 |  | 
|  | 18535 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18536 | # | 
|  | 18537 | # Check to make sure the static flag actually works. | 
|  | 18538 | # | 
|  | 18539 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | 
|  | 18540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | 
|  | 18541 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18542 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18543 | $as_echo_n "(cached) " >&6 | 
|  | 18544 | else | 
|  | 18545 | lt_cv_prog_compiler_static_works_CXX=no | 
|  | 18546 | save_LDFLAGS="$LDFLAGS" | 
|  | 18547 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | 
|  | 18548 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | 
|  | 18549 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | 
|  | 18550 | # The linker can only warn and ignore the option if not recognized | 
|  | 18551 | # So say no if there are warnings | 
|  | 18552 | if test -s conftest.err; then | 
|  | 18553 | # Append any errors to the config.log. | 
|  | 18554 | cat conftest.err 1>&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18555 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18556 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | 
|  | 18557 | if diff conftest.exp conftest.er2 >/dev/null; then | 
|  | 18558 | lt_cv_prog_compiler_static_works_CXX=yes | 
|  | 18559 | fi | 
|  | 18560 | else | 
|  | 18561 | lt_cv_prog_compiler_static_works_CXX=yes | 
|  | 18562 | fi | 
|  | 18563 | fi | 
|  | 18564 | $RM -r conftest* | 
|  | 18565 | LDFLAGS="$save_LDFLAGS" | 
|  | 18566 |  | 
|  | 18567 | fi | 
|  | 18568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | 
|  | 18569 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | 
|  | 18570 |  | 
|  | 18571 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | 
|  | 18572 | : | 
|  | 18573 | else | 
|  | 18574 | lt_prog_compiler_static_CXX= | 
|  | 18575 | fi | 
|  | 18576 |  | 
|  | 18577 |  | 
|  | 18578 |  | 
|  | 18579 |  | 
|  | 18580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 18581 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18582 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18583 | $as_echo_n "(cached) " >&6 | 
|  | 18584 | else | 
|  | 18585 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 18586 | $RM -r conftest 2>/dev/null | 
|  | 18587 | mkdir conftest | 
|  | 18588 | cd conftest | 
|  | 18589 | mkdir out | 
|  | 18590 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 18591 |  | 
|  | 18592 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 18593 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 18594 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 18595 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 18596 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 18597 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 18598 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 18599 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 18600 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18601 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18602 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 18603 | ac_status=$? | 
|  | 18604 | cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18606 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 18607 | then | 
|  | 18608 | # The compiler can only warn and ignore the option if not recognized | 
|  | 18609 | # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18610 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18611 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 18612 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 18613 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 18614 | fi | 
|  | 18615 | fi | 
|  | 18616 | chmod u+w . 2>&5 | 
|  | 18617 | $RM conftest* | 
|  | 18618 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 18619 | # template instantiation | 
|  | 18620 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 18621 | $RM out/* && rmdir out | 
|  | 18622 | cd .. | 
|  | 18623 | $RM -r conftest | 
|  | 18624 | $RM conftest* | 
|  | 18625 |  | 
|  | 18626 | fi | 
|  | 18627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
|  | 18628 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
|  | 18629 |  | 
|  | 18630 |  | 
|  | 18631 |  | 
|  | 18632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | 
|  | 18633 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18634 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18635 | $as_echo_n "(cached) " >&6 | 
|  | 18636 | else | 
|  | 18637 | lt_cv_prog_compiler_c_o_CXX=no | 
|  | 18638 | $RM -r conftest 2>/dev/null | 
|  | 18639 | mkdir conftest | 
|  | 18640 | cd conftest | 
|  | 18641 | mkdir out | 
|  | 18642 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
|  | 18643 |  | 
|  | 18644 | lt_compiler_flag="-o out/conftest2.$ac_objext" | 
|  | 18645 | # Insert the option either (1) after the last *FLAGS variable, or | 
|  | 18646 | # (2) before a word containing "conftest.", or (3) at the end. | 
|  | 18647 | # Note that $ac_compile itself does not contain backslashes and begins | 
|  | 18648 | # with a dollar sign (not a hyphen), so the echo should work correctly. | 
|  | 18649 | lt_compile=`echo "$ac_compile" | $SED \ | 
|  | 18650 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 
|  | 18651 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 
|  | 18652 | -e 's:$: $lt_compiler_flag:'` | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18653 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18654 | (eval "$lt_compile" 2>out/conftest.err) | 
|  | 18655 | ac_status=$? | 
|  | 18656 | cat out/conftest.err >&5 | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18658 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 
|  | 18659 | then | 
|  | 18660 | # The compiler can only warn and ignore the option if not recognized | 
|  | 18661 | # So say no if there are warnings | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18662 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18663 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | 
|  | 18664 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 
|  | 18665 | lt_cv_prog_compiler_c_o_CXX=yes | 
|  | 18666 | fi | 
|  | 18667 | fi | 
|  | 18668 | chmod u+w . 2>&5 | 
|  | 18669 | $RM conftest* | 
|  | 18670 | # SGI C++ compiler will create directory out/ii_files/ for | 
|  | 18671 | # template instantiation | 
|  | 18672 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | 
|  | 18673 | $RM out/* && rmdir out | 
|  | 18674 | cd .. | 
|  | 18675 | $RM -r conftest | 
|  | 18676 | $RM conftest* | 
|  | 18677 |  | 
|  | 18678 | fi | 
|  | 18679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | 
|  | 18680 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | 
|  | 18681 |  | 
|  | 18682 |  | 
|  | 18683 |  | 
|  | 18684 |  | 
|  | 18685 | hard_links="nottested" | 
|  | 18686 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | 
|  | 18687 | # do not overwrite the value of need_locks provided by the user | 
|  | 18688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | 
|  | 18689 | $as_echo_n "checking if we can lock with hard links... " >&6; } | 
|  | 18690 | hard_links=yes | 
|  | 18691 | $RM conftest* | 
|  | 18692 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 18693 | touch conftest.a | 
|  | 18694 | ln conftest.a conftest.b 2>&5 || hard_links=no | 
|  | 18695 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | 
|  | 18696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | 
|  | 18697 | $as_echo "$hard_links" >&6; } | 
|  | 18698 | if test "$hard_links" = no; then | 
|  | 18699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | 
|  | 18700 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | 
|  | 18701 | need_locks=warn | 
|  | 18702 | fi | 
|  | 18703 | else | 
|  | 18704 | need_locks=no | 
|  | 18705 | fi | 
|  | 18706 |  | 
|  | 18707 |  | 
|  | 18708 |  | 
|  | 18709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | 
|  | 18710 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | 
|  | 18711 |  | 
|  | 18712 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18713 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18714 | case $host_os in | 
|  | 18715 | aix[4-9]*) | 
|  | 18716 | # If we're using GNU nm, then we don't want the "-C" option. | 
|  | 18717 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18718 | # Also, AIX nm treats weak defined symbols like other global defined | 
|  | 18719 | # symbols, whereas GNU nm marks them as "W". | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18720 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18721 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18722 | else | 
|  | 18723 | 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' | 
|  | 18724 | fi | 
|  | 18725 | ;; | 
|  | 18726 | pw32*) | 
|  | 18727 | export_symbols_cmds_CXX="$ltdll_cmds" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18728 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18729 | cygwin* | mingw* | cegcc*) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18730 | case $cc_basename in | 
|  | 18731 | cl*) ;; | 
|  | 18732 | *) | 
|  | 18733 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | 
|  | 18734 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | 
|  | 18735 | ;; | 
|  | 18736 | esac | 
|  | 18737 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18738 | *) | 
|  | 18739 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18740 | ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18741 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18742 |  | 
|  | 18743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | 
|  | 18744 | $as_echo "$ld_shlibs_CXX" >&6; } | 
|  | 18745 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 
|  | 18746 |  | 
|  | 18747 | with_gnu_ld_CXX=$with_gnu_ld | 
|  | 18748 |  | 
|  | 18749 |  | 
|  | 18750 |  | 
|  | 18751 |  | 
|  | 18752 |  | 
|  | 18753 |  | 
|  | 18754 | # | 
|  | 18755 | # Do we need to explicitly link libc? | 
|  | 18756 | # | 
|  | 18757 | case "x$archive_cmds_need_lc_CXX" in | 
|  | 18758 | x|xyes) | 
|  | 18759 | # Assume -lc should be added | 
|  | 18760 | archive_cmds_need_lc_CXX=yes | 
|  | 18761 |  | 
|  | 18762 | if test "$enable_shared" = yes && test "$GCC" = yes; then | 
|  | 18763 | case $archive_cmds_CXX in | 
|  | 18764 | *'~'*) | 
|  | 18765 | # FIXME: we may have to deal with multi-command sequences. | 
|  | 18766 | ;; | 
|  | 18767 | '$CC '*) | 
|  | 18768 | # Test whether the compiler implicitly links with -lc since on some | 
|  | 18769 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | 
|  | 18770 | # to ld, don't add -lc before -lgcc. | 
|  | 18771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | 
|  | 18772 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18773 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18774 | $as_echo_n "(cached) " >&6 | 
|  | 18775 | else | 
|  | 18776 | $RM conftest* | 
|  | 18777 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18778 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18779 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18780 | (eval $ac_compile) 2>&5 | 
|  | 18781 | ac_status=$? | 
|  | 18782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 18783 | test $ac_status = 0; } 2>conftest.err; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18784 | soname=conftest | 
|  | 18785 | lib=conftest | 
|  | 18786 | libobjs=conftest.$ac_objext | 
|  | 18787 | deplibs= | 
|  | 18788 | wl=$lt_prog_compiler_wl_CXX | 
|  | 18789 | pic_flag=$lt_prog_compiler_pic_CXX | 
|  | 18790 | compiler_flags=-v | 
|  | 18791 | linker_flags=-v | 
|  | 18792 | verstring= | 
|  | 18793 | output_objdir=. | 
|  | 18794 | libname=conftest | 
|  | 18795 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | 
|  | 18796 | allow_undefined_flag_CXX= | 
|  | 18797 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18798 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | 
|  | 18799 | ac_status=$? | 
|  | 18800 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 18801 | test $ac_status = 0; } | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18802 | then | 
|  | 18803 | lt_cv_archive_cmds_need_lc_CXX=no | 
|  | 18804 | else | 
|  | 18805 | lt_cv_archive_cmds_need_lc_CXX=yes | 
|  | 18806 | fi | 
|  | 18807 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | 
|  | 18808 | else | 
|  | 18809 | cat conftest.err 1>&5 | 
|  | 18810 | fi | 
|  | 18811 | $RM conftest* | 
|  | 18812 |  | 
|  | 18813 | fi | 
|  | 18814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | 
|  | 18815 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | 
|  | 18816 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18817 | ;; | 
|  | 18818 | esac | 
|  | 18819 | fi | 
|  | 18820 | ;; | 
|  | 18821 | esac | 
|  | 18822 |  | 
|  | 18823 |  | 
|  | 18824 |  | 
|  | 18825 |  | 
|  | 18826 |  | 
|  | 18827 |  | 
|  | 18828 |  | 
|  | 18829 |  | 
|  | 18830 |  | 
|  | 18831 |  | 
|  | 18832 |  | 
|  | 18833 |  | 
|  | 18834 |  | 
|  | 18835 |  | 
|  | 18836 |  | 
|  | 18837 |  | 
|  | 18838 |  | 
|  | 18839 |  | 
|  | 18840 |  | 
|  | 18841 |  | 
|  | 18842 |  | 
|  | 18843 |  | 
|  | 18844 |  | 
|  | 18845 |  | 
|  | 18846 |  | 
|  | 18847 |  | 
|  | 18848 |  | 
|  | 18849 |  | 
|  | 18850 |  | 
|  | 18851 |  | 
|  | 18852 |  | 
|  | 18853 |  | 
|  | 18854 |  | 
|  | 18855 |  | 
|  | 18856 |  | 
|  | 18857 |  | 
|  | 18858 |  | 
|  | 18859 |  | 
|  | 18860 |  | 
|  | 18861 |  | 
|  | 18862 |  | 
|  | 18863 |  | 
|  | 18864 |  | 
|  | 18865 |  | 
|  | 18866 |  | 
|  | 18867 |  | 
|  | 18868 |  | 
|  | 18869 |  | 
|  | 18870 |  | 
|  | 18871 |  | 
|  | 18872 |  | 
|  | 18873 |  | 
|  | 18874 |  | 
|  | 18875 |  | 
|  | 18876 |  | 
|  | 18877 |  | 
|  | 18878 |  | 
|  | 18879 |  | 
|  | 18880 |  | 
|  | 18881 |  | 
|  | 18882 |  | 
|  | 18883 |  | 
|  | 18884 |  | 
|  | 18885 |  | 
|  | 18886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | 
|  | 18887 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | 
|  | 18888 |  | 
|  | 18889 | library_names_spec= | 
|  | 18890 | libname_spec='lib$name' | 
|  | 18891 | soname_spec= | 
|  | 18892 | shrext_cmds=".so" | 
|  | 18893 | postinstall_cmds= | 
|  | 18894 | postuninstall_cmds= | 
|  | 18895 | finish_cmds= | 
|  | 18896 | finish_eval= | 
|  | 18897 | shlibpath_var= | 
|  | 18898 | shlibpath_overrides_runpath=unknown | 
|  | 18899 | version_type=none | 
|  | 18900 | dynamic_linker="$host_os ld.so" | 
|  | 18901 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | 
|  | 18902 | need_lib_prefix=unknown | 
|  | 18903 | hardcode_into_libs=no | 
|  | 18904 |  | 
|  | 18905 | # when you set need_version to no, make sure it does not cause -set_version | 
|  | 18906 | # flags to be left without arguments | 
|  | 18907 | need_version=unknown | 
|  | 18908 |  | 
|  | 18909 | case $host_os in | 
|  | 18910 | aix3*) | 
|  | 18911 | version_type=linux | 
|  | 18912 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | 
|  | 18913 | shlibpath_var=LIBPATH | 
|  | 18914 |  | 
|  | 18915 | # AIX 3 has no versioning support, so we append a major version to the name. | 
|  | 18916 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18917 | ;; | 
|  | 18918 |  | 
|  | 18919 | aix[4-9]*) | 
|  | 18920 | version_type=linux | 
|  | 18921 | need_lib_prefix=no | 
|  | 18922 | need_version=no | 
|  | 18923 | hardcode_into_libs=yes | 
|  | 18924 | if test "$host_cpu" = ia64; then | 
|  | 18925 | # AIX 5 supports IA64 | 
|  | 18926 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | 
|  | 18927 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18928 | else | 
|  | 18929 | # With GCC up to 2.95.x, collect2 would create an import file | 
|  | 18930 | # for dependence libraries.  The import file would start with | 
|  | 18931 | # the line `#! .'.  This would cause the generated library to | 
|  | 18932 | # depend on `.', always an invalid library.  This was fixed in | 
|  | 18933 | # development snapshots of GCC prior to 3.0. | 
|  | 18934 | case $host_os in | 
|  | 18935 | aix4 | aix4.[01] | aix4.[01].*) | 
|  | 18936 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | 
|  | 18937 | echo ' yes ' | 
|  | 18938 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | 
|  | 18939 | : | 
|  | 18940 | else | 
|  | 18941 | can_build_shared=no | 
|  | 18942 | fi | 
|  | 18943 | ;; | 
|  | 18944 | esac | 
|  | 18945 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | 
|  | 18946 | # soname into executable. Probably we can add versioning support to | 
|  | 18947 | # collect2, so additional links can be useful in future. | 
|  | 18948 | if test "$aix_use_runtimelinking" = yes; then | 
|  | 18949 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | 
|  | 18950 | # instead of lib<name>.a to let people know that these are not | 
|  | 18951 | # typical AIX shared libraries. | 
|  | 18952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18953 | else | 
|  | 18954 | # We preserve .a as extension for shared libraries through AIX4.2 | 
|  | 18955 | # and later when we are not doing run time linking. | 
|  | 18956 | library_names_spec='${libname}${release}.a $libname.a' | 
|  | 18957 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18958 | fi | 
|  | 18959 | shlibpath_var=LIBPATH | 
|  | 18960 | fi | 
|  | 18961 | ;; | 
|  | 18962 |  | 
|  | 18963 | amigaos*) | 
|  | 18964 | case $host_cpu in | 
|  | 18965 | powerpc) | 
|  | 18966 | # Since July 2007 AmigaOS4 officially supports .so libraries. | 
|  | 18967 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | 
|  | 18968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18969 | ;; | 
|  | 18970 | m68k) | 
|  | 18971 | library_names_spec='$libname.ixlibrary $libname.a' | 
|  | 18972 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18973 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18974 | ;; | 
|  | 18975 | esac | 
|  | 18976 | ;; | 
|  | 18977 |  | 
|  | 18978 | beos*) | 
|  | 18979 | library_names_spec='${libname}${shared_ext}' | 
|  | 18980 | dynamic_linker="$host_os ld.so" | 
|  | 18981 | shlibpath_var=LIBRARY_PATH | 
|  | 18982 | ;; | 
|  | 18983 |  | 
|  | 18984 | bsdi[45]*) | 
|  | 18985 | version_type=linux | 
|  | 18986 | need_version=no | 
|  | 18987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 18988 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 18989 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | 
|  | 18990 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 18991 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | 
|  | 18992 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | 
|  | 18993 | # the default ld.so.conf also contains /usr/contrib/lib and | 
|  | 18994 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | 
|  | 18995 | # libtool to hard-code these into programs | 
|  | 18996 | ;; | 
|  | 18997 |  | 
|  | 18998 | cygwin* | mingw* | pw32* | cegcc*) | 
|  | 18999 | version_type=windows | 
|  | 19000 | shrext_cmds=".dll" | 
|  | 19001 | need_version=no | 
|  | 19002 | need_lib_prefix=no | 
|  | 19003 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19004 | case $GCC,$cc_basename in | 
|  | 19005 | yes,*) | 
|  | 19006 | # gcc | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19007 | library_names_spec='$libname.dll.a' | 
|  | 19008 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 19009 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 19010 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
|  | 19011 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 19012 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 19013 | $install_prog $dir/$dlname \$dldir/$dlname~ | 
|  | 19014 | chmod a+x \$dldir/$dlname~ | 
|  | 19015 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | 
|  | 19016 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | 
|  | 19017 | fi' | 
|  | 19018 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 19019 | dlpath=$dir/\$dldll~ | 
|  | 19020 | $RM \$dlpath' | 
|  | 19021 | shlibpath_overrides_runpath=yes | 
|  | 19022 |  | 
|  | 19023 | case $host_os in | 
|  | 19024 | cygwin*) | 
|  | 19025 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | 
|  | 19026 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19027 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19028 | ;; | 
|  | 19029 | mingw* | cegcc*) | 
|  | 19030 | # MinGW DLLs use traditional 'lib' prefix | 
|  | 19031 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19032 | ;; | 
|  | 19033 | pw32*) | 
|  | 19034 | # pw32 DLLs use 'pw' prefix rather than 'lib' | 
|  | 19035 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 19036 | ;; | 
|  | 19037 | esac | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19038 | dynamic_linker='Win32 ld.exe' | 
|  | 19039 | ;; | 
|  | 19040 |  | 
|  | 19041 | *,cl*) | 
|  | 19042 | # Native MSVC | 
|  | 19043 | libname_spec='$name' | 
|  | 19044 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | 
|  | 19045 | library_names_spec='${libname}.dll.lib' | 
|  | 19046 |  | 
|  | 19047 | case $build_os in | 
|  | 19048 | mingw*) | 
|  | 19049 | sys_lib_search_path_spec= | 
|  | 19050 | lt_save_ifs=$IFS | 
|  | 19051 | IFS=';' | 
|  | 19052 | for lt_path in $LIB | 
|  | 19053 | do | 
|  | 19054 | IFS=$lt_save_ifs | 
|  | 19055 | # Let DOS variable expansion print the short 8.3 style file name. | 
|  | 19056 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | 
|  | 19057 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | 
|  | 19058 | done | 
|  | 19059 | IFS=$lt_save_ifs | 
|  | 19060 | # Convert to MSYS style. | 
|  | 19061 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | 
|  | 19062 | ;; | 
|  | 19063 | cygwin*) | 
|  | 19064 | # Convert to unix form, then to dos form, then back to unix form | 
|  | 19065 | # but this time dos style (no spaces!) so that the unix form looks | 
|  | 19066 | # like /cygdrive/c/PROGRA~1:/cygdr... | 
|  | 19067 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | 
|  | 19068 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | 
|  | 19069 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 19070 | ;; | 
|  | 19071 | *) | 
|  | 19072 | sys_lib_search_path_spec="$LIB" | 
|  | 19073 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | 
|  | 19074 | # It is most probably a Windows format PATH. | 
|  | 19075 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | 
|  | 19076 | else | 
|  | 19077 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | 
|  | 19078 | fi | 
|  | 19079 | # FIXME: find the short name or the path components, as spaces are | 
|  | 19080 | # common. (e.g. "Program Files" -> "PROGRA~1") | 
|  | 19081 | ;; | 
|  | 19082 | esac | 
|  | 19083 |  | 
|  | 19084 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | 
|  | 19085 | postinstall_cmds='base_file=`basename \${file}`~ | 
|  | 19086 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | 
|  | 19087 | dldir=$destdir/`dirname \$dlpath`~ | 
|  | 19088 | test -d \$dldir || mkdir -p \$dldir~ | 
|  | 19089 | $install_prog $dir/$dlname \$dldir/$dlname' | 
|  | 19090 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | 
|  | 19091 | dlpath=$dir/\$dldll~ | 
|  | 19092 | $RM \$dlpath' | 
|  | 19093 | shlibpath_overrides_runpath=yes | 
|  | 19094 | dynamic_linker='Win32 link.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19095 | ;; | 
|  | 19096 |  | 
|  | 19097 | *) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19098 | # Assume MSVC wrapper | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19099 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19100 | dynamic_linker='Win32 ld.exe' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19101 | ;; | 
|  | 19102 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19103 | # FIXME: first we should search . and the directory the executable is in | 
|  | 19104 | shlibpath_var=PATH | 
|  | 19105 | ;; | 
|  | 19106 |  | 
|  | 19107 | darwin* | rhapsody*) | 
|  | 19108 | dynamic_linker="$host_os dyld" | 
|  | 19109 | version_type=darwin | 
|  | 19110 | need_lib_prefix=no | 
|  | 19111 | need_version=no | 
|  | 19112 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | 
|  | 19113 | soname_spec='${libname}${release}${major}$shared_ext' | 
|  | 19114 | shlibpath_overrides_runpath=yes | 
|  | 19115 | shlibpath_var=DYLD_LIBRARY_PATH | 
|  | 19116 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | 
|  | 19117 |  | 
|  | 19118 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | 
|  | 19119 | ;; | 
|  | 19120 |  | 
|  | 19121 | dgux*) | 
|  | 19122 | version_type=linux | 
|  | 19123 | need_lib_prefix=no | 
|  | 19124 | need_version=no | 
|  | 19125 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | 
|  | 19126 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19127 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19128 | ;; | 
|  | 19129 |  | 
|  | 19130 | freebsd1*) | 
|  | 19131 | dynamic_linker=no | 
|  | 19132 | ;; | 
|  | 19133 |  | 
|  | 19134 | freebsd* | dragonfly*) | 
|  | 19135 | # DragonFly does not have aout.  When/if they implement a new | 
|  | 19136 | # versioning mechanism, adjust this. | 
|  | 19137 | if test -x /usr/bin/objformat; then | 
|  | 19138 | objformat=`/usr/bin/objformat` | 
|  | 19139 | else | 
|  | 19140 | case $host_os in | 
|  | 19141 | freebsd[123]*) objformat=aout ;; | 
|  | 19142 | *) objformat=elf ;; | 
|  | 19143 | esac | 
|  | 19144 | fi | 
|  | 19145 | version_type=freebsd-$objformat | 
|  | 19146 | case $version_type in | 
|  | 19147 | freebsd-elf*) | 
|  | 19148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 19149 | need_version=no | 
|  | 19150 | need_lib_prefix=no | 
|  | 19151 | ;; | 
|  | 19152 | freebsd-*) | 
|  | 19153 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | 
|  | 19154 | need_version=yes | 
|  | 19155 | ;; | 
|  | 19156 | esac | 
|  | 19157 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19158 | case $host_os in | 
|  | 19159 | freebsd2*) | 
|  | 19160 | shlibpath_overrides_runpath=yes | 
|  | 19161 | ;; | 
|  | 19162 | freebsd3.[01]* | freebsdelf3.[01]*) | 
|  | 19163 | shlibpath_overrides_runpath=yes | 
|  | 19164 | hardcode_into_libs=yes | 
|  | 19165 | ;; | 
|  | 19166 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | 
|  | 19167 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | 
|  | 19168 | shlibpath_overrides_runpath=no | 
|  | 19169 | hardcode_into_libs=yes | 
|  | 19170 | ;; | 
|  | 19171 | *) # from 4.6 on, and DragonFly | 
|  | 19172 | shlibpath_overrides_runpath=yes | 
|  | 19173 | hardcode_into_libs=yes | 
|  | 19174 | ;; | 
|  | 19175 | esac | 
|  | 19176 | ;; | 
|  | 19177 |  | 
|  | 19178 | gnu*) | 
|  | 19179 | version_type=linux | 
|  | 19180 | need_lib_prefix=no | 
|  | 19181 | need_version=no | 
|  | 19182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 19183 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19184 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19185 | hardcode_into_libs=yes | 
|  | 19186 | ;; | 
|  | 19187 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19188 | haiku*) | 
|  | 19189 | version_type=linux | 
|  | 19190 | need_lib_prefix=no | 
|  | 19191 | need_version=no | 
|  | 19192 | dynamic_linker="$host_os runtime_loader" | 
|  | 19193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | 
|  | 19194 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19195 | shlibpath_var=LIBRARY_PATH | 
|  | 19196 | shlibpath_overrides_runpath=yes | 
|  | 19197 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | 
|  | 19198 | hardcode_into_libs=yes | 
|  | 19199 | ;; | 
|  | 19200 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19201 | hpux9* | hpux10* | hpux11*) | 
|  | 19202 | # Give a soname corresponding to the major version so that dld.sl refuses to | 
|  | 19203 | # link against other versions. | 
|  | 19204 | version_type=sunos | 
|  | 19205 | need_lib_prefix=no | 
|  | 19206 | need_version=no | 
|  | 19207 | case $host_cpu in | 
|  | 19208 | ia64*) | 
|  | 19209 | shrext_cmds='.so' | 
|  | 19210 | hardcode_into_libs=yes | 
|  | 19211 | dynamic_linker="$host_os dld.so" | 
|  | 19212 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19213 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 19214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19215 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19216 | if test "X$HPUX_IA64_MODE" = X32; then | 
|  | 19217 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | 
|  | 19218 | else | 
|  | 19219 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | 
|  | 19220 | fi | 
|  | 19221 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 19222 | ;; | 
|  | 19223 | hppa*64*) | 
|  | 19224 | shrext_cmds='.sl' | 
|  | 19225 | hardcode_into_libs=yes | 
|  | 19226 | dynamic_linker="$host_os dld.sl" | 
|  | 19227 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | 
|  | 19228 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | 
|  | 19229 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19230 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19231 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | 
|  | 19232 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | 
|  | 19233 | ;; | 
|  | 19234 | *) | 
|  | 19235 | shrext_cmds='.sl' | 
|  | 19236 | dynamic_linker="$host_os dld.sl" | 
|  | 19237 | shlibpath_var=SHLIB_PATH | 
|  | 19238 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | 
|  | 19239 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19240 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19241 | ;; | 
|  | 19242 | esac | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19243 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19244 | postinstall_cmds='chmod 555 $lib' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19245 | # or fails outright, so override atomically: | 
|  | 19246 | install_override_mode=555 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19247 | ;; | 
|  | 19248 |  | 
|  | 19249 | interix[3-9]*) | 
|  | 19250 | version_type=linux | 
|  | 19251 | need_lib_prefix=no | 
|  | 19252 | need_version=no | 
|  | 19253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 19254 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19255 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | 
|  | 19256 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19257 | shlibpath_overrides_runpath=no | 
|  | 19258 | hardcode_into_libs=yes | 
|  | 19259 | ;; | 
|  | 19260 |  | 
|  | 19261 | irix5* | irix6* | nonstopux*) | 
|  | 19262 | case $host_os in | 
|  | 19263 | nonstopux*) version_type=nonstopux ;; | 
|  | 19264 | *) | 
|  | 19265 | if test "$lt_cv_prog_gnu_ld" = yes; then | 
|  | 19266 | version_type=linux | 
|  | 19267 | else | 
|  | 19268 | version_type=irix | 
|  | 19269 | fi ;; | 
|  | 19270 | esac | 
|  | 19271 | need_lib_prefix=no | 
|  | 19272 | need_version=no | 
|  | 19273 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 19275 | case $host_os in | 
|  | 19276 | irix5* | nonstopux*) | 
|  | 19277 | libsuff= shlibsuff= | 
|  | 19278 | ;; | 
|  | 19279 | *) | 
|  | 19280 | case $LD in # libtool.m4 will add one of these switches to LD | 
|  | 19281 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | 
|  | 19282 | libsuff= shlibsuff= libmagic=32-bit;; | 
|  | 19283 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | 
|  | 19284 | libsuff=32 shlibsuff=N32 libmagic=N32;; | 
|  | 19285 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | 
|  | 19286 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | 
|  | 19287 | *) libsuff= shlibsuff= libmagic=never-match;; | 
|  | 19288 | esac | 
|  | 19289 | ;; | 
|  | 19290 | esac | 
|  | 19291 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | 
|  | 19292 | shlibpath_overrides_runpath=no | 
|  | 19293 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | 
|  | 19294 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | 
|  | 19295 | hardcode_into_libs=yes | 
|  | 19296 | ;; | 
|  | 19297 |  | 
|  | 19298 | # No shared lib support for Linux oldld, aout, or coff. | 
|  | 19299 | linux*oldld* | linux*aout* | linux*coff*) | 
|  | 19300 | dynamic_linker=no | 
|  | 19301 | ;; | 
|  | 19302 |  | 
|  | 19303 | # This must be Linux ELF. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19304 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19305 | version_type=linux | 
|  | 19306 | need_lib_prefix=no | 
|  | 19307 | need_version=no | 
|  | 19308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19309 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19310 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | 
|  | 19311 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19312 | shlibpath_overrides_runpath=no | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19313 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19314 | # Some binutils ld are patched to set DT_RUNPATH | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19315 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19316 | $as_echo_n "(cached) " >&6 | 
|  | 19317 | else | 
|  | 19318 | lt_cv_shlibpath_overrides_runpath=no | 
|  | 19319 | save_LDFLAGS=$LDFLAGS | 
|  | 19320 | save_libdir=$libdir | 
|  | 19321 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | 
|  | 19322 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | 
|  | 19323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19324 | /* end confdefs.h.  */ | 
|  | 19325 |  | 
|  | 19326 | int | 
|  | 19327 | main () | 
|  | 19328 | { | 
|  | 19329 |  | 
|  | 19330 | ; | 
|  | 19331 | return 0; | 
|  | 19332 | } | 
|  | 19333 | _ACEOF | 
|  | 19334 | if ac_fn_cxx_try_link "$LINENO"; then : | 
|  | 19335 | if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19336 | lt_cv_shlibpath_overrides_runpath=yes | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19337 | fi | 
|  | 19338 | fi | 
|  | 19339 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19340 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19341 | LDFLAGS=$save_LDFLAGS | 
|  | 19342 | libdir=$save_libdir | 
|  | 19343 |  | 
|  | 19344 | fi | 
|  | 19345 |  | 
|  | 19346 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19347 |  | 
|  | 19348 | # This implies no fast_install, which is unacceptable. | 
|  | 19349 | # Some rework will be needed to allow for fast_install | 
|  | 19350 | # before this can be enabled. | 
|  | 19351 | hardcode_into_libs=yes | 
|  | 19352 |  | 
|  | 19353 | # Add ABI-specific directories to the system library path. | 
|  | 19354 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | 
|  | 19355 |  | 
|  | 19356 | # Append ld.so.conf contents to the search path | 
|  | 19357 | if test -f /etc/ld.so.conf; then | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19358 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19359 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19360 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19361 | fi | 
|  | 19362 |  | 
|  | 19363 | # We used to test for /lib/ld.so.1 and disable shared libraries on | 
|  | 19364 | # powerpc, because MkLinux only supported shared libraries with the | 
|  | 19365 | # GNU dynamic linker.  Since this was broken with cross compilers, | 
|  | 19366 | # most powerpc-linux boxes support dynamic linking these days and | 
|  | 19367 | # people can always --disable-shared, the test was removed, and we | 
|  | 19368 | # assume the GNU/Linux dynamic linker is in use. | 
|  | 19369 | dynamic_linker='GNU/Linux ld.so' | 
|  | 19370 | ;; | 
|  | 19371 |  | 
|  | 19372 | netbsd*) | 
|  | 19373 | version_type=sunos | 
|  | 19374 | need_lib_prefix=no | 
|  | 19375 | need_version=no | 
|  | 19376 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | 
|  | 19377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 19378 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 19379 | dynamic_linker='NetBSD (a.out) ld.so' | 
|  | 19380 | else | 
|  | 19381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | 
|  | 19382 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19383 | dynamic_linker='NetBSD ld.elf_so' | 
|  | 19384 | fi | 
|  | 19385 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19386 | shlibpath_overrides_runpath=yes | 
|  | 19387 | hardcode_into_libs=yes | 
|  | 19388 | ;; | 
|  | 19389 |  | 
|  | 19390 | newsos6) | 
|  | 19391 | version_type=linux | 
|  | 19392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19393 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19394 | shlibpath_overrides_runpath=yes | 
|  | 19395 | ;; | 
|  | 19396 |  | 
|  | 19397 | *nto* | *qnx*) | 
|  | 19398 | version_type=qnx | 
|  | 19399 | need_lib_prefix=no | 
|  | 19400 | need_version=no | 
|  | 19401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19402 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19403 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19404 | shlibpath_overrides_runpath=no | 
|  | 19405 | hardcode_into_libs=yes | 
|  | 19406 | dynamic_linker='ldqnx.so' | 
|  | 19407 | ;; | 
|  | 19408 |  | 
|  | 19409 | openbsd*) | 
|  | 19410 | version_type=sunos | 
|  | 19411 | sys_lib_dlsearch_path_spec="/usr/lib" | 
|  | 19412 | need_lib_prefix=no | 
|  | 19413 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 
|  | 19414 | case $host_os in | 
|  | 19415 | openbsd3.3 | openbsd3.3.*)	need_version=yes ;; | 
|  | 19416 | *)				need_version=no  ;; | 
|  | 19417 | esac | 
|  | 19418 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 19419 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | 
|  | 19420 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19421 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | 
|  | 19422 | case $host_os in | 
|  | 19423 | openbsd2.[89] | openbsd2.[89].*) | 
|  | 19424 | shlibpath_overrides_runpath=no | 
|  | 19425 | ;; | 
|  | 19426 | *) | 
|  | 19427 | shlibpath_overrides_runpath=yes | 
|  | 19428 | ;; | 
|  | 19429 | esac | 
|  | 19430 | else | 
|  | 19431 | shlibpath_overrides_runpath=yes | 
|  | 19432 | fi | 
|  | 19433 | ;; | 
|  | 19434 |  | 
|  | 19435 | os2*) | 
|  | 19436 | libname_spec='$name' | 
|  | 19437 | shrext_cmds=".dll" | 
|  | 19438 | need_lib_prefix=no | 
|  | 19439 | library_names_spec='$libname${shared_ext} $libname.a' | 
|  | 19440 | dynamic_linker='OS/2 ld.exe' | 
|  | 19441 | shlibpath_var=LIBPATH | 
|  | 19442 | ;; | 
|  | 19443 |  | 
|  | 19444 | osf3* | osf4* | osf5*) | 
|  | 19445 | version_type=osf | 
|  | 19446 | need_lib_prefix=no | 
|  | 19447 | need_version=no | 
|  | 19448 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19450 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19451 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | 
|  | 19452 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 
|  | 19453 | ;; | 
|  | 19454 |  | 
|  | 19455 | rdos*) | 
|  | 19456 | dynamic_linker=no | 
|  | 19457 | ;; | 
|  | 19458 |  | 
|  | 19459 | solaris*) | 
|  | 19460 | version_type=linux | 
|  | 19461 | need_lib_prefix=no | 
|  | 19462 | need_version=no | 
|  | 19463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19464 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19465 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19466 | shlibpath_overrides_runpath=yes | 
|  | 19467 | hardcode_into_libs=yes | 
|  | 19468 | # ldd complains unless libraries are executable | 
|  | 19469 | postinstall_cmds='chmod +x $lib' | 
|  | 19470 | ;; | 
|  | 19471 |  | 
|  | 19472 | sunos4*) | 
|  | 19473 | version_type=sunos | 
|  | 19474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | 
|  | 19475 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | 
|  | 19476 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19477 | shlibpath_overrides_runpath=yes | 
|  | 19478 | if test "$with_gnu_ld" = yes; then | 
|  | 19479 | need_lib_prefix=no | 
|  | 19480 | fi | 
|  | 19481 | need_version=yes | 
|  | 19482 | ;; | 
|  | 19483 |  | 
|  | 19484 | sysv4 | sysv4.3*) | 
|  | 19485 | version_type=linux | 
|  | 19486 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19487 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19488 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19489 | case $host_vendor in | 
|  | 19490 | sni) | 
|  | 19491 | shlibpath_overrides_runpath=no | 
|  | 19492 | need_lib_prefix=no | 
|  | 19493 | runpath_var=LD_RUN_PATH | 
|  | 19494 | ;; | 
|  | 19495 | siemens) | 
|  | 19496 | need_lib_prefix=no | 
|  | 19497 | ;; | 
|  | 19498 | motorola) | 
|  | 19499 | need_lib_prefix=no | 
|  | 19500 | need_version=no | 
|  | 19501 | shlibpath_overrides_runpath=no | 
|  | 19502 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | 
|  | 19503 | ;; | 
|  | 19504 | esac | 
|  | 19505 | ;; | 
|  | 19506 |  | 
|  | 19507 | sysv4*MP*) | 
|  | 19508 | if test -d /usr/nec ;then | 
|  | 19509 | version_type=linux | 
|  | 19510 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | 
|  | 19511 | soname_spec='$libname${shared_ext}.$major' | 
|  | 19512 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19513 | fi | 
|  | 19514 | ;; | 
|  | 19515 |  | 
|  | 19516 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 19517 | version_type=freebsd-elf | 
|  | 19518 | need_lib_prefix=no | 
|  | 19519 | need_version=no | 
|  | 19520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | 
|  | 19521 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19522 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19523 | shlibpath_overrides_runpath=yes | 
|  | 19524 | hardcode_into_libs=yes | 
|  | 19525 | if test "$with_gnu_ld" = yes; then | 
|  | 19526 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | 
|  | 19527 | else | 
|  | 19528 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | 
|  | 19529 | case $host_os in | 
|  | 19530 | sco3.2v5*) | 
|  | 19531 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | 
|  | 19532 | ;; | 
|  | 19533 | esac | 
|  | 19534 | fi | 
|  | 19535 | sys_lib_dlsearch_path_spec='/usr/lib' | 
|  | 19536 | ;; | 
|  | 19537 |  | 
|  | 19538 | tpf*) | 
|  | 19539 | # TPF is a cross-target only.  Preferred cross-host = GNU/Linux. | 
|  | 19540 | version_type=linux | 
|  | 19541 | need_lib_prefix=no | 
|  | 19542 | need_version=no | 
|  | 19543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19544 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19545 | shlibpath_overrides_runpath=no | 
|  | 19546 | hardcode_into_libs=yes | 
|  | 19547 | ;; | 
|  | 19548 |  | 
|  | 19549 | uts4*) | 
|  | 19550 | version_type=linux | 
|  | 19551 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 
|  | 19552 | soname_spec='${libname}${release}${shared_ext}$major' | 
|  | 19553 | shlibpath_var=LD_LIBRARY_PATH | 
|  | 19554 | ;; | 
|  | 19555 |  | 
|  | 19556 | *) | 
|  | 19557 | dynamic_linker=no | 
|  | 19558 | ;; | 
|  | 19559 | esac | 
|  | 19560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | 
|  | 19561 | $as_echo "$dynamic_linker" >&6; } | 
|  | 19562 | test "$dynamic_linker" = no && can_build_shared=no | 
|  | 19563 |  | 
|  | 19564 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | 
|  | 19565 | if test "$GCC" = yes; then | 
|  | 19566 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | 
|  | 19567 | fi | 
|  | 19568 |  | 
|  | 19569 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | 
|  | 19570 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | 
|  | 19571 | fi | 
|  | 19572 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | 
|  | 19573 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | 
|  | 19574 | fi | 
|  | 19575 |  | 
|  | 19576 |  | 
|  | 19577 |  | 
|  | 19578 |  | 
|  | 19579 |  | 
|  | 19580 |  | 
|  | 19581 |  | 
|  | 19582 |  | 
|  | 19583 |  | 
|  | 19584 |  | 
|  | 19585 |  | 
|  | 19586 |  | 
|  | 19587 |  | 
|  | 19588 |  | 
|  | 19589 |  | 
|  | 19590 |  | 
|  | 19591 |  | 
|  | 19592 |  | 
|  | 19593 |  | 
|  | 19594 |  | 
|  | 19595 |  | 
|  | 19596 |  | 
|  | 19597 |  | 
|  | 19598 |  | 
|  | 19599 |  | 
|  | 19600 |  | 
|  | 19601 |  | 
|  | 19602 |  | 
|  | 19603 |  | 
|  | 19604 |  | 
|  | 19605 |  | 
|  | 19606 |  | 
|  | 19607 |  | 
|  | 19608 |  | 
|  | 19609 |  | 
|  | 19610 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19611 |  | 
|  | 19612 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | 
|  | 19614 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | 
|  | 19615 | hardcode_action_CXX= | 
|  | 19616 | if test -n "$hardcode_libdir_flag_spec_CXX" || | 
|  | 19617 | test -n "$runpath_var_CXX" || | 
|  | 19618 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | 
|  | 19619 |  | 
|  | 19620 | # We can hardcode non-existent directories. | 
|  | 19621 | if test "$hardcode_direct_CXX" != no && | 
|  | 19622 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | 
|  | 19623 | # have to relink, otherwise we might link with an installed library | 
|  | 19624 | # when we should be linking with a yet-to-be-installed one | 
|  | 19625 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | 
|  | 19626 | test "$hardcode_minus_L_CXX" != no; then | 
|  | 19627 | # Linking always hardcodes the temporary library directory. | 
|  | 19628 | hardcode_action_CXX=relink | 
|  | 19629 | else | 
|  | 19630 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | 
|  | 19631 | hardcode_action_CXX=immediate | 
|  | 19632 | fi | 
|  | 19633 | else | 
|  | 19634 | # We cannot hardcode anything, or else we can only hardcode existing | 
|  | 19635 | # directories. | 
|  | 19636 | hardcode_action_CXX=unsupported | 
|  | 19637 | fi | 
|  | 19638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | 
|  | 19639 | $as_echo "$hardcode_action_CXX" >&6; } | 
|  | 19640 |  | 
|  | 19641 | if test "$hardcode_action_CXX" = relink || | 
|  | 19642 | test "$inherit_rpath_CXX" = yes; then | 
|  | 19643 | # Fast installation is not supported | 
|  | 19644 | enable_fast_install=no | 
|  | 19645 | elif test "$shlibpath_overrides_runpath" = yes || | 
|  | 19646 | test "$enable_shared" = no; then | 
|  | 19647 | # Fast installation is not necessary | 
|  | 19648 | enable_fast_install=needless | 
|  | 19649 | fi | 
|  | 19650 |  | 
|  | 19651 |  | 
|  | 19652 |  | 
|  | 19653 |  | 
|  | 19654 |  | 
|  | 19655 |  | 
|  | 19656 |  | 
|  | 19657 | fi # test -n "$compiler" | 
|  | 19658 |  | 
|  | 19659 | CC=$lt_save_CC | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19660 | CFLAGS=$lt_save_CFLAGS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19661 | LDCXX=$LD | 
|  | 19662 | LD=$lt_save_LD | 
|  | 19663 | GCC=$lt_save_GCC | 
|  | 19664 | with_gnu_ld=$lt_save_with_gnu_ld | 
|  | 19665 | lt_cv_path_LDCXX=$lt_cv_path_LD | 
|  | 19666 | lt_cv_path_LD=$lt_save_path_LD | 
|  | 19667 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | 
|  | 19668 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | 
|  | 19669 | fi # test "$_lt_caught_CXX_error" != yes | 
|  | 19670 |  | 
|  | 19671 | ac_ext=c | 
|  | 19672 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19673 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19674 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19675 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19676 |  | 
|  | 19677 |  | 
|  | 19678 |  | 
|  | 19679 |  | 
|  | 19680 |  | 
|  | 19681 |  | 
|  | 19682 |  | 
|  | 19683 |  | 
|  | 19684 |  | 
|  | 19685 |  | 
|  | 19686 |  | 
|  | 19687 |  | 
|  | 19688 |  | 
|  | 19689 | ac_config_commands="$ac_config_commands libtool" | 
|  | 19690 |  | 
|  | 19691 |  | 
|  | 19692 |  | 
|  | 19693 |  | 
|  | 19694 | # Only expand once: | 
|  | 19695 |  | 
|  | 19696 |  | 
|  | 19697 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 19698 |  | 
|  | 19699 |  | 
|  | 19700 | # Configure libltdl | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19701 |  | 
|  | 19702 |  | 
|  | 19703 |  | 
|  | 19704 |  | 
|  | 19705 |  | 
|  | 19706 |  | 
|  | 19707 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | 
|  | 19709 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19710 | if ${libltdl_cv_shlibext+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19711 | $as_echo_n "(cached) " >&6 | 
|  | 19712 | else | 
|  | 19713 |  | 
|  | 19714 | module=yes | 
|  | 19715 | eval libltdl_cv_shlibext=$shrext_cmds | 
|  | 19716 |  | 
|  | 19717 | fi | 
|  | 19718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 | 
|  | 19719 | $as_echo "$libltdl_cv_shlibext" >&6; } | 
|  | 19720 | if test -n "$libltdl_cv_shlibext"; then | 
|  | 19721 |  | 
|  | 19722 | cat >>confdefs.h <<_ACEOF | 
|  | 19723 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | 
|  | 19724 | _ACEOF | 
|  | 19725 |  | 
|  | 19726 | fi | 
|  | 19727 |  | 
|  | 19728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 | 
|  | 19729 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19730 | if ${lt_cv_module_path_var+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19731 | $as_echo_n "(cached) " >&6 | 
|  | 19732 | else | 
|  | 19733 | lt_cv_module_path_var="$shlibpath_var" | 
|  | 19734 | fi | 
|  | 19735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | 
|  | 19736 | $as_echo "$lt_cv_module_path_var" >&6; } | 
|  | 19737 | if test -n "$lt_cv_module_path_var"; then | 
|  | 19738 |  | 
|  | 19739 | cat >>confdefs.h <<_ACEOF | 
|  | 19740 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | 
|  | 19741 | _ACEOF | 
|  | 19742 |  | 
|  | 19743 | fi | 
|  | 19744 |  | 
|  | 19745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 | 
|  | 19746 | $as_echo_n "checking for the default library search path... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19747 | if ${lt_cv_sys_dlsearch_path+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19748 | $as_echo_n "(cached) " >&6 | 
|  | 19749 | else | 
|  | 19750 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | 
|  | 19751 | fi | 
|  | 19752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | 
|  | 19753 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | 
|  | 19754 | if test -n "$lt_cv_sys_dlsearch_path"; then | 
|  | 19755 | sys_dlsearch_path= | 
|  | 19756 | for dir in $lt_cv_sys_dlsearch_path; do | 
|  | 19757 | if test -z "$sys_dlsearch_path"; then | 
|  | 19758 | sys_dlsearch_path="$dir" | 
|  | 19759 | else | 
|  | 19760 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | 
|  | 19761 | fi | 
|  | 19762 | done | 
|  | 19763 |  | 
|  | 19764 | cat >>confdefs.h <<_ACEOF | 
|  | 19765 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | 
|  | 19766 | _ACEOF | 
|  | 19767 |  | 
|  | 19768 | fi | 
|  | 19769 |  | 
|  | 19770 |  | 
|  | 19771 | LT_DLLOADERS= | 
|  | 19772 |  | 
|  | 19773 |  | 
|  | 19774 | ac_ext=c | 
|  | 19775 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 19776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 19777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 19778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 19779 |  | 
|  | 19780 |  | 
|  | 19781 | LIBADD_DLOPEN= | 
|  | 19782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | 
|  | 19783 | $as_echo_n "checking for library containing dlopen... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19784 | if ${ac_cv_search_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19785 | $as_echo_n "(cached) " >&6 | 
|  | 19786 | else | 
|  | 19787 | ac_func_search_save_LIBS=$LIBS | 
|  | 19788 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 19789 | /* end confdefs.h.  */ | 
|  | 19790 |  | 
|  | 19791 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19792 | Use char because int might match the return type of a GCC | 
|  | 19793 | builtin and then its argument prototype would still apply.  */ | 
|  | 19794 | #ifdef __cplusplus | 
|  | 19795 | extern "C" | 
|  | 19796 | #endif | 
|  | 19797 | char dlopen (); | 
|  | 19798 | int | 
|  | 19799 | main () | 
|  | 19800 | { | 
|  | 19801 | return dlopen (); | 
|  | 19802 | ; | 
|  | 19803 | return 0; | 
|  | 19804 | } | 
|  | 19805 | _ACEOF | 
|  | 19806 | for ac_lib in '' dl; do | 
|  | 19807 | if test -z "$ac_lib"; then | 
|  | 19808 | ac_res="none required" | 
|  | 19809 | else | 
|  | 19810 | ac_res=-l$ac_lib | 
|  | 19811 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 19812 | fi | 
|  | 19813 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 19814 | ac_cv_search_dlopen=$ac_res | 
|  | 19815 | fi | 
|  | 19816 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19817 | conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19818 | if ${ac_cv_search_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19819 | break | 
|  | 19820 | fi | 
|  | 19821 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19822 | if ${ac_cv_search_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19823 |  | 
|  | 19824 | else | 
|  | 19825 | ac_cv_search_dlopen=no | 
|  | 19826 | fi | 
|  | 19827 | rm conftest.$ac_ext | 
|  | 19828 | LIBS=$ac_func_search_save_LIBS | 
|  | 19829 | fi | 
|  | 19830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | 
|  | 19831 | $as_echo "$ac_cv_search_dlopen" >&6; } | 
|  | 19832 | ac_res=$ac_cv_search_dlopen | 
|  | 19833 | if test "$ac_res" != no; then : | 
|  | 19834 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 19835 |  | 
|  | 19836 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
|  | 19837 |  | 
|  | 19838 | if test "$ac_cv_search_dlopen" != "none required" ; then | 
|  | 19839 | LIBADD_DLOPEN="-ldl" | 
|  | 19840 | fi | 
|  | 19841 | libltdl_cv_lib_dl_dlopen="yes" | 
|  | 19842 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
|  | 19843 | else | 
|  | 19844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 19845 | /* end confdefs.h.  */ | 
|  | 19846 | #if HAVE_DLFCN_H | 
|  | 19847 | #  include <dlfcn.h> | 
|  | 19848 | #endif | 
|  | 19849 |  | 
|  | 19850 | int | 
|  | 19851 | main () | 
|  | 19852 | { | 
|  | 19853 | dlopen(0, 0); | 
|  | 19854 | ; | 
|  | 19855 | return 0; | 
|  | 19856 | } | 
|  | 19857 | _ACEOF | 
|  | 19858 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 19859 |  | 
|  | 19860 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
|  | 19861 |  | 
|  | 19862 | libltdl_cv_func_dlopen="yes" | 
|  | 19863 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
|  | 19864 | else | 
|  | 19865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | 
|  | 19866 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19867 | if ${ac_cv_lib_svld_dlopen+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19868 | $as_echo_n "(cached) " >&6 | 
|  | 19869 | else | 
|  | 19870 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19871 | LIBS="-lsvld  $LIBS" | 
|  | 19872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 19873 | /* end confdefs.h.  */ | 
|  | 19874 |  | 
|  | 19875 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19876 | Use char because int might match the return type of a GCC | 
|  | 19877 | builtin and then its argument prototype would still apply.  */ | 
|  | 19878 | #ifdef __cplusplus | 
|  | 19879 | extern "C" | 
|  | 19880 | #endif | 
|  | 19881 | char dlopen (); | 
|  | 19882 | int | 
|  | 19883 | main () | 
|  | 19884 | { | 
|  | 19885 | return dlopen (); | 
|  | 19886 | ; | 
|  | 19887 | return 0; | 
|  | 19888 | } | 
|  | 19889 | _ACEOF | 
|  | 19890 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 19891 | ac_cv_lib_svld_dlopen=yes | 
|  | 19892 | else | 
|  | 19893 | ac_cv_lib_svld_dlopen=no | 
|  | 19894 | fi | 
|  | 19895 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19896 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19897 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19898 | fi | 
|  | 19899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | 
|  | 19900 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19901 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19902 |  | 
|  | 19903 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | 
|  | 19904 |  | 
|  | 19905 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | 
|  | 19906 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | 
|  | 19907 | fi | 
|  | 19908 |  | 
|  | 19909 | fi | 
|  | 19910 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19911 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19912 | fi | 
|  | 19913 |  | 
|  | 19914 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | 
|  | 19915 | then | 
|  | 19916 | lt_save_LIBS="$LIBS" | 
|  | 19917 | LIBS="$LIBS $LIBADD_DLOPEN" | 
|  | 19918 | for ac_func in dlerror | 
|  | 19919 | do : | 
|  | 19920 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19921 | if test "x$ac_cv_func_dlerror" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19922 | cat >>confdefs.h <<_ACEOF | 
|  | 19923 | #define HAVE_DLERROR 1 | 
|  | 19924 | _ACEOF | 
|  | 19925 |  | 
|  | 19926 | fi | 
|  | 19927 | done | 
|  | 19928 |  | 
|  | 19929 | LIBS="$lt_save_LIBS" | 
|  | 19930 | fi | 
|  | 19931 |  | 
|  | 19932 |  | 
|  | 19933 | LIBADD_SHL_LOAD= | 
|  | 19934 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19935 | if test "x$ac_cv_func_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19936 |  | 
|  | 19937 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | 
|  | 19938 |  | 
|  | 19939 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | 
|  | 19940 | else | 
|  | 19941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | 
|  | 19942 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19943 | if ${ac_cv_lib_dld_shl_load+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19944 | $as_echo_n "(cached) " >&6 | 
|  | 19945 | else | 
|  | 19946 | ac_check_lib_save_LIBS=$LIBS | 
|  | 19947 | LIBS="-ldld  $LIBS" | 
|  | 19948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 19949 | /* end confdefs.h.  */ | 
|  | 19950 |  | 
|  | 19951 | /* Override any GCC internal prototype to avoid an error. | 
|  | 19952 | Use char because int might match the return type of a GCC | 
|  | 19953 | builtin and then its argument prototype would still apply.  */ | 
|  | 19954 | #ifdef __cplusplus | 
|  | 19955 | extern "C" | 
|  | 19956 | #endif | 
|  | 19957 | char shl_load (); | 
|  | 19958 | int | 
|  | 19959 | main () | 
|  | 19960 | { | 
|  | 19961 | return shl_load (); | 
|  | 19962 | ; | 
|  | 19963 | return 0; | 
|  | 19964 | } | 
|  | 19965 | _ACEOF | 
|  | 19966 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 19967 | ac_cv_lib_dld_shl_load=yes | 
|  | 19968 | else | 
|  | 19969 | ac_cv_lib_dld_shl_load=no | 
|  | 19970 | fi | 
|  | 19971 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 19972 | conftest$ac_exeext conftest.$ac_ext | 
|  | 19973 | LIBS=$ac_check_lib_save_LIBS | 
|  | 19974 | fi | 
|  | 19975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | 
|  | 19976 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19977 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19978 |  | 
|  | 19979 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | 
|  | 19980 |  | 
|  | 19981 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | 
|  | 19982 | LIBADD_SHL_LOAD="-ldld" | 
|  | 19983 | fi | 
|  | 19984 |  | 
|  | 19985 | fi | 
|  | 19986 |  | 
|  | 19987 |  | 
|  | 19988 |  | 
|  | 19989 | case $host_os in | 
|  | 19990 | darwin[1567].*) | 
|  | 19991 | # We only want this for pre-Mac OS X 10.4. | 
|  | 19992 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19993 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19994 |  | 
|  | 19995 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | 
|  | 19996 |  | 
|  | 19997 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | 
|  | 19998 | fi | 
|  | 19999 |  | 
|  | 20000 | ;; | 
|  | 20001 | beos*) | 
|  | 20002 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | 
|  | 20003 | ;; | 
|  | 20004 | cygwin* | mingw* | os2* | pw32*) | 
|  | 20005 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | 
|  | 20006 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20007 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20008 | ac_have_decl=1 | 
|  | 20009 | else | 
|  | 20010 | ac_have_decl=0 | 
|  | 20011 | fi | 
|  | 20012 |  | 
|  | 20013 | cat >>confdefs.h <<_ACEOF | 
|  | 20014 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | 
|  | 20015 | _ACEOF | 
|  | 20016 |  | 
|  | 20017 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | 
|  | 20018 | ;; | 
|  | 20019 | esac | 
|  | 20020 |  | 
|  | 20021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | 
|  | 20022 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20023 | if ${ac_cv_lib_dld_dld_link+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20024 | $as_echo_n "(cached) " >&6 | 
|  | 20025 | else | 
|  | 20026 | ac_check_lib_save_LIBS=$LIBS | 
|  | 20027 | LIBS="-ldld  $LIBS" | 
|  | 20028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 20029 | /* end confdefs.h.  */ | 
|  | 20030 |  | 
|  | 20031 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20032 | Use char because int might match the return type of a GCC | 
|  | 20033 | builtin and then its argument prototype would still apply.  */ | 
|  | 20034 | #ifdef __cplusplus | 
|  | 20035 | extern "C" | 
|  | 20036 | #endif | 
|  | 20037 | char dld_link (); | 
|  | 20038 | int | 
|  | 20039 | main () | 
|  | 20040 | { | 
|  | 20041 | return dld_link (); | 
|  | 20042 | ; | 
|  | 20043 | return 0; | 
|  | 20044 | } | 
|  | 20045 | _ACEOF | 
|  | 20046 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 20047 | ac_cv_lib_dld_dld_link=yes | 
|  | 20048 | else | 
|  | 20049 | ac_cv_lib_dld_dld_link=no | 
|  | 20050 | fi | 
|  | 20051 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20052 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20053 | LIBS=$ac_check_lib_save_LIBS | 
|  | 20054 | fi | 
|  | 20055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | 
|  | 20056 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20057 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20058 |  | 
|  | 20059 | $as_echo "#define HAVE_DLD 1" >>confdefs.h | 
|  | 20060 |  | 
|  | 20061 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | 
|  | 20062 | fi | 
|  | 20063 |  | 
|  | 20064 |  | 
|  | 20065 |  | 
|  | 20066 |  | 
|  | 20067 | LT_DLPREOPEN= | 
|  | 20068 | if test -n "$LT_DLLOADERS" | 
|  | 20069 | then | 
|  | 20070 | for lt_loader in $LT_DLLOADERS; do | 
|  | 20071 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | 
|  | 20072 | done | 
|  | 20073 |  | 
|  | 20074 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h | 
|  | 20075 |  | 
|  | 20076 | fi | 
|  | 20077 |  | 
|  | 20078 |  | 
|  | 20079 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | 
|  | 20080 |  | 
|  | 20081 |  | 
|  | 20082 | ac_ext=c | 
|  | 20083 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 20084 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 20085 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 20086 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 20087 |  | 
|  | 20088 |  | 
|  | 20089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 | 
|  | 20090 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20091 | if ${lt_cv_sys_symbol_underscore+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20092 | $as_echo_n "(cached) " >&6 | 
|  | 20093 | else | 
|  | 20094 | lt_cv_sys_symbol_underscore=no | 
|  | 20095 | cat > conftest.$ac_ext <<_LT_EOF | 
|  | 20096 | void nm_test_func(){} | 
|  | 20097 | int main(){nm_test_func;return 0;} | 
|  | 20098 | _LT_EOF | 
|  | 20099 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | 
|  | 20100 | (eval $ac_compile) 2>&5 | 
|  | 20101 | ac_status=$? | 
|  | 20102 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 20103 | test $ac_status = 0; }; then | 
|  | 20104 | # Now try to grab the symbols. | 
|  | 20105 | ac_nlist=conftest.nm | 
|  | 20106 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | 
|  | 20107 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | 
|  | 20108 | ac_status=$? | 
|  | 20109 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 20110 | test $ac_status = 0; } && test -s "$ac_nlist"; then | 
|  | 20111 | # See whether the symbols have a leading underscore. | 
|  | 20112 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | 
|  | 20113 | lt_cv_sys_symbol_underscore=yes | 
|  | 20114 | else | 
|  | 20115 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | 
|  | 20116 | : | 
|  | 20117 | else | 
|  | 20118 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | 
|  | 20119 | fi | 
|  | 20120 | fi | 
|  | 20121 | else | 
|  | 20122 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | 
|  | 20123 | fi | 
|  | 20124 | else | 
|  | 20125 | echo "configure: failed program was:" >&5 | 
|  | 20126 | cat conftest.c >&5 | 
|  | 20127 | fi | 
|  | 20128 | rm -rf conftest* | 
|  | 20129 |  | 
|  | 20130 | fi | 
|  | 20131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 | 
|  | 20132 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | 
|  | 20133 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | 
|  | 20134 |  | 
|  | 20135 |  | 
|  | 20136 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then | 
|  | 20137 | if test x"$libltdl_cv_func_dlopen" = xyes || | 
|  | 20138 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | 
|  | 20139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | 
|  | 20140 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20141 | if ${libltdl_cv_need_uscore+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20142 | $as_echo_n "(cached) " >&6 | 
|  | 20143 | else | 
|  | 20144 | libltdl_cv_need_uscore=unknown | 
|  | 20145 | save_LIBS="$LIBS" | 
|  | 20146 | LIBS="$LIBS $LIBADD_DLOPEN" | 
|  | 20147 | if test "$cross_compiling" = yes; then : | 
|  | 20148 | libltdl_cv_need_uscore=cross | 
|  | 20149 | else | 
|  | 20150 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 
|  | 20151 | lt_status=$lt_dlunknown | 
|  | 20152 | cat > conftest.$ac_ext <<_LT_EOF | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20153 | #line $LINENO "configure" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20154 | #include "confdefs.h" | 
|  | 20155 |  | 
|  | 20156 | #if HAVE_DLFCN_H | 
|  | 20157 | #include <dlfcn.h> | 
|  | 20158 | #endif | 
|  | 20159 |  | 
|  | 20160 | #include <stdio.h> | 
|  | 20161 |  | 
|  | 20162 | #ifdef RTLD_GLOBAL | 
|  | 20163 | #  define LT_DLGLOBAL		RTLD_GLOBAL | 
|  | 20164 | #else | 
|  | 20165 | #  ifdef DL_GLOBAL | 
|  | 20166 | #    define LT_DLGLOBAL		DL_GLOBAL | 
|  | 20167 | #  else | 
|  | 20168 | #    define LT_DLGLOBAL		0 | 
|  | 20169 | #  endif | 
|  | 20170 | #endif | 
|  | 20171 |  | 
|  | 20172 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | 
|  | 20173 | find out it does not work in some platform. */ | 
|  | 20174 | #ifndef LT_DLLAZY_OR_NOW | 
|  | 20175 | #  ifdef RTLD_LAZY | 
|  | 20176 | #    define LT_DLLAZY_OR_NOW		RTLD_LAZY | 
|  | 20177 | #  else | 
|  | 20178 | #    ifdef DL_LAZY | 
|  | 20179 | #      define LT_DLLAZY_OR_NOW		DL_LAZY | 
|  | 20180 | #    else | 
|  | 20181 | #      ifdef RTLD_NOW | 
|  | 20182 | #        define LT_DLLAZY_OR_NOW	RTLD_NOW | 
|  | 20183 | #      else | 
|  | 20184 | #        ifdef DL_NOW | 
|  | 20185 | #          define LT_DLLAZY_OR_NOW	DL_NOW | 
|  | 20186 | #        else | 
|  | 20187 | #          define LT_DLLAZY_OR_NOW	0 | 
|  | 20188 | #        endif | 
|  | 20189 | #      endif | 
|  | 20190 | #    endif | 
|  | 20191 | #  endif | 
|  | 20192 | #endif | 
|  | 20193 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20194 | /* When -fvisbility=hidden is used, assume the code has been annotated | 
|  | 20195 | correspondingly for the symbols needed.  */ | 
|  | 20196 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20197 | int fnord () __attribute__((visibility("default"))); | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20198 | #endif | 
|  | 20199 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20200 | int fnord () { return 42; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20201 | int main () | 
|  | 20202 | { | 
|  | 20203 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | 
|  | 20204 | int status = $lt_dlunknown; | 
|  | 20205 |  | 
|  | 20206 | if (self) | 
|  | 20207 | { | 
|  | 20208 | if (dlsym (self,"fnord"))       status = $lt_dlno_uscore; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20209 | else | 
|  | 20210 | { | 
|  | 20211 | if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore; | 
|  | 20212 | else puts (dlerror ()); | 
|  | 20213 | } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20214 | /* dlclose (self); */ | 
|  | 20215 | } | 
|  | 20216 | else | 
|  | 20217 | puts (dlerror ()); | 
|  | 20218 |  | 
|  | 20219 | return status; | 
|  | 20220 | } | 
|  | 20221 | _LT_EOF | 
|  | 20222 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | 
|  | 20223 | (eval $ac_link) 2>&5 | 
|  | 20224 | ac_status=$? | 
|  | 20225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 20226 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | 
|  | 20227 | (./conftest; exit; ) >&5 2>/dev/null | 
|  | 20228 | lt_status=$? | 
|  | 20229 | case x$lt_status in | 
|  | 20230 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 
|  | 20231 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 
|  | 20232 | x$lt_dlunknown|x*)  ;; | 
|  | 20233 | esac | 
|  | 20234 | else : | 
|  | 20235 | # compilation failed | 
|  | 20236 |  | 
|  | 20237 | fi | 
|  | 20238 | fi | 
|  | 20239 | rm -fr conftest* | 
|  | 20240 |  | 
|  | 20241 | LIBS="$save_LIBS" | 
|  | 20242 |  | 
|  | 20243 | fi | 
|  | 20244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | 
|  | 20245 | $as_echo "$libltdl_cv_need_uscore" >&6; } | 
|  | 20246 | fi | 
|  | 20247 | fi | 
|  | 20248 |  | 
|  | 20249 | if test x"$libltdl_cv_need_uscore" = xyes; then | 
|  | 20250 |  | 
|  | 20251 | $as_echo "#define NEED_USCORE 1" >>confdefs.h | 
|  | 20252 |  | 
|  | 20253 | fi | 
|  | 20254 |  | 
|  | 20255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 | 
|  | 20256 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20257 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20258 | $as_echo_n "(cached) " >&6 | 
|  | 20259 | else | 
|  | 20260 | # PORTME does your system automatically load deplibs for dlopen? | 
|  | 20261 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | 
|  | 20262 | # For now, we just catch OSes we know something about -- in the | 
|  | 20263 | # future, we'll try test this programmatically. | 
|  | 20264 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 20265 | case $host_os in | 
|  | 20266 | aix3*|aix4.1.*|aix4.2.*) | 
|  | 20267 | # Unknown whether this is true for these versions of AIX, but | 
|  | 20268 | # we want this `case' here to explicitly catch those versions. | 
|  | 20269 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 20270 | ;; | 
|  | 20271 | aix[4-9]*) | 
|  | 20272 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20273 | ;; | 
|  | 20274 | amigaos*) | 
|  | 20275 | case $host_cpu in | 
|  | 20276 | powerpc) | 
|  | 20277 | lt_cv_sys_dlopen_deplibs=no | 
|  | 20278 | ;; | 
|  | 20279 | esac | 
|  | 20280 | ;; | 
|  | 20281 | darwin*) | 
|  | 20282 | # Assuming the user has installed a libdl from somewhere, this is true | 
|  | 20283 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | 
|  | 20284 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20285 | ;; | 
|  | 20286 | freebsd* | dragonfly*) | 
|  | 20287 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20288 | ;; | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20289 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20290 | # GNU and its variants, using gnu ld.so (Glibc) | 
|  | 20291 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20292 | ;; | 
|  | 20293 | hpux10*|hpux11*) | 
|  | 20294 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20295 | ;; | 
|  | 20296 | interix*) | 
|  | 20297 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20298 | ;; | 
|  | 20299 | irix[12345]*|irix6.[01]*) | 
|  | 20300 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 
|  | 20301 | # know how it worked for any of those versions. | 
|  | 20302 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 20303 | ;; | 
|  | 20304 | irix*) | 
|  | 20305 | # The case above catches anything before 6.2, and it's known that | 
|  | 20306 | # at 6.2 and later dlopen does load deplibs. | 
|  | 20307 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20308 | ;; | 
|  | 20309 | netbsd*) | 
|  | 20310 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20311 | ;; | 
|  | 20312 | openbsd*) | 
|  | 20313 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20314 | ;; | 
|  | 20315 | osf[1234]*) | 
|  | 20316 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | 
|  | 20317 | # it did *not* use an RPATH in a shared library to find objects the | 
|  | 20318 | # library depends on, so we explicitly say `no'. | 
|  | 20319 | lt_cv_sys_dlopen_deplibs=no | 
|  | 20320 | ;; | 
|  | 20321 | osf5.0|osf5.0a|osf5.1) | 
|  | 20322 | # dlopen *does* load deplibs and with the right loader patch applied | 
|  | 20323 | # it even uses RPATH in a shared library to search for shared objects | 
|  | 20324 | # that the library depends on, but there's no easy way to know if that | 
|  | 20325 | # patch is installed.  Since this is the case, all we can really | 
|  | 20326 | # say is unknown -- it depends on the patch being installed.  If | 
|  | 20327 | # it is, this changes to `yes'.  Without it, it would be `no'. | 
|  | 20328 | lt_cv_sys_dlopen_deplibs=unknown | 
|  | 20329 | ;; | 
|  | 20330 | osf*) | 
|  | 20331 | # the two cases above should catch all versions of osf <= 5.1.  Read | 
|  | 20332 | # the comments above for what we know about them. | 
|  | 20333 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | 
|  | 20334 | # is used to find them so we can finally say `yes'. | 
|  | 20335 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20336 | ;; | 
|  | 20337 | qnx*) | 
|  | 20338 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20339 | ;; | 
|  | 20340 | solaris*) | 
|  | 20341 | lt_cv_sys_dlopen_deplibs=yes | 
|  | 20342 | ;; | 
|  | 20343 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | 
|  | 20344 | libltdl_cv_sys_dlopen_deplibs=yes | 
|  | 20345 | ;; | 
|  | 20346 | esac | 
|  | 20347 |  | 
|  | 20348 | fi | 
|  | 20349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | 
|  | 20350 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | 
|  | 20351 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | 
|  | 20352 |  | 
|  | 20353 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h | 
|  | 20354 |  | 
|  | 20355 | fi | 
|  | 20356 |  | 
|  | 20357 | : | 
|  | 20358 |  | 
|  | 20359 | for ac_header in argz.h | 
|  | 20360 | do : | 
|  | 20361 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | 
|  | 20362 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20363 | if test "x$ac_cv_header_argz_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20364 | cat >>confdefs.h <<_ACEOF | 
|  | 20365 | #define HAVE_ARGZ_H 1 | 
|  | 20366 | _ACEOF | 
|  | 20367 |  | 
|  | 20368 | fi | 
|  | 20369 |  | 
|  | 20370 | done | 
|  | 20371 |  | 
|  | 20372 |  | 
|  | 20373 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) | 
|  | 20374 | #  include <argz.h> | 
|  | 20375 | #endif | 
|  | 20376 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20377 | if test "x$ac_cv_type_error_t" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20378 |  | 
|  | 20379 | cat >>confdefs.h <<_ACEOF | 
|  | 20380 | #define HAVE_ERROR_T 1 | 
|  | 20381 | _ACEOF | 
|  | 20382 |  | 
|  | 20383 |  | 
|  | 20384 | else | 
|  | 20385 |  | 
|  | 20386 | $as_echo "#define error_t int" >>confdefs.h | 
|  | 20387 |  | 
|  | 20388 |  | 
|  | 20389 | $as_echo "#define __error_t_defined 1" >>confdefs.h | 
|  | 20390 |  | 
|  | 20391 | fi | 
|  | 20392 |  | 
|  | 20393 |  | 
|  | 20394 | ARGZ_H= | 
|  | 20395 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | 
|  | 20396 | argz_next argz_stringify | 
|  | 20397 | do : | 
|  | 20398 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20399 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20400 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20401 | cat >>confdefs.h <<_ACEOF | 
|  | 20402 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 20403 | _ACEOF | 
|  | 20404 |  | 
|  | 20405 | else | 
|  | 20406 | ARGZ_H=argz.h; | 
|  | 20407 |  | 
|  | 20408 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | 
|  | 20409 |  | 
|  | 20410 | fi | 
|  | 20411 | done | 
|  | 20412 |  | 
|  | 20413 |  | 
|  | 20414 | if test -z "$ARGZ_H"; then : | 
|  | 20415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | 
|  | 20416 | $as_echo_n "checking if argz actually works... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20417 | if ${lt_cv_sys_argz_works+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20418 | $as_echo_n "(cached) " >&6 | 
|  | 20419 | else | 
|  | 20420 | case $host_os in #( | 
|  | 20421 | *cygwin*) | 
|  | 20422 | lt_cv_sys_argz_works=no | 
|  | 20423 | if test "$cross_compiling" != no; then | 
|  | 20424 | lt_cv_sys_argz_works="guessing no" | 
|  | 20425 | else | 
|  | 20426 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | 
|  | 20427 | save_IFS=$IFS | 
|  | 20428 | IFS=-. | 
|  | 20429 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | 
|  | 20430 | IFS=$save_IFS | 
|  | 20431 | lt_os_major=${2-0} | 
|  | 20432 | lt_os_minor=${3-0} | 
|  | 20433 | lt_os_micro=${4-0} | 
|  | 20434 | if test "$lt_os_major" -gt 1 \ | 
|  | 20435 | || { test "$lt_os_major" -eq 1 \ | 
|  | 20436 | && { test "$lt_os_minor" -gt 5 \ | 
|  | 20437 | || { test "$lt_os_minor" -eq 5 \ | 
|  | 20438 | && test "$lt_os_micro" -gt 24; }; }; }; then | 
|  | 20439 | lt_cv_sys_argz_works=yes | 
|  | 20440 | fi | 
|  | 20441 | fi | 
|  | 20442 | ;; #( | 
|  | 20443 | *) lt_cv_sys_argz_works=yes ;; | 
|  | 20444 | esac | 
|  | 20445 | fi | 
|  | 20446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | 
|  | 20447 | $as_echo "$lt_cv_sys_argz_works" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20448 | if test "$lt_cv_sys_argz_works" = yes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20449 |  | 
|  | 20450 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h | 
|  | 20451 |  | 
|  | 20452 | else | 
|  | 20453 | ARGZ_H=argz.h | 
|  | 20454 |  | 
|  | 20455 |  | 
|  | 20456 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | 
|  | 20457 |  | 
|  | 20458 | fi | 
|  | 20459 | fi | 
|  | 20460 |  | 
|  | 20461 |  | 
|  | 20462 |  | 
|  | 20463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 | 
|  | 20464 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20465 | if ${libltdl_cv_preloaded_symbols+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20466 | $as_echo_n "(cached) " >&6 | 
|  | 20467 | else | 
|  | 20468 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | 
|  | 20469 | libltdl_cv_preloaded_symbols=yes | 
|  | 20470 | else | 
|  | 20471 | libltdl_cv_preloaded_symbols=no | 
|  | 20472 | fi | 
|  | 20473 |  | 
|  | 20474 | fi | 
|  | 20475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | 
|  | 20476 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | 
|  | 20477 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | 
|  | 20478 |  | 
|  | 20479 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | 
|  | 20480 |  | 
|  | 20481 | fi | 
|  | 20482 |  | 
|  | 20483 | # Set options | 
|  | 20484 |  | 
|  | 20485 |  | 
|  | 20486 |  | 
|  | 20487 |  | 
|  | 20488 |  | 
|  | 20489 |  | 
|  | 20490 |  | 
|  | 20491 |  | 
|  | 20492 |  | 
|  | 20493 |  | 
|  | 20494 |  | 
|  | 20495 | # Check whether --with-included_ltdl was given. | 
|  | 20496 | if test "${with_included_ltdl+set}" = set; then : | 
|  | 20497 | withval=$with_included_ltdl; | 
|  | 20498 | fi | 
|  | 20499 |  | 
|  | 20500 |  | 
|  | 20501 | if test "x$with_included_ltdl" != xyes; then | 
|  | 20502 | # We are not being forced to use the included libltdl sources, so | 
|  | 20503 | # decide whether there is a useful installed version we can use. | 
|  | 20504 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | 
|  | 20505 |  | 
|  | 20506 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20507 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20508 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | 
|  | 20509 | #include <ltdl.h> | 
|  | 20510 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20511 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | 
|  | 20513 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20514 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20515 | $as_echo_n "(cached) " >&6 | 
|  | 20516 | else | 
|  | 20517 | ac_check_lib_save_LIBS=$LIBS | 
|  | 20518 | LIBS="-lltdl  $LIBS" | 
|  | 20519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 20520 | /* end confdefs.h.  */ | 
|  | 20521 |  | 
|  | 20522 | /* Override any GCC internal prototype to avoid an error. | 
|  | 20523 | Use char because int might match the return type of a GCC | 
|  | 20524 | builtin and then its argument prototype would still apply.  */ | 
|  | 20525 | #ifdef __cplusplus | 
|  | 20526 | extern "C" | 
|  | 20527 | #endif | 
|  | 20528 | char lt_dladvise_preload (); | 
|  | 20529 | int | 
|  | 20530 | main () | 
|  | 20531 | { | 
|  | 20532 | return lt_dladvise_preload (); | 
|  | 20533 | ; | 
|  | 20534 | return 0; | 
|  | 20535 | } | 
|  | 20536 | _ACEOF | 
|  | 20537 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 20538 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | 
|  | 20539 | else | 
|  | 20540 | ac_cv_lib_ltdl_lt_dladvise_preload=no | 
|  | 20541 | fi | 
|  | 20542 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 20543 | conftest$ac_exeext conftest.$ac_ext | 
|  | 20544 | LIBS=$ac_check_lib_save_LIBS | 
|  | 20545 | fi | 
|  | 20546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 | 
|  | 20547 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20548 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20549 | with_included_ltdl=no | 
|  | 20550 | else | 
|  | 20551 | with_included_ltdl=yes | 
|  | 20552 | fi | 
|  | 20553 |  | 
|  | 20554 | else | 
|  | 20555 | with_included_ltdl=yes | 
|  | 20556 | fi | 
|  | 20557 |  | 
|  | 20558 | else | 
|  | 20559 | with_included_ltdl=yes | 
|  | 20560 | fi | 
|  | 20561 |  | 
|  | 20562 |  | 
|  | 20563 | fi | 
|  | 20564 |  | 
|  | 20565 |  | 
|  | 20566 |  | 
|  | 20567 |  | 
|  | 20568 | # Check whether --with-ltdl_include was given. | 
|  | 20569 | if test "${with_ltdl_include+set}" = set; then : | 
|  | 20570 | withval=$with_ltdl_include; | 
|  | 20571 | fi | 
|  | 20572 |  | 
|  | 20573 |  | 
|  | 20574 | if test -n "$with_ltdl_include"; then | 
|  | 20575 | if test -f "$with_ltdl_include/ltdl.h"; then : | 
|  | 20576 | else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20577 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20578 | fi | 
|  | 20579 | else | 
|  | 20580 | with_ltdl_include=no | 
|  | 20581 | fi | 
|  | 20582 |  | 
|  | 20583 |  | 
|  | 20584 | # Check whether --with-ltdl_lib was given. | 
|  | 20585 | if test "${with_ltdl_lib+set}" = set; then : | 
|  | 20586 | withval=$with_ltdl_lib; | 
|  | 20587 | fi | 
|  | 20588 |  | 
|  | 20589 |  | 
|  | 20590 | if test -n "$with_ltdl_lib"; then | 
|  | 20591 | if test -f "$with_ltdl_lib/libltdl.la"; then : | 
|  | 20592 | else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20593 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20594 | fi | 
|  | 20595 | else | 
|  | 20596 | with_ltdl_lib=no | 
|  | 20597 | fi | 
|  | 20598 |  | 
|  | 20599 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | 
|  | 20600 | ,yes,no,no,) | 
|  | 20601 | case $enable_ltdl_convenience in | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20602 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20603 | "") enable_ltdl_convenience=yes | 
|  | 20604 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | 
|  | 20605 | esac | 
|  | 20606 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | 
|  | 20607 | LTDLDEPS=$LIBLTDL | 
|  | 20608 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | 
|  | 20609 |  | 
|  | 20610 |  | 
|  | 20611 |  | 
|  | 20612 |  | 
|  | 20613 |  | 
|  | 20614 | # For backwards non-gettext consistent compatibility... | 
|  | 20615 | INCLTDL="$LTDLINCL" | 
|  | 20616 |  | 
|  | 20617 |  | 
|  | 20618 | ;; | 
|  | 20619 | ,no,no,no,) | 
|  | 20620 | # If the included ltdl is not to be used, then use the | 
|  | 20621 | # preinstalled libltdl we found. | 
|  | 20622 |  | 
|  | 20623 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | 
|  | 20624 |  | 
|  | 20625 | LIBLTDL=-lltdl | 
|  | 20626 | LTDLDEPS= | 
|  | 20627 | LTDLINCL= | 
|  | 20628 | ;; | 
|  | 20629 | ,no*,no,*) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20630 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20631 | ;; | 
|  | 20632 | *)	with_included_ltdl=no | 
|  | 20633 | LIBLTDL="-L$with_ltdl_lib -lltdl" | 
|  | 20634 | LTDLDEPS= | 
|  | 20635 | LTDLINCL="-I$with_ltdl_include" | 
|  | 20636 | ;; | 
|  | 20637 | esac | 
|  | 20638 | INCLTDL="$LTDLINCL" | 
|  | 20639 |  | 
|  | 20640 | # Report our decision... | 
|  | 20641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | 
|  | 20642 | $as_echo_n "checking where to find libltdl headers... " >&6; } | 
|  | 20643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | 
|  | 20644 | $as_echo "$LTDLINCL" >&6; } | 
|  | 20645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | 
|  | 20646 | $as_echo_n "checking where to find libltdl library... " >&6; } | 
|  | 20647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | 
|  | 20648 | $as_echo "$LIBLTDL" >&6; } | 
|  | 20649 |  | 
|  | 20650 |  | 
|  | 20651 |  | 
|  | 20652 | # Check whether --enable-ltdl-install was given. | 
|  | 20653 | if test "${enable_ltdl_install+set}" = set; then : | 
|  | 20654 | enableval=$enable_ltdl_install; | 
|  | 20655 | fi | 
|  | 20656 |  | 
|  | 20657 |  | 
|  | 20658 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | 
|  | 20659 | *yes*) ;; | 
|  | 20660 | *) enable_ltdl_convenience=yes ;; | 
|  | 20661 | esac | 
|  | 20662 |  | 
|  | 20663 | if test x"${enable_ltdl_install-no}" != xno; then | 
|  | 20664 | INSTALL_LTDL_TRUE= | 
|  | 20665 | INSTALL_LTDL_FALSE='#' | 
|  | 20666 | else | 
|  | 20667 | INSTALL_LTDL_TRUE='#' | 
|  | 20668 | INSTALL_LTDL_FALSE= | 
|  | 20669 | fi | 
|  | 20670 |  | 
|  | 20671 | if test x"${enable_ltdl_convenience-no}" != xno; then | 
|  | 20672 | CONVENIENCE_LTDL_TRUE= | 
|  | 20673 | CONVENIENCE_LTDL_FALSE='#' | 
|  | 20674 | else | 
|  | 20675 | CONVENIENCE_LTDL_TRUE='#' | 
|  | 20676 | CONVENIENCE_LTDL_FALSE= | 
|  | 20677 | fi | 
|  | 20678 |  | 
|  | 20679 |  | 
|  | 20680 |  | 
|  | 20681 |  | 
|  | 20682 |  | 
|  | 20683 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20684 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | 
|  | 20685 | # the user used.  This is so that ltdl.h can pick up the parent projects | 
|  | 20686 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | 
|  | 20687 | # definitions required by ltdl.c. | 
|  | 20688 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | 
|  | 20689 |  | 
|  | 20690 |  | 
|  | 20691 |  | 
|  | 20692 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h | 
|  | 20693 | do : | 
|  | 20694 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 20695 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 20696 | " | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20697 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20698 | cat >>confdefs.h <<_ACEOF | 
|  | 20699 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 20700 | _ACEOF | 
|  | 20701 |  | 
|  | 20702 | fi | 
|  | 20703 |  | 
|  | 20704 | done | 
|  | 20705 |  | 
|  | 20706 |  | 
|  | 20707 | for ac_func in closedir opendir readdir | 
|  | 20708 | do : | 
|  | 20709 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20710 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20711 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20712 | cat >>confdefs.h <<_ACEOF | 
|  | 20713 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 20714 | _ACEOF | 
|  | 20715 |  | 
|  | 20716 | else | 
|  | 20717 |  | 
|  | 20718 |  | 
|  | 20719 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | 
|  | 20720 |  | 
|  | 20721 | fi | 
|  | 20722 | done | 
|  | 20723 |  | 
|  | 20724 | for ac_func in strlcat strlcpy | 
|  | 20725 | do : | 
|  | 20726 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 20727 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 20728 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20729 | cat >>confdefs.h <<_ACEOF | 
|  | 20730 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 20731 | _ACEOF | 
|  | 20732 |  | 
|  | 20733 | else | 
|  | 20734 |  | 
|  | 20735 |  | 
|  | 20736 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | 
|  | 20737 |  | 
|  | 20738 | fi | 
|  | 20739 | done | 
|  | 20740 |  | 
|  | 20741 |  | 
|  | 20742 |  | 
|  | 20743 | cat >>confdefs.h <<_ACEOF | 
|  | 20744 | #define LT_LIBEXT "$libext" | 
|  | 20745 | _ACEOF | 
|  | 20746 |  | 
|  | 20747 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20748 | name= | 
|  | 20749 | eval "lt_libprefix=\"$libname_spec\"" | 
|  | 20750 |  | 
|  | 20751 | cat >>confdefs.h <<_ACEOF | 
|  | 20752 | #define LT_LIBPREFIX "$lt_libprefix" | 
|  | 20753 | _ACEOF | 
|  | 20754 |  | 
|  | 20755 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20756 | name=ltdl | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20757 | eval "LTDLOPEN=\"$libname_spec\"" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20758 |  | 
|  | 20759 |  | 
|  | 20760 |  | 
|  | 20761 |  | 
|  | 20762 |  | 
|  | 20763 |  | 
|  | 20764 |  | 
|  | 20765 |  | 
|  | 20766 | # Only expand once: | 
|  | 20767 |  | 
|  | 20768 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20769 |  | 
|  | 20770 | # Check to see if building shared libraries | 
|  | 20771 | libtool_build_shared_libs='no' | 
|  | 20772 | if test "$enable_shared" = 'yes'; then | 
|  | 20773 | libtool_build_shared_libs='yes' | 
|  | 20774 | fi | 
|  | 20775 |  | 
|  | 20776 | # Check to see if building static libraries | 
|  | 20777 | libtool_build_static_libs='no' | 
|  | 20778 | if test "$enable_static" = 'yes'; then | 
|  | 20779 | libtool_build_static_libs='yes' | 
|  | 20780 | fi | 
|  | 20781 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20782 | if test "${libtool_build_shared_libs}" = 'yes'; then | 
|  | 20783 | WITH_SHARED_LIBS_TRUE= | 
|  | 20784 | WITH_SHARED_LIBS_FALSE='#' | 
|  | 20785 | else | 
|  | 20786 | WITH_SHARED_LIBS_TRUE='#' | 
|  | 20787 | WITH_SHARED_LIBS_FALSE= | 
|  | 20788 | fi | 
|  | 20789 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20790 | # | 
|  | 20791 | # Enable support for building loadable modules | 
|  | 20792 | # | 
|  | 20793 |  | 
|  | 20794 | # Check whether --with-modules was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20795 | if test "${with_modules+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20796 | withval=$with_modules; with_modules=$withval | 
|  | 20797 | else | 
| cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 20798 | with_modules='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20799 | fi | 
|  | 20800 |  | 
|  | 20801 |  | 
|  | 20802 | # Only allow building loadable modules if we are building shared libraries | 
|  | 20803 | if test "$with_modules" != 'no' ; then | 
|  | 20804 | if test "$libtool_build_shared_libs" = 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20805 | { $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] | 20806 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} | 
|  | 20807 | with_modules='no' | 
|  | 20808 | fi | 
|  | 20809 | fi | 
|  | 20810 | if test "$with_modules" != 'no'; then | 
|  | 20811 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20812 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20813 |  | 
|  | 20814 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20815 | if test "$with_modules" != 'no'; then | 
|  | 20816 | WITH_MODULES_TRUE= | 
|  | 20817 | WITH_MODULES_FALSE='#' | 
|  | 20818 | else | 
|  | 20819 | WITH_MODULES_TRUE='#' | 
|  | 20820 | WITH_MODULES_FALSE= | 
|  | 20821 | fi | 
|  | 20822 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20823 |  | 
|  | 20824 | # Enable building/use of libltdl if we are building shared libraries regardless | 
|  | 20825 | # of whether modules are built or not. | 
|  | 20826 | with_ltdl='no' | 
|  | 20827 | if test "$libtool_build_shared_libs" != 'no'; then | 
|  | 20828 | with_ltdl='yes' | 
|  | 20829 | fi | 
|  | 20830 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20831 | if test "$with_ltdl" != 'no'; then | 
|  | 20832 | WITH_LTDL_TRUE= | 
|  | 20833 | WITH_LTDL_FALSE='#' | 
|  | 20834 | else | 
|  | 20835 | WITH_LTDL_TRUE='#' | 
|  | 20836 | WITH_LTDL_FALSE= | 
|  | 20837 | fi | 
|  | 20838 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20839 | if test "$with_ltdl" != 'no'; then | 
|  | 20840 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20841 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20842 |  | 
|  | 20843 |  | 
|  | 20844 | # Set DLLDFLAGS | 
|  | 20845 | if test X"$enable_shared" = Xyes; then | 
|  | 20846 | DLLDFLAGS=-export-dynamic | 
|  | 20847 |  | 
|  | 20848 | fi | 
|  | 20849 | fi | 
|  | 20850 |  | 
|  | 20851 | # Enable build using delegate libraries built in subdirectories rather than installed | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 20852 | # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20853 | # Check whether --enable-delegate-build was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20854 | if test "${enable_delegate_build+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20855 | enableval=$enable_delegate_build; enable_delegate_build=$enableval | 
|  | 20856 | else | 
|  | 20857 | enable_delegate_build='no' | 
|  | 20858 | fi | 
|  | 20859 |  | 
|  | 20860 |  | 
|  | 20861 | # Check whether --enable-deprecated was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20862 | if test "${enable_deprecated+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20863 | enableval=$enable_deprecated; enable_deprecated=$enableval | 
|  | 20864 | else | 
|  | 20865 | enable_deprecated='no' | 
|  | 20866 | fi | 
|  | 20867 |  | 
|  | 20868 |  | 
|  | 20869 | if test "$enable_deprecated" = 'yes'; then | 
|  | 20870 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20871 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20872 |  | 
|  | 20873 | else | 
|  | 20874 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " | 
|  | 20875 | fi | 
|  | 20876 |  | 
|  | 20877 | # Build a version of ImageMagick which operates uninstalled. | 
|  | 20878 | # Used to build distributions located via MAGICK_HOME / executable path | 
|  | 20879 | # Check whether --enable-installed was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20880 | if test "${enable_installed+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20881 | enableval=$enable_installed; enable_installed=$enableval | 
|  | 20882 | else | 
|  | 20883 | enable_installed='yes' | 
|  | 20884 | fi | 
|  | 20885 |  | 
|  | 20886 |  | 
|  | 20887 | if test "$enable_installed" = 'yes'; then | 
|  | 20888 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20889 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20890 |  | 
|  | 20891 | else | 
|  | 20892 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " | 
|  | 20893 | fi | 
|  | 20894 |  | 
|  | 20895 | # Permit enciphering and deciphering image pixels. | 
|  | 20896 | # Check whether --enable-cipher was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20897 | if test "${enable_cipher+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20898 | enableval=$enable_cipher; enable_cipher=$enableval | 
|  | 20899 | else | 
|  | 20900 | enable_cipher='yes' | 
|  | 20901 | fi | 
|  | 20902 |  | 
|  | 20903 |  | 
|  | 20904 | if test "$enable_cipher" = 'yes'; then | 
|  | 20905 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20906 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20907 |  | 
|  | 20908 | fi | 
|  | 20909 |  | 
|  | 20910 | # Build an embeddable version of ImageMagick. | 
|  | 20911 | # Check whether --enable-embeddable was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20912 | if test "${enable_embeddable+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20913 | enableval=$enable_embeddable; enable_embeddable=$enableval | 
|  | 20914 | else | 
|  | 20915 | enable_embeddable='no' | 
|  | 20916 | fi | 
|  | 20917 |  | 
|  | 20918 |  | 
|  | 20919 | if test "$enable_embeddable" = 'yes'; then | 
|  | 20920 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20921 | $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20922 |  | 
|  | 20923 | fi | 
|  | 20924 |  | 
|  | 20925 | # Build a high dynamic range version of ImageMagick. | 
|  | 20926 | # Check whether --enable-hdri was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20927 | if test "${enable_hdri+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20928 | enableval=$enable_hdri; enable_hdri=$enableval | 
|  | 20929 | else | 
|  | 20930 | enable_hdri='no' | 
|  | 20931 | fi | 
|  | 20932 |  | 
|  | 20933 |  | 
|  | 20934 | MAGICK_HDRI="" | 
|  | 20935 | if test "$enable_hdri" = 'yes'; then | 
|  | 20936 | MAGICK_HDRI="HDRI" | 
|  | 20937 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20938 | $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20939 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 20940 | MAGICK_FEATURES="HDRI $MAGICK_FEATURES" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20941 | fi | 
|  | 20942 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20943 | # Build a version of ImageMagick with assert statements. | 
|  | 20944 | # Check whether --enable-assert was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20945 | if test "${enable_assert+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20946 | enableval=$enable_assert; enable_assert=$enableval | 
|  | 20947 | else | 
|  | 20948 | enable_assert='yes' | 
|  | 20949 | fi | 
|  | 20950 |  | 
|  | 20951 |  | 
|  | 20952 | if test "$enable_assert" = 'no'; then | 
|  | 20953 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20954 | $as_echo "#define NDEBUG 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20955 |  | 
|  | 20956 | fi | 
|  | 20957 |  | 
|  | 20958 | # Add configure option --enable-maintainer-mode which enables dependency | 
|  | 20959 | # checking and generation useful to package maintainers.  This is made an | 
|  | 20960 | # option to avoid confusing end users. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20961 |  | 
|  | 20962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | 
|  | 20963 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | 
|  | 20964 | # Check whether --enable-maintainer-mode was given. | 
|  | 20965 | if test "${enable_maintainer_mode+set}" = set; then : | 
|  | 20966 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | 
|  | 20967 | else | 
|  | 20968 | USE_MAINTAINER_MODE=no | 
|  | 20969 | fi | 
|  | 20970 |  | 
|  | 20971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | 
|  | 20972 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | 
|  | 20973 | if test $USE_MAINTAINER_MODE = yes; then | 
|  | 20974 | MAINTAINER_MODE_TRUE= | 
|  | 20975 | MAINTAINER_MODE_FALSE='#' | 
|  | 20976 | else | 
|  | 20977 | MAINTAINER_MODE_TRUE='#' | 
|  | 20978 | MAINTAINER_MODE_FALSE= | 
|  | 20979 | fi | 
|  | 20980 |  | 
|  | 20981 | MAINT=$MAINTAINER_MODE_TRUE | 
|  | 20982 |  | 
|  | 20983 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20984 |  | 
|  | 20985 |  | 
|  | 20986 | # Enable ccmalloc memory debugging support | 
|  | 20987 | # Check whether --enable-ccmalloc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20988 | if test "${enable_ccmalloc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20989 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval | 
|  | 20990 | else | 
|  | 20991 | enable_ccmalloc='no' | 
|  | 20992 | fi | 
|  | 20993 |  | 
|  | 20994 |  | 
|  | 20995 | # Enable Electric Fence memory debugging support | 
|  | 20996 | # Check whether --enable-efence was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20997 | if test "${enable_efence+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20998 | enableval=$enable_efence; enable_efence=$enableval | 
|  | 20999 | else | 
|  | 21000 | enable_efence='no' | 
|  | 21001 | fi | 
|  | 21002 |  | 
|  | 21003 |  | 
|  | 21004 | # Enable prof-based profiling support | 
|  | 21005 | # Check whether --enable-prof was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21006 | if test "${enable_prof+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21007 | enableval=$enable_prof; enable_prof=$enableval | 
|  | 21008 | else | 
|  | 21009 | enable_prof='no' | 
|  | 21010 | fi | 
|  | 21011 |  | 
|  | 21012 |  | 
|  | 21013 | # Enable gprof-based profiling support | 
|  | 21014 | # Check whether --enable-gprof was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21015 | if test "${enable_gprof+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21016 | enableval=$enable_gprof; enable_gprof=$enableval | 
|  | 21017 | else | 
|  | 21018 | enable_gprof='no' | 
|  | 21019 | fi | 
|  | 21020 |  | 
|  | 21021 |  | 
|  | 21022 | # Enable gcov-based profiling support | 
|  | 21023 | # Check whether --enable-gcov was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21024 | if test "${enable_gcov+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21025 | enableval=$enable_gcov; enable_gcov=$enableval | 
|  | 21026 | else | 
|  | 21027 | enable_gcov='no' | 
|  | 21028 | fi | 
|  | 21029 |  | 
|  | 21030 |  | 
|  | 21031 | enable_profiling='no' | 
|  | 21032 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then | 
|  | 21033 | enable_profiling='yes' | 
|  | 21034 | if test "$libtool_build_shared_libs" = 'yes'; then | 
|  | 21035 | echo "Warning: Can not profile code using shared libraries" | 
|  | 21036 | fi | 
|  | 21037 | fi | 
|  | 21038 |  | 
|  | 21039 | # Magick API method prefix | 
|  | 21040 |  | 
|  | 21041 | # Check whether --with-method-prefix was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21042 | if test "${with_method_prefix+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21043 | withval=$with_method_prefix; with_method_prefix=$enableval | 
|  | 21044 | else | 
|  | 21045 | with_method_prefix='' | 
|  | 21046 | fi | 
|  | 21047 |  | 
|  | 21048 |  | 
|  | 21049 | if test "$with_method_prefix" != ''; then | 
|  | 21050 |  | 
|  | 21051 | cat >>confdefs.h <<_ACEOF | 
|  | 21052 | #define NAMESPACE_PREFIX $with_method_prefix | 
|  | 21053 | _ACEOF | 
|  | 21054 |  | 
|  | 21055 | fi | 
|  | 21056 |  | 
|  | 21057 | # Number of bits in a Quantum | 
|  | 21058 |  | 
|  | 21059 | # Check whether --with-quantum-depth was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21060 | if test "${with_quantum_depth+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21061 | withval=$with_quantum_depth; with_quantum_depth=$withval | 
|  | 21062 | else | 
|  | 21063 | with_quantum_depth=16 | 
|  | 21064 | fi | 
|  | 21065 |  | 
|  | 21066 |  | 
|  | 21067 | if test "$with_quantum_depth" != '8'; then | 
|  | 21068 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " | 
|  | 21069 | fi | 
|  | 21070 |  | 
|  | 21071 | case "${with_quantum_depth}" in | 
|  | 21072 | 8 ) ;; | 
|  | 21073 | 16 ) ;; | 
|  | 21074 | 32 ) ;; | 
|  | 21075 | 64 ) ;; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21076 | * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21077 | esac | 
| cristy | cdae12a | 2010-09-19 02:24:31 +0000 | [diff] [blame] | 21078 | if test "$enable_hdri" = 'yes'; then | 
|  | 21079 | with_quantum_depth=16 | 
|  | 21080 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21081 | QUANTUM_DEPTH="$with_quantum_depth" | 
|  | 21082 |  | 
|  | 21083 | cat >>confdefs.h <<_ACEOF | 
|  | 21084 | #define QUANTUM_DEPTH $QUANTUM_DEPTH | 
|  | 21085 | _ACEOF | 
|  | 21086 |  | 
|  | 21087 |  | 
|  | 21088 | # Set pixel cache threshold | 
|  | 21089 |  | 
|  | 21090 | # Check whether --with-cache was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21091 | if test "${with_cache+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21092 | withval=$with_cache; with_cache=$withval | 
|  | 21093 | else | 
|  | 21094 | with_cache='' | 
|  | 21095 | fi | 
|  | 21096 |  | 
|  | 21097 |  | 
|  | 21098 | if test "$with_cache" != ''; then | 
|  | 21099 |  | 
|  | 21100 | cat >>confdefs.h <<_ACEOF | 
|  | 21101 | #define PixelCacheThreshold $with_cache | 
|  | 21102 | _ACEOF | 
|  | 21103 |  | 
|  | 21104 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " | 
|  | 21105 | fi | 
|  | 21106 |  | 
|  | 21107 | # Disable/Enable support for full delegate paths | 
|  | 21108 |  | 
|  | 21109 | # Check whether --with-frozenpaths was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21110 | if test "${with_frozenpaths+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21111 | withval=$with_frozenpaths; with_frozenpaths=$withval | 
|  | 21112 | else | 
|  | 21113 | with_frozenpaths='no' | 
|  | 21114 | fi | 
|  | 21115 |  | 
|  | 21116 |  | 
|  | 21117 | # Enable build/install of Magick++ | 
|  | 21118 |  | 
|  | 21119 | # Check whether --with-magick-plus-plus was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21120 | if test "${with_magick_plus_plus+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21121 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval | 
|  | 21122 | else | 
|  | 21123 | with_magick_plus_plus='yes' | 
|  | 21124 | fi | 
|  | 21125 |  | 
|  | 21126 |  | 
|  | 21127 | # Disable build/install of PerlMagick. | 
|  | 21128 |  | 
|  | 21129 | # Check whether --with-perl was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21130 | if test "${with_perl+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21131 | withval=$with_perl; with_perl=$withval | 
|  | 21132 | else | 
| cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 21133 | with_perl='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21134 | fi | 
|  | 21135 |  | 
|  | 21136 |  | 
|  | 21137 | # Options to pass when configuring PerlMagick | 
|  | 21138 |  | 
|  | 21139 | # Check whether --with-perl-options was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21140 | if test "${with_perl_options+set}" = set; then : | 
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 21141 | withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21142 | fi | 
|  | 21143 |  | 
|  | 21144 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21145 |  | 
|  | 21146 | # Enable umem, object-caching memory allocation library. | 
|  | 21147 |  | 
|  | 21148 | # Check whether --with-umem was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21149 | if test "${with_umem+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21150 | withval=$with_umem; with_umem=$withval | 
|  | 21151 | else | 
|  | 21152 | with_umem='no' | 
|  | 21153 | fi | 
|  | 21154 |  | 
|  | 21155 | if test "$with_umem" != 'yes' ; then | 
|  | 21156 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " | 
|  | 21157 | fi | 
|  | 21158 |  | 
|  | 21159 | # | 
|  | 21160 | # Specify path to shared libstdc++ if not in normal location | 
|  | 21161 | # | 
|  | 21162 |  | 
|  | 21163 | # Check whether --with-libstdc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21164 | if test "${with_libstdc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21165 | withval=$with_libstdc; with_libstdc=$withval | 
|  | 21166 | else | 
|  | 21167 | with_libstdc='' | 
|  | 21168 | fi | 
|  | 21169 |  | 
|  | 21170 |  | 
|  | 21171 | if test "$with_libstdc" != ''; then | 
|  | 21172 | if test -d "$with_libstdc"; then | 
|  | 21173 | LIBSTDCLDFLAGS="-L$with_libstdc" | 
|  | 21174 | fi | 
|  | 21175 | fi | 
|  | 21176 |  | 
|  | 21177 |  | 
|  | 21178 | # Does gcc required -traditional? | 
|  | 21179 | if test $ac_cv_c_compiler_gnu = yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21181 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21182 | if ${ac_cv_prog_gcc_traditional+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21183 | $as_echo_n "(cached) " >&6 | 
|  | 21184 | else | 
|  | 21185 | ac_pattern="Autoconf.*'x'" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21187 | /* end confdefs.h.  */ | 
|  | 21188 | #include <sgtty.h> | 
|  | 21189 | Autoconf TIOCGETP | 
|  | 21190 | _ACEOF | 
|  | 21191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21192 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21193 | ac_cv_prog_gcc_traditional=yes | 
|  | 21194 | else | 
|  | 21195 | ac_cv_prog_gcc_traditional=no | 
|  | 21196 | fi | 
|  | 21197 | rm -f conftest* | 
|  | 21198 |  | 
|  | 21199 |  | 
|  | 21200 | if test $ac_cv_prog_gcc_traditional = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21202 | /* end confdefs.h.  */ | 
|  | 21203 | #include <termio.h> | 
|  | 21204 | Autoconf TCGETA | 
|  | 21205 | _ACEOF | 
|  | 21206 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21207 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21208 | ac_cv_prog_gcc_traditional=yes | 
|  | 21209 | fi | 
|  | 21210 | rm -f conftest* | 
|  | 21211 |  | 
|  | 21212 | fi | 
|  | 21213 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21214 | { $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] | 21215 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | 
|  | 21216 | if test $ac_cv_prog_gcc_traditional = yes; then | 
|  | 21217 | CC="$CC -traditional" | 
|  | 21218 | fi | 
|  | 21219 | fi | 
|  | 21220 |  | 
|  | 21221 |  | 
|  | 21222 | ######## | 
|  | 21223 | # | 
|  | 21224 | # Set defines required to build DLLs and modules using MinGW | 
|  | 21225 | # | 
|  | 21226 | ######## | 
|  | 21227 | # These options are set for multi-thread DLL module build | 
|  | 21228 | #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_ | 
|  | 21229 | #  module:              _DLL | 
|  | 21230 | #  executable/Magick++: _DLL _MAGICKMOD_ | 
|  | 21231 | MODULE_EXTRA_CPPFLAGS='' | 
|  | 21232 | LIBRARY_EXTRA_CPPFLAGS='' | 
|  | 21233 | if test "${native_win32_build}" = 'yes'; then | 
|  | 21234 | if test "${libtool_build_shared_libs}" = 'yes'; then | 
|  | 21235 | CPPFLAGS="$CPPFLAGS -D_DLL" | 
|  | 21236 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" | 
|  | 21237 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" | 
|  | 21238 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" | 
|  | 21239 | if test "$with_modules" = 'yes'; then | 
|  | 21240 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" | 
|  | 21241 | else | 
|  | 21242 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" | 
|  | 21243 | fi | 
|  | 21244 | else | 
|  | 21245 | CPPFLAGS="$CPPFLAGS -D_LIB" | 
|  | 21246 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" | 
|  | 21247 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" | 
|  | 21248 | fi | 
|  | 21249 | if test "$with_threads" = 'yes'; then | 
|  | 21250 | CPPFLAGS="$CPPFLAGS -D_MT" | 
|  | 21251 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" | 
|  | 21252 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" | 
|  | 21253 | fi | 
|  | 21254 | fi | 
|  | 21255 |  | 
|  | 21256 |  | 
|  | 21257 |  | 
|  | 21258 | # Check standard headers | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21259 | { $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] | 21260 | $as_echo_n "checking for ANSI C header files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21261 | if ${ac_cv_header_stdc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21262 | $as_echo_n "(cached) " >&6 | 
|  | 21263 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21265 | /* end confdefs.h.  */ | 
|  | 21266 | #include <stdlib.h> | 
|  | 21267 | #include <stdarg.h> | 
|  | 21268 | #include <string.h> | 
|  | 21269 | #include <float.h> | 
|  | 21270 |  | 
|  | 21271 | int | 
|  | 21272 | main () | 
|  | 21273 | { | 
|  | 21274 |  | 
|  | 21275 | ; | 
|  | 21276 | return 0; | 
|  | 21277 | } | 
|  | 21278 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21279 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21280 | ac_cv_header_stdc=yes | 
|  | 21281 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21282 | ac_cv_header_stdc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21283 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21285 |  | 
|  | 21286 | if test $ac_cv_header_stdc = yes; then | 
|  | 21287 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21289 | /* end confdefs.h.  */ | 
|  | 21290 | #include <string.h> | 
|  | 21291 |  | 
|  | 21292 | _ACEOF | 
|  | 21293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21294 | $EGREP "memchr" >/dev/null 2>&1; then : | 
|  | 21295 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21296 | else | 
|  | 21297 | ac_cv_header_stdc=no | 
|  | 21298 | fi | 
|  | 21299 | rm -f conftest* | 
|  | 21300 |  | 
|  | 21301 | fi | 
|  | 21302 |  | 
|  | 21303 | if test $ac_cv_header_stdc = yes; then | 
|  | 21304 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21306 | /* end confdefs.h.  */ | 
|  | 21307 | #include <stdlib.h> | 
|  | 21308 |  | 
|  | 21309 | _ACEOF | 
|  | 21310 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21311 | $EGREP "free" >/dev/null 2>&1; then : | 
|  | 21312 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21313 | else | 
|  | 21314 | ac_cv_header_stdc=no | 
|  | 21315 | fi | 
|  | 21316 | rm -f conftest* | 
|  | 21317 |  | 
|  | 21318 | fi | 
|  | 21319 |  | 
|  | 21320 | if test $ac_cv_header_stdc = yes; then | 
|  | 21321 | # /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] | 21322 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21323 | : | 
|  | 21324 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21326 | /* end confdefs.h.  */ | 
|  | 21327 | #include <ctype.h> | 
|  | 21328 | #include <stdlib.h> | 
|  | 21329 | #if ((' ' & 0x0FF) == 0x020) | 
|  | 21330 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
|  | 21331 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
|  | 21332 | #else | 
|  | 21333 | # define ISLOWER(c) \ | 
|  | 21334 | (('a' <= (c) && (c) <= 'i') \ | 
|  | 21335 | || ('j' <= (c) && (c) <= 'r') \ | 
|  | 21336 | || ('s' <= (c) && (c) <= 'z')) | 
|  | 21337 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | 
|  | 21338 | #endif | 
|  | 21339 |  | 
|  | 21340 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
|  | 21341 | int | 
|  | 21342 | main () | 
|  | 21343 | { | 
|  | 21344 | int i; | 
|  | 21345 | for (i = 0; i < 256; i++) | 
|  | 21346 | if (XOR (islower (i), ISLOWER (i)) | 
|  | 21347 | || toupper (i) != TOUPPER (i)) | 
|  | 21348 | return 2; | 
|  | 21349 | return 0; | 
|  | 21350 | } | 
|  | 21351 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21352 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 21353 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21354 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21355 | ac_cv_header_stdc=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 | 
|  | 21362 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21364 | $as_echo "$ac_cv_header_stdc" >&6; } | 
|  | 21365 | if test $ac_cv_header_stdc = yes; then | 
|  | 21366 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21367 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21368 |  | 
|  | 21369 | fi | 
|  | 21370 |  | 
|  | 21371 | if ! test x"$ac_cv_header_stdc" = x"yes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21372 | { $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] | 21373 | header files.  Compilation cannot proceed.  Please install the ANSI C | 
|  | 21374 | headers and rerun this script." >&5 | 
|  | 21375 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C | 
|  | 21376 | header files.  Compilation cannot proceed.  Please install the ANSI C | 
|  | 21377 | headers and rerun this script." >&2;}; | 
|  | 21378 | fi | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 21379 |  | 
|  | 21380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 | 
|  | 21381 | $as_echo_n "checking whether to enable assertions... " >&6; } | 
|  | 21382 | # Check whether --enable-assert was given. | 
|  | 21383 | if test "${enable_assert+set}" = set; then : | 
|  | 21384 | enableval=$enable_assert; ac_enable_assert=$enableval | 
|  | 21385 | if       test "x$enableval" = xno; then : | 
|  | 21386 |  | 
|  | 21387 | $as_echo "#define NDEBUG 1" >>confdefs.h | 
|  | 21388 |  | 
|  | 21389 | elif test "x$enableval" != xyes; then : | 
|  | 21390 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 | 
|  | 21391 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} | 
|  | 21392 | ac_enable_assert=yes | 
|  | 21393 | fi | 
|  | 21394 | else | 
|  | 21395 | ac_enable_assert=yes | 
|  | 21396 | fi | 
|  | 21397 |  | 
|  | 21398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 | 
|  | 21399 | $as_echo "$ac_enable_assert" >&6; } | 
|  | 21400 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21401 | ac_header_dirent=no | 
|  | 21402 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | 
|  | 21403 | 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] | 21404 | { $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] | 21405 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21406 | if eval \${$as_ac_Header+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21407 | $as_echo_n "(cached) " >&6 | 
|  | 21408 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21410 | /* end confdefs.h.  */ | 
|  | 21411 | #include <sys/types.h> | 
|  | 21412 | #include <$ac_hdr> | 
|  | 21413 |  | 
|  | 21414 | int | 
|  | 21415 | main () | 
|  | 21416 | { | 
|  | 21417 | if ((DIR *) 0) | 
|  | 21418 | return 0; | 
|  | 21419 | ; | 
|  | 21420 | return 0; | 
|  | 21421 | } | 
|  | 21422 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21423 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21424 | eval "$as_ac_Header=yes" | 
|  | 21425 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21426 | eval "$as_ac_Header=no" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21427 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21429 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21430 | eval ac_res=\$$as_ac_Header | 
|  | 21431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21432 | $as_echo "$ac_res" >&6; } | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21433 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21434 | cat >>confdefs.h <<_ACEOF | 
|  | 21435 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | 
|  | 21436 | _ACEOF | 
|  | 21437 |  | 
|  | 21438 | ac_header_dirent=$ac_hdr; break | 
|  | 21439 | fi | 
|  | 21440 |  | 
|  | 21441 | done | 
|  | 21442 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
|  | 21443 | if test $ac_header_dirent = dirent.h; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21445 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21446 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21447 | $as_echo_n "(cached) " >&6 | 
|  | 21448 | else | 
|  | 21449 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21450 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21451 | /* end confdefs.h.  */ | 
|  | 21452 |  | 
|  | 21453 | /* Override any GCC internal prototype to avoid an error. | 
|  | 21454 | Use char because int might match the return type of a GCC | 
|  | 21455 | builtin and then its argument prototype would still apply.  */ | 
|  | 21456 | #ifdef __cplusplus | 
|  | 21457 | extern "C" | 
|  | 21458 | #endif | 
|  | 21459 | char opendir (); | 
|  | 21460 | int | 
|  | 21461 | main () | 
|  | 21462 | { | 
|  | 21463 | return opendir (); | 
|  | 21464 | ; | 
|  | 21465 | return 0; | 
|  | 21466 | } | 
|  | 21467 | _ACEOF | 
|  | 21468 | for ac_lib in '' dir; do | 
|  | 21469 | if test -z "$ac_lib"; then | 
|  | 21470 | ac_res="none required" | 
|  | 21471 | else | 
|  | 21472 | ac_res=-l$ac_lib | 
|  | 21473 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 21474 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21475 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21476 | ac_cv_search_opendir=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21477 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21478 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 21479 | conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21480 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21481 | break | 
|  | 21482 | fi | 
|  | 21483 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21484 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21485 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21486 | else | 
|  | 21487 | ac_cv_search_opendir=no | 
|  | 21488 | fi | 
|  | 21489 | rm conftest.$ac_ext | 
|  | 21490 | LIBS=$ac_func_search_save_LIBS | 
|  | 21491 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21493 | $as_echo "$ac_cv_search_opendir" >&6; } | 
|  | 21494 | ac_res=$ac_cv_search_opendir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21495 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21496 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 21497 |  | 
|  | 21498 | fi | 
|  | 21499 |  | 
|  | 21500 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21502 | $as_echo_n "checking for library containing opendir... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21503 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21504 | $as_echo_n "(cached) " >&6 | 
|  | 21505 | else | 
|  | 21506 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21508 | /* end confdefs.h.  */ | 
|  | 21509 |  | 
|  | 21510 | /* Override any GCC internal prototype to avoid an error. | 
|  | 21511 | Use char because int might match the return type of a GCC | 
|  | 21512 | builtin and then its argument prototype would still apply.  */ | 
|  | 21513 | #ifdef __cplusplus | 
|  | 21514 | extern "C" | 
|  | 21515 | #endif | 
|  | 21516 | char opendir (); | 
|  | 21517 | int | 
|  | 21518 | main () | 
|  | 21519 | { | 
|  | 21520 | return opendir (); | 
|  | 21521 | ; | 
|  | 21522 | return 0; | 
|  | 21523 | } | 
|  | 21524 | _ACEOF | 
|  | 21525 | for ac_lib in '' x; do | 
|  | 21526 | if test -z "$ac_lib"; then | 
|  | 21527 | ac_res="none required" | 
|  | 21528 | else | 
|  | 21529 | ac_res=-l$ac_lib | 
|  | 21530 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 21531 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21532 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21533 | ac_cv_search_opendir=$ac_res | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21534 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21535 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 21536 | conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21537 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21538 | break | 
|  | 21539 | fi | 
|  | 21540 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21541 | if ${ac_cv_search_opendir+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21542 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21543 | else | 
|  | 21544 | ac_cv_search_opendir=no | 
|  | 21545 | fi | 
|  | 21546 | rm conftest.$ac_ext | 
|  | 21547 | LIBS=$ac_func_search_save_LIBS | 
|  | 21548 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21550 | $as_echo "$ac_cv_search_opendir" >&6; } | 
|  | 21551 | ac_res=$ac_cv_search_opendir | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21552 | if test "$ac_res" != no; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21553 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 21554 |  | 
|  | 21555 | fi | 
|  | 21556 |  | 
|  | 21557 | fi | 
|  | 21558 |  | 
|  | 21559 |  | 
|  | 21560 | # Check additional headers | 
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 21561 | for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21562 | do : | 
|  | 21563 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 21564 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21565 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21566 | cat >>confdefs.h <<_ACEOF | 
|  | 21567 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 21568 | _ACEOF | 
|  | 21569 |  | 
|  | 21570 | fi | 
|  | 21571 |  | 
|  | 21572 | done | 
|  | 21573 |  | 
|  | 21574 |  | 
|  | 21575 | ######## | 
|  | 21576 | # | 
|  | 21577 | # Checks for typedefs, structures, and compiler characteristics. | 
|  | 21578 | # | 
|  | 21579 | ######## | 
|  | 21580 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21581 | { $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] | 21582 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21583 | if ${ac_cv_header_stdbool_h+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21584 | $as_echo_n "(cached) " >&6 | 
|  | 21585 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21587 | /* end confdefs.h.  */ | 
|  | 21588 |  | 
|  | 21589 | #include <stdbool.h> | 
|  | 21590 | #ifndef bool | 
|  | 21591 | "error: bool is not defined" | 
|  | 21592 | #endif | 
|  | 21593 | #ifndef false | 
|  | 21594 | "error: false is not defined" | 
|  | 21595 | #endif | 
|  | 21596 | #if false | 
|  | 21597 | "error: false is not 0" | 
|  | 21598 | #endif | 
|  | 21599 | #ifndef true | 
|  | 21600 | "error: true is not defined" | 
|  | 21601 | #endif | 
|  | 21602 | #if true != 1 | 
|  | 21603 | "error: true is not 1" | 
|  | 21604 | #endif | 
|  | 21605 | #ifndef __bool_true_false_are_defined | 
|  | 21606 | "error: __bool_true_false_are_defined is not defined" | 
|  | 21607 | #endif | 
|  | 21608 |  | 
|  | 21609 | struct s { _Bool s: 1; _Bool t; } s; | 
|  | 21610 |  | 
|  | 21611 | char a[true == 1 ? 1 : -1]; | 
|  | 21612 | char b[false == 0 ? 1 : -1]; | 
|  | 21613 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | 
|  | 21614 | char d[(bool) 0.5 == true ? 1 : -1]; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21615 | /* See body of main program for 'e'.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21616 | char f[(_Bool) 0.0 == false ? 1 : -1]; | 
|  | 21617 | char g[true]; | 
|  | 21618 | char h[sizeof (_Bool)]; | 
|  | 21619 | char i[sizeof s.t]; | 
|  | 21620 | enum { j = false, k = true, l = false * true, m = true * 256 }; | 
|  | 21621 | /* The following fails for | 
|  | 21622 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | 
|  | 21623 | _Bool n[m]; | 
|  | 21624 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | 
|  | 21625 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21626 | /* Catch a bug in an HP-UX C compiler.  See | 
|  | 21627 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | 
|  | 21628 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | 
|  | 21629 | */ | 
|  | 21630 | _Bool q = true; | 
|  | 21631 | _Bool *pq = &q; | 
|  | 21632 |  | 
|  | 21633 | int | 
|  | 21634 | main () | 
|  | 21635 | { | 
|  | 21636 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21637 | bool e = &s; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21638 | *pq |= q; | 
|  | 21639 | *pq |= ! q; | 
|  | 21640 | /* Refer to every declared value, to avoid compiler optimizations.  */ | 
|  | 21641 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | 
|  | 21642 | + !m + !n + !o + !p + !q + !pq); | 
|  | 21643 |  | 
|  | 21644 | ; | 
|  | 21645 | return 0; | 
|  | 21646 | } | 
|  | 21647 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21648 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21649 | ac_cv_header_stdbool_h=yes | 
|  | 21650 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21651 | ac_cv_header_stdbool_h=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21652 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21654 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21655 | { $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] | 21656 | $as_echo "$ac_cv_header_stdbool_h" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21657 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21658 | if test "x$ac_cv_type__Bool" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21659 |  | 
|  | 21660 | cat >>confdefs.h <<_ACEOF | 
|  | 21661 | #define HAVE__BOOL 1 | 
|  | 21662 | _ACEOF | 
|  | 21663 |  | 
|  | 21664 |  | 
|  | 21665 | fi | 
|  | 21666 |  | 
|  | 21667 | if test $ac_cv_header_stdbool_h = yes; then | 
|  | 21668 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21669 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21670 |  | 
|  | 21671 | fi | 
|  | 21672 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21674 | $as_echo_n "checking for working volatile... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21675 | if ${ac_cv_c_volatile+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21676 | $as_echo_n "(cached) " >&6 | 
|  | 21677 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21679 | /* end confdefs.h.  */ | 
|  | 21680 |  | 
|  | 21681 | int | 
|  | 21682 | main () | 
|  | 21683 | { | 
|  | 21684 |  | 
|  | 21685 | volatile int x; | 
|  | 21686 | int * volatile y = (int *) 0; | 
|  | 21687 | return !x && !y; | 
|  | 21688 | ; | 
|  | 21689 | return 0; | 
|  | 21690 | } | 
|  | 21691 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21692 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21693 | ac_cv_c_volatile=yes | 
|  | 21694 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21695 | ac_cv_c_volatile=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21696 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21698 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21700 | $as_echo "$ac_cv_c_volatile" >&6; } | 
|  | 21701 | if test $ac_cv_c_volatile = no; then | 
|  | 21702 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21703 | $as_echo "#define volatile /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21704 |  | 
|  | 21705 | fi | 
|  | 21706 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21708 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21709 | if ${ac_cv_c_stringize+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21710 | $as_echo_n "(cached) " >&6 | 
|  | 21711 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21713 | /* end confdefs.h.  */ | 
|  | 21714 | #define x(y) #y | 
|  | 21715 |  | 
|  | 21716 | char *s = x(teststring); | 
|  | 21717 | _ACEOF | 
|  | 21718 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21719 | $EGREP "#teststring" >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21720 | ac_cv_c_stringize=no | 
|  | 21721 | else | 
|  | 21722 | ac_cv_c_stringize=yes | 
|  | 21723 | fi | 
|  | 21724 | rm -f conftest* | 
|  | 21725 |  | 
|  | 21726 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21728 | $as_echo "$ac_cv_c_stringize" >&6; } | 
|  | 21729 | if test $ac_cv_c_stringize = yes; then | 
|  | 21730 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21731 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21732 |  | 
|  | 21733 | fi | 
|  | 21734 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21735 | { $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] | 21736 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21737 | if ${ac_cv_header_stat_broken+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21738 | $as_echo_n "(cached) " >&6 | 
|  | 21739 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21741 | /* end confdefs.h.  */ | 
|  | 21742 | #include <sys/types.h> | 
|  | 21743 | #include <sys/stat.h> | 
|  | 21744 |  | 
|  | 21745 | #if defined S_ISBLK && defined S_IFDIR | 
|  | 21746 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; | 
|  | 21747 | #endif | 
|  | 21748 |  | 
|  | 21749 | #if defined S_ISBLK && defined S_IFCHR | 
|  | 21750 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; | 
|  | 21751 | #endif | 
|  | 21752 |  | 
|  | 21753 | #if defined S_ISLNK && defined S_IFREG | 
|  | 21754 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; | 
|  | 21755 | #endif | 
|  | 21756 |  | 
|  | 21757 | #if defined S_ISSOCK && defined S_IFREG | 
|  | 21758 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; | 
|  | 21759 | #endif | 
|  | 21760 |  | 
|  | 21761 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21762 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21763 | ac_cv_header_stat_broken=no | 
|  | 21764 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21765 | ac_cv_header_stat_broken=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21766 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21768 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21769 | { $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] | 21770 | $as_echo "$ac_cv_header_stat_broken" >&6; } | 
|  | 21771 | if test $ac_cv_header_stat_broken = yes; then | 
|  | 21772 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21773 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21774 |  | 
|  | 21775 | fi | 
|  | 21776 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21777 | { $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] | 21778 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21779 | if ${ac_cv_header_time+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21780 | $as_echo_n "(cached) " >&6 | 
|  | 21781 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21783 | /* end confdefs.h.  */ | 
|  | 21784 | #include <sys/types.h> | 
|  | 21785 | #include <sys/time.h> | 
|  | 21786 | #include <time.h> | 
|  | 21787 |  | 
|  | 21788 | int | 
|  | 21789 | main () | 
|  | 21790 | { | 
|  | 21791 | if ((struct tm *) 0) | 
|  | 21792 | return 0; | 
|  | 21793 | ; | 
|  | 21794 | return 0; | 
|  | 21795 | } | 
|  | 21796 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21797 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21798 | ac_cv_header_time=yes | 
|  | 21799 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21800 | ac_cv_header_time=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21801 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21803 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21805 | $as_echo "$ac_cv_header_time" >&6; } | 
|  | 21806 | if test $ac_cv_header_time = yes; then | 
|  | 21807 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21808 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21809 |  | 
|  | 21810 | fi | 
|  | 21811 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21812 | { $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] | 21813 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21814 | if ${ac_cv_struct_tm+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21815 | $as_echo_n "(cached) " >&6 | 
|  | 21816 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21818 | /* end confdefs.h.  */ | 
|  | 21819 | #include <sys/types.h> | 
|  | 21820 | #include <time.h> | 
|  | 21821 |  | 
|  | 21822 | int | 
|  | 21823 | main () | 
|  | 21824 | { | 
|  | 21825 | struct tm tm; | 
|  | 21826 | int *p = &tm.tm_sec; | 
|  | 21827 | return !p; | 
|  | 21828 | ; | 
|  | 21829 | return 0; | 
|  | 21830 | } | 
|  | 21831 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21832 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21833 | ac_cv_struct_tm=time.h | 
|  | 21834 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21835 | ac_cv_struct_tm=sys/time.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21836 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21838 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21840 | $as_echo "$ac_cv_struct_tm" >&6; } | 
|  | 21841 | if test $ac_cv_struct_tm = sys/time.h; then | 
|  | 21842 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21843 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21844 |  | 
|  | 21845 | fi | 
|  | 21846 |  | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21847 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> | 
|  | 21848 | #include <$ac_cv_struct_tm> | 
|  | 21849 |  | 
|  | 21850 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21851 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21852 |  | 
|  | 21853 | cat >>confdefs.h <<_ACEOF | 
|  | 21854 | #define HAVE_STRUCT_TM_TM_ZONE 1 | 
|  | 21855 | _ACEOF | 
|  | 21856 |  | 
|  | 21857 |  | 
|  | 21858 | fi | 
|  | 21859 |  | 
|  | 21860 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | 
|  | 21861 |  | 
|  | 21862 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h | 
|  | 21863 |  | 
|  | 21864 | else | 
|  | 21865 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> | 
|  | 21866 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21867 | if test "x$ac_cv_have_decl_tzname" = xyes; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21868 | ac_have_decl=1 | 
|  | 21869 | else | 
|  | 21870 | ac_have_decl=0 | 
|  | 21871 | fi | 
|  | 21872 |  | 
|  | 21873 | cat >>confdefs.h <<_ACEOF | 
|  | 21874 | #define HAVE_DECL_TZNAME $ac_have_decl | 
|  | 21875 | _ACEOF | 
|  | 21876 |  | 
|  | 21877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 | 
|  | 21878 | $as_echo_n "checking for tzname... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21879 | if ${ac_cv_var_tzname+:} false; then : | 
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21880 | $as_echo_n "(cached) " >&6 | 
|  | 21881 | else | 
|  | 21882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 21883 | /* end confdefs.h.  */ | 
|  | 21884 | #include <time.h> | 
|  | 21885 | #if !HAVE_DECL_TZNAME | 
|  | 21886 | extern char *tzname[]; | 
|  | 21887 | #endif | 
|  | 21888 |  | 
|  | 21889 | int | 
|  | 21890 | main () | 
|  | 21891 | { | 
|  | 21892 | return tzname[0][0]; | 
|  | 21893 | ; | 
|  | 21894 | return 0; | 
|  | 21895 | } | 
|  | 21896 | _ACEOF | 
|  | 21897 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 21898 | ac_cv_var_tzname=yes | 
|  | 21899 | else | 
|  | 21900 | ac_cv_var_tzname=no | 
|  | 21901 | fi | 
|  | 21902 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 21903 | conftest$ac_exeext conftest.$ac_ext | 
|  | 21904 | fi | 
|  | 21905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 | 
|  | 21906 | $as_echo "$ac_cv_var_tzname" >&6; } | 
|  | 21907 | if test $ac_cv_var_tzname = yes; then | 
|  | 21908 |  | 
|  | 21909 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h | 
|  | 21910 |  | 
|  | 21911 | fi | 
|  | 21912 | fi | 
|  | 21913 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21914 | { $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] | 21915 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21916 | if ${ac_cv_sys_interpreter+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21917 | $as_echo_n "(cached) " >&6 | 
|  | 21918 | else | 
|  | 21919 | echo '#! /bin/cat | 
|  | 21920 | exit 69 | 
|  | 21921 | ' >conftest | 
|  | 21922 | chmod u+x conftest | 
|  | 21923 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) | 
|  | 21924 | if test $? -ne 69; then | 
|  | 21925 | ac_cv_sys_interpreter=yes | 
|  | 21926 | else | 
|  | 21927 | ac_cv_sys_interpreter=no | 
|  | 21928 | fi | 
|  | 21929 | rm -f conftest | 
|  | 21930 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21932 | $as_echo "$ac_cv_sys_interpreter" >&6; } | 
|  | 21933 | interpval=$ac_cv_sys_interpreter | 
|  | 21934 |  | 
|  | 21935 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21936 | # If the C compiler supports the keyword inline, do nothing. Otherwise | 
|  | 21937 | # define inline to __inline__ or __inline if it accepts one of those, | 
|  | 21938 | # otherwise define inline to be empty. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21940 | $as_echo_n "checking for inline... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21941 | if ${ac_cv_c_inline+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21942 | $as_echo_n "(cached) " >&6 | 
|  | 21943 | else | 
|  | 21944 | ac_cv_c_inline=no | 
|  | 21945 | for ac_kw in inline __inline__ __inline; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21947 | /* end confdefs.h.  */ | 
|  | 21948 | #ifndef __cplusplus | 
|  | 21949 | typedef int foo_t; | 
|  | 21950 | static $ac_kw foo_t static_foo () {return 0; } | 
|  | 21951 | $ac_kw foo_t foo () {return 0; } | 
|  | 21952 | #endif | 
|  | 21953 |  | 
|  | 21954 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21955 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21956 | ac_cv_c_inline=$ac_kw | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21957 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 21959 | test "$ac_cv_c_inline" != no && break | 
|  | 21960 | done | 
|  | 21961 |  | 
|  | 21962 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21964 | $as_echo "$ac_cv_c_inline" >&6; } | 
|  | 21965 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21966 | case $ac_cv_c_inline in | 
|  | 21967 | inline | yes) ;; | 
|  | 21968 | *) | 
|  | 21969 | case $ac_cv_c_inline in | 
|  | 21970 | no) ac_val=;; | 
|  | 21971 | *) ac_val=$ac_cv_c_inline;; | 
|  | 21972 | esac | 
|  | 21973 | cat >>confdefs.h <<_ACEOF | 
|  | 21974 | #ifndef __cplusplus | 
|  | 21975 | #define inline $ac_val | 
|  | 21976 | #endif | 
|  | 21977 | _ACEOF | 
|  | 21978 | ;; | 
|  | 21979 | esac | 
|  | 21980 |  | 
|  | 21981 |  | 
|  | 21982 | # If the C compiler supports the keyword restrict, do nothing. Otherwise | 
|  | 21983 | # define restrict to __restrict__ or __restrict if it accepts one of those, | 
|  | 21984 | # otherwise define restrict to be empty. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21985 | { $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] | 21986 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21987 | if ${ac_cv_c_restrict+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21988 | $as_echo_n "(cached) " >&6 | 
|  | 21989 | else | 
|  | 21990 | ac_cv_c_restrict=no | 
|  | 21991 | # The order here caters to the fact that C++ does not require restrict. | 
|  | 21992 | for ac_kw in __restrict __restrict__ _Restrict restrict; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21994 | /* end confdefs.h.  */ | 
|  | 21995 | typedef int * int_ptr; | 
|  | 21996 | int foo (int_ptr $ac_kw ip) { | 
|  | 21997 | return ip[0]; | 
|  | 21998 | } | 
|  | 21999 | int | 
|  | 22000 | main () | 
|  | 22001 | { | 
|  | 22002 | int s[1]; | 
|  | 22003 | int * $ac_kw t = s; | 
|  | 22004 | t[0] = 0; | 
|  | 22005 | return foo(t) | 
|  | 22006 | ; | 
|  | 22007 | return 0; | 
|  | 22008 | } | 
|  | 22009 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22010 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22011 | ac_cv_c_restrict=$ac_kw | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22012 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22014 | test "$ac_cv_c_restrict" != no && break | 
|  | 22015 | done | 
|  | 22016 |  | 
|  | 22017 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22019 | $as_echo "$ac_cv_c_restrict" >&6; } | 
|  | 22020 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22021 | case $ac_cv_c_restrict in | 
|  | 22022 | restrict) ;; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22023 | no) $as_echo "#define restrict /**/" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22024 | ;; | 
|  | 22025 | *)  cat >>confdefs.h <<_ACEOF | 
|  | 22026 | #define restrict $ac_cv_c_restrict | 
|  | 22027 | _ACEOF | 
|  | 22028 | ;; | 
|  | 22029 | esac | 
|  | 22030 |  | 
|  | 22031 |  | 
|  | 22032 | # If words are stored with the most significant byte first (like | 
|  | 22033 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22034 | { $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] | 22035 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22036 | if ${ac_cv_c_bigendian+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22037 | $as_echo_n "(cached) " >&6 | 
|  | 22038 | else | 
|  | 22039 | ac_cv_c_bigendian=unknown | 
|  | 22040 | # See if we're dealing with a universal compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22042 | /* end confdefs.h.  */ | 
|  | 22043 | #ifndef __APPLE_CC__ | 
|  | 22044 | not a universal capable compiler | 
|  | 22045 | #endif | 
|  | 22046 | typedef int dummy; | 
|  | 22047 |  | 
|  | 22048 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22049 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22050 |  | 
|  | 22051 | # Check for potential -arch flags.  It is not universal unless | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22052 | # there are at least two -arch flags with different values. | 
|  | 22053 | ac_arch= | 
|  | 22054 | ac_prev= | 
|  | 22055 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | 
|  | 22056 | if test -n "$ac_prev"; then | 
|  | 22057 | case $ac_word in | 
|  | 22058 | i?86 | x86_64 | ppc | ppc64) | 
|  | 22059 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | 
|  | 22060 | ac_arch=$ac_word | 
|  | 22061 | else | 
|  | 22062 | ac_cv_c_bigendian=universal | 
|  | 22063 | break | 
|  | 22064 | fi | 
|  | 22065 | ;; | 
|  | 22066 | esac | 
|  | 22067 | ac_prev= | 
|  | 22068 | elif test "x$ac_word" = "x-arch"; then | 
|  | 22069 | ac_prev=arch | 
|  | 22070 | fi | 
|  | 22071 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22072 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22074 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 22075 | # See if sys/param.h defines the BYTE_ORDER macro. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22077 | /* end confdefs.h.  */ | 
|  | 22078 | #include <sys/types.h> | 
|  | 22079 | #include <sys/param.h> | 
|  | 22080 |  | 
|  | 22081 | int | 
|  | 22082 | main () | 
|  | 22083 | { | 
|  | 22084 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | 
|  | 22085 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | 
|  | 22086 | && LITTLE_ENDIAN) | 
|  | 22087 | bogus endian macros | 
|  | 22088 | #endif | 
|  | 22089 |  | 
|  | 22090 | ; | 
|  | 22091 | return 0; | 
|  | 22092 | } | 
|  | 22093 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22094 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22095 | # It does; now see whether it defined to BIG_ENDIAN or not. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22096 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22097 | /* end confdefs.h.  */ | 
|  | 22098 | #include <sys/types.h> | 
|  | 22099 | #include <sys/param.h> | 
|  | 22100 |  | 
|  | 22101 | int | 
|  | 22102 | main () | 
|  | 22103 | { | 
|  | 22104 | #if BYTE_ORDER != BIG_ENDIAN | 
|  | 22105 | not big endian | 
|  | 22106 | #endif | 
|  | 22107 |  | 
|  | 22108 | ; | 
|  | 22109 | return 0; | 
|  | 22110 | } | 
|  | 22111 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22112 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22113 | ac_cv_c_bigendian=yes | 
|  | 22114 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22115 | ac_cv_c_bigendian=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22116 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22117 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22118 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22120 | fi | 
|  | 22121 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 22122 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22124 | /* end confdefs.h.  */ | 
|  | 22125 | #include <limits.h> | 
|  | 22126 |  | 
|  | 22127 | int | 
|  | 22128 | main () | 
|  | 22129 | { | 
|  | 22130 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | 
|  | 22131 | bogus endian macros | 
|  | 22132 | #endif | 
|  | 22133 |  | 
|  | 22134 | ; | 
|  | 22135 | return 0; | 
|  | 22136 | } | 
|  | 22137 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22138 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22139 | # It does; now see whether it defined to _BIG_ENDIAN or not. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22141 | /* end confdefs.h.  */ | 
|  | 22142 | #include <limits.h> | 
|  | 22143 |  | 
|  | 22144 | int | 
|  | 22145 | main () | 
|  | 22146 | { | 
|  | 22147 | #ifndef _BIG_ENDIAN | 
|  | 22148 | not big endian | 
|  | 22149 | #endif | 
|  | 22150 |  | 
|  | 22151 | ; | 
|  | 22152 | return 0; | 
|  | 22153 | } | 
|  | 22154 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22155 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22156 | ac_cv_c_bigendian=yes | 
|  | 22157 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22158 | ac_cv_c_bigendian=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22159 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22161 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22163 | fi | 
|  | 22164 | if test $ac_cv_c_bigendian = unknown; then | 
|  | 22165 | # Compile a test program. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22166 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22167 | # Try to guess by grepping values from an object file. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22169 | /* end confdefs.h.  */ | 
|  | 22170 | short int ascii_mm[] = | 
|  | 22171 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | 
|  | 22172 | short int ascii_ii[] = | 
|  | 22173 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | 
|  | 22174 | int use_ascii (int i) { | 
|  | 22175 | return ascii_mm[i] + ascii_ii[i]; | 
|  | 22176 | } | 
|  | 22177 | short int ebcdic_ii[] = | 
|  | 22178 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | 
|  | 22179 | short int ebcdic_mm[] = | 
|  | 22180 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | 
|  | 22181 | int use_ebcdic (int i) { | 
|  | 22182 | return ebcdic_mm[i] + ebcdic_ii[i]; | 
|  | 22183 | } | 
|  | 22184 | extern int foo; | 
|  | 22185 |  | 
|  | 22186 | int | 
|  | 22187 | main () | 
|  | 22188 | { | 
|  | 22189 | return use_ascii (foo) == use_ebcdic (foo); | 
|  | 22190 | ; | 
|  | 22191 | return 0; | 
|  | 22192 | } | 
|  | 22193 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22194 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22195 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | 
|  | 22196 | ac_cv_c_bigendian=yes | 
|  | 22197 | fi | 
|  | 22198 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | 
|  | 22199 | if test "$ac_cv_c_bigendian" = unknown; then | 
|  | 22200 | ac_cv_c_bigendian=no | 
|  | 22201 | else | 
|  | 22202 | # finding both strings is unlikely to happen, but who knows? | 
|  | 22203 | ac_cv_c_bigendian=unknown | 
|  | 22204 | fi | 
|  | 22205 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22206 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22208 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22210 | /* end confdefs.h.  */ | 
|  | 22211 | $ac_includes_default | 
|  | 22212 | int | 
|  | 22213 | main () | 
|  | 22214 | { | 
|  | 22215 |  | 
|  | 22216 | /* Are we little or big endian?  From Harbison&Steele.  */ | 
|  | 22217 | union | 
|  | 22218 | { | 
|  | 22219 | long int l; | 
|  | 22220 | char c[sizeof (long int)]; | 
|  | 22221 | } u; | 
|  | 22222 | u.l = 1; | 
|  | 22223 | return u.c[sizeof (long int) - 1] == 1; | 
|  | 22224 |  | 
|  | 22225 | ; | 
|  | 22226 | return 0; | 
|  | 22227 | } | 
|  | 22228 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22229 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22230 | ac_cv_c_bigendian=no | 
|  | 22231 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22232 | ac_cv_c_bigendian=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22233 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22234 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 22235 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22236 | fi | 
|  | 22237 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22238 | fi | 
|  | 22239 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22241 | $as_echo "$ac_cv_c_bigendian" >&6; } | 
|  | 22242 | case $ac_cv_c_bigendian in #( | 
|  | 22243 | yes) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22244 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22245 | ;; #( | 
|  | 22246 | no) | 
|  | 22247 | ;; #( | 
|  | 22248 | universal) | 
|  | 22249 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22250 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22251 |  | 
|  | 22252 | ;; #( | 
|  | 22253 | *) | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22254 | as_fn_error $? "unknown endianness | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22255 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22256 | esac | 
|  | 22257 |  | 
|  | 22258 |  | 
|  | 22259 | # 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] | 22260 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22261 | if test "x$ac_cv_type_mode_t" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22262 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22263 | else | 
|  | 22264 |  | 
|  | 22265 | cat >>confdefs.h <<_ACEOF | 
|  | 22266 | #define mode_t int | 
|  | 22267 | _ACEOF | 
|  | 22268 |  | 
|  | 22269 | fi | 
|  | 22270 |  | 
|  | 22271 |  | 
|  | 22272 | # 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] | 22273 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22274 | if test "x$ac_cv_type_off_t" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22275 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22276 | else | 
|  | 22277 |  | 
|  | 22278 | cat >>confdefs.h <<_ACEOF | 
|  | 22279 | #define off_t long int | 
|  | 22280 | _ACEOF | 
|  | 22281 |  | 
|  | 22282 | fi | 
|  | 22283 |  | 
|  | 22284 |  | 
|  | 22285 | # 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] | 22286 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22287 | if test "x$ac_cv_type_pid_t" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22288 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22289 | else | 
|  | 22290 |  | 
|  | 22291 | cat >>confdefs.h <<_ACEOF | 
|  | 22292 | #define pid_t int | 
|  | 22293 | _ACEOF | 
|  | 22294 |  | 
|  | 22295 | fi | 
|  | 22296 |  | 
|  | 22297 |  | 
|  | 22298 | # 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] | 22299 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22300 | if test "x$ac_cv_type_size_t" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22301 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22302 | else | 
|  | 22303 |  | 
|  | 22304 | cat >>confdefs.h <<_ACEOF | 
|  | 22305 | #define size_t unsigned int | 
|  | 22306 | _ACEOF | 
|  | 22307 |  | 
|  | 22308 | fi | 
|  | 22309 |  | 
|  | 22310 |  | 
|  | 22311 | # 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] | 22312 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22313 | if test "x$ac_cv_type_ssize_t" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22314 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22315 | else | 
|  | 22316 |  | 
|  | 22317 | cat >>confdefs.h <<_ACEOF | 
|  | 22318 | #define ssize_t int | 
|  | 22319 | _ACEOF | 
|  | 22320 |  | 
|  | 22321 | fi | 
|  | 22322 |  | 
|  | 22323 |  | 
|  | 22324 | # If the C compiler supports a working long double type with more range | 
|  | 22325 | # or precision than the double type, define HAVE_LONG_DOUBLE. | 
|  | 22326 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22327 | { $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] | 22328 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22329 | if ${ac_cv_type_long_double_wider+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22330 | $as_echo_n "(cached) " >&6 | 
|  | 22331 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22332 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22333 | /* end confdefs.h.  */ | 
|  | 22334 | #include <float.h> | 
|  | 22335 | long double const a[] = | 
|  | 22336 | { | 
|  | 22337 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | 
|  | 22338 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | 
|  | 22339 | }; | 
|  | 22340 | long double | 
|  | 22341 | f (long double x) | 
|  | 22342 | { | 
|  | 22343 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | 
|  | 22344 | + (x ? f (x) : 'c')); | 
|  | 22345 | } | 
|  | 22346 |  | 
|  | 22347 | int | 
|  | 22348 | main () | 
|  | 22349 | { | 
|  | 22350 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) | 
|  | 22351 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | 
|  | 22352 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | 
|  | 22353 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | 
|  | 22354 | && (int) LDBL_EPSILON == 0 | 
|  | 22355 | )]; | 
|  | 22356 | test_array [0] = 0 | 
|  | 22357 |  | 
|  | 22358 | ; | 
|  | 22359 | return 0; | 
|  | 22360 | } | 
|  | 22361 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22362 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22363 | ac_cv_type_long_double_wider=yes | 
|  | 22364 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22365 | ac_cv_type_long_double_wider=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 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22369 | { $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] | 22370 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | 
|  | 22371 | if test $ac_cv_type_long_double_wider = yes; then | 
|  | 22372 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22373 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22374 |  | 
|  | 22375 | fi | 
|  | 22376 |  | 
|  | 22377 |  | 
|  | 22378 | # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the | 
|  | 22379 | # C compiler predefines it. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22381 | $as_echo_n "checking whether char is unsigned... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22382 | if ${ac_cv_c_char_unsigned+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22383 | $as_echo_n "(cached) " >&6 | 
|  | 22384 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22386 | /* end confdefs.h.  */ | 
|  | 22387 | $ac_includes_default | 
|  | 22388 | int | 
|  | 22389 | main () | 
|  | 22390 | { | 
|  | 22391 | static int test_array [1 - 2 * !(((char) -1) < 0)]; | 
|  | 22392 | test_array [0] = 0 | 
|  | 22393 |  | 
|  | 22394 | ; | 
|  | 22395 | return 0; | 
|  | 22396 | } | 
|  | 22397 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22398 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22399 | ac_cv_c_char_unsigned=no | 
|  | 22400 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22401 | ac_cv_c_char_unsigned=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22402 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22404 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22405 | { $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] | 22406 | $as_echo "$ac_cv_c_char_unsigned" >&6; } | 
|  | 22407 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22408 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22409 |  | 
|  | 22410 | fi | 
|  | 22411 |  | 
|  | 22412 |  | 
|  | 22413 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT | 
|  | 22414 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22415 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22416 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22417 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22419 | $as_echo_n "checking size of signed short... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22420 | if ${ac_cv_sizeof_signed_short+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22421 | $as_echo_n "(cached) " >&6 | 
|  | 22422 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22423 | 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] | 22424 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22425 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22426 | if test "$ac_cv_type_signed_short" = yes; then | 
|  | 22427 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22428 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22429 | as_fn_error 77 "cannot compute sizeof (signed short) | 
|  | 22430 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22431 | else | 
|  | 22432 | ac_cv_sizeof_signed_short=0 | 
|  | 22433 | fi | 
|  | 22434 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22435 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22436 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22437 | { $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] | 22438 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } | 
|  | 22439 |  | 
|  | 22440 |  | 
|  | 22441 |  | 
|  | 22442 | cat >>confdefs.h <<_ACEOF | 
|  | 22443 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short | 
|  | 22444 | _ACEOF | 
|  | 22445 |  | 
|  | 22446 |  | 
|  | 22447 |  | 
|  | 22448 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT | 
|  | 22449 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22450 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22451 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22452 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22454 | $as_echo_n "checking size of unsigned short... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22455 | if ${ac_cv_sizeof_unsigned_short+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22456 | $as_echo_n "(cached) " >&6 | 
|  | 22457 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22458 | 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] | 22459 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22460 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22461 | if test "$ac_cv_type_unsigned_short" = yes; then | 
|  | 22462 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22463 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22464 | as_fn_error 77 "cannot compute sizeof (unsigned short) | 
|  | 22465 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22466 | else | 
|  | 22467 | ac_cv_sizeof_unsigned_short=0 | 
|  | 22468 | fi | 
|  | 22469 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22470 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22471 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22472 | { $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] | 22473 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | 
|  | 22474 |  | 
|  | 22475 |  | 
|  | 22476 |  | 
|  | 22477 | cat >>confdefs.h <<_ACEOF | 
|  | 22478 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | 
|  | 22479 | _ACEOF | 
|  | 22480 |  | 
|  | 22481 |  | 
|  | 22482 |  | 
|  | 22483 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT | 
|  | 22484 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22485 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22486 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22487 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22489 | $as_echo_n "checking size of signed int... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22490 | if ${ac_cv_sizeof_signed_int+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22491 | $as_echo_n "(cached) " >&6 | 
|  | 22492 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22493 | 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] | 22494 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22495 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22496 | if test "$ac_cv_type_signed_int" = yes; then | 
|  | 22497 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22498 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22499 | as_fn_error 77 "cannot compute sizeof (signed int) | 
|  | 22500 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22501 | else | 
|  | 22502 | ac_cv_sizeof_signed_int=0 | 
|  | 22503 | fi | 
|  | 22504 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22505 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22506 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22507 | { $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] | 22508 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } | 
|  | 22509 |  | 
|  | 22510 |  | 
|  | 22511 |  | 
|  | 22512 | cat >>confdefs.h <<_ACEOF | 
|  | 22513 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int | 
|  | 22514 | _ACEOF | 
|  | 22515 |  | 
|  | 22516 |  | 
|  | 22517 |  | 
|  | 22518 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT | 
|  | 22519 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22520 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22521 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22522 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22524 | $as_echo_n "checking size of unsigned int... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22525 | if ${ac_cv_sizeof_unsigned_int+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22526 | $as_echo_n "(cached) " >&6 | 
|  | 22527 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22528 | 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] | 22529 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22530 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22531 | if test "$ac_cv_type_unsigned_int" = yes; then | 
|  | 22532 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22533 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22534 | as_fn_error 77 "cannot compute sizeof (unsigned int) | 
|  | 22535 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22536 | else | 
|  | 22537 | ac_cv_sizeof_unsigned_int=0 | 
|  | 22538 | fi | 
|  | 22539 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22540 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22541 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22542 | { $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] | 22543 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } | 
|  | 22544 |  | 
|  | 22545 |  | 
|  | 22546 |  | 
|  | 22547 | cat >>confdefs.h <<_ACEOF | 
|  | 22548 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int | 
|  | 22549 | _ACEOF | 
|  | 22550 |  | 
|  | 22551 |  | 
|  | 22552 |  | 
|  | 22553 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG | 
|  | 22554 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22555 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22556 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22557 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22559 | $as_echo_n "checking size of signed long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22560 | if ${ac_cv_sizeof_signed_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22561 | $as_echo_n "(cached) " >&6 | 
|  | 22562 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22563 | 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] | 22564 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22565 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22566 | if test "$ac_cv_type_signed_long" = yes; then | 
|  | 22567 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22568 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22569 | as_fn_error 77 "cannot compute sizeof (signed long) | 
|  | 22570 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22571 | else | 
|  | 22572 | ac_cv_sizeof_signed_long=0 | 
|  | 22573 | fi | 
|  | 22574 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22575 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22576 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22577 | { $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] | 22578 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } | 
|  | 22579 |  | 
|  | 22580 |  | 
|  | 22581 |  | 
|  | 22582 | cat >>confdefs.h <<_ACEOF | 
|  | 22583 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long | 
|  | 22584 | _ACEOF | 
|  | 22585 |  | 
|  | 22586 |  | 
|  | 22587 |  | 
|  | 22588 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG | 
|  | 22589 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22590 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22591 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22592 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22594 | $as_echo_n "checking size of unsigned long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22595 | if ${ac_cv_sizeof_unsigned_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22596 | $as_echo_n "(cached) " >&6 | 
|  | 22597 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22598 | 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] | 22599 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22600 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22601 | if test "$ac_cv_type_unsigned_long" = yes; then | 
|  | 22602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22604 | as_fn_error 77 "cannot compute sizeof (unsigned long) | 
|  | 22605 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22606 | else | 
|  | 22607 | ac_cv_sizeof_unsigned_long=0 | 
|  | 22608 | fi | 
|  | 22609 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22610 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22611 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22612 | { $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] | 22613 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | 
|  | 22614 |  | 
|  | 22615 |  | 
|  | 22616 |  | 
|  | 22617 | cat >>confdefs.h <<_ACEOF | 
|  | 22618 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | 
|  | 22619 | _ACEOF | 
|  | 22620 |  | 
|  | 22621 |  | 
|  | 22622 |  | 
|  | 22623 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If | 
|  | 22624 | # 'signed long long' is not supported then the value defined is zero. | 
|  | 22625 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22626 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22627 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22628 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22629 | { $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] | 22630 | $as_echo_n "checking size of signed long long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22631 | if ${ac_cv_sizeof_signed_long_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22632 | $as_echo_n "(cached) " >&6 | 
|  | 22633 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22634 | 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] | 22635 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22636 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22637 | if test "$ac_cv_type_signed_long_long" = yes; then | 
|  | 22638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22639 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22640 | as_fn_error 77 "cannot compute sizeof (signed long long) | 
|  | 22641 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22642 | else | 
|  | 22643 | ac_cv_sizeof_signed_long_long=0 | 
|  | 22644 | fi | 
|  | 22645 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22646 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22647 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22648 | { $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] | 22649 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } | 
|  | 22650 |  | 
|  | 22651 |  | 
|  | 22652 |  | 
|  | 22653 | cat >>confdefs.h <<_ACEOF | 
|  | 22654 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long | 
|  | 22655 | _ACEOF | 
|  | 22656 |  | 
|  | 22657 |  | 
|  | 22658 |  | 
|  | 22659 | # Obtain size of a 'unsigned long long' and define as | 
|  | 22660 | # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not | 
|  | 22661 | # supported then the value defined is zero. | 
|  | 22662 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22665 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22666 | { $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] | 22667 | $as_echo_n "checking size of unsigned long long... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22668 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22669 | $as_echo_n "(cached) " >&6 | 
|  | 22670 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22671 | 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] | 22672 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22673 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22674 | if test "$ac_cv_type_unsigned_long_long" = yes; then | 
|  | 22675 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22676 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22677 | as_fn_error 77 "cannot compute sizeof (unsigned long long) | 
|  | 22678 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22679 | else | 
|  | 22680 | ac_cv_sizeof_unsigned_long_long=0 | 
|  | 22681 | fi | 
|  | 22682 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22683 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22684 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22685 | { $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] | 22686 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } | 
|  | 22687 |  | 
|  | 22688 |  | 
|  | 22689 |  | 
|  | 22690 | cat >>confdefs.h <<_ACEOF | 
|  | 22691 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long | 
|  | 22692 | _ACEOF | 
|  | 22693 |  | 
|  | 22694 |  | 
|  | 22695 |  | 
|  | 22696 | # Obtain size of off_t and define as SIZEOF_OFF_T | 
|  | 22697 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22698 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22699 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22700 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22702 | $as_echo_n "checking size of off_t... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22703 | if ${ac_cv_sizeof_off_t+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22704 | $as_echo_n "(cached) " >&6 | 
|  | 22705 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22706 | 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] | 22707 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22708 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22709 | if test "$ac_cv_type_off_t" = yes; then | 
|  | 22710 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22711 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22712 | as_fn_error 77 "cannot compute sizeof (off_t) | 
|  | 22713 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22714 | else | 
|  | 22715 | ac_cv_sizeof_off_t=0 | 
|  | 22716 | fi | 
|  | 22717 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22718 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22719 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22720 | { $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] | 22721 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | 
|  | 22722 |  | 
|  | 22723 |  | 
|  | 22724 |  | 
|  | 22725 | cat >>confdefs.h <<_ACEOF | 
|  | 22726 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
|  | 22727 | _ACEOF | 
|  | 22728 |  | 
|  | 22729 |  | 
|  | 22730 |  | 
|  | 22731 | # Obtain size of size_t and define as SIZEOF_SIZE_T | 
|  | 22732 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22733 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22734 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22735 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22737 | $as_echo_n "checking size of size_t... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22738 | if ${ac_cv_sizeof_size_t+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22739 | $as_echo_n "(cached) " >&6 | 
|  | 22740 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22741 | 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] | 22742 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22743 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22744 | if test "$ac_cv_type_size_t" = yes; then | 
|  | 22745 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22746 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22747 | as_fn_error 77 "cannot compute sizeof (size_t) | 
|  | 22748 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22749 | else | 
|  | 22750 | ac_cv_sizeof_size_t=0 | 
|  | 22751 | fi | 
|  | 22752 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22753 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22754 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22755 | { $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] | 22756 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | 
|  | 22757 |  | 
|  | 22758 |  | 
|  | 22759 |  | 
|  | 22760 | cat >>confdefs.h <<_ACEOF | 
|  | 22761 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | 
|  | 22762 | _ACEOF | 
|  | 22763 |  | 
|  | 22764 |  | 
|  | 22765 |  | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 22766 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T | 
|  | 22767 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22768 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22769 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22770 | # This bug is HP SR number 8606223364. | 
|  | 22771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 | 
|  | 22772 | $as_echo_n "checking size of ssize_t... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22773 | if ${ac_cv_sizeof_ssize_t+:} false; then : | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 22774 | $as_echo_n "(cached) " >&6 | 
|  | 22775 | else | 
|  | 22776 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then : | 
|  | 22777 |  | 
|  | 22778 | else | 
|  | 22779 | if test "$ac_cv_type_ssize_t" = yes; then | 
|  | 22780 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
|  | 22781 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22782 | as_fn_error 77 "cannot compute sizeof (ssize_t) | 
|  | 22783 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 330e935 | 2010-06-01 18:42:49 +0000 | [diff] [blame] | 22784 | else | 
|  | 22785 | ac_cv_sizeof_ssize_t=0 | 
|  | 22786 | fi | 
|  | 22787 | fi | 
|  | 22788 |  | 
|  | 22789 | fi | 
|  | 22790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 | 
|  | 22791 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } | 
|  | 22792 |  | 
|  | 22793 |  | 
|  | 22794 |  | 
|  | 22795 | cat >>confdefs.h <<_ACEOF | 
|  | 22796 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t | 
|  | 22797 | _ACEOF | 
|  | 22798 |  | 
|  | 22799 |  | 
|  | 22800 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22801 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP | 
|  | 22802 | # The cast to long int works around a bug in the HP C Compiler | 
|  | 22803 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | 
|  | 22804 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | 
|  | 22805 | # This bug is HP SR number 8606223364. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22807 | $as_echo_n "checking size of unsigned int*... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22808 | if ${ac_cv_sizeof_unsigned_intp+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22809 | $as_echo_n "(cached) " >&6 | 
|  | 22810 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22811 | 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] | 22812 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22813 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22814 | if test "$ac_cv_type_unsigned_intp" = yes; then | 
|  | 22815 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22816 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22817 | as_fn_error 77 "cannot compute sizeof (unsigned int*) | 
|  | 22818 | See \`config.log' for more details" "$LINENO" 5; } | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22819 | else | 
|  | 22820 | ac_cv_sizeof_unsigned_intp=0 | 
|  | 22821 | fi | 
|  | 22822 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22823 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22824 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22825 | { $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] | 22826 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } | 
|  | 22827 |  | 
|  | 22828 |  | 
|  | 22829 |  | 
|  | 22830 | cat >>confdefs.h <<_ACEOF | 
|  | 22831 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp | 
|  | 22832 | _ACEOF | 
|  | 22833 |  | 
|  | 22834 |  | 
|  | 22835 |  | 
|  | 22836 | # | 
|  | 22837 | # Compute sized types for current CPU and compiler options. | 
|  | 22838 | # | 
|  | 22839 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22840 | { $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] | 22841 | $as_echo_n "checking for signed 8-bit type... " >&6; } | 
|  | 22842 | INT8_T='signed char' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22844 | $as_echo "$INT8_T" >&6; } | 
|  | 22845 |  | 
|  | 22846 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22847 | { $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] | 22848 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } | 
|  | 22849 | UINT8_T='unsigned char' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22851 | $as_echo "$UINT8_T" >&6; } | 
|  | 22852 |  | 
|  | 22853 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22854 | { $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] | 22855 | $as_echo_n "checking for signed 16-bit type... " >&6; } | 
|  | 22856 | INT16_T='signed short' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22858 | $as_echo "$INT16_T" >&6; } | 
|  | 22859 |  | 
|  | 22860 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22861 | { $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] | 22862 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } | 
|  | 22863 | UINT16_T='unsigned short' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22865 | $as_echo "$UINT16_T" >&6; } | 
|  | 22866 |  | 
|  | 22867 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22868 | { $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] | 22869 | $as_echo_n "checking for signed 32-bit type... " >&6; } | 
|  | 22870 | INT32_T='none' | 
|  | 22871 | if test $ac_cv_sizeof_signed_int -eq 4; then | 
|  | 22872 | INT32_T='signed int' | 
|  | 22873 | elif test $ac_cv_sizeof_signed_long -eq 4; then | 
|  | 22874 | INT32_T='signed long' | 
|  | 22875 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22877 | $as_echo "$INT32_T" >&6; } | 
|  | 22878 |  | 
|  | 22879 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22880 | { $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] | 22881 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } | 
|  | 22882 | UINT32_T='none' | 
|  | 22883 | if test $ac_cv_sizeof_unsigned_int -eq 4; then | 
|  | 22884 | UINT32_T='unsigned int' | 
|  | 22885 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then | 
|  | 22886 | UINT32_T='unsigned long' | 
|  | 22887 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22889 | $as_echo "$UINT32_T" >&6; } | 
|  | 22890 |  | 
|  | 22891 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22892 | { $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] | 22893 | $as_echo_n "checking for signed 64-bit type... " >&6; } | 
|  | 22894 | INT64_T='none' | 
|  | 22895 | if test $ac_cv_sizeof_signed_long -eq 8; then | 
|  | 22896 | INT64_T='signed long' | 
|  | 22897 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then | 
|  | 22898 | INT64_T='signed long long' | 
|  | 22899 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22901 | $as_echo "$INT64_T" >&6; } | 
|  | 22902 |  | 
|  | 22903 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22904 | { $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] | 22905 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } | 
|  | 22906 | UINT64_T='none' | 
|  | 22907 | if test $ac_cv_sizeof_unsigned_long -eq 8; then | 
|  | 22908 | UINT64_T='unsigned long' | 
|  | 22909 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then | 
|  | 22910 | UINT64_T='unsigned long long' | 
|  | 22911 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22913 | $as_echo "$UINT64_T" >&6; } | 
|  | 22914 |  | 
|  | 22915 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22917 | $as_echo_n "checking for unsigned maximum type... " >&6; } | 
|  | 22918 | UINTMAX_T='none' | 
|  | 22919 | if test "$UINT64_T" != 'none'; then | 
|  | 22920 | UINTMAX_T=$UINT64_T | 
|  | 22921 | elif test "$UINT32_T" != 'none'; then | 
|  | 22922 | UINTMAX_T=$UINT32_T | 
|  | 22923 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22925 | $as_echo "$UINTMAX_T" >&6; } | 
|  | 22926 |  | 
|  | 22927 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22929 | $as_echo_n "checking for pointer difference type... " >&6; } | 
|  | 22930 | UINTPTR_T='none' | 
|  | 22931 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then | 
|  | 22932 | UINTPTR_T='unsigned long' | 
|  | 22933 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then | 
|  | 22934 | UINTPTR_T='unsigned long long' | 
|  | 22935 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22937 | $as_echo "$UINTPTR_T" >&6; } | 
|  | 22938 |  | 
|  | 22939 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22940 | { $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] | 22941 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22943 | /* end confdefs.h.  */ | 
|  | 22944 |  | 
|  | 22945 | int | 
|  | 22946 | main () | 
|  | 22947 | { | 
|  | 22948 | { const char *func = __func__; return(func != 0 ? 0 : 1); } | 
|  | 22949 | ; | 
|  | 22950 | return 0; | 
|  | 22951 | } | 
|  | 22952 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22953 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 22954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22955 | $as_echo "yes" >&6; } | 
|  | 22956 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22958 | $as_echo "no" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22959 | { $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] | 22960 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22962 | /* end confdefs.h.  */ | 
|  | 22963 |  | 
|  | 22964 | int | 
|  | 22965 | main () | 
|  | 22966 | { | 
|  | 22967 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } | 
|  | 22968 | ; | 
|  | 22969 | return 0; | 
|  | 22970 | } | 
|  | 22971 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22972 | if ac_fn_c_try_compile "$LINENO"; then : | 
|  | 22973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22974 | $as_echo "yes" >&6; } | 
|  | 22975 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22976 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22977 |  | 
|  | 22978 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22980 | $as_echo "no" >&6; } | 
|  | 22981 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22982 | $as_echo "#define __func__ __FILE__" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22983 |  | 
|  | 22984 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22986 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 22988 |  | 
|  | 22989 | ######## | 
|  | 22990 | # | 
|  | 22991 | # Check for functions | 
|  | 22992 | # | 
|  | 22993 | ######## | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 22994 | for ac_header in stdlib.h unistd.h | 
|  | 22995 | do : | 
|  | 22996 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 22997 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22998 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 22999 | cat >>confdefs.h <<_ACEOF | 
|  | 23000 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 23001 | _ACEOF | 
|  | 23002 |  | 
|  | 23003 | fi | 
|  | 23004 |  | 
|  | 23005 | done | 
|  | 23006 |  | 
|  | 23007 | for ac_func in getpagesize | 
|  | 23008 | do : | 
|  | 23009 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23010 | if test "x$ac_cv_func_getpagesize" = xyes; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23011 | cat >>confdefs.h <<_ACEOF | 
|  | 23012 | #define HAVE_GETPAGESIZE 1 | 
|  | 23013 | _ACEOF | 
|  | 23014 |  | 
|  | 23015 | fi | 
|  | 23016 | done | 
|  | 23017 |  | 
|  | 23018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 | 
|  | 23019 | $as_echo_n "checking for working mmap file i/o... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23020 | if ${magick_cv_func_mmap_fileio+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 23021 | $as_echo_n "(cached) " >&6 | 
|  | 23022 | else | 
|  | 23023 | if test "$cross_compiling" = yes; then : | 
|  | 23024 | magick_cv_func_mmap_fileio=no | 
|  | 23025 | else | 
|  | 23026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 23027 | /* end confdefs.h.  */ | 
|  | 23028 | $ac_includes_default | 
|  | 23029 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 23030 | #undef malloc | 
|  | 23031 |  | 
|  | 23032 | /* | 
|  | 23033 | This test is derived from GNU Autoconf's similar macro. | 
|  | 23034 | The purpose of this test is to verify that files may be memory | 
|  | 23035 | mapped, and that memory mapping and file I/O are coherent. | 
|  | 23036 |  | 
|  | 23037 | The test creates a test file, memory maps the file, updates | 
|  | 23038 | the file using the memory map, and then reads the file using | 
|  | 23039 | file I/O to verify that the file contains the updates. | 
|  | 23040 | */ | 
|  | 23041 |  | 
|  | 23042 | #include <fcntl.h> | 
|  | 23043 | #include <sys/mman.h> | 
|  | 23044 |  | 
|  | 23045 | #if !STDC_HEADERS && !HAVE_STDLIB_H | 
|  | 23046 | char *malloc (); | 
|  | 23047 | #endif | 
|  | 23048 |  | 
|  | 23049 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 23050 | #if !HAVE_GETPAGESIZE | 
|  | 23051 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
|  | 23052 | # if !HAVE_SYS_PARAM_H | 
|  | 23053 | #  define HAVE_SYS_PARAM_H 1 | 
|  | 23054 | # endif | 
|  | 23055 |  | 
|  | 23056 | # ifdef _SC_PAGESIZE | 
|  | 23057 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 23058 | # else /* no _SC_PAGESIZE */ | 
|  | 23059 | #  if HAVE_SYS_PARAM_H | 
|  | 23060 | #   include <sys/param.h> | 
|  | 23061 | #   ifdef EXEC_PAGESIZE | 
|  | 23062 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 23063 | #   else /* no EXEC_PAGESIZE */ | 
|  | 23064 | #    ifdef NBPG | 
|  | 23065 | #     define getpagesize() NBPG * CLSIZE | 
|  | 23066 | #     ifndef CLSIZE | 
|  | 23067 | #      define CLSIZE 1 | 
|  | 23068 | #     endif /* no CLSIZE */ | 
|  | 23069 | #    else /* no NBPG */ | 
|  | 23070 | #     ifdef NBPC | 
|  | 23071 | #      define getpagesize() NBPC | 
|  | 23072 | #     else /* no NBPC */ | 
|  | 23073 | #      ifdef PAGESIZE | 
|  | 23074 | #       define getpagesize() PAGESIZE | 
|  | 23075 | #      endif /* PAGESIZE */ | 
|  | 23076 | #     endif /* no NBPC */ | 
|  | 23077 | #    endif /* no NBPG */ | 
|  | 23078 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 23079 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 23080 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 23081 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 23082 | # endif /* no _SC_PAGESIZE */ | 
|  | 23083 |  | 
|  | 23084 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 23085 |  | 
|  | 23086 | int | 
|  | 23087 | main () | 
|  | 23088 | { | 
|  | 23089 | char *data, *data2, *data3; | 
|  | 23090 | int i, pagesize; | 
|  | 23091 | int fd; | 
|  | 23092 |  | 
|  | 23093 | pagesize = getpagesize (); | 
|  | 23094 |  | 
|  | 23095 | /* First, make a file with some known garbage in it. */ | 
|  | 23096 | data = (char *) malloc (pagesize); | 
|  | 23097 | if (!data) | 
|  | 23098 | exit (1); | 
|  | 23099 | for (i = 0; i < pagesize; ++i) | 
|  | 23100 | *(data + i) = rand (); | 
|  | 23101 | umask (0); | 
|  | 23102 | fd = creat ("conftest.mmap", 0600); | 
|  | 23103 | if (fd < 0) | 
|  | 23104 | exit (1); | 
|  | 23105 | if (write (fd, data, pagesize) != pagesize) | 
|  | 23106 | exit (1); | 
|  | 23107 | close (fd); | 
|  | 23108 |  | 
|  | 23109 | /* Mmap the file as read/write/shared and verify that we see the | 
|  | 23110 | same garbage. */ | 
|  | 23111 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 23112 | if (fd < 0) | 
|  | 23113 | exit (1); | 
|  | 23114 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); | 
|  | 23115 | if (data2 == 0) | 
|  | 23116 | exit (1); | 
|  | 23117 | for (i = 0; i < pagesize; ++i) | 
|  | 23118 | if (*(data + i) != *(data2 + i)) | 
|  | 23119 | exit (1); | 
|  | 23120 |  | 
|  | 23121 | /* Finally, make sure that changes to the mapped area | 
|  | 23122 | percolate back to the file as seen by read().  */ | 
|  | 23123 | for (i = 0; i < pagesize; ++i) | 
|  | 23124 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 23125 | data3 = (char *) malloc (pagesize); | 
|  | 23126 | if (!data3) | 
|  | 23127 | exit (1); | 
|  | 23128 | if (read (fd, data3, pagesize) != pagesize) | 
|  | 23129 | exit (1); | 
|  | 23130 | for (i = 0; i < pagesize; ++i) | 
|  | 23131 | if (*(data2 + i) != *(data3 + i)) | 
|  | 23132 | exit (1); | 
|  | 23133 | close (fd); | 
|  | 23134 | exit (0); | 
|  | 23135 | } | 
|  | 23136 | _ACEOF | 
|  | 23137 | if ac_fn_c_try_run "$LINENO"; then : | 
|  | 23138 | magick_cv_func_mmap_fileio=yes | 
|  | 23139 | else | 
|  | 23140 | magick_cv_func_mmap_fileio=no | 
|  | 23141 | fi | 
|  | 23142 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23143 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
|  | 23144 | fi | 
|  | 23145 |  | 
|  | 23146 | fi | 
|  | 23147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 | 
|  | 23148 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } | 
|  | 23149 | if test $magick_cv_func_mmap_fileio = yes; then | 
|  | 23150 |  | 
|  | 23151 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h | 
|  | 23152 |  | 
|  | 23153 | fi | 
|  | 23154 | rm -f conftest.mmap | 
|  | 23155 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23157 | $as_echo_n "checking whether closedir returns void... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23158 | if ${ac_cv_func_closedir_void+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23159 | $as_echo_n "(cached) " >&6 | 
|  | 23160 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23161 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23162 | ac_cv_func_closedir_void=yes | 
|  | 23163 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23165 | /* end confdefs.h.  */ | 
|  | 23166 | $ac_includes_default | 
|  | 23167 | #include <$ac_header_dirent> | 
|  | 23168 | #ifndef __cplusplus | 
|  | 23169 | int closedir (); | 
|  | 23170 | #endif | 
|  | 23171 |  | 
|  | 23172 | int | 
|  | 23173 | main () | 
|  | 23174 | { | 
|  | 23175 | return closedir (opendir (".")) != 0; | 
|  | 23176 | ; | 
|  | 23177 | return 0; | 
|  | 23178 | } | 
|  | 23179 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23180 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23181 | ac_cv_func_closedir_void=no | 
|  | 23182 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23183 | ac_cv_func_closedir_void=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23184 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23185 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23186 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23187 | fi | 
|  | 23188 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23189 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23190 | { $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] | 23191 | $as_echo "$ac_cv_func_closedir_void" >&6; } | 
|  | 23192 | if test $ac_cv_func_closedir_void = yes; then | 
|  | 23193 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23194 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23195 |  | 
|  | 23196 | fi | 
|  | 23197 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23198 |  | 
|  | 23199 |  | 
|  | 23200 |  | 
|  | 23201 | for ac_header in $ac_header_list | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23202 | do : | 
|  | 23203 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23204 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | 
|  | 23205 | " | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23206 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23207 | cat >>confdefs.h <<_ACEOF | 
|  | 23208 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 23209 | _ACEOF | 
|  | 23210 |  | 
|  | 23211 | fi | 
|  | 23212 |  | 
|  | 23213 | done | 
|  | 23214 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23215 |  | 
|  | 23216 |  | 
|  | 23217 |  | 
|  | 23218 |  | 
|  | 23219 |  | 
|  | 23220 |  | 
|  | 23221 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23222 | for ac_func in getpagesize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23223 | do : | 
|  | 23224 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23225 | if test "x$ac_cv_func_getpagesize" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23226 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23227 | #define HAVE_GETPAGESIZE 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23228 | _ACEOF | 
|  | 23229 |  | 
|  | 23230 | fi | 
|  | 23231 | done | 
|  | 23232 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23234 | $as_echo_n "checking for working mmap... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23235 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23236 | $as_echo_n "(cached) " >&6 | 
|  | 23237 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23238 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23239 | ac_cv_func_mmap_fixed_mapped=no | 
|  | 23240 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23242 | /* end confdefs.h.  */ | 
|  | 23243 | $ac_includes_default | 
|  | 23244 | /* malloc might have been renamed as rpl_malloc. */ | 
|  | 23245 | #undef malloc | 
|  | 23246 |  | 
|  | 23247 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
|  | 23248 | Here is a matrix of mmap possibilities: | 
|  | 23249 | mmap private not fixed | 
|  | 23250 | mmap private fixed at somewhere currently unmapped | 
|  | 23251 | mmap private fixed at somewhere already mapped | 
|  | 23252 | mmap shared not fixed | 
|  | 23253 | mmap shared fixed at somewhere currently unmapped | 
|  | 23254 | mmap shared fixed at somewhere already mapped | 
|  | 23255 | For private mappings, we should verify that changes cannot be read() | 
|  | 23256 | back from the file, nor mmap's back from the file at a different | 
|  | 23257 | address.  (There have been systems where private was not correctly | 
|  | 23258 | implemented like the infamous i386 svr4.0, and systems where the | 
|  | 23259 | VM page cache was not coherent with the file system buffer cache | 
|  | 23260 | like early versions of FreeBSD and possibly contemporary NetBSD.) | 
|  | 23261 | For shared mappings, we should conversely verify that changes get | 
|  | 23262 | propagated back to all the places they're supposed to be. | 
|  | 23263 |  | 
|  | 23264 | Grep wants private fixed already mapped. | 
|  | 23265 | The main things grep needs to know about mmap are: | 
|  | 23266 | * does it exist and is it safe to write into the mmap'd area | 
|  | 23267 | * how to use it (BSD variants)  */ | 
|  | 23268 |  | 
|  | 23269 | #include <fcntl.h> | 
|  | 23270 | #include <sys/mman.h> | 
|  | 23271 |  | 
|  | 23272 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H | 
|  | 23273 | char *malloc (); | 
|  | 23274 | #endif | 
|  | 23275 |  | 
|  | 23276 | /* This mess was copied from the GNU getpagesize.h.  */ | 
|  | 23277 | #ifndef HAVE_GETPAGESIZE | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23278 | # ifdef _SC_PAGESIZE | 
|  | 23279 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
|  | 23280 | # else /* no _SC_PAGESIZE */ | 
|  | 23281 | #  ifdef HAVE_SYS_PARAM_H | 
|  | 23282 | #   include <sys/param.h> | 
|  | 23283 | #   ifdef EXEC_PAGESIZE | 
|  | 23284 | #    define getpagesize() EXEC_PAGESIZE | 
|  | 23285 | #   else /* no EXEC_PAGESIZE */ | 
|  | 23286 | #    ifdef NBPG | 
|  | 23287 | #     define getpagesize() NBPG * CLSIZE | 
|  | 23288 | #     ifndef CLSIZE | 
|  | 23289 | #      define CLSIZE 1 | 
|  | 23290 | #     endif /* no CLSIZE */ | 
|  | 23291 | #    else /* no NBPG */ | 
|  | 23292 | #     ifdef NBPC | 
|  | 23293 | #      define getpagesize() NBPC | 
|  | 23294 | #     else /* no NBPC */ | 
|  | 23295 | #      ifdef PAGESIZE | 
|  | 23296 | #       define getpagesize() PAGESIZE | 
|  | 23297 | #      endif /* PAGESIZE */ | 
|  | 23298 | #     endif /* no NBPC */ | 
|  | 23299 | #    endif /* no NBPG */ | 
|  | 23300 | #   endif /* no EXEC_PAGESIZE */ | 
|  | 23301 | #  else /* no HAVE_SYS_PARAM_H */ | 
|  | 23302 | #   define getpagesize() 8192	/* punt totally */ | 
|  | 23303 | #  endif /* no HAVE_SYS_PARAM_H */ | 
|  | 23304 | # endif /* no _SC_PAGESIZE */ | 
|  | 23305 |  | 
|  | 23306 | #endif /* no HAVE_GETPAGESIZE */ | 
|  | 23307 |  | 
|  | 23308 | int | 
|  | 23309 | main () | 
|  | 23310 | { | 
|  | 23311 | char *data, *data2, *data3; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 23312 | const char *cdata2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23313 | int i, pagesize; | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23314 | int fd, fd2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23315 |  | 
|  | 23316 | pagesize = getpagesize (); | 
|  | 23317 |  | 
|  | 23318 | /* First, make a file with some known garbage in it. */ | 
|  | 23319 | data = (char *) malloc (pagesize); | 
|  | 23320 | if (!data) | 
|  | 23321 | return 1; | 
|  | 23322 | for (i = 0; i < pagesize; ++i) | 
|  | 23323 | *(data + i) = rand (); | 
|  | 23324 | umask (0); | 
|  | 23325 | fd = creat ("conftest.mmap", 0600); | 
|  | 23326 | if (fd < 0) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23327 | return 2; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23328 | if (write (fd, data, pagesize) != pagesize) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23329 | return 3; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23330 | close (fd); | 
|  | 23331 |  | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23332 | /* Next, check that the tail of a page is zero-filled.  File must have | 
|  | 23333 | non-zero length, otherwise we risk SIGBUS for entire page.  */ | 
|  | 23334 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | 
|  | 23335 | if (fd2 < 0) | 
|  | 23336 | return 4; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 23337 | cdata2 = ""; | 
|  | 23338 | if (write (fd2, cdata2, 1) != 1) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23339 | return 5; | 
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 23340 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23341 | if (data2 == MAP_FAILED) | 
|  | 23342 | return 6; | 
|  | 23343 | for (i = 0; i < pagesize; ++i) | 
|  | 23344 | if (*(data2 + i)) | 
|  | 23345 | return 7; | 
|  | 23346 | close (fd2); | 
|  | 23347 | if (munmap (data2, pagesize)) | 
|  | 23348 | return 8; | 
|  | 23349 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23350 | /* Next, try to mmap the file at a fixed address which already has | 
|  | 23351 | something else allocated at it.  If we can, also make sure that | 
|  | 23352 | we see the same garbage.  */ | 
|  | 23353 | fd = open ("conftest.mmap", O_RDWR); | 
|  | 23354 | if (fd < 0) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23355 | return 9; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23356 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | 
|  | 23357 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23358 | return 10; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23359 | for (i = 0; i < pagesize; ++i) | 
|  | 23360 | if (*(data + i) != *(data2 + i)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23361 | return 11; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23362 |  | 
|  | 23363 | /* Finally, make sure that changes to the mapped area do not | 
|  | 23364 | percolate back to the file as seen by read().  (This is a bug on | 
|  | 23365 | some variants of i386 svr4.0.)  */ | 
|  | 23366 | for (i = 0; i < pagesize; ++i) | 
|  | 23367 | *(data2 + i) = *(data2 + i) + 1; | 
|  | 23368 | data3 = (char *) malloc (pagesize); | 
|  | 23369 | if (!data3) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23370 | return 12; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23371 | if (read (fd, data3, pagesize) != pagesize) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23372 | return 13; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23373 | for (i = 0; i < pagesize; ++i) | 
|  | 23374 | if (*(data + i) != *(data3 + i)) | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23375 | return 14; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23376 | close (fd); | 
|  | 23377 | return 0; | 
|  | 23378 | } | 
|  | 23379 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23380 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23381 | ac_cv_func_mmap_fixed_mapped=yes | 
|  | 23382 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23383 | ac_cv_func_mmap_fixed_mapped=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23384 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23385 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23386 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23387 | fi | 
|  | 23388 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23389 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23390 | { $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] | 23391 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | 
|  | 23392 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
|  | 23393 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23394 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23395 |  | 
|  | 23396 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 23397 | rm -f conftest.mmap conftest.txt | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23398 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23399 | for ac_header in vfork.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23400 | do : | 
|  | 23401 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23402 | if test "x$ac_cv_header_vfork_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23403 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23404 | #define HAVE_VFORK_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23405 | _ACEOF | 
|  | 23406 |  | 
|  | 23407 | fi | 
|  | 23408 |  | 
|  | 23409 | done | 
|  | 23410 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23411 | for ac_func in fork vfork | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23412 | do : | 
|  | 23413 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 23414 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23415 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23416 | cat >>confdefs.h <<_ACEOF | 
|  | 23417 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 23418 | _ACEOF | 
|  | 23419 |  | 
|  | 23420 | fi | 
|  | 23421 | done | 
|  | 23422 |  | 
|  | 23423 | if test "x$ac_cv_func_fork" = xyes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23425 | $as_echo_n "checking for working fork... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23426 | if ${ac_cv_func_fork_works+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23427 | $as_echo_n "(cached) " >&6 | 
|  | 23428 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23429 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23430 | ac_cv_func_fork_works=cross | 
|  | 23431 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23433 | /* end confdefs.h.  */ | 
|  | 23434 | $ac_includes_default | 
|  | 23435 | int | 
|  | 23436 | main () | 
|  | 23437 | { | 
|  | 23438 |  | 
|  | 23439 | /* By Ruediger Kuhlmann. */ | 
|  | 23440 | return fork () < 0; | 
|  | 23441 |  | 
|  | 23442 | ; | 
|  | 23443 | return 0; | 
|  | 23444 | } | 
|  | 23445 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23446 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23447 | ac_cv_func_fork_works=yes | 
|  | 23448 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23449 | ac_cv_func_fork_works=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23450 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23451 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23452 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23453 | fi | 
|  | 23454 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23455 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23456 | { $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] | 23457 | $as_echo "$ac_cv_func_fork_works" >&6; } | 
|  | 23458 |  | 
|  | 23459 | else | 
|  | 23460 | ac_cv_func_fork_works=$ac_cv_func_fork | 
|  | 23461 | fi | 
|  | 23462 | if test "x$ac_cv_func_fork_works" = xcross; then | 
|  | 23463 | case $host in | 
|  | 23464 | *-*-amigaos* | *-*-msdosdjgpp*) | 
|  | 23465 | # Override, as these systems have only a dummy fork() stub | 
|  | 23466 | ac_cv_func_fork_works=no | 
|  | 23467 | ;; | 
|  | 23468 | *) | 
|  | 23469 | ac_cv_func_fork_works=yes | 
|  | 23470 | ;; | 
|  | 23471 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23472 | { $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] | 23473 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | 
|  | 23474 | fi | 
|  | 23475 | ac_cv_func_vfork_works=$ac_cv_func_vfork | 
|  | 23476 | if test "x$ac_cv_func_vfork" = xyes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23478 | $as_echo_n "checking for working vfork... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23479 | if ${ac_cv_func_vfork_works+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23480 | $as_echo_n "(cached) " >&6 | 
|  | 23481 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23482 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23483 | ac_cv_func_vfork_works=cross | 
|  | 23484 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23486 | /* end confdefs.h.  */ | 
|  | 23487 | /* Thanks to Paul Eggert for this test.  */ | 
|  | 23488 | $ac_includes_default | 
|  | 23489 | #include <sys/wait.h> | 
|  | 23490 | #ifdef HAVE_VFORK_H | 
|  | 23491 | # include <vfork.h> | 
|  | 23492 | #endif | 
|  | 23493 | /* On some sparc systems, changes by the child to local and incoming | 
|  | 23494 | argument registers are propagated back to the parent.  The compiler | 
|  | 23495 | is told about this with #include <vfork.h>, but some compilers | 
|  | 23496 | (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a | 
|  | 23497 | static variable whose address is put into a register that is | 
|  | 23498 | clobbered by the vfork.  */ | 
|  | 23499 | static void | 
|  | 23500 | #ifdef __cplusplus | 
|  | 23501 | sparc_address_test (int arg) | 
|  | 23502 | # else | 
|  | 23503 | sparc_address_test (arg) int arg; | 
|  | 23504 | #endif | 
|  | 23505 | { | 
|  | 23506 | static pid_t child; | 
|  | 23507 | if (!child) { | 
|  | 23508 | child = vfork (); | 
|  | 23509 | if (child < 0) { | 
|  | 23510 | perror ("vfork"); | 
|  | 23511 | _exit(2); | 
|  | 23512 | } | 
|  | 23513 | if (!child) { | 
|  | 23514 | arg = getpid(); | 
|  | 23515 | write(-1, "", 0); | 
|  | 23516 | _exit (arg); | 
|  | 23517 | } | 
|  | 23518 | } | 
|  | 23519 | } | 
|  | 23520 |  | 
|  | 23521 | int | 
|  | 23522 | main () | 
|  | 23523 | { | 
|  | 23524 | pid_t parent = getpid (); | 
|  | 23525 | pid_t child; | 
|  | 23526 |  | 
|  | 23527 | sparc_address_test (0); | 
|  | 23528 |  | 
|  | 23529 | child = vfork (); | 
|  | 23530 |  | 
|  | 23531 | if (child == 0) { | 
|  | 23532 | /* Here is another test for sparc vfork register problems.  This | 
|  | 23533 | test uses lots of local variables, at least as many local | 
|  | 23534 | variables as main has allocated so far including compiler | 
|  | 23535 | temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris | 
|  | 23536 | 4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should | 
|  | 23537 | reuse the register of parent for one of the local variables, | 
|  | 23538 | since it will think that parent can't possibly be used any more | 
|  | 23539 | in this routine.  Assigning to the local variable will thus | 
|  | 23540 | munge parent in the parent process.  */ | 
|  | 23541 | pid_t | 
|  | 23542 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | 
|  | 23543 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | 
|  | 23544 | /* Convince the compiler that p..p7 are live; otherwise, it might | 
|  | 23545 | use the same hardware register for all 8 local variables.  */ | 
|  | 23546 | if (p != p1 || p != p2 || p != p3 || p != p4 | 
|  | 23547 | || p != p5 || p != p6 || p != p7) | 
|  | 23548 | _exit(1); | 
|  | 23549 |  | 
|  | 23550 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | 
|  | 23551 | from child file descriptors.  If the child closes a descriptor | 
|  | 23552 | before it execs or exits, this munges the parent's descriptor | 
|  | 23553 | as well.  Test for this by closing stdout in the child.  */ | 
|  | 23554 | _exit(close(fileno(stdout)) != 0); | 
|  | 23555 | } else { | 
|  | 23556 | int status; | 
|  | 23557 | struct stat st; | 
|  | 23558 |  | 
|  | 23559 | while (wait(&status) != child) | 
|  | 23560 | ; | 
|  | 23561 | return ( | 
|  | 23562 | /* Was there some problem with vforking?  */ | 
|  | 23563 | child < 0 | 
|  | 23564 |  | 
|  | 23565 | /* Did the child fail?  (This shouldn't happen.)  */ | 
|  | 23566 | || status | 
|  | 23567 |  | 
|  | 23568 | /* Did the vfork/compiler bug occur?  */ | 
|  | 23569 | || parent != getpid() | 
|  | 23570 |  | 
|  | 23571 | /* Did the file descriptor bug occur?  */ | 
|  | 23572 | || fstat(fileno(stdout), &st) != 0 | 
|  | 23573 | ); | 
|  | 23574 | } | 
|  | 23575 | } | 
|  | 23576 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23577 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23578 | ac_cv_func_vfork_works=yes | 
|  | 23579 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23580 | ac_cv_func_vfork_works=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23581 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23582 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23583 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23584 | fi | 
|  | 23585 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23586 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23587 | { $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] | 23588 | $as_echo "$ac_cv_func_vfork_works" >&6; } | 
|  | 23589 |  | 
|  | 23590 | fi; | 
|  | 23591 | if test "x$ac_cv_func_fork_works" = xcross; then | 
|  | 23592 | ac_cv_func_vfork_works=$ac_cv_func_vfork | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23593 | { $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] | 23594 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | 
|  | 23595 | fi | 
|  | 23596 |  | 
|  | 23597 | if test "x$ac_cv_func_vfork_works" = xyes; then | 
|  | 23598 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23599 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23600 |  | 
|  | 23601 | else | 
|  | 23602 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23603 | $as_echo "#define vfork fork" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23604 |  | 
|  | 23605 | fi | 
|  | 23606 | if test "x$ac_cv_func_fork_works" = xyes; then | 
|  | 23607 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23608 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23609 |  | 
|  | 23610 | fi | 
|  | 23611 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23613 | $as_echo_n "checking for working memcmp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23614 | if ${ac_cv_func_memcmp_working+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23615 | $as_echo_n "(cached) " >&6 | 
|  | 23616 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23617 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23618 | ac_cv_func_memcmp_working=no | 
|  | 23619 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23621 | /* end confdefs.h.  */ | 
|  | 23622 | $ac_includes_default | 
|  | 23623 | int | 
|  | 23624 | main () | 
|  | 23625 | { | 
|  | 23626 |  | 
|  | 23627 | /* Some versions of memcmp are not 8-bit clean.  */ | 
|  | 23628 | char c0 = '\100', c1 = '\200', c2 = '\201'; | 
|  | 23629 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | 
|  | 23630 | return 1; | 
|  | 23631 |  | 
|  | 23632 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | 
|  | 23633 | or more and with at least one buffer not starting on a 4-byte boundary. | 
|  | 23634 | William Lewis provided this test program.   */ | 
|  | 23635 | { | 
|  | 23636 | char foo[21]; | 
|  | 23637 | char bar[21]; | 
|  | 23638 | int i; | 
|  | 23639 | for (i = 0; i < 4; i++) | 
|  | 23640 | { | 
|  | 23641 | char *a = foo + i; | 
|  | 23642 | char *b = bar + i; | 
|  | 23643 | strcpy (a, "--------01111111"); | 
|  | 23644 | strcpy (b, "--------10000000"); | 
|  | 23645 | if (memcmp (a, b, 16) >= 0) | 
|  | 23646 | return 1; | 
|  | 23647 | } | 
|  | 23648 | return 0; | 
|  | 23649 | } | 
|  | 23650 |  | 
|  | 23651 | ; | 
|  | 23652 | return 0; | 
|  | 23653 | } | 
|  | 23654 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23655 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23656 | ac_cv_func_memcmp_working=yes | 
|  | 23657 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23658 | ac_cv_func_memcmp_working=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23659 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23660 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23661 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23662 | fi | 
|  | 23663 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23664 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23665 | { $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] | 23666 | $as_echo "$ac_cv_func_memcmp_working" >&6; } | 
|  | 23667 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | 
|  | 23668 | *" memcmp.$ac_objext "* ) ;; | 
|  | 23669 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | 
|  | 23670 | ;; | 
|  | 23671 | esac | 
|  | 23672 |  | 
|  | 23673 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23674 | for ac_header in sys/select.h sys/socket.h | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23675 | do : | 
|  | 23676 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | 
|  | 23677 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23678 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23679 | cat >>confdefs.h <<_ACEOF | 
|  | 23680 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | 
|  | 23681 | _ACEOF | 
|  | 23682 |  | 
|  | 23683 | fi | 
|  | 23684 |  | 
|  | 23685 | done | 
|  | 23686 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23687 | { $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] | 23688 | $as_echo_n "checking types of arguments for select... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23689 | if ${ac_cv_func_select_args+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23690 | $as_echo_n "(cached) " >&6 | 
|  | 23691 | else | 
|  | 23692 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do | 
|  | 23693 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | 
|  | 23694 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23696 | /* end confdefs.h.  */ | 
|  | 23697 | $ac_includes_default | 
|  | 23698 | #ifdef HAVE_SYS_SELECT_H | 
|  | 23699 | # include <sys/select.h> | 
|  | 23700 | #endif | 
|  | 23701 | #ifdef HAVE_SYS_SOCKET_H | 
|  | 23702 | # include <sys/socket.h> | 
|  | 23703 | #endif | 
|  | 23704 |  | 
|  | 23705 | int | 
|  | 23706 | main () | 
|  | 23707 | { | 
|  | 23708 | extern int select ($ac_arg1, | 
|  | 23709 | $ac_arg234, $ac_arg234, $ac_arg234, | 
|  | 23710 | $ac_arg5); | 
|  | 23711 | ; | 
|  | 23712 | return 0; | 
|  | 23713 | } | 
|  | 23714 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23715 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23716 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23717 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23718 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23719 | done | 
|  | 23720 | done | 
|  | 23721 | done | 
|  | 23722 | # Provide a safe default value. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23723 | : "${ac_cv_func_select_args=int,int *,struct timeval *}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23724 |  | 
|  | 23725 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23726 | { $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] | 23727 | $as_echo "$ac_cv_func_select_args" >&6; } | 
|  | 23728 | ac_save_IFS=$IFS; IFS=',' | 
|  | 23729 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | 
|  | 23730 | IFS=$ac_save_IFS | 
|  | 23731 | shift | 
|  | 23732 |  | 
|  | 23733 | cat >>confdefs.h <<_ACEOF | 
|  | 23734 | #define SELECT_TYPE_ARG1 $1 | 
|  | 23735 | _ACEOF | 
|  | 23736 |  | 
|  | 23737 |  | 
|  | 23738 | cat >>confdefs.h <<_ACEOF | 
|  | 23739 | #define SELECT_TYPE_ARG234 ($2) | 
|  | 23740 | _ACEOF | 
|  | 23741 |  | 
|  | 23742 |  | 
|  | 23743 | cat >>confdefs.h <<_ACEOF | 
|  | 23744 | #define SELECT_TYPE_ARG5 ($3) | 
|  | 23745 | _ACEOF | 
|  | 23746 |  | 
|  | 23747 | rm -f conftest* | 
|  | 23748 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23749 | if ${ac_cv_func_setvbuf_reversed+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23750 | $as_echo_n "(cached) " >&6 | 
|  | 23751 | else | 
|  | 23752 | ac_cv_func_setvbuf_reversed=no | 
|  | 23753 | fi | 
|  | 23754 |  | 
|  | 23755 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23756 | { $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] | 23757 | $as_echo_n "checking return type of signal handlers... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23758 | if ${ac_cv_type_signal+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23759 | $as_echo_n "(cached) " >&6 | 
|  | 23760 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23762 | /* end confdefs.h.  */ | 
|  | 23763 | #include <sys/types.h> | 
|  | 23764 | #include <signal.h> | 
|  | 23765 |  | 
|  | 23766 | int | 
|  | 23767 | main () | 
|  | 23768 | { | 
|  | 23769 | return *(signal (0, 0)) (0) == 1; | 
|  | 23770 | ; | 
|  | 23771 | return 0; | 
|  | 23772 | } | 
|  | 23773 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23774 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23775 | ac_cv_type_signal=int | 
|  | 23776 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23777 | ac_cv_type_signal=void | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23778 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23779 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 23780 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23782 | $as_echo "$ac_cv_type_signal" >&6; } | 
|  | 23783 |  | 
|  | 23784 | cat >>confdefs.h <<_ACEOF | 
|  | 23785 | #define RETSIGTYPE $ac_cv_type_signal | 
|  | 23786 | _ACEOF | 
|  | 23787 |  | 
|  | 23788 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23790 | $as_echo_n "checking for working strtod... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23791 | if ${ac_cv_func_strtod+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23792 | $as_echo_n "(cached) " >&6 | 
|  | 23793 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23794 | if test "$cross_compiling" = yes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23795 | ac_cv_func_strtod=no | 
|  | 23796 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23798 | /* end confdefs.h.  */ | 
|  | 23799 |  | 
|  | 23800 | $ac_includes_default | 
|  | 23801 | #ifndef strtod | 
|  | 23802 | double strtod (); | 
|  | 23803 | #endif | 
|  | 23804 | int | 
|  | 23805 | main() | 
|  | 23806 | { | 
|  | 23807 | { | 
|  | 23808 | /* Some versions of Linux strtod mis-parse strings with leading '+'.  */ | 
|  | 23809 | char *string = " +69"; | 
|  | 23810 | char *term; | 
|  | 23811 | double value; | 
|  | 23812 | value = strtod (string, &term); | 
|  | 23813 | if (value != 69 || term != (string + 4)) | 
|  | 23814 | return 1; | 
|  | 23815 | } | 
|  | 23816 |  | 
|  | 23817 | { | 
|  | 23818 | /* Under Solaris 2.4, strtod returns the wrong value for the | 
|  | 23819 | terminating character under some conditions.  */ | 
|  | 23820 | char *string = "NaN"; | 
|  | 23821 | char *term; | 
|  | 23822 | strtod (string, &term); | 
|  | 23823 | if (term != string && *(term - 1) == 0) | 
|  | 23824 | return 1; | 
|  | 23825 | } | 
|  | 23826 | return 0; | 
|  | 23827 | } | 
|  | 23828 |  | 
|  | 23829 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23830 | if ac_fn_c_try_run "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23831 | ac_cv_func_strtod=yes | 
|  | 23832 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23833 | ac_cv_func_strtod=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23834 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23835 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | 
|  | 23836 | conftest.$ac_objext conftest.beam conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23837 | fi | 
|  | 23838 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23839 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23841 | $as_echo "$ac_cv_func_strtod" >&6; } | 
|  | 23842 | if test $ac_cv_func_strtod = no; then | 
|  | 23843 | case " $LIBOBJS " in | 
|  | 23844 | *" strtod.$ac_objext "* ) ;; | 
|  | 23845 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | 
|  | 23846 | ;; | 
|  | 23847 | esac | 
|  | 23848 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23849 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23850 | if test "x$ac_cv_func_pow" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23851 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23852 | fi | 
|  | 23853 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23854 | if test $ac_cv_func_pow = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23856 | $as_echo_n "checking for pow in -lm... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23857 | if ${ac_cv_lib_m_pow+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23858 | $as_echo_n "(cached) " >&6 | 
|  | 23859 | else | 
|  | 23860 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23861 | LIBS="-lm  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23863 | /* end confdefs.h.  */ | 
|  | 23864 |  | 
|  | 23865 | /* Override any GCC internal prototype to avoid an error. | 
|  | 23866 | Use char because int might match the return type of a GCC | 
|  | 23867 | builtin and then its argument prototype would still apply.  */ | 
|  | 23868 | #ifdef __cplusplus | 
|  | 23869 | extern "C" | 
|  | 23870 | #endif | 
|  | 23871 | char pow (); | 
|  | 23872 | int | 
|  | 23873 | main () | 
|  | 23874 | { | 
|  | 23875 | return pow (); | 
|  | 23876 | ; | 
|  | 23877 | return 0; | 
|  | 23878 | } | 
|  | 23879 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23880 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23881 | ac_cv_lib_m_pow=yes | 
|  | 23882 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23883 | ac_cv_lib_m_pow=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23884 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23885 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23886 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23887 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23888 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23889 | { $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] | 23890 | $as_echo "$ac_cv_lib_m_pow" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23891 | if test "x$ac_cv_lib_m_pow" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23892 | POW_LIB=-lm | 
|  | 23893 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23894 | { $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] | 23895 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} | 
|  | 23896 | fi | 
|  | 23897 |  | 
|  | 23898 | fi | 
|  | 23899 |  | 
|  | 23900 | fi | 
|  | 23901 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23902 | for ac_func in vprintf | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23903 | do : | 
|  | 23904 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23905 | if test "x$ac_cv_func_vprintf" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23906 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23907 | #define HAVE_VPRINTF 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23908 | _ACEOF | 
|  | 23909 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23910 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23911 | if test "x$ac_cv_func__doprnt" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23912 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23913 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23914 |  | 
|  | 23915 | fi | 
|  | 23916 |  | 
|  | 23917 | fi | 
|  | 23918 | done | 
|  | 23919 |  | 
|  | 23920 |  | 
|  | 23921 |  | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 23922 | # | 
|  | 23923 | # Find math library | 
|  | 23924 | # | 
|  | 23925 | MATH_LIBS='' | 
|  | 23926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 | 
|  | 23927 | $as_echo_n "checking for sqrt in -lm... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23928 | if ${ac_cv_lib_m_sqrt+:} false; then : | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 23929 | $as_echo_n "(cached) " >&6 | 
|  | 23930 | else | 
|  | 23931 | ac_check_lib_save_LIBS=$LIBS | 
|  | 23932 | LIBS="-lm  $LIBS" | 
|  | 23933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 23934 | /* end confdefs.h.  */ | 
|  | 23935 |  | 
|  | 23936 | /* Override any GCC internal prototype to avoid an error. | 
|  | 23937 | Use char because int might match the return type of a GCC | 
|  | 23938 | builtin and then its argument prototype would still apply.  */ | 
|  | 23939 | #ifdef __cplusplus | 
|  | 23940 | extern "C" | 
|  | 23941 | #endif | 
|  | 23942 | char sqrt (); | 
|  | 23943 | int | 
|  | 23944 | main () | 
|  | 23945 | { | 
|  | 23946 | return sqrt (); | 
|  | 23947 | ; | 
|  | 23948 | return 0; | 
|  | 23949 | } | 
|  | 23950 | _ACEOF | 
|  | 23951 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 23952 | ac_cv_lib_m_sqrt=yes | 
|  | 23953 | else | 
|  | 23954 | ac_cv_lib_m_sqrt=no | 
|  | 23955 | fi | 
|  | 23956 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 23957 | conftest$ac_exeext conftest.$ac_ext | 
|  | 23958 | LIBS=$ac_check_lib_save_LIBS | 
|  | 23959 | fi | 
|  | 23960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 | 
|  | 23961 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23962 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : | 
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 23963 | MATH_LIBS="-lm" | 
|  | 23964 | fi | 
|  | 23965 |  | 
|  | 23966 | LIBS="$MATH_LIBS $LIBS" | 
|  | 23967 |  | 
|  | 23968 |  | 
| cristy | 47b022b | 2011-01-18 22:29:21 +0000 | [diff] [blame] | 23969 | for ac_func in atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23970 | do : | 
|  | 23971 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 23972 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23973 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23974 | cat >>confdefs.h <<_ACEOF | 
|  | 23975 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 23976 | _ACEOF | 
|  | 23977 |  | 
|  | 23978 | fi | 
|  | 23979 | done | 
|  | 23980 |  | 
|  | 23981 |  | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23982 | # | 
|  | 23983 | # Check for clock_gettime(). | 
|  | 23984 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23985 | { $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] | 23986 | $as_echo_n "checking for library containing clock_gettime... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23987 | if ${ac_cv_search_clock_gettime+:} false; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23988 | $as_echo_n "(cached) " >&6 | 
|  | 23989 | else | 
|  | 23990 | ac_func_search_save_LIBS=$LIBS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 23992 | /* end confdefs.h.  */ | 
|  | 23993 |  | 
|  | 23994 | /* Override any GCC internal prototype to avoid an error. | 
|  | 23995 | Use char because int might match the return type of a GCC | 
|  | 23996 | builtin and then its argument prototype would still apply.  */ | 
|  | 23997 | #ifdef __cplusplus | 
|  | 23998 | extern "C" | 
|  | 23999 | #endif | 
|  | 24000 | char clock_gettime (); | 
|  | 24001 | int | 
|  | 24002 | main () | 
|  | 24003 | { | 
|  | 24004 | return clock_gettime (); | 
|  | 24005 | ; | 
|  | 24006 | return 0; | 
|  | 24007 | } | 
|  | 24008 | _ACEOF | 
|  | 24009 | for ac_lib in '' rt; do | 
|  | 24010 | if test -z "$ac_lib"; then | 
|  | 24011 | ac_res="none required" | 
|  | 24012 | else | 
|  | 24013 | ac_res=-l$ac_lib | 
|  | 24014 | LIBS="-l$ac_lib  $ac_func_search_save_LIBS" | 
|  | 24015 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24016 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24017 | ac_cv_search_clock_gettime=$ac_res | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24018 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24019 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24020 | conftest$ac_exeext | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24021 | if ${ac_cv_search_clock_gettime+:} false; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24022 | break | 
|  | 24023 | fi | 
|  | 24024 | done | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24025 | if ${ac_cv_search_clock_gettime+:} false; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24026 |  | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24027 | else | 
|  | 24028 | ac_cv_search_clock_gettime=no | 
|  | 24029 | fi | 
|  | 24030 | rm conftest.$ac_ext | 
|  | 24031 | LIBS=$ac_func_search_save_LIBS | 
|  | 24032 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24033 | { $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] | 24034 | $as_echo "$ac_cv_search_clock_gettime" >&6; } | 
|  | 24035 | ac_res=$ac_cv_search_clock_gettime | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24036 | if test "$ac_res" != no; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24037 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | 
|  | 24038 |  | 
|  | 24039 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24040 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24041 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24042 | { $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] | 24043 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24045 | /* end confdefs.h.  */ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24046 |  | 
|  | 24047 | #include <time.h> | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24048 | int | 
|  | 24049 | main () | 
|  | 24050 | { | 
|  | 24051 | clockid_t clockType = CLOCK_REALTIME; | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24052 | ; | 
|  | 24053 | return 0; | 
|  | 24054 | } | 
|  | 24055 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24056 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24057 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24059 | $as_echo "yes" >&6; } | 
|  | 24060 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24061 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24062 |  | 
|  | 24063 |  | 
|  | 24064 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24066 | $as_echo "no" >&6; } | 
|  | 24067 |  | 
|  | 24068 | fi | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24070 |  | 
|  | 24071 | else | 
|  | 24072 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24073 | for ac_func in gettimeofday ftime | 
|  | 24074 | do : | 
|  | 24075 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 24076 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24077 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 24078 | cat >>confdefs.h <<_ACEOF | 
|  | 24079 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 24080 | _ACEOF | 
|  | 24081 | break | 
|  | 24082 | fi | 
|  | 24083 | done | 
|  | 24084 |  | 
|  | 24085 |  | 
|  | 24086 |  | 
|  | 24087 | fi | 
|  | 24088 |  | 
|  | 24089 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24090 | ######## | 
|  | 24091 | # | 
|  | 24092 | # Check for function prototypes | 
|  | 24093 | # | 
|  | 24094 | ######## | 
|  | 24095 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24096 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24097 | #include <unistd.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24098 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24099 | if test "x$ac_cv_have_decl_pread" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24100 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24101 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24102 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24103 | fi | 
|  | 24104 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24105 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24106 | #define HAVE_DECL_PREAD $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24107 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24108 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24109 | #include <unistd.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24110 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24111 | if test "x$ac_cv_have_decl_pwrite" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24112 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24113 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24114 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24115 | fi | 
|  | 24116 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24117 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24118 | #define HAVE_DECL_PWRITE $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24119 | _ACEOF | 
|  | 24120 |  | 
|  | 24121 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24122 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24123 | #include <strings.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24124 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24125 | if test "x$ac_cv_have_decl_strlcpy" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24126 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24127 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24128 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24129 | fi | 
|  | 24130 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24131 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24132 | #define HAVE_DECL_STRLCPY $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24133 | _ACEOF | 
|  | 24134 |  | 
|  | 24135 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24136 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24137 | #include <stdio.h> | 
|  | 24138 | #include <stdarg.h> | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24139 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24140 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24141 | ac_have_decl=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24142 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24143 | ac_have_decl=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24144 | fi | 
|  | 24145 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24146 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24147 | #define HAVE_DECL_VSNPRINTF $ac_have_decl | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24148 | _ACEOF | 
|  | 24149 |  | 
|  | 24150 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24151 | ######## | 
|  | 24152 | # | 
|  | 24153 | # C++ Support Tests (For Magick++) | 
|  | 24154 | # | 
|  | 24155 | ######## | 
|  | 24156 | have_magick_plus_plus='no' | 
|  | 24157 | if test "$with_magick_plus_plus" = 'yes'; then | 
|  | 24158 | OLIBS="$LIBS" | 
|  | 24159 | LIBS='' | 
|  | 24160 | ac_ext=cpp | 
|  | 24161 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24162 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24163 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24164 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24165 |  | 
|  | 24166 |  | 
|  | 24167 | # Full set of headers used... | 
|  | 24168 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception | 
|  | 24169 | # functional iomanip iosfwd iostream iterator list string strstream utility | 
|  | 24170 | ac_ext=cpp | 
|  | 24171 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24175 |  | 
|  | 24176 | ac_ext=cpp | 
|  | 24177 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24178 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24179 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24180 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24181 | if test -z "$CXX"; then | 
|  | 24182 | if test -n "$CCC"; then | 
|  | 24183 | CXX=$CCC | 
|  | 24184 | else | 
|  | 24185 | if test -n "$ac_tool_prefix"; then | 
|  | 24186 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 24187 | do | 
|  | 24188 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | 
|  | 24189 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24191 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24192 | if ${ac_cv_prog_CXX+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24193 | $as_echo_n "(cached) " >&6 | 
|  | 24194 | else | 
|  | 24195 | if test -n "$CXX"; then | 
|  | 24196 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
|  | 24197 | else | 
|  | 24198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 24199 | for as_dir in $PATH | 
|  | 24200 | do | 
|  | 24201 | IFS=$as_save_IFS | 
|  | 24202 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24203 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 24205 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24206 | $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] | 24207 | break 2 | 
|  | 24208 | fi | 
|  | 24209 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24210 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24211 | IFS=$as_save_IFS | 
|  | 24212 |  | 
|  | 24213 | fi | 
|  | 24214 | fi | 
|  | 24215 | CXX=$ac_cv_prog_CXX | 
|  | 24216 | if test -n "$CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24218 | $as_echo "$CXX" >&6; } | 
|  | 24219 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24221 | $as_echo "no" >&6; } | 
|  | 24222 | fi | 
|  | 24223 |  | 
|  | 24224 |  | 
|  | 24225 | test -n "$CXX" && break | 
|  | 24226 | done | 
|  | 24227 | fi | 
|  | 24228 | if test -z "$CXX"; then | 
|  | 24229 | ac_ct_CXX=$CXX | 
|  | 24230 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | 
|  | 24231 | do | 
|  | 24232 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 24233 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24235 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24236 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24237 | $as_echo_n "(cached) " >&6 | 
|  | 24238 | else | 
|  | 24239 | if test -n "$ac_ct_CXX"; then | 
|  | 24240 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | 
|  | 24241 | else | 
|  | 24242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 24243 | for as_dir in $PATH | 
|  | 24244 | do | 
|  | 24245 | IFS=$as_save_IFS | 
|  | 24246 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24247 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 24249 | ac_cv_prog_ac_ct_CXX="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24250 | $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] | 24251 | break 2 | 
|  | 24252 | fi | 
|  | 24253 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24254 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24255 | IFS=$as_save_IFS | 
|  | 24256 |  | 
|  | 24257 | fi | 
|  | 24258 | fi | 
|  | 24259 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | 
|  | 24260 | if test -n "$ac_ct_CXX"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24262 | $as_echo "$ac_ct_CXX" >&6; } | 
|  | 24263 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24265 | $as_echo "no" >&6; } | 
|  | 24266 | fi | 
|  | 24267 |  | 
|  | 24268 |  | 
|  | 24269 | test -n "$ac_ct_CXX" && break | 
|  | 24270 | done | 
|  | 24271 |  | 
|  | 24272 | if test "x$ac_ct_CXX" = x; then | 
|  | 24273 | CXX="g++" | 
|  | 24274 | else | 
|  | 24275 | case $cross_compiling:$ac_tool_warned in | 
|  | 24276 | yes:) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24277 | { $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] | 24278 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | 
|  | 24279 | ac_tool_warned=yes ;; | 
|  | 24280 | esac | 
|  | 24281 | CXX=$ac_ct_CXX | 
|  | 24282 | fi | 
|  | 24283 | fi | 
|  | 24284 |  | 
|  | 24285 | fi | 
|  | 24286 | fi | 
|  | 24287 | # Provide some information about the compiler. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24288 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24289 | set X $ac_compile | 
|  | 24290 | ac_compiler=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24291 | for ac_option in --version -v -V -qversion; do | 
|  | 24292 | { { ac_try="$ac_compiler $ac_option >&5" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24293 | case "(($ac_try" in | 
|  | 24294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | 
|  | 24295 | *) ac_try_echo=$ac_try;; | 
|  | 24296 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24297 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | 
|  | 24298 | $as_echo "$ac_try_echo"; } >&5 | 
|  | 24299 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24300 | ac_status=$? | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24301 | if test -s conftest.err; then | 
|  | 24302 | sed '10a\ | 
|  | 24303 | ... rest of stderr output deleted ... | 
|  | 24304 | 10q' conftest.err >conftest.er1 | 
|  | 24305 | cat conftest.er1 >&5 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24306 | fi | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24307 | rm -f conftest.er1 conftest.err | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 24309 | test $ac_status = 0; } | 
|  | 24310 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24311 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24312 | { $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] | 24313 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24314 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24315 | $as_echo_n "(cached) " >&6 | 
|  | 24316 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24318 | /* end confdefs.h.  */ | 
|  | 24319 |  | 
|  | 24320 | int | 
|  | 24321 | main () | 
|  | 24322 | { | 
|  | 24323 | #ifndef __GNUC__ | 
|  | 24324 | choke me | 
|  | 24325 | #endif | 
|  | 24326 |  | 
|  | 24327 | ; | 
|  | 24328 | return 0; | 
|  | 24329 | } | 
|  | 24330 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24331 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24332 | ac_compiler_gnu=yes | 
|  | 24333 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24334 | ac_compiler_gnu=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24335 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24337 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | 
|  | 24338 |  | 
|  | 24339 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24340 | { $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] | 24341 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | 
|  | 24342 | if test $ac_compiler_gnu = yes; then | 
|  | 24343 | GXX=yes | 
|  | 24344 | else | 
|  | 24345 | GXX= | 
|  | 24346 | fi | 
|  | 24347 | ac_test_CXXFLAGS=${CXXFLAGS+set} | 
|  | 24348 | ac_save_CXXFLAGS=$CXXFLAGS | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24350 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24351 | if ${ac_cv_prog_cxx_g+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24352 | $as_echo_n "(cached) " >&6 | 
|  | 24353 | else | 
|  | 24354 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | 
|  | 24355 | ac_cxx_werror_flag=yes | 
|  | 24356 | ac_cv_prog_cxx_g=no | 
|  | 24357 | CXXFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24359 | /* end confdefs.h.  */ | 
|  | 24360 |  | 
|  | 24361 | int | 
|  | 24362 | main () | 
|  | 24363 | { | 
|  | 24364 |  | 
|  | 24365 | ; | 
|  | 24366 | return 0; | 
|  | 24367 | } | 
|  | 24368 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24369 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24370 | ac_cv_prog_cxx_g=yes | 
|  | 24371 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24372 | CXXFLAGS="" | 
|  | 24373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24374 | /* end confdefs.h.  */ | 
|  | 24375 |  | 
|  | 24376 | int | 
|  | 24377 | main () | 
|  | 24378 | { | 
|  | 24379 |  | 
|  | 24380 | ; | 
|  | 24381 | return 0; | 
|  | 24382 | } | 
|  | 24383 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24384 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24385 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24386 | else | 
|  | 24387 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24388 | CXXFLAGS="-g" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24390 | /* end confdefs.h.  */ | 
|  | 24391 |  | 
|  | 24392 | int | 
|  | 24393 | main () | 
|  | 24394 | { | 
|  | 24395 |  | 
|  | 24396 | ; | 
|  | 24397 | return 0; | 
|  | 24398 | } | 
|  | 24399 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24400 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24401 | ac_cv_prog_cxx_g=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24402 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24404 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24406 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24408 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | 
|  | 24409 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24410 | { $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] | 24411 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | 
|  | 24412 | if test "$ac_test_CXXFLAGS" = set; then | 
|  | 24413 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 24414 | elif test $ac_cv_prog_cxx_g = yes; then | 
|  | 24415 | if test "$GXX" = yes; then | 
|  | 24416 | CXXFLAGS="-g -O2" | 
|  | 24417 | else | 
|  | 24418 | CXXFLAGS="-g" | 
|  | 24419 | fi | 
|  | 24420 | else | 
|  | 24421 | if test "$GXX" = yes; then | 
|  | 24422 | CXXFLAGS="-O2" | 
|  | 24423 | else | 
|  | 24424 | CXXFLAGS= | 
|  | 24425 | fi | 
|  | 24426 | fi | 
|  | 24427 | ac_ext=cpp | 
|  | 24428 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24429 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24430 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24431 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24432 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24433 | depcc="$CXX"  am_compiler_list= | 
|  | 24434 |  | 
|  | 24435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | 
|  | 24436 | $as_echo_n "checking dependency style of $depcc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24437 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24438 | $as_echo_n "(cached) " >&6 | 
|  | 24439 | else | 
|  | 24440 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | 
|  | 24441 | # We make a subdir and do the tests there.  Otherwise we can end up | 
|  | 24442 | # making bogus files that we don't know about and never remove.  For | 
|  | 24443 | # instance it was reported that on HP-UX the gcc test will end up | 
|  | 24444 | # making a dummy file named `D' -- because `-MD' means `put the output | 
|  | 24445 | # in D'. | 
|  | 24446 | mkdir conftest.dir | 
|  | 24447 | # Copy depcomp to subdir because otherwise we won't find it if we're | 
|  | 24448 | # using a relative directory. | 
|  | 24449 | cp "$am_depcomp" conftest.dir | 
|  | 24450 | cd conftest.dir | 
|  | 24451 | # We will build objects and dependencies in a subdirectory because | 
|  | 24452 | # it helps to detect inapplicable dependency modes.  For instance | 
|  | 24453 | # both Tru64's cc and ICC support -MD to output dependencies as a | 
|  | 24454 | # side effect of compilation, but ICC will put the dependencies in | 
|  | 24455 | # the current directory while Tru64 will put them in the object | 
|  | 24456 | # directory. | 
|  | 24457 | mkdir sub | 
|  | 24458 |  | 
|  | 24459 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 24460 | if test "$am_compiler_list" = ""; then | 
|  | 24461 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | 
|  | 24462 | fi | 
|  | 24463 | am__universal=false | 
|  | 24464 | case " $depcc " in #( | 
|  | 24465 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | 
|  | 24466 | esac | 
|  | 24467 |  | 
|  | 24468 | for depmode in $am_compiler_list; do | 
|  | 24469 | # Setup a source with many dependencies, because some compilers | 
|  | 24470 | # like to wrap large dependency lists on column 80 (with \), and | 
|  | 24471 | # we should not choose a depcomp mode which is confused by this. | 
|  | 24472 | # | 
|  | 24473 | # We need to recreate these files for each test, as the compiler may | 
|  | 24474 | # overwrite some of them when testing with obscure command lines. | 
|  | 24475 | # This happens at least with the AIX C compiler. | 
|  | 24476 | : > sub/conftest.c | 
|  | 24477 | for i in 1 2 3 4 5 6; do | 
|  | 24478 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | 
|  | 24479 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | 
|  | 24480 | # Solaris 8's {/usr,}/bin/sh. | 
|  | 24481 | touch sub/conftst$i.h | 
|  | 24482 | done | 
|  | 24483 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 
|  | 24484 |  | 
|  | 24485 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | 
|  | 24486 | # mode.  It turns out that the SunPro C++ compiler does not properly | 
|  | 24487 | # handle `-M -o', and we need to detect this.  Also, some Intel | 
|  | 24488 | # versions had trouble with output in subdirs | 
|  | 24489 | am__obj=sub/conftest.${OBJEXT-o} | 
|  | 24490 | am__minus_obj="-o $am__obj" | 
|  | 24491 | case $depmode in | 
|  | 24492 | gcc) | 
|  | 24493 | # This depmode causes a compiler race in universal mode. | 
|  | 24494 | test "$am__universal" = false || continue | 
|  | 24495 | ;; | 
|  | 24496 | nosideeffect) | 
|  | 24497 | # after this tag, mechanisms are not by side-effect, so they'll | 
|  | 24498 | # only be used when explicitly requested | 
|  | 24499 | if test "x$enable_dependency_tracking" = xyes; then | 
|  | 24500 | continue | 
|  | 24501 | else | 
|  | 24502 | break | 
|  | 24503 | fi | 
|  | 24504 | ;; | 
|  | 24505 | msvisualcpp | msvcmsys) | 
|  | 24506 | # This compiler won't grok `-c -o', but also, the minuso test has | 
|  | 24507 | # not run yet.  These depmodes are late enough in the game, and | 
|  | 24508 | # so weak that their functioning should not be impacted. | 
|  | 24509 | am__obj=conftest.${OBJEXT-o} | 
|  | 24510 | am__minus_obj= | 
|  | 24511 | ;; | 
|  | 24512 | none) break ;; | 
|  | 24513 | esac | 
|  | 24514 | if depmode=$depmode \ | 
|  | 24515 | source=sub/conftest.c object=$am__obj \ | 
|  | 24516 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 
|  | 24517 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | 
|  | 24518 | >/dev/null 2>conftest.err && | 
|  | 24519 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 24520 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 
|  | 24521 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | 
|  | 24522 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 
|  | 24523 | # icc doesn't choke on unknown options, it will just issue warnings | 
|  | 24524 | # or remarks (even with -Werror).  So we grep stderr for any message | 
|  | 24525 | # that says an option was ignored or not supported. | 
|  | 24526 | # When given -MP, icc 7.0 and 7.1 complain thusly: | 
|  | 24527 | #   icc: Command line warning: ignoring option '-M'; no argument required | 
|  | 24528 | # The diagnosis changed in icc 8.0: | 
|  | 24529 | #   icc: Command line remark: option '-MP' not supported | 
|  | 24530 | if (grep 'ignoring option' conftest.err || | 
|  | 24531 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | 
|  | 24532 | am_cv_CXX_dependencies_compiler_type=$depmode | 
|  | 24533 | break | 
|  | 24534 | fi | 
|  | 24535 | fi | 
|  | 24536 | done | 
|  | 24537 |  | 
|  | 24538 | cd .. | 
|  | 24539 | rm -rf conftest.dir | 
|  | 24540 | else | 
|  | 24541 | am_cv_CXX_dependencies_compiler_type=none | 
|  | 24542 | fi | 
|  | 24543 |  | 
|  | 24544 | fi | 
|  | 24545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | 
|  | 24546 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | 
|  | 24547 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | 
|  | 24548 |  | 
|  | 24549 | if | 
|  | 24550 | test "x$enable_dependency_tracking" != xno \ | 
|  | 24551 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | 
|  | 24552 | am__fastdepCXX_TRUE= | 
|  | 24553 | am__fastdepCXX_FALSE='#' | 
|  | 24554 | else | 
|  | 24555 | am__fastdepCXX_TRUE='#' | 
|  | 24556 | am__fastdepCXX_FALSE= | 
|  | 24557 | fi | 
|  | 24558 |  | 
|  | 24559 |  | 
|  | 24560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 | 
|  | 24561 | $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24562 | if ${ax_cv_cxx_bool+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24563 | $as_echo_n "(cached) " >&6 | 
|  | 24564 | else | 
|  | 24565 |  | 
|  | 24566 | ac_ext=cpp | 
|  | 24567 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24568 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24569 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24570 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24571 |  | 
|  | 24572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 24573 | /* end confdefs.h.  */ | 
|  | 24574 |  | 
|  | 24575 | int f(int  x){return 1;} | 
|  | 24576 | int f(char x){return 1;} | 
|  | 24577 | int f(bool x){return 1;} | 
|  | 24578 |  | 
|  | 24579 | int | 
|  | 24580 | main () | 
|  | 24581 | { | 
|  | 24582 | bool b = true; return f(b); | 
|  | 24583 | ; | 
|  | 24584 | return 0; | 
|  | 24585 | } | 
|  | 24586 | _ACEOF | 
|  | 24587 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 24588 | ax_cv_cxx_bool=yes | 
|  | 24589 | else | 
|  | 24590 | ax_cv_cxx_bool=no | 
|  | 24591 | fi | 
|  | 24592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24593 | ac_ext=cpp | 
|  | 24594 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24598 |  | 
|  | 24599 |  | 
|  | 24600 | fi | 
|  | 24601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 | 
|  | 24602 | $as_echo "$ax_cv_cxx_bool" >&6; } | 
|  | 24603 | if test "$ax_cv_cxx_bool" = yes; then | 
|  | 24604 |  | 
|  | 24605 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h | 
|  | 24606 |  | 
|  | 24607 | fi | 
|  | 24608 |  | 
|  | 24609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 | 
|  | 24610 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24611 | if ${ax_cv_cxx_namespaces+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24612 | $as_echo_n "(cached) " >&6 | 
|  | 24613 | else | 
|  | 24614 |  | 
|  | 24615 | ac_ext=cpp | 
|  | 24616 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24617 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24618 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24619 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24620 |  | 
|  | 24621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 24622 | /* end confdefs.h.  */ | 
|  | 24623 | namespace Outer { namespace Inner { int i = 0; }} | 
|  | 24624 | int | 
|  | 24625 | main () | 
|  | 24626 | { | 
|  | 24627 | using namespace Outer::Inner; return i; | 
|  | 24628 | ; | 
|  | 24629 | return 0; | 
|  | 24630 | } | 
|  | 24631 | _ACEOF | 
|  | 24632 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 24633 | ax_cv_cxx_namespaces=yes | 
|  | 24634 | else | 
|  | 24635 | ax_cv_cxx_namespaces=no | 
|  | 24636 | fi | 
|  | 24637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24638 | ac_ext=cpp | 
|  | 24639 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24640 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24641 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24642 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24643 |  | 
|  | 24644 |  | 
|  | 24645 | fi | 
|  | 24646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 | 
|  | 24647 | $as_echo "$ax_cv_cxx_namespaces" >&6; } | 
|  | 24648 | if test "$ax_cv_cxx_namespaces" = yes; then | 
|  | 24649 |  | 
|  | 24650 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h | 
|  | 24651 |  | 
|  | 24652 | fi | 
|  | 24653 |  | 
|  | 24654 |  | 
|  | 24655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 | 
|  | 24656 | $as_echo_n "checking if g++ supports namespace std... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24657 | if ${ax_cv_cxx_have_std_namespace+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24658 | $as_echo_n "(cached) " >&6 | 
|  | 24659 | else | 
|  | 24660 |  | 
|  | 24661 | ac_ext=cpp | 
|  | 24662 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24666 |  | 
|  | 24667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 24668 | /* end confdefs.h.  */ | 
|  | 24669 | #include <iostream> | 
|  | 24670 | std::istream& is = std::cin; | 
|  | 24671 | int | 
|  | 24672 | main () | 
|  | 24673 | { | 
|  | 24674 |  | 
|  | 24675 | ; | 
|  | 24676 | return 0; | 
|  | 24677 | } | 
|  | 24678 | _ACEOF | 
|  | 24679 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 24680 | ax_cv_cxx_have_std_namespace=yes | 
|  | 24681 | else | 
|  | 24682 | ax_cv_cxx_have_std_namespace=no | 
|  | 24683 | fi | 
|  | 24684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24685 | ac_ext=cpp | 
|  | 24686 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24687 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24688 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24689 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24690 |  | 
|  | 24691 |  | 
|  | 24692 | fi | 
|  | 24693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 | 
|  | 24694 | $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } | 
|  | 24695 | if test "$ax_cv_cxx_have_std_namespace" = yes; then | 
|  | 24696 |  | 
|  | 24697 | $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h | 
|  | 24698 |  | 
|  | 24699 | fi | 
|  | 24700 |  | 
|  | 24701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 | 
|  | 24702 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24703 | if ${ac_cv_cxx_have_std_libs+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24704 | $as_echo_n "(cached) " >&6 | 
|  | 24705 | else | 
|  | 24706 |  | 
|  | 24707 |  | 
|  | 24708 | ac_ext=cpp | 
|  | 24709 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24710 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24711 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24712 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24713 |  | 
|  | 24714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 24715 | /* end confdefs.h.  */ | 
|  | 24716 | #include <iostream> | 
|  | 24717 | #include <map> | 
|  | 24718 | #include <iomanip> | 
|  | 24719 | #include <cmath> | 
|  | 24720 | #ifdef HAVE_NAMESPACES | 
|  | 24721 | using namespace std; | 
|  | 24722 | #endif | 
|  | 24723 | int | 
|  | 24724 | main () | 
|  | 24725 | { | 
|  | 24726 | return 0; | 
|  | 24727 | ; | 
|  | 24728 | return 0; | 
|  | 24729 | } | 
|  | 24730 | _ACEOF | 
|  | 24731 | if ac_fn_cxx_try_compile "$LINENO"; then : | 
|  | 24732 | ac_cv_cxx_have_std_libs=yes | 
|  | 24733 | else | 
|  | 24734 | ac_cv_cxx_have_std_libs=no | 
|  | 24735 | fi | 
|  | 24736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 24737 | ac_ext=cpp | 
|  | 24738 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 24739 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24740 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24741 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 24742 |  | 
|  | 24743 |  | 
|  | 24744 | fi | 
|  | 24745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 | 
|  | 24746 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } | 
|  | 24747 | if test "$ac_cv_cxx_have_std_libs" = yes; then | 
|  | 24748 |  | 
|  | 24749 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h | 
|  | 24750 |  | 
|  | 24751 | fi | 
|  | 24752 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24753 |  | 
|  | 24754 | OPENMP_CXXFLAGS= | 
|  | 24755 | # Check whether --enable-openmp was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24756 | if test "${enable_openmp+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24757 | enableval=$enable_openmp; | 
|  | 24758 | fi | 
|  | 24759 |  | 
|  | 24760 | if test "$enable_openmp" != no; then | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 | 
|  | 24762 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24763 | if ${ac_cv_prog_cxx_openmp+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24764 | $as_echo_n "(cached) " >&6 | 
|  | 24765 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 24767 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24768 |  | 
|  | 24769 | #ifndef _OPENMP | 
|  | 24770 | choke me | 
|  | 24771 | #endif | 
|  | 24772 | #include <omp.h> | 
|  | 24773 | int main () { return omp_get_num_threads (); } | 
|  | 24774 |  | 
|  | 24775 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24776 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24777 | ac_cv_prog_cxx_openmp='none needed' | 
|  | 24778 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24779 | ac_cv_prog_cxx_openmp='unsupported' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24780 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do | 
|  | 24781 | ac_save_CXXFLAGS=$CXXFLAGS | 
|  | 24782 | CXXFLAGS="$CXXFLAGS $ac_option" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 24784 | /* end confdefs.h.  */ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24785 |  | 
|  | 24786 | #ifndef _OPENMP | 
|  | 24787 | choke me | 
|  | 24788 | #endif | 
|  | 24789 | #include <omp.h> | 
|  | 24790 | int main () { return omp_get_num_threads (); } | 
|  | 24791 |  | 
|  | 24792 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24793 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24794 | ac_cv_prog_cxx_openmp=$ac_option | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24795 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24796 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24797 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24798 | CXXFLAGS=$ac_save_CXXFLAGS | 
|  | 24799 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then | 
|  | 24800 | break | 
|  | 24801 | fi | 
|  | 24802 | done | 
|  | 24803 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24804 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24805 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24806 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24807 | { $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] | 24808 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } | 
|  | 24809 | case $ac_cv_prog_cxx_openmp in #( | 
|  | 24810 | "none needed" | unsupported) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24811 | ;; #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24812 | *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24813 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24814 | esac | 
|  | 24815 | fi | 
|  | 24816 |  | 
|  | 24817 |  | 
|  | 24818 | ac_ext=c | 
|  | 24819 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 24820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 24821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 24822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 24823 |  | 
|  | 24824 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24825 | { $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] | 24826 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } | 
|  | 24827 | if \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 24828 | test $ax_cv_cxx_bool = 'yes' && \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 24829 | test $ax_cv_cxx_namespaces = 'yes' && \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24830 | test $ac_cv_cxx_have_std_libs = 'yes' && \ | 
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 24831 | test $ax_cv_cxx_have_std_namespace = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24832 | have_magick_plus_plus='yes' | 
|  | 24833 | else | 
|  | 24834 | have_magick_plus_plus='no (failed tests)' | 
|  | 24835 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24837 | $as_echo "$have_magick_plus_plus" >&6; } | 
|  | 24838 | LIBS="$OLIBS" | 
|  | 24839 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24840 | if test "$have_magick_plus_plus" = 'yes'; then | 
|  | 24841 | WITH_MAGICK_PLUS_PLUS_TRUE= | 
|  | 24842 | WITH_MAGICK_PLUS_PLUS_FALSE='#' | 
|  | 24843 | else | 
|  | 24844 | WITH_MAGICK_PLUS_PLUS_TRUE='#' | 
|  | 24845 | WITH_MAGICK_PLUS_PLUS_FALSE= | 
|  | 24846 | fi | 
|  | 24847 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24848 |  | 
|  | 24849 | # Only check for delegate libraries in subdirectories if requested. | 
|  | 24850 | if test "$enable_delegate_build" != 'no'; then | 
|  | 24851 | # Check for delegate sub-directories and add -I & -L options as required. | 
|  | 24852 | # This presumes that delegates are installed as detailed in the ImageMagick | 
|  | 24853 | # README. If delegates are installed in a standard location where the | 
|  | 24854 | # compiler will automatically find them then these options should not be | 
|  | 24855 | # required. | 
|  | 24856 |  | 
|  | 24857 | # | 
|  | 24858 | # Most delegates have includes in the same directory as the library, but not all... | 
|  | 24859 | # | 
|  | 24860 | # Includes | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 24861 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24862 | if test -d "$builddir/$dir"; then | 
|  | 24863 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" | 
|  | 24864 | else | 
|  | 24865 | if test -d "$srcdirfull/$dir"; then | 
|  | 24866 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" | 
|  | 24867 | fi | 
|  | 24868 | fi | 
|  | 24869 | done | 
|  | 24870 |  | 
|  | 24871 | # Libraries | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 24872 | for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24873 | if test -d "$builddir/$dir/.libs"; then | 
|  | 24874 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" | 
|  | 24875 | else | 
|  | 24876 | if test -d "$srcdirfull/$dir/.libs"; then | 
|  | 24877 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" | 
|  | 24878 | fi | 
|  | 24879 | fi | 
|  | 24880 | if test -d "$builddir/$dir"; then | 
|  | 24881 | LDFLAGS="$LDFLAGS -L$builddir/$dir" | 
|  | 24882 | else | 
|  | 24883 | if test -d "$srcdirfull/$dir"; then | 
|  | 24884 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" | 
|  | 24885 | fi | 
|  | 24886 | fi | 
|  | 24887 | done | 
|  | 24888 | fi | 
|  | 24889 |  | 
|  | 24890 | # Assume that delegate headers reside under same directory as ImageMagick | 
|  | 24891 | # installation prefix. | 
|  | 24892 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS" | 
|  | 24893 |  | 
|  | 24894 | # | 
|  | 24895 | # Find the X11 RGB database | 
|  | 24896 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24898 | $as_echo_n "checking for X11 configure files... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24899 | if ${im_cv_x_configure+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24900 | $as_echo_n "(cached) " >&6 | 
|  | 24901 | else | 
|  | 24902 | # Look for the header file in a standard set of common directories. | 
|  | 24903 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
|  | 24904 | for ac_dir in          \ | 
|  | 24905 | /lib/usr/lib/X11       \ | 
|  | 24906 | /usr/X11/lib           \ | 
|  | 24907 | /usr/X11R4/lib         \ | 
|  | 24908 | /usr/X11R5/lib         \ | 
|  | 24909 | /usr/X11R6/lib         \ | 
|  | 24910 | /usr/X11R7/lib         \ | 
|  | 24911 | /usr/X386/lib          \ | 
|  | 24912 | /usr/XFree86/lib/X11   \ | 
|  | 24913 | /usr/athena/lib        \ | 
|  | 24914 | /usr/lib               \ | 
|  | 24915 | /usr/lib/X11           \ | 
|  | 24916 | /usr/lib/X11R4         \ | 
|  | 24917 | /usr/lib/X11R5         \ | 
|  | 24918 | /usr/lib/X11R6         \ | 
|  | 24919 | /usr/lib/X11R7         \ | 
|  | 24920 | /usr/local/X11/lib     \ | 
|  | 24921 | /usr/local/X11R4/lib   \ | 
|  | 24922 | /usr/local/X11R5/lib   \ | 
|  | 24923 | /usr/local/X11R6/lib   \ | 
|  | 24924 | /usr/local/lib         \ | 
|  | 24925 | /usr/local/lib/X11     \ | 
|  | 24926 | /usr/local/lib/X11R4   \ | 
|  | 24927 | /usr/local/lib/X11R5   \ | 
|  | 24928 | /usr/local/lib/X11R6   \ | 
|  | 24929 | /usr/local/lib/X11R7   \ | 
|  | 24930 | /usr/local/x11r5/lib   \ | 
|  | 24931 | /usr/lpp/Xamples/lib   \ | 
|  | 24932 | /usr/openwin/lib       \ | 
|  | 24933 | /usr/openwin/share/lib \ | 
|  | 24934 | /usr/unsupported/lib   \ | 
|  | 24935 | /usr/x386/lib          \ | 
|  | 24936 | ; do | 
|  | 24937 | if test -f "$ac_dir/X11/rgb.txt"; then | 
|  | 24938 | im_cv_x_configure="$ac_dir/X11/" | 
|  | 24939 | break | 
|  | 24940 | elif test -f "$ac_dir/rgb.txt"; then | 
|  | 24941 | im_cv_x_configure="$ac_dir/" | 
|  | 24942 | break | 
|  | 24943 | fi | 
|  | 24944 |  | 
|  | 24945 | done | 
|  | 24946 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24948 | $as_echo "$im_cv_x_configure" >&6; } | 
|  | 24949 | X11_CONFIGURE_PATH="$im_cv_x_configure" | 
|  | 24950 | case "${build_os}" in | 
|  | 24951 | mingw* ) | 
|  | 24952 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` | 
|  | 24953 | ;; | 
|  | 24954 | esac | 
|  | 24955 |  | 
|  | 24956 | cat >>confdefs.h <<_ACEOF | 
|  | 24957 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" | 
|  | 24958 | _ACEOF | 
|  | 24959 |  | 
|  | 24960 |  | 
|  | 24961 | # | 
|  | 24962 | # Find OpenMP library | 
|  | 24963 | # | 
|  | 24964 | GOMP_LIBS='' | 
|  | 24965 | if test "$enable_openmp" != 'no'; then | 
|  | 24966 | if test "${GCC}" = "yes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24967 | { $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] | 24968 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24969 | if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24970 | $as_echo_n "(cached) " >&6 | 
|  | 24971 | else | 
|  | 24972 | ac_check_lib_save_LIBS=$LIBS | 
|  | 24973 | LIBS="-lgomp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24975 | /* end confdefs.h.  */ | 
|  | 24976 |  | 
|  | 24977 | /* Override any GCC internal prototype to avoid an error. | 
|  | 24978 | Use char because int might match the return type of a GCC | 
|  | 24979 | builtin and then its argument prototype would still apply.  */ | 
|  | 24980 | #ifdef __cplusplus | 
|  | 24981 | extern "C" | 
|  | 24982 | #endif | 
|  | 24983 | char GOMP_parallel_start (); | 
|  | 24984 | int | 
|  | 24985 | main () | 
|  | 24986 | { | 
|  | 24987 | return GOMP_parallel_start (); | 
|  | 24988 | ; | 
|  | 24989 | return 0; | 
|  | 24990 | } | 
|  | 24991 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24992 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24993 | ac_cv_lib_gomp_GOMP_parallel_start=yes | 
|  | 24994 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24995 | ac_cv_lib_gomp_GOMP_parallel_start=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24996 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24997 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 24998 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24999 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25000 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25001 | { $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] | 25002 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25003 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25004 | GOMP_LIBS="-lgomp" | 
|  | 25005 | fi | 
|  | 25006 | # gcc | 
|  | 25007 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25008 | { $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] | 25009 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25010 | if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25011 | $as_echo_n "(cached) " >&6 | 
|  | 25012 | else | 
|  | 25013 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25014 | LIBS="-lmtsk  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25016 | /* end confdefs.h.  */ | 
|  | 25017 |  | 
|  | 25018 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25019 | Use char because int might match the return type of a GCC | 
|  | 25020 | builtin and then its argument prototype would still apply.  */ | 
|  | 25021 | #ifdef __cplusplus | 
|  | 25022 | extern "C" | 
|  | 25023 | #endif | 
|  | 25024 | char sunw_mp_register_warn (); | 
|  | 25025 | int | 
|  | 25026 | main () | 
|  | 25027 | { | 
|  | 25028 | return sunw_mp_register_warn (); | 
|  | 25029 | ; | 
|  | 25030 | return 0; | 
|  | 25031 | } | 
|  | 25032 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25033 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25034 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes | 
|  | 25035 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25036 | ac_cv_lib_mtsk_sunw_mp_register_warn=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25037 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25038 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25039 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25040 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25041 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25042 | { $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] | 25043 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25044 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25045 | GOMP_LIBS="-lmtsk" | 
|  | 25046 | fi | 
|  | 25047 | # solaris cc | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25049 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25050 | if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25051 | $as_echo_n "(cached) " >&6 | 
|  | 25052 | else | 
|  | 25053 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25054 | LIBS="-lxlsmp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25056 | /* end confdefs.h.  */ | 
|  | 25057 |  | 
|  | 25058 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25059 | Use char because int might match the return type of a GCC | 
|  | 25060 | builtin and then its argument prototype would still apply.  */ | 
|  | 25061 | #ifdef __cplusplus | 
|  | 25062 | extern "C" | 
|  | 25063 | #endif | 
|  | 25064 | char _xlsmpFlush (); | 
|  | 25065 | int | 
|  | 25066 | main () | 
|  | 25067 | { | 
|  | 25068 | return _xlsmpFlush (); | 
|  | 25069 | ; | 
|  | 25070 | return 0; | 
|  | 25071 | } | 
|  | 25072 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25073 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25074 | ac_cv_lib_xlsmp__xlsmpFlush=yes | 
|  | 25075 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25076 | ac_cv_lib_xlsmp__xlsmpFlush=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25077 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25078 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25079 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25080 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25081 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25082 | { $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] | 25083 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25084 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25085 | GOMP_LIBS="-lxlsmp" | 
|  | 25086 | fi | 
|  | 25087 | # AIX xlc | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25088 | { $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] | 25089 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25090 | if ${ac_cv_lib_mp_mp_destroy+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25091 | $as_echo_n "(cached) " >&6 | 
|  | 25092 | else | 
|  | 25093 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25094 | LIBS="-lmp  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25096 | /* end confdefs.h.  */ | 
|  | 25097 |  | 
|  | 25098 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25099 | Use char because int might match the return type of a GCC | 
|  | 25100 | builtin and then its argument prototype would still apply.  */ | 
|  | 25101 | #ifdef __cplusplus | 
|  | 25102 | extern "C" | 
|  | 25103 | #endif | 
|  | 25104 | char mp_destroy (); | 
|  | 25105 | int | 
|  | 25106 | main () | 
|  | 25107 | { | 
|  | 25108 | return mp_destroy (); | 
|  | 25109 | ; | 
|  | 25110 | return 0; | 
|  | 25111 | } | 
|  | 25112 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25113 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25114 | ac_cv_lib_mp_mp_destroy=yes | 
|  | 25115 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25116 | ac_cv_lib_mp_mp_destroy=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25117 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25118 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25119 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25120 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25121 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25122 | { $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] | 25123 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25124 | if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25125 | GOMP_LIBS="-lmp" | 
|  | 25126 | fi | 
|  | 25127 | # SGI IRIX 6.5 MIPSpro C/C++ | 
|  | 25128 | fi | 
|  | 25129 | LIBS="$GOMP_LIBS $LIBS" | 
|  | 25130 | fi | 
|  | 25131 |  | 
|  | 25132 |  | 
|  | 25133 | # | 
|  | 25134 | # Find Posix threads library | 
|  | 25135 | # | 
|  | 25136 | THREAD_LIBS='' | 
|  | 25137 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then | 
|  | 25138 |  | 
|  | 25139 | if test "x$PTHREAD_LIBS" = "x"; then | 
|  | 25140 | case "${host_cpu}-${host_os}" in | 
|  | 25141 | *-freebsd*) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25142 |  | 
|  | 25143 |  | 
|  | 25144 |  | 
|  | 25145 | ac_ext=c | 
|  | 25146 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25150 |  | 
|  | 25151 | magick_pthread_lib_ok=no | 
|  | 25152 |  | 
|  | 25153 | LIB=-lc_r | 
|  | 25154 | save_LIBS="$LIBS" | 
|  | 25155 | LIBS="$LIBS $LIB" | 
|  | 25156 |  | 
|  | 25157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 | 
|  | 25158 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } | 
|  | 25159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 25160 | /* end confdefs.h.  */ | 
|  | 25161 | #include <pthread.h> | 
|  | 25162 | int | 
|  | 25163 | main () | 
|  | 25164 | { | 
|  | 25165 | pthread_t th; | 
|  | 25166 | pthread_join(th, 0); | 
|  | 25167 | pthread_attr_init(0); | 
|  | 25168 | pthread_cleanup_push(0, 0); | 
|  | 25169 | pthread_create(0,0,0,0); | 
|  | 25170 | pthread_cleanup_pop(0); | 
|  | 25171 | ; | 
|  | 25172 | return 0; | 
|  | 25173 | } | 
|  | 25174 | _ACEOF | 
|  | 25175 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 25176 | magick_pthread_lib_ok=yes | 
|  | 25177 | fi | 
|  | 25178 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25179 | conftest$ac_exeext conftest.$ac_ext | 
|  | 25180 |  | 
|  | 25181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 | 
|  | 25182 | $as_echo "${magick_pthread_lib_ok}" >&6; } | 
|  | 25183 | if test "$magick_pthread_lib_ok" = yes | 
|  | 25184 | then | 
|  | 25185 | PTHREAD_LIBS=-lc_r | 
|  | 25186 | : | 
|  | 25187 | else | 
|  | 25188 |  | 
|  | 25189 | : | 
|  | 25190 | fi | 
|  | 25191 |  | 
|  | 25192 | LIBS="$save_LIBS" | 
|  | 25193 |  | 
|  | 25194 | ac_ext=c | 
|  | 25195 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25196 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25197 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25198 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25199 |  | 
|  | 25200 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25201 | esac | 
|  | 25202 | fi | 
|  | 25203 |  | 
|  | 25204 | for lib in pthread pthreads; do | 
|  | 25205 | if test "x$PTHREAD_LIBS" = "x"; then | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25206 |  | 
|  | 25207 |  | 
|  | 25208 |  | 
|  | 25209 | ac_ext=c | 
|  | 25210 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25214 |  | 
|  | 25215 | magick_pthread_lib_ok=no | 
|  | 25216 |  | 
|  | 25217 | LIB=-l$lib | 
|  | 25218 | save_LIBS="$LIBS" | 
|  | 25219 | LIBS="$LIBS $LIB" | 
|  | 25220 |  | 
|  | 25221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 | 
|  | 25222 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } | 
|  | 25223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 25224 | /* end confdefs.h.  */ | 
|  | 25225 | #include <pthread.h> | 
|  | 25226 | int | 
|  | 25227 | main () | 
|  | 25228 | { | 
|  | 25229 | pthread_t th; | 
|  | 25230 | pthread_join(th, 0); | 
|  | 25231 | pthread_attr_init(0); | 
|  | 25232 | pthread_cleanup_push(0, 0); | 
|  | 25233 | pthread_create(0,0,0,0); | 
|  | 25234 | pthread_cleanup_pop(0); | 
|  | 25235 | ; | 
|  | 25236 | return 0; | 
|  | 25237 | } | 
|  | 25238 | _ACEOF | 
|  | 25239 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 25240 | magick_pthread_lib_ok=yes | 
|  | 25241 | fi | 
|  | 25242 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25243 | conftest$ac_exeext conftest.$ac_ext | 
|  | 25244 |  | 
|  | 25245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 | 
|  | 25246 | $as_echo "${magick_pthread_lib_ok}" >&6; } | 
|  | 25247 | if test "$magick_pthread_lib_ok" = yes | 
|  | 25248 | then | 
|  | 25249 | PTHREAD_LIBS=-l$lib | 
|  | 25250 | : | 
|  | 25251 | else | 
|  | 25252 |  | 
|  | 25253 | : | 
|  | 25254 | fi | 
|  | 25255 |  | 
|  | 25256 | LIBS="$save_LIBS" | 
|  | 25257 |  | 
|  | 25258 | ac_ext=c | 
|  | 25259 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 25260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 25261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 25262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 25263 |  | 
|  | 25264 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25265 | fi | 
|  | 25266 | done | 
|  | 25267 |  | 
|  | 25268 | THREAD_LIBS="$PTHREAD_LIBS" | 
|  | 25269 | LIBS="$LIBS $THREAD_LIBS" | 
|  | 25270 | fi | 
|  | 25271 |  | 
|  | 25272 |  | 
|  | 25273 | # | 
|  | 25274 | # Check for umem. | 
|  | 25275 | # | 
|  | 25276 | have_umem='no' | 
|  | 25277 | UMEM_LIBS='' | 
|  | 25278 | if test "$with_umem" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25280 | $as_echo_n "checking for UMEM support ... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25282 | $as_echo "" >&6; } | 
|  | 25283 | failed=0 | 
|  | 25284 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25285 | ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25286 | if test "x$ac_cv_header_umem_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25287 | passed=`expr $passed + 1` | 
|  | 25288 | else | 
|  | 25289 | failed=`expr $failed + 1` | 
|  | 25290 | fi | 
|  | 25291 |  | 
|  | 25292 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25293 | { $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] | 25294 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25295 | if ${ac_cv_lib_umem_umem_alloc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25296 | $as_echo_n "(cached) " >&6 | 
|  | 25297 | else | 
|  | 25298 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25299 | LIBS="-lumem  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25301 | /* end confdefs.h.  */ | 
|  | 25302 |  | 
|  | 25303 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25304 | Use char because int might match the return type of a GCC | 
|  | 25305 | builtin and then its argument prototype would still apply.  */ | 
|  | 25306 | #ifdef __cplusplus | 
|  | 25307 | extern "C" | 
|  | 25308 | #endif | 
|  | 25309 | char umem_alloc (); | 
|  | 25310 | int | 
|  | 25311 | main () | 
|  | 25312 | { | 
|  | 25313 | return umem_alloc (); | 
|  | 25314 | ; | 
|  | 25315 | return 0; | 
|  | 25316 | } | 
|  | 25317 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25318 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25319 | ac_cv_lib_umem_umem_alloc=yes | 
|  | 25320 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25321 | ac_cv_lib_umem_umem_alloc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25322 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25323 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25324 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25325 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25326 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25327 | { $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] | 25328 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25329 | if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25330 | passed=`expr $passed + 1` | 
|  | 25331 | else | 
|  | 25332 | failed=`expr $failed + 1` | 
|  | 25333 | fi | 
|  | 25334 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25335 | { $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] | 25336 | $as_echo_n "checking for umem_free in -lumem... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25337 | if ${ac_cv_lib_umem_umem_free+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25338 | $as_echo_n "(cached) " >&6 | 
|  | 25339 | else | 
|  | 25340 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25341 | LIBS="-lumem  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25343 | /* end confdefs.h.  */ | 
|  | 25344 |  | 
|  | 25345 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25346 | Use char because int might match the return type of a GCC | 
|  | 25347 | builtin and then its argument prototype would still apply.  */ | 
|  | 25348 | #ifdef __cplusplus | 
|  | 25349 | extern "C" | 
|  | 25350 | #endif | 
|  | 25351 | char umem_free (); | 
|  | 25352 | int | 
|  | 25353 | main () | 
|  | 25354 | { | 
|  | 25355 | return umem_free (); | 
|  | 25356 | ; | 
|  | 25357 | return 0; | 
|  | 25358 | } | 
|  | 25359 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25360 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25361 | ac_cv_lib_umem_umem_free=yes | 
|  | 25362 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25363 | ac_cv_lib_umem_umem_free=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25364 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25365 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25366 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25367 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25368 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25369 | { $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] | 25370 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25371 | if test "x$ac_cv_lib_umem_umem_free" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25372 | passed=`expr $passed + 1` | 
|  | 25373 | else | 
|  | 25374 | failed=`expr $failed + 1` | 
|  | 25375 | fi | 
|  | 25376 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25377 | { $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] | 25378 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } | 
|  | 25379 | if test $passed -gt 0; then | 
|  | 25380 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25381 | { $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] | 25382 | $as_echo "no -- some components failed test" >&6; } | 
|  | 25383 | have_umem='no (failed tests)' | 
|  | 25384 | else | 
|  | 25385 | UMEM_LIBS='-lumem' | 
|  | 25386 | LIBS="$UMEM_LIBS $LIBS" | 
|  | 25387 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25388 | $as_echo "#define HasUMEM 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25389 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25391 | $as_echo "yes" >&6; } | 
|  | 25392 | have_umem='yes' | 
|  | 25393 | fi | 
|  | 25394 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25396 | $as_echo "no" >&6; } | 
|  | 25397 | fi | 
|  | 25398 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25399 | if test "$have_umem" = 'yes'; then | 
|  | 25400 | HasUMEM_TRUE= | 
|  | 25401 | HasUMEM_FALSE='#' | 
|  | 25402 | else | 
|  | 25403 | HasUMEM_TRUE='#' | 
|  | 25404 | HasUMEM_FALSE= | 
|  | 25405 | fi | 
|  | 25406 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25407 |  | 
|  | 25408 |  | 
|  | 25409 | # | 
|  | 25410 | # Add support for ccmalloc memory debugging library if requested | 
|  | 25411 | # | 
|  | 25412 | have_ccmalloc='no' | 
|  | 25413 | CCMALLOC_LIBS='' | 
|  | 25414 | if test "$enable_ccmalloc" = 'yes'; then | 
|  | 25415 | # Extract the first word of "ccmalloc", so it can be a program name with args. | 
|  | 25416 | set dummy ccmalloc; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25418 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25419 | if ${ac_cv_path_CCMALLOCDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25420 | $as_echo_n "(cached) " >&6 | 
|  | 25421 | else | 
|  | 25422 | case $CCMALLOCDelegate in | 
|  | 25423 | [\\/]* | ?:[\\/]*) | 
|  | 25424 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. | 
|  | 25425 | ;; | 
|  | 25426 | *) | 
|  | 25427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 25428 | for as_dir in $PATH | 
|  | 25429 | do | 
|  | 25430 | IFS=$as_save_IFS | 
|  | 25431 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25432 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 25434 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25435 | $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] | 25436 | break 2 | 
|  | 25437 | fi | 
|  | 25438 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25439 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25440 | IFS=$as_save_IFS | 
|  | 25441 |  | 
|  | 25442 | ;; | 
|  | 25443 | esac | 
|  | 25444 | fi | 
|  | 25445 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate | 
|  | 25446 | if test -n "$CCMALLOCDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25448 | $as_echo "$CCMALLOCDelegate" >&6; } | 
|  | 25449 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25451 | $as_echo "no" >&6; } | 
|  | 25452 | fi | 
|  | 25453 |  | 
|  | 25454 |  | 
|  | 25455 | if test -n "$CCMALLOCDelegate"; then | 
|  | 25456 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` | 
|  | 25457 | OLIBS="$LIBS" | 
|  | 25458 | # Assume that gcc is used with ccmalloc. | 
|  | 25459 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25460 | { $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] | 25461 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25462 | if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25463 | $as_echo_n "(cached) " >&6 | 
|  | 25464 | else | 
|  | 25465 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25466 | LIBS="-lccmalloc -ldl $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25468 | /* end confdefs.h.  */ | 
|  | 25469 |  | 
|  | 25470 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25471 | Use char because int might match the return type of a GCC | 
|  | 25472 | builtin and then its argument prototype would still apply.  */ | 
|  | 25473 | #ifdef __cplusplus | 
|  | 25474 | extern "C" | 
|  | 25475 | #endif | 
|  | 25476 | char ccmalloc_malloc (); | 
|  | 25477 | int | 
|  | 25478 | main () | 
|  | 25479 | { | 
|  | 25480 | return ccmalloc_malloc (); | 
|  | 25481 | ; | 
|  | 25482 | return 0; | 
|  | 25483 | } | 
|  | 25484 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25485 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25486 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes | 
|  | 25487 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25488 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25489 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25490 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25491 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25492 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25493 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25494 | { $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] | 25495 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25496 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25497 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" | 
|  | 25498 | fi | 
|  | 25499 |  | 
|  | 25500 | if test -n "$CCMALLOC_LIBS"; then | 
|  | 25501 | LIBS="$OLIBS" | 
|  | 25502 | LIBS="$LIBS $CCMALLOC_LIBS" | 
|  | 25503 | have_ccmalloc='yes' | 
|  | 25504 | else | 
|  | 25505 | LIBS="$OLIBS" | 
|  | 25506 | fi | 
|  | 25507 | fi | 
|  | 25508 | fi | 
|  | 25509 |  | 
|  | 25510 | # | 
|  | 25511 | # Add support for efence memory debugging library if requested | 
|  | 25512 | # | 
|  | 25513 | if test "$enable_efence" = 'yes'; then | 
|  | 25514 | EFENCE_LIBS='-lefence' | 
|  | 25515 | LIBS="$EFENCE_LIBS $LIBS" | 
|  | 25516 | fi | 
|  | 25517 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25518 |  | 
|  | 25519 | # | 
|  | 25520 | # Check for BZLIB | 
|  | 25521 | # | 
|  | 25522 |  | 
|  | 25523 |  | 
|  | 25524 | # Check whether --with-bzlib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25525 | if test "${with_bzlib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25526 | withval=$with_bzlib; with_bzlib=$withval | 
|  | 25527 | else | 
|  | 25528 | with_bzlib='yes' | 
|  | 25529 | fi | 
|  | 25530 |  | 
|  | 25531 |  | 
|  | 25532 | if test "$with_bzlib" != 'yes'; then | 
|  | 25533 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " | 
|  | 25534 | fi | 
|  | 25535 |  | 
|  | 25536 | have_bzlib='no' | 
|  | 25537 | if test "$with_bzlib" != 'no'; then | 
|  | 25538 | BZLIB_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25540 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25542 | $as_echo_n "checking for BZLIB... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25544 | $as_echo "" >&6; } | 
|  | 25545 | failed=0 | 
|  | 25546 | passed=0 | 
|  | 25547 | found_libbz=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25548 | ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25549 | if test "x$ac_cv_header_bzlib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25550 | passed=`expr $passed + 1` | 
|  | 25551 | else | 
|  | 25552 | failed=`expr $failed + 1` | 
|  | 25553 | fi | 
|  | 25554 |  | 
|  | 25555 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25556 | { $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] | 25557 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25558 | if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25559 | $as_echo_n "(cached) " >&6 | 
|  | 25560 | else | 
|  | 25561 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25562 | LIBS="-lbz2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25564 | /* end confdefs.h.  */ | 
|  | 25565 |  | 
|  | 25566 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25567 | Use char because int might match the return type of a GCC | 
|  | 25568 | builtin and then its argument prototype would still apply.  */ | 
|  | 25569 | #ifdef __cplusplus | 
|  | 25570 | extern "C" | 
|  | 25571 | #endif | 
|  | 25572 | char BZ2_bzDecompress (); | 
|  | 25573 | int | 
|  | 25574 | main () | 
|  | 25575 | { | 
|  | 25576 | return BZ2_bzDecompress (); | 
|  | 25577 | ; | 
|  | 25578 | return 0; | 
|  | 25579 | } | 
|  | 25580 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25581 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25582 | ac_cv_lib_bz2_BZ2_bzDecompress=yes | 
|  | 25583 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25584 | ac_cv_lib_bz2_BZ2_bzDecompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25585 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25586 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25587 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25588 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25589 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25590 | { $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] | 25591 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25592 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25593 | found_libbz=`expr $found_libbz + 1` | 
|  | 25594 | fi | 
|  | 25595 |  | 
|  | 25596 | if test "$native_win32_build" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25597 | { $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] | 25598 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25599 | if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25600 | $as_echo_n "(cached) " >&6 | 
|  | 25601 | else | 
|  | 25602 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25603 | LIBS="-lbz2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25605 | /* end confdefs.h.  */ | 
|  | 25606 |  | 
|  | 25607 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25608 | Use char because int might match the return type of a GCC | 
|  | 25609 | builtin and then its argument prototype would still apply.  */ | 
|  | 25610 | #ifdef __cplusplus | 
|  | 25611 | extern "C" | 
|  | 25612 | #endif | 
|  | 25613 | char _imp__BZ2_decompress (); | 
|  | 25614 | int | 
|  | 25615 | main () | 
|  | 25616 | { | 
|  | 25617 | return _imp__BZ2_decompress (); | 
|  | 25618 | ; | 
|  | 25619 | return 0; | 
|  | 25620 | } | 
|  | 25621 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25622 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25623 | ac_cv_lib_bz2__imp__BZ2_decompress=yes | 
|  | 25624 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25625 | ac_cv_lib_bz2__imp__BZ2_decompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25626 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25627 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25628 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25629 | LIBS=$ac_check_lib_save_LIBS | 
|  | 25630 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25631 | { $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] | 25632 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25633 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25634 | found_libbz=`expr $found_libbz + 1` | 
|  | 25635 | fi | 
|  | 25636 |  | 
|  | 25637 | fi | 
|  | 25638 | if test $found_libbz -gt 0; then | 
|  | 25639 | passed=`expr $passed + 1` | 
|  | 25640 | else | 
|  | 25641 | failed=`expr $failed + 1` | 
|  | 25642 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25643 | { $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] | 25644 | $as_echo_n "checking if BZLIB package is complete... " >&6; } | 
|  | 25645 | if test $passed -gt 0; then | 
|  | 25646 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25647 | { $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] | 25648 | $as_echo "no -- some components failed test" >&6; } | 
|  | 25649 | have_bzlib='no (failed tests)' | 
|  | 25650 | else | 
|  | 25651 | BZLIB_LIBS='-lbz2' | 
|  | 25652 | LIBS="$BZLIB_LIBS $LIBS" | 
|  | 25653 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25654 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25655 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25657 | $as_echo "yes" >&6; } | 
|  | 25658 | have_bzlib='yes' | 
|  | 25659 | fi | 
|  | 25660 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25662 | $as_echo "no" >&6; } | 
|  | 25663 | fi | 
|  | 25664 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25665 | if test "$have_bzlib" = 'yes'; then | 
|  | 25666 | BZLIB_DELEGATE_TRUE= | 
|  | 25667 | BZLIB_DELEGATE_FALSE='#' | 
|  | 25668 | else | 
|  | 25669 | BZLIB_DELEGATE_TRUE='#' | 
|  | 25670 | BZLIB_DELEGATE_FALSE= | 
|  | 25671 | fi | 
|  | 25672 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25673 |  | 
|  | 25674 |  | 
|  | 25675 | # | 
|  | 25676 | # Find the X11 include and library directories. | 
|  | 25677 | # | 
|  | 25678 | IPC_LIBS='' | 
|  | 25679 | X11_LIBS='' | 
|  | 25680 | XEXT_LIBS='' | 
|  | 25681 | XT_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25683 | $as_echo_n "checking for X... " >&6; } | 
|  | 25684 |  | 
|  | 25685 |  | 
|  | 25686 | # Check whether --with-x was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25687 | if test "${with_x+set}" = set; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25688 | withval=$with_x; | 
|  | 25689 | fi | 
|  | 25690 |  | 
|  | 25691 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | 
|  | 25692 | if test "x$with_x" = xno; then | 
|  | 25693 | # The user explicitly disabled X. | 
|  | 25694 | have_x=disabled | 
|  | 25695 | else | 
|  | 25696 | case $x_includes,$x_libraries in #( | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25697 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25698 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25699 | $as_echo_n "(cached) " >&6 | 
|  | 25700 | else | 
|  | 25701 | # One or both of the vars are not set, and there is no cached value. | 
|  | 25702 | ac_x_includes=no ac_x_libraries=no | 
|  | 25703 | rm -f -r conftest.dir | 
|  | 25704 | if mkdir conftest.dir; then | 
|  | 25705 | cd conftest.dir | 
|  | 25706 | cat >Imakefile <<'_ACEOF' | 
|  | 25707 | incroot: | 
|  | 25708 | @echo incroot='${INCROOT}' | 
|  | 25709 | usrlibdir: | 
|  | 25710 | @echo usrlibdir='${USRLIBDIR}' | 
|  | 25711 | libdir: | 
|  | 25712 | @echo libdir='${LIBDIR}' | 
|  | 25713 | _ACEOF | 
|  | 25714 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25715 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25716 | for ac_var in incroot usrlibdir libdir; do | 
|  | 25717 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | 
|  | 25718 | done | 
|  | 25719 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | 
|  | 25720 | for ac_extension in a so sl dylib la dll; do | 
|  | 25721 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | 
|  | 25722 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | 
|  | 25723 | ac_im_usrlibdir=$ac_im_libdir; break | 
|  | 25724 | fi | 
|  | 25725 | done | 
|  | 25726 | # Screen out bogus values from the imake configuration.  They are | 
|  | 25727 | # bogus both because they are the default anyway, and because | 
|  | 25728 | # using them would break gcc on systems where it needs fixed includes. | 
|  | 25729 | case $ac_im_incroot in | 
|  | 25730 | /usr/include) ac_x_includes= ;; | 
|  | 25731 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | 
|  | 25732 | esac | 
|  | 25733 | case $ac_im_usrlibdir in | 
|  | 25734 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; | 
|  | 25735 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | 
|  | 25736 | esac | 
|  | 25737 | fi | 
|  | 25738 | cd .. | 
|  | 25739 | rm -f -r conftest.dir | 
|  | 25740 | fi | 
|  | 25741 |  | 
|  | 25742 | # Standard set of common directories for X headers. | 
|  | 25743 | # Check X11 before X11Rn because it is often a symlink to the current release. | 
|  | 25744 | ac_x_header_dirs=' | 
|  | 25745 | /usr/X11/include | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25746 | /usr/X11R7/include | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25747 | /usr/X11R6/include | 
|  | 25748 | /usr/X11R5/include | 
|  | 25749 | /usr/X11R4/include | 
|  | 25750 |  | 
|  | 25751 | /usr/include/X11 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25752 | /usr/include/X11R7 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25753 | /usr/include/X11R6 | 
|  | 25754 | /usr/include/X11R5 | 
|  | 25755 | /usr/include/X11R4 | 
|  | 25756 |  | 
|  | 25757 | /usr/local/X11/include | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25758 | /usr/local/X11R7/include | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25759 | /usr/local/X11R6/include | 
|  | 25760 | /usr/local/X11R5/include | 
|  | 25761 | /usr/local/X11R4/include | 
|  | 25762 |  | 
|  | 25763 | /usr/local/include/X11 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25764 | /usr/local/include/X11R7 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25765 | /usr/local/include/X11R6 | 
|  | 25766 | /usr/local/include/X11R5 | 
|  | 25767 | /usr/local/include/X11R4 | 
|  | 25768 |  | 
|  | 25769 | /usr/X386/include | 
|  | 25770 | /usr/x386/include | 
|  | 25771 | /usr/XFree86/include/X11 | 
|  | 25772 |  | 
|  | 25773 | /usr/include | 
|  | 25774 | /usr/local/include | 
|  | 25775 | /usr/unsupported/include | 
|  | 25776 | /usr/athena/include | 
|  | 25777 | /usr/local/x11r5/include | 
|  | 25778 | /usr/lpp/Xamples/include | 
|  | 25779 |  | 
|  | 25780 | /usr/openwin/include | 
|  | 25781 | /usr/openwin/share/include' | 
|  | 25782 |  | 
|  | 25783 | if test "$ac_x_includes" = no; then | 
|  | 25784 | # Guess where to find include files, by looking for Xlib.h. | 
|  | 25785 | # First, try using that file with no special directory specified. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25787 | /* end confdefs.h.  */ | 
|  | 25788 | #include <X11/Xlib.h> | 
|  | 25789 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25790 | if ac_fn_c_try_cpp "$LINENO"; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25791 | # We can compile using X headers with no special include directory. | 
|  | 25792 | ac_x_includes= | 
|  | 25793 | else | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25794 | for ac_dir in $ac_x_header_dirs; do | 
|  | 25795 | if test -r "$ac_dir/X11/Xlib.h"; then | 
|  | 25796 | ac_x_includes=$ac_dir | 
|  | 25797 | break | 
|  | 25798 | fi | 
|  | 25799 | done | 
|  | 25800 | fi | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25801 | rm -f conftest.err conftest.i conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25802 | fi # $ac_x_includes = no | 
|  | 25803 |  | 
|  | 25804 | if test "$ac_x_libraries" = no; then | 
|  | 25805 | # Check for the libraries. | 
|  | 25806 | # See if we find them without any special options. | 
|  | 25807 | # Don't add to $LIBS permanently. | 
|  | 25808 | ac_save_LIBS=$LIBS | 
|  | 25809 | LIBS="-lX11 $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25811 | /* end confdefs.h.  */ | 
|  | 25812 | #include <X11/Xlib.h> | 
|  | 25813 | int | 
|  | 25814 | main () | 
|  | 25815 | { | 
|  | 25816 | XrmInitialize () | 
|  | 25817 | ; | 
|  | 25818 | return 0; | 
|  | 25819 | } | 
|  | 25820 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25821 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25822 | LIBS=$ac_save_LIBS | 
|  | 25823 | # We can link X programs with no special library path. | 
|  | 25824 | ac_x_libraries= | 
|  | 25825 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25826 | LIBS=$ac_save_LIBS | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25827 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | 
|  | 25828 | do | 
|  | 25829 | # Don't even attempt the hair of trying to link an X program! | 
|  | 25830 | for ac_extension in a so sl dylib la dll; do | 
|  | 25831 | if test -r "$ac_dir/libX11.$ac_extension"; then | 
|  | 25832 | ac_x_libraries=$ac_dir | 
|  | 25833 | break 2 | 
|  | 25834 | fi | 
|  | 25835 | done | 
|  | 25836 | done | 
|  | 25837 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25838 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25839 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25840 | fi # $ac_x_libraries = no | 
|  | 25841 |  | 
|  | 25842 | case $ac_x_includes,$ac_x_libraries in #( | 
|  | 25843 | no,* | *,no | *\'*) | 
|  | 25844 | # Didn't find X, or a directory has "'" in its name. | 
|  | 25845 | ac_cv_have_x="have_x=no";; #( | 
|  | 25846 | *) | 
|  | 25847 | # Record where we found X for the cache. | 
|  | 25848 | ac_cv_have_x="have_x=yes\ | 
|  | 25849 | ac_x_includes='$ac_x_includes'\ | 
|  | 25850 | ac_x_libraries='$ac_x_libraries'" | 
|  | 25851 | esac | 
|  | 25852 | fi | 
|  | 25853 | ;; #( | 
|  | 25854 | *) have_x=yes;; | 
|  | 25855 | esac | 
|  | 25856 | eval "$ac_cv_have_x" | 
|  | 25857 | fi # $with_x != no | 
|  | 25858 |  | 
|  | 25859 | if test "$have_x" != yes; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | 
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 25861 | $as_echo "$have_x" >&6; } | 
|  | 25862 | no_x=yes | 
|  | 25863 | else | 
|  | 25864 | # If each of the values was on the command line, it overrides each guess. | 
|  | 25865 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | 
|  | 25866 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | 
|  | 25867 | # Update the cache value to reflect the command line values. | 
|  | 25868 | ac_cv_have_x="have_x=yes\ | 
|  | 25869 | ac_x_includes='$x_includes'\ | 
|  | 25870 | ac_x_libraries='$x_libraries'" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25871 | { $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] | 25872 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | 
|  | 25873 | fi | 
|  | 25874 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25875 | if test "$no_x" = yes; then | 
|  | 25876 | # Not all programs may use this symbol, but it does not hurt to define it. | 
|  | 25877 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25878 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25879 |  | 
|  | 25880 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | 
|  | 25881 | else | 
|  | 25882 | if test -n "$x_includes"; then | 
|  | 25883 | X_CFLAGS="$X_CFLAGS -I$x_includes" | 
|  | 25884 | fi | 
|  | 25885 |  | 
|  | 25886 | # It would also be nice to do this for all -L options, not just this one. | 
|  | 25887 | if test -n "$x_libraries"; then | 
|  | 25888 | X_LIBS="$X_LIBS -L$x_libraries" | 
|  | 25889 | # For Solaris; some versions of Sun CC require a space after -R and | 
|  | 25890 | # others require no space.  Words are not sufficient . . . . | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25891 | { $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] | 25892 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | 
|  | 25893 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | 
|  | 25894 | ac_xsave_c_werror_flag=$ac_c_werror_flag | 
|  | 25895 | ac_c_werror_flag=yes | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25897 | /* end confdefs.h.  */ | 
|  | 25898 |  | 
|  | 25899 | int | 
|  | 25900 | main () | 
|  | 25901 | { | 
|  | 25902 |  | 
|  | 25903 | ; | 
|  | 25904 | return 0; | 
|  | 25905 | } | 
|  | 25906 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25907 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 25908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25909 | $as_echo "no" >&6; } | 
|  | 25910 | X_LIBS="$X_LIBS -R$x_libraries" | 
|  | 25911 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25912 | LIBS="$ac_xsave_LIBS -R $x_libraries" | 
|  | 25913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25914 | /* end confdefs.h.  */ | 
|  | 25915 |  | 
|  | 25916 | int | 
|  | 25917 | main () | 
|  | 25918 | { | 
|  | 25919 |  | 
|  | 25920 | ; | 
|  | 25921 | return 0; | 
|  | 25922 | } | 
|  | 25923 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25924 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 25925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25926 | $as_echo "yes" >&6; } | 
|  | 25927 | X_LIBS="$X_LIBS -R $x_libraries" | 
|  | 25928 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25930 | $as_echo "neither works" >&6; } | 
|  | 25931 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25932 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25933 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25934 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25935 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 25936 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25937 | ac_c_werror_flag=$ac_xsave_c_werror_flag | 
|  | 25938 | LIBS=$ac_xsave_LIBS | 
|  | 25939 | fi | 
|  | 25940 |  | 
|  | 25941 | # Check for system-dependent libraries X programs must link with. | 
|  | 25942 | # Do this before checking for the system-independent R6 libraries | 
|  | 25943 | # (-lICE), since we may need -lsocket or whatever for X linking. | 
|  | 25944 |  | 
|  | 25945 | if test "$ISC" = yes; then | 
|  | 25946 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | 
|  | 25947 | else | 
|  | 25948 | # Martyn Johnson says this is needed for Ultrix, if the X | 
|  | 25949 | # libraries were built with DECnet support.  And Karl Berry says | 
|  | 25950 | # the Alpha needs dnet_stub (dnet does not exist). | 
|  | 25951 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25953 | /* end confdefs.h.  */ | 
|  | 25954 |  | 
|  | 25955 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25956 | Use char because int might match the return type of a GCC | 
|  | 25957 | builtin and then its argument prototype would still apply.  */ | 
|  | 25958 | #ifdef __cplusplus | 
|  | 25959 | extern "C" | 
|  | 25960 | #endif | 
|  | 25961 | char XOpenDisplay (); | 
|  | 25962 | int | 
|  | 25963 | main () | 
|  | 25964 | { | 
|  | 25965 | return XOpenDisplay (); | 
|  | 25966 | ; | 
|  | 25967 | return 0; | 
|  | 25968 | } | 
|  | 25969 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25970 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25971 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25972 | else | 
|  | 25973 | { $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] | 25974 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25975 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25976 | $as_echo_n "(cached) " >&6 | 
|  | 25977 | else | 
|  | 25978 | ac_check_lib_save_LIBS=$LIBS | 
|  | 25979 | LIBS="-ldnet  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25981 | /* end confdefs.h.  */ | 
|  | 25982 |  | 
|  | 25983 | /* Override any GCC internal prototype to avoid an error. | 
|  | 25984 | Use char because int might match the return type of a GCC | 
|  | 25985 | builtin and then its argument prototype would still apply.  */ | 
|  | 25986 | #ifdef __cplusplus | 
|  | 25987 | extern "C" | 
|  | 25988 | #endif | 
|  | 25989 | char dnet_ntoa (); | 
|  | 25990 | int | 
|  | 25991 | main () | 
|  | 25992 | { | 
|  | 25993 | return dnet_ntoa (); | 
|  | 25994 | ; | 
|  | 25995 | return 0; | 
|  | 25996 | } | 
|  | 25997 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25998 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25999 | ac_cv_lib_dnet_dnet_ntoa=yes | 
|  | 26000 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26001 | ac_cv_lib_dnet_dnet_ntoa=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26002 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26003 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26004 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26005 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26006 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26007 | { $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] | 26008 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26009 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26010 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | 
|  | 26011 | fi | 
|  | 26012 |  | 
|  | 26013 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26014 | { $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] | 26015 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26016 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26017 | $as_echo_n "(cached) " >&6 | 
|  | 26018 | else | 
|  | 26019 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26020 | LIBS="-ldnet_stub  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26022 | /* end confdefs.h.  */ | 
|  | 26023 |  | 
|  | 26024 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26025 | Use char because int might match the return type of a GCC | 
|  | 26026 | builtin and then its argument prototype would still apply.  */ | 
|  | 26027 | #ifdef __cplusplus | 
|  | 26028 | extern "C" | 
|  | 26029 | #endif | 
|  | 26030 | char dnet_ntoa (); | 
|  | 26031 | int | 
|  | 26032 | main () | 
|  | 26033 | { | 
|  | 26034 | return dnet_ntoa (); | 
|  | 26035 | ; | 
|  | 26036 | return 0; | 
|  | 26037 | } | 
|  | 26038 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26039 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26040 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | 
|  | 26041 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26042 | ac_cv_lib_dnet_stub_dnet_ntoa=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26043 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26044 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26045 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26046 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26047 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26048 | { $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] | 26049 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26050 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26051 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | 
|  | 26052 | fi | 
|  | 26053 |  | 
|  | 26054 | fi | 
|  | 26055 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26056 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26057 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26058 | LIBS="$ac_xsave_LIBS" | 
|  | 26059 |  | 
|  | 26060 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | 
|  | 26061 | # to get the SysV transport functions. | 
|  | 26062 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | 
|  | 26063 | # needs -lnsl. | 
|  | 26064 | # The nsl library prevents programs from opening the X display | 
|  | 26065 | # on Irix 5.2, according to T.E. Dickey. | 
|  | 26066 | # The functions gethostbyname, getservbyname, and inet_addr are | 
|  | 26067 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26068 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26069 | if test "x$ac_cv_func_gethostbyname" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26070 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26071 | fi | 
|  | 26072 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26073 | if test $ac_cv_func_gethostbyname = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26075 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26076 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26077 | $as_echo_n "(cached) " >&6 | 
|  | 26078 | else | 
|  | 26079 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26080 | LIBS="-lnsl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26082 | /* end confdefs.h.  */ | 
|  | 26083 |  | 
|  | 26084 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26085 | Use char because int might match the return type of a GCC | 
|  | 26086 | builtin and then its argument prototype would still apply.  */ | 
|  | 26087 | #ifdef __cplusplus | 
|  | 26088 | extern "C" | 
|  | 26089 | #endif | 
|  | 26090 | char gethostbyname (); | 
|  | 26091 | int | 
|  | 26092 | main () | 
|  | 26093 | { | 
|  | 26094 | return gethostbyname (); | 
|  | 26095 | ; | 
|  | 26096 | return 0; | 
|  | 26097 | } | 
|  | 26098 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26099 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26100 | ac_cv_lib_nsl_gethostbyname=yes | 
|  | 26101 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26102 | ac_cv_lib_nsl_gethostbyname=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26103 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26104 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26105 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26106 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26107 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26108 | { $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] | 26109 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26110 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26111 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | 
|  | 26112 | fi | 
|  | 26113 |  | 
|  | 26114 | if test $ac_cv_lib_nsl_gethostbyname = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26116 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26117 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26118 | $as_echo_n "(cached) " >&6 | 
|  | 26119 | else | 
|  | 26120 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26121 | LIBS="-lbsd  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26123 | /* end confdefs.h.  */ | 
|  | 26124 |  | 
|  | 26125 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26126 | Use char because int might match the return type of a GCC | 
|  | 26127 | builtin and then its argument prototype would still apply.  */ | 
|  | 26128 | #ifdef __cplusplus | 
|  | 26129 | extern "C" | 
|  | 26130 | #endif | 
|  | 26131 | char gethostbyname (); | 
|  | 26132 | int | 
|  | 26133 | main () | 
|  | 26134 | { | 
|  | 26135 | return gethostbyname (); | 
|  | 26136 | ; | 
|  | 26137 | return 0; | 
|  | 26138 | } | 
|  | 26139 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26140 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26141 | ac_cv_lib_bsd_gethostbyname=yes | 
|  | 26142 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26143 | ac_cv_lib_bsd_gethostbyname=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26144 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26145 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26146 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26147 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26148 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26149 | { $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] | 26150 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26151 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26152 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | 
|  | 26153 | fi | 
|  | 26154 |  | 
|  | 26155 | fi | 
|  | 26156 | fi | 
|  | 26157 |  | 
|  | 26158 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | 
|  | 26159 | # socket/setsockopt and other routines are undefined under SCO ODT | 
|  | 26160 | # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary | 
|  | 26161 | # on later versions), says Simon Leinen: it contains gethostby* | 
|  | 26162 | # variants that don't use the name server (or something).  -lsocket | 
|  | 26163 | # must be given before -lnsl if both are needed.  We assume that | 
|  | 26164 | # if connect needs -lnsl, so does gethostbyname. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26165 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26166 | if test "x$ac_cv_func_connect" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26167 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26168 | fi | 
|  | 26169 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26170 | if test $ac_cv_func_connect = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26172 | $as_echo_n "checking for connect in -lsocket... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26173 | if ${ac_cv_lib_socket_connect+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26174 | $as_echo_n "(cached) " >&6 | 
|  | 26175 | else | 
|  | 26176 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26177 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26179 | /* end confdefs.h.  */ | 
|  | 26180 |  | 
|  | 26181 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26182 | Use char because int might match the return type of a GCC | 
|  | 26183 | builtin and then its argument prototype would still apply.  */ | 
|  | 26184 | #ifdef __cplusplus | 
|  | 26185 | extern "C" | 
|  | 26186 | #endif | 
|  | 26187 | char connect (); | 
|  | 26188 | int | 
|  | 26189 | main () | 
|  | 26190 | { | 
|  | 26191 | return connect (); | 
|  | 26192 | ; | 
|  | 26193 | return 0; | 
|  | 26194 | } | 
|  | 26195 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26196 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26197 | ac_cv_lib_socket_connect=yes | 
|  | 26198 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26199 | ac_cv_lib_socket_connect=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26200 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26201 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26202 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26203 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26204 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26205 | { $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] | 26206 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26207 | if test "x$ac_cv_lib_socket_connect" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26208 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | 
|  | 26209 | fi | 
|  | 26210 |  | 
|  | 26211 | fi | 
|  | 26212 |  | 
|  | 26213 | # Guillermo Gomez says -lposix is necessary on A/UX. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26214 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26215 | if test "x$ac_cv_func_remove" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26216 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26217 | fi | 
|  | 26218 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26219 | if test $ac_cv_func_remove = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26221 | $as_echo_n "checking for remove in -lposix... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26222 | if ${ac_cv_lib_posix_remove+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26223 | $as_echo_n "(cached) " >&6 | 
|  | 26224 | else | 
|  | 26225 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26226 | LIBS="-lposix  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26228 | /* end confdefs.h.  */ | 
|  | 26229 |  | 
|  | 26230 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26231 | Use char because int might match the return type of a GCC | 
|  | 26232 | builtin and then its argument prototype would still apply.  */ | 
|  | 26233 | #ifdef __cplusplus | 
|  | 26234 | extern "C" | 
|  | 26235 | #endif | 
|  | 26236 | char remove (); | 
|  | 26237 | int | 
|  | 26238 | main () | 
|  | 26239 | { | 
|  | 26240 | return remove (); | 
|  | 26241 | ; | 
|  | 26242 | return 0; | 
|  | 26243 | } | 
|  | 26244 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26245 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26246 | ac_cv_lib_posix_remove=yes | 
|  | 26247 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26248 | ac_cv_lib_posix_remove=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26249 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26250 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26251 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26252 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26253 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26254 | { $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] | 26255 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26256 | if test "x$ac_cv_lib_posix_remove" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26257 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | 
|  | 26258 | fi | 
|  | 26259 |  | 
|  | 26260 | fi | 
|  | 26261 |  | 
|  | 26262 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26263 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26264 | if test "x$ac_cv_func_shmat" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26265 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26266 | fi | 
|  | 26267 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26268 | if test $ac_cv_func_shmat = no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26270 | $as_echo_n "checking for shmat in -lipc... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26271 | if ${ac_cv_lib_ipc_shmat+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26272 | $as_echo_n "(cached) " >&6 | 
|  | 26273 | else | 
|  | 26274 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26275 | LIBS="-lipc  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26277 | /* end confdefs.h.  */ | 
|  | 26278 |  | 
|  | 26279 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26280 | Use char because int might match the return type of a GCC | 
|  | 26281 | builtin and then its argument prototype would still apply.  */ | 
|  | 26282 | #ifdef __cplusplus | 
|  | 26283 | extern "C" | 
|  | 26284 | #endif | 
|  | 26285 | char shmat (); | 
|  | 26286 | int | 
|  | 26287 | main () | 
|  | 26288 | { | 
|  | 26289 | return shmat (); | 
|  | 26290 | ; | 
|  | 26291 | return 0; | 
|  | 26292 | } | 
|  | 26293 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26294 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26295 | ac_cv_lib_ipc_shmat=yes | 
|  | 26296 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26297 | ac_cv_lib_ipc_shmat=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26298 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26299 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26300 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26301 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26302 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26303 | { $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] | 26304 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26305 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26306 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | 
|  | 26307 | fi | 
|  | 26308 |  | 
|  | 26309 | fi | 
|  | 26310 | fi | 
|  | 26311 |  | 
|  | 26312 | # Check for libraries that X11R6 Xt/Xaw programs need. | 
|  | 26313 | ac_save_LDFLAGS=$LDFLAGS | 
|  | 26314 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | 
|  | 26315 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | 
|  | 26316 | # check for ICE first), but we must link in the order -lSM -lICE or | 
|  | 26317 | # we get undefined symbols.  So assume we have SM if we have ICE. | 
|  | 26318 | # These have to be linked with before -lX11, unlike the other | 
|  | 26319 | # libraries we check for below, so use a different variable. | 
|  | 26320 | # John Interrante, Karl Berry | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26322 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26323 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26324 | $as_echo_n "(cached) " >&6 | 
|  | 26325 | else | 
|  | 26326 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26327 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26328 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26329 | /* end confdefs.h.  */ | 
|  | 26330 |  | 
|  | 26331 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26332 | Use char because int might match the return type of a GCC | 
|  | 26333 | builtin and then its argument prototype would still apply.  */ | 
|  | 26334 | #ifdef __cplusplus | 
|  | 26335 | extern "C" | 
|  | 26336 | #endif | 
|  | 26337 | char IceConnectionNumber (); | 
|  | 26338 | int | 
|  | 26339 | main () | 
|  | 26340 | { | 
|  | 26341 | return IceConnectionNumber (); | 
|  | 26342 | ; | 
|  | 26343 | return 0; | 
|  | 26344 | } | 
|  | 26345 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26346 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26347 | ac_cv_lib_ICE_IceConnectionNumber=yes | 
|  | 26348 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26349 | ac_cv_lib_ICE_IceConnectionNumber=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26350 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26351 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26352 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26353 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26354 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26355 | { $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] | 26356 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26357 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26358 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | 
|  | 26359 | fi | 
|  | 26360 |  | 
|  | 26361 | LDFLAGS=$ac_save_LDFLAGS | 
|  | 26362 |  | 
|  | 26363 | fi | 
|  | 26364 |  | 
|  | 26365 | if test "$no_x" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26367 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26369 | $as_echo_n "checking for X11... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26371 | $as_echo "" >&6; } | 
|  | 26372 | LDFLAGS="$LDFLAGS $X_LIBS" | 
|  | 26373 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" | 
|  | 26374 | LIBS="$X11_LIBS $LIBS" | 
|  | 26375 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | 
|  | 26376 |  | 
|  | 26377 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26378 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26379 |  | 
|  | 26380 | # | 
|  | 26381 | # Check for X11 shared memory extension | 
|  | 26382 | # | 
|  | 26383 | # shmctl is required to support the shared memory extension | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26384 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26385 | if test "x$ac_cv_func_shmctl" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26386 | have_shmctl='yes' | 
|  | 26387 | fi | 
|  | 26388 |  | 
|  | 26389 | if test "$have_shmctl" != 'yes'; then | 
|  | 26390 | PERSIST_LIBS=$LIBS | 
|  | 26391 | LIBS="$LIBS -lcygipc" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26393 | /* end confdefs.h.  */ | 
|  | 26394 |  | 
|  | 26395 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26396 | Use char because int might match the return type of a GCC | 
|  | 26397 | builtin and then its argument prototype would still apply.  */ | 
|  | 26398 | #ifdef __cplusplus | 
|  | 26399 | extern "C" | 
|  | 26400 | #endif | 
|  | 26401 | char shmctl (); | 
|  | 26402 | int | 
|  | 26403 | main () | 
|  | 26404 | { | 
|  | 26405 | return shmctl (); | 
|  | 26406 | ; | 
|  | 26407 | return 0; | 
|  | 26408 | } | 
|  | 26409 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26410 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26411 | have_shmctl='yes'; IPC_LIBS='-lcygipc' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26412 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26413 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26414 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26415 | LIBS=$PERSIST_LIBS | 
|  | 26416 | fi | 
|  | 26417 |  | 
|  | 26418 | if test "$have_shmctl" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26420 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26421 | if ${ac_cv_lib_Xext_XShmAttach+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26422 | $as_echo_n "(cached) " >&6 | 
|  | 26423 | else | 
|  | 26424 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26425 | LIBS="-lXext  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26427 | /* end confdefs.h.  */ | 
|  | 26428 |  | 
|  | 26429 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26430 | Use char because int might match the return type of a GCC | 
|  | 26431 | builtin and then its argument prototype would still apply.  */ | 
|  | 26432 | #ifdef __cplusplus | 
|  | 26433 | extern "C" | 
|  | 26434 | #endif | 
|  | 26435 | char XShmAttach (); | 
|  | 26436 | int | 
|  | 26437 | main () | 
|  | 26438 | { | 
|  | 26439 | return XShmAttach (); | 
|  | 26440 | ; | 
|  | 26441 | return 0; | 
|  | 26442 | } | 
|  | 26443 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26444 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26445 | ac_cv_lib_Xext_XShmAttach=yes | 
|  | 26446 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26447 | ac_cv_lib_Xext_XShmAttach=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26448 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26449 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26450 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26451 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26452 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26453 | { $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] | 26454 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26455 | if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26456 | XEXT_LIBS='-lXext' ; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26457 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26458 |  | 
|  | 26459 | fi | 
|  | 26460 |  | 
|  | 26461 | fi | 
|  | 26462 |  | 
|  | 26463 | # | 
|  | 26464 | # Check for X11 shape extension | 
|  | 26465 | # | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26467 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26468 | if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26469 | $as_echo_n "(cached) " >&6 | 
|  | 26470 | else | 
|  | 26471 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26472 | LIBS="-lXext  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26474 | /* end confdefs.h.  */ | 
|  | 26475 |  | 
|  | 26476 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26477 | Use char because int might match the return type of a GCC | 
|  | 26478 | builtin and then its argument prototype would still apply.  */ | 
|  | 26479 | #ifdef __cplusplus | 
|  | 26480 | extern "C" | 
|  | 26481 | #endif | 
|  | 26482 | char XShapeCombineMask (); | 
|  | 26483 | int | 
|  | 26484 | main () | 
|  | 26485 | { | 
|  | 26486 | return XShapeCombineMask (); | 
|  | 26487 | ; | 
|  | 26488 | return 0; | 
|  | 26489 | } | 
|  | 26490 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26491 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26492 | ac_cv_lib_Xext_XShapeCombineMask=yes | 
|  | 26493 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26494 | ac_cv_lib_Xext_XShapeCombineMask=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26495 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26496 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26497 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26498 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26499 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26500 | { $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] | 26501 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26502 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26503 | XEXT_LIBS='-lXext' ; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26504 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26505 |  | 
|  | 26506 | fi | 
|  | 26507 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26509 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26510 | if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26511 | $as_echo_n "(cached) " >&6 | 
|  | 26512 | else | 
|  | 26513 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26514 | LIBS="-lXt  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26516 | /* end confdefs.h.  */ | 
|  | 26517 |  | 
|  | 26518 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26519 | Use char because int might match the return type of a GCC | 
|  | 26520 | builtin and then its argument prototype would still apply.  */ | 
|  | 26521 | #ifdef __cplusplus | 
|  | 26522 | extern "C" | 
|  | 26523 | #endif | 
|  | 26524 | char XtSetEventDispatcher (); | 
|  | 26525 | int | 
|  | 26526 | main () | 
|  | 26527 | { | 
|  | 26528 | return XtSetEventDispatcher (); | 
|  | 26529 | ; | 
|  | 26530 | return 0; | 
|  | 26531 | } | 
|  | 26532 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26533 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26534 | ac_cv_lib_Xt_XtSetEventDispatcher=yes | 
|  | 26535 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26536 | ac_cv_lib_Xt_XtSetEventDispatcher=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26537 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26538 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26539 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26540 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26541 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26542 | { $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] | 26543 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26544 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26545 | XT_LIBS='-lXt' | 
|  | 26546 | fi | 
|  | 26547 |  | 
|  | 26548 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" | 
|  | 26549 | fi | 
|  | 26550 | if test "$no_x" != 'yes'; then | 
|  | 26551 | have_x='yes' | 
|  | 26552 | else | 
|  | 26553 | have_x='no' | 
|  | 26554 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26555 | if test "$have_x" = 'yes'; then | 
|  | 26556 | X11_DELEGATE_TRUE= | 
|  | 26557 | X11_DELEGATE_FALSE='#' | 
|  | 26558 | else | 
|  | 26559 | X11_DELEGATE_TRUE='#' | 
|  | 26560 | X11_DELEGATE_FALSE= | 
|  | 26561 | fi | 
|  | 26562 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26563 |  | 
|  | 26564 |  | 
|  | 26565 |  | 
|  | 26566 |  | 
|  | 26567 | # | 
|  | 26568 | # Check for ZLIB | 
|  | 26569 | # | 
|  | 26570 |  | 
|  | 26571 | # Check whether --with-zlib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26572 | if test "${with_zlib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26573 | withval=$with_zlib; with_zlib=$withval | 
|  | 26574 | else | 
|  | 26575 | with_zlib='yes' | 
|  | 26576 | fi | 
|  | 26577 |  | 
|  | 26578 |  | 
|  | 26579 | if test "$with_zlib" != 'yes'; then | 
|  | 26580 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " | 
|  | 26581 | fi | 
|  | 26582 |  | 
|  | 26583 | have_zlib='no' | 
|  | 26584 | ZLIB_LIBS='' | 
|  | 26585 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26587 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26589 | $as_echo_n "checking for ZLIB... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26591 | $as_echo "" >&6; } | 
|  | 26592 | ZLIB_LIBS='' | 
|  | 26593 | failed=0 | 
|  | 26594 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26595 | ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26596 | if test "x$ac_cv_header_zconf_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26597 | passed=`expr $passed + 1` | 
|  | 26598 | else | 
|  | 26599 | failed=`expr $failed + 1` | 
|  | 26600 | fi | 
|  | 26601 |  | 
|  | 26602 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26603 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26604 | if test "x$ac_cv_header_zlib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26605 | passed=`expr $passed + 1` | 
|  | 26606 | else | 
|  | 26607 | failed=`expr $failed + 1` | 
|  | 26608 | fi | 
|  | 26609 |  | 
|  | 26610 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26612 | $as_echo_n "checking for compress in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26613 | if ${ac_cv_lib_z_compress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26614 | $as_echo_n "(cached) " >&6 | 
|  | 26615 | else | 
|  | 26616 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26617 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26619 | /* end confdefs.h.  */ | 
|  | 26620 |  | 
|  | 26621 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26622 | Use char because int might match the return type of a GCC | 
|  | 26623 | builtin and then its argument prototype would still apply.  */ | 
|  | 26624 | #ifdef __cplusplus | 
|  | 26625 | extern "C" | 
|  | 26626 | #endif | 
|  | 26627 | char compress (); | 
|  | 26628 | int | 
|  | 26629 | main () | 
|  | 26630 | { | 
|  | 26631 | return compress (); | 
|  | 26632 | ; | 
|  | 26633 | return 0; | 
|  | 26634 | } | 
|  | 26635 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26636 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26637 | ac_cv_lib_z_compress=yes | 
|  | 26638 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26639 | ac_cv_lib_z_compress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26640 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26641 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26642 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26643 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26644 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26645 | { $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] | 26646 | $as_echo "$ac_cv_lib_z_compress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26647 | if test "x$ac_cv_lib_z_compress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26648 | passed=`expr $passed + 1` | 
|  | 26649 | else | 
|  | 26650 | failed=`expr $failed + 1` | 
|  | 26651 | fi | 
|  | 26652 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26654 | $as_echo_n "checking for uncompress in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26655 | if ${ac_cv_lib_z_uncompress+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26656 | $as_echo_n "(cached) " >&6 | 
|  | 26657 | else | 
|  | 26658 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26659 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26661 | /* end confdefs.h.  */ | 
|  | 26662 |  | 
|  | 26663 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26664 | Use char because int might match the return type of a GCC | 
|  | 26665 | builtin and then its argument prototype would still apply.  */ | 
|  | 26666 | #ifdef __cplusplus | 
|  | 26667 | extern "C" | 
|  | 26668 | #endif | 
|  | 26669 | char uncompress (); | 
|  | 26670 | int | 
|  | 26671 | main () | 
|  | 26672 | { | 
|  | 26673 | return uncompress (); | 
|  | 26674 | ; | 
|  | 26675 | return 0; | 
|  | 26676 | } | 
|  | 26677 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26678 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26679 | ac_cv_lib_z_uncompress=yes | 
|  | 26680 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26681 | ac_cv_lib_z_uncompress=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26682 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26683 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26684 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26685 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26686 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26687 | { $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] | 26688 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26689 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26690 | passed=`expr $passed + 1` | 
|  | 26691 | else | 
|  | 26692 | failed=`expr $failed + 1` | 
|  | 26693 | fi | 
|  | 26694 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26696 | $as_echo_n "checking for deflate in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26697 | if ${ac_cv_lib_z_deflate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26698 | $as_echo_n "(cached) " >&6 | 
|  | 26699 | else | 
|  | 26700 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26701 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26703 | /* end confdefs.h.  */ | 
|  | 26704 |  | 
|  | 26705 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26706 | Use char because int might match the return type of a GCC | 
|  | 26707 | builtin and then its argument prototype would still apply.  */ | 
|  | 26708 | #ifdef __cplusplus | 
|  | 26709 | extern "C" | 
|  | 26710 | #endif | 
|  | 26711 | char deflate (); | 
|  | 26712 | int | 
|  | 26713 | main () | 
|  | 26714 | { | 
|  | 26715 | return deflate (); | 
|  | 26716 | ; | 
|  | 26717 | return 0; | 
|  | 26718 | } | 
|  | 26719 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26720 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26721 | ac_cv_lib_z_deflate=yes | 
|  | 26722 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26723 | ac_cv_lib_z_deflate=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26724 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26725 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26726 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26727 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26728 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26729 | { $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] | 26730 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26731 | if test "x$ac_cv_lib_z_deflate" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26732 | passed=`expr $passed + 1` | 
|  | 26733 | else | 
|  | 26734 | failed=`expr $failed + 1` | 
|  | 26735 | fi | 
|  | 26736 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26738 | $as_echo_n "checking for inflate in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26739 | if ${ac_cv_lib_z_inflate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26740 | $as_echo_n "(cached) " >&6 | 
|  | 26741 | else | 
|  | 26742 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26743 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26745 | /* end confdefs.h.  */ | 
|  | 26746 |  | 
|  | 26747 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26748 | Use char because int might match the return type of a GCC | 
|  | 26749 | builtin and then its argument prototype would still apply.  */ | 
|  | 26750 | #ifdef __cplusplus | 
|  | 26751 | extern "C" | 
|  | 26752 | #endif | 
|  | 26753 | char inflate (); | 
|  | 26754 | int | 
|  | 26755 | main () | 
|  | 26756 | { | 
|  | 26757 | return inflate (); | 
|  | 26758 | ; | 
|  | 26759 | return 0; | 
|  | 26760 | } | 
|  | 26761 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26762 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26763 | ac_cv_lib_z_inflate=yes | 
|  | 26764 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26765 | ac_cv_lib_z_inflate=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26766 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26767 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26768 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26769 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26770 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26771 | { $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] | 26772 | $as_echo "$ac_cv_lib_z_inflate" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26773 | if test "x$ac_cv_lib_z_inflate" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26774 | passed=`expr $passed + 1` | 
|  | 26775 | else | 
|  | 26776 | failed=`expr $failed + 1` | 
|  | 26777 | fi | 
|  | 26778 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26780 | $as_echo_n "checking for gzseek in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26781 | if ${ac_cv_lib_z_gzseek+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26782 | $as_echo_n "(cached) " >&6 | 
|  | 26783 | else | 
|  | 26784 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26785 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26787 | /* end confdefs.h.  */ | 
|  | 26788 |  | 
|  | 26789 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26790 | Use char because int might match the return type of a GCC | 
|  | 26791 | builtin and then its argument prototype would still apply.  */ | 
|  | 26792 | #ifdef __cplusplus | 
|  | 26793 | extern "C" | 
|  | 26794 | #endif | 
|  | 26795 | char gzseek (); | 
|  | 26796 | int | 
|  | 26797 | main () | 
|  | 26798 | { | 
|  | 26799 | return gzseek (); | 
|  | 26800 | ; | 
|  | 26801 | return 0; | 
|  | 26802 | } | 
|  | 26803 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26804 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26805 | ac_cv_lib_z_gzseek=yes | 
|  | 26806 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26807 | ac_cv_lib_z_gzseek=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26808 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26809 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26810 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26811 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26812 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26813 | { $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] | 26814 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26815 | if test "x$ac_cv_lib_z_gzseek" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26816 | passed=`expr $passed + 1` | 
|  | 26817 | else | 
|  | 26818 | failed=`expr $failed + 1` | 
|  | 26819 | fi | 
|  | 26820 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26822 | $as_echo_n "checking for gztell in -lz... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26823 | if ${ac_cv_lib_z_gztell+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26824 | $as_echo_n "(cached) " >&6 | 
|  | 26825 | else | 
|  | 26826 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26827 | LIBS="-lz  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26829 | /* end confdefs.h.  */ | 
|  | 26830 |  | 
|  | 26831 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26832 | Use char because int might match the return type of a GCC | 
|  | 26833 | builtin and then its argument prototype would still apply.  */ | 
|  | 26834 | #ifdef __cplusplus | 
|  | 26835 | extern "C" | 
|  | 26836 | #endif | 
|  | 26837 | char gztell (); | 
|  | 26838 | int | 
|  | 26839 | main () | 
|  | 26840 | { | 
|  | 26841 | return gztell (); | 
|  | 26842 | ; | 
|  | 26843 | return 0; | 
|  | 26844 | } | 
|  | 26845 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26846 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26847 | ac_cv_lib_z_gztell=yes | 
|  | 26848 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26849 | ac_cv_lib_z_gztell=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26850 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26851 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26852 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26853 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26854 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26855 | { $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] | 26856 | $as_echo "$ac_cv_lib_z_gztell" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26857 | if test "x$ac_cv_lib_z_gztell" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26858 | passed=`expr $passed + 1` | 
|  | 26859 | else | 
|  | 26860 | failed=`expr $failed + 1` | 
|  | 26861 | fi | 
|  | 26862 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26863 | { $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] | 26864 | $as_echo_n "checking if ZLIB package is complete... " >&6; } | 
|  | 26865 | if test $passed -gt 0; then | 
|  | 26866 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26867 | { $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] | 26868 | $as_echo "no -- some components failed test" >&6; } | 
|  | 26869 | have_zlib='no (failed tests)' | 
|  | 26870 | else | 
|  | 26871 | ZLIB_LIBS='-lz' | 
|  | 26872 | LIBS="$ZLIB_LIBS $LIBS" | 
|  | 26873 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26874 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26875 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26877 | $as_echo "yes" >&6; } | 
|  | 26878 | have_zlib='yes' | 
|  | 26879 | fi | 
|  | 26880 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26882 | $as_echo "no" >&6; } | 
|  | 26883 | fi | 
|  | 26884 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26885 | if test "$have_zlib" = 'yes'; then | 
|  | 26886 | ZLIB_DELEGATE_TRUE= | 
|  | 26887 | ZLIB_DELEGATE_FALSE='#' | 
|  | 26888 | else | 
|  | 26889 | ZLIB_DELEGATE_TRUE='#' | 
|  | 26890 | ZLIB_DELEGATE_FALSE= | 
|  | 26891 | fi | 
|  | 26892 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26893 |  | 
|  | 26894 |  | 
|  | 26895 | # | 
|  | 26896 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) | 
|  | 26897 | # | 
|  | 26898 | LIB_DL='' | 
|  | 26899 | if test "$enable_profiling" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26901 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26902 | if ${ac_cv_lib_dl_dlopen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26903 | $as_echo_n "(cached) " >&6 | 
|  | 26904 | else | 
|  | 26905 | ac_check_lib_save_LIBS=$LIBS | 
|  | 26906 | LIBS="-ldl  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26908 | /* end confdefs.h.  */ | 
|  | 26909 |  | 
|  | 26910 | /* Override any GCC internal prototype to avoid an error. | 
|  | 26911 | Use char because int might match the return type of a GCC | 
|  | 26912 | builtin and then its argument prototype would still apply.  */ | 
|  | 26913 | #ifdef __cplusplus | 
|  | 26914 | extern "C" | 
|  | 26915 | #endif | 
|  | 26916 | char dlopen (); | 
|  | 26917 | int | 
|  | 26918 | main () | 
|  | 26919 | { | 
|  | 26920 | return dlopen (); | 
|  | 26921 | ; | 
|  | 26922 | return 0; | 
|  | 26923 | } | 
|  | 26924 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26925 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26926 | ac_cv_lib_dl_dlopen=yes | 
|  | 26927 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26928 | ac_cv_lib_dl_dlopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26929 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26930 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 26931 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26932 | LIBS=$ac_check_lib_save_LIBS | 
|  | 26933 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26934 | { $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] | 26935 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26936 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26937 | LIB_DL='-ldl' | 
|  | 26938 | fi | 
|  | 26939 |  | 
|  | 26940 | LIBS="$LIB_DL $LIBS" | 
|  | 26941 | fi | 
|  | 26942 |  | 
|  | 26943 |  | 
|  | 26944 |  | 
|  | 26945 | # | 
|  | 26946 | # Check for Autotrace delegate library. | 
|  | 26947 | # | 
|  | 26948 |  | 
|  | 26949 | # Check whether --with-autotrace was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26950 | if test "${with_autotrace+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26951 | withval=$with_autotrace; with_autotrace=$withval | 
|  | 26952 | else | 
|  | 26953 | with_autotrace='no' | 
|  | 26954 | fi | 
|  | 26955 |  | 
|  | 26956 |  | 
|  | 26957 | if test "$with_autotrace" != 'yes'; then | 
|  | 26958 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " | 
|  | 26959 | fi | 
|  | 26960 |  | 
|  | 26961 | have_autotrace='no' | 
|  | 26962 | AUTOTRACE_CFLAGS="" | 
|  | 26963 | AUTOTRACE_LIBS="" | 
|  | 26964 | AUTOTRACE_PKG="" | 
|  | 26965 | if test "x$with_autotrace" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26967 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26968 |  | 
|  | 26969 | pkg_failed=no | 
|  | 26970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 | 
|  | 26971 | $as_echo_n "checking for AUTOTRACE... " >&6; } | 
|  | 26972 |  | 
|  | 26973 | if test -n "$AUTOTRACE_CFLAGS"; then | 
|  | 26974 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" | 
|  | 26975 | elif test -n "$PKG_CONFIG"; then | 
|  | 26976 | if test -n "$PKG_CONFIG" && \ | 
|  | 26977 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 | 
|  | 26978 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 | 
|  | 26979 | ac_status=$? | 
|  | 26980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 26981 | test $ac_status = 0; }; then | 
|  | 26982 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` | 
|  | 26983 | else | 
|  | 26984 | pkg_failed=yes | 
|  | 26985 | fi | 
|  | 26986 | else | 
|  | 26987 | pkg_failed=untried | 
|  | 26988 | fi | 
|  | 26989 | if test -n "$AUTOTRACE_LIBS"; then | 
|  | 26990 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" | 
|  | 26991 | elif test -n "$PKG_CONFIG"; then | 
|  | 26992 | if test -n "$PKG_CONFIG" && \ | 
|  | 26993 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 | 
|  | 26994 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 | 
|  | 26995 | ac_status=$? | 
|  | 26996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 26997 | test $ac_status = 0; }; then | 
|  | 26998 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` | 
|  | 26999 | else | 
|  | 27000 | pkg_failed=yes | 
|  | 27001 | fi | 
|  | 27002 | else | 
|  | 27003 | pkg_failed=untried | 
|  | 27004 | fi | 
|  | 27005 |  | 
|  | 27006 |  | 
|  | 27007 |  | 
|  | 27008 | if test $pkg_failed = yes; then | 
|  | 27009 |  | 
|  | 27010 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 27011 | _pkg_short_errors_supported=yes | 
|  | 27012 | else | 
|  | 27013 | _pkg_short_errors_supported=no | 
|  | 27014 | fi | 
|  | 27015 | if test $_pkg_short_errors_supported = yes; then | 
|  | 27016 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` | 
|  | 27017 | else | 
|  | 27018 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` | 
|  | 27019 | fi | 
|  | 27020 | # Put the nasty error message in config.log where it belongs | 
|  | 27021 | echo "$AUTOTRACE_PKG_ERRORS" >&5 | 
|  | 27022 |  | 
|  | 27023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 27024 | $as_echo "no" >&6; } | 
|  | 27025 | have_autotrace=no | 
|  | 27026 | elif test $pkg_failed = untried; then | 
|  | 27027 | have_autotrace=no | 
|  | 27028 | else | 
|  | 27029 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS | 
|  | 27030 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS | 
|  | 27031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 27032 | $as_echo "yes" >&6; } | 
|  | 27033 | have_autotrace=yes | 
|  | 27034 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27036 | $as_echo "" >&6; } | 
|  | 27037 | fi | 
|  | 27038 |  | 
|  | 27039 | if test "$have_autotrace" = 'yes'; then | 
|  | 27040 | failed=0 | 
|  | 27041 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27042 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27043 |  | 
|  | 27044 | if test "$with_modules" = 'no'; then | 
|  | 27045 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" | 
|  | 27046 | fi | 
|  | 27047 | fi | 
|  | 27048 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27049 | if test "$have_autotrace" = 'yes'; then | 
|  | 27050 | AUTOTRACE_DELEGATE_TRUE= | 
|  | 27051 | AUTOTRACE_DELEGATE_FALSE='#' | 
|  | 27052 | else | 
|  | 27053 | AUTOTRACE_DELEGATE_TRUE='#' | 
|  | 27054 | AUTOTRACE_DELEGATE_FALSE= | 
|  | 27055 | fi | 
|  | 27056 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27057 |  | 
|  | 27058 |  | 
|  | 27059 |  | 
|  | 27060 |  | 
|  | 27061 | # | 
|  | 27062 | # Check for Display Postscript delegate library. | 
|  | 27063 | # | 
|  | 27064 |  | 
|  | 27065 | # Check whether --with-dps was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27066 | if test "${with_dps+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27067 | withval=$with_dps; with_dps=$withval | 
|  | 27068 | else | 
|  | 27069 | with_dps='yes' | 
|  | 27070 | fi | 
|  | 27071 |  | 
|  | 27072 |  | 
|  | 27073 | if test "$with_dps" != 'yes'; then | 
|  | 27074 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " | 
|  | 27075 | fi | 
|  | 27076 |  | 
|  | 27077 | have_dps='no' | 
|  | 27078 | DPS_LIBS='' | 
|  | 27079 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27081 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27083 | $as_echo_n "checking for DPS... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27085 | $as_echo "" >&6; } | 
|  | 27086 | failed=0 | 
|  | 27087 | passed=0 | 
|  | 27088 | PERSIST_CPPFLAGS="$CPPFLAGS" | 
|  | 27089 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27090 | ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27091 | if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27092 | passed=`expr $passed + 1` | 
|  | 27093 | else | 
|  | 27094 | failed=`expr $failed + 1` | 
|  | 27095 | fi | 
|  | 27096 |  | 
|  | 27097 |  | 
|  | 27098 | # DPS issues: | 
|  | 27099 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. | 
|  | 27100 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. | 
|  | 27101 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. | 
|  | 27102 | # ImageMagick itself doesn't use -lXt. | 
|  | 27103 | have_libdps='no' | 
|  | 27104 | LIBDPS_XT='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27106 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27107 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27108 | $as_echo_n "(cached) " >&6 | 
|  | 27109 | else | 
|  | 27110 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27111 | LIBS="-ldps  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27113 | /* end confdefs.h.  */ | 
|  | 27114 |  | 
|  | 27115 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27116 | Use char because int might match the return type of a GCC | 
|  | 27117 | builtin and then its argument prototype would still apply.  */ | 
|  | 27118 | #ifdef __cplusplus | 
|  | 27119 | extern "C" | 
|  | 27120 | #endif | 
|  | 27121 | char DPSInitialize (); | 
|  | 27122 | int | 
|  | 27123 | main () | 
|  | 27124 | { | 
|  | 27125 | return DPSInitialize (); | 
|  | 27126 | ; | 
|  | 27127 | return 0; | 
|  | 27128 | } | 
|  | 27129 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27130 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27131 | ac_cv_lib_dps_DPSInitialize=yes | 
|  | 27132 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27133 | ac_cv_lib_dps_DPSInitialize=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27134 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27135 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27136 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27137 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27138 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27139 | { $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] | 27140 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27141 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27142 | have_libdps='yes' | 
|  | 27143 | else | 
|  | 27144 | have_libdps='no' | 
|  | 27145 | fi | 
|  | 27146 |  | 
|  | 27147 | if test "$have_libdps" != 'yes'; then | 
|  | 27148 | # Unset cache variable so we can try again. | 
|  | 27149 | unset ac_cv_lib_dps_DPSInitialize | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27151 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27152 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27153 | $as_echo_n "(cached) " >&6 | 
|  | 27154 | else | 
|  | 27155 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27156 | LIBS="-ldps -lXt $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27158 | /* end confdefs.h.  */ | 
|  | 27159 |  | 
|  | 27160 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27161 | Use char because int might match the return type of a GCC | 
|  | 27162 | builtin and then its argument prototype would still apply.  */ | 
|  | 27163 | #ifdef __cplusplus | 
|  | 27164 | extern "C" | 
|  | 27165 | #endif | 
|  | 27166 | char DPSInitialize (); | 
|  | 27167 | int | 
|  | 27168 | main () | 
|  | 27169 | { | 
|  | 27170 | return DPSInitialize (); | 
|  | 27171 | ; | 
|  | 27172 | return 0; | 
|  | 27173 | } | 
|  | 27174 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27175 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27176 | ac_cv_lib_dps_DPSInitialize=yes | 
|  | 27177 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27178 | ac_cv_lib_dps_DPSInitialize=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27179 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27180 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27181 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27182 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27183 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27184 | { $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] | 27185 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27186 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27187 | have_libdps='yes' | 
|  | 27188 | else | 
|  | 27189 | have_libdps='no' | 
|  | 27190 | fi | 
|  | 27191 |  | 
|  | 27192 | if test "$have_libdps" = 'yes'; then | 
|  | 27193 | LIBDPS_XT='-lXt' | 
|  | 27194 | fi | 
|  | 27195 | fi | 
|  | 27196 | if test "$have_libdps" = 'yes'; then | 
|  | 27197 | passed=`expr $passed + 1` | 
|  | 27198 | else | 
|  | 27199 | failed=`expr $failed + 1` | 
|  | 27200 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27202 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27203 | if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27204 | $as_echo_n "(cached) " >&6 | 
|  | 27205 | else | 
|  | 27206 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27207 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27209 | /* end confdefs.h.  */ | 
|  | 27210 |  | 
|  | 27211 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27212 | Use char because int might match the return type of a GCC | 
|  | 27213 | builtin and then its argument prototype would still apply.  */ | 
|  | 27214 | #ifdef __cplusplus | 
|  | 27215 | extern "C" | 
|  | 27216 | #endif | 
|  | 27217 | char XDPSPixelsPerPoint (); | 
|  | 27218 | int | 
|  | 27219 | main () | 
|  | 27220 | { | 
|  | 27221 | return XDPSPixelsPerPoint (); | 
|  | 27222 | ; | 
|  | 27223 | return 0; | 
|  | 27224 | } | 
|  | 27225 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27226 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27227 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes | 
|  | 27228 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27229 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27230 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27231 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27232 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27233 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27234 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27235 | { $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] | 27236 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27237 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27238 | passed=`expr $passed + 1` | 
|  | 27239 | else | 
|  | 27240 | failed=`expr $failed + 1` | 
|  | 27241 | fi | 
|  | 27242 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27243 | { $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] | 27244 | $as_echo_n "checking if DPS package is complete... " >&6; } | 
|  | 27245 | if test $passed -gt 0; then | 
|  | 27246 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27247 | { $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] | 27248 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27249 | have_dps='no (failed tests)' | 
|  | 27250 | CPPFLAGS="$PERSIST_CPPFLAGS" | 
|  | 27251 | else | 
|  | 27252 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" | 
|  | 27253 | LIBS="$DPS_LIBS $LIBS" | 
|  | 27254 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27255 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27256 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27258 | $as_echo "yes" >&6; } | 
|  | 27259 | have_dps='yes' | 
|  | 27260 | fi | 
|  | 27261 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27263 | $as_echo "no" >&6; } | 
|  | 27264 | CPPFLAGS=$PERSIST_CPPFLAGS | 
|  | 27265 | fi | 
|  | 27266 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27267 | if test "$have_dps" = 'yes'; then | 
|  | 27268 | DPS_DELEGATE_TRUE= | 
|  | 27269 | DPS_DELEGATE_FALSE='#' | 
|  | 27270 | else | 
|  | 27271 | DPS_DELEGATE_TRUE='#' | 
|  | 27272 | DPS_DELEGATE_FALSE= | 
|  | 27273 | fi | 
|  | 27274 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27275 |  | 
|  | 27276 |  | 
|  | 27277 |  | 
|  | 27278 | # | 
|  | 27279 | # Check for DJVU delegate library. | 
|  | 27280 | # | 
|  | 27281 |  | 
|  | 27282 | # Check whether --with-djvu was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27283 | if test "${with_djvu+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27284 | withval=$with_djvu; with_djvu=$withval | 
|  | 27285 | else | 
|  | 27286 | with_djvu='yes' | 
|  | 27287 | fi | 
|  | 27288 |  | 
|  | 27289 |  | 
|  | 27290 | if test "$with_djvu" != 'yes'; then | 
|  | 27291 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " | 
|  | 27292 | fi | 
|  | 27293 |  | 
|  | 27294 | have_djvu='no' | 
|  | 27295 | DJVU_LIBS='' | 
|  | 27296 | if test "$with_djvu" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27298 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27300 | $as_echo_n "checking for DJVU... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27302 | $as_echo "" >&6; } | 
|  | 27303 | failed=0 | 
|  | 27304 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27305 | ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27306 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27307 | passed=`expr $passed + 1` | 
|  | 27308 | else | 
|  | 27309 | failed=`expr $failed + 1` | 
|  | 27310 | fi | 
|  | 27311 |  | 
|  | 27312 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27313 | { $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] | 27314 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27315 | if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27316 | $as_echo_n "(cached) " >&6 | 
|  | 27317 | else | 
|  | 27318 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27319 | LIBS="-ldjvulibre  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27321 | /* end confdefs.h.  */ | 
|  | 27322 |  | 
|  | 27323 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27324 | Use char because int might match the return type of a GCC | 
|  | 27325 | builtin and then its argument prototype would still apply.  */ | 
|  | 27326 | #ifdef __cplusplus | 
|  | 27327 | extern "C" | 
|  | 27328 | #endif | 
|  | 27329 | char ddjvu_context_create (); | 
|  | 27330 | int | 
|  | 27331 | main () | 
|  | 27332 | { | 
|  | 27333 | return ddjvu_context_create (); | 
|  | 27334 | ; | 
|  | 27335 | return 0; | 
|  | 27336 | } | 
|  | 27337 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27338 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27339 | ac_cv_lib_djvulibre_ddjvu_context_create=yes | 
|  | 27340 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27341 | ac_cv_lib_djvulibre_ddjvu_context_create=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27342 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27343 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27344 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27345 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27346 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27347 | { $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] | 27348 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27349 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27350 | passed=`expr $passed + 1` | 
|  | 27351 | else | 
|  | 27352 | failed=`expr $failed + 1` | 
|  | 27353 | fi | 
|  | 27354 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27355 | { $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] | 27356 | $as_echo_n "checking if DJVU package is complete... " >&6; } | 
|  | 27357 | if test $passed -gt 0; then | 
|  | 27358 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27359 | { $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] | 27360 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27361 | have_djvu='no (failed tests)' | 
|  | 27362 | else | 
|  | 27363 | DJVU_LIBS='-ldjvulibre' | 
|  | 27364 | LIBS="$DJVU_LIBS $LIBS" | 
|  | 27365 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27366 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27367 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27369 | $as_echo "yes" >&6; } | 
|  | 27370 | have_djvu='yes' | 
|  | 27371 | fi | 
|  | 27372 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27374 | $as_echo "no" >&6; } | 
|  | 27375 | fi | 
|  | 27376 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27377 | if test "$have_djvu" = 'yes'; then | 
|  | 27378 | DJVU_DELEGATE_TRUE= | 
|  | 27379 | DJVU_DELEGATE_FALSE='#' | 
|  | 27380 | else | 
|  | 27381 | DJVU_DELEGATE_TRUE='#' | 
|  | 27382 | DJVU_DELEGATE_FALSE= | 
|  | 27383 | fi | 
|  | 27384 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27385 |  | 
|  | 27386 |  | 
|  | 27387 |  | 
|  | 27388 | # | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 27389 | # Set DejaVu font directory. | 
|  | 27390 | # | 
|  | 27391 |  | 
|  | 27392 | # Check whether --with-dejavu-font-dir was given. | 
|  | 27393 | if test "${with_dejavu_font_dir+set}" = set; then : | 
|  | 27394 | withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval | 
|  | 27395 | else | 
|  | 27396 | with_dejavu_font_dir='default' | 
|  | 27397 | fi | 
|  | 27398 |  | 
|  | 27399 |  | 
|  | 27400 | if test "$with_dejavu_font_dir" != 'default'; then | 
|  | 27401 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " | 
|  | 27402 | fi | 
|  | 27403 |  | 
|  | 27404 |  | 
|  | 27405 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27406 | # Check for FFTW delegate library. | 
|  | 27407 | # | 
|  | 27408 |  | 
|  | 27409 | # Check whether --with-fftw was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27410 | if test "${with_fftw+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27411 | withval=$with_fftw; with_fftw=$withval | 
|  | 27412 | else | 
|  | 27413 | with_fftw='yes' | 
|  | 27414 | fi | 
|  | 27415 |  | 
|  | 27416 |  | 
|  | 27417 | if test "$with_fftw" != 'yes'; then | 
|  | 27418 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " | 
|  | 27419 | fi | 
|  | 27420 |  | 
|  | 27421 | have_fftw='no' | 
|  | 27422 | FFTW_LIBS='' | 
|  | 27423 | if test "$with_fftw" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27425 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27427 | $as_echo_n "checking for FFTW... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27429 | $as_echo "" >&6; } | 
|  | 27430 | failed=0 | 
|  | 27431 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27432 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27433 | if test "x$ac_cv_header_fftw3_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27434 | passed=`expr $passed + 1` | 
|  | 27435 | else | 
|  | 27436 | failed=`expr $failed + 1` | 
|  | 27437 | fi | 
|  | 27438 |  | 
|  | 27439 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27440 | { $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] | 27441 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27442 | if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27443 | $as_echo_n "(cached) " >&6 | 
|  | 27444 | else | 
|  | 27445 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27446 | LIBS="-lfftw3  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27447 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27448 | /* end confdefs.h.  */ | 
|  | 27449 |  | 
|  | 27450 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27451 | Use char because int might match the return type of a GCC | 
|  | 27452 | builtin and then its argument prototype would still apply.  */ | 
|  | 27453 | #ifdef __cplusplus | 
|  | 27454 | extern "C" | 
|  | 27455 | #endif | 
|  | 27456 | char fftw_execute (); | 
|  | 27457 | int | 
|  | 27458 | main () | 
|  | 27459 | { | 
|  | 27460 | return fftw_execute (); | 
|  | 27461 | ; | 
|  | 27462 | return 0; | 
|  | 27463 | } | 
|  | 27464 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27465 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27466 | ac_cv_lib_fftw3_fftw_execute=yes | 
|  | 27467 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27468 | ac_cv_lib_fftw3_fftw_execute=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27469 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27470 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27471 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27472 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27473 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27474 | { $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] | 27475 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27476 | if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27477 | passed=`expr $passed + 1` | 
|  | 27478 | else | 
|  | 27479 | failed=`expr $failed + 1` | 
|  | 27480 | fi | 
|  | 27481 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27482 | { $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] | 27483 | $as_echo_n "checking if FFTW package is complete... " >&6; } | 
|  | 27484 | if test $passed -gt 0; then | 
|  | 27485 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27486 | { $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] | 27487 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27488 | have_fftw='no (failed tests)' | 
|  | 27489 | else | 
|  | 27490 | FFTW_LIBS='-lfftw3' | 
|  | 27491 | LIBS="$FFTW_LIBS $LIBS" | 
|  | 27492 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27493 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27494 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27496 | $as_echo "yes" >&6; } | 
|  | 27497 | have_fftw='yes' | 
|  | 27498 | fi | 
|  | 27499 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27501 | $as_echo "no" >&6; } | 
|  | 27502 | fi | 
|  | 27503 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27504 | if test "$have_fftw" = 'yes'; then | 
|  | 27505 | FFTW_DELEGATE_TRUE= | 
|  | 27506 | FFTW_DELEGATE_FALSE='#' | 
|  | 27507 | else | 
|  | 27508 | FFTW_DELEGATE_TRUE='#' | 
|  | 27509 | FFTW_DELEGATE_FALSE= | 
|  | 27510 | fi | 
|  | 27511 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27512 |  | 
|  | 27513 |  | 
|  | 27514 |  | 
|  | 27515 | # | 
|  | 27516 | # Check for FlashPIX delegate library. | 
|  | 27517 | # | 
|  | 27518 |  | 
|  | 27519 | # Check whether --with-fpx was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27520 | if test "${with_fpx+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27521 | withval=$with_fpx; with_fpx=$withval | 
|  | 27522 | else | 
|  | 27523 | with_fpx='yes' | 
|  | 27524 | fi | 
|  | 27525 |  | 
|  | 27526 |  | 
|  | 27527 | if test "$with_fpx" != 'yes'; then | 
|  | 27528 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " | 
|  | 27529 | fi | 
|  | 27530 |  | 
|  | 27531 | have_fpx='no' | 
|  | 27532 | FPX_LIBS='' | 
|  | 27533 | if test "$with_fpx" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27535 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27537 | $as_echo_n "checking for FlashPIX... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27539 | $as_echo "" >&6; } | 
|  | 27540 | failed=0 | 
|  | 27541 | passed=0 | 
|  | 27542 | ac_ext=cpp | 
|  | 27543 | ac_cpp='$CXXCPP $CPPFLAGS' | 
|  | 27544 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 27545 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 27546 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | 
|  | 27547 |  | 
|  | 27548 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27549 | ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27550 | if test "x$ac_cv_header_fpxlib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27551 | passed=`expr $passed + 1` | 
|  | 27552 | else | 
|  | 27553 | failed=`expr $failed + 1` | 
|  | 27554 | fi | 
|  | 27555 |  | 
|  | 27556 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27557 | { $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] | 27558 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27559 | if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27560 | $as_echo_n "(cached) " >&6 | 
|  | 27561 | else | 
|  | 27562 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27563 | LIBS="-lfpx  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27565 | /* end confdefs.h.  */ | 
|  | 27566 |  | 
|  | 27567 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27568 | Use char because int might match the return type of a GCC | 
|  | 27569 | builtin and then its argument prototype would still apply.  */ | 
|  | 27570 | #ifdef __cplusplus | 
|  | 27571 | extern "C" | 
|  | 27572 | #endif | 
|  | 27573 | char FPX_OpenImageByFilename (); | 
|  | 27574 | int | 
|  | 27575 | main () | 
|  | 27576 | { | 
|  | 27577 | return FPX_OpenImageByFilename (); | 
|  | 27578 | ; | 
|  | 27579 | return 0; | 
|  | 27580 | } | 
|  | 27581 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27582 | if ac_fn_cxx_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27583 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes | 
|  | 27584 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27585 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27586 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27587 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27588 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27589 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27590 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27591 | { $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] | 27592 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27593 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27594 | passed=`expr $passed + 1` | 
|  | 27595 | else | 
|  | 27596 | failed=`expr $failed + 1` | 
|  | 27597 | fi | 
|  | 27598 |  | 
|  | 27599 | ac_ext=c | 
|  | 27600 | ac_cpp='$CPP $CPPFLAGS' | 
|  | 27601 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 
|  | 27602 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 
|  | 27603 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 
|  | 27604 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27605 | { $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] | 27606 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } | 
|  | 27607 | if test $passed -gt 0; then | 
|  | 27608 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27609 | { $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] | 27610 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27611 | have_fpx='no (failed tests)' | 
|  | 27612 | else | 
|  | 27613 | FPX_LIBS='-lfpx' | 
|  | 27614 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27615 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27616 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27618 | $as_echo "yes" >&6; } | 
|  | 27619 | have_fpx='yes' | 
|  | 27620 | PERLMAINCC="$CXX" | 
|  | 27621 | fi | 
|  | 27622 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27624 | $as_echo "no" >&6; } | 
|  | 27625 | fi | 
|  | 27626 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27627 | if test "$have_fpx" = 'yes'; then | 
|  | 27628 | FPX_DELEGATE_TRUE= | 
|  | 27629 | FPX_DELEGATE_FALSE='#' | 
|  | 27630 | else | 
|  | 27631 | FPX_DELEGATE_TRUE='#' | 
|  | 27632 | FPX_DELEGATE_FALSE= | 
|  | 27633 | fi | 
|  | 27634 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27635 |  | 
|  | 27636 |  | 
|  | 27637 |  | 
|  | 27638 | # | 
|  | 27639 | # Check for fontconfig delegate library. | 
|  | 27640 | # | 
|  | 27641 |  | 
|  | 27642 | # Check whether --with-fontconfig was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27643 | if test "${with_fontconfig+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27644 | withval=$with_fontconfig; with_fontconfig=$withval | 
|  | 27645 | else | 
|  | 27646 | with_fontconfig=$have_x | 
|  | 27647 | fi | 
|  | 27648 |  | 
|  | 27649 |  | 
|  | 27650 | if test "$with_fontconfig" != 'yes'; then | 
|  | 27651 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " | 
|  | 27652 | fi | 
|  | 27653 |  | 
|  | 27654 | have_fontconfig='no' | 
|  | 27655 | FONTCONFIG_CFLAGS="" | 
|  | 27656 | FONTCONFIG_LIBS="" | 
|  | 27657 | FONTCONFIG_PKG="" | 
|  | 27658 | if test "x$with_fontconfig" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27660 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27661 |  | 
|  | 27662 | pkg_failed=no | 
|  | 27663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 | 
|  | 27664 | $as_echo_n "checking for FONTCONFIG... " >&6; } | 
|  | 27665 |  | 
|  | 27666 | if test -n "$FONTCONFIG_CFLAGS"; then | 
|  | 27667 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" | 
|  | 27668 | elif test -n "$PKG_CONFIG"; then | 
|  | 27669 | if test -n "$PKG_CONFIG" && \ | 
|  | 27670 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 | 
|  | 27671 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 | 
|  | 27672 | ac_status=$? | 
|  | 27673 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 27674 | test $ac_status = 0; }; then | 
|  | 27675 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` | 
|  | 27676 | else | 
|  | 27677 | pkg_failed=yes | 
|  | 27678 | fi | 
|  | 27679 | else | 
|  | 27680 | pkg_failed=untried | 
|  | 27681 | fi | 
|  | 27682 | if test -n "$FONTCONFIG_LIBS"; then | 
|  | 27683 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" | 
|  | 27684 | elif test -n "$PKG_CONFIG"; then | 
|  | 27685 | if test -n "$PKG_CONFIG" && \ | 
|  | 27686 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 | 
|  | 27687 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 | 
|  | 27688 | ac_status=$? | 
|  | 27689 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 27690 | test $ac_status = 0; }; then | 
|  | 27691 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` | 
|  | 27692 | else | 
|  | 27693 | pkg_failed=yes | 
|  | 27694 | fi | 
|  | 27695 | else | 
|  | 27696 | pkg_failed=untried | 
|  | 27697 | fi | 
|  | 27698 |  | 
|  | 27699 |  | 
|  | 27700 |  | 
|  | 27701 | if test $pkg_failed = yes; then | 
|  | 27702 |  | 
|  | 27703 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 27704 | _pkg_short_errors_supported=yes | 
|  | 27705 | else | 
|  | 27706 | _pkg_short_errors_supported=no | 
|  | 27707 | fi | 
|  | 27708 | if test $_pkg_short_errors_supported = yes; then | 
|  | 27709 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` | 
|  | 27710 | else | 
|  | 27711 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` | 
|  | 27712 | fi | 
|  | 27713 | # Put the nasty error message in config.log where it belongs | 
|  | 27714 | echo "$FONTCONFIG_PKG_ERRORS" >&5 | 
|  | 27715 |  | 
|  | 27716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 27717 | $as_echo "no" >&6; } | 
|  | 27718 | have_fontconfig=no | 
|  | 27719 | elif test $pkg_failed = untried; then | 
|  | 27720 | have_fontconfig=no | 
|  | 27721 | else | 
|  | 27722 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS | 
|  | 27723 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS | 
|  | 27724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 27725 | $as_echo "yes" >&6; } | 
|  | 27726 | have_fontconfig=yes | 
|  | 27727 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27729 | $as_echo "" >&6; } | 
|  | 27730 | fi | 
|  | 27731 |  | 
|  | 27732 | if test "$have_fontconfig" = 'yes'; then | 
|  | 27733 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27734 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27735 |  | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27736 | if test "$with_modules" = 'no'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27737 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 27738 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27739 | fi | 
|  | 27740 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27741 | if test "$have_fontconfig" = 'yes'; then | 
|  | 27742 | FONTCONFIG_DELEGATE_TRUE= | 
|  | 27743 | FONTCONFIG_DELEGATE_FALSE='#' | 
|  | 27744 | else | 
|  | 27745 | FONTCONFIG_DELEGATE_TRUE='#' | 
|  | 27746 | FONTCONFIG_DELEGATE_FALSE= | 
|  | 27747 | fi | 
|  | 27748 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27749 |  | 
|  | 27750 |  | 
|  | 27751 |  | 
|  | 27752 |  | 
|  | 27753 | # | 
|  | 27754 | # Check for freetype delegate library. | 
|  | 27755 | # | 
|  | 27756 |  | 
|  | 27757 | # Check whether --with-freetype was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27758 | if test "${with_freetype+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27759 | withval=$with_freetype; with_freetype=$withval | 
|  | 27760 | else | 
|  | 27761 | with_freetype='yes' | 
|  | 27762 | fi | 
|  | 27763 |  | 
|  | 27764 |  | 
|  | 27765 |  | 
|  | 27766 | if test "$with_freetype" != 'yes'; then | 
|  | 27767 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " | 
|  | 27768 | fi | 
|  | 27769 |  | 
|  | 27770 | have_freetype='no' | 
|  | 27771 | FREETYPE_LIBS='' | 
|  | 27772 | if test "$with_freetype" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27774 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27776 | $as_echo_n "checking for FreeType 2.0... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27778 | $as_echo "" >&6; } | 
|  | 27779 | failed=0 | 
|  | 27780 | passed=0 | 
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 27781 | PERSIST_LIBS="$LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27782 | PERSIST_CPPFLAGS="$CPPFLAGS" | 
|  | 27783 | if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then | 
|  | 27784 | : | 
|  | 27785 | else | 
|  | 27786 | freetype_config='' | 
|  | 27787 | for ac_prog in freetype-config | 
|  | 27788 | do | 
|  | 27789 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 27790 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27792 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27793 | if ${ac_cv_prog_freetype_config+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27794 | $as_echo_n "(cached) " >&6 | 
|  | 27795 | else | 
|  | 27796 | if test -n "$freetype_config"; then | 
|  | 27797 | ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test. | 
|  | 27798 | else | 
|  | 27799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 27800 | for as_dir in $PATH | 
|  | 27801 | do | 
|  | 27802 | IFS=$as_save_IFS | 
|  | 27803 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27804 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27805 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 27806 | ac_cv_prog_freetype_config="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27807 | $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] | 27808 | break 2 | 
|  | 27809 | fi | 
|  | 27810 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27811 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27812 | IFS=$as_save_IFS | 
|  | 27813 |  | 
|  | 27814 | fi | 
|  | 27815 | fi | 
|  | 27816 | freetype_config=$ac_cv_prog_freetype_config | 
|  | 27817 | if test -n "$freetype_config"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27819 | $as_echo "$freetype_config" >&6; } | 
|  | 27820 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27822 | $as_echo "no" >&6; } | 
|  | 27823 | fi | 
|  | 27824 |  | 
|  | 27825 |  | 
|  | 27826 | test -n "$freetype_config" && break | 
|  | 27827 | done | 
|  | 27828 | if test -n "$freetype_config"; then | 
|  | 27829 | freetype_cflags=`$freetype_config --cflags` | 
|  | 27830 | freetype_libs=`$freetype_config --libs` | 
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 27831 | LIBS="$LIBS $freetype_libs" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27832 | CPPFLAGS="$freetype_cflags $CPPFLAGS" | 
|  | 27833 | fi | 
|  | 27834 | fi | 
|  | 27835 |  | 
|  | 27836 | if test "$FREETYPE_LIBS" = ''; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27837 | { $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] | 27838 | $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27839 | if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27840 | $as_echo_n "(cached) " >&6 | 
|  | 27841 | else | 
|  | 27842 | ac_check_lib_save_LIBS=$LIBS | 
|  | 27843 | LIBS="-lfreetype  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27845 | /* end confdefs.h.  */ | 
|  | 27846 |  | 
|  | 27847 | /* Override any GCC internal prototype to avoid an error. | 
|  | 27848 | Use char because int might match the return type of a GCC | 
|  | 27849 | builtin and then its argument prototype would still apply.  */ | 
|  | 27850 | #ifdef __cplusplus | 
|  | 27851 | extern "C" | 
|  | 27852 | #endif | 
|  | 27853 | char FT_Init_FreeType (); | 
|  | 27854 | int | 
|  | 27855 | main () | 
|  | 27856 | { | 
|  | 27857 | return FT_Init_FreeType (); | 
|  | 27858 | ; | 
|  | 27859 | return 0; | 
|  | 27860 | } | 
|  | 27861 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27862 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27863 | ac_cv_lib_freetype_FT_Init_FreeType=yes | 
|  | 27864 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27865 | ac_cv_lib_freetype_FT_Init_FreeType=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27866 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27867 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 27868 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27869 | LIBS=$ac_check_lib_save_LIBS | 
|  | 27870 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27871 | { $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] | 27872 | $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27873 | if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27874 | FREETYPE_LIBS='-lfreetype' | 
|  | 27875 | fi | 
|  | 27876 |  | 
|  | 27877 | if test "$FREETYPE_LIBS" != ''; then | 
|  | 27878 | passed=`expr $passed + 1` | 
|  | 27879 | else | 
|  | 27880 | failed=`expr $failed + 1` | 
| cristy | 6629111 | 2009-10-03 22:44:36 +0000 | [diff] [blame] | 27881 | LIBS="$PERSIST_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27882 | fi | 
|  | 27883 | fi | 
|  | 27884 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27885 | ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27886 | if test "x$ac_cv_header_ft2build_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27887 | FT2BUILD_H='#include <ft2build.h>' | 
|  | 27888 | else | 
|  | 27889 | ft2build='' | 
|  | 27890 | fi | 
|  | 27891 |  | 
|  | 27892 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27893 | ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H | 
|  | 27894 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27895 | if test "x$ac_cv_header_freetype_freetype_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27896 | have_freetype_h='yes' | 
|  | 27897 | else | 
|  | 27898 | have_freetype_h='no' | 
|  | 27899 | fi | 
|  | 27900 |  | 
|  | 27901 |  | 
|  | 27902 | if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then | 
|  | 27903 | passed=`expr $passed + 1` | 
|  | 27904 | else | 
|  | 27905 | failed=`expr $failed + 1` | 
|  | 27906 | CPPFLAGS="$PERSIST_CPPFLAGS" | 
|  | 27907 | fi | 
|  | 27908 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27909 | { $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] | 27910 | $as_echo_n "checking if FreeType package is complete... " >&6; } | 
|  | 27911 | if test $passed -gt 0; then | 
|  | 27912 | if test $failed -gt 0; then | 
|  | 27913 | FREETYPE_LIBS='' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27914 | { $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] | 27915 | $as_echo "no -- some components failed test" >&6; } | 
|  | 27916 | have_freetype='no (failed tests)' | 
|  | 27917 | else | 
|  | 27918 | LIBS="$FREETYPE_LIBS $LIBS" | 
|  | 27919 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27920 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27921 |  | 
|  | 27922 | if test "$ac_cv_header_ft2build_h" = 'yes'; then | 
|  | 27923 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27924 | $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27925 |  | 
|  | 27926 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27928 | $as_echo "yes" >&6; } | 
|  | 27929 | have_freetype='yes' | 
|  | 27930 | fi | 
|  | 27931 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27933 | $as_echo "no" >&6; } | 
|  | 27934 | fi | 
|  | 27935 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27936 | if test "$have_freetype" = 'yes'; then | 
|  | 27937 | FREETYPE_DELEGATE_TRUE= | 
|  | 27938 | FREETYPE_DELEGATE_FALSE='#' | 
|  | 27939 | else | 
|  | 27940 | FREETYPE_DELEGATE_TRUE='#' | 
|  | 27941 | FREETYPE_DELEGATE_FALSE= | 
|  | 27942 | fi | 
|  | 27943 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27944 |  | 
|  | 27945 |  | 
|  | 27946 |  | 
|  | 27947 |  | 
|  | 27948 | # | 
|  | 27949 | # Check for Ghostscript library or framework. | 
|  | 27950 | # | 
|  | 27951 | # Test for iapi.h & test for gsapi_new_instance in -lgs | 
|  | 27952 | # or -framework Ghostscript | 
|  | 27953 |  | 
|  | 27954 |  | 
|  | 27955 | # Check whether --with-gslib was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27956 | if test "${with_gslib+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27957 | withval=$with_gslib; with_gslib=$withval | 
|  | 27958 | else | 
|  | 27959 | with_gslib='no' | 
|  | 27960 | fi | 
|  | 27961 |  | 
|  | 27962 |  | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 27963 | gslib_framework='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27964 | if test "$with_gslib" != 'yes'; then | 
|  | 27965 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " | 
|  | 27966 | fi | 
|  | 27967 |  | 
|  | 27968 | have_gslib='no' | 
|  | 27969 | GS_LIBS='' | 
|  | 27970 | if test "$with_gslib" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27972 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27974 | $as_echo_n "checking for Ghostscript... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27976 | $as_echo "" >&6; } | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 27977 | framework=0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27978 | failed=0 | 
|  | 27979 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27980 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27981 | if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27982 | passed=`expr $passed + 1` | 
|  | 27983 | else | 
|  | 27984 | failed=`expr $failed + 1` | 
|  | 27985 | fi | 
|  | 27986 |  | 
|  | 27987 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27988 | ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27989 | if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27990 | passed=`expr $passed + 1` | 
|  | 27991 | else | 
|  | 27992 | failed=`expr $failed + 1` | 
|  | 27993 | fi | 
|  | 27994 |  | 
|  | 27995 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 | 
|  | 27997 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27998 | if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27999 | $as_echo_n "(cached) " >&6 | 
|  | 28000 | else | 
|  | 28001 | ac_check_framework_save_LIBS=$LIBS | 
|  | 28002 | LIBS="-framework Ghostscript  $LIBS" | 
|  | 28003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 28004 | /* end confdefs.h.  */ | 
|  | 28005 |  | 
|  | 28006 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28007 | Use char because int might match the return type of a GCC | 
|  | 28008 | builtin and then its argument prototype would still apply.  */ | 
|  | 28009 | #ifdef __cplusplus | 
|  | 28010 | extern "C" | 
|  | 28011 | #endif | 
|  | 28012 | char gsapi_new_instance (); | 
|  | 28013 | int | 
|  | 28014 | main () | 
|  | 28015 | { | 
|  | 28016 | return gsapi_new_instance (); | 
|  | 28017 | ; | 
|  | 28018 | return 0; | 
|  | 28019 | } | 
|  | 28020 | _ACEOF | 
|  | 28021 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 28022 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes | 
|  | 28023 | else | 
|  | 28024 | ac_cv_framework_Ghostscript_gsapi_new_instance=no | 
|  | 28025 | fi | 
|  | 28026 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28027 | conftest$ac_exeext conftest.$ac_ext | 
|  | 28028 | LIBS=$ac_check_framework_save_LIBS | 
|  | 28029 | fi | 
|  | 28030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 | 
|  | 28031 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } | 
|  | 28032 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : | 
|  | 28033 | framework=`expr $framework + 1` | 
|  | 28034 | else | 
|  | 28035 | { $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] | 28036 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28037 | if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28038 | $as_echo_n "(cached) " >&6 | 
|  | 28039 | else | 
|  | 28040 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28041 | LIBS="-lgs  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28043 | /* end confdefs.h.  */ | 
|  | 28044 |  | 
|  | 28045 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28046 | Use char because int might match the return type of a GCC | 
|  | 28047 | builtin and then its argument prototype would still apply.  */ | 
|  | 28048 | #ifdef __cplusplus | 
|  | 28049 | extern "C" | 
|  | 28050 | #endif | 
|  | 28051 | char gsapi_new_instance (); | 
|  | 28052 | int | 
|  | 28053 | main () | 
|  | 28054 | { | 
|  | 28055 | return gsapi_new_instance (); | 
|  | 28056 | ; | 
|  | 28057 | return 0; | 
|  | 28058 | } | 
|  | 28059 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28060 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28061 | ac_cv_lib_gs_gsapi_new_instance=yes | 
|  | 28062 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28063 | ac_cv_lib_gs_gsapi_new_instance=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28064 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28065 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28066 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28067 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28068 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28069 | { $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] | 28070 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28071 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28072 | passed=`expr $passed + 1` | 
|  | 28073 | else | 
|  | 28074 | failed=`expr $failed + 1` | 
|  | 28075 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28076 |  | 
|  | 28077 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28078 | { $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] | 28079 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } | 
|  | 28080 | if test $passed -gt 0; then | 
|  | 28081 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28082 | { $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] | 28083 | $as_echo "no -- some components failed test" >&6; } | 
|  | 28084 | have_gslib='no (failed tests)' | 
|  | 28085 | else | 
|  | 28086 | if test $framework -gt 0; then | 
|  | 28087 | GS_LIBS='-framework Ghostscript' | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 28088 | gslib_framework='yes' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28090 | $as_echo "yes, using framework." >&6; } | 
|  | 28091 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28093 | $as_echo "yes, using library." >&6; } | 
|  | 28094 | GS_LIBS='-lgs' | 
|  | 28095 | fi | 
|  | 28096 | LIBS="$GS_LIBS $LIBS" | 
|  | 28097 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28098 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28099 |  | 
|  | 28100 | have_gslib='yes' | 
|  | 28101 | fi | 
|  | 28102 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28104 | $as_echo "no" >&6; } | 
|  | 28105 | fi | 
|  | 28106 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28107 | if test "$have_gslib" = 'yes'; then | 
|  | 28108 | GS_DELEGATE_TRUE= | 
|  | 28109 | GS_DELEGATE_FALSE='#' | 
|  | 28110 | else | 
|  | 28111 | GS_DELEGATE_TRUE='#' | 
|  | 28112 | GS_DELEGATE_FALSE= | 
|  | 28113 | fi | 
|  | 28114 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28115 |  | 
|  | 28116 |  | 
|  | 28117 | # Set default font search path | 
|  | 28118 |  | 
|  | 28119 | # Check whether --with-fontpath was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28120 | if test "${with_fontpath+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28121 | withval=$with_fontpath; with_fontpath=$withval | 
|  | 28122 | else | 
|  | 28123 | with_fontpath='' | 
|  | 28124 | fi | 
|  | 28125 |  | 
|  | 28126 |  | 
|  | 28127 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then | 
|  | 28128 | with_fontpath='' | 
|  | 28129 | else | 
|  | 28130 |  | 
|  | 28131 | cat >>confdefs.h <<_ACEOF | 
|  | 28132 | #define MAGICK_FONT_PATH "$with_fontpath" | 
|  | 28133 | _ACEOF | 
|  | 28134 |  | 
|  | 28135 | fi | 
|  | 28136 | if test "$with_fontpath=" != ''; then | 
|  | 28137 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " | 
|  | 28138 | fi | 
|  | 28139 |  | 
|  | 28140 | # Set Ghostscript font directory | 
|  | 28141 |  | 
|  | 28142 | # Check whether --with-gs-font-dir was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28143 | if test "${with_gs_font_dir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28144 | withval=$with_gs_font_dir; with_gs_font_dir=$withval | 
|  | 28145 | else | 
|  | 28146 | with_gs_font_dir='default' | 
|  | 28147 | fi | 
|  | 28148 |  | 
|  | 28149 |  | 
|  | 28150 | if test "$with_gs_font_dir" != 'default'; then | 
|  | 28151 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " | 
|  | 28152 | fi | 
|  | 28153 |  | 
|  | 28154 |  | 
|  | 28155 | # | 
|  | 28156 | # Check for GVC delegate library. | 
|  | 28157 | # | 
|  | 28158 |  | 
|  | 28159 | # Check whether --with-gvc was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28160 | if test "${with_gvc+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28161 | withval=$with_gvc; with_gvc=$withval | 
|  | 28162 | else | 
|  | 28163 | with_gvc='yes' | 
|  | 28164 | fi | 
|  | 28165 |  | 
|  | 28166 |  | 
|  | 28167 | if test "$with_gvc" != 'yes'; then | 
|  | 28168 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " | 
|  | 28169 | fi | 
|  | 28170 |  | 
|  | 28171 | GVC_PKG="" | 
|  | 28172 | if test "x$with_gvc" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28174 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28175 |  | 
|  | 28176 | pkg_failed=no | 
|  | 28177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 | 
|  | 28178 | $as_echo_n "checking for GVC... " >&6; } | 
|  | 28179 |  | 
|  | 28180 | if test -n "$GVC_CFLAGS"; then | 
|  | 28181 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" | 
|  | 28182 | elif test -n "$PKG_CONFIG"; then | 
|  | 28183 | if test -n "$PKG_CONFIG" && \ | 
|  | 28184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 | 
|  | 28185 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 | 
|  | 28186 | ac_status=$? | 
|  | 28187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28188 | test $ac_status = 0; }; then | 
|  | 28189 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` | 
|  | 28190 | else | 
|  | 28191 | pkg_failed=yes | 
|  | 28192 | fi | 
|  | 28193 | else | 
|  | 28194 | pkg_failed=untried | 
|  | 28195 | fi | 
|  | 28196 | if test -n "$GVC_LIBS"; then | 
|  | 28197 | pkg_cv_GVC_LIBS="$GVC_LIBS" | 
|  | 28198 | elif test -n "$PKG_CONFIG"; then | 
|  | 28199 | if test -n "$PKG_CONFIG" && \ | 
|  | 28200 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 | 
|  | 28201 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 | 
|  | 28202 | ac_status=$? | 
|  | 28203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28204 | test $ac_status = 0; }; then | 
|  | 28205 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` | 
|  | 28206 | else | 
|  | 28207 | pkg_failed=yes | 
|  | 28208 | fi | 
|  | 28209 | else | 
|  | 28210 | pkg_failed=untried | 
|  | 28211 | fi | 
|  | 28212 |  | 
|  | 28213 |  | 
|  | 28214 |  | 
|  | 28215 | if test $pkg_failed = yes; then | 
|  | 28216 |  | 
|  | 28217 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 28218 | _pkg_short_errors_supported=yes | 
|  | 28219 | else | 
|  | 28220 | _pkg_short_errors_supported=no | 
|  | 28221 | fi | 
|  | 28222 | if test $_pkg_short_errors_supported = yes; then | 
|  | 28223 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` | 
|  | 28224 | else | 
|  | 28225 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` | 
|  | 28226 | fi | 
|  | 28227 | # Put the nasty error message in config.log where it belongs | 
|  | 28228 | echo "$GVC_PKG_ERRORS" >&5 | 
|  | 28229 |  | 
|  | 28230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 28231 | $as_echo "no" >&6; } | 
|  | 28232 | have_gvc=no | 
|  | 28233 | elif test $pkg_failed = untried; then | 
|  | 28234 | have_gvc=no | 
|  | 28235 | else | 
|  | 28236 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS | 
|  | 28237 | GVC_LIBS=$pkg_cv_GVC_LIBS | 
|  | 28238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 28239 | $as_echo "yes" >&6; } | 
|  | 28240 | have_gvc=yes | 
|  | 28241 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28243 | $as_echo "" >&6; } | 
|  | 28244 | fi | 
|  | 28245 |  | 
|  | 28246 | if test "$have_gvc" = 'yes'; then | 
|  | 28247 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28248 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28249 |  | 
|  | 28250 | if test "$with_modules" = 'no'; then | 
|  | 28251 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" | 
|  | 28252 | fi | 
|  | 28253 | fi | 
|  | 28254 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28255 | if test "$have_gvc" = 'yes'; then | 
|  | 28256 | GVC_DELEGATE_TRUE= | 
|  | 28257 | GVC_DELEGATE_FALSE='#' | 
|  | 28258 | else | 
|  | 28259 | GVC_DELEGATE_TRUE='#' | 
|  | 28260 | GVC_DELEGATE_FALSE= | 
|  | 28261 | fi | 
|  | 28262 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28263 |  | 
|  | 28264 |  | 
|  | 28265 |  | 
|  | 28266 |  | 
|  | 28267 | # | 
|  | 28268 | # Check for JBIG delegate library. | 
|  | 28269 | # | 
|  | 28270 |  | 
|  | 28271 |  | 
|  | 28272 | # Check whether --with-jbig was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28273 | if test "${with_jbig+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28274 | withval=$with_jbig; with_jbig=$withval | 
|  | 28275 | else | 
|  | 28276 | with_jbig='yes' | 
|  | 28277 | fi | 
|  | 28278 |  | 
|  | 28279 |  | 
|  | 28280 | have_jbig='no' | 
|  | 28281 | JBIG_LIBS='' | 
|  | 28282 | if test "$with_jbig" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28284 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28286 | $as_echo_n "checking for JBIG... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28288 | $as_echo "" >&6; } | 
|  | 28289 | failed=0 | 
|  | 28290 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28291 | ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28292 | if test "x$ac_cv_header_jbig_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28293 | passed=`expr $passed + 1` | 
|  | 28294 | else | 
|  | 28295 | failed=`expr $failed + 1` | 
|  | 28296 | fi | 
|  | 28297 |  | 
|  | 28298 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28299 | { $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] | 28300 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28301 | if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28302 | $as_echo_n "(cached) " >&6 | 
|  | 28303 | else | 
|  | 28304 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28305 | LIBS="-ljbig  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28307 | /* end confdefs.h.  */ | 
|  | 28308 |  | 
|  | 28309 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28310 | Use char because int might match the return type of a GCC | 
|  | 28311 | builtin and then its argument prototype would still apply.  */ | 
|  | 28312 | #ifdef __cplusplus | 
|  | 28313 | extern "C" | 
|  | 28314 | #endif | 
|  | 28315 | char jbg_dec_init (); | 
|  | 28316 | int | 
|  | 28317 | main () | 
|  | 28318 | { | 
|  | 28319 | return jbg_dec_init (); | 
|  | 28320 | ; | 
|  | 28321 | return 0; | 
|  | 28322 | } | 
|  | 28323 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28324 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28325 | ac_cv_lib_jbig_jbg_dec_init=yes | 
|  | 28326 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28327 | ac_cv_lib_jbig_jbg_dec_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28328 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28329 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28330 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28331 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28332 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28333 | { $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] | 28334 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28335 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28336 | passed=`expr $passed + 1` | 
|  | 28337 | else | 
|  | 28338 | failed=`expr $failed + 1` | 
|  | 28339 | fi | 
|  | 28340 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28341 | { $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] | 28342 | $as_echo_n "checking if JBIG package is complete... " >&6; } | 
|  | 28343 | if test $passed -gt 0; then | 
|  | 28344 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28345 | { $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] | 28346 | $as_echo "no -- some components failed test" >&6; } | 
|  | 28347 | have_jbig='no (failed tests)' | 
|  | 28348 | else | 
|  | 28349 | JBIG_LIBS='-ljbig' | 
|  | 28350 | LIBS="$JBIG_LIBS $LIBS" | 
|  | 28351 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28352 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28353 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28355 | $as_echo "yes" >&6; } | 
|  | 28356 | have_jbig='yes' | 
|  | 28357 | fi | 
|  | 28358 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28360 | $as_echo "no" >&6; } | 
|  | 28361 | fi | 
|  | 28362 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28363 | if test "$have_jbig" = 'yes'; then | 
|  | 28364 | JBIG_DELEGATE_TRUE= | 
|  | 28365 | JBIG_DELEGATE_FALSE='#' | 
|  | 28366 | else | 
|  | 28367 | JBIG_DELEGATE_TRUE='#' | 
|  | 28368 | JBIG_DELEGATE_FALSE= | 
|  | 28369 | fi | 
|  | 28370 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28371 |  | 
|  | 28372 |  | 
|  | 28373 |  | 
|  | 28374 | # | 
|  | 28375 | # Check for JPEG delegate library. | 
|  | 28376 | # | 
|  | 28377 |  | 
|  | 28378 | # Check whether --with-jpeg was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28379 | if test "${with_jpeg+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28380 | withval=$with_jpeg; with_jpeg=$withval | 
|  | 28381 | else | 
|  | 28382 | with_jpeg='yes' | 
|  | 28383 | fi | 
|  | 28384 |  | 
|  | 28385 |  | 
|  | 28386 | if test "$with_jpeg" != 'yes'; then | 
|  | 28387 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " | 
|  | 28388 | fi | 
|  | 28389 |  | 
|  | 28390 | have_jpeg='no' | 
|  | 28391 | JPEG_LIBS='' | 
|  | 28392 | if test "$with_jpeg" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28394 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28396 | $as_echo_n "checking for JPEG... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28398 | $as_echo "" >&6; } | 
|  | 28399 | failed=0 | 
|  | 28400 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28401 | ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28402 | if test "x$ac_cv_header_jconfig_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28403 | passed=`expr $passed + 1` | 
|  | 28404 | else | 
|  | 28405 | failed=`expr $failed + 1` | 
|  | 28406 | fi | 
|  | 28407 |  | 
|  | 28408 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28409 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28410 | if test "x$ac_cv_header_jerror_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28411 | passed=`expr $passed + 1` | 
|  | 28412 | else | 
|  | 28413 | failed=`expr $failed + 1` | 
|  | 28414 | fi | 
|  | 28415 |  | 
|  | 28416 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28417 | ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28418 | if test "x$ac_cv_header_jmorecfg_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28419 | passed=`expr $passed + 1` | 
|  | 28420 | else | 
|  | 28421 | failed=`expr $failed + 1` | 
|  | 28422 | fi | 
|  | 28423 |  | 
|  | 28424 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28425 | ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28426 | if test "x$ac_cv_header_jpeglib_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28427 | passed=`expr $passed + 1` | 
|  | 28428 | else | 
|  | 28429 | failed=`expr $failed + 1` | 
|  | 28430 | fi | 
|  | 28431 |  | 
|  | 28432 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28433 | { $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] | 28434 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28435 | if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28436 | $as_echo_n "(cached) " >&6 | 
|  | 28437 | else | 
|  | 28438 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28439 | LIBS="-ljpeg  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28441 | /* end confdefs.h.  */ | 
|  | 28442 |  | 
|  | 28443 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28444 | Use char because int might match the return type of a GCC | 
|  | 28445 | builtin and then its argument prototype would still apply.  */ | 
|  | 28446 | #ifdef __cplusplus | 
|  | 28447 | extern "C" | 
|  | 28448 | #endif | 
|  | 28449 | char jpeg_read_header (); | 
|  | 28450 | int | 
|  | 28451 | main () | 
|  | 28452 | { | 
|  | 28453 | return jpeg_read_header (); | 
|  | 28454 | ; | 
|  | 28455 | return 0; | 
|  | 28456 | } | 
|  | 28457 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28458 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28459 | ac_cv_lib_jpeg_jpeg_read_header=yes | 
|  | 28460 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28461 | ac_cv_lib_jpeg_jpeg_read_header=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28462 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28463 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28464 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28465 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28466 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28467 | { $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] | 28468 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28469 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28470 | passed=`expr $passed + 1` | 
|  | 28471 | else | 
|  | 28472 | failed=`expr $failed + 1` | 
|  | 28473 | fi | 
|  | 28474 |  | 
|  | 28475 |  | 
|  | 28476 | # Test for compatible JPEG library | 
|  | 28477 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28478 | { $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] | 28479 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28480 | if ${ac_cv_jpeg_version_ok+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28481 | $as_echo_n "(cached) " >&6 | 
|  | 28482 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28484 | /* end confdefs.h.  */ | 
|  | 28485 | #include <stdio.h> | 
|  | 28486 | #include <stdlib.h> | 
|  | 28487 | #include <jpeglib.h> | 
|  | 28488 |  | 
|  | 28489 | int | 
|  | 28490 | main () | 
|  | 28491 | { | 
|  | 28492 |  | 
|  | 28493 | #if JPEG_LIB_VERSION < 62 | 
|  | 28494 | #error IJG JPEG library must be version 6b or newer! | 
|  | 28495 | #endif | 
|  | 28496 | return 0; | 
|  | 28497 |  | 
|  | 28498 | ; | 
|  | 28499 | return 0; | 
|  | 28500 | } | 
|  | 28501 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28502 | if ac_fn_c_try_compile "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28503 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` | 
|  | 28504 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28505 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28506 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 
|  | 28508 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28509 | { $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] | 28510 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } | 
|  | 28511 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28512 | { $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] | 28513 | $as_echo_n "checking if JPEG package is complete... " >&6; } | 
|  | 28514 | if test $passed -gt 0; then | 
|  | 28515 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28516 | { $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] | 28517 | $as_echo "no -- some components failed test" >&6; } | 
|  | 28518 | have_jpeg='no (failed tests)' | 
|  | 28519 | else | 
|  | 28520 | JPEG_LIBS='-ljpeg' | 
|  | 28521 | LIBS="$JPEG_LIBS $LIBS" | 
|  | 28522 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28523 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28524 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28526 | $as_echo "yes" >&6; } | 
|  | 28527 | have_jpeg='yes' | 
|  | 28528 | fi | 
|  | 28529 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28531 | $as_echo "no" >&6; } | 
|  | 28532 | fi | 
|  | 28533 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28534 | if test "$have_jpeg" = 'yes'; then | 
|  | 28535 | JPEG_DELEGATE_TRUE= | 
|  | 28536 | JPEG_DELEGATE_FALSE='#' | 
|  | 28537 | else | 
|  | 28538 | JPEG_DELEGATE_TRUE='#' | 
|  | 28539 | JPEG_DELEGATE_FALSE= | 
|  | 28540 | fi | 
|  | 28541 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28542 |  | 
|  | 28543 |  | 
|  | 28544 |  | 
|  | 28545 | # | 
|  | 28546 | # Check for JPEG Version 2 delegate library. | 
|  | 28547 | # | 
|  | 28548 |  | 
|  | 28549 | # Check whether --with-jp2 was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28550 | if test "${with_jp2+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28551 | withval=$with_jp2; with_jp2=$withval | 
|  | 28552 | else | 
|  | 28553 | with_jp2='yes' | 
|  | 28554 | fi | 
|  | 28555 |  | 
|  | 28556 |  | 
|  | 28557 | if test "$with_jp2" != 'yes'; then | 
|  | 28558 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " | 
|  | 28559 | fi | 
|  | 28560 |  | 
|  | 28561 | have_jp2='no' | 
|  | 28562 | JP2_LIBS='' | 
|  | 28563 | if test "$with_jp2" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28565 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28567 | $as_echo_n "checking for JPEG Version 2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28569 | $as_echo "" >&6; } | 
|  | 28570 | failed=0 | 
|  | 28571 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28572 | ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28573 | if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28574 | passed=`expr $passed + 1` | 
|  | 28575 | else | 
|  | 28576 | failed=`expr $failed + 1` | 
|  | 28577 | fi | 
|  | 28578 |  | 
|  | 28579 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28580 | { $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] | 28581 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28582 | if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28583 | $as_echo_n "(cached) " >&6 | 
|  | 28584 | else | 
|  | 28585 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28586 | LIBS="-ljasper  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28588 | /* end confdefs.h.  */ | 
|  | 28589 |  | 
|  | 28590 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28591 | Use char because int might match the return type of a GCC | 
|  | 28592 | builtin and then its argument prototype would still apply.  */ | 
|  | 28593 | #ifdef __cplusplus | 
|  | 28594 | extern "C" | 
|  | 28595 | #endif | 
|  | 28596 | char jas_stream_fopen (); | 
|  | 28597 | int | 
|  | 28598 | main () | 
|  | 28599 | { | 
|  | 28600 | return jas_stream_fopen (); | 
|  | 28601 | ; | 
|  | 28602 | return 0; | 
|  | 28603 | } | 
|  | 28604 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28605 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28606 | ac_cv_lib_jasper_jas_stream_fopen=yes | 
|  | 28607 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28608 | ac_cv_lib_jasper_jas_stream_fopen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28609 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28610 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28611 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28612 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28613 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28614 | { $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] | 28615 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28616 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28617 | passed=`expr $passed + 1` | 
|  | 28618 | else | 
|  | 28619 | failed=`expr $failed + 1` | 
|  | 28620 | fi | 
|  | 28621 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28622 | { $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] | 28623 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } | 
|  | 28624 | if test $passed -gt 0; then | 
|  | 28625 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28626 | { $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] | 28627 | $as_echo "no -- some components failed test" >&6; } | 
|  | 28628 | have_jp2='no (failed tests)' | 
|  | 28629 | else | 
|  | 28630 | JP2_LIBS='-ljasper' | 
|  | 28631 | LIBS="$JP2_LIBS $LIBS" | 
|  | 28632 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28633 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28634 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28636 | $as_echo "yes" >&6; } | 
|  | 28637 | have_jp2='yes' | 
|  | 28638 | fi | 
|  | 28639 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28641 | $as_echo "no" >&6; } | 
|  | 28642 | fi | 
|  | 28643 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28644 | if test "$have_jp2" = 'yes'; then | 
|  | 28645 | JP2_DELEGATE_TRUE= | 
|  | 28646 | JP2_DELEGATE_FALSE='#' | 
|  | 28647 | else | 
|  | 28648 | JP2_DELEGATE_TRUE='#' | 
|  | 28649 | JP2_DELEGATE_FALSE= | 
|  | 28650 | fi | 
|  | 28651 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28652 |  | 
|  | 28653 |  | 
|  | 28654 |  | 
|  | 28655 | # | 
|  | 28656 | # Check for LCMS delegate library. | 
|  | 28657 | # | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28658 | # Disable LCMS. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28659 |  | 
|  | 28660 | # Check whether --with-lcms was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28661 | if test "${with_lcms+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28662 | withval=$with_lcms; with_lcms=$withval | 
|  | 28663 | else | 
|  | 28664 | with_lcms='yes' | 
|  | 28665 | fi | 
|  | 28666 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28667 | if test "$with_lcms" != 'yes' ; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28668 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " | 
|  | 28669 | fi | 
|  | 28670 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28671 | # Disable LCMS2. | 
|  | 28672 |  | 
|  | 28673 | # Check whether --with-lcms2 was given. | 
|  | 28674 | if test "${with_lcms2+set}" = set; then : | 
|  | 28675 | withval=$with_lcms2; with_lcms2=$withval | 
|  | 28676 | else | 
|  | 28677 | with_lcms2='yes' | 
|  | 28678 | fi | 
|  | 28679 |  | 
|  | 28680 | if test "$with_lcms2" != 'yes' ; then | 
|  | 28681 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " | 
|  | 28682 | fi | 
|  | 28683 |  | 
|  | 28684 | have_lcms2='no' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28685 | LCMS_LIBS='' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28686 | if test "$with_lcms2" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28688 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 | 
|  | 28690 | $as_echo_n "checking for LCMS v2... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28692 | $as_echo "" >&6; } | 
|  | 28693 | failed=0 | 
|  | 28694 | passed=0 | 
|  | 28695 | have_lcms_header='no' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28696 |  | 
|  | 28697 | # Check for <lcms2.h> | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28698 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28699 | if test "x$ac_cv_header_lcms2_h" = xyes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28700 | have_lcms_header='yes' | 
|  | 28701 | fi | 
|  | 28702 |  | 
|  | 28703 |  | 
|  | 28704 | if test "$have_lcms_header" = 'yes'; then | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28705 |  | 
|  | 28706 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h | 
|  | 28707 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28708 | passed=`expr $passed + 1` | 
|  | 28709 | fi | 
|  | 28710 |  | 
|  | 28711 | # Check for <lcms2/lcms2.h) | 
|  | 28712 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28713 | ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28714 | if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28715 | have_lcms_header='yes' | 
|  | 28716 | fi | 
|  | 28717 |  | 
|  | 28718 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28719 | if test "$have_lcms_header" = 'yes'; then | 
|  | 28720 | passed=`expr $passed + 1` | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28721 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28722 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28723 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28724 | fi | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28725 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28726 |  | 
|  | 28727 | # Failed to find lcms header? | 
|  | 28728 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28729 | failed=`expr $failed + 1` | 
|  | 28730 | fi | 
|  | 28731 |  | 
|  | 28732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 | 
|  | 28733 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28734 | if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28735 | $as_echo_n "(cached) " >&6 | 
|  | 28736 | else | 
|  | 28737 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28738 | LIBS="-llcms2  $LIBS" | 
|  | 28739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 28740 | /* end confdefs.h.  */ | 
|  | 28741 |  | 
|  | 28742 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28743 | Use char because int might match the return type of a GCC | 
|  | 28744 | builtin and then its argument prototype would still apply.  */ | 
|  | 28745 | #ifdef __cplusplus | 
|  | 28746 | extern "C" | 
|  | 28747 | #endif | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28748 | char cmsSetLogErrorHandler (); | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28749 | int | 
|  | 28750 | main () | 
|  | 28751 | { | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28752 | return cmsSetLogErrorHandler (); | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28753 | ; | 
|  | 28754 | return 0; | 
|  | 28755 | } | 
|  | 28756 | _ACEOF | 
|  | 28757 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28758 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28759 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28760 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=no | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28761 | fi | 
|  | 28762 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28763 | conftest$ac_exeext conftest.$ac_ext | 
|  | 28764 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28765 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 | 
|  | 28767 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28768 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28769 | passed=`expr $passed + 1` | 
|  | 28770 | else | 
|  | 28771 | failed=`expr $failed + 1` | 
|  | 28772 | fi | 
|  | 28773 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 | 
|  | 28775 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28776 | if test $passed -gt 0; then | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28777 | if test $failed -gt 0; then | 
|  | 28778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28779 | $as_echo "no -- some components failed test" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28780 | have_lcms2='no (failed tests)' | 
|  | 28781 | else | 
|  | 28782 | LCMS_LIBS='-llcms2' | 
|  | 28783 | LIBS="$LCMS_LIBS $LIBS" | 
|  | 28784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28785 | $as_echo "yes" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28786 | have_lcms2='yes' | 
|  | 28787 | fi | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28788 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28790 | $as_echo "no" >&6; } | 
|  | 28791 | fi | 
|  | 28792 | fi | 
|  | 28793 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28794 | # | 
|  | 28795 | # Check for LCMS v1 (1.11 or later) | 
|  | 28796 | # | 
|  | 28797 | if test $have_lcms2 = 'yes'; then | 
|  | 28798 | with_lcms='no' | 
|  | 28799 | fi | 
|  | 28800 |  | 
|  | 28801 | have_lcms='no' | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28802 | if test "$with_lcms" != 'no'; then | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
|  | 28804 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 | 
|  | 28806 | $as_echo_n "checking for LCMS v1.1X... " >&6; } | 
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 28807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
|  | 28808 | $as_echo "" >&6; } | 
|  | 28809 | failed=0 | 
|  | 28810 | passed=0 | 
|  | 28811 | have_lcms_header='no' | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28812 |  | 
|  | 28813 | # Check for <lcms.h> | 
|  | 28814 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28815 | ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28816 | if test "x$ac_cv_header_lcms_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28817 | have_lcms_header='yes' | 
|  | 28818 | fi | 
|  | 28819 |  | 
|  | 28820 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28821 | if test "$have_lcms_header" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28822 | passed=`expr $passed + 1` | 
|  | 28823 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28824 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28825 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28826 | fi | 
|  | 28827 | fi | 
|  | 28828 |  | 
|  | 28829 | # Check for <lcms/lcms.h> | 
|  | 28830 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28831 | ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28832 | if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28833 | have_lcms_header='yes' | 
|  | 28834 | fi | 
|  | 28835 |  | 
|  | 28836 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28837 | if test "$have_lcms_header" = 'yes'; then | 
|  | 28838 | passed=`expr $passed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28839 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28840 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28841 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28842 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28843 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28844 |  | 
|  | 28845 | # Failed to find lcms header? | 
|  | 28846 | if test "$have_lcms_header" != 'yes'; then | 
|  | 28847 | failed=`expr $failed + 1` | 
|  | 28848 | fi | 
|  | 28849 |  | 
|  | 28850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 | 
|  | 28851 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28852 | if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28853 | $as_echo_n "(cached) " >&6 | 
|  | 28854 | else | 
|  | 28855 | ac_check_lib_save_LIBS=$LIBS | 
|  | 28856 | LIBS="-llcms  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28858 | /* end confdefs.h.  */ | 
|  | 28859 |  | 
|  | 28860 | /* Override any GCC internal prototype to avoid an error. | 
|  | 28861 | Use char because int might match the return type of a GCC | 
|  | 28862 | builtin and then its argument prototype would still apply.  */ | 
|  | 28863 | #ifdef __cplusplus | 
|  | 28864 | extern "C" | 
|  | 28865 | #endif | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28866 | char cmsSetErrorHandler (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28867 | int | 
|  | 28868 | main () | 
|  | 28869 | { | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28870 | return cmsSetErrorHandler (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28871 | ; | 
|  | 28872 | return 0; | 
|  | 28873 | } | 
|  | 28874 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28875 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28876 | ac_cv_lib_lcms_cmsSetErrorHandler=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28877 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28878 | ac_cv_lib_lcms_cmsSetErrorHandler=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28879 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28880 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 28881 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28882 | LIBS=$ac_check_lib_save_LIBS | 
|  | 28883 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 | 
|  | 28885 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28886 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28887 | passed=`expr $passed + 1` | 
|  | 28888 | else | 
|  | 28889 | failed=`expr $failed + 1` | 
|  | 28890 | fi | 
|  | 28891 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28892 | { $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] | 28893 | $as_echo_n "checking if LCMS package is complete... " >&6; } | 
|  | 28894 | if test $passed -gt 0; then | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28895 | if test $failed -gt 0; then | 
|  | 28896 | { $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] | 28897 | $as_echo "no -- some components failed test" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28898 | have_lcms='no (failed tests)' | 
|  | 28899 | else | 
|  | 28900 | LCMS_LIBS='-llcms' | 
|  | 28901 | LIBS="$LCMS_LIBS $LIBS" | 
|  | 28902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28903 | $as_echo "yes" >&6; } | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28904 | have_lcms='yes' | 
|  | 28905 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28906 | else | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28908 | $as_echo "no" >&6; } | 
|  | 28909 | fi | 
|  | 28910 | fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28911 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28912 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then | 
|  | 28913 | LCMS_DELEGATE_TRUE= | 
|  | 28914 | LCMS_DELEGATE_FALSE='#' | 
|  | 28915 | else | 
|  | 28916 | LCMS_DELEGATE_TRUE='#' | 
|  | 28917 | LCMS_DELEGATE_FALSE= | 
|  | 28918 | fi | 
|  | 28919 |  | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 28920 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then | 
|  | 28921 |  | 
|  | 28922 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h | 
|  | 28923 |  | 
|  | 28924 | fi | 
|  | 28925 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28926 |  | 
|  | 28927 |  | 
|  | 28928 |  | 
|  | 28929 | # | 
|  | 28930 | # Check for the LQR (Liquid Rescale) delegate library. | 
|  | 28931 | # | 
|  | 28932 |  | 
|  | 28933 | # Check whether --with-lqr was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28934 | if test "${with_lqr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28935 | withval=$with_lqr; with_lqr=$withval | 
|  | 28936 | else | 
|  | 28937 | with_lqr='yes' | 
|  | 28938 | fi | 
|  | 28939 |  | 
|  | 28940 |  | 
|  | 28941 | if test "$with_lqr" != 'yes'; then | 
|  | 28942 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " | 
|  | 28943 | fi | 
|  | 28944 |  | 
|  | 28945 | have_lqr='no' | 
|  | 28946 | LQR_CFLAGS="" | 
|  | 28947 | LQR_LIBS="" | 
|  | 28948 | LQR_PKG="" | 
|  | 28949 | if test "x$with_lqr" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28951 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28952 |  | 
|  | 28953 | pkg_failed=no | 
|  | 28954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 | 
|  | 28955 | $as_echo_n "checking for LQR... " >&6; } | 
|  | 28956 |  | 
|  | 28957 | if test -n "$LQR_CFLAGS"; then | 
|  | 28958 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" | 
|  | 28959 | elif test -n "$PKG_CONFIG"; then | 
|  | 28960 | if test -n "$PKG_CONFIG" && \ | 
|  | 28961 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 | 
|  | 28962 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 | 
|  | 28963 | ac_status=$? | 
|  | 28964 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28965 | test $ac_status = 0; }; then | 
|  | 28966 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` | 
|  | 28967 | else | 
|  | 28968 | pkg_failed=yes | 
|  | 28969 | fi | 
|  | 28970 | else | 
|  | 28971 | pkg_failed=untried | 
|  | 28972 | fi | 
|  | 28973 | if test -n "$LQR_LIBS"; then | 
|  | 28974 | pkg_cv_LQR_LIBS="$LQR_LIBS" | 
|  | 28975 | elif test -n "$PKG_CONFIG"; then | 
|  | 28976 | if test -n "$PKG_CONFIG" && \ | 
|  | 28977 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 | 
|  | 28978 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 | 
|  | 28979 | ac_status=$? | 
|  | 28980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 28981 | test $ac_status = 0; }; then | 
|  | 28982 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` | 
|  | 28983 | else | 
|  | 28984 | pkg_failed=yes | 
|  | 28985 | fi | 
|  | 28986 | else | 
|  | 28987 | pkg_failed=untried | 
|  | 28988 | fi | 
|  | 28989 |  | 
|  | 28990 |  | 
|  | 28991 |  | 
|  | 28992 | if test $pkg_failed = yes; then | 
|  | 28993 |  | 
|  | 28994 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 28995 | _pkg_short_errors_supported=yes | 
|  | 28996 | else | 
|  | 28997 | _pkg_short_errors_supported=no | 
|  | 28998 | fi | 
|  | 28999 | if test $_pkg_short_errors_supported = yes; then | 
|  | 29000 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` | 
|  | 29001 | else | 
|  | 29002 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` | 
|  | 29003 | fi | 
|  | 29004 | # Put the nasty error message in config.log where it belongs | 
|  | 29005 | echo "$LQR_PKG_ERRORS" >&5 | 
|  | 29006 |  | 
|  | 29007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 29008 | $as_echo "no" >&6; } | 
|  | 29009 | have_lqr=no | 
|  | 29010 | elif test $pkg_failed = untried; then | 
|  | 29011 | have_lqr=no | 
|  | 29012 | else | 
|  | 29013 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS | 
|  | 29014 | LQR_LIBS=$pkg_cv_LQR_LIBS | 
|  | 29015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 29016 | $as_echo "yes" >&6; } | 
|  | 29017 | have_lqr=yes | 
|  | 29018 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29020 | $as_echo "" >&6; } | 
|  | 29021 | fi | 
|  | 29022 |  | 
|  | 29023 | if test "$have_lqr" = 'yes'; then | 
|  | 29024 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29025 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29026 |  | 
|  | 29027 | CFLAGS="$LQR_CFLAGS $CFLAGS" | 
|  | 29028 | fi | 
|  | 29029 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29030 | if test "$have_lqr" = 'yes'; then | 
|  | 29031 | LQR_DELEGATE_TRUE= | 
|  | 29032 | LQR_DELEGATE_FALSE='#' | 
|  | 29033 | else | 
|  | 29034 | LQR_DELEGATE_TRUE='#' | 
|  | 29035 | LQR_DELEGATE_FALSE= | 
|  | 29036 | fi | 
|  | 29037 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29038 |  | 
|  | 29039 |  | 
|  | 29040 |  | 
|  | 29041 |  | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29042 | # Disable LZMA (lzma library) | 
|  | 29043 |  | 
|  | 29044 | # Check whether --with-lzma was given. | 
|  | 29045 | if test "${with_lzma+set}" = set; then : | 
|  | 29046 | withval=$with_lzma; with_lzma=$withval | 
|  | 29047 | else | 
|  | 29048 | with_lzma='yes' | 
|  | 29049 | fi | 
|  | 29050 |  | 
|  | 29051 | if test "$with_lzma" != 'yes' ; then | 
|  | 29052 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " | 
|  | 29053 | fi | 
|  | 29054 |  | 
|  | 29055 | # | 
|  | 29056 | # Check for LZMA | 
|  | 29057 | # | 
|  | 29058 | have_lzma='no' | 
|  | 29059 | LZMA_LIBS='' | 
|  | 29060 | if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then | 
|  | 29061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
|  | 29062 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 29063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 | 
|  | 29064 | $as_echo_n "checking for LZMA... " >&6; } | 
|  | 29065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
|  | 29066 | $as_echo "" >&6; } | 
|  | 29067 | failed=0 | 
|  | 29068 | passed=0 | 
|  | 29069 | ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29070 | if test "x$ac_cv_header_lzma_h" = xyes; then : | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29071 | passed=`expr $passed + 1` | 
|  | 29072 | else | 
|  | 29073 | failed=`expr $failed + 1` | 
|  | 29074 | fi | 
|  | 29075 |  | 
|  | 29076 |  | 
|  | 29077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5 | 
|  | 29078 | $as_echo_n "checking for lzma_code in -llzma... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29079 | if ${ac_cv_lib_lzma_lzma_code+:} false; then : | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29080 | $as_echo_n "(cached) " >&6 | 
|  | 29081 | else | 
|  | 29082 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29083 | LIBS="-llzma  $LIBS" | 
|  | 29084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 29085 | /* end confdefs.h.  */ | 
|  | 29086 |  | 
|  | 29087 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29088 | Use char because int might match the return type of a GCC | 
|  | 29089 | builtin and then its argument prototype would still apply.  */ | 
|  | 29090 | #ifdef __cplusplus | 
|  | 29091 | extern "C" | 
|  | 29092 | #endif | 
|  | 29093 | char lzma_code (); | 
|  | 29094 | int | 
|  | 29095 | main () | 
|  | 29096 | { | 
|  | 29097 | return lzma_code (); | 
|  | 29098 | ; | 
|  | 29099 | return 0; | 
|  | 29100 | } | 
|  | 29101 | _ACEOF | 
|  | 29102 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 29103 | ac_cv_lib_lzma_lzma_code=yes | 
|  | 29104 | else | 
|  | 29105 | ac_cv_lib_lzma_lzma_code=no | 
|  | 29106 | fi | 
|  | 29107 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29108 | conftest$ac_exeext conftest.$ac_ext | 
|  | 29109 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29110 | fi | 
|  | 29111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5 | 
|  | 29112 | $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29113 | if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then : | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 29114 | passed=`expr $passed + 1` | 
|  | 29115 | else | 
|  | 29116 | failed=`expr $failed + 1` | 
|  | 29117 | fi | 
|  | 29118 |  | 
|  | 29119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5 | 
|  | 29120 | $as_echo_n "checking if LZMA package is complete... " >&6; } | 
|  | 29121 | if test $passed -gt 0; then | 
|  | 29122 | if test $failed -gt 0; then | 
|  | 29123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
|  | 29124 | $as_echo "no -- some components failed test" >&6; } | 
|  | 29125 | have_lzma='no (failed tests)' | 
|  | 29126 | else | 
|  | 29127 | LZMA_LIBS='-llzma' | 
|  | 29128 | LIBS="$LZMA_LIBS $LIBS" | 
|  | 29129 |  | 
|  | 29130 | $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h | 
|  | 29131 |  | 
|  | 29132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 29133 | $as_echo "yes" >&6; } | 
|  | 29134 | have_lzma='yes' | 
|  | 29135 | fi | 
|  | 29136 | else | 
|  | 29137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 29138 | $as_echo "no" >&6; } | 
|  | 29139 | fi | 
|  | 29140 | fi | 
|  | 29141 | if test "$have_lzma" = 'yes'; then | 
|  | 29142 | LZMA_DELEGATE_TRUE= | 
|  | 29143 | LZMA_DELEGATE_FALSE='#' | 
|  | 29144 | else | 
|  | 29145 | LZMA_DELEGATE_TRUE='#' | 
|  | 29146 | LZMA_DELEGATE_FALSE= | 
|  | 29147 | fi | 
|  | 29148 |  | 
|  | 29149 |  | 
|  | 29150 |  | 
|  | 29151 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29152 | # | 
|  | 29153 | # Check for the OpenEXR delegate library. | 
|  | 29154 | # | 
|  | 29155 |  | 
|  | 29156 | # Check whether --with-openexr was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29157 | if test "${with_openexr+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29158 | withval=$with_openexr; with_openexr=$withval | 
|  | 29159 | else | 
|  | 29160 | with_openexr='yes' | 
|  | 29161 | fi | 
|  | 29162 |  | 
|  | 29163 |  | 
|  | 29164 | if test "$with_openexr" != 'yes'; then | 
|  | 29165 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " | 
|  | 29166 | fi | 
|  | 29167 |  | 
|  | 29168 | have_openexr='no' | 
|  | 29169 | OPENEXR_CFLAGS="" | 
|  | 29170 | OPENEXR_LIBS="" | 
|  | 29171 | OPENEXR_PKG="" | 
|  | 29172 | if test "x$with_openexr" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29174 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29175 |  | 
|  | 29176 | pkg_failed=no | 
|  | 29177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 | 
|  | 29178 | $as_echo_n "checking for OPENEXR... " >&6; } | 
|  | 29179 |  | 
|  | 29180 | if test -n "$OPENEXR_CFLAGS"; then | 
|  | 29181 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" | 
|  | 29182 | elif test -n "$PKG_CONFIG"; then | 
|  | 29183 | if test -n "$PKG_CONFIG" && \ | 
|  | 29184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 | 
|  | 29185 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 | 
|  | 29186 | ac_status=$? | 
|  | 29187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 29188 | test $ac_status = 0; }; then | 
|  | 29189 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` | 
|  | 29190 | else | 
|  | 29191 | pkg_failed=yes | 
|  | 29192 | fi | 
|  | 29193 | else | 
|  | 29194 | pkg_failed=untried | 
|  | 29195 | fi | 
|  | 29196 | if test -n "$OPENEXR_LIBS"; then | 
|  | 29197 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" | 
|  | 29198 | elif test -n "$PKG_CONFIG"; then | 
|  | 29199 | if test -n "$PKG_CONFIG" && \ | 
|  | 29200 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 | 
|  | 29201 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 | 
|  | 29202 | ac_status=$? | 
|  | 29203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 29204 | test $ac_status = 0; }; then | 
|  | 29205 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` | 
|  | 29206 | else | 
|  | 29207 | pkg_failed=yes | 
|  | 29208 | fi | 
|  | 29209 | else | 
|  | 29210 | pkg_failed=untried | 
|  | 29211 | fi | 
|  | 29212 |  | 
|  | 29213 |  | 
|  | 29214 |  | 
|  | 29215 | if test $pkg_failed = yes; then | 
|  | 29216 |  | 
|  | 29217 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 29218 | _pkg_short_errors_supported=yes | 
|  | 29219 | else | 
|  | 29220 | _pkg_short_errors_supported=no | 
|  | 29221 | fi | 
|  | 29222 | if test $_pkg_short_errors_supported = yes; then | 
|  | 29223 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` | 
|  | 29224 | else | 
|  | 29225 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` | 
|  | 29226 | fi | 
|  | 29227 | # Put the nasty error message in config.log where it belongs | 
|  | 29228 | echo "$OPENEXR_PKG_ERRORS" >&5 | 
|  | 29229 |  | 
|  | 29230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 29231 | $as_echo "no" >&6; } | 
|  | 29232 | have_openexr=no | 
|  | 29233 | elif test $pkg_failed = untried; then | 
|  | 29234 | have_openexr=no | 
|  | 29235 | else | 
|  | 29236 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS | 
|  | 29237 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS | 
|  | 29238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 29239 | $as_echo "yes" >&6; } | 
|  | 29240 | have_openexr=yes | 
|  | 29241 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29243 | $as_echo "" >&6; } | 
|  | 29244 | fi | 
|  | 29245 |  | 
|  | 29246 | if test "$have_openexr" = 'yes'; then | 
|  | 29247 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29248 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29249 |  | 
|  | 29250 | if test "$with_modules" = 'no'; then | 
|  | 29251 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" | 
|  | 29252 | fi | 
|  | 29253 | fi | 
|  | 29254 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29255 | if test "$have_openexr" = 'yes'; then | 
|  | 29256 | OPENEXR_DELEGATE_TRUE= | 
|  | 29257 | OPENEXR_DELEGATE_FALSE='#' | 
|  | 29258 | else | 
|  | 29259 | OPENEXR_DELEGATE_TRUE='#' | 
|  | 29260 | OPENEXR_DELEGATE_FALSE= | 
|  | 29261 | fi | 
|  | 29262 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29263 |  | 
|  | 29264 |  | 
|  | 29265 |  | 
|  | 29266 |  | 
|  | 29267 | # | 
|  | 29268 | # Check for PNG delegate library. | 
|  | 29269 | # | 
|  | 29270 |  | 
|  | 29271 | # Check whether --with-png was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29272 | if test "${with_png+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29273 | withval=$with_png; with_png=$withval | 
|  | 29274 | else | 
|  | 29275 | with_png='yes' | 
|  | 29276 | fi | 
|  | 29277 |  | 
|  | 29278 |  | 
|  | 29279 | if test "$with_png" != 'yes'; then | 
|  | 29280 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " | 
|  | 29281 | fi | 
|  | 29282 |  | 
|  | 29283 | have_png='no' | 
|  | 29284 | PNG_LIBS='' | 
|  | 29285 | if test "$with_png" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29287 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29289 | $as_echo_n "checking for PNG... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29291 | $as_echo "" >&6; } | 
|  | 29292 | failed=0 | 
|  | 29293 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29294 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29295 | if test "x$ac_cv_header_png_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29296 | passed=`expr $passed + 1` | 
|  | 29297 | else | 
|  | 29298 | failed=`expr $failed + 1` | 
|  | 29299 | fi | 
|  | 29300 |  | 
|  | 29301 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29302 | { $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] | 29303 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29304 | if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29305 | $as_echo_n "(cached) " >&6 | 
|  | 29306 | else | 
|  | 29307 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29308 | LIBS="-lpng  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29310 | /* end confdefs.h.  */ | 
|  | 29311 |  | 
|  | 29312 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29313 | Use char because int might match the return type of a GCC | 
|  | 29314 | builtin and then its argument prototype would still apply.  */ | 
|  | 29315 | #ifdef __cplusplus | 
|  | 29316 | extern "C" | 
|  | 29317 | #endif | 
|  | 29318 | char png_get_io_ptr (); | 
|  | 29319 | int | 
|  | 29320 | main () | 
|  | 29321 | { | 
|  | 29322 | return png_get_io_ptr (); | 
|  | 29323 | ; | 
|  | 29324 | return 0; | 
|  | 29325 | } | 
|  | 29326 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29327 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29328 | ac_cv_lib_png_png_get_io_ptr=yes | 
|  | 29329 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29330 | ac_cv_lib_png_png_get_io_ptr=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29331 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29332 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29333 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29334 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29335 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29336 | { $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] | 29337 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29338 | if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29339 | passed=`expr $passed + 1` | 
|  | 29340 | else | 
|  | 29341 | failed=`expr $failed + 1` | 
|  | 29342 | fi | 
|  | 29343 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29344 | { $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] | 29345 | $as_echo_n "checking if PNG package is complete... " >&6; } | 
|  | 29346 | if test $passed -gt 0; then | 
|  | 29347 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29348 | { $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] | 29349 | $as_echo "no -- some components failed test" >&6; } | 
|  | 29350 | have_png='no (failed tests)' | 
|  | 29351 | else | 
|  | 29352 | PNG_LIBS='-lpng' | 
|  | 29353 | LIBS="$PNG_LIBS $LIBS" | 
|  | 29354 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29355 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29356 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29358 | $as_echo "yes" >&6; } | 
|  | 29359 | have_png='yes' | 
|  | 29360 | fi | 
|  | 29361 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29363 | $as_echo "no" >&6; } | 
|  | 29364 | fi | 
|  | 29365 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29366 | if test "$have_png" = 'yes'; then | 
|  | 29367 | PNG_DELEGATE_TRUE= | 
|  | 29368 | PNG_DELEGATE_FALSE='#' | 
|  | 29369 | else | 
|  | 29370 | PNG_DELEGATE_TRUE='#' | 
|  | 29371 | PNG_DELEGATE_FALSE= | 
|  | 29372 | fi | 
|  | 29373 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29374 |  | 
|  | 29375 |  | 
|  | 29376 |  | 
|  | 29377 | # | 
|  | 29378 | # Check for RSVG delegate library. | 
|  | 29379 | # | 
|  | 29380 |  | 
|  | 29381 | # Check whether --with-rsvg was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29382 | if test "${with_rsvg+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29383 | withval=$with_rsvg; with_rsvg=$withval | 
|  | 29384 | else | 
|  | 29385 | with_rsvg=$have_x | 
|  | 29386 | fi | 
|  | 29387 |  | 
|  | 29388 |  | 
|  | 29389 | if test "$with_rsvg" != 'yes'; then | 
|  | 29390 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " | 
|  | 29391 | fi | 
|  | 29392 |  | 
|  | 29393 | have_rsvg='no' | 
|  | 29394 | have_cairo='no' | 
|  | 29395 | RSVG_CFLAGS="" | 
|  | 29396 | RSVG_LIBS="" | 
|  | 29397 | RSVG_PKG="" | 
|  | 29398 | if test "x$with_rsvg" = "xyes"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29400 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29401 |  | 
|  | 29402 | pkg_failed=no | 
|  | 29403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 | 
|  | 29404 | $as_echo_n "checking for RSVG... " >&6; } | 
|  | 29405 |  | 
|  | 29406 | if test -n "$RSVG_CFLAGS"; then | 
|  | 29407 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" | 
|  | 29408 | elif test -n "$PKG_CONFIG"; then | 
|  | 29409 | if test -n "$PKG_CONFIG" && \ | 
|  | 29410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 | 
|  | 29411 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 | 
|  | 29412 | ac_status=$? | 
|  | 29413 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 29414 | test $ac_status = 0; }; then | 
|  | 29415 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` | 
|  | 29416 | else | 
|  | 29417 | pkg_failed=yes | 
|  | 29418 | fi | 
|  | 29419 | else | 
|  | 29420 | pkg_failed=untried | 
|  | 29421 | fi | 
|  | 29422 | if test -n "$RSVG_LIBS"; then | 
|  | 29423 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" | 
|  | 29424 | elif test -n "$PKG_CONFIG"; then | 
|  | 29425 | if test -n "$PKG_CONFIG" && \ | 
|  | 29426 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 | 
|  | 29427 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 | 
|  | 29428 | ac_status=$? | 
|  | 29429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 29430 | test $ac_status = 0; }; then | 
|  | 29431 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` | 
|  | 29432 | else | 
|  | 29433 | pkg_failed=yes | 
|  | 29434 | fi | 
|  | 29435 | else | 
|  | 29436 | pkg_failed=untried | 
|  | 29437 | fi | 
|  | 29438 |  | 
|  | 29439 |  | 
|  | 29440 |  | 
|  | 29441 | if test $pkg_failed = yes; then | 
|  | 29442 |  | 
|  | 29443 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 29444 | _pkg_short_errors_supported=yes | 
|  | 29445 | else | 
|  | 29446 | _pkg_short_errors_supported=no | 
|  | 29447 | fi | 
|  | 29448 | if test $_pkg_short_errors_supported = yes; then | 
|  | 29449 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` | 
|  | 29450 | else | 
|  | 29451 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` | 
|  | 29452 | fi | 
|  | 29453 | # Put the nasty error message in config.log where it belongs | 
|  | 29454 | echo "$RSVG_PKG_ERRORS" >&5 | 
|  | 29455 |  | 
|  | 29456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 29457 | $as_echo "no" >&6; } | 
|  | 29458 | have_rsvg=no | 
|  | 29459 | elif test $pkg_failed = untried; then | 
|  | 29460 | have_rsvg=no | 
|  | 29461 | else | 
|  | 29462 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS | 
|  | 29463 | RSVG_LIBS=$pkg_cv_RSVG_LIBS | 
|  | 29464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 29465 | $as_echo "yes" >&6; } | 
|  | 29466 | have_rsvg=yes | 
|  | 29467 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29469 | $as_echo "" >&6; } | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29470 |  | 
|  | 29471 | pkg_failed=no | 
|  | 29472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 | 
|  | 29473 | $as_echo_n "checking for CAIRO_SVG... " >&6; } | 
|  | 29474 |  | 
|  | 29475 | if test -n "$CAIRO_SVG_CFLAGS"; then | 
|  | 29476 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" | 
|  | 29477 | elif test -n "$PKG_CONFIG"; then | 
|  | 29478 | if test -n "$PKG_CONFIG" && \ | 
|  | 29479 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 | 
|  | 29480 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 | 
|  | 29481 | ac_status=$? | 
|  | 29482 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 29483 | test $ac_status = 0; }; then | 
|  | 29484 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` | 
|  | 29485 | else | 
|  | 29486 | pkg_failed=yes | 
|  | 29487 | fi | 
|  | 29488 | else | 
|  | 29489 | pkg_failed=untried | 
|  | 29490 | fi | 
|  | 29491 | if test -n "$CAIRO_SVG_LIBS"; then | 
|  | 29492 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" | 
|  | 29493 | elif test -n "$PKG_CONFIG"; then | 
|  | 29494 | if test -n "$PKG_CONFIG" && \ | 
|  | 29495 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 | 
|  | 29496 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 | 
|  | 29497 | ac_status=$? | 
|  | 29498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | 
|  | 29499 | test $ac_status = 0; }; then | 
|  | 29500 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` | 
|  | 29501 | else | 
|  | 29502 | pkg_failed=yes | 
|  | 29503 | fi | 
|  | 29504 | else | 
|  | 29505 | pkg_failed=untried | 
|  | 29506 | fi | 
|  | 29507 |  | 
|  | 29508 |  | 
|  | 29509 |  | 
|  | 29510 | if test $pkg_failed = yes; then | 
|  | 29511 |  | 
|  | 29512 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | 
|  | 29513 | _pkg_short_errors_supported=yes | 
|  | 29514 | else | 
|  | 29515 | _pkg_short_errors_supported=no | 
|  | 29516 | fi | 
|  | 29517 | if test $_pkg_short_errors_supported = yes; then | 
|  | 29518 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` | 
|  | 29519 | else | 
|  | 29520 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` | 
|  | 29521 | fi | 
|  | 29522 | # Put the nasty error message in config.log where it belongs | 
|  | 29523 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 | 
|  | 29524 |  | 
|  | 29525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 29526 | $as_echo "no" >&6; } | 
|  | 29527 | have_cairo=no | 
|  | 29528 | elif test $pkg_failed = untried; then | 
|  | 29529 | have_cairo=no | 
|  | 29530 | else | 
|  | 29531 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS | 
|  | 29532 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS | 
|  | 29533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 29534 | $as_echo "yes" >&6; } | 
|  | 29535 | have_cairo=yes | 
|  | 29536 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29538 | $as_echo "" >&6; } | 
|  | 29539 | fi | 
|  | 29540 |  | 
|  | 29541 | if test "$have_rsvg" = 'yes'; then | 
|  | 29542 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29543 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29544 |  | 
|  | 29545 | if test "$with_modules" = 'no'; then | 
|  | 29546 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" | 
|  | 29547 | fi | 
|  | 29548 | fi | 
|  | 29549 |  | 
|  | 29550 | if test "$have_cairo" = 'yes'; then | 
|  | 29551 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29552 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29553 |  | 
|  | 29554 | if test "$with_modules" = 'no'; then | 
|  | 29555 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" | 
|  | 29556 | fi | 
|  | 29557 | fi | 
|  | 29558 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29559 | if test "$have_rsvg" = 'yes'; then | 
|  | 29560 | RSVG_DELEGATE_TRUE= | 
|  | 29561 | RSVG_DELEGATE_FALSE='#' | 
|  | 29562 | else | 
|  | 29563 | RSVG_DELEGATE_TRUE='#' | 
|  | 29564 | RSVG_DELEGATE_FALSE= | 
|  | 29565 | fi | 
|  | 29566 |  | 
|  | 29567 | if test "$have_cairo" = 'yes'; then | 
|  | 29568 | CAIRO_DELEGATE_TRUE= | 
|  | 29569 | CAIRO_DELEGATE_FALSE='#' | 
|  | 29570 | else | 
|  | 29571 | CAIRO_DELEGATE_TRUE='#' | 
|  | 29572 | CAIRO_DELEGATE_FALSE= | 
|  | 29573 | fi | 
|  | 29574 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29575 |  | 
|  | 29576 |  | 
|  | 29577 |  | 
|  | 29578 |  | 
|  | 29579 | # | 
|  | 29580 | # Check for TIFF delegate library. | 
|  | 29581 | # | 
|  | 29582 |  | 
|  | 29583 | # Check whether --with-tiff was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29584 | if test "${with_tiff+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29585 | withval=$with_tiff; with_tiff=$withval | 
|  | 29586 | else | 
|  | 29587 | with_tiff='yes' | 
|  | 29588 | fi | 
|  | 29589 |  | 
|  | 29590 |  | 
|  | 29591 | if test "$with_tiff" != 'yes'; then | 
|  | 29592 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " | 
|  | 29593 | fi | 
|  | 29594 |  | 
|  | 29595 | have_tiff='no' | 
|  | 29596 | TIFF_LIBS='' | 
|  | 29597 | if test "$with_tiff" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29599 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29601 | $as_echo_n "checking for TIFF... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29603 | $as_echo "" >&6; } | 
|  | 29604 | failed=0 | 
|  | 29605 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29606 | ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29607 | if test "x$ac_cv_header_tiff_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29608 | passed=`expr $passed + 1` | 
|  | 29609 | else | 
|  | 29610 | failed=`expr $failed + 1` | 
|  | 29611 | fi | 
|  | 29612 |  | 
|  | 29613 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29614 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29615 | if test "x$ac_cv_header_tiffio_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29616 | passed=`expr $passed + 1` | 
|  | 29617 | else | 
|  | 29618 | failed=`expr $failed + 1` | 
|  | 29619 | fi | 
|  | 29620 |  | 
|  | 29621 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29623 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29624 | if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29625 | $as_echo_n "(cached) " >&6 | 
|  | 29626 | else | 
|  | 29627 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29628 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29630 | /* end confdefs.h.  */ | 
|  | 29631 |  | 
|  | 29632 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29633 | Use char because int might match the return type of a GCC | 
|  | 29634 | builtin and then its argument prototype would still apply.  */ | 
|  | 29635 | #ifdef __cplusplus | 
|  | 29636 | extern "C" | 
|  | 29637 | #endif | 
|  | 29638 | char TIFFOpen (); | 
|  | 29639 | int | 
|  | 29640 | main () | 
|  | 29641 | { | 
|  | 29642 | return TIFFOpen (); | 
|  | 29643 | ; | 
|  | 29644 | return 0; | 
|  | 29645 | } | 
|  | 29646 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29647 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29648 | ac_cv_lib_tiff_TIFFOpen=yes | 
|  | 29649 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29650 | ac_cv_lib_tiff_TIFFOpen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29651 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29652 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29653 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29654 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29655 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29656 | { $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] | 29657 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29658 | if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29659 | passed=`expr $passed + 1` | 
|  | 29660 | else | 
|  | 29661 | failed=`expr $failed + 1` | 
|  | 29662 | fi | 
|  | 29663 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29665 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29666 | if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29667 | $as_echo_n "(cached) " >&6 | 
|  | 29668 | else | 
|  | 29669 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29670 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29672 | /* end confdefs.h.  */ | 
|  | 29673 |  | 
|  | 29674 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29675 | Use char because int might match the return type of a GCC | 
|  | 29676 | builtin and then its argument prototype would still apply.  */ | 
|  | 29677 | #ifdef __cplusplus | 
|  | 29678 | extern "C" | 
|  | 29679 | #endif | 
|  | 29680 | char TIFFClientOpen (); | 
|  | 29681 | int | 
|  | 29682 | main () | 
|  | 29683 | { | 
|  | 29684 | return TIFFClientOpen (); | 
|  | 29685 | ; | 
|  | 29686 | return 0; | 
|  | 29687 | } | 
|  | 29688 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29689 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29690 | ac_cv_lib_tiff_TIFFClientOpen=yes | 
|  | 29691 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29692 | ac_cv_lib_tiff_TIFFClientOpen=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29693 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29694 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29695 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29696 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29697 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29698 | { $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] | 29699 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29700 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29701 | passed=`expr $passed + 1` | 
|  | 29702 | else | 
|  | 29703 | failed=`expr $failed + 1` | 
|  | 29704 | fi | 
|  | 29705 |  | 
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 29706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5 | 
|  | 29707 | $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29708 | if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then : | 
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 29709 | $as_echo_n "(cached) " >&6 | 
|  | 29710 | else | 
|  | 29711 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29712 | LIBS="-ltiff  $LIBS" | 
|  | 29713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 29714 | /* end confdefs.h.  */ | 
|  | 29715 |  | 
|  | 29716 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29717 | Use char because int might match the return type of a GCC | 
|  | 29718 | builtin and then its argument prototype would still apply.  */ | 
|  | 29719 | #ifdef __cplusplus | 
|  | 29720 | extern "C" | 
|  | 29721 | #endif | 
|  | 29722 | char TIFFIsBigEndian (); | 
|  | 29723 | int | 
|  | 29724 | main () | 
|  | 29725 | { | 
|  | 29726 | return TIFFIsBigEndian (); | 
|  | 29727 | ; | 
|  | 29728 | return 0; | 
|  | 29729 | } | 
|  | 29730 | _ACEOF | 
|  | 29731 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 29732 | ac_cv_lib_tiff_TIFFIsBigEndian=yes | 
|  | 29733 | else | 
|  | 29734 | ac_cv_lib_tiff_TIFFIsBigEndian=no | 
|  | 29735 | fi | 
|  | 29736 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29737 | conftest$ac_exeext conftest.$ac_ext | 
|  | 29738 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29739 | fi | 
|  | 29740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5 | 
|  | 29741 | $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29742 | if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then : | 
| cristy | b97f100 | 2010-07-26 14:02:57 +0000 | [diff] [blame] | 29743 | passed=`expr $passed + 1` | 
|  | 29744 | else | 
|  | 29745 | failed=`expr $failed + 1` | 
|  | 29746 | fi | 
|  | 29747 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29749 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29750 | if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29751 | $as_echo_n "(cached) " >&6 | 
|  | 29752 | else | 
|  | 29753 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29754 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29756 | /* end confdefs.h.  */ | 
|  | 29757 |  | 
|  | 29758 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29759 | Use char because int might match the return type of a GCC | 
|  | 29760 | builtin and then its argument prototype would still apply.  */ | 
|  | 29761 | #ifdef __cplusplus | 
|  | 29762 | extern "C" | 
|  | 29763 | #endif | 
|  | 29764 | char TIFFIsByteSwapped (); | 
|  | 29765 | int | 
|  | 29766 | main () | 
|  | 29767 | { | 
|  | 29768 | return TIFFIsByteSwapped (); | 
|  | 29769 | ; | 
|  | 29770 | return 0; | 
|  | 29771 | } | 
|  | 29772 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29773 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29774 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes | 
|  | 29775 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29776 | ac_cv_lib_tiff_TIFFIsByteSwapped=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29777 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29778 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29779 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29780 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29781 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29782 | { $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] | 29783 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29784 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29785 | passed=`expr $passed + 1` | 
|  | 29786 | else | 
|  | 29787 | failed=`expr $failed + 1` | 
|  | 29788 | fi | 
|  | 29789 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29791 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29792 | if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29793 | $as_echo_n "(cached) " >&6 | 
|  | 29794 | else | 
|  | 29795 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29796 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29798 | /* end confdefs.h.  */ | 
|  | 29799 |  | 
|  | 29800 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29801 | Use char because int might match the return type of a GCC | 
|  | 29802 | builtin and then its argument prototype would still apply.  */ | 
|  | 29803 | #ifdef __cplusplus | 
|  | 29804 | extern "C" | 
|  | 29805 | #endif | 
|  | 29806 | char TIFFReadRGBATile (); | 
|  | 29807 | int | 
|  | 29808 | main () | 
|  | 29809 | { | 
|  | 29810 | return TIFFReadRGBATile (); | 
|  | 29811 | ; | 
|  | 29812 | return 0; | 
|  | 29813 | } | 
|  | 29814 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29815 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29816 | ac_cv_lib_tiff_TIFFReadRGBATile=yes | 
|  | 29817 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29818 | ac_cv_lib_tiff_TIFFReadRGBATile=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29819 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29820 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29821 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29822 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29823 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29824 | { $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] | 29825 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29826 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29827 | passed=`expr $passed + 1` | 
|  | 29828 | else | 
|  | 29829 | failed=`expr $failed + 1` | 
|  | 29830 | fi | 
|  | 29831 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29833 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29834 | if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29835 | $as_echo_n "(cached) " >&6 | 
|  | 29836 | else | 
|  | 29837 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29838 | LIBS="-ltiff  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29840 | /* end confdefs.h.  */ | 
|  | 29841 |  | 
|  | 29842 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29843 | Use char because int might match the return type of a GCC | 
|  | 29844 | builtin and then its argument prototype would still apply.  */ | 
|  | 29845 | #ifdef __cplusplus | 
|  | 29846 | extern "C" | 
|  | 29847 | #endif | 
|  | 29848 | char TIFFReadRGBAStrip (); | 
|  | 29849 | int | 
|  | 29850 | main () | 
|  | 29851 | { | 
|  | 29852 | return TIFFReadRGBAStrip (); | 
|  | 29853 | ; | 
|  | 29854 | return 0; | 
|  | 29855 | } | 
|  | 29856 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29857 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29858 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes | 
|  | 29859 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29860 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29861 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29862 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29863 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29864 | LIBS=$ac_check_lib_save_LIBS | 
|  | 29865 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29866 | { $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] | 29867 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29868 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29869 | passed=`expr $passed + 1` | 
|  | 29870 | else | 
|  | 29871 | failed=`expr $failed + 1` | 
|  | 29872 | fi | 
|  | 29873 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29874 | { $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] | 29875 | $as_echo_n "checking if TIFF package is complete... " >&6; } | 
|  | 29876 | if test $passed -gt 0; then | 
|  | 29877 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29878 | { $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] | 29879 | $as_echo "no -- some components failed test" >&6; } | 
|  | 29880 | have_tiff='no (failed tests)' | 
|  | 29881 | else | 
|  | 29882 | TIFF_LIBS='-ltiff' | 
|  | 29883 | LIBS="$TIFF_LIBS $LIBS" | 
|  | 29884 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29885 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29886 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29888 | $as_echo "yes" >&6; } | 
|  | 29889 | have_tiff='yes' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29890 | for ac_header in tiffconf.h | 
|  | 29891 | do : | 
|  | 29892 | ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29893 | if test "x$ac_cv_header_tiffconf_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29894 | cat >>confdefs.h <<_ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29895 | #define HAVE_TIFFCONF_H 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29896 | _ACEOF | 
|  | 29897 |  | 
|  | 29898 | fi | 
|  | 29899 |  | 
|  | 29900 | done | 
|  | 29901 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29902 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29903 | TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \ | 
|  | 29904 | TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29905 | do : | 
|  | 29906 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | 
|  | 29907 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 29908 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29909 | cat >>confdefs.h <<_ACEOF | 
|  | 29910 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 
|  | 29911 | _ACEOF | 
|  | 29912 |  | 
|  | 29913 | fi | 
|  | 29914 | done | 
|  | 29915 |  | 
|  | 29916 | fi | 
|  | 29917 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29919 | $as_echo "no" >&6; } | 
|  | 29920 | fi | 
|  | 29921 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29922 | if test "$have_tiff" = 'yes'; then | 
|  | 29923 | TIFF_DELEGATE_TRUE= | 
|  | 29924 | TIFF_DELEGATE_FALSE='#' | 
|  | 29925 | else | 
|  | 29926 | TIFF_DELEGATE_TRUE='#' | 
|  | 29927 | TIFF_DELEGATE_FALSE= | 
|  | 29928 | fi | 
|  | 29929 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29930 |  | 
|  | 29931 |  | 
|  | 29932 |  | 
|  | 29933 | # | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 29934 | # Check for WEBP delegate library. | 
|  | 29935 | # | 
|  | 29936 |  | 
|  | 29937 | # Check whether --with-webp was given. | 
|  | 29938 | if test "${with_webp+set}" = set; then : | 
|  | 29939 | withval=$with_webp; with_webp=$withval | 
|  | 29940 | else | 
|  | 29941 | with_webp='yes' | 
|  | 29942 | fi | 
|  | 29943 |  | 
|  | 29944 |  | 
|  | 29945 | if test "$with_webp" != 'yes'; then | 
|  | 29946 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " | 
|  | 29947 | fi | 
|  | 29948 |  | 
|  | 29949 | have_webp='no' | 
|  | 29950 | WEBP_LIBS='' | 
|  | 29951 | if test "$with_webp" != 'no'; then | 
|  | 29952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
|  | 29953 | $as_echo "-------------------------------------------------------------" >&6; } | 
|  | 29954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 | 
|  | 29955 | $as_echo_n "checking for WEBP... " >&6; } | 
|  | 29956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
|  | 29957 | $as_echo "" >&6; } | 
|  | 29958 | failed=0 | 
|  | 29959 | passed=0 | 
|  | 29960 | ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" | 
|  | 29961 | if test "x$ac_cv_header_webp_decode_h" = xyes; then : | 
|  | 29962 | passed=`expr $passed + 1` | 
|  | 29963 | else | 
|  | 29964 | failed=`expr $failed + 1` | 
|  | 29965 | fi | 
|  | 29966 |  | 
|  | 29967 |  | 
|  | 29968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5 | 
|  | 29969 | $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; } | 
|  | 29970 | if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then : | 
|  | 29971 | $as_echo_n "(cached) " >&6 | 
|  | 29972 | else | 
|  | 29973 | ac_check_lib_save_LIBS=$LIBS | 
|  | 29974 | LIBS="-lwebp  $LIBS" | 
|  | 29975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
|  | 29976 | /* end confdefs.h.  */ | 
|  | 29977 |  | 
|  | 29978 | /* Override any GCC internal prototype to avoid an error. | 
|  | 29979 | Use char because int might match the return type of a GCC | 
|  | 29980 | builtin and then its argument prototype would still apply.  */ | 
|  | 29981 | #ifdef __cplusplus | 
|  | 29982 | extern "C" | 
|  | 29983 | #endif | 
|  | 29984 | char WebPDecodeRGB (); | 
|  | 29985 | int | 
|  | 29986 | main () | 
|  | 29987 | { | 
|  | 29988 | return WebPDecodeRGB (); | 
|  | 29989 | ; | 
|  | 29990 | return 0; | 
|  | 29991 | } | 
|  | 29992 | _ACEOF | 
|  | 29993 | if ac_fn_c_try_link "$LINENO"; then : | 
|  | 29994 | ac_cv_lib_webp_WebPDecodeRGB=yes | 
|  | 29995 | else | 
|  | 29996 | ac_cv_lib_webp_WebPDecodeRGB=no | 
|  | 29997 | fi | 
|  | 29998 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 29999 | conftest$ac_exeext conftest.$ac_ext | 
|  | 30000 | LIBS=$ac_check_lib_save_LIBS | 
|  | 30001 | fi | 
|  | 30002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5 | 
|  | 30003 | $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; } | 
|  | 30004 | if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then : | 
|  | 30005 | passed=`expr $passed + 1` | 
|  | 30006 | else | 
|  | 30007 | failed=`expr $failed + 1` | 
|  | 30008 | fi | 
|  | 30009 |  | 
|  | 30010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 | 
|  | 30011 | $as_echo_n "checking if WEBP package is complete... " >&6; } | 
|  | 30012 | if test $passed -gt 0; then | 
|  | 30013 | if test $failed -gt 0; then | 
|  | 30014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
|  | 30015 | $as_echo "no -- some components failed test" >&6; } | 
|  | 30016 | have_webp='no (failed tests)' | 
|  | 30017 | else | 
|  | 30018 | WEBP_LIBS='-lwebp' | 
|  | 30019 | LIBS="$WEBP_LIBS $LIBS" | 
|  | 30020 |  | 
|  | 30021 | $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h | 
|  | 30022 |  | 
|  | 30023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
|  | 30024 | $as_echo "yes" >&6; } | 
|  | 30025 | have_webp='yes' | 
|  | 30026 | fi | 
|  | 30027 | else | 
|  | 30028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 30029 | $as_echo "no" >&6; } | 
|  | 30030 | fi | 
|  | 30031 | fi | 
|  | 30032 | if test "$have_webp" = 'yes'; then | 
|  | 30033 | WEBP_DELEGATE_TRUE= | 
|  | 30034 | WEBP_DELEGATE_FALSE='#' | 
|  | 30035 | else | 
|  | 30036 | WEBP_DELEGATE_TRUE='#' | 
|  | 30037 | WEBP_DELEGATE_FALSE= | 
|  | 30038 | fi | 
|  | 30039 |  | 
|  | 30040 |  | 
|  | 30041 |  | 
|  | 30042 |  | 
|  | 30043 | # | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30044 | # Set Windows font directory. | 
|  | 30045 | # | 
|  | 30046 |  | 
|  | 30047 | # Check whether --with-windows-font-dir was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30048 | if test "${with_windows_font_dir+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30049 | withval=$with_windows_font_dir; with_windows_font_dir=$withval | 
|  | 30050 | else | 
|  | 30051 | with_windows_font_dir='' | 
|  | 30052 | fi | 
|  | 30053 |  | 
|  | 30054 | if test "$with_windows_font_dir" != '' ; then | 
|  | 30055 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " | 
|  | 30056 | fi | 
|  | 30057 |  | 
|  | 30058 |  | 
|  | 30059 | # | 
|  | 30060 | # Check for WMF delegate library. | 
|  | 30061 | # | 
|  | 30062 |  | 
|  | 30063 | # Check whether --with-wmf was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30064 | if test "${with_wmf+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30065 | withval=$with_wmf; with_wmf=$withval | 
|  | 30066 | else | 
| cristy | 8d63d1d | 2010-01-06 20:38:37 +0000 | [diff] [blame] | 30067 | with_wmf='yes' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30068 | fi | 
|  | 30069 |  | 
|  | 30070 |  | 
|  | 30071 | if test "$with_wmf" != 'yes'; then | 
|  | 30072 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " | 
|  | 30073 | fi | 
|  | 30074 |  | 
|  | 30075 | have_wmf='no' | 
|  | 30076 | WMF_LIBS='' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30077 | if test "$with_wmf" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30079 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30081 | $as_echo_n "checking for WMF... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30083 | $as_echo "" >&6; } | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30084 | failed=0 | 
|  | 30085 | passed=0 | 
|  | 30086 | ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30087 | if test "x$ac_cv_header_libwmf_eps_h" = xyes; then : | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30088 | passed=`expr $passed + 1` | 
|  | 30089 | else | 
|  | 30090 | failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30091 | fi | 
|  | 30092 |  | 
|  | 30093 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5 | 
|  | 30095 | $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30096 | if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30097 | $as_echo_n "(cached) " >&6 | 
|  | 30098 | else | 
|  | 30099 | ac_check_lib_save_LIBS=$LIBS | 
| cristy | 2265236 | 2010-04-02 23:22:31 +0000 | [diff] [blame] | 30100 | LIBS="-lwmf "-lwmflite" $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30102 | /* end confdefs.h.  */ | 
|  | 30103 |  | 
|  | 30104 | /* Override any GCC internal prototype to avoid an error. | 
|  | 30105 | Use char because int might match the return type of a GCC | 
|  | 30106 | builtin and then its argument prototype would still apply.  */ | 
|  | 30107 | #ifdef __cplusplus | 
|  | 30108 | extern "C" | 
|  | 30109 | #endif | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30110 | char wmf_eps_function (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30111 | int | 
|  | 30112 | main () | 
|  | 30113 | { | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30114 | return wmf_eps_function (); | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30115 | ; | 
|  | 30116 | return 0; | 
|  | 30117 | } | 
|  | 30118 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30119 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30120 | ac_cv_lib_wmf_wmf_eps_function=yes | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30121 | else | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30122 | ac_cv_lib_wmf_wmf_eps_function=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30123 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30124 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 30125 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30126 | LIBS=$ac_check_lib_save_LIBS | 
|  | 30127 | fi | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5 | 
|  | 30129 | $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30130 | if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then : | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30131 | passed=`expr $passed + 1` | 
|  | 30132 | else | 
|  | 30133 | failed=`expr $failed + 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30134 | fi | 
|  | 30135 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 | 
|  | 30137 | $as_echo_n "checking if WMF package is complete... " >&6; } | 
|  | 30138 | if test $passed -gt 0; then | 
|  | 30139 | if test $failed -gt 0; then | 
|  | 30140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 | 
|  | 30141 | $as_echo "no -- some components failed test" >&6; } | 
|  | 30142 | have_wmf='no (failed tests)' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30143 | else | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30144 | WMF_LIBS='-lwmf -lwmflite' | 
|  | 30145 | LIBS="$WMF_LIBS $LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30146 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30147 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30148 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30150 | $as_echo "yes" >&6; } | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30151 | have_wmf='yes' | 
|  | 30152 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30153 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30155 | $as_echo "no" >&6; } | 
|  | 30156 | fi | 
|  | 30157 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30158 | if test "$have_wmf" = 'yes'; then | 
|  | 30159 | WMF_DELEGATE_TRUE= | 
|  | 30160 | WMF_DELEGATE_FALSE='#' | 
|  | 30161 | else | 
|  | 30162 | WMF_DELEGATE_TRUE='#' | 
|  | 30163 | WMF_DELEGATE_FALSE= | 
|  | 30164 | fi | 
|  | 30165 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30166 |  | 
|  | 30167 |  | 
|  | 30168 |  | 
|  | 30169 |  | 
| cristy | 735e894 | 2010-04-02 20:32:57 +0000 | [diff] [blame] | 30170 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30171 | # | 
|  | 30172 | # Check for XML delegate library. | 
|  | 30173 | # | 
|  | 30174 |  | 
|  | 30175 | # Check whether --with-xml was given. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30176 | if test "${with_xml+set}" = set; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30177 | withval=$with_xml; with_xml=$withval | 
|  | 30178 | else | 
|  | 30179 | with_xml=$have_x | 
|  | 30180 | fi | 
|  | 30181 |  | 
|  | 30182 |  | 
|  | 30183 | if test "$with_xml" != 'yes' ; then | 
|  | 30184 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " | 
|  | 30185 | fi | 
|  | 30186 |  | 
|  | 30187 | have_xml='no' | 
|  | 30188 | XML_LIBS='' | 
|  | 30189 | if test "$with_xml" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30191 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30193 | $as_echo_n "checking for XML... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30195 | $as_echo "" >&6; } | 
|  | 30196 | PERSIST_LDFLAGS=$LDFLAGS | 
|  | 30197 | PERSIST_CPPFLAGS=$CPPFLAGS | 
|  | 30198 | xml2_config='' | 
|  | 30199 | for ac_prog in xml2-config | 
|  | 30200 | do | 
|  | 30201 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 30202 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30204 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30205 | if ${ac_cv_prog_xml2_config+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30206 | $as_echo_n "(cached) " >&6 | 
|  | 30207 | else | 
|  | 30208 | if test -n "$xml2_config"; then | 
|  | 30209 | ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test. | 
|  | 30210 | else | 
|  | 30211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30212 | for as_dir in $PATH | 
|  | 30213 | do | 
|  | 30214 | IFS=$as_save_IFS | 
|  | 30215 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30216 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30218 | ac_cv_prog_xml2_config="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30219 | $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] | 30220 | break 2 | 
|  | 30221 | fi | 
|  | 30222 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30223 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30224 | IFS=$as_save_IFS | 
|  | 30225 |  | 
|  | 30226 | fi | 
|  | 30227 | fi | 
|  | 30228 | xml2_config=$ac_cv_prog_xml2_config | 
|  | 30229 | if test -n "$xml2_config"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30231 | $as_echo "$xml2_config" >&6; } | 
|  | 30232 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30234 | $as_echo "no" >&6; } | 
|  | 30235 | fi | 
|  | 30236 |  | 
|  | 30237 |  | 
|  | 30238 | test -n "$xml2_config" && break | 
|  | 30239 | done | 
|  | 30240 | if test -n "$xml2_config"; then | 
|  | 30241 | # Debian installs libxml headers under /usr/include/libxml2/libxml with | 
|  | 30242 | # the shared library installed under /usr/lib, whereas the package | 
|  | 30243 | # installs itself under $prefix/libxml and $prefix/lib. | 
|  | 30244 | xml2_prefix=`xml2-config --prefix` | 
|  | 30245 | if test -d "${xml2_prefix}/include/libxml2"; then | 
|  | 30246 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" | 
|  | 30247 | fi | 
|  | 30248 | if test "${xml2_prefix}" != '/usr'; then | 
|  | 30249 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" | 
|  | 30250 | fi | 
|  | 30251 | fi | 
|  | 30252 | failed=0 | 
|  | 30253 | passed=0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30254 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30255 | if test "x$ac_cv_header_libxml_parser_h" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30256 | passed=`expr $passed + 1` | 
|  | 30257 | else | 
|  | 30258 | failed=`expr $failed + 1` | 
|  | 30259 | fi | 
|  | 30260 |  | 
|  | 30261 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30263 | $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30264 | if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30265 | $as_echo_n "(cached) " >&6 | 
|  | 30266 | else | 
|  | 30267 | ac_check_lib_save_LIBS=$LIBS | 
|  | 30268 | LIBS="-lxml2  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30270 | /* end confdefs.h.  */ | 
|  | 30271 |  | 
|  | 30272 | /* Override any GCC internal prototype to avoid an error. | 
|  | 30273 | Use char because int might match the return type of a GCC | 
|  | 30274 | builtin and then its argument prototype would still apply.  */ | 
|  | 30275 | #ifdef __cplusplus | 
|  | 30276 | extern "C" | 
|  | 30277 | #endif | 
|  | 30278 | char xmlParseExternalEntity (); | 
|  | 30279 | int | 
|  | 30280 | main () | 
|  | 30281 | { | 
|  | 30282 | return xmlParseExternalEntity (); | 
|  | 30283 | ; | 
|  | 30284 | return 0; | 
|  | 30285 | } | 
|  | 30286 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30287 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30288 | ac_cv_lib_xml2_xmlParseExternalEntity=yes | 
|  | 30289 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30290 | ac_cv_lib_xml2_xmlParseExternalEntity=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30291 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30292 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 30293 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30294 | LIBS=$ac_check_lib_save_LIBS | 
|  | 30295 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30296 | { $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] | 30297 | $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30298 | if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30299 | passed=`expr $passed + 1` | 
|  | 30300 | else | 
|  | 30301 | failed=`expr $failed + 1` | 
|  | 30302 | fi | 
|  | 30303 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30304 | { $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] | 30305 | $as_echo_n "checking if XML package is complete... " >&6; } | 
|  | 30306 | if test $passed -gt 0; then | 
|  | 30307 | if test $failed -gt 0; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30308 | { $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] | 30309 | $as_echo "no -- some components failed test" >&6; } | 
|  | 30310 | have_xml='no (failed tests)' | 
|  | 30311 | LDFLAGS="$PERSIST_LDFLAGS" | 
|  | 30312 | CPPFLAGS="$PERSIST_CPPFLAGS" | 
|  | 30313 | else | 
|  | 30314 | XML_LIBS='-lxml2' | 
|  | 30315 | LIBS="$XML_LIBS $LIBS" | 
|  | 30316 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30317 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30318 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30320 | $as_echo "yes" >&6; } | 
|  | 30321 | have_xml='yes' | 
|  | 30322 | fi | 
|  | 30323 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30325 | $as_echo "no" >&6; } | 
|  | 30326 | fi | 
|  | 30327 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30328 | if test "$have_xml" = 'yes'; then | 
|  | 30329 | XML_DELEGATE_TRUE= | 
|  | 30330 | XML_DELEGATE_FALSE='#' | 
|  | 30331 | else | 
|  | 30332 | XML_DELEGATE_TRUE='#' | 
|  | 30333 | XML_DELEGATE_FALSE= | 
|  | 30334 | fi | 
|  | 30335 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30336 |  | 
|  | 30337 |  | 
|  | 30338 |  | 
|  | 30339 | # Substitute compiler name to build/link PerlMagick | 
|  | 30340 | # | 
|  | 30341 |  | 
|  | 30342 |  | 
|  | 30343 | # | 
|  | 30344 | # Configure install Paths | 
|  | 30345 | # | 
|  | 30346 |  | 
|  | 30347 | # Subdirectory under lib to place ImageMagick lib files | 
|  | 30348 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" | 
|  | 30349 |  | 
|  | 30350 | cat >>confdefs.h <<_ACEOF | 
|  | 30351 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" | 
|  | 30352 | _ACEOF | 
|  | 30353 |  | 
|  | 30354 |  | 
|  | 30355 | # Path to ImageMagick bin directory | 
|  | 30356 | EXECUTABLE_PATH="${BIN_DIR}" | 
|  | 30357 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" | 
|  | 30358 | case "${build_os}" in | 
|  | 30359 | mingw* ) | 
|  | 30360 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` | 
|  | 30361 | ;; | 
|  | 30362 | esac | 
|  | 30363 |  | 
|  | 30364 | cat >>confdefs.h <<_ACEOF | 
|  | 30365 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" | 
|  | 30366 | _ACEOF | 
|  | 30367 |  | 
|  | 30368 |  | 
|  | 30369 |  | 
|  | 30370 | # Path to ImageMagick lib | 
|  | 30371 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" | 
|  | 30372 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" | 
|  | 30373 | case "${build_os}" in | 
|  | 30374 | mingw* ) | 
|  | 30375 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` | 
|  | 30376 | ;; | 
|  | 30377 | esac | 
|  | 30378 |  | 
|  | 30379 | cat >>confdefs.h <<_ACEOF | 
|  | 30380 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" | 
|  | 30381 | _ACEOF | 
|  | 30382 |  | 
|  | 30383 |  | 
|  | 30384 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30385 | # | 
|  | 30386 | # Subdirectory under lib to place ImageMagick coder module files | 
|  | 30387 | CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders" | 
|  | 30388 |  | 
|  | 30389 | cat >>confdefs.h <<_ACEOF | 
|  | 30390 | #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH" | 
|  | 30391 | _ACEOF | 
|  | 30392 |  | 
|  | 30393 | CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}" | 
|  | 30394 | DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/" | 
|  | 30395 | case "${build_os}" in | 
|  | 30396 | mingw* ) | 
|  | 30397 | DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1` | 
|  | 30398 | ;; | 
|  | 30399 | esac | 
|  | 30400 |  | 
|  | 30401 | cat >>confdefs.h <<_ACEOF | 
|  | 30402 | #define CODER_PATH "$DEFINE_CODER_PATH" | 
|  | 30403 | _ACEOF | 
|  | 30404 |  | 
|  | 30405 |  | 
|  | 30406 |  | 
|  | 30407 | # | 
|  | 30408 | # Subdirectory under lib to place ImageMagick filter module files | 
|  | 30409 | FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters" | 
|  | 30410 |  | 
|  | 30411 | cat >>confdefs.h <<_ACEOF | 
|  | 30412 | #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH" | 
|  | 30413 | _ACEOF | 
|  | 30414 |  | 
|  | 30415 | FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}" | 
|  | 30416 | DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/" | 
|  | 30417 | case "${build_os}" in | 
|  | 30418 | mingw* ) | 
|  | 30419 | DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1` | 
|  | 30420 | ;; | 
|  | 30421 | esac | 
|  | 30422 |  | 
|  | 30423 | cat >>confdefs.h <<_ACEOF | 
|  | 30424 | #define FILTER_PATH "$DEFINE_FILTER_PATH" | 
|  | 30425 | _ACEOF | 
|  | 30426 |  | 
|  | 30427 |  | 
|  | 30428 |  | 
|  | 30429 | # | 
|  | 30430 | # Path to ImageMagick documentation files | 
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 30431 | DOCUMENTATION_RELATIVE_PATH="" | 
|  | 30432 | DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" | 
|  | 30433 | DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30434 | case "${build_os}" in | 
|  | 30435 | mingw* ) | 
|  | 30436 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` | 
|  | 30437 | ;; | 
|  | 30438 | esac | 
|  | 30439 |  | 
|  | 30440 | cat >>confdefs.h <<_ACEOF | 
|  | 30441 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" | 
|  | 30442 | _ACEOF | 
|  | 30443 |  | 
|  | 30444 |  | 
|  | 30445 |  | 
| cristy | 3cf8a72 | 2011-03-20 23:32:22 +0000 | [diff] [blame] | 30446 | # Subdirectory to place ImageMagick configuration files | 
| cristy | ba0f197 | 2011-03-28 12:42:52 +0000 | [diff] [blame] | 30447 | CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}" | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 30448 |  | 
|  | 30449 | cat >>confdefs.h <<_ACEOF | 
|  | 30450 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" | 
|  | 30451 | _ACEOF | 
|  | 30452 |  | 
|  | 30453 | CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" | 
|  | 30454 | DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" | 
|  | 30455 | case "${build_os}" in | 
|  | 30456 | mingw* ) | 
|  | 30457 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` | 
|  | 30458 | ;; | 
|  | 30459 | esac | 
|  | 30460 |  | 
|  | 30461 | cat >>confdefs.h <<_ACEOF | 
|  | 30462 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" | 
|  | 30463 | _ACEOF | 
|  | 30464 |  | 
|  | 30465 |  | 
|  | 30466 |  | 
|  | 30467 | # Subdirectory to place ImageMagick configuration files | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 30468 | SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30469 |  | 
|  | 30470 | cat >>confdefs.h <<_ACEOF | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 30471 | #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30472 | _ACEOF | 
|  | 30473 |  | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 30474 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" | 
|  | 30475 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30476 | case "${build_os}" in | 
|  | 30477 | mingw* ) | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 30478 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30479 | ;; | 
|  | 30480 | esac | 
|  | 30481 |  | 
|  | 30482 | cat >>confdefs.h <<_ACEOF | 
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame^] | 30483 | #define SHARE_PATH "$DEFINE_SHARE_PATH" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30484 | _ACEOF | 
|  | 30485 |  | 
|  | 30486 |  | 
|  | 30487 |  | 
|  | 30488 | # | 
|  | 30489 | # program_transform_name is formed for use in a Makefile, so create a | 
|  | 30490 | # modified version for use in a shell script. | 
|  | 30491 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` | 
|  | 30492 |  | 
|  | 30493 | # Default delegate definitions | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30495 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30497 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30499 | $as_echo "" >&6; } | 
|  | 30500 | AutotraceDecodeDelegateDefault='autotrace' | 
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 30501 | BlenderDecodeDelegateDefault='blender' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30502 | BZIPDelegateDefault='bzip2' | 
|  | 30503 | BrowseDelegateDefault='xdg-open' | 
|  | 30504 | CGMDecodeDelegateDefault='ralcgm' | 
|  | 30505 | CatDelegateDefault='cat' | 
|  | 30506 | DNGDecodeDelegateDefault='ufraw-batch' | 
|  | 30507 | GVCDecodeDelegateDefault='dot' | 
|  | 30508 | DVIDecodeDelegateDefault='dvips' | 
|  | 30509 | EchoDelegateDefault='echo' | 
|  | 30510 | EditorDelegateDefault='xterm' | 
|  | 30511 | FIGDecodeDelegateDefault='fig2dev' | 
|  | 30512 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` | 
|  | 30513 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` | 
|  | 30514 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` | 
|  | 30515 | GnuplotDecodeDelegateDefault='gnuplot' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30516 | HPGLDecodeDelegateDefault='hp2xx' | 
|  | 30517 | HTMLDecodeDelegateDefault='html2ps' | 
|  | 30518 | ILBMDecodeDelegateDefault='ilbmtoppm' | 
|  | 30519 | ILBMEncodeDelegateDefault='ppmtoilbm' | 
|  | 30520 | LPDelegateDefault='lp' | 
|  | 30521 | LPRDelegateDefault='lpr' | 
|  | 30522 | LZWDecodeDelegateDefault='uncompress' | 
|  | 30523 | LZWEncodeDelegateDefault='compress' | 
|  | 30524 | LaunchDelegateDefault='gimp' | 
|  | 30525 | MANDelegateDefault='groff' | 
|  | 30526 | MPEGDecodeDelegateDefault='ffmpeg' | 
|  | 30527 | MPEGEncodeDelegateDefault='ffmpeg' | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 30528 | MrSIDDecodeDelegateDefault='mrsidgeodecode' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30529 | MVDelegateDefault='mv' | 
|  | 30530 | PCLDelegateDefault='pcl6' | 
|  | 30531 | PGPDecodeDelegateDefault='pgpv' | 
|  | 30532 | POVDelegateDefault='povray' | 
|  | 30533 | if test "$native_win32_build" = 'yes'; then | 
|  | 30534 | PSDelegateDefault='gswin32c' | 
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 30535 | elif test "$gslib_framework" = 'yes'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30536 | PSDelegateDefault='gsc' | 
|  | 30537 | else | 
|  | 30538 | PSDelegateDefault='gs' | 
|  | 30539 | fi | 
|  | 30540 | RLEEncodeDelegateDefault='rawtorle' | 
|  | 30541 | RMDelegateDefault='rm' | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 30542 | RSVGDecodeDelegateDefault='rsvg' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30543 | SCANDecodeDelegateDefault='scanimage' | 
|  | 30544 | TXTDelegateDefault='enscript' | 
| cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 30545 | UniconvertorDelegateDefault='uniconvertor' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30546 | WMFDecodeDelegateDefault='wmf2eps' | 
|  | 30547 | WWWDecodeDelegateDefault='curl' | 
|  | 30548 | XPSDelegateDefault='gxps' | 
|  | 30549 | ZipDelegateDefault='gzip' | 
|  | 30550 |  | 
|  | 30551 | # Search for delegates | 
|  | 30552 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30553 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30555 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30556 | if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30557 | $as_echo_n "(cached) " >&6 | 
|  | 30558 | else | 
|  | 30559 | case $AutotraceDecodeDelegate in | 
|  | 30560 | [\\/]* | ?:[\\/]*) | 
|  | 30561 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. | 
|  | 30562 | ;; | 
|  | 30563 | *) | 
|  | 30564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30565 | for as_dir in $PATH | 
|  | 30566 | do | 
|  | 30567 | IFS=$as_save_IFS | 
|  | 30568 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30569 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30571 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30572 | $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] | 30573 | break 2 | 
|  | 30574 | fi | 
|  | 30575 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30576 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30577 | IFS=$as_save_IFS | 
|  | 30578 |  | 
|  | 30579 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" | 
|  | 30580 | ;; | 
|  | 30581 | esac | 
|  | 30582 | fi | 
|  | 30583 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate | 
|  | 30584 | if test -n "$AutotraceDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30586 | $as_echo "$AutotraceDecodeDelegate" >&6; } | 
|  | 30587 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30589 | $as_echo "no" >&6; } | 
|  | 30590 | fi | 
|  | 30591 |  | 
|  | 30592 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30593 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30594 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30596 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30597 | if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30598 | $as_echo_n "(cached) " >&6 | 
|  | 30599 | else | 
|  | 30600 | case $BlenderDecodeDelegate in | 
|  | 30601 | [\\/]* | ?:[\\/]*) | 
|  | 30602 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. | 
|  | 30603 | ;; | 
|  | 30604 | *) | 
|  | 30605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30606 | for as_dir in $PATH | 
|  | 30607 | do | 
|  | 30608 | IFS=$as_save_IFS | 
|  | 30609 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30610 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30612 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30613 | $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] | 30614 | break 2 | 
|  | 30615 | fi | 
|  | 30616 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30617 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30618 | IFS=$as_save_IFS | 
|  | 30619 |  | 
|  | 30620 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" | 
|  | 30621 | ;; | 
|  | 30622 | esac | 
|  | 30623 | fi | 
|  | 30624 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate | 
|  | 30625 | if test -n "$BlenderDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30627 | $as_echo "$BlenderDecodeDelegate" >&6; } | 
|  | 30628 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30630 | $as_echo "no" >&6; } | 
|  | 30631 | fi | 
|  | 30632 |  | 
|  | 30633 |  | 
|  | 30634 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. | 
|  | 30635 | set dummy "$BZIPDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30637 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30638 | if ${ac_cv_path_BZIPDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30639 | $as_echo_n "(cached) " >&6 | 
|  | 30640 | else | 
|  | 30641 | case $BZIPDelegate in | 
|  | 30642 | [\\/]* | ?:[\\/]*) | 
|  | 30643 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. | 
|  | 30644 | ;; | 
|  | 30645 | *) | 
|  | 30646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30647 | for as_dir in $PATH | 
|  | 30648 | do | 
|  | 30649 | IFS=$as_save_IFS | 
|  | 30650 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30651 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30653 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30654 | $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] | 30655 | break 2 | 
|  | 30656 | fi | 
|  | 30657 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30658 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30659 | IFS=$as_save_IFS | 
|  | 30660 |  | 
|  | 30661 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" | 
|  | 30662 | ;; | 
|  | 30663 | esac | 
|  | 30664 | fi | 
|  | 30665 | BZIPDelegate=$ac_cv_path_BZIPDelegate | 
|  | 30666 | if test -n "$BZIPDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30668 | $as_echo "$BZIPDelegate" >&6; } | 
|  | 30669 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30671 | $as_echo "no" >&6; } | 
|  | 30672 | fi | 
|  | 30673 |  | 
|  | 30674 |  | 
|  | 30675 | # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args. | 
|  | 30676 | set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30678 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30679 | if ${ac_cv_path_BrowseDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30680 | $as_echo_n "(cached) " >&6 | 
|  | 30681 | else | 
|  | 30682 | case $BrowseDelegate in | 
|  | 30683 | [\\/]* | ?:[\\/]*) | 
|  | 30684 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. | 
|  | 30685 | ;; | 
|  | 30686 | *) | 
|  | 30687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30688 | for as_dir in $PATH | 
|  | 30689 | do | 
|  | 30690 | IFS=$as_save_IFS | 
|  | 30691 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30692 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30693 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30694 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30695 | $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] | 30696 | break 2 | 
|  | 30697 | fi | 
|  | 30698 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30699 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30700 | IFS=$as_save_IFS | 
|  | 30701 |  | 
|  | 30702 | test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault"" | 
|  | 30703 | ;; | 
|  | 30704 | esac | 
|  | 30705 | fi | 
|  | 30706 | BrowseDelegate=$ac_cv_path_BrowseDelegate | 
|  | 30707 | if test -n "$BrowseDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30709 | $as_echo "$BrowseDelegate" >&6; } | 
|  | 30710 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30712 | $as_echo "no" >&6; } | 
|  | 30713 | fi | 
|  | 30714 |  | 
|  | 30715 |  | 
|  | 30716 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30717 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30719 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30720 | if ${ac_cv_path_CGMDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30721 | $as_echo_n "(cached) " >&6 | 
|  | 30722 | else | 
|  | 30723 | case $CGMDecodeDelegate in | 
|  | 30724 | [\\/]* | ?:[\\/]*) | 
|  | 30725 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. | 
|  | 30726 | ;; | 
|  | 30727 | *) | 
|  | 30728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30729 | for as_dir in $PATH | 
|  | 30730 | do | 
|  | 30731 | IFS=$as_save_IFS | 
|  | 30732 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30733 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30735 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30736 | $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] | 30737 | break 2 | 
|  | 30738 | fi | 
|  | 30739 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30740 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30741 | IFS=$as_save_IFS | 
|  | 30742 |  | 
|  | 30743 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" | 
|  | 30744 | ;; | 
|  | 30745 | esac | 
|  | 30746 | fi | 
|  | 30747 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate | 
|  | 30748 | if test -n "$CGMDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30750 | $as_echo "$CGMDecodeDelegate" >&6; } | 
|  | 30751 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30753 | $as_echo "no" >&6; } | 
|  | 30754 | fi | 
|  | 30755 |  | 
|  | 30756 |  | 
|  | 30757 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. | 
|  | 30758 | set dummy "$CatDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30760 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30761 | if ${ac_cv_path_CatDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30762 | $as_echo_n "(cached) " >&6 | 
|  | 30763 | else | 
|  | 30764 | case $CatDelegate in | 
|  | 30765 | [\\/]* | ?:[\\/]*) | 
|  | 30766 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. | 
|  | 30767 | ;; | 
|  | 30768 | *) | 
|  | 30769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30770 | for as_dir in $PATH | 
|  | 30771 | do | 
|  | 30772 | IFS=$as_save_IFS | 
|  | 30773 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30774 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30776 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30777 | $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] | 30778 | break 2 | 
|  | 30779 | fi | 
|  | 30780 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30781 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30782 | IFS=$as_save_IFS | 
|  | 30783 |  | 
|  | 30784 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" | 
|  | 30785 | ;; | 
|  | 30786 | esac | 
|  | 30787 | fi | 
|  | 30788 | CatDelegate=$ac_cv_path_CatDelegate | 
|  | 30789 | if test -n "$CatDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30791 | $as_echo "$CatDelegate" >&6; } | 
|  | 30792 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30794 | $as_echo "no" >&6; } | 
|  | 30795 | fi | 
|  | 30796 |  | 
|  | 30797 |  | 
|  | 30798 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30799 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30801 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30802 | if ${ac_cv_path_DNGDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30803 | $as_echo_n "(cached) " >&6 | 
|  | 30804 | else | 
|  | 30805 | case $DNGDecodeDelegate in | 
|  | 30806 | [\\/]* | ?:[\\/]*) | 
|  | 30807 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. | 
|  | 30808 | ;; | 
|  | 30809 | *) | 
|  | 30810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30811 | for as_dir in $PATH | 
|  | 30812 | do | 
|  | 30813 | IFS=$as_save_IFS | 
|  | 30814 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30815 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30817 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30818 | $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] | 30819 | break 2 | 
|  | 30820 | fi | 
|  | 30821 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30822 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30823 | IFS=$as_save_IFS | 
|  | 30824 |  | 
|  | 30825 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" | 
|  | 30826 | ;; | 
|  | 30827 | esac | 
|  | 30828 | fi | 
|  | 30829 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate | 
|  | 30830 | if test -n "$DNGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30832 | $as_echo "$DNGDecodeDelegate" >&6; } | 
|  | 30833 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30835 | $as_echo "no" >&6; } | 
|  | 30836 | fi | 
|  | 30837 |  | 
|  | 30838 |  | 
|  | 30839 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30840 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30842 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30843 | if ${ac_cv_path_GVCDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30844 | $as_echo_n "(cached) " >&6 | 
|  | 30845 | else | 
|  | 30846 | case $GVCDecodeDelegate in | 
|  | 30847 | [\\/]* | ?:[\\/]*) | 
|  | 30848 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. | 
|  | 30849 | ;; | 
|  | 30850 | *) | 
|  | 30851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30852 | for as_dir in $PATH | 
|  | 30853 | do | 
|  | 30854 | IFS=$as_save_IFS | 
|  | 30855 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30856 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30858 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30859 | $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] | 30860 | break 2 | 
|  | 30861 | fi | 
|  | 30862 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30863 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30864 | IFS=$as_save_IFS | 
|  | 30865 |  | 
|  | 30866 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" | 
|  | 30867 | ;; | 
|  | 30868 | esac | 
|  | 30869 | fi | 
|  | 30870 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate | 
|  | 30871 | if test -n "$GVCDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30873 | $as_echo "$GVCDecodeDelegate" >&6; } | 
|  | 30874 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30876 | $as_echo "no" >&6; } | 
|  | 30877 | fi | 
|  | 30878 |  | 
|  | 30879 |  | 
|  | 30880 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 30881 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30883 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30884 | if ${ac_cv_path_DVIDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30885 | $as_echo_n "(cached) " >&6 | 
|  | 30886 | else | 
|  | 30887 | case $DVIDecodeDelegate in | 
|  | 30888 | [\\/]* | ?:[\\/]*) | 
|  | 30889 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. | 
|  | 30890 | ;; | 
|  | 30891 | *) | 
|  | 30892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30893 | for as_dir in $PATH | 
|  | 30894 | do | 
|  | 30895 | IFS=$as_save_IFS | 
|  | 30896 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30897 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30899 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30900 | $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] | 30901 | break 2 | 
|  | 30902 | fi | 
|  | 30903 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30904 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30905 | IFS=$as_save_IFS | 
|  | 30906 |  | 
|  | 30907 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" | 
|  | 30908 | ;; | 
|  | 30909 | esac | 
|  | 30910 | fi | 
|  | 30911 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate | 
|  | 30912 | if test -n "$DVIDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30914 | $as_echo "$DVIDecodeDelegate" >&6; } | 
|  | 30915 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30917 | $as_echo "no" >&6; } | 
|  | 30918 | fi | 
|  | 30919 |  | 
|  | 30920 |  | 
|  | 30921 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. | 
|  | 30922 | set dummy "$EchoDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30924 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30925 | if ${ac_cv_path_EchoDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30926 | $as_echo_n "(cached) " >&6 | 
|  | 30927 | else | 
|  | 30928 | case $EchoDelegate in | 
|  | 30929 | [\\/]* | ?:[\\/]*) | 
|  | 30930 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. | 
|  | 30931 | ;; | 
|  | 30932 | *) | 
|  | 30933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30934 | for as_dir in $PATH | 
|  | 30935 | do | 
|  | 30936 | IFS=$as_save_IFS | 
|  | 30937 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30938 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30940 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30941 | $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] | 30942 | break 2 | 
|  | 30943 | fi | 
|  | 30944 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30945 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30946 | IFS=$as_save_IFS | 
|  | 30947 |  | 
|  | 30948 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" | 
|  | 30949 | ;; | 
|  | 30950 | esac | 
|  | 30951 | fi | 
|  | 30952 | EchoDelegate=$ac_cv_path_EchoDelegate | 
|  | 30953 | if test -n "$EchoDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30955 | $as_echo "$EchoDelegate" >&6; } | 
|  | 30956 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30958 | $as_echo "no" >&6; } | 
|  | 30959 | fi | 
|  | 30960 |  | 
|  | 30961 |  | 
|  | 30962 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. | 
|  | 30963 | set dummy "$EditorDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30965 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30966 | if ${ac_cv_path_EditorDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30967 | $as_echo_n "(cached) " >&6 | 
|  | 30968 | else | 
|  | 30969 | case $EditorDelegate in | 
|  | 30970 | [\\/]* | ?:[\\/]*) | 
|  | 30971 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. | 
|  | 30972 | ;; | 
|  | 30973 | *) | 
|  | 30974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 30975 | for as_dir in $PATH | 
|  | 30976 | do | 
|  | 30977 | IFS=$as_save_IFS | 
|  | 30978 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30979 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 30981 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30982 | $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] | 30983 | break 2 | 
|  | 30984 | fi | 
|  | 30985 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30986 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30987 | IFS=$as_save_IFS | 
|  | 30988 |  | 
|  | 30989 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" | 
|  | 30990 | ;; | 
|  | 30991 | esac | 
|  | 30992 | fi | 
|  | 30993 | EditorDelegate=$ac_cv_path_EditorDelegate | 
|  | 30994 | if test -n "$EditorDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30996 | $as_echo "$EditorDelegate" >&6; } | 
|  | 30997 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30999 | $as_echo "no" >&6; } | 
|  | 31000 | fi | 
|  | 31001 |  | 
|  | 31002 |  | 
|  | 31003 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31004 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31006 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31007 | if ${ac_cv_path_FIGDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31008 | $as_echo_n "(cached) " >&6 | 
|  | 31009 | else | 
|  | 31010 | case $FIGDecodeDelegate in | 
|  | 31011 | [\\/]* | ?:[\\/]*) | 
|  | 31012 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. | 
|  | 31013 | ;; | 
|  | 31014 | *) | 
|  | 31015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31016 | for as_dir in $PATH | 
|  | 31017 | do | 
|  | 31018 | IFS=$as_save_IFS | 
|  | 31019 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31020 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31022 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31023 | $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] | 31024 | break 2 | 
|  | 31025 | fi | 
|  | 31026 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31027 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31028 | IFS=$as_save_IFS | 
|  | 31029 |  | 
|  | 31030 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" | 
|  | 31031 | ;; | 
|  | 31032 | esac | 
|  | 31033 | fi | 
|  | 31034 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate | 
|  | 31035 | if test -n "$FIGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31037 | $as_echo "$FIGDecodeDelegate" >&6; } | 
|  | 31038 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31040 | $as_echo "no" >&6; } | 
|  | 31041 | fi | 
|  | 31042 |  | 
|  | 31043 |  | 
|  | 31044 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. | 
|  | 31045 | set dummy "$ConvertDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31047 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31048 | if ${ac_cv_path_ConvertDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31049 | $as_echo_n "(cached) " >&6 | 
|  | 31050 | else | 
|  | 31051 | case $ConvertDelegate in | 
|  | 31052 | [\\/]* | ?:[\\/]*) | 
|  | 31053 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. | 
|  | 31054 | ;; | 
|  | 31055 | *) | 
|  | 31056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31057 | for as_dir in $PATH | 
|  | 31058 | do | 
|  | 31059 | IFS=$as_save_IFS | 
|  | 31060 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31061 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31063 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31064 | $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] | 31065 | break 2 | 
|  | 31066 | fi | 
|  | 31067 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31068 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31069 | IFS=$as_save_IFS | 
|  | 31070 |  | 
|  | 31071 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" | 
|  | 31072 | ;; | 
|  | 31073 | esac | 
|  | 31074 | fi | 
|  | 31075 | ConvertDelegate=$ac_cv_path_ConvertDelegate | 
|  | 31076 | if test -n "$ConvertDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31078 | $as_echo "$ConvertDelegate" >&6; } | 
|  | 31079 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31081 | $as_echo "no" >&6; } | 
|  | 31082 | fi | 
|  | 31083 |  | 
|  | 31084 |  | 
|  | 31085 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. | 
|  | 31086 | set dummy "$DisplayDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31088 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31089 | if ${ac_cv_path_DisplayDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31090 | $as_echo_n "(cached) " >&6 | 
|  | 31091 | else | 
|  | 31092 | case $DisplayDelegate in | 
|  | 31093 | [\\/]* | ?:[\\/]*) | 
|  | 31094 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. | 
|  | 31095 | ;; | 
|  | 31096 | *) | 
|  | 31097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31098 | for as_dir in $PATH | 
|  | 31099 | do | 
|  | 31100 | IFS=$as_save_IFS | 
|  | 31101 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31102 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31104 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31105 | $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] | 31106 | break 2 | 
|  | 31107 | fi | 
|  | 31108 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31109 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31110 | IFS=$as_save_IFS | 
|  | 31111 |  | 
|  | 31112 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" | 
|  | 31113 | ;; | 
|  | 31114 | esac | 
|  | 31115 | fi | 
|  | 31116 | DisplayDelegate=$ac_cv_path_DisplayDelegate | 
|  | 31117 | if test -n "$DisplayDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31119 | $as_echo "$DisplayDelegate" >&6; } | 
|  | 31120 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31122 | $as_echo "no" >&6; } | 
|  | 31123 | fi | 
|  | 31124 |  | 
|  | 31125 |  | 
|  | 31126 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. | 
|  | 31127 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31129 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31130 | if ${ac_cv_path_MogrifyDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31131 | $as_echo_n "(cached) " >&6 | 
|  | 31132 | else | 
|  | 31133 | case $MogrifyDelegate in | 
|  | 31134 | [\\/]* | ?:[\\/]*) | 
|  | 31135 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. | 
|  | 31136 | ;; | 
|  | 31137 | *) | 
|  | 31138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31139 | for as_dir in $PATH | 
|  | 31140 | do | 
|  | 31141 | IFS=$as_save_IFS | 
|  | 31142 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31143 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31145 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31146 | $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] | 31147 | break 2 | 
|  | 31148 | fi | 
|  | 31149 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31150 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31151 | IFS=$as_save_IFS | 
|  | 31152 |  | 
|  | 31153 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" | 
|  | 31154 | ;; | 
|  | 31155 | esac | 
|  | 31156 | fi | 
|  | 31157 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate | 
|  | 31158 | if test -n "$MogrifyDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31160 | $as_echo "$MogrifyDelegate" >&6; } | 
|  | 31161 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31163 | $as_echo "no" >&6; } | 
|  | 31164 | fi | 
|  | 31165 |  | 
|  | 31166 |  | 
|  | 31167 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31168 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31170 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31171 | if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31172 | $as_echo_n "(cached) " >&6 | 
|  | 31173 | else | 
|  | 31174 | case $GnuplotDecodeDelegate in | 
|  | 31175 | [\\/]* | ?:[\\/]*) | 
|  | 31176 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. | 
|  | 31177 | ;; | 
|  | 31178 | *) | 
|  | 31179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31180 | for as_dir in $PATH | 
|  | 31181 | do | 
|  | 31182 | IFS=$as_save_IFS | 
|  | 31183 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31184 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31186 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31187 | $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] | 31188 | break 2 | 
|  | 31189 | fi | 
|  | 31190 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31191 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31192 | IFS=$as_save_IFS | 
|  | 31193 |  | 
|  | 31194 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" | 
|  | 31195 | ;; | 
|  | 31196 | esac | 
|  | 31197 | fi | 
|  | 31198 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate | 
|  | 31199 | if test -n "$GnuplotDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31201 | $as_echo "$GnuplotDecodeDelegate" >&6; } | 
|  | 31202 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31204 | $as_echo "no" >&6; } | 
|  | 31205 | fi | 
|  | 31206 |  | 
|  | 31207 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31208 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31209 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31211 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31212 | if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31213 | $as_echo_n "(cached) " >&6 | 
|  | 31214 | else | 
|  | 31215 | case $HPGLDecodeDelegate in | 
|  | 31216 | [\\/]* | ?:[\\/]*) | 
|  | 31217 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. | 
|  | 31218 | ;; | 
|  | 31219 | *) | 
|  | 31220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31221 | for as_dir in $PATH | 
|  | 31222 | do | 
|  | 31223 | IFS=$as_save_IFS | 
|  | 31224 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31225 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31227 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31228 | $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] | 31229 | break 2 | 
|  | 31230 | fi | 
|  | 31231 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31232 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31233 | IFS=$as_save_IFS | 
|  | 31234 |  | 
|  | 31235 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" | 
|  | 31236 | ;; | 
|  | 31237 | esac | 
|  | 31238 | fi | 
|  | 31239 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate | 
|  | 31240 | if test -n "$HPGLDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31242 | $as_echo "$HPGLDecodeDelegate" >&6; } | 
|  | 31243 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31245 | $as_echo "no" >&6; } | 
|  | 31246 | fi | 
|  | 31247 |  | 
|  | 31248 |  | 
|  | 31249 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31250 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31252 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31253 | if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31254 | $as_echo_n "(cached) " >&6 | 
|  | 31255 | else | 
|  | 31256 | case $HTMLDecodeDelegate in | 
|  | 31257 | [\\/]* | ?:[\\/]*) | 
|  | 31258 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. | 
|  | 31259 | ;; | 
|  | 31260 | *) | 
|  | 31261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31262 | for as_dir in $PATH | 
|  | 31263 | do | 
|  | 31264 | IFS=$as_save_IFS | 
|  | 31265 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31266 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31268 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31269 | $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] | 31270 | break 2 | 
|  | 31271 | fi | 
|  | 31272 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31273 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31274 | IFS=$as_save_IFS | 
|  | 31275 |  | 
|  | 31276 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" | 
|  | 31277 | ;; | 
|  | 31278 | esac | 
|  | 31279 | fi | 
|  | 31280 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate | 
|  | 31281 | if test -n "$HTMLDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31283 | $as_echo "$HTMLDecodeDelegate" >&6; } | 
|  | 31284 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31286 | $as_echo "no" >&6; } | 
|  | 31287 | fi | 
|  | 31288 |  | 
|  | 31289 |  | 
|  | 31290 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31291 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31293 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31294 | if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31295 | $as_echo_n "(cached) " >&6 | 
|  | 31296 | else | 
|  | 31297 | case $ILBMDecodeDelegate in | 
|  | 31298 | [\\/]* | ?:[\\/]*) | 
|  | 31299 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. | 
|  | 31300 | ;; | 
|  | 31301 | *) | 
|  | 31302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31303 | for as_dir in $PATH | 
|  | 31304 | do | 
|  | 31305 | IFS=$as_save_IFS | 
|  | 31306 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31307 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31309 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31310 | $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] | 31311 | break 2 | 
|  | 31312 | fi | 
|  | 31313 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31314 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31315 | IFS=$as_save_IFS | 
|  | 31316 |  | 
|  | 31317 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" | 
|  | 31318 | ;; | 
|  | 31319 | esac | 
|  | 31320 | fi | 
|  | 31321 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate | 
|  | 31322 | if test -n "$ILBMDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31324 | $as_echo "$ILBMDecodeDelegate" >&6; } | 
|  | 31325 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31327 | $as_echo "no" >&6; } | 
|  | 31328 | fi | 
|  | 31329 |  | 
|  | 31330 |  | 
|  | 31331 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 31332 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31334 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31335 | if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31336 | $as_echo_n "(cached) " >&6 | 
|  | 31337 | else | 
|  | 31338 | case $ILBMEncodeDelegate in | 
|  | 31339 | [\\/]* | ?:[\\/]*) | 
|  | 31340 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. | 
|  | 31341 | ;; | 
|  | 31342 | *) | 
|  | 31343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31344 | for as_dir in $PATH | 
|  | 31345 | do | 
|  | 31346 | IFS=$as_save_IFS | 
|  | 31347 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31348 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31350 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31351 | $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] | 31352 | break 2 | 
|  | 31353 | fi | 
|  | 31354 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31355 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31356 | IFS=$as_save_IFS | 
|  | 31357 |  | 
|  | 31358 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" | 
|  | 31359 | ;; | 
|  | 31360 | esac | 
|  | 31361 | fi | 
|  | 31362 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate | 
|  | 31363 | if test -n "$ILBMEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31365 | $as_echo "$ILBMEncodeDelegate" >&6; } | 
|  | 31366 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31368 | $as_echo "no" >&6; } | 
|  | 31369 | fi | 
|  | 31370 |  | 
|  | 31371 |  | 
|  | 31372 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. | 
|  | 31373 | set dummy "$LPDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31375 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31376 | if ${ac_cv_path_LPDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31377 | $as_echo_n "(cached) " >&6 | 
|  | 31378 | else | 
|  | 31379 | case $LPDelegate in | 
|  | 31380 | [\\/]* | ?:[\\/]*) | 
|  | 31381 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. | 
|  | 31382 | ;; | 
|  | 31383 | *) | 
|  | 31384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31385 | for as_dir in $PATH | 
|  | 31386 | do | 
|  | 31387 | IFS=$as_save_IFS | 
|  | 31388 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31389 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31391 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31392 | $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] | 31393 | break 2 | 
|  | 31394 | fi | 
|  | 31395 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31396 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31397 | IFS=$as_save_IFS | 
|  | 31398 |  | 
|  | 31399 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" | 
|  | 31400 | ;; | 
|  | 31401 | esac | 
|  | 31402 | fi | 
|  | 31403 | LPDelegate=$ac_cv_path_LPDelegate | 
|  | 31404 | if test -n "$LPDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31406 | $as_echo "$LPDelegate" >&6; } | 
|  | 31407 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31409 | $as_echo "no" >&6; } | 
|  | 31410 | fi | 
|  | 31411 |  | 
|  | 31412 |  | 
|  | 31413 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. | 
|  | 31414 | set dummy "$LPRDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31416 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31417 | if ${ac_cv_path_LPRDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31418 | $as_echo_n "(cached) " >&6 | 
|  | 31419 | else | 
|  | 31420 | case $LPRDelegate in | 
|  | 31421 | [\\/]* | ?:[\\/]*) | 
|  | 31422 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. | 
|  | 31423 | ;; | 
|  | 31424 | *) | 
|  | 31425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31426 | for as_dir in $PATH | 
|  | 31427 | do | 
|  | 31428 | IFS=$as_save_IFS | 
|  | 31429 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31430 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31432 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31433 | $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] | 31434 | break 2 | 
|  | 31435 | fi | 
|  | 31436 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31437 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31438 | IFS=$as_save_IFS | 
|  | 31439 |  | 
|  | 31440 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" | 
|  | 31441 | ;; | 
|  | 31442 | esac | 
|  | 31443 | fi | 
|  | 31444 | LPRDelegate=$ac_cv_path_LPRDelegate | 
|  | 31445 | if test -n "$LPRDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31447 | $as_echo "$LPRDelegate" >&6; } | 
|  | 31448 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31450 | $as_echo "no" >&6; } | 
|  | 31451 | fi | 
|  | 31452 |  | 
|  | 31453 |  | 
|  | 31454 | # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31455 | set dummy "$LZWDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31457 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31458 | if ${ac_cv_path_LZWDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31459 | $as_echo_n "(cached) " >&6 | 
|  | 31460 | else | 
|  | 31461 | case $LZWDecodeDelegate in | 
|  | 31462 | [\\/]* | ?:[\\/]*) | 
|  | 31463 | ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path. | 
|  | 31464 | ;; | 
|  | 31465 | *) | 
|  | 31466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31467 | for as_dir in $PATH | 
|  | 31468 | do | 
|  | 31469 | IFS=$as_save_IFS | 
|  | 31470 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31471 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31473 | ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31474 | $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] | 31475 | break 2 | 
|  | 31476 | fi | 
|  | 31477 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31478 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31479 | IFS=$as_save_IFS | 
|  | 31480 |  | 
|  | 31481 | test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault"" | 
|  | 31482 | ;; | 
|  | 31483 | esac | 
|  | 31484 | fi | 
|  | 31485 | LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate | 
|  | 31486 | if test -n "$LZWDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31488 | $as_echo "$LZWDecodeDelegate" >&6; } | 
|  | 31489 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31491 | $as_echo "no" >&6; } | 
|  | 31492 | fi | 
|  | 31493 |  | 
|  | 31494 |  | 
|  | 31495 | # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 31496 | set dummy "$LZWEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31498 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31499 | if ${ac_cv_path_LZWEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31500 | $as_echo_n "(cached) " >&6 | 
|  | 31501 | else | 
|  | 31502 | case $LZWEncodeDelegate in | 
|  | 31503 | [\\/]* | ?:[\\/]*) | 
|  | 31504 | ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path. | 
|  | 31505 | ;; | 
|  | 31506 | *) | 
|  | 31507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31508 | for as_dir in $PATH | 
|  | 31509 | do | 
|  | 31510 | IFS=$as_save_IFS | 
|  | 31511 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31512 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31514 | ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31515 | $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] | 31516 | break 2 | 
|  | 31517 | fi | 
|  | 31518 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31519 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31520 | IFS=$as_save_IFS | 
|  | 31521 |  | 
|  | 31522 | test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault"" | 
|  | 31523 | ;; | 
|  | 31524 | esac | 
|  | 31525 | fi | 
|  | 31526 | LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate | 
|  | 31527 | if test -n "$LZWEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31529 | $as_echo "$LZWEncodeDelegate" >&6; } | 
|  | 31530 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31532 | $as_echo "no" >&6; } | 
|  | 31533 | fi | 
|  | 31534 |  | 
|  | 31535 |  | 
|  | 31536 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. | 
|  | 31537 | set dummy "$LaunchDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31539 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31540 | if ${ac_cv_path_LaunchDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31541 | $as_echo_n "(cached) " >&6 | 
|  | 31542 | else | 
|  | 31543 | case $LaunchDelegate in | 
|  | 31544 | [\\/]* | ?:[\\/]*) | 
|  | 31545 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. | 
|  | 31546 | ;; | 
|  | 31547 | *) | 
|  | 31548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31549 | for as_dir in $PATH | 
|  | 31550 | do | 
|  | 31551 | IFS=$as_save_IFS | 
|  | 31552 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31553 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31555 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31556 | $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] | 31557 | break 2 | 
|  | 31558 | fi | 
|  | 31559 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31560 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31561 | IFS=$as_save_IFS | 
|  | 31562 |  | 
|  | 31563 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" | 
|  | 31564 | ;; | 
|  | 31565 | esac | 
|  | 31566 | fi | 
|  | 31567 | LaunchDelegate=$ac_cv_path_LaunchDelegate | 
|  | 31568 | if test -n "$LaunchDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31570 | $as_echo "$LaunchDelegate" >&6; } | 
|  | 31571 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31573 | $as_echo "no" >&6; } | 
|  | 31574 | fi | 
|  | 31575 |  | 
|  | 31576 |  | 
|  | 31577 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. | 
|  | 31578 | set dummy "$MANDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31580 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31581 | if ${ac_cv_path_MANDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31582 | $as_echo_n "(cached) " >&6 | 
|  | 31583 | else | 
|  | 31584 | case $MANDelegate in | 
|  | 31585 | [\\/]* | ?:[\\/]*) | 
|  | 31586 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. | 
|  | 31587 | ;; | 
|  | 31588 | *) | 
|  | 31589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31590 | for as_dir in $PATH | 
|  | 31591 | do | 
|  | 31592 | IFS=$as_save_IFS | 
|  | 31593 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31594 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31596 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31597 | $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] | 31598 | break 2 | 
|  | 31599 | fi | 
|  | 31600 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31601 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31602 | IFS=$as_save_IFS | 
|  | 31603 |  | 
|  | 31604 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" | 
|  | 31605 | ;; | 
|  | 31606 | esac | 
|  | 31607 | fi | 
|  | 31608 | MANDelegate=$ac_cv_path_MANDelegate | 
|  | 31609 | if test -n "$MANDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31611 | $as_echo "$MANDelegate" >&6; } | 
|  | 31612 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31614 | $as_echo "no" >&6; } | 
|  | 31615 | fi | 
|  | 31616 |  | 
|  | 31617 |  | 
|  | 31618 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31619 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31621 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31622 | if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31623 | $as_echo_n "(cached) " >&6 | 
|  | 31624 | else | 
|  | 31625 | case $MPEGDecodeDelegate in | 
|  | 31626 | [\\/]* | ?:[\\/]*) | 
|  | 31627 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. | 
|  | 31628 | ;; | 
|  | 31629 | *) | 
|  | 31630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31631 | for as_dir in $PATH | 
|  | 31632 | do | 
|  | 31633 | IFS=$as_save_IFS | 
|  | 31634 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31635 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31637 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31638 | $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] | 31639 | break 2 | 
|  | 31640 | fi | 
|  | 31641 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31642 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31643 | IFS=$as_save_IFS | 
|  | 31644 |  | 
|  | 31645 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" | 
|  | 31646 | ;; | 
|  | 31647 | esac | 
|  | 31648 | fi | 
|  | 31649 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate | 
|  | 31650 | if test -n "$MPEGDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31652 | $as_echo "$MPEGDecodeDelegate" >&6; } | 
|  | 31653 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31655 | $as_echo "no" >&6; } | 
|  | 31656 | fi | 
|  | 31657 |  | 
|  | 31658 |  | 
|  | 31659 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 31660 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31662 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31663 | if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31664 | $as_echo_n "(cached) " >&6 | 
|  | 31665 | else | 
|  | 31666 | case $MPEGEncodeDelegate in | 
|  | 31667 | [\\/]* | ?:[\\/]*) | 
|  | 31668 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. | 
|  | 31669 | ;; | 
|  | 31670 | *) | 
|  | 31671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31672 | for as_dir in $PATH | 
|  | 31673 | do | 
|  | 31674 | IFS=$as_save_IFS | 
|  | 31675 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31676 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31678 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31679 | $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] | 31680 | break 2 | 
|  | 31681 | fi | 
|  | 31682 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31683 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31684 | IFS=$as_save_IFS | 
|  | 31685 |  | 
|  | 31686 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" | 
|  | 31687 | ;; | 
|  | 31688 | esac | 
|  | 31689 | fi | 
|  | 31690 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate | 
|  | 31691 | if test -n "$MPEGEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31693 | $as_echo "$MPEGEncodeDelegate" >&6; } | 
|  | 31694 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31696 | $as_echo "no" >&6; } | 
|  | 31697 | fi | 
|  | 31698 |  | 
|  | 31699 |  | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 31700 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31701 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 | 
|  | 31702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 31703 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31704 | if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 31705 | $as_echo_n "(cached) " >&6 | 
|  | 31706 | else | 
|  | 31707 | case $MrSIDDecodeDelegate in | 
|  | 31708 | [\\/]* | ?:[\\/]*) | 
|  | 31709 | ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. | 
|  | 31710 | ;; | 
|  | 31711 | *) | 
|  | 31712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31713 | for as_dir in $PATH | 
|  | 31714 | do | 
|  | 31715 | IFS=$as_save_IFS | 
|  | 31716 | test -z "$as_dir" && as_dir=. | 
|  | 31717 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 31718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31719 | ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
|  | 31720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 31721 | break 2 | 
|  | 31722 | fi | 
|  | 31723 | done | 
|  | 31724 | done | 
|  | 31725 | IFS=$as_save_IFS | 
|  | 31726 |  | 
|  | 31727 | test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" | 
|  | 31728 | ;; | 
|  | 31729 | esac | 
|  | 31730 | fi | 
|  | 31731 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate | 
|  | 31732 | if test -n "$MrSIDDecodeDelegate"; then | 
|  | 31733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 | 
|  | 31734 | $as_echo "$MrSIDDecodeDelegate" >&6; } | 
|  | 31735 | else | 
|  | 31736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 31737 | $as_echo "no" >&6; } | 
|  | 31738 | fi | 
|  | 31739 |  | 
|  | 31740 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31741 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. | 
|  | 31742 | set dummy "$MVDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31744 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31745 | if ${ac_cv_path_MVDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31746 | $as_echo_n "(cached) " >&6 | 
|  | 31747 | else | 
|  | 31748 | case $MVDelegate in | 
|  | 31749 | [\\/]* | ?:[\\/]*) | 
|  | 31750 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. | 
|  | 31751 | ;; | 
|  | 31752 | *) | 
|  | 31753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31754 | for as_dir in $PATH | 
|  | 31755 | do | 
|  | 31756 | IFS=$as_save_IFS | 
|  | 31757 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31758 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31760 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31761 | $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] | 31762 | break 2 | 
|  | 31763 | fi | 
|  | 31764 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31765 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31766 | IFS=$as_save_IFS | 
|  | 31767 |  | 
|  | 31768 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" | 
|  | 31769 | ;; | 
|  | 31770 | esac | 
|  | 31771 | fi | 
|  | 31772 | MVDelegate=$ac_cv_path_MVDelegate | 
|  | 31773 | if test -n "$MVDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31775 | $as_echo "$MVDelegate" >&6; } | 
|  | 31776 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31778 | $as_echo "no" >&6; } | 
|  | 31779 | fi | 
|  | 31780 |  | 
|  | 31781 |  | 
|  | 31782 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. | 
|  | 31783 | set dummy "$PCLDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31785 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31786 | if ${ac_cv_path_PCLDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31787 | $as_echo_n "(cached) " >&6 | 
|  | 31788 | else | 
|  | 31789 | case $PCLDelegate in | 
|  | 31790 | [\\/]* | ?:[\\/]*) | 
|  | 31791 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. | 
|  | 31792 | ;; | 
|  | 31793 | *) | 
|  | 31794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31795 | for as_dir in $PATH | 
|  | 31796 | do | 
|  | 31797 | IFS=$as_save_IFS | 
|  | 31798 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31799 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31801 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31802 | $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] | 31803 | break 2 | 
|  | 31804 | fi | 
|  | 31805 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31806 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31807 | IFS=$as_save_IFS | 
|  | 31808 |  | 
|  | 31809 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" | 
|  | 31810 | ;; | 
|  | 31811 | esac | 
|  | 31812 | fi | 
|  | 31813 | PCLDelegate=$ac_cv_path_PCLDelegate | 
|  | 31814 | if test -n "$PCLDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31816 | $as_echo "$PCLDelegate" >&6; } | 
|  | 31817 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31819 | $as_echo "no" >&6; } | 
|  | 31820 | fi | 
|  | 31821 |  | 
|  | 31822 |  | 
|  | 31823 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 31824 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31826 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31827 | if ${ac_cv_path_PGPDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31828 | $as_echo_n "(cached) " >&6 | 
|  | 31829 | else | 
|  | 31830 | case $PGPDecodeDelegate in | 
|  | 31831 | [\\/]* | ?:[\\/]*) | 
|  | 31832 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. | 
|  | 31833 | ;; | 
|  | 31834 | *) | 
|  | 31835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31836 | for as_dir in $PATH | 
|  | 31837 | do | 
|  | 31838 | IFS=$as_save_IFS | 
|  | 31839 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31840 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31842 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31843 | $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] | 31844 | break 2 | 
|  | 31845 | fi | 
|  | 31846 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31847 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31848 | IFS=$as_save_IFS | 
|  | 31849 |  | 
|  | 31850 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" | 
|  | 31851 | ;; | 
|  | 31852 | esac | 
|  | 31853 | fi | 
|  | 31854 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate | 
|  | 31855 | if test -n "$PGPDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31857 | $as_echo "$PGPDecodeDelegate" >&6; } | 
|  | 31858 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31860 | $as_echo "no" >&6; } | 
|  | 31861 | fi | 
|  | 31862 |  | 
|  | 31863 |  | 
|  | 31864 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. | 
|  | 31865 | set dummy "$POVDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31867 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31868 | if ${ac_cv_path_POVDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31869 | $as_echo_n "(cached) " >&6 | 
|  | 31870 | else | 
|  | 31871 | case $POVDelegate in | 
|  | 31872 | [\\/]* | ?:[\\/]*) | 
|  | 31873 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. | 
|  | 31874 | ;; | 
|  | 31875 | *) | 
|  | 31876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31877 | for as_dir in $PATH | 
|  | 31878 | do | 
|  | 31879 | IFS=$as_save_IFS | 
|  | 31880 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31881 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31883 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31884 | $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] | 31885 | break 2 | 
|  | 31886 | fi | 
|  | 31887 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31888 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31889 | IFS=$as_save_IFS | 
|  | 31890 |  | 
|  | 31891 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" | 
|  | 31892 | ;; | 
|  | 31893 | esac | 
|  | 31894 | fi | 
|  | 31895 | POVDelegate=$ac_cv_path_POVDelegate | 
|  | 31896 | if test -n "$POVDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31898 | $as_echo "$POVDelegate" >&6; } | 
|  | 31899 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31901 | $as_echo "no" >&6; } | 
|  | 31902 | fi | 
|  | 31903 |  | 
|  | 31904 |  | 
|  | 31905 | for ac_prog in gsx gsc "$PSDelegateDefault" | 
|  | 31906 | do | 
|  | 31907 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 31908 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31910 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31911 | if ${ac_cv_path_PSDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31912 | $as_echo_n "(cached) " >&6 | 
|  | 31913 | else | 
|  | 31914 | case $PSDelegate in | 
|  | 31915 | [\\/]* | ?:[\\/]*) | 
|  | 31916 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. | 
|  | 31917 | ;; | 
|  | 31918 | *) | 
|  | 31919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31920 | for as_dir in $PATH | 
|  | 31921 | do | 
|  | 31922 | IFS=$as_save_IFS | 
|  | 31923 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31924 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31925 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31926 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31927 | $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] | 31928 | break 2 | 
|  | 31929 | fi | 
|  | 31930 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31931 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31932 | IFS=$as_save_IFS | 
|  | 31933 |  | 
|  | 31934 | ;; | 
|  | 31935 | esac | 
|  | 31936 | fi | 
|  | 31937 | PSDelegate=$ac_cv_path_PSDelegate | 
|  | 31938 | if test -n "$PSDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31940 | $as_echo "$PSDelegate" >&6; } | 
|  | 31941 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31943 | $as_echo "no" >&6; } | 
|  | 31944 | fi | 
|  | 31945 |  | 
|  | 31946 |  | 
|  | 31947 | test -n "$PSDelegate" && break | 
|  | 31948 | done | 
|  | 31949 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" | 
|  | 31950 |  | 
|  | 31951 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. | 
|  | 31952 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31954 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31955 | if ${ac_cv_path_RLEEncodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31956 | $as_echo_n "(cached) " >&6 | 
|  | 31957 | else | 
|  | 31958 | case $RLEEncodeDelegate in | 
|  | 31959 | [\\/]* | ?:[\\/]*) | 
|  | 31960 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. | 
|  | 31961 | ;; | 
|  | 31962 | *) | 
|  | 31963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 31964 | for as_dir in $PATH | 
|  | 31965 | do | 
|  | 31966 | IFS=$as_save_IFS | 
|  | 31967 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31968 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31969 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 31970 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31971 | $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] | 31972 | break 2 | 
|  | 31973 | fi | 
|  | 31974 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31975 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31976 | IFS=$as_save_IFS | 
|  | 31977 |  | 
|  | 31978 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" | 
|  | 31979 | ;; | 
|  | 31980 | esac | 
|  | 31981 | fi | 
|  | 31982 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate | 
|  | 31983 | if test -n "$RLEEncodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31985 | $as_echo "$RLEEncodeDelegate" >&6; } | 
|  | 31986 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31988 | $as_echo "no" >&6; } | 
|  | 31989 | fi | 
|  | 31990 |  | 
|  | 31991 |  | 
|  | 31992 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. | 
|  | 31993 | set dummy "$RMDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31995 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31996 | if ${ac_cv_path_RMDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31997 | $as_echo_n "(cached) " >&6 | 
|  | 31998 | else | 
|  | 31999 | case $RMDelegate in | 
|  | 32000 | [\\/]* | ?:[\\/]*) | 
|  | 32001 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. | 
|  | 32002 | ;; | 
|  | 32003 | *) | 
|  | 32004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32005 | for as_dir in $PATH | 
|  | 32006 | do | 
|  | 32007 | IFS=$as_save_IFS | 
|  | 32008 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32009 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32010 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32011 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32012 | $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] | 32013 | break 2 | 
|  | 32014 | fi | 
|  | 32015 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32016 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32017 | IFS=$as_save_IFS | 
|  | 32018 |  | 
|  | 32019 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" | 
|  | 32020 | ;; | 
|  | 32021 | esac | 
|  | 32022 | fi | 
|  | 32023 | RMDelegate=$ac_cv_path_RMDelegate | 
|  | 32024 | if test -n "$RMDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32026 | $as_echo "$RMDelegate" >&6; } | 
|  | 32027 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32029 | $as_echo "no" >&6; } | 
|  | 32030 | fi | 
|  | 32031 |  | 
|  | 32032 |  | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 32033 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 32034 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 | 
|  | 32035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 32036 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32037 | if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 32038 | $as_echo_n "(cached) " >&6 | 
|  | 32039 | else | 
|  | 32040 | case $RSVGDecodeDelegate in | 
|  | 32041 | [\\/]* | ?:[\\/]*) | 
|  | 32042 | ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. | 
|  | 32043 | ;; | 
|  | 32044 | *) | 
|  | 32045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32046 | for as_dir in $PATH | 
|  | 32047 | do | 
|  | 32048 | IFS=$as_save_IFS | 
|  | 32049 | test -z "$as_dir" && as_dir=. | 
|  | 32050 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 32051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32052 | ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
|  | 32053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 32054 | break 2 | 
|  | 32055 | fi | 
|  | 32056 | done | 
|  | 32057 | done | 
|  | 32058 | IFS=$as_save_IFS | 
|  | 32059 |  | 
|  | 32060 | test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" | 
|  | 32061 | ;; | 
|  | 32062 | esac | 
|  | 32063 | fi | 
|  | 32064 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate | 
|  | 32065 | if test -n "$RSVGDecodeDelegate"; then | 
|  | 32066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 | 
|  | 32067 | $as_echo "$RSVGDecodeDelegate" >&6; } | 
|  | 32068 | else | 
|  | 32069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 32070 | $as_echo "no" >&6; } | 
|  | 32071 | fi | 
|  | 32072 |  | 
|  | 32073 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32074 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 32075 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32077 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32078 | if ${ac_cv_path_SCANDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32079 | $as_echo_n "(cached) " >&6 | 
|  | 32080 | else | 
|  | 32081 | case $SCANDecodeDelegate in | 
|  | 32082 | [\\/]* | ?:[\\/]*) | 
|  | 32083 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. | 
|  | 32084 | ;; | 
|  | 32085 | *) | 
|  | 32086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32087 | for as_dir in $PATH | 
|  | 32088 | do | 
|  | 32089 | IFS=$as_save_IFS | 
|  | 32090 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32091 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32093 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32094 | $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] | 32095 | break 2 | 
|  | 32096 | fi | 
|  | 32097 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32098 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32099 | IFS=$as_save_IFS | 
|  | 32100 |  | 
|  | 32101 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" | 
|  | 32102 | ;; | 
|  | 32103 | esac | 
|  | 32104 | fi | 
|  | 32105 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate | 
|  | 32106 | if test -n "$SCANDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32108 | $as_echo "$SCANDecodeDelegate" >&6; } | 
|  | 32109 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32111 | $as_echo "no" >&6; } | 
|  | 32112 | fi | 
|  | 32113 |  | 
|  | 32114 |  | 
|  | 32115 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. | 
|  | 32116 | set dummy "$TXTDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32118 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32119 | if ${ac_cv_path_TXTDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32120 | $as_echo_n "(cached) " >&6 | 
|  | 32121 | else | 
|  | 32122 | case $TXTDelegate in | 
|  | 32123 | [\\/]* | ?:[\\/]*) | 
|  | 32124 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. | 
|  | 32125 | ;; | 
|  | 32126 | *) | 
|  | 32127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32128 | for as_dir in $PATH | 
|  | 32129 | do | 
|  | 32130 | IFS=$as_save_IFS | 
|  | 32131 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32132 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32134 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32135 | $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] | 32136 | break 2 | 
|  | 32137 | fi | 
|  | 32138 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32139 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32140 | IFS=$as_save_IFS | 
|  | 32141 |  | 
|  | 32142 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" | 
|  | 32143 | ;; | 
|  | 32144 | esac | 
|  | 32145 | fi | 
|  | 32146 | TXTDelegate=$ac_cv_path_TXTDelegate | 
|  | 32147 | if test -n "$TXTDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32149 | $as_echo "$TXTDelegate" >&6; } | 
|  | 32150 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32152 | $as_echo "no" >&6; } | 
|  | 32153 | fi | 
|  | 32154 |  | 
|  | 32155 |  | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 32156 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. | 
|  | 32157 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 | 
|  | 32158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
|  | 32159 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32160 | if ${ac_cv_path_UniconvertorDelegate+:} false; then : | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 32161 | $as_echo_n "(cached) " >&6 | 
|  | 32162 | else | 
|  | 32163 | case $UniconvertorDelegate in | 
|  | 32164 | [\\/]* | ?:[\\/]*) | 
|  | 32165 | ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. | 
|  | 32166 | ;; | 
|  | 32167 | *) | 
|  | 32168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32169 | for as_dir in $PATH | 
|  | 32170 | do | 
|  | 32171 | IFS=$as_save_IFS | 
|  | 32172 | test -z "$as_dir" && as_dir=. | 
|  | 32173 | for ac_exec_ext in '' $ac_executable_extensions; do | 
|  | 32174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32175 | ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" | 
|  | 32176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | 
|  | 32177 | break 2 | 
|  | 32178 | fi | 
|  | 32179 | done | 
|  | 32180 | done | 
|  | 32181 | IFS=$as_save_IFS | 
|  | 32182 |  | 
|  | 32183 | test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" | 
|  | 32184 | ;; | 
|  | 32185 | esac | 
|  | 32186 | fi | 
|  | 32187 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate | 
|  | 32188 | if test -n "$UniconvertorDelegate"; then | 
|  | 32189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 | 
|  | 32190 | $as_echo "$UniconvertorDelegate" >&6; } | 
|  | 32191 | else | 
|  | 32192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
|  | 32193 | $as_echo "no" >&6; } | 
|  | 32194 | fi | 
|  | 32195 |  | 
|  | 32196 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32197 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 32198 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32200 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32201 | if ${ac_cv_path_WMFDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32202 | $as_echo_n "(cached) " >&6 | 
|  | 32203 | else | 
|  | 32204 | case $WMFDecodeDelegate in | 
|  | 32205 | [\\/]* | ?:[\\/]*) | 
|  | 32206 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. | 
|  | 32207 | ;; | 
|  | 32208 | *) | 
|  | 32209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32210 | for as_dir in $PATH | 
|  | 32211 | do | 
|  | 32212 | IFS=$as_save_IFS | 
|  | 32213 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32214 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32216 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32217 | $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] | 32218 | break 2 | 
|  | 32219 | fi | 
|  | 32220 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32221 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32222 | IFS=$as_save_IFS | 
|  | 32223 |  | 
|  | 32224 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" | 
|  | 32225 | ;; | 
|  | 32226 | esac | 
|  | 32227 | fi | 
|  | 32228 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate | 
|  | 32229 | if test -n "$WMFDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32231 | $as_echo "$WMFDecodeDelegate" >&6; } | 
|  | 32232 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32234 | $as_echo "no" >&6; } | 
|  | 32235 | fi | 
|  | 32236 |  | 
|  | 32237 |  | 
|  | 32238 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. | 
|  | 32239 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32241 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32242 | if ${ac_cv_path_WWWDecodeDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32243 | $as_echo_n "(cached) " >&6 | 
|  | 32244 | else | 
|  | 32245 | case $WWWDecodeDelegate in | 
|  | 32246 | [\\/]* | ?:[\\/]*) | 
|  | 32247 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. | 
|  | 32248 | ;; | 
|  | 32249 | *) | 
|  | 32250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32251 | for as_dir in $PATH | 
|  | 32252 | do | 
|  | 32253 | IFS=$as_save_IFS | 
|  | 32254 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32255 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32256 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32257 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32258 | $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] | 32259 | break 2 | 
|  | 32260 | fi | 
|  | 32261 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32262 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32263 | IFS=$as_save_IFS | 
|  | 32264 |  | 
|  | 32265 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" | 
|  | 32266 | ;; | 
|  | 32267 | esac | 
|  | 32268 | fi | 
|  | 32269 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate | 
|  | 32270 | if test -n "$WWWDecodeDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32272 | $as_echo "$WWWDecodeDelegate" >&6; } | 
|  | 32273 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32275 | $as_echo "no" >&6; } | 
|  | 32276 | fi | 
|  | 32277 |  | 
|  | 32278 |  | 
|  | 32279 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. | 
|  | 32280 | set dummy "$XPSDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32282 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32283 | if ${ac_cv_path_XPSDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32284 | $as_echo_n "(cached) " >&6 | 
|  | 32285 | else | 
|  | 32286 | case $XPSDelegate in | 
|  | 32287 | [\\/]* | ?:[\\/]*) | 
|  | 32288 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. | 
|  | 32289 | ;; | 
|  | 32290 | *) | 
|  | 32291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32292 | for as_dir in $PATH | 
|  | 32293 | do | 
|  | 32294 | IFS=$as_save_IFS | 
|  | 32295 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32296 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32298 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32299 | $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] | 32300 | break 2 | 
|  | 32301 | fi | 
|  | 32302 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32303 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32304 | IFS=$as_save_IFS | 
|  | 32305 |  | 
|  | 32306 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" | 
|  | 32307 | ;; | 
|  | 32308 | esac | 
|  | 32309 | fi | 
|  | 32310 | XPSDelegate=$ac_cv_path_XPSDelegate | 
|  | 32311 | if test -n "$XPSDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32313 | $as_echo "$XPSDelegate" >&6; } | 
|  | 32314 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32316 | $as_echo "no" >&6; } | 
|  | 32317 | fi | 
|  | 32318 |  | 
|  | 32319 |  | 
|  | 32320 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. | 
|  | 32321 | set dummy "$ZipDelegateDefault"; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32323 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32324 | if ${ac_cv_path_ZipDelegate+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32325 | $as_echo_n "(cached) " >&6 | 
|  | 32326 | else | 
|  | 32327 | case $ZipDelegate in | 
|  | 32328 | [\\/]* | ?:[\\/]*) | 
|  | 32329 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. | 
|  | 32330 | ;; | 
|  | 32331 | *) | 
|  | 32332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32333 | for as_dir in $PATH | 
|  | 32334 | do | 
|  | 32335 | IFS=$as_save_IFS | 
|  | 32336 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32337 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32339 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32340 | $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] | 32341 | break 2 | 
|  | 32342 | fi | 
|  | 32343 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32344 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32345 | IFS=$as_save_IFS | 
|  | 32346 |  | 
|  | 32347 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" | 
|  | 32348 | ;; | 
|  | 32349 | esac | 
|  | 32350 | fi | 
|  | 32351 | ZipDelegate=$ac_cv_path_ZipDelegate | 
|  | 32352 | if test -n "$ZipDelegate"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32354 | $as_echo "$ZipDelegate" >&6; } | 
|  | 32355 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32357 | $as_echo "no" >&6; } | 
|  | 32358 | fi | 
|  | 32359 |  | 
|  | 32360 |  | 
|  | 32361 |  | 
|  | 32362 | # Prefer lpr to lp; lp needs options tacked on. | 
|  | 32363 | if test "$LPRDelegate" != no; then | 
|  | 32364 | PrintDelegate="$LPRDelegate" | 
|  | 32365 | else | 
|  | 32366 | PrintDelegate="$LPDelegate -c -s" | 
|  | 32367 | fi | 
|  | 32368 |  | 
|  | 32369 |  | 
|  | 32370 | # Installed ImageMagick utiltity paths | 
|  | 32371 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" | 
|  | 32372 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" | 
|  | 32373 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" | 
|  | 32374 |  | 
|  | 32375 | # Set delegate booleans | 
|  | 32376 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi | 
|  | 32377 | have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi | 
|  | 32378 | have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi | 
|  | 32379 | have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi | 
|  | 32380 | have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32381 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32382 | have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi | 
|  | 32383 | have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32384 | have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi | 
|  | 32385 | have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi | 
|  | 32386 |  | 
|  | 32387 | # | 
|  | 32388 | # Test for font directories | 
|  | 32389 | # | 
|  | 32390 | type_include_files='' | 
|  | 32391 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 32392 | # Dejavu fonts. | 
|  | 32393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 | 
|  | 32394 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } | 
|  | 32395 | dejavu_font_dir='' | 
|  | 32396 | if test "${with_dejavu_font_dir}" != 'default'; then | 
|  | 32397 | dejavu_font_dir="${with_dejavu_font_dir}/" | 
|  | 32398 | else | 
|  | 32399 | for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do | 
|  | 32400 | if test -f "${font_dir}DejaVuSerif.ttf"; then | 
|  | 32401 | dejavu_font_dir="${font_dir}" | 
|  | 32402 | break 1 | 
|  | 32403 | fi | 
|  | 32404 | done | 
|  | 32405 | fi | 
|  | 32406 | if test "${dejavu_font_dir}x" != 'x'; then | 
|  | 32407 | type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' | 
|  | 32408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 | 
|  | 32409 | $as_echo "$dejavu_font_dir" >&6; } | 
|  | 32410 | else | 
|  | 32411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 | 
|  | 32412 | $as_echo "not found!" >&6; }; | 
|  | 32413 | fi | 
|  | 32414 |  | 
|  | 32415 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32416 | # Windows | 
|  | 32417 | windows_font_dir='' | 
|  | 32418 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then | 
|  | 32419 | windows_font_dir="${with_windows_font_dir}/" | 
|  | 32420 | fi | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 32421 | if test "${windows_font_dir}x" != 'x'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32422 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then | 
|  | 32423 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' | 
|  | 32424 | fi | 
|  | 32425 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then | 
|  | 32426 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' | 
|  | 32427 | fi | 
|  | 32428 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then | 
|  | 32429 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' | 
|  | 32430 | fi | 
|  | 32431 | fi | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 32432 | if test "${windows_font_dir}x" != 'x'; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32433 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' | 
|  | 32434 | fi | 
|  | 32435 |  | 
|  | 32436 |  | 
|  | 32437 | # Ghostscript | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32439 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } | 
|  | 32440 | ghostscript_font_dir='' | 
|  | 32441 | if test "${with_gs_font_dir}" != 'default'; then | 
|  | 32442 | ghostscript_font_dir="${with_gs_font_dir}/" | 
|  | 32443 | else | 
|  | 32444 | if test "${native_win32_build}" = 'yes'; then | 
|  | 32445 | # Native Windows Build | 
|  | 32446 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do | 
|  | 32447 | if test -f "${font_dir}a010013l.pfb"; then | 
|  | 32448 | ghostscript_font_dir="$font_dir" | 
|  | 32449 | break 1 | 
|  | 32450 | fi | 
|  | 32451 | done | 
|  | 32452 | if test "${PSDelegate}" != 'gswin32c'; then | 
|  | 32453 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" | 
|  | 32454 | fi | 
|  | 32455 | else | 
|  | 32456 | # Linux / Mac OS X / Unix Build | 
|  | 32457 | 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 | 
|  | 32458 | if test -f "${font_dir}a010013l.pfb"; then | 
|  | 32459 | ghostscript_font_dir="${font_dir}" | 
|  | 32460 | break 1 | 
|  | 32461 | fi | 
|  | 32462 | done | 
|  | 32463 | if test "${ghostscript_font_dir}x" = 'x'; then | 
|  | 32464 | if test "$PSDelegate" != 'gs'; then | 
|  | 32465 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" | 
|  | 32466 | fi | 
|  | 32467 | fi | 
|  | 32468 | fi | 
|  | 32469 | fi | 
|  | 32470 | if test "${ghostscript_font_dir}x" != 'x'; then | 
|  | 32471 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32473 | $as_echo "$ghostscript_font_dir" >&6; } | 
|  | 32474 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32476 | $as_echo "not found!" >&6; }; | 
|  | 32477 | fi | 
|  | 32478 |  | 
|  | 32479 | case "${build_os}" in | 
|  | 32480 | mingw* ) | 
|  | 32481 | PSDelegate=`$WinPathScript "$PSDelegate" 1` | 
|  | 32482 | ;; | 
|  | 32483 | esac | 
|  | 32484 |  | 
|  | 32485 |  | 
|  | 32486 |  | 
|  | 32487 | # | 
|  | 32488 | # Handle case where user doesn't want frozen paths | 
|  | 32489 | # | 
|  | 32490 | if test "$with_frozenpaths" != 'yes'; then | 
|  | 32491 | # Re-set delegate definitions to default (no paths) | 
|  | 32492 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32493 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" | 
|  | 32494 | BZIPDelegate="$BZIPDelegateDefault" | 
|  | 32495 | BrowseDelegate="$BrowseDelegateDefault" | 
|  | 32496 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" | 
|  | 32497 | CatDelegate="$CatDelegateDefault" | 
|  | 32498 | ConvertDelegate="$ConvertDelegateDefault" | 
|  | 32499 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" | 
|  | 32500 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" | 
|  | 32501 | EchoDelegate="$EchoDelegateDefault" | 
|  | 32502 | EditorDelegate="$EditorDelegateDefault" | 
|  | 32503 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" | 
|  | 32504 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" | 
|  | 32505 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" | 
|  | 32506 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" | 
|  | 32507 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" | 
|  | 32508 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" | 
|  | 32509 | LPDelegate="$LPDelegateDefault" | 
|  | 32510 | LZWDecodeDelegate="$LZWDecodeDelegateDefault" | 
|  | 32511 | LZWEncodeDelegate="$LZWEncodeDelegateDefault" | 
|  | 32512 | LaunchDelegate="$LaunchDelegateDefault" | 
|  | 32513 | MANDelegate="$MANDelegateDefault" | 
|  | 32514 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" | 
|  | 32515 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32516 | MogrifyDelegate="$MogrifyDelegateDefault" | 
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32517 | MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" | 
|  | 32518 | MVDelegate="$MVDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32519 | PCLDelegate="$PCLDelegateDefault" | 
|  | 32520 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" | 
|  | 32521 | POVDelegate="$POVDelegateDefault" | 
|  | 32522 | PSDelegate="$PSDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32523 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" | 
|  | 32524 | RMDelegate="$RMDelegateDefault" | 
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 32525 | RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32526 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" | 
|  | 32527 | ShowImageDelegate="$ShowImageDelegateDefault" | 
|  | 32528 | TXTDelegate="$TXTDelegateDefault" | 
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 32529 | UniconvertorDelegate="$UniconvertorDelegateDefault" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32530 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" | 
|  | 32531 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" | 
|  | 32532 | XPSDelegate="$XPSDelegateDefault" | 
|  | 32533 | ZipDelegate="$ZipDelegateDefault" | 
|  | 32534 | fi | 
|  | 32535 |  | 
|  | 32536 | # Delegate substitutions | 
|  | 32537 |  | 
|  | 32538 |  | 
|  | 32539 |  | 
|  | 32540 |  | 
|  | 32541 |  | 
|  | 32542 |  | 
|  | 32543 |  | 
|  | 32544 |  | 
|  | 32545 |  | 
|  | 32546 |  | 
|  | 32547 |  | 
|  | 32548 |  | 
|  | 32549 |  | 
|  | 32550 |  | 
|  | 32551 |  | 
|  | 32552 |  | 
|  | 32553 |  | 
|  | 32554 |  | 
|  | 32555 |  | 
|  | 32556 |  | 
|  | 32557 |  | 
|  | 32558 |  | 
|  | 32559 |  | 
|  | 32560 |  | 
|  | 32561 |  | 
|  | 32562 |  | 
|  | 32563 |  | 
|  | 32564 |  | 
|  | 32565 |  | 
|  | 32566 |  | 
|  | 32567 |  | 
|  | 32568 |  | 
|  | 32569 |  | 
|  | 32570 |  | 
|  | 32571 |  | 
|  | 32572 |  | 
|  | 32573 |  | 
|  | 32574 |  | 
|  | 32575 |  | 
|  | 32576 |  | 
|  | 32577 |  | 
|  | 32578 |  | 
|  | 32579 | # | 
|  | 32580 | # RPM support. | 
|  | 32581 | # | 
|  | 32582 | RPM='' | 
|  | 32583 | for ac_prog in gnutar gtar tar | 
|  | 32584 | do | 
|  | 32585 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 32586 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32588 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32589 | if ${ac_cv_prog_TAR+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32590 | $as_echo_n "(cached) " >&6 | 
|  | 32591 | else | 
|  | 32592 | if test -n "$TAR"; then | 
|  | 32593 | ac_cv_prog_TAR="$TAR" # Let the user override the test. | 
|  | 32594 | else | 
|  | 32595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32596 | for as_dir in $PATH | 
|  | 32597 | do | 
|  | 32598 | IFS=$as_save_IFS | 
|  | 32599 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32600 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32602 | ac_cv_prog_TAR="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32603 | $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] | 32604 | break 2 | 
|  | 32605 | fi | 
|  | 32606 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32607 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32608 | IFS=$as_save_IFS | 
|  | 32609 |  | 
|  | 32610 | fi | 
|  | 32611 | fi | 
|  | 32612 | TAR=$ac_cv_prog_TAR | 
|  | 32613 | if test -n "$TAR"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32615 | $as_echo "$TAR" >&6; } | 
|  | 32616 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32618 | $as_echo "no" >&6; } | 
|  | 32619 | fi | 
|  | 32620 |  | 
|  | 32621 |  | 
|  | 32622 | test -n "$TAR" && break | 
|  | 32623 | done | 
|  | 32624 |  | 
|  | 32625 | for ac_prog in perl | 
|  | 32626 | do | 
|  | 32627 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 32628 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32630 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32631 | if ${ac_cv_prog_PERL+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32632 | $as_echo_n "(cached) " >&6 | 
|  | 32633 | else | 
|  | 32634 | if test -n "$PERL"; then | 
|  | 32635 | ac_cv_prog_PERL="$PERL" # Let the user override the test. | 
|  | 32636 | else | 
|  | 32637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32638 | for as_dir in $PATH | 
|  | 32639 | do | 
|  | 32640 | IFS=$as_save_IFS | 
|  | 32641 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32642 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32643 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32644 | ac_cv_prog_PERL="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32645 | $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] | 32646 | break 2 | 
|  | 32647 | fi | 
|  | 32648 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32649 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32650 | IFS=$as_save_IFS | 
|  | 32651 |  | 
|  | 32652 | fi | 
|  | 32653 | fi | 
|  | 32654 | PERL=$ac_cv_prog_PERL | 
|  | 32655 | if test -n "$PERL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32657 | $as_echo "$PERL" >&6; } | 
|  | 32658 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32660 | $as_echo "no" >&6; } | 
|  | 32661 | fi | 
|  | 32662 |  | 
|  | 32663 |  | 
|  | 32664 | test -n "$PERL" && break | 
|  | 32665 | done | 
|  | 32666 |  | 
|  | 32667 | for ac_prog in rpmbuild rpm | 
|  | 32668 | do | 
|  | 32669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 32670 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32672 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32673 | if ${ac_cv_prog_RPM+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32674 | $as_echo_n "(cached) " >&6 | 
|  | 32675 | else | 
|  | 32676 | if test -n "$RPM"; then | 
|  | 32677 | ac_cv_prog_RPM="$RPM" # Let the user override the test. | 
|  | 32678 | else | 
|  | 32679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32680 | for as_dir in $PATH | 
|  | 32681 | do | 
|  | 32682 | IFS=$as_save_IFS | 
|  | 32683 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32684 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32685 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32686 | ac_cv_prog_RPM="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32687 | $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] | 32688 | break 2 | 
|  | 32689 | fi | 
|  | 32690 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32691 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32692 | IFS=$as_save_IFS | 
|  | 32693 |  | 
|  | 32694 | fi | 
|  | 32695 | fi | 
|  | 32696 | RPM=$ac_cv_prog_RPM | 
|  | 32697 | if test -n "$RPM"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32699 | $as_echo "$RPM" >&6; } | 
|  | 32700 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32702 | $as_echo "no" >&6; } | 
|  | 32703 | fi | 
|  | 32704 |  | 
|  | 32705 |  | 
|  | 32706 | test -n "$RPM" && break | 
|  | 32707 | done | 
|  | 32708 |  | 
|  | 32709 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 32710 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} | 
|  | 32711 |  | 
|  | 32712 |  | 
|  | 32713 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | 
|  | 32714 |  | 
|  | 32715 |  | 
|  | 32716 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} | 
|  | 32717 |  | 
|  | 32718 |  | 
|  | 32719 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | 
|  | 32720 |  | 
|  | 32721 |  | 
|  | 32722 | if test "x$RPM" != "x" ; then | 
|  | 32723 | RPM_DELEGATE_TRUE= | 
|  | 32724 | RPM_DELEGATE_FALSE='#' | 
|  | 32725 | else | 
|  | 32726 | RPM_DELEGATE_TRUE='#' | 
|  | 32727 | RPM_DELEGATE_FALSE= | 
|  | 32728 | fi | 
|  | 32729 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32730 |  | 
|  | 32731 | # | 
|  | 32732 | # 7ZIP support (http://p7zip.sourceforge.net/) | 
|  | 32733 | # | 
|  | 32734 | P7ZIP='' | 
|  | 32735 | for ac_prog in 7za | 
|  | 32736 | do | 
|  | 32737 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 32738 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32740 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32741 | if ${ac_cv_prog_P7ZIP+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32742 | $as_echo_n "(cached) " >&6 | 
|  | 32743 | else | 
|  | 32744 | if test -n "$P7ZIP"; then | 
|  | 32745 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. | 
|  | 32746 | else | 
|  | 32747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32748 | for as_dir in $PATH | 
|  | 32749 | do | 
|  | 32750 | IFS=$as_save_IFS | 
|  | 32751 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32752 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32753 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32754 | ac_cv_prog_P7ZIP="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32755 | $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] | 32756 | break 2 | 
|  | 32757 | fi | 
|  | 32758 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32759 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32760 | IFS=$as_save_IFS | 
|  | 32761 |  | 
|  | 32762 | fi | 
|  | 32763 | fi | 
|  | 32764 | P7ZIP=$ac_cv_prog_P7ZIP | 
|  | 32765 | if test -n "$P7ZIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32767 | $as_echo "$P7ZIP" >&6; } | 
|  | 32768 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32770 | $as_echo "no" >&6; } | 
|  | 32771 | fi | 
|  | 32772 |  | 
|  | 32773 |  | 
|  | 32774 | test -n "$P7ZIP" && break | 
|  | 32775 | done | 
|  | 32776 |  | 
|  | 32777 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 32778 | if test "x$P7ZIP" != "x" ; then | 
|  | 32779 | P7ZIP_DELEGATE_TRUE= | 
|  | 32780 | P7ZIP_DELEGATE_FALSE='#' | 
|  | 32781 | else | 
|  | 32782 | P7ZIP_DELEGATE_TRUE='#' | 
|  | 32783 | P7ZIP_DELEGATE_FALSE= | 
|  | 32784 | fi | 
|  | 32785 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32786 |  | 
|  | 32787 | # | 
|  | 32788 | # ZIP support (http://www.info-zip.org/Zip.html) | 
|  | 32789 | # | 
|  | 32790 | ZIP='' | 
|  | 32791 | for ac_prog in zip | 
|  | 32792 | do | 
|  | 32793 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 32794 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32796 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32797 | if ${ac_cv_prog_ZIP+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32798 | $as_echo_n "(cached) " >&6 | 
|  | 32799 | else | 
|  | 32800 | if test -n "$ZIP"; then | 
|  | 32801 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. | 
|  | 32802 | else | 
|  | 32803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 32804 | for as_dir in $PATH | 
|  | 32805 | do | 
|  | 32806 | IFS=$as_save_IFS | 
|  | 32807 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32808 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 32810 | ac_cv_prog_ZIP="$ac_prog" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32811 | $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] | 32812 | break 2 | 
|  | 32813 | fi | 
|  | 32814 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32815 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32816 | IFS=$as_save_IFS | 
|  | 32817 |  | 
|  | 32818 | fi | 
|  | 32819 | fi | 
|  | 32820 | ZIP=$ac_cv_prog_ZIP | 
|  | 32821 | if test -n "$ZIP"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32823 | $as_echo "$ZIP" >&6; } | 
|  | 32824 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32826 | $as_echo "no" >&6; } | 
|  | 32827 | fi | 
|  | 32828 |  | 
|  | 32829 |  | 
|  | 32830 | test -n "$ZIP" && break | 
|  | 32831 | done | 
|  | 32832 |  | 
|  | 32833 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 32834 | if test "x$ZIP" != "x" ; then | 
|  | 32835 | ZIP_DELEGATE_TRUE= | 
|  | 32836 | ZIP_DELEGATE_FALSE='#' | 
|  | 32837 | else | 
|  | 32838 | ZIP_DELEGATE_TRUE='#' | 
|  | 32839 | ZIP_DELEGATE_FALSE= | 
|  | 32840 | fi | 
|  | 32841 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32842 |  | 
|  | 32843 | # | 
|  | 32844 | # GhostPCL related configuration. | 
|  | 32845 | # | 
|  | 32846 | PCLColorDevice=ppmraw | 
|  | 32847 | PCLCMYKDevice=bmpsep8 | 
|  | 32848 | PCLMonoDevice=pbmraw | 
|  | 32849 | if test -z "$PCLVersion"; then | 
|  | 32850 | PCLVersion='unknown' | 
|  | 32851 | fi | 
|  | 32852 | if test $have_pcl = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32854 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32856 | $as_echo_n "checking for PCL... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32858 | $as_echo "" >&6; } | 
|  | 32859 | # PCLColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32861 | $as_echo_n "checking for pcl color device... " >&6; } | 
|  | 32862 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32863 | : | 
|  | 32864 | else | 
|  | 32865 | PCLColorDevice=ppmraw | 
|  | 32866 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32868 | $as_echo "$PCLColorDevice" >&6; } | 
|  | 32869 |  | 
|  | 32870 | # PCLCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32872 | $as_echo_n "checking for pcl CMYK device... " >&6; } | 
|  | 32873 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32874 | : | 
|  | 32875 | else | 
|  | 32876 | PCLCMYKDevice=$PCLColorDevice | 
|  | 32877 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32879 | $as_echo "$PCLCMYKDevice" >&6; } | 
|  | 32880 |  | 
|  | 32881 | # PCLMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32883 | $as_echo_n "checking for pcl mono device... " >&6; } | 
|  | 32884 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32885 | : | 
|  | 32886 | else | 
|  | 32887 | PCLMonoDevice=$PCLColorDevice | 
|  | 32888 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32890 | $as_echo "$PCLMonoDevice" >&6; } | 
|  | 32891 | fi | 
|  | 32892 |  | 
|  | 32893 |  | 
|  | 32894 |  | 
|  | 32895 |  | 
|  | 32896 |  | 
|  | 32897 |  | 
|  | 32898 | # | 
|  | 32899 | # GhostXPS related configuration. | 
|  | 32900 | # | 
|  | 32901 | XPSColorDevice=ppmraw | 
|  | 32902 | XPSCMYKDevice=bmpsep8 | 
|  | 32903 | XPSMonoDevice=pbmraw | 
|  | 32904 | if test -z "$XPSVersion"; then | 
|  | 32905 | XPSVersion='unknown' | 
|  | 32906 | fi | 
|  | 32907 | if test $have_xps = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32909 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32911 | $as_echo_n "checking for XPS... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32913 | $as_echo "" >&6; } | 
|  | 32914 | # XPSColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32916 | $as_echo_n "checking for xps color device... " >&6; } | 
|  | 32917 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32918 | : | 
|  | 32919 | else | 
|  | 32920 | XPSColorDevice=ppmraw | 
|  | 32921 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32923 | $as_echo "$XPSColorDevice" >&6; } | 
|  | 32924 |  | 
|  | 32925 | # XPSCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32927 | $as_echo_n "checking for xps CMYK device... " >&6; } | 
|  | 32928 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32929 | : | 
|  | 32930 | else | 
|  | 32931 | XPSCMYKDevice=$XPSColorDevice | 
|  | 32932 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32934 | $as_echo "$XPSCMYKDevice" >&6; } | 
|  | 32935 |  | 
|  | 32936 | # XPSMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32938 | $as_echo_n "checking for xps mono device... " >&6; } | 
|  | 32939 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32940 | : | 
|  | 32941 | else | 
|  | 32942 | XPSMonoDevice=$XPSColorDevice | 
|  | 32943 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32945 | $as_echo "$XPSMonoDevice" >&6; } | 
|  | 32946 | fi | 
|  | 32947 |  | 
|  | 32948 |  | 
|  | 32949 |  | 
|  | 32950 |  | 
|  | 32951 |  | 
|  | 32952 |  | 
|  | 32953 | # | 
|  | 32954 | # Ghostscript related configuration. | 
|  | 32955 | # | 
| cristy | a97426c | 2011-02-04 01:41:27 +0000 | [diff] [blame] | 32956 | GSAlphaDevice=pngalpha | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32957 | GSColorDevice=pnmraw | 
|  | 32958 | GSCMYKDevice=pam | 
|  | 32959 | GSMonoDevice=pbmraw | 
|  | 32960 | GSPDFDevice=pdfwrite | 
|  | 32961 | GSPSDevice=pswrite | 
|  | 32962 | GSEPSDevice=epswrite | 
|  | 32963 | GSVersion='unknown' | 
|  | 32964 | if test $have_gs = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32966 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32968 | $as_echo_n "checking for Ghostscript... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32970 | $as_echo "" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32972 | $as_echo_n "checking for Ghostscript version... " >&6; } | 
|  | 32973 | if GSVersion=`$PSDelegate --version`; then | 
|  | 32974 | : | 
|  | 32975 | else | 
|  | 32976 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` | 
|  | 32977 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32979 | $as_echo "$GSVersion" >&6; } | 
|  | 32980 |  | 
|  | 32981 | # GSAlphaDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32983 | $as_echo_n "checking for gs alpha device... " >&6; } | 
|  | 32984 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32985 | : | 
|  | 32986 | else | 
|  | 32987 | GSAlphaDevice=pnmraw | 
|  | 32988 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32990 | $as_echo "$GSAlphaDevice" >&6; } | 
|  | 32991 |  | 
|  | 32992 | # GSColorDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32994 | $as_echo_n "checking for gs color device... " >&6; } | 
|  | 32995 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 32996 | : | 
|  | 32997 | else | 
|  | 32998 | GSColorDevice=pnmraw | 
|  | 32999 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33001 | $as_echo "$GSColorDevice" >&6; } | 
|  | 33002 |  | 
|  | 33003 | # GSCMYKDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33005 | $as_echo_n "checking for gs CMYK device... " >&6; } | 
|  | 33006 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 33007 | : | 
|  | 33008 | else | 
|  | 33009 | GSCMYKDevice=bmpsep8 | 
|  | 33010 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33012 | $as_echo "$GSCMYKDevice" >&6; } | 
|  | 33013 |  | 
|  | 33014 | # GSMonoDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33016 | $as_echo_n "checking for gs mono device... " >&6; } | 
|  | 33017 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 33018 | : | 
|  | 33019 | else | 
|  | 33020 | GSMonoDevice=$GSColorDevice | 
|  | 33021 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33023 | $as_echo "$GSMonoDevice" >&6; } | 
|  | 33024 |  | 
|  | 33025 | # GSPDFDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33026 | { $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] | 33027 | $as_echo_n "checking for gs PDF writing device... " >&6; } | 
|  | 33028 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 33029 | : | 
|  | 33030 | else | 
|  | 33031 | GSPDFDevice=nodevice | 
|  | 33032 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33034 | $as_echo "$GSPDFDevice" >&6; } | 
|  | 33035 |  | 
|  | 33036 | # GSPSDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33037 | { $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] | 33038 | $as_echo_n "checking for gs PS writing device... " >&6; } | 
|  | 33039 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 33040 | : | 
|  | 33041 | else | 
|  | 33042 | GSPSDevice=nodevice | 
|  | 33043 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33045 | $as_echo "$GSPSDevice" >&6; } | 
|  | 33046 |  | 
|  | 33047 | # GSEPSDevice | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33048 | { $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] | 33049 | $as_echo_n "checking for gs EPS writing device... " >&6; } | 
|  | 33050 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then | 
|  | 33051 | : | 
|  | 33052 | else | 
|  | 33053 | GSEPSDevice=nodevice | 
|  | 33054 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33056 | $as_echo "$GSEPSDevice" >&6; } | 
|  | 33057 | fi | 
|  | 33058 |  | 
|  | 33059 |  | 
|  | 33060 |  | 
|  | 33061 |  | 
|  | 33062 |  | 
|  | 33063 |  | 
|  | 33064 |  | 
|  | 33065 |  | 
|  | 33066 |  | 
|  | 33067 |  | 
|  | 33068 | # | 
|  | 33069 | # PerlMagick-related configuration | 
|  | 33070 | # | 
|  | 33071 |  | 
|  | 33072 | # Look for PERL if PerlMagick requested | 
|  | 33073 | # If name/path of desired PERL interpreter is specified, look for that one first | 
|  | 33074 | have_perl='no' | 
|  | 33075 | if test "$with_perl" != 'no'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33077 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33079 | $as_echo_n "checking for Perl... " >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33081 | $as_echo "" >&6; } | 
|  | 33082 | if test "$with_perl" != 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33084 | $as_echo_n "checking for perl... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33085 | if ${ac_cv_path_PERL+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33086 | $as_echo_n "(cached) " >&6 | 
|  | 33087 | else | 
|  | 33088 | ac_cv_path_PERL="$with_perl" | 
|  | 33089 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33091 | $as_echo "$ac_cv_path_PERL" >&6; }; | 
|  | 33092 | PERL=$ac_cv_path_PERL | 
|  | 33093 | have_perl="$ac_cv_path_PERL" | 
|  | 33094 | else | 
|  | 33095 | for ac_prog in perl perl5 | 
|  | 33096 | do | 
|  | 33097 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
|  | 33098 | set dummy $ac_prog; ac_word=$2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33100 | $as_echo_n "checking for $ac_word... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33101 | if ${ac_cv_path_PERL+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33102 | $as_echo_n "(cached) " >&6 | 
|  | 33103 | else | 
|  | 33104 | case $PERL in | 
|  | 33105 | [\\/]* | ?:[\\/]*) | 
|  | 33106 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
|  | 33107 | ;; | 
|  | 33108 | *) | 
|  | 33109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 33110 | for as_dir in $PATH | 
|  | 33111 | do | 
|  | 33112 | IFS=$as_save_IFS | 
|  | 33113 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33114 | for ac_exec_ext in '' $ac_executable_extensions; do | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | 
|  | 33116 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33117 | $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] | 33118 | break 2 | 
|  | 33119 | fi | 
|  | 33120 | done | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33121 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33122 | IFS=$as_save_IFS | 
|  | 33123 |  | 
|  | 33124 | ;; | 
|  | 33125 | esac | 
|  | 33126 | fi | 
|  | 33127 | PERL=$ac_cv_path_PERL | 
|  | 33128 | if test -n "$PERL"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33130 | $as_echo "$PERL" >&6; } | 
|  | 33131 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33133 | $as_echo "no" >&6; } | 
|  | 33134 | fi | 
|  | 33135 |  | 
|  | 33136 |  | 
|  | 33137 | test -n "$PERL" && break | 
|  | 33138 | done | 
|  | 33139 | if test "$ac_cv_path_PERL"; then | 
|  | 33140 | have_perl="$ac_cv_path_PERL" | 
|  | 33141 | fi | 
|  | 33142 | fi | 
|  | 33143 | fi | 
|  | 33144 |  | 
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 33145 | if test "$with_perl" != 'yes' ; then | 
|  | 33146 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " | 
|  | 33147 | fi | 
|  | 33148 |  | 
|  | 33149 | PERL_SUPPORTS_DESTDIR='no' | 
|  | 33150 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33151 | with_perl_static='no' | 
|  | 33152 | with_perl_dynamic='no' | 
|  | 33153 | if test "$have_perl" != 'no'; then | 
|  | 33154 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then | 
|  | 33155 | with_perl_static='yes' | 
|  | 33156 | fi | 
|  | 33157 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then | 
|  | 33158 | with_perl_dynamic='yes' | 
|  | 33159 | fi | 
|  | 33160 | # Is PERL's MakeMaker new enough to support DESTDIR? | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33161 |  | 
|  | 33162 |  | 
|  | 33163 |  | 
|  | 33164 |  | 
|  | 33165 | if test -n "$PERL"; then : | 
|  | 33166 |  | 
|  | 33167 | ax_perl_version="5.8.1" | 
|  | 33168 |  | 
|  | 33169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 | 
|  | 33170 | $as_echo_n "checking for perl version... " >&6; } | 
|  | 33171 |  | 
|  | 33172 | perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` | 
|  | 33173 |  | 
|  | 33174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 | 
|  | 33175 | $as_echo "$perl_version" >&6; } | 
|  | 33176 |  | 
|  | 33177 | PERL_VERSION=$perl_version | 
|  | 33178 |  | 
|  | 33179 |  | 
|  | 33180 |  | 
|  | 33181 |  | 
|  | 33182 |  | 
|  | 33183 | # Used to indicate true or false condition | 
|  | 33184 | ax_compare_version=false | 
|  | 33185 |  | 
|  | 33186 | # Convert the two version strings to be compared into a format that | 
|  | 33187 | # allows a simple string comparison.  The end result is that a version | 
|  | 33188 | # string of the form 1.12.5-r617 will be converted to the form | 
|  | 33189 | # 0001001200050617.  In other words, each number is zero padded to four | 
|  | 33190 | # digits, and non digits are removed. | 
|  | 33191 |  | 
|  | 33192 | ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | 
|  | 33193 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | 
|  | 33194 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 33195 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 33196 | -e 's/[^0-9]//g'` | 
|  | 33197 |  | 
|  | 33198 |  | 
|  | 33199 | ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ | 
|  | 33200 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ | 
|  | 33201 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 33202 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ | 
|  | 33203 | -e 's/[^0-9]//g'` | 
|  | 33204 |  | 
|  | 33205 |  | 
|  | 33206 | ax_compare_version=`echo "x$ax_compare_version_A | 
|  | 33207 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` | 
|  | 33208 |  | 
|  | 33209 |  | 
|  | 33210 |  | 
|  | 33211 | if test "$ax_compare_version" = "true" ; then | 
|  | 33212 |  | 
|  | 33213 | : | 
|  | 33214 | PERL_SUPPORTS_DESTDIR='yes' | 
|  | 33215 |  | 
|  | 33216 | else | 
|  | 33217 | : | 
|  | 33218 | PERL_SUPPORTS_DESTDIR='no' | 
|  | 33219 |  | 
|  | 33220 | fi | 
|  | 33221 |  | 
|  | 33222 |  | 
|  | 33223 | else | 
|  | 33224 |  | 
|  | 33225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 | 
|  | 33226 | $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} | 
|  | 33227 | PERL_SUPPORTS_DESTDIR='no' | 
|  | 33228 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33229 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33230 |  | 
|  | 33231 | fi | 
|  | 33232 | if test "$have_perl" != 'no'; then | 
|  | 33233 | WITH_PERL_TRUE= | 
|  | 33234 | WITH_PERL_FALSE='#' | 
|  | 33235 | else | 
|  | 33236 | WITH_PERL_TRUE='#' | 
|  | 33237 | WITH_PERL_FALSE= | 
|  | 33238 | fi | 
|  | 33239 |  | 
|  | 33240 | if test $with_perl_static = 'yes'; then | 
|  | 33241 | WITH_PERL_STATIC_TRUE= | 
|  | 33242 | WITH_PERL_STATIC_FALSE='#' | 
|  | 33243 | else | 
|  | 33244 | WITH_PERL_STATIC_TRUE='#' | 
|  | 33245 | WITH_PERL_STATIC_FALSE= | 
|  | 33246 | fi | 
|  | 33247 |  | 
|  | 33248 | if test $with_perl_dynamic = 'yes'; then | 
|  | 33249 | WITH_PERL_DYNAMIC_TRUE= | 
|  | 33250 | WITH_PERL_DYNAMIC_FALSE='#' | 
|  | 33251 | else | 
|  | 33252 | WITH_PERL_DYNAMIC_TRUE='#' | 
|  | 33253 | WITH_PERL_DYNAMIC_FALSE= | 
|  | 33254 | fi | 
|  | 33255 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33256 |  | 
|  | 33257 |  | 
|  | 33258 | # Determine path to pick up MagickCore library from for use with building PerlMagick | 
|  | 33259 | MAGICKCORE_PATH="${LIB_DIR}" | 
|  | 33260 | if test $with_perl_static = 'yes'; then | 
|  | 33261 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) | 
|  | 33262 | libtool_objdir=$objdir | 
|  | 33263 |  | 
|  | 33264 | # Linker search path to library, followed by -lMagickCore | 
|  | 33265 | MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}" | 
|  | 33266 | fi | 
|  | 33267 |  | 
|  | 33268 |  | 
|  | 33269 | # Create a simple string containing format names for all delegate libraries | 
|  | 33270 | DELEGATES='' | 
|  | 33271 | if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi | 
|  | 33272 | if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi | 
|  | 33273 | if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi | 
|  | 33274 | if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi | 
|  | 33275 | if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi | 
|  | 33276 | if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi | 
|  | 33277 | if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi | 
|  | 33278 | if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi | 
|  | 33279 | if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi | 
|  | 33280 | if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi | 
|  | 33281 | if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi | 
|  | 33282 | if test "$have_jpeg"       = 'yes'; then | 
|  | 33283 | DELEGATES="$DELEGATES jpeg"; | 
|  | 33284 | if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi | 
|  | 33285 | fi | 
|  | 33286 | if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 33287 | if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33288 | if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi | 
|  | 33289 | if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 33290 | if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33291 | if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi | 
|  | 33292 | if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi | 
|  | 33293 | if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi | 
|  | 33294 | if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi | 
|  | 33295 | if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi | 
|  | 33296 | if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi | 
|  | 33297 | if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi | 
|  | 33298 | if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi | 
|  | 33299 | if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi | 
|  | 33300 |  | 
|  | 33301 |  | 
|  | 33302 |  | 
|  | 33303 | # | 
|  | 33304 | # Handle special compiler flags | 
|  | 33305 | # | 
|  | 33306 |  | 
|  | 33307 | # Add '-p' if prof source profiling support enabled | 
|  | 33308 | if test "$enable_prof" = 'yes'; then | 
|  | 33309 | CFLAGS="-p $CFLAGS" | 
|  | 33310 | CXXFLAGS="-p $CXXFLAGS" | 
|  | 33311 | LDFLAGS="-p $LDFLAGS" | 
|  | 33312 | fi | 
|  | 33313 |  | 
|  | 33314 | # Add '-pg' if gprof source profiling support enabled | 
|  | 33315 | if test "$enable_gprof" = 'yes'; then | 
|  | 33316 | CFLAGS="-pg $CFLAGS" | 
|  | 33317 | CXXFLAGS="-pg $CXXFLAGS" | 
|  | 33318 | LDFLAGS="-pg $LDFLAGS" | 
|  | 33319 | fi | 
|  | 33320 |  | 
|  | 33321 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled | 
|  | 33322 | # This is a gcc-specific feature | 
|  | 33323 | if test "$enable_gcov" = 'yes'; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33324 | { $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] | 33325 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33326 | if ${ac_cv_lib_gcov__gcov_init+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33327 | $as_echo_n "(cached) " >&6 | 
|  | 33328 | else | 
|  | 33329 | ac_check_lib_save_LIBS=$LIBS | 
|  | 33330 | LIBS="-lgcov  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33332 | /* end confdefs.h.  */ | 
|  | 33333 |  | 
|  | 33334 | /* Override any GCC internal prototype to avoid an error. | 
|  | 33335 | Use char because int might match the return type of a GCC | 
|  | 33336 | builtin and then its argument prototype would still apply.  */ | 
|  | 33337 | #ifdef __cplusplus | 
|  | 33338 | extern "C" | 
|  | 33339 | #endif | 
|  | 33340 | char _gcov_init (); | 
|  | 33341 | int | 
|  | 33342 | main () | 
|  | 33343 | { | 
|  | 33344 | return _gcov_init (); | 
|  | 33345 | ; | 
|  | 33346 | return 0; | 
|  | 33347 | } | 
|  | 33348 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33349 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33350 | ac_cv_lib_gcov__gcov_init=yes | 
|  | 33351 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33352 | ac_cv_lib_gcov__gcov_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33353 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33354 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 33355 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33356 | LIBS=$ac_check_lib_save_LIBS | 
|  | 33357 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33358 | { $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] | 33359 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33360 | if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33361 | cat >>confdefs.h <<_ACEOF | 
|  | 33362 | #define HAVE_LIBGCOV 1 | 
|  | 33363 | _ACEOF | 
|  | 33364 |  | 
|  | 33365 | LIBS="-lgcov $LIBS" | 
|  | 33366 |  | 
|  | 33367 | fi | 
|  | 33368 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33369 | { $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] | 33370 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33371 | if ${ac_cv_lib_gcov___gcov_init+:} false; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33372 | $as_echo_n "(cached) " >&6 | 
|  | 33373 | else | 
|  | 33374 | ac_check_lib_save_LIBS=$LIBS | 
|  | 33375 | LIBS="-lgcov  $LIBS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33377 | /* end confdefs.h.  */ | 
|  | 33378 |  | 
|  | 33379 | /* Override any GCC internal prototype to avoid an error. | 
|  | 33380 | Use char because int might match the return type of a GCC | 
|  | 33381 | builtin and then its argument prototype would still apply.  */ | 
|  | 33382 | #ifdef __cplusplus | 
|  | 33383 | extern "C" | 
|  | 33384 | #endif | 
|  | 33385 | char __gcov_init (); | 
|  | 33386 | int | 
|  | 33387 | main () | 
|  | 33388 | { | 
|  | 33389 | return __gcov_init (); | 
|  | 33390 | ; | 
|  | 33391 | return 0; | 
|  | 33392 | } | 
|  | 33393 | _ACEOF | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33394 | if ac_fn_c_try_link "$LINENO"; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33395 | ac_cv_lib_gcov___gcov_init=yes | 
|  | 33396 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33397 | ac_cv_lib_gcov___gcov_init=no | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33398 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33399 | rm -f core conftest.err conftest.$ac_objext \ | 
|  | 33400 | conftest$ac_exeext conftest.$ac_ext | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33401 | LIBS=$ac_check_lib_save_LIBS | 
|  | 33402 | fi | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33403 | { $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] | 33404 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33405 | if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33406 | cat >>confdefs.h <<_ACEOF | 
|  | 33407 | #define HAVE_LIBGCOV 1 | 
|  | 33408 | _ACEOF | 
|  | 33409 |  | 
|  | 33410 | LIBS="-lgcov $LIBS" | 
|  | 33411 |  | 
|  | 33412 | fi | 
|  | 33413 |  | 
|  | 33414 | case "$target_os" in | 
|  | 33415 | darwin*) | 
|  | 33416 | OSX_GCOV_LDFLAG="-Wl,-single_module" | 
|  | 33417 | ;; | 
|  | 33418 | *) | 
|  | 33419 | OSX_GCOV_LDFLAG="" | 
|  | 33420 | ;; | 
|  | 33421 | esac | 
|  | 33422 |  | 
|  | 33423 | CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS" | 
|  | 33424 | CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS" | 
|  | 33425 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" | 
|  | 33426 | fi | 
|  | 33427 |  | 
|  | 33428 | # | 
|  | 33429 | # Build library dependency list for libMagickCore | 
|  | 33430 | # | 
|  | 33431 |  | 
|  | 33432 | MAGICK_LIBLTDL='' # Libltdl for build | 
|  | 33433 | MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build | 
|  | 33434 | MAGICK_LTDLDEPS=''      # extra libltdl dependencies | 
|  | 33435 | if test "$with_ltdl" != 'no' | 
|  | 33436 | then | 
|  | 33437 | if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then | 
|  | 33438 | MAGICK_API_LIBLTDL='-lltdl' | 
|  | 33439 | fi | 
|  | 33440 | MAGICK_LIBLTDL=${LIBLTDL} | 
|  | 33441 | MAGICK_LTDLDEPS=${LTDLDEPS} | 
|  | 33442 | fi | 
|  | 33443 |  | 
|  | 33444 |  | 
|  | 33445 |  | 
|  | 33446 | if test "$with_modules" != 'no'; then | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 33447 | MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33448 | else | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 33449 | MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33450 | fi | 
|  | 33451 |  | 
|  | 33452 |  | 
|  | 33453 | # | 
|  | 33454 | # Remove extraneous spaces from output variables (asthetic) | 
|  | 33455 | # | 
|  | 33456 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'` | 
|  | 33457 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'` | 
|  | 33458 | X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'` | 
|  | 33459 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'` | 
|  | 33460 |  | 
|  | 33461 | CC=`echo $CC | sed -e 's/  */ /g'` | 
|  | 33462 | CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'` | 
|  | 33463 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'` | 
|  | 33464 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'` | 
|  | 33465 | DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'` | 
|  | 33466 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'` | 
|  | 33467 | LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'` | 
|  | 33468 | TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'` | 
|  | 33469 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'` | 
|  | 33470 | #LIBS=`echo $LIBS | sed -e 's/  */ /g'` | 
|  | 33471 |  | 
|  | 33472 | # Pass only user-provided LIBS as "global" libraries | 
|  | 33473 | LIBS=$USER_LIBS | 
|  | 33474 |  | 
|  | 33475 | #AC_SUBST(CPPFLAGS) | 
|  | 33476 |  | 
|  | 33477 | #AC_SUBST(LDFLAGS) | 
|  | 33478 | #AC_SUBST(X_PRE_LIBS) | 
|  | 33479 | #AC_SUBST(X_LIBS) | 
|  | 33480 | #AC_SUBST(X_EXTRA_LIBS) | 
|  | 33481 |  | 
|  | 33482 | MAGICK_CFLAGS=$CFLAGS | 
|  | 33483 | MAGICK_CXXFLAGS="$CXXFLAGS" | 
|  | 33484 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'` | 
|  | 33485 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'` | 
|  | 33486 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" | 
|  | 33487 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL" | 
|  | 33488 |  | 
|  | 33489 |  | 
|  | 33490 |  | 
|  | 33491 |  | 
|  | 33492 |  | 
|  | 33493 |  | 
|  | 33494 |  | 
|  | 33495 |  | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 33496 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33497 | # Set configured scripts to executable. | 
|  | 33498 | ac_config_commands="$ac_config_commands default" | 
|  | 33499 |  | 
|  | 33500 | ac_config_commands="$ac_config_commands MagickCore-config.in" | 
|  | 33501 |  | 
|  | 33502 | ac_config_commands="$ac_config_commands Magick-config.in" | 
|  | 33503 |  | 
|  | 33504 | ac_config_commands="$ac_config_commands MagickWand-config.in" | 
|  | 33505 |  | 
|  | 33506 | ac_config_commands="$ac_config_commands Wand-config.in" | 
|  | 33507 |  | 
|  | 33508 | ac_config_commands="$ac_config_commands Magick++-config.in" | 
|  | 33509 |  | 
|  | 33510 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" | 
|  | 33511 |  | 
|  | 33512 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33514 | $as_echo "-------------------------------------------------------------" >&6; } | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33516 | $as_echo "Update ImageMagick configuration" >&6; } | 
|  | 33517 | cat >confcache <<\_ACEOF | 
|  | 33518 | # This file is a shell script that caches the results of configure | 
|  | 33519 | # tests run on this system so they can be shared between configure | 
|  | 33520 | # scripts and configure runs, see configure's option --config-cache. | 
|  | 33521 | # It is not useful on other systems.  If it contains results you don't | 
|  | 33522 | # want to keep, you may remove or edit it. | 
|  | 33523 | # | 
|  | 33524 | # config.status only pays attention to the cache file if you give it | 
|  | 33525 | # the --recheck option to rerun configure. | 
|  | 33526 | # | 
|  | 33527 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | 
|  | 33528 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | 
|  | 33529 | # following values. | 
|  | 33530 |  | 
|  | 33531 | _ACEOF | 
|  | 33532 |  | 
|  | 33533 | # The following way of writing the cache mishandles newlines in values, | 
|  | 33534 | # but we know of no workaround that is simple, portable, and efficient. | 
|  | 33535 | # So, we kill variables containing newlines. | 
|  | 33536 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
|  | 33537 | # and sets the high bit in the cache file unless we assign to the vars. | 
|  | 33538 | ( | 
|  | 33539 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | 
|  | 33540 | eval ac_val=\$$ac_var | 
|  | 33541 | case $ac_val in #( | 
|  | 33542 | *${as_nl}*) | 
|  | 33543 | case $ac_var in #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33544 | *_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] | 33545 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | 
|  | 33546 | esac | 
|  | 33547 | case $ac_var in #( | 
|  | 33548 | _ | IFS | as_nl) ;; #( | 
|  | 33549 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33550 | *) { eval $ac_var=; unset $ac_var;} ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33551 | esac ;; | 
|  | 33552 | esac | 
|  | 33553 | done | 
|  | 33554 |  | 
|  | 33555 | (set) 2>&1 | | 
|  | 33556 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | 
|  | 33557 | *${as_nl}ac_space=\ *) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33558 | # `set' does not quote correctly, so add quotes: double-quote | 
|  | 33559 | # substitution turns \\\\ into \\, and sed turns \\ into \. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33560 | sed -n \ | 
|  | 33561 | "s/'/'\\\\''/g; | 
|  | 33562 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | 
|  | 33563 | ;; #( | 
|  | 33564 | *) | 
|  | 33565 | # `set' quotes correctly as required by POSIX, so do not add quotes. | 
|  | 33566 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | 
|  | 33567 | ;; | 
|  | 33568 | esac | | 
|  | 33569 | sort | 
|  | 33570 | ) | | 
|  | 33571 | sed ' | 
|  | 33572 | /^ac_cv_env_/b end | 
|  | 33573 | t clear | 
|  | 33574 | :clear | 
|  | 33575 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | 
|  | 33576 | t end | 
|  | 33577 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | 
|  | 33578 | :end' >>confcache | 
|  | 33579 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | 
|  | 33580 | if test -w "$cache_file"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33581 | if test "x$cache_file" != "x/dev/null"; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33582 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33583 | $as_echo "$as_me: updating cache $cache_file" >&6;} | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33584 | if test ! -f "$cache_file" || test -h "$cache_file"; then | 
|  | 33585 | cat confcache >"$cache_file" | 
|  | 33586 | else | 
|  | 33587 | case $cache_file in #( | 
|  | 33588 | */* | ?:*) | 
|  | 33589 | mv -f confcache "$cache_file"$$ && | 
|  | 33590 | mv -f "$cache_file"$$ "$cache_file" ;; #( | 
|  | 33591 | *) | 
|  | 33592 | mv -f confcache "$cache_file" ;; | 
|  | 33593 | esac | 
|  | 33594 | fi | 
|  | 33595 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33596 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33597 | { $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] | 33598 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | 
|  | 33599 | fi | 
|  | 33600 | fi | 
|  | 33601 | rm -f confcache | 
|  | 33602 |  | 
|  | 33603 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
|  | 33604 | # Let make expand exec_prefix. | 
|  | 33605 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
|  | 33606 |  | 
|  | 33607 | DEFS=-DHAVE_CONFIG_H | 
|  | 33608 |  | 
|  | 33609 | ac_libobjs= | 
|  | 33610 | ac_ltlibobjs= | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33611 | U= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33612 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | 
|  | 33613 | # 1. Remove the extension, and $U if already installed. | 
|  | 33614 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | 
|  | 33615 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | 
|  | 33616 | # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR | 
|  | 33617 | #    will be set to the directory where LIBOBJS objects are built. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33618 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | 
|  | 33619 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33620 | done | 
|  | 33621 | LIBOBJS=$ac_libobjs | 
|  | 33622 |  | 
|  | 33623 | LTLIBOBJS=$ac_ltlibobjs | 
|  | 33624 |  | 
|  | 33625 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33626 | if test -n "$EXEEXT"; then | 
|  | 33627 | am__EXEEXT_TRUE= | 
|  | 33628 | am__EXEEXT_FALSE='#' | 
|  | 33629 | else | 
|  | 33630 | am__EXEEXT_TRUE='#' | 
|  | 33631 | am__EXEEXT_FALSE= | 
|  | 33632 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33633 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33634 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33635 | as_fn_error $? "conditional \"AMDEP\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33636 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33637 | fi | 
|  | 33638 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33639 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33640 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33641 | fi | 
|  | 33642 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33643 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33644 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33645 | fi | 
|  | 33646 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33647 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33648 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33649 | fi | 
|  | 33650 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33651 | as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33652 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33653 | fi | 
|  | 33654 | if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33655 | as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33656 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33657 | fi | 
|  | 33658 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33659 | as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33660 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33661 | fi | 
|  | 33662 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33663 | as_fn_error $? "conditional \"USING_CL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33664 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33665 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33666 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33667 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33668 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33669 | fi | 
|  | 33670 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33671 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33672 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33673 | fi | 
|  | 33674 | LT_CONFIG_H=config/config.h | 
|  | 33675 |  | 
|  | 33676 | _ltdl_libobjs= | 
|  | 33677 | _ltdl_ltlibobjs= | 
|  | 33678 | if test -n "$_LT_LIBOBJS"; then | 
|  | 33679 | # Remove the extension. | 
|  | 33680 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | 
|  | 33681 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | 
|  | 33682 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | 
|  | 33683 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | 
|  | 33684 | done | 
|  | 33685 | fi | 
|  | 33686 | ltdl_LIBOBJS=$_ltdl_libobjs | 
|  | 33687 |  | 
|  | 33688 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | 
|  | 33689 |  | 
|  | 33690 |  | 
|  | 33691 | if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33692 | as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33693 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33694 | fi | 
|  | 33695 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33696 | as_fn_error $? "conditional \"WITH_MODULES\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33697 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33698 | fi | 
|  | 33699 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33700 | as_fn_error $? "conditional \"WITH_LTDL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33701 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33702 | fi | 
|  | 33703 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33704 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33705 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33706 | fi | 
|  | 33707 |  | 
|  | 33708 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33709 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33710 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33711 | fi | 
|  | 33712 | if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33713 | as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33714 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33715 | fi | 
|  | 33716 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33717 | as_fn_error $? "conditional \"HasUMEM\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33718 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33719 | fi | 
|  | 33720 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33721 | as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33722 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33723 | fi | 
|  | 33724 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33725 | as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33726 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33727 | fi | 
|  | 33728 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33729 | as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33730 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33731 | fi | 
|  | 33732 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33733 | as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33734 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33735 | fi | 
|  | 33736 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33737 | as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33738 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33739 | fi | 
|  | 33740 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33741 | as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33742 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33743 | fi | 
|  | 33744 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33745 | as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33746 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33747 | fi | 
|  | 33748 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33749 | as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33750 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33751 | fi | 
|  | 33752 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33753 | as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33754 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33755 | fi | 
|  | 33756 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33757 | as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33758 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33759 | fi | 
|  | 33760 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33761 | as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33762 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33763 | fi | 
|  | 33764 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33765 | as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33766 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33767 | fi | 
|  | 33768 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33769 | as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33770 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33771 | fi | 
|  | 33772 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33773 | as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33774 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33775 | fi | 
|  | 33776 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33777 | as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33778 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33779 | fi | 
|  | 33780 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33781 | as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33782 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33783 | fi | 
|  | 33784 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33785 | as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33786 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33787 | fi | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 33788 | if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then | 
|  | 33789 | as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. | 
|  | 33790 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33791 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33792 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33793 | as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33794 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33795 | fi | 
|  | 33796 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33797 | as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33798 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33799 | fi | 
|  | 33800 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33801 | as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33802 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33803 | fi | 
|  | 33804 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33805 | as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33806 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33807 | fi | 
|  | 33808 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33809 | as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33810 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33811 | fi | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 33812 | if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then | 
|  | 33813 | as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. | 
|  | 33814 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33815 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33816 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33817 | as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33818 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33819 | fi | 
|  | 33820 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33821 | as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33822 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33823 | fi | 
|  | 33824 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33825 | as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33826 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33827 | fi | 
|  | 33828 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33829 | as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33830 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33831 | fi | 
|  | 33832 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33833 | as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33834 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33835 | fi | 
|  | 33836 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33837 | as_fn_error $? "conditional \"WITH_PERL\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33838 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33839 | fi | 
|  | 33840 | if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33841 | as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33842 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33843 | fi | 
|  | 33844 | if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33845 | as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 33846 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | 
|  | 33847 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33848 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33849 | : "${CONFIG_STATUS=./config.status}" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33850 | ac_write_fail=0 | 
|  | 33851 | ac_clean_files_save=$ac_clean_files | 
|  | 33852 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33853 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33854 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33855 | as_write_fail=0 | 
|  | 33856 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33857 | #! $SHELL | 
|  | 33858 | # Generated by $as_me. | 
|  | 33859 | # Run this file to recreate the current configuration. | 
|  | 33860 | # Compiler output produced by configure, useful for debugging | 
|  | 33861 | # configure, is in config.log if it exists. | 
|  | 33862 |  | 
|  | 33863 | debug=false | 
|  | 33864 | ac_cs_recheck=false | 
|  | 33865 | ac_cs_silent=false | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33866 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33867 | SHELL=\${CONFIG_SHELL-$SHELL} | 
|  | 33868 | export SHELL | 
|  | 33869 | _ASEOF | 
|  | 33870 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | 
|  | 33871 | ## -------------------- ## | 
|  | 33872 | ## M4sh Initialization. ## | 
|  | 33873 | ## -------------------- ## | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33874 |  | 
|  | 33875 | # Be more Bourne compatible | 
|  | 33876 | DUALCASE=1; export DUALCASE # for MKS sh | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33877 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33878 | emulate sh | 
|  | 33879 | NULLCMD=: | 
|  | 33880 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | 
|  | 33881 | # is contrary to our usage.  Disable this feature. | 
|  | 33882 | alias -g '${1+"$@"}'='"$@"' | 
|  | 33883 | setopt NO_GLOB_SUBST | 
|  | 33884 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33885 | case `(set -o) 2>/dev/null` in #( | 
|  | 33886 | *posix*) : | 
|  | 33887 | set -o posix ;; #( | 
|  | 33888 | *) : | 
|  | 33889 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33890 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33891 | fi | 
|  | 33892 |  | 
|  | 33893 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33894 | as_nl=' | 
|  | 33895 | ' | 
|  | 33896 | export as_nl | 
|  | 33897 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | 
|  | 33898 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | 
|  | 33899 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | 
|  | 33900 | 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] | 33901 | # Prefer a ksh shell builtin over an external printf program on Solaris, | 
|  | 33902 | # but without wasting forks for bash or zsh. | 
|  | 33903 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | 
|  | 33904 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | 
|  | 33905 | as_echo='print -r --' | 
|  | 33906 | as_echo_n='print -rn --' | 
|  | 33907 | 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] | 33908 | as_echo='printf %s\n' | 
|  | 33909 | as_echo_n='printf %s' | 
|  | 33910 | else | 
|  | 33911 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | 
|  | 33912 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | 
|  | 33913 | as_echo_n='/usr/ucb/echo -n' | 
|  | 33914 | else | 
|  | 33915 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | 
|  | 33916 | as_echo_n_body='eval | 
|  | 33917 | arg=$1; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33918 | case $arg in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33919 | *"$as_nl"*) | 
|  | 33920 | expr "X$arg" : "X\\(.*\\)$as_nl"; | 
|  | 33921 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | 
|  | 33922 | esac; | 
|  | 33923 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | 
|  | 33924 | ' | 
|  | 33925 | export as_echo_n_body | 
|  | 33926 | as_echo_n='sh -c $as_echo_n_body as_echo' | 
|  | 33927 | fi | 
|  | 33928 | export as_echo_body | 
|  | 33929 | as_echo='sh -c $as_echo_body as_echo' | 
|  | 33930 | fi | 
|  | 33931 |  | 
|  | 33932 | # The user is always right. | 
|  | 33933 | if test "${PATH_SEPARATOR+set}" != set; then | 
|  | 33934 | PATH_SEPARATOR=: | 
|  | 33935 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | 
|  | 33936 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | 
|  | 33937 | PATH_SEPARATOR=';' | 
|  | 33938 | } | 
|  | 33939 | fi | 
|  | 33940 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33941 |  | 
|  | 33942 | # IFS | 
|  | 33943 | # We need space, tab and new line, in precisely that order.  Quoting is | 
|  | 33944 | # there to prevent editors from complaining about space-tab. | 
|  | 33945 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | 
|  | 33946 | # splitting by setting IFS to empty value.) | 
|  | 33947 | IFS=" ""	$as_nl" | 
|  | 33948 |  | 
|  | 33949 | # Find who we are.  Look in the path if we contain no directory separator. | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33950 | as_myself= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33951 | case $0 in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33952 | *[\\/]* ) as_myself=$0 ;; | 
|  | 33953 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 
|  | 33954 | for as_dir in $PATH | 
|  | 33955 | do | 
|  | 33956 | IFS=$as_save_IFS | 
|  | 33957 | test -z "$as_dir" && as_dir=. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33958 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | 
|  | 33959 | done | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33960 | IFS=$as_save_IFS | 
|  | 33961 |  | 
|  | 33962 | ;; | 
|  | 33963 | esac | 
|  | 33964 | # We did not find ourselves, most probably we were run as `sh COMMAND' | 
|  | 33965 | # in which case we are not to be found in the path. | 
|  | 33966 | if test "x$as_myself" = x; then | 
|  | 33967 | as_myself=$0 | 
|  | 33968 | fi | 
|  | 33969 | if test ! -f "$as_myself"; then | 
|  | 33970 | $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] | 33971 | exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33972 | fi | 
|  | 33973 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33974 | # Unset variables that we do not need and which cause bugs (e.g. in | 
|  | 33975 | # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1" | 
|  | 33976 | # suppresses any "Segmentation fault" message there.  '((' could | 
|  | 33977 | # trigger a bug in pdksh 5.2.14. | 
|  | 33978 | for as_var in BASH_ENV ENV MAIL MAILPATH | 
|  | 33979 | do eval test x\${$as_var+set} = xset \ | 
|  | 33980 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33981 | done | 
|  | 33982 | PS1='$ ' | 
|  | 33983 | PS2='> ' | 
|  | 33984 | PS4='+ ' | 
|  | 33985 |  | 
|  | 33986 | # NLS nuisances. | 
|  | 33987 | LC_ALL=C | 
|  | 33988 | export LC_ALL | 
|  | 33989 | LANGUAGE=C | 
|  | 33990 | export LANGUAGE | 
|  | 33991 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33992 | # CDPATH. | 
|  | 33993 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 33994 |  | 
|  | 33995 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 33996 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | 
|  | 33997 | # ---------------------------------------- | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33998 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | 
|  | 33999 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34000 | # script with STATUS, using 1 if that was 0. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34001 | as_fn_error () | 
|  | 34002 | { | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34003 | as_status=$1; test $as_status -eq 0 && as_status=1 | 
|  | 34004 | if test "$4"; then | 
|  | 34005 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | 
|  | 34006 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34007 | fi | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34008 | $as_echo "$as_me: error: $2" >&2 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34009 | as_fn_exit $as_status | 
|  | 34010 | } # as_fn_error | 
|  | 34011 |  | 
|  | 34012 |  | 
|  | 34013 | # as_fn_set_status STATUS | 
|  | 34014 | # ----------------------- | 
|  | 34015 | # Set $? to STATUS, without forking. | 
|  | 34016 | as_fn_set_status () | 
|  | 34017 | { | 
|  | 34018 | return $1 | 
|  | 34019 | } # as_fn_set_status | 
|  | 34020 |  | 
|  | 34021 | # as_fn_exit STATUS | 
|  | 34022 | # ----------------- | 
|  | 34023 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | 
|  | 34024 | as_fn_exit () | 
|  | 34025 | { | 
|  | 34026 | set +e | 
|  | 34027 | as_fn_set_status $1 | 
|  | 34028 | exit $1 | 
|  | 34029 | } # as_fn_exit | 
|  | 34030 |  | 
|  | 34031 | # as_fn_unset VAR | 
|  | 34032 | # --------------- | 
|  | 34033 | # Portably unset VAR. | 
|  | 34034 | as_fn_unset () | 
|  | 34035 | { | 
|  | 34036 | { eval $1=; unset $1;} | 
|  | 34037 | } | 
|  | 34038 | as_unset=as_fn_unset | 
|  | 34039 | # as_fn_append VAR VALUE | 
|  | 34040 | # ---------------------- | 
|  | 34041 | # Append the text in VALUE to the end of the definition contained in VAR. Take | 
|  | 34042 | # advantage of any shell optimizations that allow amortized linear growth over | 
|  | 34043 | # repeated appends, instead of the typical quadratic growth present in naive | 
|  | 34044 | # implementations. | 
|  | 34045 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | 
|  | 34046 | eval 'as_fn_append () | 
|  | 34047 | { | 
|  | 34048 | eval $1+=\$2 | 
|  | 34049 | }' | 
|  | 34050 | else | 
|  | 34051 | as_fn_append () | 
|  | 34052 | { | 
|  | 34053 | eval $1=\$$1\$2 | 
|  | 34054 | } | 
|  | 34055 | fi # as_fn_append | 
|  | 34056 |  | 
|  | 34057 | # as_fn_arith ARG... | 
|  | 34058 | # ------------------ | 
|  | 34059 | # Perform arithmetic evaluation on the ARGs, and store the result in the | 
|  | 34060 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | 
|  | 34061 | # must be portable across $(()) and expr. | 
|  | 34062 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | 
|  | 34063 | eval 'as_fn_arith () | 
|  | 34064 | { | 
|  | 34065 | as_val=$(( $* )) | 
|  | 34066 | }' | 
|  | 34067 | else | 
|  | 34068 | as_fn_arith () | 
|  | 34069 | { | 
|  | 34070 | as_val=`expr "$@" || test $? -eq 1` | 
|  | 34071 | } | 
|  | 34072 | fi # as_fn_arith | 
|  | 34073 |  | 
|  | 34074 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34075 | if expr a : '\(a\)' >/dev/null 2>&1 && | 
|  | 34076 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | 
|  | 34077 | as_expr=expr | 
|  | 34078 | else | 
|  | 34079 | as_expr=false | 
|  | 34080 | fi | 
|  | 34081 |  | 
|  | 34082 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | 
|  | 34083 | as_basename=basename | 
|  | 34084 | else | 
|  | 34085 | as_basename=false | 
|  | 34086 | fi | 
|  | 34087 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34088 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | 
|  | 34089 | as_dirname=dirname | 
|  | 34090 | else | 
|  | 34091 | as_dirname=false | 
|  | 34092 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34093 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34094 | as_me=`$as_basename -- "$0" || | 
|  | 34095 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | 
|  | 34096 | X"$0" : 'X\(//\)$' \| \ | 
|  | 34097 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34098 | $as_echo X/"$0" | | 
|  | 34099 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | 
|  | 34100 | s//\1/ | 
|  | 34101 | q | 
|  | 34102 | } | 
|  | 34103 | /^X\/\(\/\/\)$/{ | 
|  | 34104 | s//\1/ | 
|  | 34105 | q | 
|  | 34106 | } | 
|  | 34107 | /^X\/\(\/\).*/{ | 
|  | 34108 | s//\1/ | 
|  | 34109 | q | 
|  | 34110 | } | 
|  | 34111 | s/.*/./; q'` | 
|  | 34112 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34113 | # Avoid depending upon Character Ranges. | 
|  | 34114 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | 
|  | 34115 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | 
|  | 34116 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | 
|  | 34117 | as_cr_digits='0123456789' | 
|  | 34118 | as_cr_alnum=$as_cr_Letters$as_cr_digits | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34119 |  | 
|  | 34120 | ECHO_C= ECHO_N= ECHO_T= | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34121 | case `echo -n x` in #((((( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34122 | -n*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34123 | case `echo 'xy\c'` in | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34124 | *c*) ECHO_T='	';;	# ECHO_T is single tab character. | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34125 | xy)  ECHO_C='\c';; | 
|  | 34126 | *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null | 
|  | 34127 | ECHO_T='	';; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34128 | esac;; | 
|  | 34129 | *) | 
|  | 34130 | ECHO_N='-n';; | 
|  | 34131 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34132 |  | 
|  | 34133 | rm -f conf$$ conf$$.exe conf$$.file | 
|  | 34134 | if test -d conf$$.dir; then | 
|  | 34135 | rm -f conf$$.dir/conf$$.file | 
|  | 34136 | else | 
|  | 34137 | rm -f conf$$.dir | 
|  | 34138 | mkdir conf$$.dir 2>/dev/null | 
|  | 34139 | fi | 
|  | 34140 | if (echo >conf$$.file) 2>/dev/null; then | 
|  | 34141 | if ln -s conf$$.file conf$$ 2>/dev/null; then | 
|  | 34142 | as_ln_s='ln -s' | 
|  | 34143 | # ... but there are two gotchas: | 
|  | 34144 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | 
|  | 34145 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | 
|  | 34146 | # In both cases, we have to default to `cp -p'. | 
|  | 34147 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | 
|  | 34148 | as_ln_s='cp -p' | 
|  | 34149 | elif ln conf$$.file conf$$ 2>/dev/null; then | 
|  | 34150 | as_ln_s=ln | 
|  | 34151 | else | 
|  | 34152 | as_ln_s='cp -p' | 
|  | 34153 | fi | 
|  | 34154 | else | 
|  | 34155 | as_ln_s='cp -p' | 
|  | 34156 | fi | 
|  | 34157 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | 
|  | 34158 | rmdir conf$$.dir 2>/dev/null | 
|  | 34159 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34160 |  | 
|  | 34161 | # as_fn_mkdir_p | 
|  | 34162 | # ------------- | 
|  | 34163 | # Create "$as_dir" as a directory, including parents if necessary. | 
|  | 34164 | as_fn_mkdir_p () | 
|  | 34165 | { | 
|  | 34166 |  | 
|  | 34167 | case $as_dir in #( | 
|  | 34168 | -*) as_dir=./$as_dir;; | 
|  | 34169 | esac | 
|  | 34170 | test -d "$as_dir" || eval $as_mkdir_p || { | 
|  | 34171 | as_dirs= | 
|  | 34172 | while :; do | 
|  | 34173 | case $as_dir in #( | 
|  | 34174 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | 
|  | 34175 | *) as_qdir=$as_dir;; | 
|  | 34176 | esac | 
|  | 34177 | as_dirs="'$as_qdir' $as_dirs" | 
|  | 34178 | as_dir=`$as_dirname -- "$as_dir" || | 
|  | 34179 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 34180 | X"$as_dir" : 'X\(//\)[^/]' \| \ | 
|  | 34181 | X"$as_dir" : 'X\(//\)$' \| \ | 
|  | 34182 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 34183 | $as_echo X"$as_dir" | | 
|  | 34184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 34185 | s//\1/ | 
|  | 34186 | q | 
|  | 34187 | } | 
|  | 34188 | /^X\(\/\/\)[^/].*/{ | 
|  | 34189 | s//\1/ | 
|  | 34190 | q | 
|  | 34191 | } | 
|  | 34192 | /^X\(\/\/\)$/{ | 
|  | 34193 | s//\1/ | 
|  | 34194 | q | 
|  | 34195 | } | 
|  | 34196 | /^X\(\/\).*/{ | 
|  | 34197 | s//\1/ | 
|  | 34198 | q | 
|  | 34199 | } | 
|  | 34200 | s/.*/./; q'` | 
|  | 34201 | test -d "$as_dir" && break | 
|  | 34202 | done | 
|  | 34203 | test -z "$as_dirs" || eval "mkdir $as_dirs" | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34204 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34205 |  | 
|  | 34206 |  | 
|  | 34207 | } # as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34208 | if mkdir -p . 2>/dev/null; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34209 | as_mkdir_p='mkdir -p "$as_dir"' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34210 | else | 
|  | 34211 | test -d ./-p && rmdir ./-p | 
|  | 34212 | as_mkdir_p=false | 
|  | 34213 | fi | 
|  | 34214 |  | 
|  | 34215 | if test -x / >/dev/null 2>&1; then | 
|  | 34216 | as_test_x='test -x' | 
|  | 34217 | else | 
|  | 34218 | if ls -dL / >/dev/null 2>&1; then | 
|  | 34219 | as_ls_L_option=L | 
|  | 34220 | else | 
|  | 34221 | as_ls_L_option= | 
|  | 34222 | fi | 
|  | 34223 | as_test_x=' | 
|  | 34224 | eval sh -c '\'' | 
|  | 34225 | if test -d "$1"; then | 
|  | 34226 | test -d "$1/."; | 
|  | 34227 | else | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34228 | case $1 in #( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34229 | -*)set "./$1";; | 
|  | 34230 | esac; | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34231 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34232 | ???[sx]*):;;*)false;;esac;fi | 
|  | 34233 | '\'' sh | 
|  | 34234 | ' | 
|  | 34235 | fi | 
|  | 34236 | as_executable_p=$as_test_x | 
|  | 34237 |  | 
|  | 34238 | # Sed expression to map a string onto a valid CPP name. | 
|  | 34239 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 34240 |  | 
|  | 34241 | # Sed expression to map a string onto a valid variable name. | 
|  | 34242 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 
|  | 34243 |  | 
|  | 34244 |  | 
|  | 34245 | exec 6>&1 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34246 | ## ----------------------------------- ## | 
|  | 34247 | ## Main body of $CONFIG_STATUS script. ## | 
|  | 34248 | ## ----------------------------------- ## | 
|  | 34249 | _ASEOF | 
|  | 34250 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34251 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34252 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34253 | # Save the log message, to keep $0 and so on meaningful, and to | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34254 | # report actual input values of CONFIG_FILES etc. instead of their | 
|  | 34255 | # values after options handling. | 
|  | 34256 | ac_log=" | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 34257 | This file was extended by ImageMagick $as_me 6.6.9, which was | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34258 | generated by GNU Autoconf 2.68.  Invocation command line was | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34259 |  | 
|  | 34260 | CONFIG_FILES    = $CONFIG_FILES | 
|  | 34261 | CONFIG_HEADERS  = $CONFIG_HEADERS | 
|  | 34262 | CONFIG_LINKS    = $CONFIG_LINKS | 
|  | 34263 | CONFIG_COMMANDS = $CONFIG_COMMANDS | 
|  | 34264 | $ $0 $@ | 
|  | 34265 |  | 
|  | 34266 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 
|  | 34267 | " | 
|  | 34268 |  | 
|  | 34269 | _ACEOF | 
|  | 34270 |  | 
|  | 34271 | case $ac_config_files in *" | 
|  | 34272 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | 
|  | 34273 | esac | 
|  | 34274 |  | 
|  | 34275 | case $ac_config_headers in *" | 
|  | 34276 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | 
|  | 34277 | esac | 
|  | 34278 |  | 
|  | 34279 |  | 
|  | 34280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34281 | # Files that config.status was made for. | 
|  | 34282 | config_files="$ac_config_files" | 
|  | 34283 | config_headers="$ac_config_headers" | 
|  | 34284 | config_commands="$ac_config_commands" | 
|  | 34285 |  | 
|  | 34286 | _ACEOF | 
|  | 34287 |  | 
|  | 34288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34289 | ac_cs_usage="\ | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34290 | \`$as_me' instantiates files and other configuration actions | 
|  | 34291 | from templates according to the current configuration.  Unless the files | 
|  | 34292 | and actions are specified as TAGs, all are instantiated by default. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34293 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34294 | Usage: $0 [OPTION]... [TAG]... | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34295 |  | 
|  | 34296 | -h, --help       print this help, then exit | 
|  | 34297 | -V, --version    print version number and configuration settings, then exit | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34298 | --config     print configuration, then exit | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34299 | -q, --quiet, --silent | 
|  | 34300 | do not print progress messages | 
|  | 34301 | -d, --debug      don't remove temporary files | 
|  | 34302 | --recheck    update $as_me by reconfiguring in the same conditions | 
|  | 34303 | --file=FILE[:TEMPLATE] | 
|  | 34304 | instantiate the configuration file FILE | 
|  | 34305 | --header=FILE[:TEMPLATE] | 
|  | 34306 | instantiate the configuration header FILE | 
|  | 34307 |  | 
|  | 34308 | Configuration files: | 
|  | 34309 | $config_files | 
|  | 34310 |  | 
|  | 34311 | Configuration headers: | 
|  | 34312 | $config_headers | 
|  | 34313 |  | 
|  | 34314 | Configuration commands: | 
|  | 34315 | $config_commands | 
|  | 34316 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34317 | Report bugs to <http://www.imagemagick.org>." | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34318 |  | 
|  | 34319 | _ACEOF | 
|  | 34320 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34321 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34322 | ac_cs_version="\\ | 
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 34323 | ImageMagick config.status 6.6.9 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34324 | configured by $0, generated by GNU Autoconf 2.68, | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34325 | with options \\"\$ac_cs_config\\" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34326 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34327 | Copyright (C) 2010 Free Software Foundation, Inc. | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34328 | This config.status script is free software; the Free Software Foundation | 
|  | 34329 | gives unlimited permission to copy, distribute and modify it." | 
|  | 34330 |  | 
|  | 34331 | ac_pwd='$ac_pwd' | 
|  | 34332 | srcdir='$srcdir' | 
|  | 34333 | INSTALL='$INSTALL' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34334 | MKDIR_P='$MKDIR_P' | 
|  | 34335 | AWK='$AWK' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34336 | test -n "\$AWK" || AWK=awk | 
|  | 34337 | _ACEOF | 
|  | 34338 |  | 
|  | 34339 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34340 | # The default lists apply if the user does not specify any file. | 
|  | 34341 | ac_need_defaults=: | 
|  | 34342 | while test $# != 0 | 
|  | 34343 | do | 
|  | 34344 | case $1 in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34345 | --*=?*) | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34346 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 34347 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | 
|  | 34348 | ac_shift=: | 
|  | 34349 | ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34350 | --*=) | 
|  | 34351 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | 
|  | 34352 | ac_optarg= | 
|  | 34353 | ac_shift=: | 
|  | 34354 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34355 | *) | 
|  | 34356 | ac_option=$1 | 
|  | 34357 | ac_optarg=$2 | 
|  | 34358 | ac_shift=shift | 
|  | 34359 | ;; | 
|  | 34360 | esac | 
|  | 34361 |  | 
|  | 34362 | case $ac_option in | 
|  | 34363 | # Handling of the options. | 
|  | 34364 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
|  | 34365 | ac_cs_recheck=: ;; | 
|  | 34366 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | 
|  | 34367 | $as_echo "$ac_cs_version"; exit ;; | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34368 | --config | --confi | --conf | --con | --co | --c ) | 
|  | 34369 | $as_echo "$ac_cs_config"; exit ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34370 | --debug | --debu | --deb | --de | --d | -d ) | 
|  | 34371 | debug=: ;; | 
|  | 34372 | --file | --fil | --fi | --f ) | 
|  | 34373 | $ac_shift | 
|  | 34374 | case $ac_optarg in | 
|  | 34375 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34376 | '') as_fn_error $? "missing file argument" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34377 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34378 | as_fn_append CONFIG_FILES " '$ac_optarg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34379 | ac_need_defaults=false;; | 
|  | 34380 | --header | --heade | --head | --hea ) | 
|  | 34381 | $ac_shift | 
|  | 34382 | case $ac_optarg in | 
|  | 34383 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | 
|  | 34384 | esac | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34385 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34386 | ac_need_defaults=false;; | 
|  | 34387 | --he | --h) | 
|  | 34388 | # Conflict between --help and --header | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34389 | as_fn_error $? "ambiguous option: \`$1' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34390 | Try \`$0 --help' for more information.";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34391 | --help | --hel | -h ) | 
|  | 34392 | $as_echo "$ac_cs_usage"; exit ;; | 
|  | 34393 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
|  | 34394 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | 
|  | 34395 | ac_cs_silent=: ;; | 
|  | 34396 |  | 
|  | 34397 | # This is an error. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34398 | -*) as_fn_error $? "unrecognized option: \`$1' | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34399 | Try \`$0 --help' for more information." ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34400 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34401 | *) as_fn_append ac_config_targets " $1" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34402 | ac_need_defaults=false ;; | 
|  | 34403 |  | 
|  | 34404 | esac | 
|  | 34405 | shift | 
|  | 34406 | done | 
|  | 34407 |  | 
|  | 34408 | ac_configure_extra_args= | 
|  | 34409 |  | 
|  | 34410 | if $ac_cs_silent; then | 
|  | 34411 | exec 6>/dev/null | 
|  | 34412 | ac_configure_extra_args="$ac_configure_extra_args --silent" | 
|  | 34413 | fi | 
|  | 34414 |  | 
|  | 34415 | _ACEOF | 
|  | 34416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 34417 | if \$ac_cs_recheck; then | 
|  | 34418 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | 
|  | 34419 | shift | 
|  | 34420 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | 
|  | 34421 | CONFIG_SHELL='$SHELL' | 
|  | 34422 | export CONFIG_SHELL | 
|  | 34423 | exec "\$@" | 
|  | 34424 | fi | 
|  | 34425 |  | 
|  | 34426 | _ACEOF | 
|  | 34427 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34428 | exec 5>>config.log | 
|  | 34429 | { | 
|  | 34430 | echo | 
|  | 34431 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | 
|  | 34432 | ## Running $as_me. ## | 
|  | 34433 | _ASBOX | 
|  | 34434 | $as_echo "$ac_log" | 
|  | 34435 | } >&5 | 
|  | 34436 |  | 
|  | 34437 | _ACEOF | 
|  | 34438 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34439 | # | 
|  | 34440 | # INIT-COMMANDS | 
|  | 34441 | # | 
|  | 34442 | PACKAGE="$PACKAGE" | 
|  | 34443 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | 
|  | 34444 |  | 
|  | 34445 |  | 
|  | 34446 | # The HP-UX ksh and POSIX shell print the target directory to stdout | 
|  | 34447 | # if CDPATH is set. | 
|  | 34448 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | 
|  | 34449 |  | 
|  | 34450 | sed_quote_subst='$sed_quote_subst' | 
|  | 34451 | double_quote_subst='$double_quote_subst' | 
|  | 34452 | delay_variable_subst='$delay_variable_subst' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34453 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | 
|  | 34454 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | 
|  | 34455 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | 
|  | 34456 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | 
|  | 34457 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | 
|  | 34458 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | 
|  | 34459 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | 
|  | 34460 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | 
|  | 34461 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | 
|  | 34462 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | 
|  | 34463 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | 
|  | 34464 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | 
|  | 34465 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | 
|  | 34466 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | 
|  | 34467 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | 
|  | 34468 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | 
|  | 34469 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | 
|  | 34470 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | 
|  | 34471 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | 
|  | 34472 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | 
|  | 34473 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | 
|  | 34474 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | 
|  | 34475 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | 
|  | 34476 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | 
|  | 34477 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | 
|  | 34478 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | 
|  | 34479 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | 
|  | 34480 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | 
|  | 34481 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | 
|  | 34482 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | 
|  | 34483 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34484 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | 
|  | 34485 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34486 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 34487 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34488 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | 
|  | 34489 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34490 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | 
|  | 34491 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | 
|  | 34492 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34493 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | 
|  | 34494 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34495 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34496 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | 
|  | 34497 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | 
|  | 34498 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34499 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34500 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34501 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | 
|  | 34502 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | 
|  | 34503 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | 
|  | 34504 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | 
|  | 34505 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | 
|  | 34506 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | 
|  | 34507 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | 
|  | 34508 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | 
|  | 34509 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34510 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34511 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34512 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | 
|  | 34513 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | 
|  | 34514 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34515 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34516 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34517 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | 
|  | 34518 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | 
|  | 34519 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34520 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34521 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | 
|  | 34522 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | 
|  | 34523 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | 
|  | 34524 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | 
|  | 34525 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | 
|  | 34526 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | 
|  | 34527 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34528 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34529 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | 
|  | 34530 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | 
|  | 34531 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34532 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34533 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | 
|  | 34534 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34535 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34536 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34537 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34538 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34539 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34540 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | 
|  | 34541 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 34542 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | 
|  | 34543 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34544 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | 
|  | 34545 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | 
|  | 34546 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | 
|  | 34547 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | 
|  | 34548 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | 
|  | 34549 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | 
|  | 34550 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | 
|  | 34551 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | 
|  | 34552 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34553 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | 
|  | 34554 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34555 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | 
|  | 34556 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | 
|  | 34557 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34558 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34559 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34560 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | 
|  | 34561 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | 
|  | 34562 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | 
|  | 34563 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | 
|  | 34564 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | 
|  | 34565 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | 
|  | 34566 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | 
|  | 34567 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34568 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34569 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34570 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | 
|  | 34571 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34572 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34573 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | 
|  | 34574 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | 
|  | 34575 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | 
|  | 34576 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34577 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | 
|  | 34578 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | 
|  | 34579 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | 
|  | 34580 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | 
|  | 34581 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | 
|  | 34582 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | 
|  | 34583 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | 
|  | 34584 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | 
|  | 34585 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | 
|  | 34586 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | 
|  | 34587 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | 
|  | 34588 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | 
|  | 34589 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | 
|  | 34590 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34591 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34592 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34593 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34594 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34595 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34596 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34597 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34598 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34599 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34600 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34601 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34602 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34603 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34604 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34605 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34606 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34607 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34608 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34609 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34610 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34611 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34612 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34613 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34614 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34615 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34616 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34617 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34618 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34619 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34620 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34621 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34622 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34623 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34624 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34625 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34626 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34627 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34628 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34629 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34630 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34631 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34632 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34633 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34634 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34635 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34636 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34637 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | 
|  | 34638 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34639 |  | 
|  | 34640 | LTCC='$LTCC' | 
|  | 34641 | LTCFLAGS='$LTCFLAGS' | 
|  | 34642 | compiler='$compiler_DEFAULT' | 
|  | 34643 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34644 | # A function that is used when there is no print builtin or printf. | 
|  | 34645 | func_fallback_echo () | 
|  | 34646 | { | 
|  | 34647 | eval 'cat <<_LTECHO_EOF | 
|  | 34648 | \$1 | 
|  | 34649 | _LTECHO_EOF' | 
|  | 34650 | } | 
|  | 34651 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34652 | # Quote evaled strings. | 
|  | 34653 | for var in SED \ | 
|  | 34654 | GREP \ | 
|  | 34655 | EGREP \ | 
|  | 34656 | FGREP \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34657 | SHELL \ | 
|  | 34658 | ECHO \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34659 | LD \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34660 | AS \ | 
|  | 34661 | DLLTOOL \ | 
|  | 34662 | OBJDUMP \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34663 | NM \ | 
|  | 34664 | LN_S \ | 
|  | 34665 | lt_SP2NL \ | 
|  | 34666 | lt_NL2SP \ | 
|  | 34667 | reload_flag \ | 
|  | 34668 | deplibs_check_method \ | 
|  | 34669 | file_magic_cmd \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34670 | file_magic_glob \ | 
|  | 34671 | want_nocaseglob \ | 
|  | 34672 | sharedlib_from_linklib_cmd \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34673 | AR \ | 
|  | 34674 | AR_FLAGS \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34675 | archiver_list_spec \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34676 | STRIP \ | 
|  | 34677 | RANLIB \ | 
|  | 34678 | CC \ | 
|  | 34679 | CFLAGS \ | 
|  | 34680 | compiler \ | 
|  | 34681 | lt_cv_sys_global_symbol_pipe \ | 
|  | 34682 | lt_cv_sys_global_symbol_to_cdecl \ | 
|  | 34683 | lt_cv_sys_global_symbol_to_c_name_address \ | 
|  | 34684 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34685 | nm_file_list_spec \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34686 | lt_prog_compiler_no_builtin_flag \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34687 | lt_prog_compiler_pic \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34688 | lt_prog_compiler_wl \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34689 | lt_prog_compiler_static \ | 
|  | 34690 | lt_cv_prog_compiler_c_o \ | 
|  | 34691 | need_locks \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34692 | MANIFEST_TOOL \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34693 | DSYMUTIL \ | 
|  | 34694 | NMEDIT \ | 
|  | 34695 | LIPO \ | 
|  | 34696 | OTOOL \ | 
|  | 34697 | OTOOL64 \ | 
|  | 34698 | shrext_cmds \ | 
|  | 34699 | export_dynamic_flag_spec \ | 
|  | 34700 | whole_archive_flag_spec \ | 
|  | 34701 | compiler_needs_object \ | 
|  | 34702 | with_gnu_ld \ | 
|  | 34703 | allow_undefined_flag \ | 
|  | 34704 | no_undefined_flag \ | 
|  | 34705 | hardcode_libdir_flag_spec \ | 
|  | 34706 | hardcode_libdir_flag_spec_ld \ | 
|  | 34707 | hardcode_libdir_separator \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34708 | exclude_expsyms \ | 
|  | 34709 | include_expsyms \ | 
|  | 34710 | file_list_spec \ | 
|  | 34711 | variables_saved_for_relink \ | 
|  | 34712 | libname_spec \ | 
|  | 34713 | library_names_spec \ | 
|  | 34714 | soname_spec \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34715 | install_override_mode \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34716 | finish_eval \ | 
|  | 34717 | old_striplib \ | 
|  | 34718 | striplib \ | 
|  | 34719 | compiler_lib_search_dirs \ | 
|  | 34720 | predep_objects \ | 
|  | 34721 | postdep_objects \ | 
|  | 34722 | predeps \ | 
|  | 34723 | postdeps \ | 
|  | 34724 | compiler_lib_search_path \ | 
|  | 34725 | LD_CXX \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34726 | reload_flag_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34727 | compiler_CXX \ | 
|  | 34728 | lt_prog_compiler_no_builtin_flag_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34729 | lt_prog_compiler_pic_CXX \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34730 | lt_prog_compiler_wl_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34731 | lt_prog_compiler_static_CXX \ | 
|  | 34732 | lt_cv_prog_compiler_c_o_CXX \ | 
|  | 34733 | export_dynamic_flag_spec_CXX \ | 
|  | 34734 | whole_archive_flag_spec_CXX \ | 
|  | 34735 | compiler_needs_object_CXX \ | 
|  | 34736 | with_gnu_ld_CXX \ | 
|  | 34737 | allow_undefined_flag_CXX \ | 
|  | 34738 | no_undefined_flag_CXX \ | 
|  | 34739 | hardcode_libdir_flag_spec_CXX \ | 
|  | 34740 | hardcode_libdir_flag_spec_ld_CXX \ | 
|  | 34741 | hardcode_libdir_separator_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34742 | exclude_expsyms_CXX \ | 
|  | 34743 | include_expsyms_CXX \ | 
|  | 34744 | file_list_spec_CXX \ | 
|  | 34745 | compiler_lib_search_dirs_CXX \ | 
|  | 34746 | predep_objects_CXX \ | 
|  | 34747 | postdep_objects_CXX \ | 
|  | 34748 | predeps_CXX \ | 
|  | 34749 | postdeps_CXX \ | 
|  | 34750 | compiler_lib_search_path_CXX; do | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34751 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34752 | *[\\\\\\\`\\"\\\$]*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34753 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34754 | ;; | 
|  | 34755 | *) | 
|  | 34756 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 
|  | 34757 | ;; | 
|  | 34758 | esac | 
|  | 34759 | done | 
|  | 34760 |  | 
|  | 34761 | # Double-quote double-evaled strings. | 
|  | 34762 | for var in reload_cmds \ | 
|  | 34763 | old_postinstall_cmds \ | 
|  | 34764 | old_postuninstall_cmds \ | 
|  | 34765 | old_archive_cmds \ | 
|  | 34766 | extract_expsyms_cmds \ | 
|  | 34767 | old_archive_from_new_cmds \ | 
|  | 34768 | old_archive_from_expsyms_cmds \ | 
|  | 34769 | archive_cmds \ | 
|  | 34770 | archive_expsym_cmds \ | 
|  | 34771 | module_cmds \ | 
|  | 34772 | module_expsym_cmds \ | 
|  | 34773 | export_symbols_cmds \ | 
|  | 34774 | prelink_cmds \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34775 | postlink_cmds \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34776 | postinstall_cmds \ | 
|  | 34777 | postuninstall_cmds \ | 
|  | 34778 | finish_cmds \ | 
|  | 34779 | sys_lib_search_path_spec \ | 
|  | 34780 | sys_lib_dlsearch_path_spec \ | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34781 | reload_cmds_CXX \ | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34782 | old_archive_cmds_CXX \ | 
|  | 34783 | old_archive_from_new_cmds_CXX \ | 
|  | 34784 | old_archive_from_expsyms_cmds_CXX \ | 
|  | 34785 | archive_cmds_CXX \ | 
|  | 34786 | archive_expsym_cmds_CXX \ | 
|  | 34787 | module_cmds_CXX \ | 
|  | 34788 | module_expsym_cmds_CXX \ | 
|  | 34789 | export_symbols_cmds_CXX \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34790 | prelink_cmds_CXX \ | 
|  | 34791 | postlink_cmds_CXX; do | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34792 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34793 | *[\\\\\\\`\\"\\\$]*) | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 34794 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34795 | ;; | 
|  | 34796 | *) | 
|  | 34797 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | 
|  | 34798 | ;; | 
|  | 34799 | esac | 
|  | 34800 | done | 
|  | 34801 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34802 | ac_aux_dir='$ac_aux_dir' | 
|  | 34803 | xsi_shell='$xsi_shell' | 
|  | 34804 | lt_shell_append='$lt_shell_append' | 
|  | 34805 |  | 
|  | 34806 | # See if we are running on zsh, and set the options which allow our | 
|  | 34807 | # commands through without removal of \ escapes INIT. | 
|  | 34808 | if test -n "\${ZSH_VERSION+set}" ; then | 
|  | 34809 | setopt NO_GLOB_SUBST | 
|  | 34810 | fi | 
|  | 34811 |  | 
|  | 34812 |  | 
|  | 34813 | PACKAGE='$PACKAGE' | 
|  | 34814 | VERSION='$VERSION' | 
|  | 34815 | TIMESTAMP='$TIMESTAMP' | 
|  | 34816 | RM='$RM' | 
|  | 34817 | ofile='$ofile' | 
|  | 34818 |  | 
|  | 34819 |  | 
|  | 34820 |  | 
|  | 34821 |  | 
|  | 34822 |  | 
|  | 34823 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34824 | _ACEOF | 
|  | 34825 |  | 
|  | 34826 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 34827 |  | 
|  | 34828 | # Handling of arguments. | 
|  | 34829 | for ac_config_target in $ac_config_targets | 
|  | 34830 | do | 
|  | 34831 | case $ac_config_target in | 
|  | 34832 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34833 | "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34834 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; | 
|  | 34835 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; | 
|  | 34836 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; | 
|  | 34837 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; | 
|  | 34838 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34839 | "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34840 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; | 
|  | 34841 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; | 
|  | 34842 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; | 
|  | 34843 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; | 
|  | 34844 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; | 
|  | 34845 | "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;; | 
|  | 34846 | "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;; | 
|  | 34847 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; | 
|  | 34848 | "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;; | 
|  | 34849 | "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;; | 
|  | 34850 | "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;; | 
|  | 34851 | "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;; | 
|  | 34852 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | 
|  | 34853 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; | 
|  | 34854 | "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;; | 
|  | 34855 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; | 
|  | 34856 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; | 
|  | 34857 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; | 
|  | 34858 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; | 
|  | 34859 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; | 
|  | 34860 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; | 
|  | 34861 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; | 
|  | 34862 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; | 
|  | 34863 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; | 
|  | 34864 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; | 
|  | 34865 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; | 
|  | 34866 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; | 
|  | 34867 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; | 
|  | 34868 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; | 
|  | 34869 | "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;; | 
|  | 34870 | "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;; | 
|  | 34871 | "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;; | 
|  | 34872 | "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;; | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34873 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | 
|  | 34874 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34875 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | 
|  | 34876 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; | 
|  | 34877 | "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;; | 
|  | 34878 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; | 
|  | 34879 | "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;; | 
|  | 34880 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; | 
|  | 34881 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; | 
|  | 34882 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34883 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34884 | esac | 
|  | 34885 | done | 
|  | 34886 |  | 
|  | 34887 |  | 
|  | 34888 | # If the user did not use the arguments to specify the items to instantiate, | 
|  | 34889 | # then the envvar interface is used.  Set only those that are not. | 
|  | 34890 | # We use the long form for the default assignment because of an extremely | 
|  | 34891 | # bizarre bug on SunOS 4.1.3. | 
|  | 34892 | if $ac_need_defaults; then | 
|  | 34893 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | 
|  | 34894 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | 
|  | 34895 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | 
|  | 34896 | fi | 
|  | 34897 |  | 
|  | 34898 | # Have a temporary directory for convenience.  Make it in the build tree | 
|  | 34899 | # simply because there is no reason against having it here, and in addition, | 
|  | 34900 | # creating and moving files from /tmp can sometimes cause problems. | 
|  | 34901 | # Hook for its removal unless debugging. | 
|  | 34902 | # Note that there is a small window in which the directory will not be cleaned: | 
|  | 34903 | # after its creation but before its name has been assigned to `$tmp'. | 
|  | 34904 | $debug || | 
|  | 34905 | { | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34906 | tmp= ac_tmp= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34907 | trap 'exit_status=$? | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34908 | : "${ac_tmp:=$tmp}" | 
|  | 34909 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34910 | ' 0 | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34911 | trap 'as_fn_exit 1' 1 2 13 15 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34912 | } | 
|  | 34913 | # Create a (secure) tmp directory for tmp files. | 
|  | 34914 |  | 
|  | 34915 | { | 
|  | 34916 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34917 | test -d "$tmp" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34918 | }  || | 
|  | 34919 | { | 
|  | 34920 | tmp=./conf$$-$RANDOM | 
|  | 34921 | (umask 077 && mkdir "$tmp") | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34922 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34923 | ac_tmp=$tmp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34924 |  | 
|  | 34925 | # Set up the scripts for CONFIG_FILES section. | 
|  | 34926 | # No need to generate them if there are no CONFIG_FILES. | 
|  | 34927 | # This happens for instance with `./config.status config.h'. | 
|  | 34928 | if test -n "$CONFIG_FILES"; then | 
|  | 34929 |  | 
|  | 34930 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34931 | ac_cr=`echo X | tr X '\015'` | 
|  | 34932 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | 
|  | 34933 | # But we know of no other shell where ac_cr would be empty at this | 
|  | 34934 | # point, so we can use a bashism as a fallback. | 
|  | 34935 | if test "x$ac_cr" = x; then | 
|  | 34936 | eval ac_cr=\$\'\\r\' | 
|  | 34937 | fi | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34938 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | 
|  | 34939 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34940 | ac_cs_awk_cr='\\r' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34941 | else | 
|  | 34942 | ac_cs_awk_cr=$ac_cr | 
|  | 34943 | fi | 
|  | 34944 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34945 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34946 | _ACEOF | 
|  | 34947 |  | 
|  | 34948 |  | 
|  | 34949 | { | 
|  | 34950 | echo "cat >conf$$subs.awk <<_ACEOF" && | 
|  | 34951 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | 
|  | 34952 | echo "_ACEOF" | 
|  | 34953 | } >conf$$subs.sh || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34954 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
|  | 34955 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34956 | ac_delim='%!_!# ' | 
|  | 34957 | for ac_last_try in false false false false false :; do | 
|  | 34958 | . ./conf$$subs.sh || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34959 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34960 |  | 
|  | 34961 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | 
|  | 34962 | if test $ac_delim_n = $ac_delim_num; then | 
|  | 34963 | break | 
|  | 34964 | elif $ac_last_try; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 34965 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34966 | else | 
|  | 34967 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 34968 | fi | 
|  | 34969 | done | 
|  | 34970 | rm -f conf$$subs.sh | 
|  | 34971 |  | 
|  | 34972 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34973 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34974 | _ACEOF | 
|  | 34975 | sed -n ' | 
|  | 34976 | h | 
|  | 34977 | s/^/S["/; s/!.*/"]=/ | 
|  | 34978 | p | 
|  | 34979 | g | 
|  | 34980 | s/^[^!]*!// | 
|  | 34981 | :repl | 
|  | 34982 | t repl | 
|  | 34983 | s/'"$ac_delim"'$// | 
|  | 34984 | t delim | 
|  | 34985 | :nl | 
|  | 34986 | h | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 34987 | s/\(.\{148\}\)..*/\1/ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34988 | t more1 | 
|  | 34989 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | 
|  | 34990 | p | 
|  | 34991 | n | 
|  | 34992 | b repl | 
|  | 34993 | :more1 | 
|  | 34994 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 34995 | p | 
|  | 34996 | g | 
|  | 34997 | s/.\{148\}// | 
|  | 34998 | t nl | 
|  | 34999 | :delim | 
|  | 35000 | h | 
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 35001 | s/\(.\{148\}\)..*/\1/ | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35002 | t more2 | 
|  | 35003 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | 
|  | 35004 | p | 
|  | 35005 | b | 
|  | 35006 | :more2 | 
|  | 35007 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | 
|  | 35008 | p | 
|  | 35009 | g | 
|  | 35010 | s/.\{148\}// | 
|  | 35011 | t delim | 
|  | 35012 | ' <conf$$subs.awk | sed ' | 
|  | 35013 | /^[^""]/{ | 
|  | 35014 | N | 
|  | 35015 | s/\n// | 
|  | 35016 | } | 
|  | 35017 | ' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 35018 | rm -f conf$$subs.awk | 
|  | 35019 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 35020 | _ACAWK | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35021 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35022 | for (key in S) S_is_set[key] = 1 | 
|  | 35023 | FS = "" | 
|  | 35024 |  | 
|  | 35025 | } | 
|  | 35026 | { | 
|  | 35027 | line = $ 0 | 
|  | 35028 | nfields = split(line, field, "@") | 
|  | 35029 | substed = 0 | 
|  | 35030 | len = length(field[1]) | 
|  | 35031 | for (i = 2; i < nfields; i++) { | 
|  | 35032 | key = field[i] | 
|  | 35033 | keylen = length(key) | 
|  | 35034 | if (S_is_set[key]) { | 
|  | 35035 | value = S[key] | 
|  | 35036 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | 
|  | 35037 | len += length(value) + length(field[++i]) | 
|  | 35038 | substed = 1 | 
|  | 35039 | } else | 
|  | 35040 | len += 1 + keylen | 
|  | 35041 | } | 
|  | 35042 |  | 
|  | 35043 | print line | 
|  | 35044 | } | 
|  | 35045 |  | 
|  | 35046 | _ACAWK | 
|  | 35047 | _ACEOF | 
|  | 35048 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 35049 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | 
|  | 35050 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | 
|  | 35051 | else | 
|  | 35052 | cat | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35053 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35054 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35055 | _ACEOF | 
|  | 35056 |  | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35057 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | 
|  | 35058 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35059 | # trailing colons and then remove the whole line if VPATH becomes empty | 
|  | 35060 | # (actually we leave an empty line to preserve line numbers). | 
|  | 35061 | if test "x$srcdir" = x.; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35062 | ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{ | 
|  | 35063 | h | 
|  | 35064 | s/// | 
|  | 35065 | s/^/:/ | 
|  | 35066 | s/[	 ]*$/:/ | 
|  | 35067 | s/:\$(srcdir):/:/g | 
|  | 35068 | s/:\${srcdir}:/:/g | 
|  | 35069 | s/:@srcdir@:/:/g | 
|  | 35070 | s/^:*// | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35071 | s/:*$// | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35072 | x | 
|  | 35073 | s/\(=[	 ]*\).*/\1/ | 
|  | 35074 | G | 
|  | 35075 | s/\n// | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35076 | s/^[^=]*=[	 ]*$// | 
|  | 35077 | }' | 
|  | 35078 | fi | 
|  | 35079 |  | 
|  | 35080 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 35081 | fi # test -n "$CONFIG_FILES" | 
|  | 35082 |  | 
|  | 35083 | # Set up the scripts for CONFIG_HEADERS section. | 
|  | 35084 | # No need to generate them if there are no CONFIG_HEADERS. | 
|  | 35085 | # This happens for instance with `./config.status Makefile'. | 
|  | 35086 | if test -n "$CONFIG_HEADERS"; then | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35087 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35088 | BEGIN { | 
|  | 35089 | _ACEOF | 
|  | 35090 |  | 
|  | 35091 | # Transform confdefs.h into an awk script `defines.awk', embedded as | 
|  | 35092 | # here-document in config.status, that substitutes the proper values into | 
|  | 35093 | # config.h.in to produce config.h. | 
|  | 35094 |  | 
|  | 35095 | # Create a delimiter string that does not exist in confdefs.h, to ease | 
|  | 35096 | # handling of long lines. | 
|  | 35097 | ac_delim='%!_!# ' | 
|  | 35098 | for ac_last_try in false false :; do | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35099 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | 
|  | 35100 | if test -z "$ac_tt"; then | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35101 | break | 
|  | 35102 | elif $ac_last_try; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35103 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35104 | else | 
|  | 35105 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | 
|  | 35106 | fi | 
|  | 35107 | done | 
|  | 35108 |  | 
|  | 35109 | # For the awk script, D is an array of macro values keyed by name, | 
|  | 35110 | # likewise P contains macro parameters if any.  Preserve backslash | 
|  | 35111 | # newline sequences. | 
|  | 35112 |  | 
|  | 35113 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | 
|  | 35114 | sed -n ' | 
|  | 35115 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 35116 | t rset | 
|  | 35117 | :rset | 
|  | 35118 | s/^[	 ]*#[	 ]*define[	 ][	 ]*/ / | 
|  | 35119 | t def | 
|  | 35120 | d | 
|  | 35121 | :def | 
|  | 35122 | s/\\$// | 
|  | 35123 | t bsnl | 
|  | 35124 | s/["\\]/\\&/g | 
|  | 35125 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 35126 | D["\1"]=" \3"/p | 
|  | 35127 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p | 
|  | 35128 | d | 
|  | 35129 | :bsnl | 
|  | 35130 | s/["\\]/\\&/g | 
|  | 35131 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\ | 
|  | 35132 | D["\1"]=" \3\\\\\\n"\\/p | 
|  | 35133 | t cont | 
|  | 35134 | s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | 
|  | 35135 | t cont | 
|  | 35136 | d | 
|  | 35137 | :cont | 
|  | 35138 | n | 
|  | 35139 | s/.\{148\}/&'"$ac_delim"'/g | 
|  | 35140 | t clear | 
|  | 35141 | :clear | 
|  | 35142 | s/\\$// | 
|  | 35143 | t bsnlc | 
|  | 35144 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | 
|  | 35145 | d | 
|  | 35146 | :bsnlc | 
|  | 35147 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | 
|  | 35148 | b cont | 
|  | 35149 | ' <confdefs.h | sed ' | 
|  | 35150 | s/'"$ac_delim"'/"\\\ | 
|  | 35151 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | 
|  | 35152 |  | 
|  | 35153 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 35154 | for (key in D) D_is_set[key] = 1 | 
|  | 35155 | FS = "" | 
|  | 35156 | } | 
|  | 35157 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | 
|  | 35158 | line = \$ 0 | 
|  | 35159 | split(line, arg, " ") | 
|  | 35160 | if (arg[1] == "#") { | 
|  | 35161 | defundef = arg[2] | 
|  | 35162 | mac1 = arg[3] | 
|  | 35163 | } else { | 
|  | 35164 | defundef = substr(arg[1], 2) | 
|  | 35165 | mac1 = arg[2] | 
|  | 35166 | } | 
|  | 35167 | split(mac1, mac2, "(") #) | 
|  | 35168 | macro = mac2[1] | 
|  | 35169 | prefix = substr(line, 1, index(line, defundef) - 1) | 
|  | 35170 | if (D_is_set[macro]) { | 
|  | 35171 | # Preserve the white space surrounding the "#". | 
|  | 35172 | print prefix "define", macro P[macro] D[macro] | 
|  | 35173 | next | 
|  | 35174 | } else { | 
|  | 35175 | # Replace #undef with comments.  This is necessary, for example, | 
|  | 35176 | # in the case of _POSIX_SOURCE, which is predefined and required | 
|  | 35177 | # on some systems where configure will not decide to define it. | 
|  | 35178 | if (defundef == "undef") { | 
|  | 35179 | print "/*", prefix defundef, macro, "*/" | 
|  | 35180 | next | 
|  | 35181 | } | 
|  | 35182 | } | 
|  | 35183 | } | 
|  | 35184 | { print } | 
|  | 35185 | _ACAWK | 
|  | 35186 | _ACEOF | 
|  | 35187 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35188 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35189 | fi # test -n "$CONFIG_HEADERS" | 
|  | 35190 |  | 
|  | 35191 |  | 
|  | 35192 | eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS" | 
|  | 35193 | shift | 
|  | 35194 | for ac_tag | 
|  | 35195 | do | 
|  | 35196 | case $ac_tag in | 
|  | 35197 | :[FHLC]) ac_mode=$ac_tag; continue;; | 
|  | 35198 | esac | 
|  | 35199 | case $ac_mode$ac_tag in | 
|  | 35200 | :[FHL]*:*);; | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35201 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35202 | :[FH]-) ac_tag=-:-;; | 
|  | 35203 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | 
|  | 35204 | esac | 
|  | 35205 | ac_save_IFS=$IFS | 
|  | 35206 | IFS=: | 
|  | 35207 | set x $ac_tag | 
|  | 35208 | IFS=$ac_save_IFS | 
|  | 35209 | shift | 
|  | 35210 | ac_file=$1 | 
|  | 35211 | shift | 
|  | 35212 |  | 
|  | 35213 | case $ac_mode in | 
|  | 35214 | :L) ac_source=$1;; | 
|  | 35215 | :[FH]) | 
|  | 35216 | ac_file_inputs= | 
|  | 35217 | for ac_f | 
|  | 35218 | do | 
|  | 35219 | case $ac_f in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35220 | -) ac_f="$ac_tmp/stdin";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35221 | *) # Look for the file first in the build tree, then in the source tree | 
|  | 35222 | # (if the path is not absolute).  The absolute path cannot be DOS-style, | 
|  | 35223 | # because $ac_f cannot contain `:'. | 
|  | 35224 | test -f "$ac_f" || | 
|  | 35225 | case $ac_f in | 
|  | 35226 | [\\/$]*) false;; | 
|  | 35227 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | 
|  | 35228 | esac || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35229 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35230 | esac | 
|  | 35231 | 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] | 35232 | as_fn_append ac_file_inputs " '$ac_f'" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35233 | done | 
|  | 35234 |  | 
|  | 35235 | # Let's still pretend it is `configure' which instantiates (i.e., don't | 
|  | 35236 | # use $as_me), people would be surprised to read: | 
|  | 35237 | #    /* config.h.  Generated by config.status.  */ | 
|  | 35238 | configure_input='Generated from '` | 
|  | 35239 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | 
|  | 35240 | `' by configure.' | 
|  | 35241 | if test x"$ac_file" != x-; then | 
|  | 35242 | configure_input="$ac_file.  $configure_input" | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35243 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35244 | $as_echo "$as_me: creating $ac_file" >&6;} | 
|  | 35245 | fi | 
|  | 35246 | # Neutralize special characters interpreted by sed in replacement strings. | 
|  | 35247 | case $configure_input in #( | 
|  | 35248 | *\&* | *\|* | *\\* ) | 
|  | 35249 | ac_sed_conf_input=`$as_echo "$configure_input" | | 
|  | 35250 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | 
|  | 35251 | *) ac_sed_conf_input=$configure_input;; | 
|  | 35252 | esac | 
|  | 35253 |  | 
|  | 35254 | case $ac_tag in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35255 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35256 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35257 | esac | 
|  | 35258 | ;; | 
|  | 35259 | esac | 
|  | 35260 |  | 
|  | 35261 | ac_dir=`$as_dirname -- "$ac_file" || | 
|  | 35262 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 35263 | X"$ac_file" : 'X\(//\)[^/]' \| \ | 
|  | 35264 | X"$ac_file" : 'X\(//\)$' \| \ | 
|  | 35265 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 35266 | $as_echo X"$ac_file" | | 
|  | 35267 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 35268 | s//\1/ | 
|  | 35269 | q | 
|  | 35270 | } | 
|  | 35271 | /^X\(\/\/\)[^/].*/{ | 
|  | 35272 | s//\1/ | 
|  | 35273 | q | 
|  | 35274 | } | 
|  | 35275 | /^X\(\/\/\)$/{ | 
|  | 35276 | s//\1/ | 
|  | 35277 | q | 
|  | 35278 | } | 
|  | 35279 | /^X\(\/\).*/{ | 
|  | 35280 | s//\1/ | 
|  | 35281 | q | 
|  | 35282 | } | 
|  | 35283 | s/.*/./; q'` | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35284 | as_dir="$ac_dir"; as_fn_mkdir_p | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35285 | ac_builddir=. | 
|  | 35286 |  | 
|  | 35287 | case "$ac_dir" in | 
|  | 35288 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 35289 | *) | 
|  | 35290 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | 
|  | 35291 | # A ".." for each directory in $ac_dir_suffix. | 
|  | 35292 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | 
|  | 35293 | case $ac_top_builddir_sub in | 
|  | 35294 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | 
|  | 35295 | *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;; | 
|  | 35296 | esac ;; | 
|  | 35297 | esac | 
|  | 35298 | ac_abs_top_builddir=$ac_pwd | 
|  | 35299 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | 
|  | 35300 | # for backward compatibility: | 
|  | 35301 | ac_top_builddir=$ac_top_build_prefix | 
|  | 35302 |  | 
|  | 35303 | case $srcdir in | 
|  | 35304 | .)  # We are building in place. | 
|  | 35305 | ac_srcdir=. | 
|  | 35306 | ac_top_srcdir=$ac_top_builddir_sub | 
|  | 35307 | ac_abs_top_srcdir=$ac_pwd ;; | 
|  | 35308 | [\\/]* | ?:[\\/]* )  # Absolute name. | 
|  | 35309 | ac_srcdir=$srcdir$ac_dir_suffix; | 
|  | 35310 | ac_top_srcdir=$srcdir | 
|  | 35311 | ac_abs_top_srcdir=$srcdir ;; | 
|  | 35312 | *) # Relative name. | 
|  | 35313 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | 
|  | 35314 | ac_top_srcdir=$ac_top_build_prefix$srcdir | 
|  | 35315 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | 
|  | 35316 | esac | 
|  | 35317 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | 
|  | 35318 |  | 
|  | 35319 |  | 
|  | 35320 | case $ac_mode in | 
|  | 35321 | :F) | 
|  | 35322 | # | 
|  | 35323 | # CONFIG_FILE | 
|  | 35324 | # | 
|  | 35325 |  | 
|  | 35326 | case $INSTALL in | 
|  | 35327 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | 
|  | 35328 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | 
|  | 35329 | esac | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35330 | ac_MKDIR_P=$MKDIR_P | 
|  | 35331 | case $MKDIR_P in | 
|  | 35332 | [\\/$]* | ?:[\\/]* ) ;; | 
|  | 35333 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | 
|  | 35334 | esac | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35335 | _ACEOF | 
|  | 35336 |  | 
|  | 35337 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 35338 | # If the template does not know about datarootdir, expand it. | 
|  | 35339 | # FIXME: This hack should be removed a few years after 2.60. | 
|  | 35340 | ac_datarootdir_hack=; ac_datarootdir_seen= | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35341 | ac_sed_dataroot=' | 
|  | 35342 | /datarootdir/ { | 
|  | 35343 | p | 
|  | 35344 | q | 
|  | 35345 | } | 
|  | 35346 | /@datadir@/p | 
|  | 35347 | /@docdir@/p | 
|  | 35348 | /@infodir@/p | 
|  | 35349 | /@localedir@/p | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35350 | /@mandir@/p' | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35351 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | 
|  | 35352 | *datarootdir*) ac_datarootdir_seen=yes;; | 
|  | 35353 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35354 | { $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] | 35355 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | 
|  | 35356 | _ACEOF | 
|  | 35357 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 35358 | ac_datarootdir_hack=' | 
|  | 35359 | s&@datadir@&$datadir&g | 
|  | 35360 | s&@docdir@&$docdir&g | 
|  | 35361 | s&@infodir@&$infodir&g | 
|  | 35362 | s&@localedir@&$localedir&g | 
|  | 35363 | s&@mandir@&$mandir&g | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35364 | s&\\\${datarootdir}&$datarootdir&g' ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35365 | esac | 
|  | 35366 | _ACEOF | 
|  | 35367 |  | 
|  | 35368 | # Neutralize VPATH when `$srcdir' = `.'. | 
|  | 35369 | # Shell code in configure.ac might set extrasub. | 
|  | 35370 | # FIXME: do we really want to maintain this feature? | 
|  | 35371 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 
|  | 35372 | ac_sed_extra="$ac_vpsub | 
|  | 35373 | $extrasub | 
|  | 35374 | _ACEOF | 
|  | 35375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 
|  | 35376 | :t | 
|  | 35377 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | 
|  | 35378 | s|@configure_input@|$ac_sed_conf_input|;t t | 
|  | 35379 | s&@top_builddir@&$ac_top_builddir_sub&;t t | 
|  | 35380 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | 
|  | 35381 | s&@srcdir@&$ac_srcdir&;t t | 
|  | 35382 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | 
|  | 35383 | s&@top_srcdir@&$ac_top_srcdir&;t t | 
|  | 35384 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | 
|  | 35385 | s&@builddir@&$ac_builddir&;t t | 
|  | 35386 | s&@abs_builddir@&$ac_abs_builddir&;t t | 
|  | 35387 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | 
|  | 35388 | s&@INSTALL@&$ac_INSTALL&;t t | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35389 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35390 | $ac_datarootdir_hack | 
|  | 35391 | " | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35392 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | 
|  | 35393 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35394 |  | 
|  | 35395 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35396 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | 
|  | 35397 | { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \ | 
|  | 35398 | "$ac_tmp/out"`; test -z "$ac_out"; } && | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35400 | which seems to be undefined.  Please make sure it is defined" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35401 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35402 | which seems to be undefined.  Please make sure it is defined" >&2;} | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35403 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35404 | rm -f "$ac_tmp/stdin" | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35405 | case $ac_file in | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35406 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | 
|  | 35407 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35408 | esac \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35409 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35410 | ;; | 
|  | 35411 | :H) | 
|  | 35412 | # | 
|  | 35413 | # CONFIG_HEADER | 
|  | 35414 | # | 
|  | 35415 | if test x"$ac_file" != x-; then | 
|  | 35416 | { | 
|  | 35417 | $as_echo "/* $configure_input  */" \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35418 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | 
|  | 35419 | } >"$ac_tmp/config.h" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35420 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35421 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35422 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35423 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | 
|  | 35424 | else | 
|  | 35425 | rm -f "$ac_file" | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35426 | mv "$ac_tmp/config.h" "$ac_file" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35427 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35428 | fi | 
|  | 35429 | else | 
|  | 35430 | $as_echo "/* $configure_input  */" \ | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35431 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35432 | || as_fn_error $? "could not create -" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35433 | fi | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35434 | # Compute "$ac_file"'s index in $config_headers. | 
|  | 35435 | _am_arg="$ac_file" | 
|  | 35436 | _am_stamp_count=1 | 
|  | 35437 | for _am_header in $config_headers :; do | 
|  | 35438 | case $_am_header in | 
|  | 35439 | $_am_arg | $_am_arg:* ) | 
|  | 35440 | break ;; | 
|  | 35441 | * ) | 
|  | 35442 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 
|  | 35443 | esac | 
|  | 35444 | done | 
|  | 35445 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | 
|  | 35446 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 35447 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | 
|  | 35448 | X"$_am_arg" : 'X\(//\)$' \| \ | 
|  | 35449 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 35450 | $as_echo X"$_am_arg" | | 
|  | 35451 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 35452 | s//\1/ | 
|  | 35453 | q | 
|  | 35454 | } | 
|  | 35455 | /^X\(\/\/\)[^/].*/{ | 
|  | 35456 | s//\1/ | 
|  | 35457 | q | 
|  | 35458 | } | 
|  | 35459 | /^X\(\/\/\)$/{ | 
|  | 35460 | s//\1/ | 
|  | 35461 | q | 
|  | 35462 | } | 
|  | 35463 | /^X\(\/\).*/{ | 
|  | 35464 | s//\1/ | 
|  | 35465 | q | 
|  | 35466 | } | 
|  | 35467 | s/.*/./; q'`/stamp-h$_am_stamp_count | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35468 | ;; | 
|  | 35469 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35470 | :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35471 | $as_echo "$as_me: executing $ac_file commands" >&6;} | 
|  | 35472 | ;; | 
|  | 35473 | esac | 
|  | 35474 |  | 
|  | 35475 |  | 
|  | 35476 | case $ac_file$ac_mode in | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35477 | "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h` | 
|  | 35478 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` | 
|  | 35479 | ac_prefix_conf_PKG=`echo MagickCore` | 
|  | 35480 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` | 
|  | 35481 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"` | 
|  | 35482 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` | 
|  | 35483 | if test ".$ac_prefix_conf_INP" = "."; then | 
|  | 35484 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue | 
|  | 35485 | case "$ac_file" in | 
|  | 35486 | *.h) ac_prefix_conf_INP=$ac_file ;; | 
|  | 35487 | *) | 
|  | 35488 | esac | 
|  | 35489 | test ".$ac_prefix_conf_INP" != "." && break | 
|  | 35490 | done | 
|  | 35491 | fi | 
|  | 35492 | if test ".$ac_prefix_conf_INP" = "."; then | 
|  | 35493 | case "$ac_prefix_conf_OUT" in | 
|  | 35494 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` | 
|  | 35495 | ;; | 
|  | 35496 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` | 
|  | 35497 | ;; | 
|  | 35498 | *) ac_prefix_conf_INP=config.h | 
|  | 35499 | ;; | 
|  | 35500 | esac | 
|  | 35501 | fi | 
|  | 35502 | if test -z "$ac_prefix_conf_PKG" ; then | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35503 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35504 | else | 
|  | 35505 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then | 
|  | 35506 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" | 
|  | 35507 | fi fi | 
|  | 35508 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 | 
|  | 35509 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} | 
|  | 35510 | if test -f $ac_prefix_conf_INP ; then | 
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 35511 | $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix | 
|  | 35512 | $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix | 
|  | 35513 | $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix | 
|  | 35514 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix | 
|  | 35515 | $as_echo "#endif/" >> conftest.prefix | 
|  | 35516 | $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix | 
|  | 35517 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix | 
|  | 35518 | $as_echo "#endif/" >> conftest.prefix | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35519 | # now executing _script on _DEF input to create _OUT output file | 
|  | 35520 | echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h | 
|  | 35521 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h | 
|  | 35522 | echo ' ' >>$tmp/pconfig.h | 
|  | 35523 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h | 
|  | 35524 |  | 
|  | 35525 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h | 
|  | 35526 | echo ' ' >>$tmp/pconfig.h | 
|  | 35527 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h | 
|  | 35528 | echo "#endif" >>$tmp/pconfig.h | 
|  | 35529 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then | 
|  | 35530 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 | 
|  | 35531 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} | 
|  | 35532 | else | 
|  | 35533 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || | 
|  | 35534 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 35535 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ | 
|  | 35536 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ | 
|  | 35537 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 35538 | $as_echo X"$ac_prefix_conf_OUT" | | 
|  | 35539 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 35540 | s//\1/ | 
|  | 35541 | q | 
|  | 35542 | } | 
|  | 35543 | /^X\(\/\/\)[^/].*/{ | 
|  | 35544 | s//\1/ | 
|  | 35545 | q | 
|  | 35546 | } | 
|  | 35547 | /^X\(\/\/\)$/{ | 
|  | 35548 | s//\1/ | 
|  | 35549 | q | 
|  | 35550 | } | 
|  | 35551 | /^X\(\/\).*/{ | 
|  | 35552 | s//\1/ | 
|  | 35553 | q | 
|  | 35554 | } | 
|  | 35555 | s/.*/./; q'` | 
|  | 35556 | as_dir="$ac_dir"; as_fn_mkdir_p | 
|  | 35557 | rm -f "$ac_prefix_conf_OUT" | 
|  | 35558 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" | 
|  | 35559 | fi | 
|  | 35560 | cp conftest.prefix _configs.sed | 
|  | 35561 | else | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35562 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35563 | fi | 
|  | 35564 | rm -f conftest.* | 
|  | 35565 | fi | 
|  | 35566 | ;; | 
|  | 35567 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | 
|  | 35568 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | 
|  | 35569 | # are listed without --file.  Let's play safe and only enable the eval | 
|  | 35570 | # if we detect the quoting. | 
|  | 35571 | case $CONFIG_FILES in | 
|  | 35572 | *\'*) eval set x "$CONFIG_FILES" ;; | 
|  | 35573 | *)   set x $CONFIG_FILES ;; | 
|  | 35574 | esac | 
|  | 35575 | shift | 
|  | 35576 | for mf | 
|  | 35577 | do | 
|  | 35578 | # Strip MF so we end up with the name of the file. | 
|  | 35579 | mf=`echo "$mf" | sed -e 's/:.*$//'` | 
|  | 35580 | # Check whether this is an Automake generated Makefile or not. | 
|  | 35581 | # We used to match only the files named `Makefile.in', but | 
|  | 35582 | # some people rename them; so instead we look at the file content. | 
|  | 35583 | # Grep'ing the first line is not enough: some people post-process | 
|  | 35584 | # each Makefile.in and add a new line on top of each file to say so. | 
|  | 35585 | # Grep'ing the whole file is not good either: AIX grep has a line | 
|  | 35586 | # limit of 2048, but all sed's we know have understand at least 4000. | 
|  | 35587 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | 
|  | 35588 | dirpart=`$as_dirname -- "$mf" || | 
|  | 35589 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 35590 | X"$mf" : 'X\(//\)[^/]' \| \ | 
|  | 35591 | X"$mf" : 'X\(//\)$' \| \ | 
|  | 35592 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 35593 | $as_echo X"$mf" | | 
|  | 35594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 35595 | s//\1/ | 
|  | 35596 | q | 
|  | 35597 | } | 
|  | 35598 | /^X\(\/\/\)[^/].*/{ | 
|  | 35599 | s//\1/ | 
|  | 35600 | q | 
|  | 35601 | } | 
|  | 35602 | /^X\(\/\/\)$/{ | 
|  | 35603 | s//\1/ | 
|  | 35604 | q | 
|  | 35605 | } | 
|  | 35606 | /^X\(\/\).*/{ | 
|  | 35607 | s//\1/ | 
|  | 35608 | q | 
|  | 35609 | } | 
|  | 35610 | s/.*/./; q'` | 
|  | 35611 | else | 
|  | 35612 | continue | 
|  | 35613 | fi | 
|  | 35614 | # Extract the definition of DEPDIR, am__include, and am__quote | 
|  | 35615 | # from the Makefile without running `make'. | 
|  | 35616 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | 
|  | 35617 | test -z "$DEPDIR" && continue | 
|  | 35618 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | 
|  | 35619 | test -z "am__include" && continue | 
|  | 35620 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | 
|  | 35621 | # When using ansi2knr, U may be empty or an underscore; expand it | 
|  | 35622 | U=`sed -n 's/^U = //p' < "$mf"` | 
|  | 35623 | # Find all dependency output files, they are included files with | 
|  | 35624 | # $(DEPDIR) in their names.  We invoke sed twice because it is the | 
|  | 35625 | # simplest approach to changing $(DEPDIR) to its actual value in the | 
|  | 35626 | # expansion. | 
|  | 35627 | for file in `sed -n " | 
|  | 35628 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | 
|  | 35629 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | 
|  | 35630 | # Make sure the directory exists. | 
|  | 35631 | test -f "$dirpart/$file" && continue | 
|  | 35632 | fdir=`$as_dirname -- "$file" || | 
|  | 35633 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | 
|  | 35634 | X"$file" : 'X\(//\)[^/]' \| \ | 
|  | 35635 | X"$file" : 'X\(//\)$' \| \ | 
|  | 35636 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | 
|  | 35637 | $as_echo X"$file" | | 
|  | 35638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | 
|  | 35639 | s//\1/ | 
|  | 35640 | q | 
|  | 35641 | } | 
|  | 35642 | /^X\(\/\/\)[^/].*/{ | 
|  | 35643 | s//\1/ | 
|  | 35644 | q | 
|  | 35645 | } | 
|  | 35646 | /^X\(\/\/\)$/{ | 
|  | 35647 | s//\1/ | 
|  | 35648 | q | 
|  | 35649 | } | 
|  | 35650 | /^X\(\/\).*/{ | 
|  | 35651 | s//\1/ | 
|  | 35652 | q | 
|  | 35653 | } | 
|  | 35654 | s/.*/./; q'` | 
|  | 35655 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | 
|  | 35656 | # echo "creating $dirpart/$file" | 
|  | 35657 | echo '# dummy' > "$dirpart/$file" | 
|  | 35658 | done | 
|  | 35659 | done | 
|  | 35660 | } | 
|  | 35661 | ;; | 
|  | 35662 | "libtool":C) | 
|  | 35663 |  | 
|  | 35664 | # See if we are running on zsh, and set the options which allow our | 
|  | 35665 | # commands through without removal of \ escapes. | 
|  | 35666 | if test -n "${ZSH_VERSION+set}" ; then | 
|  | 35667 | setopt NO_GLOB_SUBST | 
|  | 35668 | fi | 
|  | 35669 |  | 
|  | 35670 | cfgfile="${ofile}T" | 
|  | 35671 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | 
|  | 35672 | $RM "$cfgfile" | 
|  | 35673 |  | 
|  | 35674 | cat <<_LT_EOF >> "$cfgfile" | 
|  | 35675 | #! $SHELL | 
|  | 35676 |  | 
|  | 35677 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | 
|  | 35678 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | 
|  | 35679 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
|  | 35680 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | 
|  | 35681 | # | 
|  | 35682 | #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35683 | #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | 
|  | 35684 | #                 Inc. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35685 | #   Written by Gordon Matzigkeit, 1996 | 
|  | 35686 | # | 
|  | 35687 | #   This file is part of GNU Libtool. | 
|  | 35688 | # | 
|  | 35689 | # GNU Libtool is free software; you can redistribute it and/or | 
|  | 35690 | # modify it under the terms of the GNU General Public License as | 
|  | 35691 | # published by the Free Software Foundation; either version 2 of | 
|  | 35692 | # the License, or (at your option) any later version. | 
|  | 35693 | # | 
|  | 35694 | # As a special exception to the GNU General Public License, | 
|  | 35695 | # if you distribute this file as part of a program or library that | 
|  | 35696 | # is built using GNU Libtool, you may include this file under the | 
|  | 35697 | # same distribution terms that you use for the rest of that program. | 
|  | 35698 | # | 
|  | 35699 | # GNU Libtool is distributed in the hope that it will be useful, | 
|  | 35700 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|  | 35701 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|  | 35702 | # GNU General Public License for more details. | 
|  | 35703 | # | 
|  | 35704 | # You should have received a copy of the GNU General Public License | 
|  | 35705 | # along with GNU Libtool; see the file COPYING.  If not, a copy | 
|  | 35706 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | 
|  | 35707 | # obtained by writing to the Free Software Foundation, Inc., | 
|  | 35708 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
|  | 35709 |  | 
|  | 35710 |  | 
|  | 35711 | # The names of the tagged configurations supported by this script. | 
|  | 35712 | available_tags="CXX " | 
|  | 35713 |  | 
|  | 35714 | # ### BEGIN LIBTOOL CONFIG | 
|  | 35715 |  | 
|  | 35716 | # A sed program that does not truncate output. | 
|  | 35717 | SED=$lt_SED | 
|  | 35718 |  | 
|  | 35719 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | 
|  | 35720 | Xsed="\$SED -e 1s/^X//" | 
|  | 35721 |  | 
|  | 35722 | # A grep program that handles long lines. | 
|  | 35723 | GREP=$lt_GREP | 
|  | 35724 |  | 
|  | 35725 | # An ERE matcher. | 
|  | 35726 | EGREP=$lt_EGREP | 
|  | 35727 |  | 
|  | 35728 | # A literal string matcher. | 
|  | 35729 | FGREP=$lt_FGREP | 
|  | 35730 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35731 | # Shell to use when invoking shell scripts. | 
|  | 35732 | SHELL=$lt_SHELL | 
|  | 35733 |  | 
|  | 35734 | # An echo program that protects backslashes. | 
|  | 35735 | ECHO=$lt_ECHO | 
|  | 35736 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35737 | # Which release of libtool.m4 was used? | 
|  | 35738 | macro_version=$macro_version | 
|  | 35739 | macro_revision=$macro_revision | 
|  | 35740 |  | 
|  | 35741 | # Assembler program. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35742 | AS=$lt_AS | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35743 |  | 
|  | 35744 | # DLL creation program. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35745 | DLLTOOL=$lt_DLLTOOL | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35746 |  | 
|  | 35747 | # Object dumper program. | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35748 | OBJDUMP=$lt_OBJDUMP | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35749 |  | 
|  | 35750 | # Whether or not to build shared libraries. | 
|  | 35751 | build_libtool_libs=$enable_shared | 
|  | 35752 |  | 
|  | 35753 | # Whether or not to build static libraries. | 
|  | 35754 | build_old_libs=$enable_static | 
|  | 35755 |  | 
|  | 35756 | # What type of objects to build. | 
|  | 35757 | pic_mode=$pic_mode | 
|  | 35758 |  | 
|  | 35759 | # Whether or not to optimize for fast installation. | 
|  | 35760 | fast_install=$enable_fast_install | 
|  | 35761 |  | 
|  | 35762 | # The host system. | 
|  | 35763 | host_alias=$host_alias | 
|  | 35764 | host=$host | 
|  | 35765 | host_os=$host_os | 
|  | 35766 |  | 
|  | 35767 | # The build system. | 
|  | 35768 | build_alias=$build_alias | 
|  | 35769 | build=$build | 
|  | 35770 | build_os=$build_os | 
|  | 35771 |  | 
|  | 35772 | # A BSD- or MS-compatible name lister. | 
|  | 35773 | NM=$lt_NM | 
|  | 35774 |  | 
|  | 35775 | # Whether we need soft or hard links. | 
|  | 35776 | LN_S=$lt_LN_S | 
|  | 35777 |  | 
|  | 35778 | # What is the maximum length of a command? | 
|  | 35779 | max_cmd_len=$max_cmd_len | 
|  | 35780 |  | 
|  | 35781 | # Object file suffix (normally "o"). | 
|  | 35782 | objext=$ac_objext | 
|  | 35783 |  | 
|  | 35784 | # Executable file suffix (normally ""). | 
|  | 35785 | exeext=$exeext | 
|  | 35786 |  | 
|  | 35787 | # whether the shell understands "unset". | 
|  | 35788 | lt_unset=$lt_unset | 
|  | 35789 |  | 
|  | 35790 | # turn spaces into newlines. | 
|  | 35791 | SP2NL=$lt_lt_SP2NL | 
|  | 35792 |  | 
|  | 35793 | # turn newlines into spaces. | 
|  | 35794 | NL2SP=$lt_lt_NL2SP | 
|  | 35795 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35796 | # convert \$build file names to \$host format. | 
|  | 35797 | to_host_file_cmd=$lt_cv_to_host_file_cmd | 
|  | 35798 |  | 
|  | 35799 | # convert \$build files to toolchain format. | 
|  | 35800 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | 
|  | 35801 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35802 | # Method to check whether dependent libraries are shared objects. | 
|  | 35803 | deplibs_check_method=$lt_deplibs_check_method | 
|  | 35804 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35805 | # Command to use when deplibs_check_method = "file_magic". | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35806 | file_magic_cmd=$lt_file_magic_cmd | 
|  | 35807 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35808 | # How to find potential files when deplibs_check_method = "file_magic". | 
|  | 35809 | file_magic_glob=$lt_file_magic_glob | 
|  | 35810 |  | 
|  | 35811 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | 
|  | 35812 | want_nocaseglob=$lt_want_nocaseglob | 
|  | 35813 |  | 
|  | 35814 | # Command to associate shared and link libraries. | 
|  | 35815 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | 
|  | 35816 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35817 | # The archiver. | 
|  | 35818 | AR=$lt_AR | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35819 |  | 
|  | 35820 | # Flags to create an archive. | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35821 | AR_FLAGS=$lt_AR_FLAGS | 
|  | 35822 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35823 | # How to feed a file listing to the archiver. | 
|  | 35824 | archiver_list_spec=$lt_archiver_list_spec | 
|  | 35825 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35826 | # A symbol stripping program. | 
|  | 35827 | STRIP=$lt_STRIP | 
|  | 35828 |  | 
|  | 35829 | # Commands used to install an old-style archive. | 
|  | 35830 | RANLIB=$lt_RANLIB | 
|  | 35831 | old_postinstall_cmds=$lt_old_postinstall_cmds | 
|  | 35832 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | 
|  | 35833 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35834 | # Whether to use a lock for old archive extraction. | 
|  | 35835 | lock_old_archive_extraction=$lock_old_archive_extraction | 
|  | 35836 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35837 | # A C compiler. | 
|  | 35838 | LTCC=$lt_CC | 
|  | 35839 |  | 
|  | 35840 | # LTCC compiler flags. | 
|  | 35841 | LTCFLAGS=$lt_CFLAGS | 
|  | 35842 |  | 
|  | 35843 | # Take the output of nm and produce a listing of raw symbols and C names. | 
|  | 35844 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | 
|  | 35845 |  | 
|  | 35846 | # Transform the output of nm in a proper C declaration. | 
|  | 35847 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | 
|  | 35848 |  | 
|  | 35849 | # Transform the output of nm in a C name address pair. | 
|  | 35850 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | 
|  | 35851 |  | 
|  | 35852 | # Transform the output of nm in a C name address pair when lib prefix is needed. | 
|  | 35853 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | 
|  | 35854 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35855 | # Specify filename containing input files for \$NM. | 
|  | 35856 | nm_file_list_spec=$lt_nm_file_list_spec | 
|  | 35857 |  | 
|  | 35858 | # The root where to search for dependent libraries,and in which our libraries should be installed. | 
|  | 35859 | lt_sysroot=$lt_sysroot | 
|  | 35860 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35861 | # The name of the directory that contains temporary libtool files. | 
|  | 35862 | objdir=$objdir | 
|  | 35863 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35864 | # Used to examine libraries when file_magic_cmd begins with "file". | 
|  | 35865 | MAGIC_CMD=$MAGIC_CMD | 
|  | 35866 |  | 
|  | 35867 | # Must we lock files when doing compilation? | 
|  | 35868 | need_locks=$lt_need_locks | 
|  | 35869 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35870 | # Manifest tool. | 
|  | 35871 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | 
|  | 35872 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35873 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | 
|  | 35874 | DSYMUTIL=$lt_DSYMUTIL | 
|  | 35875 |  | 
|  | 35876 | # Tool to change global to local symbols on Mac OS X. | 
|  | 35877 | NMEDIT=$lt_NMEDIT | 
|  | 35878 |  | 
|  | 35879 | # Tool to manipulate fat objects and archives on Mac OS X. | 
|  | 35880 | LIPO=$lt_LIPO | 
|  | 35881 |  | 
|  | 35882 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | 
|  | 35883 | OTOOL=$lt_OTOOL | 
|  | 35884 |  | 
|  | 35885 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | 
|  | 35886 | OTOOL64=$lt_OTOOL64 | 
|  | 35887 |  | 
|  | 35888 | # Old archive suffix (normally "a"). | 
|  | 35889 | libext=$libext | 
|  | 35890 |  | 
|  | 35891 | # Shared library suffix (normally ".so"). | 
|  | 35892 | shrext_cmds=$lt_shrext_cmds | 
|  | 35893 |  | 
|  | 35894 | # The commands to extract the exported symbol list from a shared archive. | 
|  | 35895 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | 
|  | 35896 |  | 
|  | 35897 | # Variables whose values should be saved in libtool wrapper scripts and | 
|  | 35898 | # restored at link time. | 
|  | 35899 | variables_saved_for_relink=$lt_variables_saved_for_relink | 
|  | 35900 |  | 
|  | 35901 | # Do we need the "lib" prefix for modules? | 
|  | 35902 | need_lib_prefix=$need_lib_prefix | 
|  | 35903 |  | 
|  | 35904 | # Do we need a version for libraries? | 
|  | 35905 | need_version=$need_version | 
|  | 35906 |  | 
|  | 35907 | # Library versioning type. | 
|  | 35908 | version_type=$version_type | 
|  | 35909 |  | 
|  | 35910 | # Shared library runtime path variable. | 
|  | 35911 | runpath_var=$runpath_var | 
|  | 35912 |  | 
|  | 35913 | # Shared library path variable. | 
|  | 35914 | shlibpath_var=$shlibpath_var | 
|  | 35915 |  | 
|  | 35916 | # Is shlibpath searched before the hard-coded library search path? | 
|  | 35917 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | 
|  | 35918 |  | 
|  | 35919 | # Format of library name prefix. | 
|  | 35920 | libname_spec=$lt_libname_spec | 
|  | 35921 |  | 
|  | 35922 | # List of archive names.  First name is the real one, the rest are links. | 
|  | 35923 | # The last name is the one that the linker finds with -lNAME | 
|  | 35924 | library_names_spec=$lt_library_names_spec | 
|  | 35925 |  | 
|  | 35926 | # The coded name of the library, if different from the real name. | 
|  | 35927 | soname_spec=$lt_soname_spec | 
|  | 35928 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35929 | # Permission mode override for installation of shared libraries. | 
|  | 35930 | install_override_mode=$lt_install_override_mode | 
|  | 35931 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35932 | # Command to use after installation of a shared archive. | 
|  | 35933 | postinstall_cmds=$lt_postinstall_cmds | 
|  | 35934 |  | 
|  | 35935 | # Command to use after uninstallation of a shared archive. | 
|  | 35936 | postuninstall_cmds=$lt_postuninstall_cmds | 
|  | 35937 |  | 
|  | 35938 | # Commands used to finish a libtool library installation in a directory. | 
|  | 35939 | finish_cmds=$lt_finish_cmds | 
|  | 35940 |  | 
|  | 35941 | # As "finish_cmds", except a single script fragment to be evaled but | 
|  | 35942 | # not shown. | 
|  | 35943 | finish_eval=$lt_finish_eval | 
|  | 35944 |  | 
|  | 35945 | # Whether we should hardcode library paths into libraries. | 
|  | 35946 | hardcode_into_libs=$hardcode_into_libs | 
|  | 35947 |  | 
|  | 35948 | # Compile-time system search path for libraries. | 
|  | 35949 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | 
|  | 35950 |  | 
|  | 35951 | # Run-time system search path for libraries. | 
|  | 35952 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | 
|  | 35953 |  | 
|  | 35954 | # Whether dlopen is supported. | 
|  | 35955 | dlopen_support=$enable_dlopen | 
|  | 35956 |  | 
|  | 35957 | # Whether dlopen of programs is supported. | 
|  | 35958 | dlopen_self=$enable_dlopen_self | 
|  | 35959 |  | 
|  | 35960 | # Whether dlopen of statically linked programs is supported. | 
|  | 35961 | dlopen_self_static=$enable_dlopen_self_static | 
|  | 35962 |  | 
|  | 35963 | # Commands to strip libraries. | 
|  | 35964 | old_striplib=$lt_old_striplib | 
|  | 35965 | striplib=$lt_striplib | 
|  | 35966 |  | 
|  | 35967 |  | 
|  | 35968 | # The linker used to build libraries. | 
|  | 35969 | LD=$lt_LD | 
|  | 35970 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 35971 | # How to create reloadable object files. | 
|  | 35972 | reload_flag=$lt_reload_flag | 
|  | 35973 | reload_cmds=$lt_reload_cmds | 
|  | 35974 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35975 | # Commands used to build an old-style archive. | 
|  | 35976 | old_archive_cmds=$lt_old_archive_cmds | 
|  | 35977 |  | 
|  | 35978 | # A language specific compiler. | 
|  | 35979 | CC=$lt_compiler | 
|  | 35980 |  | 
|  | 35981 | # Is the compiler the GNU compiler? | 
|  | 35982 | with_gcc=$GCC | 
|  | 35983 |  | 
|  | 35984 | # Compiler flag to turn off builtin functions. | 
|  | 35985 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | 
|  | 35986 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35987 | # Additional compiler flags for building library objects. | 
|  | 35988 | pic_flag=$lt_lt_prog_compiler_pic | 
|  | 35989 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35990 | # How to pass a linker flag through the compiler. | 
|  | 35991 | wl=$lt_lt_prog_compiler_wl | 
|  | 35992 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35993 | # Compiler flag to prevent dynamic linking. | 
|  | 35994 | link_static_flag=$lt_lt_prog_compiler_static | 
|  | 35995 |  | 
|  | 35996 | # Does compiler simultaneously support -c and -o options? | 
|  | 35997 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | 
|  | 35998 |  | 
|  | 35999 | # Whether or not to add -lc for building shared libraries. | 
|  | 36000 | build_libtool_need_lc=$archive_cmds_need_lc | 
|  | 36001 |  | 
|  | 36002 | # Whether or not to disallow shared libs when runtime libs are static. | 
|  | 36003 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | 
|  | 36004 |  | 
|  | 36005 | # Compiler flag to allow reflexive dlopens. | 
|  | 36006 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | 
|  | 36007 |  | 
|  | 36008 | # Compiler flag to generate shared objects directly from archives. | 
|  | 36009 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | 
|  | 36010 |  | 
|  | 36011 | # Whether the compiler copes with passing no objects directly. | 
|  | 36012 | compiler_needs_object=$lt_compiler_needs_object | 
|  | 36013 |  | 
|  | 36014 | # Create an old-style archive from a shared archive. | 
|  | 36015 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | 
|  | 36016 |  | 
|  | 36017 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 36018 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | 
|  | 36019 |  | 
|  | 36020 | # Commands used to build a shared archive. | 
|  | 36021 | archive_cmds=$lt_archive_cmds | 
|  | 36022 | archive_expsym_cmds=$lt_archive_expsym_cmds | 
|  | 36023 |  | 
|  | 36024 | # Commands used to build a loadable module if different from building | 
|  | 36025 | # a shared archive. | 
|  | 36026 | module_cmds=$lt_module_cmds | 
|  | 36027 | module_expsym_cmds=$lt_module_expsym_cmds | 
|  | 36028 |  | 
|  | 36029 | # Whether we are building with GNU ld or not. | 
|  | 36030 | with_gnu_ld=$lt_with_gnu_ld | 
|  | 36031 |  | 
|  | 36032 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 36033 | allow_undefined_flag=$lt_allow_undefined_flag | 
|  | 36034 |  | 
|  | 36035 | # Flag that enforces no undefined symbols. | 
|  | 36036 | no_undefined_flag=$lt_no_undefined_flag | 
|  | 36037 |  | 
|  | 36038 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 36039 | # This must work even if \$libdir does not exist | 
|  | 36040 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | 
|  | 36041 |  | 
|  | 36042 | # If ld is used when linking, flag to hardcode \$libdir into a binary | 
|  | 36043 | # during linking.  This must work even if \$libdir does not exist. | 
|  | 36044 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | 
|  | 36045 |  | 
|  | 36046 | # Whether we need a single "-rpath" flag with a separated argument. | 
|  | 36047 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | 
|  | 36048 |  | 
|  | 36049 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 36050 | # DIR into the resulting binary. | 
|  | 36051 | hardcode_direct=$hardcode_direct | 
|  | 36052 |  | 
|  | 36053 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 36054 | # DIR into the resulting binary and the resulting library dependency is | 
|  | 36055 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | 
|  | 36056 | # library is relocated. | 
|  | 36057 | hardcode_direct_absolute=$hardcode_direct_absolute | 
|  | 36058 |  | 
|  | 36059 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 
|  | 36060 | # into the resulting binary. | 
|  | 36061 | hardcode_minus_L=$hardcode_minus_L | 
|  | 36062 |  | 
|  | 36063 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 
|  | 36064 | # into the resulting binary. | 
|  | 36065 | hardcode_shlibpath_var=$hardcode_shlibpath_var | 
|  | 36066 |  | 
|  | 36067 | # Set to "yes" if building a shared library automatically hardcodes DIR | 
|  | 36068 | # into the library and all subsequent libraries and executables linked | 
|  | 36069 | # against it. | 
|  | 36070 | hardcode_automatic=$hardcode_automatic | 
|  | 36071 |  | 
|  | 36072 | # Set to yes if linker adds runtime paths of dependent libraries | 
|  | 36073 | # to runtime path list. | 
|  | 36074 | inherit_rpath=$inherit_rpath | 
|  | 36075 |  | 
|  | 36076 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 36077 | link_all_deplibs=$link_all_deplibs | 
|  | 36078 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36079 | # Set to "yes" if exported symbols are required. | 
|  | 36080 | always_export_symbols=$always_export_symbols | 
|  | 36081 |  | 
|  | 36082 | # The commands to list exported symbols. | 
|  | 36083 | export_symbols_cmds=$lt_export_symbols_cmds | 
|  | 36084 |  | 
|  | 36085 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 36086 | exclude_expsyms=$lt_exclude_expsyms | 
|  | 36087 |  | 
|  | 36088 | # Symbols that must always be exported. | 
|  | 36089 | include_expsyms=$lt_include_expsyms | 
|  | 36090 |  | 
|  | 36091 | # Commands necessary for linking programs (against libraries) with templates. | 
|  | 36092 | prelink_cmds=$lt_prelink_cmds | 
|  | 36093 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36094 | # Commands necessary for finishing linking programs. | 
|  | 36095 | postlink_cmds=$lt_postlink_cmds | 
|  | 36096 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36097 | # Specify filename containing input files. | 
|  | 36098 | file_list_spec=$lt_file_list_spec | 
|  | 36099 |  | 
|  | 36100 | # How to hardcode a shared library path into an executable. | 
|  | 36101 | hardcode_action=$hardcode_action | 
|  | 36102 |  | 
|  | 36103 | # The directories searched by this compiler when creating a shared library. | 
|  | 36104 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | 
|  | 36105 |  | 
|  | 36106 | # Dependencies to place before and after the objects being linked to | 
|  | 36107 | # create a shared library. | 
|  | 36108 | predep_objects=$lt_predep_objects | 
|  | 36109 | postdep_objects=$lt_postdep_objects | 
|  | 36110 | predeps=$lt_predeps | 
|  | 36111 | postdeps=$lt_postdeps | 
|  | 36112 |  | 
|  | 36113 | # The library search path used internally by the compiler when linking | 
|  | 36114 | # a shared library. | 
|  | 36115 | compiler_lib_search_path=$lt_compiler_lib_search_path | 
|  | 36116 |  | 
|  | 36117 | # ### END LIBTOOL CONFIG | 
|  | 36118 |  | 
|  | 36119 | _LT_EOF | 
|  | 36120 |  | 
|  | 36121 | case $host_os in | 
|  | 36122 | aix3*) | 
|  | 36123 | cat <<\_LT_EOF >> "$cfgfile" | 
|  | 36124 | # AIX sometimes has problems with the GCC collect2 program.  For some | 
|  | 36125 | # reason, if we set the COLLECT_NAMES environment variable, the problems | 
|  | 36126 | # vanish in a puff of smoke. | 
|  | 36127 | if test "X${COLLECT_NAMES+set}" != Xset; then | 
|  | 36128 | COLLECT_NAMES= | 
|  | 36129 | export COLLECT_NAMES | 
|  | 36130 | fi | 
|  | 36131 | _LT_EOF | 
|  | 36132 | ;; | 
|  | 36133 | esac | 
|  | 36134 |  | 
|  | 36135 |  | 
|  | 36136 | ltmain="$ac_aux_dir/ltmain.sh" | 
|  | 36137 |  | 
|  | 36138 |  | 
|  | 36139 | # We use sed instead of cat because bash on DJGPP gets confused if | 
|  | 36140 | # if finds mixed CR/LF and LF-only lines.  Since sed operates in | 
|  | 36141 | # text mode, it properly converts lines to CR/LF.  This bash problem | 
|  | 36142 | # is reportedly fixed, but why not run on old versions too? | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36143 | sed '$q' "$ltmain" >> "$cfgfile" \ | 
|  | 36144 | || (rm -f "$cfgfile"; exit 1) | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36145 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36146 | if test x"$xsi_shell" = xyes; then | 
|  | 36147 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | 
|  | 36148 | func_dirname ()\ | 
|  | 36149 | {\ | 
|  | 36150 | \    case ${1} in\ | 
|  | 36151 | \      */*) func_dirname_result="${1%/*}${2}" ;;\ | 
|  | 36152 | \      *  ) func_dirname_result="${3}" ;;\ | 
|  | 36153 | \    esac\ | 
|  | 36154 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36155 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36156 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36157 | test 0 -eq $? || _lt_function_replace_fail=: | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36158 |  | 
|  | 36159 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36160 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | 
|  | 36161 | func_basename ()\ | 
|  | 36162 | {\ | 
|  | 36163 | \    func_basename_result="${1##*/}"\ | 
|  | 36164 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36165 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36166 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36167 | test 0 -eq $? || _lt_function_replace_fail=: | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36168 |  | 
|  | 36169 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36170 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | 
|  | 36171 | func_dirname_and_basename ()\ | 
|  | 36172 | {\ | 
|  | 36173 | \    case ${1} in\ | 
|  | 36174 | \      */*) func_dirname_result="${1%/*}${2}" ;;\ | 
|  | 36175 | \      *  ) func_dirname_result="${3}" ;;\ | 
|  | 36176 | \    esac\ | 
|  | 36177 | \    func_basename_result="${1##*/}"\ | 
|  | 36178 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36179 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36180 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36181 | test 0 -eq $? || _lt_function_replace_fail=: | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36182 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36183 |  | 
|  | 36184 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | 
|  | 36185 | func_stripname ()\ | 
|  | 36186 | {\ | 
|  | 36187 | \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | 
|  | 36188 | \    # positional parameters, so assign one to ordinary parameter first.\ | 
|  | 36189 | \    func_stripname_result=${3}\ | 
|  | 36190 | \    func_stripname_result=${func_stripname_result#"${1}"}\ | 
|  | 36191 | \    func_stripname_result=${func_stripname_result%"${2}"}\ | 
|  | 36192 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36193 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36194 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36195 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36196 |  | 
|  | 36197 |  | 
|  | 36198 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | 
|  | 36199 | func_split_long_opt ()\ | 
|  | 36200 | {\ | 
|  | 36201 | \    func_split_long_opt_name=${1%%=*}\ | 
|  | 36202 | \    func_split_long_opt_arg=${1#*=}\ | 
|  | 36203 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36204 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36205 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36206 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36207 |  | 
|  | 36208 |  | 
|  | 36209 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | 
|  | 36210 | func_split_short_opt ()\ | 
|  | 36211 | {\ | 
|  | 36212 | \    func_split_short_opt_arg=${1#??}\ | 
|  | 36213 | \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | 
|  | 36214 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36215 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36216 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36217 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36218 |  | 
|  | 36219 |  | 
|  | 36220 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | 
|  | 36221 | func_lo2o ()\ | 
|  | 36222 | {\ | 
|  | 36223 | \    case ${1} in\ | 
|  | 36224 | \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | 
|  | 36225 | \      *)    func_lo2o_result=${1} ;;\ | 
|  | 36226 | \    esac\ | 
|  | 36227 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36228 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36229 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36230 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36231 |  | 
|  | 36232 |  | 
|  | 36233 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | 
|  | 36234 | func_xform ()\ | 
|  | 36235 | {\ | 
|  | 36236 | func_xform_result=${1%.*}.lo\ | 
|  | 36237 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36238 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36239 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36240 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36241 |  | 
|  | 36242 |  | 
|  | 36243 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | 
|  | 36244 | func_arith ()\ | 
|  | 36245 | {\ | 
|  | 36246 | func_arith_result=$(( $* ))\ | 
|  | 36247 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36248 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36249 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36250 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36251 |  | 
|  | 36252 |  | 
|  | 36253 | sed -e '/^func_len ()$/,/^} # func_len /c\ | 
|  | 36254 | func_len ()\ | 
|  | 36255 | {\ | 
|  | 36256 | func_len_result=${#1}\ | 
|  | 36257 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36258 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36259 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36260 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36261 |  | 
|  | 36262 | fi | 
|  | 36263 |  | 
|  | 36264 | if test x"$lt_shell_append" = xyes; then | 
|  | 36265 | sed -e '/^func_append ()$/,/^} # func_append /c\ | 
|  | 36266 | func_append ()\ | 
|  | 36267 | {\ | 
|  | 36268 | eval "${1}+=\\${2}"\ | 
|  | 36269 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36270 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36271 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36272 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36273 |  | 
|  | 36274 |  | 
|  | 36275 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | 
|  | 36276 | func_append_quoted ()\ | 
|  | 36277 | {\ | 
|  | 36278 | \    func_quote_for_eval "${2}"\ | 
|  | 36279 | \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | 
|  | 36280 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | 
|  | 36281 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36282 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36283 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36284 |  | 
|  | 36285 |  | 
|  | 36286 | # Save a `func_append' function call where possible by direct use of '+=' | 
|  | 36287 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | 
|  | 36288 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36289 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36290 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36291 | else | 
|  | 36292 | # Save a `func_append' function call even when '+=' is not available | 
|  | 36293 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | 
|  | 36294 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | 
|  | 36295 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | 
|  | 36296 | test 0 -eq $? || _lt_function_replace_fail=: | 
|  | 36297 | fi | 
|  | 36298 |  | 
|  | 36299 | if test x"$_lt_function_replace_fail" = x":"; then | 
|  | 36300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | 
|  | 36301 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | 
|  | 36302 | fi | 
|  | 36303 |  | 
|  | 36304 |  | 
|  | 36305 | mv -f "$cfgfile" "$ofile" || | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36306 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | 
|  | 36307 | chmod +x "$ofile" | 
|  | 36308 |  | 
|  | 36309 |  | 
|  | 36310 | cat <<_LT_EOF >> "$ofile" | 
|  | 36311 |  | 
|  | 36312 | # ### BEGIN LIBTOOL TAG CONFIG: CXX | 
|  | 36313 |  | 
|  | 36314 | # The linker used to build libraries. | 
|  | 36315 | LD=$lt_LD_CXX | 
|  | 36316 |  | 
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36317 | # How to create reloadable object files. | 
|  | 36318 | reload_flag=$lt_reload_flag_CXX | 
|  | 36319 | reload_cmds=$lt_reload_cmds_CXX | 
|  | 36320 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36321 | # Commands used to build an old-style archive. | 
|  | 36322 | old_archive_cmds=$lt_old_archive_cmds_CXX | 
|  | 36323 |  | 
|  | 36324 | # A language specific compiler. | 
|  | 36325 | CC=$lt_compiler_CXX | 
|  | 36326 |  | 
|  | 36327 | # Is the compiler the GNU compiler? | 
|  | 36328 | with_gcc=$GCC_CXX | 
|  | 36329 |  | 
|  | 36330 | # Compiler flag to turn off builtin functions. | 
|  | 36331 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | 
|  | 36332 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36333 | # Additional compiler flags for building library objects. | 
|  | 36334 | pic_flag=$lt_lt_prog_compiler_pic_CXX | 
|  | 36335 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36336 | # How to pass a linker flag through the compiler. | 
|  | 36337 | wl=$lt_lt_prog_compiler_wl_CXX | 
|  | 36338 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36339 | # Compiler flag to prevent dynamic linking. | 
|  | 36340 | link_static_flag=$lt_lt_prog_compiler_static_CXX | 
|  | 36341 |  | 
|  | 36342 | # Does compiler simultaneously support -c and -o options? | 
|  | 36343 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | 
|  | 36344 |  | 
|  | 36345 | # Whether or not to add -lc for building shared libraries. | 
|  | 36346 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | 
|  | 36347 |  | 
|  | 36348 | # Whether or not to disallow shared libs when runtime libs are static. | 
|  | 36349 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | 
|  | 36350 |  | 
|  | 36351 | # Compiler flag to allow reflexive dlopens. | 
|  | 36352 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | 
|  | 36353 |  | 
|  | 36354 | # Compiler flag to generate shared objects directly from archives. | 
|  | 36355 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | 
|  | 36356 |  | 
|  | 36357 | # Whether the compiler copes with passing no objects directly. | 
|  | 36358 | compiler_needs_object=$lt_compiler_needs_object_CXX | 
|  | 36359 |  | 
|  | 36360 | # Create an old-style archive from a shared archive. | 
|  | 36361 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | 
|  | 36362 |  | 
|  | 36363 | # Create a temporary old-style archive to link instead of a shared archive. | 
|  | 36364 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | 
|  | 36365 |  | 
|  | 36366 | # Commands used to build a shared archive. | 
|  | 36367 | archive_cmds=$lt_archive_cmds_CXX | 
|  | 36368 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | 
|  | 36369 |  | 
|  | 36370 | # Commands used to build a loadable module if different from building | 
|  | 36371 | # a shared archive. | 
|  | 36372 | module_cmds=$lt_module_cmds_CXX | 
|  | 36373 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | 
|  | 36374 |  | 
|  | 36375 | # Whether we are building with GNU ld or not. | 
|  | 36376 | with_gnu_ld=$lt_with_gnu_ld_CXX | 
|  | 36377 |  | 
|  | 36378 | # Flag that allows shared libraries with undefined symbols to be built. | 
|  | 36379 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | 
|  | 36380 |  | 
|  | 36381 | # Flag that enforces no undefined symbols. | 
|  | 36382 | no_undefined_flag=$lt_no_undefined_flag_CXX | 
|  | 36383 |  | 
|  | 36384 | # Flag to hardcode \$libdir into a binary during linking. | 
|  | 36385 | # This must work even if \$libdir does not exist | 
|  | 36386 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | 
|  | 36387 |  | 
|  | 36388 | # If ld is used when linking, flag to hardcode \$libdir into a binary | 
|  | 36389 | # during linking.  This must work even if \$libdir does not exist. | 
|  | 36390 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | 
|  | 36391 |  | 
|  | 36392 | # Whether we need a single "-rpath" flag with a separated argument. | 
|  | 36393 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | 
|  | 36394 |  | 
|  | 36395 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 36396 | # DIR into the resulting binary. | 
|  | 36397 | hardcode_direct=$hardcode_direct_CXX | 
|  | 36398 |  | 
|  | 36399 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | 
|  | 36400 | # DIR into the resulting binary and the resulting library dependency is | 
|  | 36401 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | 
|  | 36402 | # library is relocated. | 
|  | 36403 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX | 
|  | 36404 |  | 
|  | 36405 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | 
|  | 36406 | # into the resulting binary. | 
|  | 36407 | hardcode_minus_L=$hardcode_minus_L_CXX | 
|  | 36408 |  | 
|  | 36409 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | 
|  | 36410 | # into the resulting binary. | 
|  | 36411 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | 
|  | 36412 |  | 
|  | 36413 | # Set to "yes" if building a shared library automatically hardcodes DIR | 
|  | 36414 | # into the library and all subsequent libraries and executables linked | 
|  | 36415 | # against it. | 
|  | 36416 | hardcode_automatic=$hardcode_automatic_CXX | 
|  | 36417 |  | 
|  | 36418 | # Set to yes if linker adds runtime paths of dependent libraries | 
|  | 36419 | # to runtime path list. | 
|  | 36420 | inherit_rpath=$inherit_rpath_CXX | 
|  | 36421 |  | 
|  | 36422 | # Whether libtool must link a program against all its dependency libraries. | 
|  | 36423 | link_all_deplibs=$link_all_deplibs_CXX | 
|  | 36424 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36425 | # Set to "yes" if exported symbols are required. | 
|  | 36426 | always_export_symbols=$always_export_symbols_CXX | 
|  | 36427 |  | 
|  | 36428 | # The commands to list exported symbols. | 
|  | 36429 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | 
|  | 36430 |  | 
|  | 36431 | # Symbols that should not be listed in the preloaded symbols. | 
|  | 36432 | exclude_expsyms=$lt_exclude_expsyms_CXX | 
|  | 36433 |  | 
|  | 36434 | # Symbols that must always be exported. | 
|  | 36435 | include_expsyms=$lt_include_expsyms_CXX | 
|  | 36436 |  | 
|  | 36437 | # Commands necessary for linking programs (against libraries) with templates. | 
|  | 36438 | prelink_cmds=$lt_prelink_cmds_CXX | 
|  | 36439 |  | 
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36440 | # Commands necessary for finishing linking programs. | 
|  | 36441 | postlink_cmds=$lt_postlink_cmds_CXX | 
|  | 36442 |  | 
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36443 | # Specify filename containing input files. | 
|  | 36444 | file_list_spec=$lt_file_list_spec_CXX | 
|  | 36445 |  | 
|  | 36446 | # How to hardcode a shared library path into an executable. | 
|  | 36447 | hardcode_action=$hardcode_action_CXX | 
|  | 36448 |  | 
|  | 36449 | # The directories searched by this compiler when creating a shared library. | 
|  | 36450 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | 
|  | 36451 |  | 
|  | 36452 | # Dependencies to place before and after the objects being linked to | 
|  | 36453 | # create a shared library. | 
|  | 36454 | predep_objects=$lt_predep_objects_CXX | 
|  | 36455 | postdep_objects=$lt_postdep_objects_CXX | 
|  | 36456 | predeps=$lt_predeps_CXX | 
|  | 36457 | postdeps=$lt_postdeps_CXX | 
|  | 36458 |  | 
|  | 36459 | # The library search path used internally by the compiler when linking | 
|  | 36460 | # a shared library. | 
|  | 36461 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | 
|  | 36462 |  | 
|  | 36463 | # ### END LIBTOOL TAG CONFIG: CXX | 
|  | 36464 | _LT_EOF | 
|  | 36465 |  | 
|  | 36466 | ;; | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36467 | "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;; | 
|  | 36468 | "Magick-config.in":C) chmod +x magick/Magick-config ;; | 
|  | 36469 | "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;; | 
|  | 36470 | "Wand-config.in":C) chmod +x wand/Wand-config ;; | 
|  | 36471 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; | 
|  | 36472 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; | 
|  | 36473 |  | 
|  | 36474 | esac | 
|  | 36475 | done # for ac_tag | 
|  | 36476 |  | 
|  | 36477 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36478 | as_fn_exit 0 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36479 | _ACEOF | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36480 | ac_clean_files=$ac_clean_files_save | 
|  | 36481 |  | 
|  | 36482 | test $ac_write_fail = 0 || | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36483 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36484 |  | 
|  | 36485 |  | 
|  | 36486 | # configure is writing to config.log, and then calls config.status. | 
|  | 36487 | # config.status does its own redirection, appending to config.log. | 
|  | 36488 | # Unfortunately, on DOS this fails, as config.log is still kept open | 
|  | 36489 | # by configure, so config.status won't be able to write to it; its | 
|  | 36490 | # output is simply discarded.  So we exec the FD to /dev/null, | 
|  | 36491 | # effectively closing config.log, so it can be properly (re)opened and | 
|  | 36492 | # appended to by config.status.  When coming back to configure, we | 
|  | 36493 | # need to make the FD available again. | 
|  | 36494 | if test "$no_create" != yes; then | 
|  | 36495 | ac_cs_success=: | 
|  | 36496 | ac_config_status_args= | 
|  | 36497 | test "$silent" = yes && | 
|  | 36498 | ac_config_status_args="$ac_config_status_args --quiet" | 
|  | 36499 | exec 5>/dev/null | 
|  | 36500 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | 
|  | 36501 | exec 5>>config.log | 
|  | 36502 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | 
|  | 36503 | # would make configure fail if this is the last instruction. | 
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36504 | $ac_cs_success || as_fn_exit 1 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36505 | fi | 
|  | 36506 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36507 | { $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] | 36508 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | 
|  | 36509 | fi | 
|  | 36510 |  | 
|  | 36511 |  | 
|  | 36512 | rm -f magick-version | 
|  | 36513 |  | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 36514 | result_dejavu_font_dir='none' | 
|  | 36515 | if test "${dejavu_font_dir}x" != 'x'; then | 
|  | 36516 | result_dejavu_font_dir=$dejavu_font_dir | 
|  | 36517 | fi | 
|  | 36518 |  | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36519 | result_ghostscript_font_dir='none' | 
|  | 36520 | if test "${ghostscript_font_dir}x" != 'x'; then | 
|  | 36521 | result_ghostscript_font_dir=$ghostscript_font_dir | 
|  | 36522 | fi | 
|  | 36523 |  | 
|  | 36524 | result_windows_font_dir='none' | 
|  | 36525 | if test "${windows_font_dir}x" != 'x'; then | 
|  | 36526 | result_windows_font_dir=${windows_font_dir} | 
|  | 36527 | fi | 
|  | 36528 |  | 
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36530 | ImageMagick is configured as follows. Please verify that this configuration | 
|  | 36531 | matches your expectations. | 
|  | 36532 |  | 
|  | 36533 | Host system type: $host | 
|  | 36534 | Build system type: $build | 
|  | 36535 |  | 
|  | 36536 | Option                        Value | 
|  | 36537 | ------------------------------------------------------------------------------- | 
|  | 36538 | Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs | 
|  | 36539 | Static libraries  --enable-static=$enable_static		$libtool_build_static_libs | 
|  | 36540 | Module support    --with-modules=$with_modules		$with_modules | 
|  | 36541 | GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld | 
|  | 36542 | Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth | 
|  | 36543 | High Dynamic Range Imagery | 
|  | 36544 | --enable-hdri=$enable_hdri		$enable_hdri | 
|  | 36545 |  | 
|  | 36546 | Delegate Configuration: | 
|  | 36547 | BZLIB             --with-bzlib=$with_bzlib		$have_bzlib | 
|  | 36548 | Autotrace         --with-autotrace=$with_autotrace		$have_autotrace | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 36549 | Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36550 | DJVU              --with-djvu=$with_djvu		$have_djvu | 
|  | 36551 | DPS               --with-dps=$with_dps		$have_dps | 
|  | 36552 | FFTW              --with-fftw=$with_fftw		$have_fftw | 
|  | 36553 | FlashPIX          --with-fpx=$with_fpx		$have_fpx | 
|  | 36554 | FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig | 
|  | 36555 | FreeType          --with-freetype=$with_freetype		$have_freetype | 
|  | 36556 | GhostPCL          None				$PCLDelegate ($PCLVersion) | 
|  | 36557 | GhostXPS          None				$XPSDelegate ($XPSVersion) | 
|  | 36558 | Ghostscript       None				$PSDelegate ($GSVersion) | 
|  | 36559 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir | 
|  | 36560 | Ghostscript lib   --with-gslib=$with_gslib		$have_gslib | 
|  | 36561 | Graphviz          --with-gvc=$with_gvc		$have_gvc | 
|  | 36562 | JBIG              --with-jbig=$with_jbig		$have_jbig | 
|  | 36563 | JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg | 
|  | 36564 | JPEG-2000         --with-jp2=$with_jp2		$have_jp2 | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 36565 | LCMS v1           --with-lcms=$with_lcms		$have_lcms | 
|  | 36566 | LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36567 | LQR               --with-lqr=$with_lqr		$have_lqr | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 36568 | LZMA              --with-lzma=$with_lzma		$have_lzma | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36569 | Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus | 
|  | 36570 | OpenEXR           --with-openexr=$with_openexr		$have_openexr | 
|  | 36571 | PERL              --with-perl=$with_perl		$have_perl | 
|  | 36572 | PNG               --with-png=$with_png		$have_png | 
|  | 36573 | RSVG              --with-rsvg=$with_rsvg		$have_rsvg | 
|  | 36574 | TIFF              --with-tiff=$with_tiff		$have_tiff | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 36575 | WEBP              --with-webp=$with_webp		$have_webp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36576 | Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir | 
|  | 36577 | WMF               --with-wmf=$with_wmf		$have_wmf | 
|  | 36578 | X11               --with-x=$with_x			$have_x | 
|  | 36579 | XML               --with-xml=$with_xml		$have_xml | 
|  | 36580 | ZLIB              --with-zlib=$with_zlib		$have_zlib | 
|  | 36581 |  | 
|  | 36582 | X11 Configuration: | 
|  | 36583 | X_CFLAGS        = $X_CFLAGS | 
|  | 36584 | X_PRE_LIBS      = $X_PRE_LIBS | 
|  | 36585 | X_LIBS          = $X_LIBS | 
|  | 36586 | X_EXTRA_LIBS    = $X_EXTRA_LIBS | 
|  | 36587 |  | 
|  | 36588 | Options used to compile and link: | 
|  | 36589 | PREFIX          = $PREFIX_DIR | 
|  | 36590 | EXEC-PREFIX     = $EXEC_PREFIX_DIR | 
|  | 36591 | VERSION         = $PACKAGE_VERSION | 
|  | 36592 | CC              = $CC | 
|  | 36593 | CFLAGS          = $CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36594 | CPPFLAGS        = $MAGICK_CPPFLAGS | 
|  | 36595 | PCFLAGS         = $MAGICK_PCFLAGS | 
|  | 36596 | DEFS            = $DEFS | 
|  | 36597 | LDFLAGS         = $LDFLAGS | 
|  | 36598 | MAGICK_LDFLAGS  = $MAGICK_LDFLAGS | 
|  | 36599 | LIBS            = $MAGICK_LIBS | 
|  | 36600 | CXX             = $CXX | 
|  | 36601 | CXXFLAGS        = $CXXFLAGS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 36602 | FEATURES        = $MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36603 | " >&5 | 
|  | 36604 | $as_echo " | 
|  | 36605 | ImageMagick is configured as follows. Please verify that this configuration | 
|  | 36606 | matches your expectations. | 
|  | 36607 |  | 
|  | 36608 | Host system type: $host | 
|  | 36609 | Build system type: $build | 
|  | 36610 |  | 
|  | 36611 | Option                        Value | 
|  | 36612 | ------------------------------------------------------------------------------- | 
|  | 36613 | Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs | 
|  | 36614 | Static libraries  --enable-static=$enable_static		$libtool_build_static_libs | 
|  | 36615 | Module support    --with-modules=$with_modules		$with_modules | 
|  | 36616 | GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld | 
|  | 36617 | Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth | 
|  | 36618 | High Dynamic Range Imagery | 
|  | 36619 | --enable-hdri=$enable_hdri		$enable_hdri | 
|  | 36620 |  | 
|  | 36621 | Delegate Configuration: | 
|  | 36622 | BZLIB             --with-bzlib=$with_bzlib		$have_bzlib | 
|  | 36623 | Autotrace         --with-autotrace=$with_autotrace		$have_autotrace | 
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 36624 | Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36625 | DJVU              --with-djvu=$with_djvu		$have_djvu | 
|  | 36626 | DPS               --with-dps=$with_dps		$have_dps | 
|  | 36627 | FFTW              --with-fftw=$with_fftw		$have_fftw | 
|  | 36628 | FlashPIX          --with-fpx=$with_fpx		$have_fpx | 
|  | 36629 | FontConfig        --with-fontconfig=$with_fontconfig		$have_fontconfig | 
|  | 36630 | FreeType          --with-freetype=$with_freetype		$have_freetype | 
|  | 36631 | GhostPCL          None				$PCLDelegate ($PCLVersion) | 
|  | 36632 | GhostXPS          None				$XPSDelegate ($XPSVersion) | 
|  | 36633 | Ghostscript       None				$PSDelegate ($GSVersion) | 
|  | 36634 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir | 
|  | 36635 | Ghostscript lib   --with-gslib=$with_gslib		$have_gslib | 
|  | 36636 | Graphviz          --with-gvc=$with_gvc		$have_gvc | 
|  | 36637 | JBIG              --with-jbig=$with_jbig		$have_jbig | 
|  | 36638 | JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg | 
|  | 36639 | JPEG-2000         --with-jp2=$with_jp2		$have_jp2 | 
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 36640 | LCMS v1           --with-lcms=$with_lcms		$have_lcms | 
|  | 36641 | LCMS v2           --with-lcms2=$with_lcms2		$have_lcms2 | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36642 | LQR               --with-lqr=$with_lqr		$have_lqr | 
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 36643 | LZMA              --with-lzma=$with_lzma		$have_lzma | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36644 | Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus | 
|  | 36645 | OpenEXR           --with-openexr=$with_openexr		$have_openexr | 
|  | 36646 | PERL              --with-perl=$with_perl		$have_perl | 
|  | 36647 | PNG               --with-png=$with_png		$have_png | 
|  | 36648 | RSVG              --with-rsvg=$with_rsvg		$have_rsvg | 
|  | 36649 | TIFF              --with-tiff=$with_tiff		$have_tiff | 
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 36650 | WEBP              --with-webp=$with_webp		$have_webp | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36651 | Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir | 
|  | 36652 | WMF               --with-wmf=$with_wmf		$have_wmf | 
|  | 36653 | X11               --with-x=$with_x			$have_x | 
|  | 36654 | XML               --with-xml=$with_xml		$have_xml | 
|  | 36655 | ZLIB              --with-zlib=$with_zlib		$have_zlib | 
|  | 36656 |  | 
|  | 36657 | X11 Configuration: | 
|  | 36658 | X_CFLAGS        = $X_CFLAGS | 
|  | 36659 | X_PRE_LIBS      = $X_PRE_LIBS | 
|  | 36660 | X_LIBS          = $X_LIBS | 
|  | 36661 | X_EXTRA_LIBS    = $X_EXTRA_LIBS | 
|  | 36662 |  | 
|  | 36663 | Options used to compile and link: | 
|  | 36664 | PREFIX          = $PREFIX_DIR | 
|  | 36665 | EXEC-PREFIX     = $EXEC_PREFIX_DIR | 
|  | 36666 | VERSION         = $PACKAGE_VERSION | 
|  | 36667 | CC              = $CC | 
|  | 36668 | CFLAGS          = $CFLAGS | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36669 | CPPFLAGS        = $MAGICK_CPPFLAGS | 
|  | 36670 | PCFLAGS         = $MAGICK_PCFLAGS | 
|  | 36671 | DEFS            = $DEFS | 
|  | 36672 | LDFLAGS         = $LDFLAGS | 
|  | 36673 | MAGICK_LDFLAGS  = $MAGICK_LDFLAGS | 
|  | 36674 | LIBS            = $MAGICK_LIBS | 
|  | 36675 | CXX             = $CXX | 
|  | 36676 | CXXFLAGS        = $CXXFLAGS | 
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 36677 | FEATURES        = $MAGICK_FEATURES | 
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36678 | " >&6; } |