| 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 | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <http://www.imagemagick.org>. |
| 6 | # |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 7 | # |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 9 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33 | fi |
| 34 | |
| 35 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | 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] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | 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] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 60 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # 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] | 92 | as_myself= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 93 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
| 103 | |
| 104 | ;; |
| 105 | esac |
| 106 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 107 | # in which case we are not to be found in the path. |
| 108 | if test "x$as_myself" = x; then |
| 109 | as_myself=$0 |
| 110 | fi |
| 111 | if test ! -f "$as_myself"; then |
| 112 | $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] | 113 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 116 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 118 | # suppresses any "Segmentation fault" message there. '((' could |
| 119 | # trigger a bug in pdksh 5.2.14. |
| 120 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 121 | do eval test x\${$as_var+set} = xset \ |
| 122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
| 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
| 133 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 137 | # Use a proper internal environment variable to ensure we don't fall |
| 138 | # into an infinite loop, continuously re-executing ourselves. |
| 139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 140 | _as_can_reexec=no; export _as_can_reexec; |
| 141 | # We cannot yet assume a decent shell, so we have to provide a |
| 142 | # neutralization value for shells without unset; and this also |
| 143 | # works around shells that cannot unset nonexistent variables. |
| 144 | # Preserve -v and -x to the replacement shell. |
| 145 | BASH_ENV=/dev/null |
| 146 | ENV=/dev/null |
| 147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 148 | case $- in # (((( |
| 149 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 150 | *v* ) as_opts=-v ;; |
| 151 | *x* ) as_opts=-x ;; |
| 152 | * ) as_opts= ;; |
| 153 | esac |
| 154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 155 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 156 | # out after a failed `exec'. |
| 157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 158 | as_fn_exit 255 |
| 159 | fi |
| 160 | # We don't want this to propagate to other subprocesses. |
| 161 | { _as_can_reexec=; unset _as_can_reexec;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 162 | if test "x$CONFIG_SHELL" = x; then |
| 163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 164 | emulate sh |
| 165 | NULLCMD=: |
| 166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 167 | # is contrary to our usage. Disable this feature. |
| 168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 169 | setopt NO_GLOB_SUBST |
| 170 | else |
| 171 | case \`(set -o) 2>/dev/null\` in #( |
| 172 | *posix*) : |
| 173 | set -o posix ;; #( |
| 174 | *) : |
| 175 | ;; |
| 176 | esac |
| 177 | fi |
| 178 | " |
| 179 | as_required="as_fn_return () { (exit \$1); } |
| 180 | as_fn_success () { as_fn_return 0; } |
| 181 | as_fn_failure () { as_fn_return 1; } |
| 182 | as_fn_ret_success () { return 0; } |
| 183 | as_fn_ret_failure () { return 1; } |
| 184 | |
| 185 | exitcode=0 |
| 186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 191 | |
| 192 | else |
| 193 | exitcode=1; echo positional parameters were not saved. |
| 194 | fi |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 200 | 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] | 201 | test \$(( 1 + 1 )) = 2 || exit 1 |
| 202 | |
| 203 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 204 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 206 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 207 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 208 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 209 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 210 | if (eval "$as_required") 2>/dev/null; then : |
| 211 | as_have_required=yes |
| 212 | else |
| 213 | as_have_required=no |
| 214 | fi |
| 215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 216 | |
| 217 | else |
| 218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 219 | as_found=false |
| 220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 221 | do |
| 222 | IFS=$as_save_IFS |
| 223 | test -z "$as_dir" && as_dir=. |
| 224 | as_found=: |
| 225 | case $as_dir in #( |
| 226 | /*) |
| 227 | for as_base in sh bash ksh sh5; do |
| 228 | # Try only shells that exist, to save several forks. |
| 229 | as_shell=$as_dir/$as_base |
| 230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 232 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 234 | break 2 |
| 235 | fi |
| 236 | fi |
| 237 | done;; |
| 238 | esac |
| 239 | as_found=false |
| 240 | done |
| 241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 243 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 244 | fi; } |
| 245 | IFS=$as_save_IFS |
| 246 | |
| 247 | |
| 248 | if test "x$CONFIG_SHELL" != x; then : |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 249 | export CONFIG_SHELL |
| 250 | # We cannot yet assume a decent shell, so we have to provide a |
| 251 | # neutralization value for shells without unset; and this also |
| 252 | # works around shells that cannot unset nonexistent variables. |
| 253 | # Preserve -v and -x to the replacement shell. |
| 254 | BASH_ENV=/dev/null |
| 255 | ENV=/dev/null |
| 256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 257 | case $- in # (((( |
| 258 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 259 | *v* ) as_opts=-v ;; |
| 260 | *x* ) as_opts=-x ;; |
| 261 | * ) as_opts= ;; |
| 262 | esac |
| 263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 264 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 265 | # out after a failed `exec'. |
| 266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 267 | exit 255 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 268 | fi |
| 269 | |
| 270 | if test x$as_have_required = xno; then : |
| 271 | $as_echo "$0: This script requires a shell more modern than all" |
| 272 | $as_echo "$0: the shells that I found on your system." |
| 273 | if test x${ZSH_VERSION+set} = xset ; then |
| 274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 276 | else |
| 277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 278 | $0: http://www.imagemagick.org about your system, including |
| 279 | $0: any error possibly output before this message. Then |
| 280 | $0: install a modern shell, or manually run the script |
| 281 | $0: under such a shell if you do have one." |
| 282 | fi |
| 283 | exit 1 |
| 284 | fi |
| 285 | fi |
| 286 | fi |
| 287 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 288 | export SHELL |
| 289 | # Unset more variables known to interfere with behavior of common tools. |
| 290 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 291 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 292 | |
| 293 | ## --------------------- ## |
| 294 | ## M4sh Shell Functions. ## |
| 295 | ## --------------------- ## |
| 296 | # as_fn_unset VAR |
| 297 | # --------------- |
| 298 | # Portably unset VAR. |
| 299 | as_fn_unset () |
| 300 | { |
| 301 | { eval $1=; unset $1;} |
| 302 | } |
| 303 | as_unset=as_fn_unset |
| 304 | |
| 305 | # as_fn_set_status STATUS |
| 306 | # ----------------------- |
| 307 | # Set $? to STATUS, without forking. |
| 308 | as_fn_set_status () |
| 309 | { |
| 310 | return $1 |
| 311 | } # as_fn_set_status |
| 312 | |
| 313 | # as_fn_exit STATUS |
| 314 | # ----------------- |
| 315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 316 | as_fn_exit () |
| 317 | { |
| 318 | set +e |
| 319 | as_fn_set_status $1 |
| 320 | exit $1 |
| 321 | } # as_fn_exit |
| 322 | |
| 323 | # as_fn_mkdir_p |
| 324 | # ------------- |
| 325 | # Create "$as_dir" as a directory, including parents if necessary. |
| 326 | as_fn_mkdir_p () |
| 327 | { |
| 328 | |
| 329 | case $as_dir in #( |
| 330 | -*) as_dir=./$as_dir;; |
| 331 | esac |
| 332 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 333 | as_dirs= |
| 334 | while :; do |
| 335 | case $as_dir in #( |
| 336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 337 | *) as_qdir=$as_dir;; |
| 338 | esac |
| 339 | as_dirs="'$as_qdir' $as_dirs" |
| 340 | as_dir=`$as_dirname -- "$as_dir" || |
| 341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 342 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 343 | X"$as_dir" : 'X\(//\)$' \| \ |
| 344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 345 | $as_echo X"$as_dir" | |
| 346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 347 | s//\1/ |
| 348 | q |
| 349 | } |
| 350 | /^X\(\/\/\)[^/].*/{ |
| 351 | s//\1/ |
| 352 | q |
| 353 | } |
| 354 | /^X\(\/\/\)$/{ |
| 355 | s//\1/ |
| 356 | q |
| 357 | } |
| 358 | /^X\(\/\).*/{ |
| 359 | s//\1/ |
| 360 | q |
| 361 | } |
| 362 | s/.*/./; q'` |
| 363 | test -d "$as_dir" && break |
| 364 | done |
| 365 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 367 | |
| 368 | |
| 369 | } # as_fn_mkdir_p |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 370 | |
| 371 | # as_fn_executable_p FILE |
| 372 | # ----------------------- |
| 373 | # Test if FILE is an executable regular file. |
| 374 | as_fn_executable_p () |
| 375 | { |
| 376 | test -f "$1" && test -x "$1" |
| 377 | } # as_fn_executable_p |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 378 | # as_fn_append VAR VALUE |
| 379 | # ---------------------- |
| 380 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 381 | # advantage of any shell optimizations that allow amortized linear growth over |
| 382 | # repeated appends, instead of the typical quadratic growth present in naive |
| 383 | # implementations. |
| 384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 385 | eval 'as_fn_append () |
| 386 | { |
| 387 | eval $1+=\$2 |
| 388 | }' |
| 389 | else |
| 390 | as_fn_append () |
| 391 | { |
| 392 | eval $1=\$$1\$2 |
| 393 | } |
| 394 | fi # as_fn_append |
| 395 | |
| 396 | # as_fn_arith ARG... |
| 397 | # ------------------ |
| 398 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 | # must be portable across $(()) and expr. |
| 401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 402 | eval 'as_fn_arith () |
| 403 | { |
| 404 | as_val=$(( $* )) |
| 405 | }' |
| 406 | else |
| 407 | as_fn_arith () |
| 408 | { |
| 409 | as_val=`expr "$@" || test $? -eq 1` |
| 410 | } |
| 411 | fi # as_fn_arith |
| 412 | |
| 413 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 415 | # ---------------------------------------- |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 418 | # script with STATUS, using 1 if that was 0. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 419 | as_fn_error () |
| 420 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 421 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 422 | if test "$4"; then |
| 423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 425 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 426 | $as_echo "$as_me: error: $2" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 427 | as_fn_exit $as_status |
| 428 | } # as_fn_error |
| 429 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 432 | as_expr=expr |
| 433 | else |
| 434 | as_expr=false |
| 435 | fi |
| 436 | |
| 437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 438 | as_basename=basename |
| 439 | else |
| 440 | as_basename=false |
| 441 | fi |
| 442 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 444 | as_dirname=dirname |
| 445 | else |
| 446 | as_dirname=false |
| 447 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 448 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 449 | as_me=`$as_basename -- "$0" || |
| 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 451 | X"$0" : 'X\(//\)$' \| \ |
| 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 453 | $as_echo X/"$0" | |
| 454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 455 | s//\1/ |
| 456 | q |
| 457 | } |
| 458 | /^X\/\(\/\/\)$/{ |
| 459 | s//\1/ |
| 460 | q |
| 461 | } |
| 462 | /^X\/\(\/\).*/{ |
| 463 | s//\1/ |
| 464 | q |
| 465 | } |
| 466 | s/.*/./; q'` |
| 467 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 468 | # Avoid depending upon Character Ranges. |
| 469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 472 | as_cr_digits='0123456789' |
| 473 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 474 | |
| 475 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 481 | sed -n ' |
| 482 | p |
| 483 | /[$]LINENO/= |
| 484 | ' <$as_myself | |
| 485 | sed ' |
| 486 | s/[$]LINENO.*/&-/ |
| 487 | t lineno |
| 488 | b |
| 489 | :lineno |
| 490 | N |
| 491 | :loop |
| 492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 493 | t loop |
| 494 | s/-\n.*// |
| 495 | ' >$as_me.lineno && |
| 496 | chmod +x "$as_me.lineno" || |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 497 | { $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] | 498 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 500 | # already done that, so ensure we don't try to do so again and fall |
| 501 | # in an infinite loop. This has already happened in practice. |
| 502 | _as_can_reexec=no; export _as_can_reexec |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 503 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 504 | # (the dirname of $[0] is not the place where we might find the |
| 505 | # original and so on. Autoconf is especially sensitive to this). |
| 506 | . "./$as_me.lineno" |
| 507 | # Exit status is that of the last command. |
| 508 | exit |
| 509 | } |
| 510 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 511 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 512 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 513 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 514 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 516 | xy) ECHO_C='\c';; |
| 517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 518 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 519 | esac;; |
| 520 | *) |
| 521 | ECHO_N='-n';; |
| 522 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 523 | |
| 524 | rm -f conf$$ conf$$.exe conf$$.file |
| 525 | if test -d conf$$.dir; then |
| 526 | rm -f conf$$.dir/conf$$.file |
| 527 | else |
| 528 | rm -f conf$$.dir |
| 529 | mkdir conf$$.dir 2>/dev/null |
| 530 | fi |
| 531 | if (echo >conf$$.file) 2>/dev/null; then |
| 532 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 533 | as_ln_s='ln -s' |
| 534 | # ... but there are two gotchas: |
| 535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 537 | # In both cases, we have to default to `cp -pR'. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 541 | as_ln_s=ln |
| 542 | else |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 543 | as_ln_s='cp -pR' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 544 | fi |
| 545 | else |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 546 | as_ln_s='cp -pR' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 547 | fi |
| 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 549 | rmdir conf$$.dir 2>/dev/null |
| 550 | |
| 551 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 553 | else |
| 554 | test -d ./-p && rmdir ./-p |
| 555 | as_mkdir_p=false |
| 556 | fi |
| 557 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 558 | as_test_x='test -x' |
| 559 | as_executable_p=as_fn_executable_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 560 | |
| 561 | # Sed expression to map a string onto a valid CPP name. |
| 562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 563 | |
| 564 | # Sed expression to map a string onto a valid variable name. |
| 565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 566 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 568 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 569 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 571 | exec 6>&1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 572 | |
| 573 | # Name of the host. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 574 | # 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] | 575 | # so uname gets run too. |
| 576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 577 | |
| 578 | # |
| 579 | # Initializations. |
| 580 | # |
| 581 | ac_default_prefix=/usr/local |
| 582 | ac_clean_files= |
| 583 | ac_config_libobj_dir=. |
| 584 | LIBOBJS= |
| 585 | cross_compiling=no |
| 586 | subdirs= |
| 587 | MFLAGS= |
| 588 | MAKEFLAGS= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 589 | |
| 590 | # Identity of this package. |
| 591 | PACKAGE_NAME='ImageMagick' |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 592 | PACKAGE_TARNAME='ImageMagick' |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 593 | PACKAGE_VERSION='7.0.0-0' |
| 594 | PACKAGE_STRING='ImageMagick 7.0.0-0' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 595 | PACKAGE_BUGREPORT='http://www.imagemagick.org' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 596 | PACKAGE_URL='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 597 | |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 598 | ac_unique_file="MagickCore/MagickCore.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 599 | # Factoring default headers for most tests. |
| 600 | ac_includes_default="\ |
| 601 | #include <stdio.h> |
| 602 | #ifdef HAVE_SYS_TYPES_H |
| 603 | # include <sys/types.h> |
| 604 | #endif |
| 605 | #ifdef HAVE_SYS_STAT_H |
| 606 | # include <sys/stat.h> |
| 607 | #endif |
| 608 | #ifdef STDC_HEADERS |
| 609 | # include <stdlib.h> |
| 610 | # include <stddef.h> |
| 611 | #else |
| 612 | # ifdef HAVE_STDLIB_H |
| 613 | # include <stdlib.h> |
| 614 | # endif |
| 615 | #endif |
| 616 | #ifdef HAVE_STRING_H |
| 617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 618 | # include <memory.h> |
| 619 | # endif |
| 620 | # include <string.h> |
| 621 | #endif |
| 622 | #ifdef HAVE_STRINGS_H |
| 623 | # include <strings.h> |
| 624 | #endif |
| 625 | #ifdef HAVE_INTTYPES_H |
| 626 | # include <inttypes.h> |
| 627 | #endif |
| 628 | #ifdef HAVE_STDINT_H |
| 629 | # include <stdint.h> |
| 630 | #endif |
| 631 | #ifdef HAVE_UNISTD_H |
| 632 | # include <unistd.h> |
| 633 | #endif" |
| 634 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 635 | ac_header_list= |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 636 | ac_subst_vars='am__EXEEXT_FALSE |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 637 | am__EXEEXT_TRUE |
| 638 | LTLIBOBJS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 639 | MAGICK_LIBS |
| 640 | MAGICK_LDFLAGS |
| 641 | MAGICK_PCFLAGS |
| 642 | MAGICK_CPPFLAGS |
| 643 | MAGICK_CXXFLAGS |
| 644 | MAGICK_CFLAGS |
| 645 | MAGICK_DEP_LIBS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 646 | OSX_GCOV_LDFLAG |
| cristy | fa16118 | 2012-12-19 15:45:28 +0000 | [diff] [blame] | 647 | MAGICK_FEATURES |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 648 | MAGICK_DELEGATES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 649 | MAGICKCORE_PATH |
| 650 | PERL_SUPPORTS_DESTDIR |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 651 | WITH_PERL_DYNAMIC_FALSE |
| 652 | WITH_PERL_DYNAMIC_TRUE |
| 653 | WITH_PERL_STATIC_FALSE |
| 654 | WITH_PERL_STATIC_TRUE |
| 655 | WITH_PERL_FALSE |
| 656 | WITH_PERL_TRUE |
| 657 | PERL_VERSION |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 658 | GSVersion |
| 659 | GSPSDevice |
| 660 | GSPDFDevice |
| 661 | GSMonoDevice |
| 662 | GSEPSDevice |
| 663 | GSColorDevice |
| 664 | GSCMYKDevice |
| 665 | GSAlphaDevice |
| 666 | XPSVersion |
| 667 | XPSCMYKDevice |
| 668 | XPSColorDevice |
| 669 | XPSMonoDevice |
| 670 | PCLVersion |
| 671 | PCLCMYKDevice |
| 672 | PCLColorDevice |
| 673 | PCLMonoDevice |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 674 | ZIP_DELEGATE_FALSE |
| 675 | ZIP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 676 | ZIP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 677 | P7ZIP_DELEGATE_FALSE |
| 678 | P7ZIP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 679 | P7ZIP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 680 | RPM_DELEGATE_FALSE |
| 681 | RPM_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 682 | RPM |
| 683 | PERL |
| 684 | TAR |
| 685 | ShowImageDelegate |
| 686 | type_include_files |
| 687 | ghostscript_font_dir |
| 688 | windows_font_dir |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 689 | dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 690 | PrintDelegate |
| 691 | ZipDelegate |
| 692 | XPSDelegate |
| 693 | WWWDecodeDelegate |
| 694 | WMFDecodeDelegate |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 695 | UniconvertorDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 696 | TXTDelegate |
| cristy | ec6934f | 2012-08-14 18:38:40 +0000 | [diff] [blame] | 697 | SVGDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 698 | SCANDecodeDelegate |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 699 | RSVGDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 700 | RMDelegate |
| 701 | RLEEncodeDelegate |
| 702 | PSDelegate |
| 703 | POVDelegate |
| 704 | PGPDecodeDelegate |
| 705 | PCLDelegate |
| 706 | MVDelegate |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 707 | MrSIDDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 708 | MPEGEncodeDelegate |
| 709 | MPEGDecodeDelegate |
| 710 | MANDelegate |
| 711 | LaunchDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 712 | LPRDelegate |
| 713 | LPDelegate |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 714 | JXREncodeDelegate |
| 715 | JXRDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 716 | ILBMEncodeDelegate |
| 717 | ILBMDecodeDelegate |
| 718 | HTMLDecodeDelegate |
| 719 | HPGLDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 720 | GnuplotDecodeDelegate |
| 721 | MogrifyDelegate |
| 722 | DisplayDelegate |
| 723 | ConvertDelegate |
| 724 | FIGDecodeDelegate |
| 725 | EditorDelegate |
| 726 | EchoDelegate |
| 727 | DVIDecodeDelegate |
| 728 | GVCDecodeDelegate |
| 729 | DNGDecodeDelegate |
| 730 | CatDelegate |
| 731 | CGMDecodeDelegate |
| 732 | BrowseDelegate |
| 733 | BZIPDelegate |
| 734 | BlenderDecodeDelegate |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 735 | AutotraceDecodeDelegate |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 736 | SHAREARCH_PATH |
| cristy | 5437803 | 2012-12-04 15:52:20 +0000 | [diff] [blame] | 737 | SHAREARCH_RELATIVE_PATH |
| 738 | SHAREARCH_DIRNAME |
| 739 | SHAREARCH_BASEDIRNAME |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 740 | SHARE_PATH |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 741 | CONFIGURE_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 742 | DOCUMENTATION_PATH |
| 743 | FILTER_PATH |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 744 | FILTER_DIRNAME |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 745 | CODER_PATH |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 746 | CODER_DIRNAME |
| 747 | MODULES_PATH |
| 748 | MODULES_RELATIVE_PATH |
| 749 | MODULES_DIRNAME |
| 750 | MODULES_BASEDIRNAME |
| cristy | 8d0ff76 | 2013-03-10 20:33:28 +0000 | [diff] [blame] | 751 | LIB_BIN_DIR_PATH |
| 752 | LIB_BIN_DIR_RELATIVE_PATH |
| 753 | LIB_BIN_DIR |
| 754 | LIB_BIN_BASEDIRNAME |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 755 | LIBRARY_PATH |
| 756 | EXECUTABLE_PATH |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 757 | INCLUDEARCH_PATH |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 758 | INCLUDE_PATH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 759 | PERLMAINCC |
| 760 | XML_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 761 | XML_DELEGATE_FALSE |
| 762 | XML_DELEGATE_TRUE |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 763 | xml2_config |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 764 | WMF_LIBS_DEPS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 765 | WMF_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 766 | WMF_DELEGATE_FALSE |
| 767 | WMF_DELEGATE_TRUE |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 768 | WEBP_LIBS |
| 769 | WEBP_DELEGATE_FALSE |
| 770 | WEBP_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 771 | TIFF_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 772 | TIFF_DELEGATE_FALSE |
| 773 | TIFF_DELEGATE_TRUE |
| 774 | CAIRO_DELEGATE_FALSE |
| 775 | CAIRO_DELEGATE_TRUE |
| 776 | RSVG_DELEGATE_FALSE |
| 777 | RSVG_DELEGATE_TRUE |
| 778 | CAIRO_SVG_LIBS |
| 779 | CAIRO_SVG_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 780 | RSVG_LIBS |
| 781 | RSVG_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 782 | PNG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 783 | PNG_DELEGATE_FALSE |
| 784 | PNG_DELEGATE_TRUE |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 785 | PANGOCAIRO_DELEGATE_FALSE |
| 786 | PANGOCAIRO_DELEGATE_TRUE |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 787 | PANGO_DELEGATE_FALSE |
| 788 | PANGO_DELEGATE_TRUE |
| 789 | PANGO_LIBS |
| 790 | PANGO_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 791 | OPENEXR_DELEGATE_FALSE |
| 792 | OPENEXR_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 793 | OPENEXR_LIBS |
| 794 | OPENEXR_CFLAGS |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 795 | LZMA_DELEGATE_FALSE |
| 796 | LZMA_DELEGATE_TRUE |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 797 | LZMA_LIBS |
| 798 | LZMA_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 799 | LQR_DELEGATE_FALSE |
| 800 | LQR_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 801 | LQR_LIBS |
| 802 | LQR_CFLAGS |
| 803 | LCMS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 804 | LCMS_DELEGATE_FALSE |
| 805 | LCMS_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 806 | JP2_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 807 | JP2_DELEGATE_FALSE |
| 808 | JP2_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 809 | JPEG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 810 | JPEG_DELEGATE_FALSE |
| 811 | JPEG_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 812 | JBIG_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 813 | JBIG_DELEGATE_FALSE |
| 814 | JBIG_DELEGATE_TRUE |
| 815 | GVC_DELEGATE_FALSE |
| 816 | GVC_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 817 | GVC_LIBS |
| 818 | GVC_CFLAGS |
| 819 | GS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 820 | GS_DELEGATE_FALSE |
| 821 | GS_DELEGATE_TRUE |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 822 | FREETYPE_DELEGATE_FALSE |
| 823 | FREETYPE_DELEGATE_TRUE |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 824 | FREETYPE_LIBS |
| 825 | FREETYPE_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 826 | FONTCONFIG_DELEGATE_FALSE |
| 827 | FONTCONFIG_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 828 | FONTCONFIG_LIBS |
| 829 | FONTCONFIG_CFLAGS |
| 830 | FPX_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 831 | FPX_DELEGATE_FALSE |
| 832 | FPX_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 833 | FFTW_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 834 | FFTW_DELEGATE_FALSE |
| 835 | FFTW_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 836 | DJVU_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 837 | DJVU_DELEGATE_FALSE |
| 838 | DJVU_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 839 | DPS_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 840 | DPS_DELEGATE_FALSE |
| 841 | DPS_DELEGATE_TRUE |
| 842 | AUTOTRACE_DELEGATE_FALSE |
| 843 | AUTOTRACE_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 844 | AUTOTRACE_LIBS |
| 845 | AUTOTRACE_CFLAGS |
| 846 | LIB_DL |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 847 | WITH_LTDL_FALSE |
| 848 | WITH_LTDL_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 849 | ZLIB_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 850 | ZLIB_DELEGATE_FALSE |
| 851 | ZLIB_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 852 | XEXT_LIBS |
| 853 | X11_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 854 | X11_DELEGATE_FALSE |
| 855 | X11_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 856 | X_EXTRA_LIBS |
| 857 | X_LIBS |
| 858 | X_PRE_LIBS |
| 859 | X_CFLAGS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 860 | XMKMF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 861 | BZLIB_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 862 | BZLIB_DELEGATE_FALSE |
| 863 | BZLIB_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 864 | CCMALLOCDelegate |
| 865 | UMEM_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 866 | HasUMEM_FALSE |
| 867 | HasUMEM_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 868 | THREAD_LIBS |
| 869 | GOMP_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 870 | WITH_MAGICK_PLUS_PLUS_FALSE |
| 871 | WITH_MAGICK_PLUS_PLUS_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 872 | OPENMP_CXXFLAGS |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 873 | MATH_LIBS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 874 | POW_LIB |
| 875 | LIBOBJS |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 876 | UINTPTR_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 877 | UINTPTR_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 878 | UINTMAX_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 879 | UINTMAX_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 880 | UINT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 881 | UINT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 882 | INT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 883 | INT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 884 | UINT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 885 | UINT32_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 886 | INT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 887 | INT32_T |
| 888 | UINT16_T |
| 889 | INT16_T |
| 890 | UINT8_T |
| 891 | INT8_T |
| 892 | LIBRARY_EXTRA_CPPFLAGS |
| 893 | MODULE_EXTRA_CPPFLAGS |
| 894 | LIBSTDCLDFLAGS |
| 895 | PERL_MAKE_OPTIONS |
| cristy | 3a75f06 | 2012-09-08 23:29:40 +0000 | [diff] [blame] | 896 | MAGICK_LT_RELEASE_OPTS |
| cristy | 7a26abd | 2012-12-03 00:18:59 +0000 | [diff] [blame] | 897 | MAGICK_ABI_SUFFIX |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 898 | QUANTUM_DEPTH |
| cristy | 71d8c20 | 2012-03-20 17:05:01 +0000 | [diff] [blame] | 899 | LEGACY_SUPPORT_FALSE |
| 900 | LEGACY_SUPPORT_TRUE |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 901 | MAINT |
| 902 | MAINTAINER_MODE_FALSE |
| 903 | MAINTAINER_MODE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 904 | MAGICK_HDRI |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 905 | WITH_MODULES_FALSE |
| 906 | WITH_MODULES_TRUE |
| 907 | WITH_SHARED_LIBS_FALSE |
| 908 | WITH_SHARED_LIBS_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 909 | LIBTOOL_DEPS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 910 | CXXCPP |
| 911 | OTOOL64 |
| 912 | OTOOL |
| 913 | LIPO |
| 914 | NMEDIT |
| 915 | DSYMUTIL |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 916 | MANIFEST_TOOL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 917 | RANLIB |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 918 | ac_ct_AR |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 919 | AR |
| 920 | NM |
| 921 | ac_ct_DUMPBIN |
| 922 | DUMPBIN |
| 923 | LIBTOOL |
| 924 | OBJDUMP |
| 925 | DLLTOOL |
| 926 | AS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 927 | LFS_CPPFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 928 | CL_LIBS |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 929 | CL_CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 930 | OPENMP_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 931 | PTHREAD_CFLAGS |
| 932 | PTHREAD_LIBS |
| 933 | PTHREAD_CC |
| 934 | ax_pthread_config |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 935 | pkgconfigdir |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 936 | SHAREARCH_DIR |
| 937 | INCLUDEARCH_DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 938 | WinPathScript |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 939 | USING_CL_FALSE |
| 940 | USING_CL_TRUE |
| 941 | CYGWIN_BUILD_FALSE |
| 942 | CYGWIN_BUILD_TRUE |
| 943 | WIN32_NATIVE_BUILD_FALSE |
| 944 | WIN32_NATIVE_BUILD_TRUE |
| 945 | WINGDI32_DELEGATE_FALSE |
| 946 | WINGDI32_DELEGATE_TRUE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 947 | GDI32_LIBS |
| cristy | 9b86f20 | 2012-11-28 21:55:35 +0000 | [diff] [blame] | 948 | HAVE_LD_VERSION_SCRIPT_FALSE |
| 949 | HAVE_LD_VERSION_SCRIPT_TRUE |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 950 | PKG_CONFIG |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 951 | PRTDIAG |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 952 | LN_S |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 953 | LD |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 954 | FGREP |
| 955 | SED |
| 956 | am__fastdepCXX_FALSE |
| 957 | am__fastdepCXX_TRUE |
| 958 | CXXDEPMODE |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 959 | ac_ct_CXX |
| 960 | CXXFLAGS |
| 961 | CXX |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 962 | EGREP |
| 963 | GREP |
| 964 | CPP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 965 | am__fastdepCC_FALSE |
| 966 | am__fastdepCC_TRUE |
| 967 | CCDEPMODE |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 968 | am__nodep |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 969 | AMDEPBACKSLASH |
| 970 | AMDEP_FALSE |
| 971 | AMDEP_TRUE |
| 972 | am__quote |
| 973 | am__include |
| 974 | DEPDIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 975 | OBJEXT |
| 976 | EXEEXT |
| 977 | ac_ct_CC |
| 978 | CPPFLAGS |
| 979 | LDFLAGS |
| 980 | CFLAGS |
| 981 | CC |
| 982 | DIRSEP |
| 983 | MAGICK_FILTER_MODULE_PATH |
| 984 | MAGICK_CONFIGURE_BUILD_PATH |
| 985 | MAGICK_CONFIGURE_SRC_PATH |
| 986 | MAGICK_CODER_MODULE_PATH |
| 987 | MAN_DIR |
| 988 | INFO_DIR |
| 989 | PERSISTINCLUDE_DIR |
| 990 | INCLUDE_DIR |
| 991 | LIB_DIR |
| 992 | LOCALSTATE_DIR |
| 993 | SHAREDSTATE_DIR |
| 994 | SYSCONF_DIR |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 995 | DOC_DIR |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 996 | DATA_DIR |
| 997 | LIBEXEC_DIR |
| 998 | SBIN_DIR |
| 999 | BIN_DIR |
| 1000 | EXEC_PREFIX_DIR |
| 1001 | PREFIX_DIR |
| 1002 | CONFIG_STATUS_DEPENDENCIES |
| 1003 | MAGICK_LIB_VERSION_NUMBER |
| 1004 | MAGICK_LIB_VERSION_TEXT |
| 1005 | MAGICK_LIB_VERSION |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1006 | AM_BACKSLASH |
| 1007 | AM_DEFAULT_VERBOSITY |
| cristy | c3fb77b | 2012-02-06 01:49:41 +0000 | [diff] [blame] | 1008 | AM_DEFAULT_V |
| 1009 | AM_V |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1010 | am__untar |
| 1011 | am__tar |
| 1012 | AMTAR |
| 1013 | am__leading_dot |
| 1014 | SET_MAKE |
| 1015 | AWK |
| 1016 | mkdir_p |
| 1017 | MKDIR_P |
| 1018 | INSTALL_STRIP_PROGRAM |
| 1019 | STRIP |
| 1020 | install_sh |
| 1021 | MAKEINFO |
| 1022 | AUTOHEADER |
| 1023 | AUTOMAKE |
| 1024 | AUTOCONF |
| 1025 | ACLOCAL |
| 1026 | VERSION |
| 1027 | PACKAGE |
| 1028 | CYGPATH_W |
| 1029 | am__isrc |
| 1030 | INSTALL_DATA |
| 1031 | INSTALL_SCRIPT |
| 1032 | INSTALL_PROGRAM |
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 1033 | PACKAGE_VERSION_ADDENDUM |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1034 | PACKAGE_RELEASE_DATE |
| 1035 | PACKAGE_LIB_VERSION_NUMBER |
| 1036 | PACKAGE_LIB_VERSION |
| 1037 | PACKAGE_CHANGE_DATE |
| 1038 | PACKAGE_RELEASE |
| cristy | 878c2f1 | 2011-08-19 00:25:19 +0000 | [diff] [blame] | 1039 | PACKAGE_PERL_VERSION |
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 1040 | MAGICK_LIBRARY_VERSION_INFO |
| 1041 | MAGICK_LIBRARY_CURRENT_MIN |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1042 | MAGICK_LIBRARY_AGE |
| 1043 | MAGICK_LIBRARY_REVISION |
| 1044 | MAGICK_LIBRARY_CURRENT |
| cristy | 3744276 | 2013-02-10 21:07:23 +0000 | [diff] [blame] | 1045 | MAGICK_SVN_REVISION |
| 1046 | MAGICK_VERSION |
| 1047 | MAGICK_PATCHLEVEL_VERSION |
| 1048 | MAGICK_MICRO_VERSION |
| 1049 | MAGICK_MINOR_VERSION |
| 1050 | MAGICK_MAJOR_VERSION |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 1051 | MAGICK_TARGET_OS |
| 1052 | MAGICK_TARGET_VENDOR |
| 1053 | MAGICK_TARGET_CPU |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1054 | target_os |
| 1055 | target_vendor |
| 1056 | target_cpu |
| 1057 | target |
| 1058 | host_os |
| 1059 | host_vendor |
| 1060 | host_cpu |
| 1061 | host |
| 1062 | build_os |
| 1063 | build_vendor |
| 1064 | build_cpu |
| 1065 | build |
| 1066 | CONFIGURE_ARGS |
| 1067 | DISTCHECK_CONFIG_FLAGS |
| 1068 | target_alias |
| 1069 | host_alias |
| 1070 | build_alias |
| 1071 | LIBS |
| 1072 | ECHO_T |
| 1073 | ECHO_N |
| 1074 | ECHO_C |
| 1075 | DEFS |
| 1076 | mandir |
| 1077 | localedir |
| 1078 | libdir |
| 1079 | psdir |
| 1080 | pdfdir |
| 1081 | dvidir |
| 1082 | htmldir |
| 1083 | infodir |
| 1084 | docdir |
| 1085 | oldincludedir |
| 1086 | includedir |
| 1087 | localstatedir |
| 1088 | sharedstatedir |
| 1089 | sysconfdir |
| 1090 | datadir |
| 1091 | datarootdir |
| 1092 | libexecdir |
| 1093 | sbindir |
| 1094 | bindir |
| 1095 | program_transform_name |
| 1096 | prefix |
| 1097 | exec_prefix |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1098 | PACKAGE_URL |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1099 | PACKAGE_BUGREPORT |
| 1100 | PACKAGE_STRING |
| 1101 | PACKAGE_VERSION |
| 1102 | PACKAGE_TARNAME |
| 1103 | PACKAGE_NAME |
| 1104 | PATH_SEPARATOR |
| 1105 | SHELL' |
| 1106 | ac_subst_files='' |
| 1107 | ac_user_opts=' |
| 1108 | enable_option_checking |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1109 | enable_silent_rules |
| 1110 | enable_dependency_tracking |
| 1111 | with_gnu_ld |
| 1112 | with_dmalloc |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 1113 | with_gcc_arch |
| cristy | 9b86f20 | 2012-11-28 21:55:35 +0000 | [diff] [blame] | 1114 | enable_ld_version_script |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1115 | enable_bounds_checking |
| 1116 | enable_osx_universal_binary |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 1117 | with_includearch_dir |
| 1118 | with_sharearch_dir |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 1119 | with_pkgconfigdir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1120 | with_threads |
| 1121 | enable_openmp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1122 | enable_opencl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1123 | enable_largefile |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1124 | enable_shared |
| 1125 | enable_static |
| 1126 | with_pic |
| 1127 | enable_fast_install |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1128 | with_sysroot |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1129 | enable_libtool_lock |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1130 | with_modules |
| 1131 | enable_delegate_build |
| 1132 | enable_deprecated |
| 1133 | enable_installed |
| 1134 | enable_cipher |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1135 | enable_zero_configuration |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1136 | enable_hdri |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1137 | enable_assert |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1138 | enable_maintainer_mode |
| cristy | 944e51f | 2013-04-16 18:45:02 +0000 | [diff] [blame] | 1139 | enable_hugepages |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1140 | enable_ccmalloc |
| 1141 | enable_efence |
| 1142 | enable_prof |
| 1143 | enable_gprof |
| 1144 | enable_gcov |
| 1145 | with_method_prefix |
| cristy | 71d8c20 | 2012-03-20 17:05:01 +0000 | [diff] [blame] | 1146 | enable_legacy_support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1147 | with_quantum_depth |
| 1148 | with_cache |
| 1149 | with_frozenpaths |
| 1150 | with_magick_plus_plus |
| cristy | 3a75f06 | 2012-09-08 23:29:40 +0000 | [diff] [blame] | 1151 | with_package_release_name |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1152 | with_perl |
| 1153 | with_perl_options |
| 1154 | with_umem |
| 1155 | with_libstdc |
| 1156 | with_bzlib |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1157 | with_x |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1158 | with_zlib |
| 1159 | with_autotrace |
| 1160 | with_dps |
| 1161 | with_djvu |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1162 | with_dejavu_font_dir |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1163 | with_fftw |
| 1164 | with_fpx |
| 1165 | with_fontconfig |
| 1166 | with_freetype |
| 1167 | with_gslib |
| 1168 | with_fontpath |
| 1169 | with_gs_font_dir |
| 1170 | with_gvc |
| 1171 | with_jbig |
| 1172 | with_jpeg |
| 1173 | with_jp2 |
| 1174 | with_lcms |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1175 | with_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1176 | with_lqr |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1177 | with_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1178 | with_openexr |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1179 | with_pango |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1180 | with_png |
| 1181 | with_rsvg |
| 1182 | with_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1183 | with_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1184 | with_windows_font_dir |
| 1185 | with_wmf |
| 1186 | with_xml |
| 1187 | ' |
| 1188 | ac_precious_vars='build_alias |
| 1189 | host_alias |
| 1190 | target_alias |
| 1191 | CC |
| 1192 | CFLAGS |
| 1193 | LDFLAGS |
| 1194 | LIBS |
| 1195 | CPPFLAGS |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1196 | CPP |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1197 | CXX |
| 1198 | CXXFLAGS |
| 1199 | CCC |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1200 | PKG_CONFIG |
| 1201 | CXXCPP |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1202 | XMKMF |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1203 | AUTOTRACE_CFLAGS |
| 1204 | AUTOTRACE_LIBS |
| 1205 | FONTCONFIG_CFLAGS |
| 1206 | FONTCONFIG_LIBS |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 1207 | FREETYPE_CFLAGS |
| 1208 | FREETYPE_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1209 | GVC_CFLAGS |
| 1210 | GVC_LIBS |
| 1211 | LQR_CFLAGS |
| 1212 | LQR_LIBS |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 1213 | LZMA_CFLAGS |
| 1214 | LZMA_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1215 | OPENEXR_CFLAGS |
| 1216 | OPENEXR_LIBS |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1217 | PANGO_CFLAGS |
| 1218 | PANGO_LIBS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1219 | RSVG_CFLAGS |
| 1220 | RSVG_LIBS |
| 1221 | CAIRO_SVG_CFLAGS |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1222 | CAIRO_SVG_LIBS' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1223 | |
| 1224 | |
| 1225 | # Initialize some variables set by options. |
| 1226 | ac_init_help= |
| 1227 | ac_init_version=false |
| 1228 | ac_unrecognized_opts= |
| 1229 | ac_unrecognized_sep= |
| 1230 | # The variables have the same names as the options, with |
| 1231 | # dashes changed to underlines. |
| 1232 | cache_file=/dev/null |
| 1233 | exec_prefix=NONE |
| 1234 | no_create= |
| 1235 | no_recursion= |
| 1236 | prefix=NONE |
| 1237 | program_prefix=NONE |
| 1238 | program_suffix=NONE |
| 1239 | program_transform_name=s,x,x, |
| 1240 | silent= |
| 1241 | site= |
| 1242 | srcdir= |
| 1243 | verbose= |
| 1244 | x_includes=NONE |
| 1245 | x_libraries=NONE |
| 1246 | |
| 1247 | # Installation directory options. |
| 1248 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1249 | # and all the variables that are supposed to be based on exec_prefix |
| 1250 | # by default will actually change. |
| 1251 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1252 | # (The list follows the same order as the GNU Coding Standards.) |
| 1253 | bindir='${exec_prefix}/bin' |
| 1254 | sbindir='${exec_prefix}/sbin' |
| 1255 | libexecdir='${exec_prefix}/libexec' |
| 1256 | datarootdir='${prefix}/share' |
| 1257 | datadir='${datarootdir}' |
| 1258 | sysconfdir='${prefix}/etc' |
| 1259 | sharedstatedir='${prefix}/com' |
| 1260 | localstatedir='${prefix}/var' |
| 1261 | includedir='${prefix}/include' |
| 1262 | oldincludedir='/usr/include' |
| 1263 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1264 | infodir='${datarootdir}/info' |
| 1265 | htmldir='${docdir}' |
| 1266 | dvidir='${docdir}' |
| 1267 | pdfdir='${docdir}' |
| 1268 | psdir='${docdir}' |
| 1269 | libdir='${exec_prefix}/lib' |
| 1270 | localedir='${datarootdir}/locale' |
| 1271 | mandir='${datarootdir}/man' |
| 1272 | |
| 1273 | ac_prev= |
| 1274 | ac_dashdash= |
| 1275 | for ac_option |
| 1276 | do |
| 1277 | # If the previous option needs an argument, assign it. |
| 1278 | if test -n "$ac_prev"; then |
| 1279 | eval $ac_prev=\$ac_option |
| 1280 | ac_prev= |
| 1281 | continue |
| 1282 | fi |
| 1283 | |
| 1284 | case $ac_option in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1285 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1286 | *=) ac_optarg= ;; |
| 1287 | *) ac_optarg=yes ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1288 | esac |
| 1289 | |
| 1290 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1291 | |
| 1292 | case $ac_dashdash$ac_option in |
| 1293 | --) |
| 1294 | ac_dashdash=yes ;; |
| 1295 | |
| 1296 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1297 | ac_prev=bindir ;; |
| 1298 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1299 | bindir=$ac_optarg ;; |
| 1300 | |
| 1301 | -build | --build | --buil | --bui | --bu) |
| 1302 | ac_prev=build_alias ;; |
| 1303 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1304 | build_alias=$ac_optarg ;; |
| 1305 | |
| 1306 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1307 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1308 | ac_prev=cache_file ;; |
| 1309 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1310 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1311 | cache_file=$ac_optarg ;; |
| 1312 | |
| 1313 | --config-cache | -C) |
| 1314 | cache_file=config.cache ;; |
| 1315 | |
| 1316 | -datadir | --datadir | --datadi | --datad) |
| 1317 | ac_prev=datadir ;; |
| 1318 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1319 | datadir=$ac_optarg ;; |
| 1320 | |
| 1321 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1322 | | --dataroo | --dataro | --datar) |
| 1323 | ac_prev=datarootdir ;; |
| 1324 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1325 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1326 | datarootdir=$ac_optarg ;; |
| 1327 | |
| 1328 | -disable-* | --disable-*) |
| 1329 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1330 | # Reject names that are not valid shell variable names. |
| 1331 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1332 | as_fn_error $? "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1333 | ac_useropt_orig=$ac_useropt |
| 1334 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1335 | case $ac_user_opts in |
| 1336 | *" |
| 1337 | "enable_$ac_useropt" |
| 1338 | "*) ;; |
| 1339 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1340 | ac_unrecognized_sep=', ';; |
| 1341 | esac |
| 1342 | eval enable_$ac_useropt=no ;; |
| 1343 | |
| 1344 | -docdir | --docdir | --docdi | --doc | --do) |
| 1345 | ac_prev=docdir ;; |
| 1346 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1347 | docdir=$ac_optarg ;; |
| 1348 | |
| 1349 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1350 | ac_prev=dvidir ;; |
| 1351 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1352 | dvidir=$ac_optarg ;; |
| 1353 | |
| 1354 | -enable-* | --enable-*) |
| 1355 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1356 | # Reject names that are not valid shell variable names. |
| 1357 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1358 | as_fn_error $? "invalid feature name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1359 | ac_useropt_orig=$ac_useropt |
| 1360 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1361 | case $ac_user_opts in |
| 1362 | *" |
| 1363 | "enable_$ac_useropt" |
| 1364 | "*) ;; |
| 1365 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1366 | ac_unrecognized_sep=', ';; |
| 1367 | esac |
| 1368 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1369 | |
| 1370 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1371 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1372 | | --exec | --exe | --ex) |
| 1373 | ac_prev=exec_prefix ;; |
| 1374 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1375 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1376 | | --exec=* | --exe=* | --ex=*) |
| 1377 | exec_prefix=$ac_optarg ;; |
| 1378 | |
| 1379 | -gas | --gas | --ga | --g) |
| 1380 | # Obsolete; use --with-gas. |
| 1381 | with_gas=yes ;; |
| 1382 | |
| 1383 | -help | --help | --hel | --he | -h) |
| 1384 | ac_init_help=long ;; |
| 1385 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1386 | ac_init_help=recursive ;; |
| 1387 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1388 | ac_init_help=short ;; |
| 1389 | |
| 1390 | -host | --host | --hos | --ho) |
| 1391 | ac_prev=host_alias ;; |
| 1392 | -host=* | --host=* | --hos=* | --ho=*) |
| 1393 | host_alias=$ac_optarg ;; |
| 1394 | |
| 1395 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1396 | ac_prev=htmldir ;; |
| 1397 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1398 | | --ht=*) |
| 1399 | htmldir=$ac_optarg ;; |
| 1400 | |
| 1401 | -includedir | --includedir | --includedi | --included | --include \ |
| 1402 | | --includ | --inclu | --incl | --inc) |
| 1403 | ac_prev=includedir ;; |
| 1404 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1405 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1406 | includedir=$ac_optarg ;; |
| 1407 | |
| 1408 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1409 | ac_prev=infodir ;; |
| 1410 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1411 | infodir=$ac_optarg ;; |
| 1412 | |
| 1413 | -libdir | --libdir | --libdi | --libd) |
| 1414 | ac_prev=libdir ;; |
| 1415 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1416 | libdir=$ac_optarg ;; |
| 1417 | |
| 1418 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1419 | | --libexe | --libex | --libe) |
| 1420 | ac_prev=libexecdir ;; |
| 1421 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1422 | | --libexe=* | --libex=* | --libe=*) |
| 1423 | libexecdir=$ac_optarg ;; |
| 1424 | |
| 1425 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1426 | ac_prev=localedir ;; |
| 1427 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1428 | localedir=$ac_optarg ;; |
| 1429 | |
| 1430 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1431 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1432 | ac_prev=localstatedir ;; |
| 1433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1435 | localstatedir=$ac_optarg ;; |
| 1436 | |
| 1437 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1438 | ac_prev=mandir ;; |
| 1439 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1440 | mandir=$ac_optarg ;; |
| 1441 | |
| 1442 | -nfp | --nfp | --nf) |
| 1443 | # Obsolete; use --without-fp. |
| 1444 | with_fp=no ;; |
| 1445 | |
| 1446 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1447 | | --no-cr | --no-c | -n) |
| 1448 | no_create=yes ;; |
| 1449 | |
| 1450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1452 | no_recursion=yes ;; |
| 1453 | |
| 1454 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1455 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1456 | | --oldin | --oldi | --old | --ol | --o) |
| 1457 | ac_prev=oldincludedir ;; |
| 1458 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1459 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1460 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1461 | oldincludedir=$ac_optarg ;; |
| 1462 | |
| 1463 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1464 | ac_prev=prefix ;; |
| 1465 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1466 | prefix=$ac_optarg ;; |
| 1467 | |
| 1468 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1469 | | --program-pre | --program-pr | --program-p) |
| 1470 | ac_prev=program_prefix ;; |
| 1471 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1472 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1473 | program_prefix=$ac_optarg ;; |
| 1474 | |
| 1475 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1476 | | --program-suf | --program-su | --program-s) |
| 1477 | ac_prev=program_suffix ;; |
| 1478 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1479 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1480 | program_suffix=$ac_optarg ;; |
| 1481 | |
| 1482 | -program-transform-name | --program-transform-name \ |
| 1483 | | --program-transform-nam | --program-transform-na \ |
| 1484 | | --program-transform-n | --program-transform- \ |
| 1485 | | --program-transform | --program-transfor \ |
| 1486 | | --program-transfo | --program-transf \ |
| 1487 | | --program-trans | --program-tran \ |
| 1488 | | --progr-tra | --program-tr | --program-t) |
| 1489 | ac_prev=program_transform_name ;; |
| 1490 | -program-transform-name=* | --program-transform-name=* \ |
| 1491 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1492 | | --program-transform-n=* | --program-transform-=* \ |
| 1493 | | --program-transform=* | --program-transfor=* \ |
| 1494 | | --program-transfo=* | --program-transf=* \ |
| 1495 | | --program-trans=* | --program-tran=* \ |
| 1496 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1497 | program_transform_name=$ac_optarg ;; |
| 1498 | |
| 1499 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1500 | ac_prev=pdfdir ;; |
| 1501 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1502 | pdfdir=$ac_optarg ;; |
| 1503 | |
| 1504 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1505 | ac_prev=psdir ;; |
| 1506 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1507 | psdir=$ac_optarg ;; |
| 1508 | |
| 1509 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1510 | | -silent | --silent | --silen | --sile | --sil) |
| 1511 | silent=yes ;; |
| 1512 | |
| 1513 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1514 | ac_prev=sbindir ;; |
| 1515 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1516 | | --sbi=* | --sb=*) |
| 1517 | sbindir=$ac_optarg ;; |
| 1518 | |
| 1519 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1520 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1521 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1522 | | --sha | --sh) |
| 1523 | ac_prev=sharedstatedir ;; |
| 1524 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1525 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1526 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1527 | | --sha=* | --sh=*) |
| 1528 | sharedstatedir=$ac_optarg ;; |
| 1529 | |
| 1530 | -site | --site | --sit) |
| 1531 | ac_prev=site ;; |
| 1532 | -site=* | --site=* | --sit=*) |
| 1533 | site=$ac_optarg ;; |
| 1534 | |
| 1535 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1536 | ac_prev=srcdir ;; |
| 1537 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1538 | srcdir=$ac_optarg ;; |
| 1539 | |
| 1540 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1541 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1542 | ac_prev=sysconfdir ;; |
| 1543 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1544 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1545 | sysconfdir=$ac_optarg ;; |
| 1546 | |
| 1547 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1548 | ac_prev=target_alias ;; |
| 1549 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1550 | target_alias=$ac_optarg ;; |
| 1551 | |
| 1552 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1553 | verbose=yes ;; |
| 1554 | |
| 1555 | -version | --version | --versio | --versi | --vers | -V) |
| 1556 | ac_init_version=: ;; |
| 1557 | |
| 1558 | -with-* | --with-*) |
| 1559 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1560 | # Reject names that are not valid shell variable names. |
| 1561 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1562 | as_fn_error $? "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1563 | ac_useropt_orig=$ac_useropt |
| 1564 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1565 | case $ac_user_opts in |
| 1566 | *" |
| 1567 | "with_$ac_useropt" |
| 1568 | "*) ;; |
| 1569 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1570 | ac_unrecognized_sep=', ';; |
| 1571 | esac |
| 1572 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1573 | |
| 1574 | -without-* | --without-*) |
| 1575 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1576 | # Reject names that are not valid shell variable names. |
| 1577 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1578 | as_fn_error $? "invalid package name: $ac_useropt" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1579 | ac_useropt_orig=$ac_useropt |
| 1580 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1581 | case $ac_user_opts in |
| 1582 | *" |
| 1583 | "with_$ac_useropt" |
| 1584 | "*) ;; |
| 1585 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1586 | ac_unrecognized_sep=', ';; |
| 1587 | esac |
| 1588 | eval with_$ac_useropt=no ;; |
| 1589 | |
| 1590 | --x) |
| 1591 | # Obsolete; use --with-x. |
| 1592 | with_x=yes ;; |
| 1593 | |
| 1594 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1595 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1596 | ac_prev=x_includes ;; |
| 1597 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1598 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1599 | x_includes=$ac_optarg ;; |
| 1600 | |
| 1601 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1602 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1603 | ac_prev=x_libraries ;; |
| 1604 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1605 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1606 | x_libraries=$ac_optarg ;; |
| 1607 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1608 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1609 | Try \`$0 --help' for more information" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1610 | ;; |
| 1611 | |
| 1612 | *=*) |
| 1613 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1614 | # Reject names that are not valid shell variable names. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1615 | case $ac_envvar in #( |
| 1616 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1617 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 1618 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1619 | eval $ac_envvar=\$ac_optarg |
| 1620 | export $ac_envvar ;; |
| 1621 | |
| 1622 | *) |
| 1623 | # FIXME: should be removed in autoconf 3.0. |
| 1624 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1625 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1626 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1627 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1628 | ;; |
| 1629 | |
| 1630 | esac |
| 1631 | done |
| 1632 | |
| 1633 | if test -n "$ac_prev"; then |
| 1634 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1635 | as_fn_error $? "missing argument to $ac_option" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1636 | fi |
| 1637 | |
| 1638 | if test -n "$ac_unrecognized_opts"; then |
| 1639 | case $enable_option_checking in |
| 1640 | no) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1641 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1642 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1643 | esac |
| 1644 | fi |
| 1645 | |
| 1646 | # Check all directory arguments for consistency. |
| 1647 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1648 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1649 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1650 | libdir localedir mandir |
| 1651 | do |
| 1652 | eval ac_val=\$$ac_var |
| 1653 | # Remove trailing slashes. |
| 1654 | case $ac_val in |
| 1655 | */ ) |
| 1656 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1657 | eval $ac_var=\$ac_val;; |
| 1658 | esac |
| 1659 | # Be sure to have absolute directory names. |
| 1660 | case $ac_val in |
| 1661 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1662 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1663 | esac |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1664 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1665 | done |
| 1666 | |
| 1667 | # There might be people who depend on the old broken behavior: `$host' |
| 1668 | # used to hold the argument of --host etc. |
| 1669 | # FIXME: To remove some day. |
| 1670 | build=$build_alias |
| 1671 | host=$host_alias |
| 1672 | target=$target_alias |
| 1673 | |
| 1674 | # FIXME: To remove some day. |
| 1675 | if test "x$host_alias" != x; then |
| 1676 | if test "x$build_alias" = x; then |
| 1677 | cross_compiling=maybe |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1678 | elif test "x$build_alias" != "x$host_alias"; then |
| 1679 | cross_compiling=yes |
| 1680 | fi |
| 1681 | fi |
| 1682 | |
| 1683 | ac_tool_prefix= |
| 1684 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1685 | |
| 1686 | test "$silent" = yes && exec 6>/dev/null |
| 1687 | |
| 1688 | |
| 1689 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1690 | ac_ls_di=`ls -di .` && |
| 1691 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1692 | as_fn_error $? "working directory cannot be determined" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1693 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1694 | as_fn_error $? "pwd does not report name of working directory" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1695 | |
| 1696 | |
| 1697 | # Find the source files, if location was not specified. |
| 1698 | if test -z "$srcdir"; then |
| 1699 | ac_srcdir_defaulted=yes |
| 1700 | # Try the directory containing this script, then the parent directory. |
| 1701 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1702 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1703 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1704 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1705 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1706 | $as_echo X"$as_myself" | |
| 1707 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1708 | s//\1/ |
| 1709 | q |
| 1710 | } |
| 1711 | /^X\(\/\/\)[^/].*/{ |
| 1712 | s//\1/ |
| 1713 | q |
| 1714 | } |
| 1715 | /^X\(\/\/\)$/{ |
| 1716 | s//\1/ |
| 1717 | q |
| 1718 | } |
| 1719 | /^X\(\/\).*/{ |
| 1720 | s//\1/ |
| 1721 | q |
| 1722 | } |
| 1723 | s/.*/./; q'` |
| 1724 | srcdir=$ac_confdir |
| 1725 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1726 | srcdir=.. |
| 1727 | fi |
| 1728 | else |
| 1729 | ac_srcdir_defaulted=no |
| 1730 | fi |
| 1731 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1732 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1733 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1734 | fi |
| 1735 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1736 | ac_abs_confdir=`( |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1737 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1738 | pwd)` |
| 1739 | # When building in place, set srcdir=. |
| 1740 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1741 | srcdir=. |
| 1742 | fi |
| 1743 | # Remove unnecessary trailing slashes from srcdir. |
| 1744 | # Double slashes in file names in object file debugging info |
| 1745 | # mess up M-x gdb in Emacs. |
| 1746 | case $srcdir in |
| 1747 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1748 | esac |
| 1749 | for ac_var in $ac_precious_vars; do |
| 1750 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1751 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1752 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1753 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1754 | done |
| 1755 | |
| 1756 | # |
| 1757 | # Report the --help message. |
| 1758 | # |
| 1759 | if test "$ac_init_help" = "long"; then |
| 1760 | # Omit some internal or obsolete options to make the list less imposing. |
| 1761 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1762 | cat <<_ACEOF |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 1763 | \`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1764 | |
| 1765 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1766 | |
| 1767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1768 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1769 | |
| 1770 | Defaults for the options are specified in brackets. |
| 1771 | |
| 1772 | Configuration: |
| 1773 | -h, --help display this help and exit |
| 1774 | --help=short display options specific to this package |
| 1775 | --help=recursive display the short help of all the included packages |
| 1776 | -V, --version display version information and exit |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 1777 | -q, --quiet, --silent do not print \`checking ...' messages |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1778 | --cache-file=FILE cache test results in FILE [disabled] |
| 1779 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1780 | -n, --no-create do not create output files |
| 1781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1782 | |
| 1783 | Installation directories: |
| 1784 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1785 | [$ac_default_prefix] |
| 1786 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1787 | [PREFIX] |
| 1788 | |
| 1789 | By default, \`make install' will install all the files in |
| 1790 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1791 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1792 | for instance \`--prefix=\$HOME'. |
| 1793 | |
| 1794 | For better control, use the options below. |
| 1795 | |
| 1796 | Fine tuning of the installation directories: |
| 1797 | --bindir=DIR user executables [EPREFIX/bin] |
| 1798 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1799 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1800 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1801 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1802 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1803 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1804 | --includedir=DIR C header files [PREFIX/include] |
| 1805 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1806 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1807 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1808 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1809 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1810 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 1811 | --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1812 | --htmldir=DIR html documentation [DOCDIR] |
| 1813 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1814 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1815 | --psdir=DIR ps documentation [DOCDIR] |
| 1816 | _ACEOF |
| 1817 | |
| 1818 | cat <<\_ACEOF |
| 1819 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1820 | Program names: |
| 1821 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1822 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1823 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1824 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1825 | X features: |
| 1826 | --x-includes=DIR X include files are in DIR |
| 1827 | --x-libraries=DIR X library files are in DIR |
| 1828 | |
| 1829 | System types: |
| 1830 | --build=BUILD configure for building on BUILD [guessed] |
| 1831 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1832 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 1833 | _ACEOF |
| 1834 | fi |
| 1835 | |
| 1836 | if test -n "$ac_init_help"; then |
| 1837 | case $ac_init_help in |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 1838 | short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1839 | esac |
| 1840 | cat <<\_ACEOF |
| 1841 | |
| 1842 | Optional Features: |
| 1843 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1844 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1845 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 1846 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1847 | --disable-silent-rules verbose build output (undo: "make V=0") |
| 1848 | --enable-dependency-tracking |
| 1849 | do not reject slow dependency extractors |
| 1850 | --disable-dependency-tracking |
| 1851 | speeds up one-time build |
| cristy | 9b86f20 | 2012-11-28 21:55:35 +0000 | [diff] [blame] | 1852 | --enable-ld-version-script |
| 1853 | enable linker version script (default is enabled |
| 1854 | when possible) |
| cristy | a382469 | 2012-03-30 17:22:07 +0000 | [diff] [blame] | 1855 | --enable-bounds-checking |
| 1856 | enable run-time bounds-checking |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1857 | --enable-osx-universal-binary |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1858 | build universal binary on OS X [[default=no]] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1859 | --disable-openmp do not use OpenMP |
| cristy | 4879464 | 2012-09-02 15:19:08 +0000 | [diff] [blame] | 1860 | --enable-opencl enable OpenCL support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1861 | --disable-largefile omit support for large files |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1862 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1863 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1864 | --enable-fast-install[=PKGS] |
| 1865 | optimize for fast installation [default=yes] |
| 1866 | --disable-libtool-lock avoid locking (might break parallel builds) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1867 | --enable-delegate-build look for delegate libraries in build directory |
| 1868 | --disable-deprecated exclude deprecated methods in MagickCore and |
| cristy | 3a75f06 | 2012-09-08 23:29:40 +0000 | [diff] [blame] | 1869 | MagickWand APIs |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1870 | --disable-installed Formally install ImageMagick under PREFIX |
| 1871 | --disable-cipher disable enciphering and deciphering image pixels |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 1872 | --enable-zero-configuration |
| 1873 | enable self-contained, embeddable, |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1874 | zero-configuration ImageMagick |
| cristy | f314dbd | 2012-11-15 13:35:28 +0000 | [diff] [blame] | 1875 | --enable-hdri accurately represent the wide range of intensity |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1876 | levels found in real scenes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1877 | --disable-assert disable assert() statements in build |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 1878 | --enable-maintainer-mode |
| 1879 | enable make rules and dependencies not useful (and |
| 1880 | sometimes confusing) to the casual installer |
| cristy | 944e51f | 2013-04-16 18:45:02 +0000 | [diff] [blame] | 1881 | --enable-hugepages enable 'huge pages' support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1882 | --enable-ccmalloc enable 'ccmalloc' memory debug support |
| 1883 | --enable-efence enable 'efence' memory debug support |
| 1884 | --enable-prof enable 'prof' profiling support |
| 1885 | --enable-gprof enable 'gprof' profiling support |
| 1886 | --enable-gcov enable 'gcov' profiling support |
| cristy | 71d8c20 | 2012-03-20 17:05:01 +0000 | [diff] [blame] | 1887 | --enable-legacy-support install legacy command-line utilities (default disabled) |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1888 | --disable-assert turn off assertions |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1889 | |
| 1890 | Optional Packages: |
| 1891 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1892 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1893 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 1894 | --with-dmalloc use dmalloc, as in http://www.dmalloc.com |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 1895 | --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, |
| 1896 | instead of guessing |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 1897 | --includearch-dir=DIR ARCH specific include directory |
| 1898 | --sharearch-dir=DIR ARCH specific config directory |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 1899 | --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig] |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1900 | --without-threads disable threads support |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 1901 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1902 | both] |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 1903 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1904 | (or the compiler's sysroot if not specified). |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1905 | --with-modules enable building dynamically loadable modules |
| 1906 | --with-method-prefix=PREFIX |
| 1907 | prefix MagickCore API methods |
| 1908 | --with-quantum-depth=DEPTH |
| 1909 | number of bits in a pixel quantum (default 16) |
| 1910 | --with-cache=THRESHOLD set pixel cache threshhold in MB (default available |
| 1911 | memory) |
| 1912 | --with-frozenpaths freeze delegate paths |
| 1913 | --without-magick-plus-plus |
| 1914 | disable build/install of Magick++ |
| cristy | 3a75f06 | 2012-09-08 23:29:40 +0000 | [diff] [blame] | 1915 | --with-package-release-name=NAME |
| 1916 | encode this name into the shared library |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1917 | --with-perl enable build/install of PerlMagick |
| 1918 | --with-perl-options=OPTIONS |
| 1919 | options to pass on command-line when generating |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 1920 | PerlMagick build file |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1921 | --with-umem enable umem memory allocation library support |
| 1922 | --with-libstdc=DIR use libstdc++ in DIR (for GNU C++) |
| 1923 | --without-bzlib disable BZLIB support |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 1924 | --with-x use the X Window System |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1925 | --without-zlib disable ZLIB support |
| 1926 | --with-autotrace enable autotrace support |
| 1927 | --without-dps disable Display Postscript support |
| 1928 | --without-djvu disable DjVu support |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 1929 | --with-dejavu-font-dir=DIR |
| 1930 | DejaVu font directory |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1931 | --without-fftw disable FFTW support |
| 1932 | --without-fpx disable FlashPIX support |
| 1933 | --without-fontconfig disable fontconfig support |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 1934 | --without-freetype disable Freetype support |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 1935 | --with-gslib enable Ghostscript library support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1936 | --with-fontpath=DIR prepend to default font search path |
| 1937 | --with-gs-font-dir=DIR Ghostscript font directory |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 1938 | --with-gvc enable GVC support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1939 | --without-jbig disable JBIG support |
| 1940 | --without-jpeg disable JPEG support |
| 1941 | --without-jp2 disable JPEG-2000 support |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 1942 | --without-lcms disable lcms (v1.1X) support |
| 1943 | --without-lcms2 disable lcms (v2.X) support |
| cristy | f0c7823 | 2010-03-15 12:53:40 +0000 | [diff] [blame] | 1944 | --without-lqr disable Liquid Rescale support |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 1945 | --without-lzma disable LZMA support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1946 | --without-openexr disable OpenEXR support |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1947 | --without-pango disable PANGO support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1948 | --without-png disable PNG support |
| cristy | 51633f5 | 2013-04-23 14:03:19 +0000 | [diff] [blame] | 1949 | --with-rsvg enable RSVG support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1950 | --without-tiff disable TIFF support |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 1951 | --without-webp disable WEBP support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1952 | --with-windows-font-dir=DIR |
| 1953 | directory containing MS-Windows fonts |
| cristy | de3fc5d | 2012-02-12 15:40:47 +0000 | [diff] [blame] | 1954 | --with-wmf enable WMF support |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1955 | --without-xml disable XML support |
| 1956 | |
| 1957 | Some influential environment variables: |
| 1958 | CC C compiler command |
| 1959 | CFLAGS C compiler flags |
| 1960 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1961 | nonstandard directory <lib dir> |
| 1962 | LIBS libraries to pass to the linker, e.g. -l<library> |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 1963 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1964 | you have headers in a nonstandard directory <include dir> |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 1965 | CPP C preprocessor |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1966 | CXX C++ compiler command |
| 1967 | CXXFLAGS C++ compiler flags |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1968 | PKG_CONFIG path to pkg-config utility |
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 1969 | CXXCPP C++ preprocessor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1970 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 1971 | AUTOTRACE_CFLAGS |
| 1972 | C compiler flags for AUTOTRACE, overriding pkg-config |
| 1973 | AUTOTRACE_LIBS |
| 1974 | linker flags for AUTOTRACE, overriding pkg-config |
| 1975 | FONTCONFIG_CFLAGS |
| 1976 | C compiler flags for FONTCONFIG, overriding pkg-config |
| 1977 | FONTCONFIG_LIBS |
| 1978 | linker flags for FONTCONFIG, overriding pkg-config |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 1979 | FREETYPE_CFLAGS |
| 1980 | C compiler flags for FREETYPE, overriding pkg-config |
| 1981 | FREETYPE_LIBS |
| 1982 | linker flags for FREETYPE, overriding pkg-config |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1983 | GVC_CFLAGS C compiler flags for GVC, overriding pkg-config |
| 1984 | GVC_LIBS linker flags for GVC, overriding pkg-config |
| 1985 | LQR_CFLAGS C compiler flags for LQR, overriding pkg-config |
| 1986 | LQR_LIBS linker flags for LQR, overriding pkg-config |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 1987 | LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config |
| 1988 | LZMA_LIBS linker flags for LZMA, overriding pkg-config |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1989 | OPENEXR_CFLAGS |
| 1990 | C compiler flags for OPENEXR, overriding pkg-config |
| 1991 | OPENEXR_LIBS |
| 1992 | linker flags for OPENEXR, overriding pkg-config |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 1993 | PANGO_CFLAGS |
| 1994 | C compiler flags for PANGO, overriding pkg-config |
| 1995 | PANGO_LIBS linker flags for PANGO, overriding pkg-config |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 1996 | RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config |
| 1997 | RSVG_LIBS linker flags for RSVG, overriding pkg-config |
| 1998 | CAIRO_SVG_CFLAGS |
| 1999 | C compiler flags for CAIRO_SVG, overriding pkg-config |
| 2000 | CAIRO_SVG_LIBS |
| 2001 | linker flags for CAIRO_SVG, overriding pkg-config |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2002 | |
| 2003 | Use these variables to override the choices made by `configure' or to help |
| 2004 | it to find libraries and programs with nonstandard names/locations. |
| 2005 | |
| 2006 | Report bugs to <http://www.imagemagick.org>. |
| 2007 | _ACEOF |
| 2008 | ac_status=$? |
| 2009 | fi |
| 2010 | |
| 2011 | if test "$ac_init_help" = "recursive"; then |
| 2012 | # If there are subdirs, report their specific --help. |
| 2013 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2014 | test -d "$ac_dir" || |
| 2015 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2016 | continue |
| 2017 | ac_builddir=. |
| 2018 | |
| 2019 | case "$ac_dir" in |
| 2020 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2021 | *) |
| 2022 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2023 | # A ".." for each directory in $ac_dir_suffix. |
| 2024 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2025 | case $ac_top_builddir_sub in |
| 2026 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2027 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2028 | esac ;; |
| 2029 | esac |
| 2030 | ac_abs_top_builddir=$ac_pwd |
| 2031 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2032 | # for backward compatibility: |
| 2033 | ac_top_builddir=$ac_top_build_prefix |
| 2034 | |
| 2035 | case $srcdir in |
| 2036 | .) # We are building in place. |
| 2037 | ac_srcdir=. |
| 2038 | ac_top_srcdir=$ac_top_builddir_sub |
| 2039 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2040 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2041 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2042 | ac_top_srcdir=$srcdir |
| 2043 | ac_abs_top_srcdir=$srcdir ;; |
| 2044 | *) # Relative name. |
| 2045 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2046 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2047 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2048 | esac |
| 2049 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2050 | |
| 2051 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2052 | # Check for guested configure. |
| 2053 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2054 | echo && |
| 2055 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2056 | elif test -f "$ac_srcdir/configure"; then |
| 2057 | echo && |
| 2058 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2059 | else |
| 2060 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2061 | fi || ac_status=$? |
| 2062 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2063 | done |
| 2064 | fi |
| 2065 | |
| 2066 | test -n "$ac_init_help" && exit $ac_status |
| 2067 | if $ac_init_version; then |
| 2068 | cat <<\_ACEOF |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 2069 | ImageMagick configure 7.0.0-0 |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2070 | generated by GNU Autoconf 2.69 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2071 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2072 | Copyright (C) 2012 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 2073 | This configure script is free software; the Free Software Foundation |
| 2074 | gives unlimited permission to copy, distribute and modify it. |
| 2075 | _ACEOF |
| 2076 | exit |
| 2077 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2078 | |
| 2079 | ## ------------------------ ## |
| 2080 | ## Autoconf initialization. ## |
| 2081 | ## ------------------------ ## |
| 2082 | |
| 2083 | # ac_fn_c_try_compile LINENO |
| 2084 | # -------------------------- |
| 2085 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2086 | ac_fn_c_try_compile () |
| 2087 | { |
| 2088 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2089 | rm -f conftest.$ac_objext |
| 2090 | if { { ac_try="$ac_compile" |
| 2091 | case "(($ac_try" in |
| 2092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2093 | *) ac_try_echo=$ac_try;; |
| 2094 | esac |
| 2095 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2096 | $as_echo "$ac_try_echo"; } >&5 |
| 2097 | (eval "$ac_compile") 2>conftest.err |
| 2098 | ac_status=$? |
| 2099 | if test -s conftest.err; then |
| 2100 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2101 | cat conftest.er1 >&5 |
| 2102 | mv -f conftest.er1 conftest.err |
| 2103 | fi |
| 2104 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2105 | test $ac_status = 0; } && { |
| 2106 | test -z "$ac_c_werror_flag" || |
| 2107 | test ! -s conftest.err |
| 2108 | } && test -s conftest.$ac_objext; then : |
| 2109 | ac_retval=0 |
| 2110 | else |
| 2111 | $as_echo "$as_me: failed program was:" >&5 |
| 2112 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2113 | |
| 2114 | ac_retval=1 |
| 2115 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2116 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2117 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2118 | |
| 2119 | } # ac_fn_c_try_compile |
| 2120 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2121 | # ac_fn_c_try_cpp LINENO |
| 2122 | # ---------------------- |
| 2123 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2124 | ac_fn_c_try_cpp () |
| 2125 | { |
| 2126 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2127 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2128 | case "(($ac_try" in |
| 2129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2130 | *) ac_try_echo=$ac_try;; |
| 2131 | esac |
| 2132 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2133 | $as_echo "$ac_try_echo"; } >&5 |
| 2134 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2135 | ac_status=$? |
| 2136 | if test -s conftest.err; then |
| 2137 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2138 | cat conftest.er1 >&5 |
| 2139 | mv -f conftest.er1 conftest.err |
| 2140 | fi |
| 2141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2142 | test $ac_status = 0; } > conftest.i && { |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2143 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2144 | test ! -s conftest.err |
| 2145 | }; then : |
| 2146 | ac_retval=0 |
| 2147 | else |
| 2148 | $as_echo "$as_me: failed program was:" >&5 |
| 2149 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2150 | |
| 2151 | ac_retval=1 |
| 2152 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2153 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 2154 | as_fn_set_status $ac_retval |
| 2155 | |
| 2156 | } # ac_fn_c_try_cpp |
| 2157 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2158 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2159 | # ------------------------------------------------------- |
| 2160 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2161 | # the include files in INCLUDES and setting the cache variable VAR |
| 2162 | # accordingly. |
| 2163 | ac_fn_c_check_header_mongrel () |
| 2164 | { |
| 2165 | 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] | 2166 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2168 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2169 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2170 | $as_echo_n "(cached) " >&6 |
| 2171 | fi |
| 2172 | eval ac_res=\$$3 |
| 2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2174 | $as_echo "$ac_res" >&6; } |
| 2175 | else |
| 2176 | # Is the header compilable? |
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2178 | $as_echo_n "checking $2 usability... " >&6; } |
| 2179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2180 | /* end confdefs.h. */ |
| 2181 | $4 |
| 2182 | #include <$2> |
| 2183 | _ACEOF |
| 2184 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2185 | ac_header_compiler=yes |
| 2186 | else |
| 2187 | ac_header_compiler=no |
| 2188 | fi |
| 2189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2191 | $as_echo "$ac_header_compiler" >&6; } |
| 2192 | |
| 2193 | # Is the header present? |
| 2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2195 | $as_echo_n "checking $2 presence... " >&6; } |
| 2196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2197 | /* end confdefs.h. */ |
| 2198 | #include <$2> |
| 2199 | _ACEOF |
| 2200 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2201 | ac_header_preproc=yes |
| 2202 | else |
| 2203 | ac_header_preproc=no |
| 2204 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2205 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2207 | $as_echo "$ac_header_preproc" >&6; } |
| 2208 | |
| 2209 | # So? What about this header? |
| 2210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2211 | yes:no: ) |
| 2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2213 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2214 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2215 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2216 | ;; |
| 2217 | no:yes:* ) |
| 2218 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2219 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2220 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2221 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2222 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2223 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2225 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2227 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2228 | ( $as_echo "## ----------------------------------------- ## |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2229 | ## Report this to http://www.imagemagick.org ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 2230 | ## ----------------------------------------- ##" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2231 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2232 | ;; |
| 2233 | esac |
| 2234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2235 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2236 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2237 | $as_echo_n "(cached) " >&6 |
| 2238 | else |
| 2239 | eval "$3=\$ac_header_compiler" |
| 2240 | fi |
| 2241 | eval ac_res=\$$3 |
| 2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2243 | $as_echo "$ac_res" >&6; } |
| 2244 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2245 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2246 | |
| 2247 | } # ac_fn_c_check_header_mongrel |
| 2248 | |
| 2249 | # ac_fn_c_try_run LINENO |
| 2250 | # ---------------------- |
| 2251 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2252 | # that executables *can* be run. |
| 2253 | ac_fn_c_try_run () |
| 2254 | { |
| 2255 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2256 | if { { ac_try="$ac_link" |
| 2257 | case "(($ac_try" in |
| 2258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2259 | *) ac_try_echo=$ac_try;; |
| 2260 | esac |
| 2261 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2262 | $as_echo "$ac_try_echo"; } >&5 |
| 2263 | (eval "$ac_link") 2>&5 |
| 2264 | ac_status=$? |
| 2265 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2266 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2267 | { { case "(($ac_try" in |
| 2268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2269 | *) ac_try_echo=$ac_try;; |
| 2270 | esac |
| 2271 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2272 | $as_echo "$ac_try_echo"; } >&5 |
| 2273 | (eval "$ac_try") 2>&5 |
| 2274 | ac_status=$? |
| 2275 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2276 | test $ac_status = 0; }; }; then : |
| 2277 | ac_retval=0 |
| 2278 | else |
| 2279 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2280 | $as_echo "$as_me: failed program was:" >&5 |
| 2281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2282 | |
| 2283 | ac_retval=$ac_status |
| 2284 | fi |
| 2285 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2286 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2287 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2288 | |
| 2289 | } # ac_fn_c_try_run |
| 2290 | |
| 2291 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2292 | # ------------------------------------------------------- |
| 2293 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2294 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2295 | ac_fn_c_check_header_compile () |
| 2296 | { |
| 2297 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2299 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2300 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2301 | $as_echo_n "(cached) " >&6 |
| 2302 | else |
| 2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2304 | /* end confdefs.h. */ |
| 2305 | $4 |
| 2306 | #include <$2> |
| 2307 | _ACEOF |
| 2308 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2309 | eval "$3=yes" |
| 2310 | else |
| 2311 | eval "$3=no" |
| 2312 | fi |
| 2313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2314 | fi |
| 2315 | eval ac_res=\$$3 |
| 2316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2317 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2318 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2319 | |
| 2320 | } # ac_fn_c_check_header_compile |
| 2321 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2322 | # ac_fn_cxx_try_compile LINENO |
| 2323 | # ---------------------------- |
| 2324 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2325 | ac_fn_cxx_try_compile () |
| 2326 | { |
| 2327 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2328 | rm -f conftest.$ac_objext |
| 2329 | if { { ac_try="$ac_compile" |
| 2330 | case "(($ac_try" in |
| 2331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2332 | *) ac_try_echo=$ac_try;; |
| 2333 | esac |
| 2334 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2335 | $as_echo "$ac_try_echo"; } >&5 |
| 2336 | (eval "$ac_compile") 2>conftest.err |
| 2337 | ac_status=$? |
| 2338 | if test -s conftest.err; then |
| 2339 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2340 | cat conftest.er1 >&5 |
| 2341 | mv -f conftest.er1 conftest.err |
| 2342 | fi |
| 2343 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2344 | test $ac_status = 0; } && { |
| 2345 | test -z "$ac_cxx_werror_flag" || |
| 2346 | test ! -s conftest.err |
| 2347 | } && test -s conftest.$ac_objext; then : |
| 2348 | ac_retval=0 |
| 2349 | else |
| 2350 | $as_echo "$as_me: failed program was:" >&5 |
| 2351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2352 | |
| 2353 | ac_retval=1 |
| 2354 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2355 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 2356 | as_fn_set_status $ac_retval |
| 2357 | |
| 2358 | } # ac_fn_cxx_try_compile |
| 2359 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2360 | # ac_fn_c_try_link LINENO |
| 2361 | # ----------------------- |
| 2362 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2363 | ac_fn_c_try_link () |
| 2364 | { |
| 2365 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2366 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2367 | if { { ac_try="$ac_link" |
| 2368 | case "(($ac_try" in |
| 2369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2370 | *) ac_try_echo=$ac_try;; |
| 2371 | esac |
| 2372 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2373 | $as_echo "$ac_try_echo"; } >&5 |
| 2374 | (eval "$ac_link") 2>conftest.err |
| 2375 | ac_status=$? |
| 2376 | if test -s conftest.err; then |
| 2377 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2378 | cat conftest.er1 >&5 |
| 2379 | mv -f conftest.er1 conftest.err |
| 2380 | fi |
| 2381 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2382 | test $ac_status = 0; } && { |
| 2383 | test -z "$ac_c_werror_flag" || |
| 2384 | test ! -s conftest.err |
| 2385 | } && test -s conftest$ac_exeext && { |
| 2386 | test "$cross_compiling" = yes || |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2387 | test -x conftest$ac_exeext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2388 | }; then : |
| 2389 | ac_retval=0 |
| 2390 | else |
| 2391 | $as_echo "$as_me: failed program was:" >&5 |
| 2392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2393 | |
| 2394 | ac_retval=1 |
| 2395 | fi |
| 2396 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2397 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2398 | # interfere with the next link command; also delete a directory that is |
| 2399 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2400 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2401 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 2402 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2403 | |
| 2404 | } # ac_fn_c_try_link |
| 2405 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2406 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2407 | # ---------------------------------- |
| 2408 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2409 | ac_fn_c_check_func () |
| 2410 | { |
| 2411 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2413 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2414 | if eval \${$3+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2415 | $as_echo_n "(cached) " >&6 |
| 2416 | else |
| 2417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2418 | /* end confdefs.h. */ |
| 2419 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2420 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2421 | #define $2 innocuous_$2 |
| 2422 | |
| 2423 | /* System header to define __stub macros and hopefully few prototypes, |
| 2424 | which can conflict with char $2 (); below. |
| 2425 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2426 | <limits.h> exists even on freestanding compilers. */ |
| 2427 | |
| 2428 | #ifdef __STDC__ |
| 2429 | # include <limits.h> |
| 2430 | #else |
| 2431 | # include <assert.h> |
| 2432 | #endif |
| 2433 | |
| 2434 | #undef $2 |
| 2435 | |
| 2436 | /* Override any GCC internal prototype to avoid an error. |
| 2437 | Use char because int might match the return type of a GCC |
| 2438 | builtin and then its argument prototype would still apply. */ |
| 2439 | #ifdef __cplusplus |
| 2440 | extern "C" |
| 2441 | #endif |
| 2442 | char $2 (); |
| 2443 | /* The GNU C library defines this for functions which it implements |
| 2444 | to always fail with ENOSYS. Some functions are actually named |
| 2445 | something starting with __ and the normal name is an alias. */ |
| 2446 | #if defined __stub_$2 || defined __stub___$2 |
| 2447 | choke me |
| 2448 | #endif |
| 2449 | |
| 2450 | int |
| 2451 | main () |
| 2452 | { |
| 2453 | return $2 (); |
| 2454 | ; |
| 2455 | return 0; |
| 2456 | } |
| 2457 | _ACEOF |
| 2458 | if ac_fn_c_try_link "$LINENO"; then : |
| 2459 | eval "$3=yes" |
| 2460 | else |
| 2461 | eval "$3=no" |
| 2462 | fi |
| 2463 | rm -f core conftest.err conftest.$ac_objext \ |
| 2464 | conftest$ac_exeext conftest.$ac_ext |
| 2465 | fi |
| 2466 | eval ac_res=\$$3 |
| 2467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2468 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2469 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2470 | |
| 2471 | } # ac_fn_c_check_func |
| 2472 | |
| 2473 | # ac_fn_cxx_try_cpp LINENO |
| 2474 | # ------------------------ |
| 2475 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2476 | ac_fn_cxx_try_cpp () |
| 2477 | { |
| 2478 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2479 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2480 | case "(($ac_try" in |
| 2481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2482 | *) ac_try_echo=$ac_try;; |
| 2483 | esac |
| 2484 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2485 | $as_echo "$ac_try_echo"; } >&5 |
| 2486 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2487 | ac_status=$? |
| 2488 | if test -s conftest.err; then |
| 2489 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2490 | cat conftest.er1 >&5 |
| 2491 | mv -f conftest.er1 conftest.err |
| 2492 | fi |
| 2493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2494 | test $ac_status = 0; } > conftest.i && { |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2495 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 2496 | test ! -s conftest.err |
| 2497 | }; then : |
| 2498 | ac_retval=0 |
| 2499 | else |
| 2500 | $as_echo "$as_me: failed program was:" >&5 |
| 2501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2502 | |
| 2503 | ac_retval=1 |
| 2504 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2505 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2506 | as_fn_set_status $ac_retval |
| 2507 | |
| 2508 | } # ac_fn_cxx_try_cpp |
| 2509 | |
| 2510 | # ac_fn_cxx_try_link LINENO |
| 2511 | # ------------------------- |
| 2512 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2513 | ac_fn_cxx_try_link () |
| 2514 | { |
| 2515 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2516 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2517 | if { { ac_try="$ac_link" |
| 2518 | case "(($ac_try" in |
| 2519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2520 | *) ac_try_echo=$ac_try;; |
| 2521 | esac |
| 2522 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2523 | $as_echo "$ac_try_echo"; } >&5 |
| 2524 | (eval "$ac_link") 2>conftest.err |
| 2525 | ac_status=$? |
| 2526 | if test -s conftest.err; then |
| 2527 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2528 | cat conftest.er1 >&5 |
| 2529 | mv -f conftest.er1 conftest.err |
| 2530 | fi |
| 2531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2532 | test $ac_status = 0; } && { |
| 2533 | test -z "$ac_cxx_werror_flag" || |
| 2534 | test ! -s conftest.err |
| 2535 | } && test -s conftest$ac_exeext && { |
| 2536 | test "$cross_compiling" = yes || |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2537 | test -x conftest$ac_exeext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2538 | }; then : |
| 2539 | ac_retval=0 |
| 2540 | else |
| 2541 | $as_echo "$as_me: failed program was:" >&5 |
| 2542 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2543 | |
| 2544 | ac_retval=1 |
| 2545 | fi |
| 2546 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2547 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2548 | # interfere with the next link command; also delete a directory that is |
| 2549 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2550 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2551 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 2552 | as_fn_set_status $ac_retval |
| 2553 | |
| 2554 | } # ac_fn_cxx_try_link |
| 2555 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2556 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2557 | # ------------------------------------------- |
| 2558 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2559 | # variable VAR accordingly. |
| 2560 | ac_fn_c_check_type () |
| 2561 | { |
| 2562 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2564 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2565 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2566 | $as_echo_n "(cached) " >&6 |
| 2567 | else |
| 2568 | eval "$3=no" |
| 2569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2570 | /* end confdefs.h. */ |
| 2571 | $4 |
| 2572 | int |
| 2573 | main () |
| 2574 | { |
| 2575 | if (sizeof ($2)) |
| 2576 | return 0; |
| 2577 | ; |
| 2578 | return 0; |
| 2579 | } |
| 2580 | _ACEOF |
| 2581 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2583 | /* end confdefs.h. */ |
| 2584 | $4 |
| 2585 | int |
| 2586 | main () |
| 2587 | { |
| 2588 | if (sizeof (($2))) |
| 2589 | return 0; |
| 2590 | ; |
| 2591 | return 0; |
| 2592 | } |
| 2593 | _ACEOF |
| 2594 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2595 | |
| 2596 | else |
| 2597 | eval "$3=yes" |
| 2598 | fi |
| 2599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2600 | fi |
| 2601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2602 | fi |
| 2603 | eval ac_res=\$$3 |
| 2604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2605 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2606 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2607 | |
| 2608 | } # ac_fn_c_check_type |
| 2609 | |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2610 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2611 | # ---------------------------------------------------- |
| 2612 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2613 | # INCLUDES, setting cache variable VAR accordingly. |
| 2614 | ac_fn_c_check_member () |
| 2615 | { |
| 2616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2618 | $as_echo_n "checking for $2.$3... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2619 | if eval \${$4+:} false; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2620 | $as_echo_n "(cached) " >&6 |
| 2621 | else |
| 2622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2623 | /* end confdefs.h. */ |
| 2624 | $5 |
| 2625 | int |
| 2626 | main () |
| 2627 | { |
| 2628 | static $2 ac_aggr; |
| 2629 | if (ac_aggr.$3) |
| 2630 | return 0; |
| 2631 | ; |
| 2632 | return 0; |
| 2633 | } |
| 2634 | _ACEOF |
| 2635 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2636 | eval "$4=yes" |
| 2637 | else |
| 2638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2639 | /* end confdefs.h. */ |
| 2640 | $5 |
| 2641 | int |
| 2642 | main () |
| 2643 | { |
| 2644 | static $2 ac_aggr; |
| 2645 | if (sizeof ac_aggr.$3) |
| 2646 | return 0; |
| 2647 | ; |
| 2648 | return 0; |
| 2649 | } |
| 2650 | _ACEOF |
| 2651 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2652 | eval "$4=yes" |
| 2653 | else |
| 2654 | eval "$4=no" |
| 2655 | fi |
| 2656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2657 | fi |
| 2658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2659 | fi |
| 2660 | eval ac_res=\$$4 |
| 2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2662 | $as_echo "$ac_res" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 2663 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 2664 | |
| 2665 | } # ac_fn_c_check_member |
| 2666 | |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 2667 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
| 2668 | # --------------------------------------------- |
| 2669 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2670 | # accordingly. |
| 2671 | ac_fn_c_check_decl () |
| 2672 | { |
| 2673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2674 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2675 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2677 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
| 2678 | if eval \${$3+:} false; then : |
| 2679 | $as_echo_n "(cached) " >&6 |
| 2680 | else |
| 2681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2682 | /* end confdefs.h. */ |
| 2683 | $4 |
| 2684 | int |
| 2685 | main () |
| 2686 | { |
| 2687 | #ifndef $as_decl_name |
| 2688 | #ifdef __cplusplus |
| 2689 | (void) $as_decl_use; |
| 2690 | #else |
| 2691 | (void) $as_decl_name; |
| 2692 | #endif |
| 2693 | #endif |
| 2694 | |
| 2695 | ; |
| 2696 | return 0; |
| 2697 | } |
| 2698 | _ACEOF |
| 2699 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2700 | eval "$3=yes" |
| 2701 | else |
| 2702 | eval "$3=no" |
| 2703 | fi |
| 2704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2705 | fi |
| 2706 | eval ac_res=\$$3 |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2708 | $as_echo "$ac_res" >&6; } |
| 2709 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2710 | |
| 2711 | } # ac_fn_c_check_decl |
| 2712 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2713 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2714 | # ----------------------------------- |
| 2715 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2716 | # accordingly. |
| 2717 | ac_fn_c_find_intX_t () |
| 2718 | { |
| 2719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2721 | $as_echo_n "checking for int$2_t... " >&6; } |
| 2722 | if eval \${$3+:} false; then : |
| 2723 | $as_echo_n "(cached) " >&6 |
| 2724 | else |
| 2725 | eval "$3=no" |
| 2726 | # Order is important - never check a type that is potentially smaller |
| 2727 | # than half of the expected target width. |
| 2728 | for ac_type in int$2_t 'int' 'long int' \ |
| 2729 | 'long long int' 'short int' 'signed char'; do |
| 2730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2731 | /* end confdefs.h. */ |
| 2732 | $ac_includes_default |
| 2733 | enum { N = $2 / 2 - 1 }; |
| 2734 | int |
| 2735 | main () |
| 2736 | { |
| 2737 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2738 | test_array [0] = 0; |
| 2739 | return test_array [0]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2740 | |
| 2741 | ; |
| 2742 | return 0; |
| 2743 | } |
| 2744 | _ACEOF |
| 2745 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2747 | /* end confdefs.h. */ |
| 2748 | $ac_includes_default |
| 2749 | enum { N = $2 / 2 - 1 }; |
| 2750 | int |
| 2751 | main () |
| 2752 | { |
| 2753 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2754 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2755 | test_array [0] = 0; |
| 2756 | return test_array [0]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2757 | |
| 2758 | ; |
| 2759 | return 0; |
| 2760 | } |
| 2761 | _ACEOF |
| 2762 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2763 | |
| 2764 | else |
| 2765 | case $ac_type in #( |
| 2766 | int$2_t) : |
| 2767 | eval "$3=yes" ;; #( |
| 2768 | *) : |
| 2769 | eval "$3=\$ac_type" ;; |
| 2770 | esac |
| 2771 | fi |
| 2772 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2773 | fi |
| 2774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2775 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2776 | |
| 2777 | else |
| 2778 | break |
| 2779 | fi |
| 2780 | done |
| 2781 | fi |
| 2782 | eval ac_res=\$$3 |
| 2783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2784 | $as_echo "$ac_res" >&6; } |
| 2785 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2786 | |
| 2787 | } # ac_fn_c_find_intX_t |
| 2788 | |
| 2789 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2790 | # ------------------------------------ |
| 2791 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2792 | # accordingly. |
| 2793 | ac_fn_c_find_uintX_t () |
| 2794 | { |
| 2795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2797 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 2798 | if eval \${$3+:} false; then : |
| 2799 | $as_echo_n "(cached) " >&6 |
| 2800 | else |
| 2801 | eval "$3=no" |
| 2802 | # Order is important - never check a type that is potentially smaller |
| 2803 | # than half of the expected target width. |
| 2804 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2805 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2807 | /* end confdefs.h. */ |
| 2808 | $ac_includes_default |
| 2809 | int |
| 2810 | main () |
| 2811 | { |
| 2812 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2813 | test_array [0] = 0; |
| 2814 | return test_array [0]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 2815 | |
| 2816 | ; |
| 2817 | return 0; |
| 2818 | } |
| 2819 | _ACEOF |
| 2820 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2821 | case $ac_type in #( |
| 2822 | uint$2_t) : |
| 2823 | eval "$3=yes" ;; #( |
| 2824 | *) : |
| 2825 | eval "$3=\$ac_type" ;; |
| 2826 | esac |
| 2827 | fi |
| 2828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2829 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2830 | |
| 2831 | else |
| 2832 | break |
| 2833 | fi |
| 2834 | done |
| 2835 | fi |
| 2836 | eval ac_res=\$$3 |
| 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2838 | $as_echo "$ac_res" >&6; } |
| 2839 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2840 | |
| 2841 | } # ac_fn_c_find_uintX_t |
| 2842 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2843 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2844 | # -------------------------------------------- |
| 2845 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2846 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2847 | # computed |
| 2848 | ac_fn_c_compute_int () |
| 2849 | { |
| 2850 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2851 | if test "$cross_compiling" = yes; then |
| 2852 | # Depending upon the size, compute the lo and hi bounds. |
| 2853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2854 | /* end confdefs.h. */ |
| 2855 | $4 |
| 2856 | int |
| 2857 | main () |
| 2858 | { |
| 2859 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2860 | test_array [0] = 0; |
| 2861 | return test_array [0]; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2862 | |
| 2863 | ; |
| 2864 | return 0; |
| 2865 | } |
| 2866 | _ACEOF |
| 2867 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2868 | ac_lo=0 ac_mid=0 |
| 2869 | while :; do |
| 2870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2871 | /* end confdefs.h. */ |
| 2872 | $4 |
| 2873 | int |
| 2874 | main () |
| 2875 | { |
| 2876 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2877 | test_array [0] = 0; |
| 2878 | return test_array [0]; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2879 | |
| 2880 | ; |
| 2881 | return 0; |
| 2882 | } |
| 2883 | _ACEOF |
| 2884 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2885 | ac_hi=$ac_mid; break |
| 2886 | else |
| 2887 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2888 | if test $ac_lo -le $ac_mid; then |
| 2889 | ac_lo= ac_hi= |
| 2890 | break |
| 2891 | fi |
| 2892 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2893 | fi |
| 2894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2895 | done |
| 2896 | else |
| 2897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2898 | /* end confdefs.h. */ |
| 2899 | $4 |
| 2900 | int |
| 2901 | main () |
| 2902 | { |
| 2903 | static int test_array [1 - 2 * !(($2) < 0)]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2904 | test_array [0] = 0; |
| 2905 | return test_array [0]; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2906 | |
| 2907 | ; |
| 2908 | return 0; |
| 2909 | } |
| 2910 | _ACEOF |
| 2911 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2912 | ac_hi=-1 ac_mid=-1 |
| 2913 | while :; do |
| 2914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2915 | /* end confdefs.h. */ |
| 2916 | $4 |
| 2917 | int |
| 2918 | main () |
| 2919 | { |
| 2920 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2921 | test_array [0] = 0; |
| 2922 | return test_array [0]; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2923 | |
| 2924 | ; |
| 2925 | return 0; |
| 2926 | } |
| 2927 | _ACEOF |
| 2928 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2929 | ac_lo=$ac_mid; break |
| 2930 | else |
| 2931 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2932 | if test $ac_mid -le $ac_hi; then |
| 2933 | ac_lo= ac_hi= |
| 2934 | break |
| 2935 | fi |
| 2936 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2937 | fi |
| 2938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2939 | done |
| 2940 | else |
| 2941 | ac_lo= ac_hi= |
| 2942 | fi |
| 2943 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2944 | fi |
| 2945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2946 | # Binary search between lo and hi bounds. |
| 2947 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2948 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2950 | /* end confdefs.h. */ |
| 2951 | $4 |
| 2952 | int |
| 2953 | main () |
| 2954 | { |
| 2955 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 2956 | test_array [0] = 0; |
| 2957 | return test_array [0]; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 2958 | |
| 2959 | ; |
| 2960 | return 0; |
| 2961 | } |
| 2962 | _ACEOF |
| 2963 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2964 | ac_hi=$ac_mid |
| 2965 | else |
| 2966 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2967 | fi |
| 2968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2969 | done |
| 2970 | case $ac_lo in #(( |
| 2971 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2972 | '') ac_retval=1 ;; |
| 2973 | esac |
| 2974 | else |
| 2975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2976 | /* end confdefs.h. */ |
| 2977 | $4 |
| 2978 | static long int longval () { return $2; } |
| 2979 | static unsigned long int ulongval () { return $2; } |
| 2980 | #include <stdio.h> |
| 2981 | #include <stdlib.h> |
| 2982 | int |
| 2983 | main () |
| 2984 | { |
| 2985 | |
| 2986 | FILE *f = fopen ("conftest.val", "w"); |
| 2987 | if (! f) |
| 2988 | return 1; |
| 2989 | if (($2) < 0) |
| 2990 | { |
| 2991 | long int i = longval (); |
| 2992 | if (i != ($2)) |
| 2993 | return 1; |
| 2994 | fprintf (f, "%ld", i); |
| 2995 | } |
| 2996 | else |
| 2997 | { |
| 2998 | unsigned long int i = ulongval (); |
| 2999 | if (i != ($2)) |
| 3000 | return 1; |
| 3001 | fprintf (f, "%lu", i); |
| 3002 | } |
| 3003 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 3004 | on some platforms. */ |
| 3005 | return ferror (f) || fclose (f) != 0; |
| 3006 | |
| 3007 | ; |
| 3008 | return 0; |
| 3009 | } |
| 3010 | _ACEOF |
| 3011 | if ac_fn_c_try_run "$LINENO"; then : |
| 3012 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 3013 | else |
| 3014 | ac_retval=1 |
| 3015 | fi |
| 3016 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 3017 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3018 | rm -f conftest.val |
| 3019 | |
| 3020 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3021 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3022 | as_fn_set_status $ac_retval |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3023 | |
| 3024 | } # ac_fn_c_compute_int |
| 3025 | |
| 3026 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 3027 | # --------------------------------------------------------- |
| 3028 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 3029 | # the include files in INCLUDES and setting the cache variable VAR |
| 3030 | # accordingly. |
| 3031 | ac_fn_cxx_check_header_mongrel () |
| 3032 | { |
| 3033 | 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] | 3034 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3036 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3037 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3038 | $as_echo_n "(cached) " >&6 |
| 3039 | fi |
| 3040 | eval ac_res=\$$3 |
| 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3042 | $as_echo "$ac_res" >&6; } |
| 3043 | else |
| 3044 | # Is the header compilable? |
| 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 3046 | $as_echo_n "checking $2 usability... " >&6; } |
| 3047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3048 | /* end confdefs.h. */ |
| 3049 | $4 |
| 3050 | #include <$2> |
| 3051 | _ACEOF |
| 3052 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 3053 | ac_header_compiler=yes |
| 3054 | else |
| 3055 | ac_header_compiler=no |
| 3056 | fi |
| 3057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 3059 | $as_echo "$ac_header_compiler" >&6; } |
| 3060 | |
| 3061 | # Is the header present? |
| 3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 3063 | $as_echo_n "checking $2 presence... " >&6; } |
| 3064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3065 | /* end confdefs.h. */ |
| 3066 | #include <$2> |
| 3067 | _ACEOF |
| 3068 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 3069 | ac_header_preproc=yes |
| 3070 | else |
| 3071 | ac_header_preproc=no |
| 3072 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3073 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 3075 | $as_echo "$ac_header_preproc" >&6; } |
| 3076 | |
| 3077 | # So? What about this header? |
| 3078 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 3079 | yes:no: ) |
| 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3081 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 3083 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 3084 | ;; |
| 3085 | no:yes:* ) |
| 3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 3087 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 3089 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 3091 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 3093 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 3095 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3096 | ( $as_echo "## ----------------------------------------- ## |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3097 | ## Report this to http://www.imagemagick.org ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3098 | ## ----------------------------------------- ##" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3099 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 3100 | ;; |
| 3101 | esac |
| 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 3103 | $as_echo_n "checking for $2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3104 | if eval \${$3+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3105 | $as_echo_n "(cached) " >&6 |
| 3106 | else |
| 3107 | eval "$3=\$ac_header_compiler" |
| 3108 | fi |
| 3109 | eval ac_res=\$$3 |
| 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 3111 | $as_echo "$ac_res" >&6; } |
| 3112 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3113 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3114 | |
| 3115 | } # ac_fn_cxx_check_header_mongrel |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3116 | cat >config.log <<_ACEOF |
| 3117 | This file contains any messages produced by compilers while |
| 3118 | running configure, to aid debugging if configure makes a mistake. |
| 3119 | |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 3120 | It was created by ImageMagick $as_me 7.0.0-0, which was |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 3121 | generated by GNU Autoconf 2.69. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3122 | |
| 3123 | $ $0 $@ |
| 3124 | |
| 3125 | _ACEOF |
| 3126 | exec 5>>config.log |
| 3127 | { |
| 3128 | cat <<_ASUNAME |
| 3129 | ## --------- ## |
| 3130 | ## Platform. ## |
| 3131 | ## --------- ## |
| 3132 | |
| 3133 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3134 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 3135 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 3136 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 3137 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 3138 | |
| 3139 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 3140 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 3141 | |
| 3142 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 3143 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 3144 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 3145 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 3146 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 3147 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 3148 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 3149 | |
| 3150 | _ASUNAME |
| 3151 | |
| 3152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3153 | for as_dir in $PATH |
| 3154 | do |
| 3155 | IFS=$as_save_IFS |
| 3156 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3157 | $as_echo "PATH: $as_dir" |
| 3158 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3159 | IFS=$as_save_IFS |
| 3160 | |
| 3161 | } >&5 |
| 3162 | |
| 3163 | cat >&5 <<_ACEOF |
| 3164 | |
| 3165 | |
| 3166 | ## ----------- ## |
| 3167 | ## Core tests. ## |
| 3168 | ## ----------- ## |
| 3169 | |
| 3170 | _ACEOF |
| 3171 | |
| 3172 | |
| 3173 | # Keep a trace of the command line. |
| 3174 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 3175 | # Strip out --silent because we don't want to record it for future runs. |
| 3176 | # Also quote any args containing shell meta-characters. |
| 3177 | # Make two passes to allow for proper duplicate-argument suppression. |
| 3178 | ac_configure_args= |
| 3179 | ac_configure_args0= |
| 3180 | ac_configure_args1= |
| 3181 | ac_must_keep_next=false |
| 3182 | for ac_pass in 1 2 |
| 3183 | do |
| 3184 | for ac_arg |
| 3185 | do |
| 3186 | case $ac_arg in |
| 3187 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 3188 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3189 | | -silent | --silent | --silen | --sile | --sil) |
| 3190 | continue ;; |
| 3191 | *\'*) |
| 3192 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3193 | esac |
| 3194 | case $ac_pass in |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3195 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3196 | 2) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3197 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3198 | if test $ac_must_keep_next = true; then |
| 3199 | ac_must_keep_next=false # Got value, back to normal. |
| 3200 | else |
| 3201 | case $ac_arg in |
| 3202 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3203 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3204 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3205 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3206 | case "$ac_configure_args0 " in |
| 3207 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3208 | esac |
| 3209 | ;; |
| 3210 | -* ) ac_must_keep_next=true ;; |
| 3211 | esac |
| 3212 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3213 | as_fn_append ac_configure_args " '$ac_arg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3214 | ;; |
| 3215 | esac |
| 3216 | done |
| 3217 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3218 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3219 | { ac_configure_args1=; unset ac_configure_args1;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3220 | |
| 3221 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3222 | # config.log. We remove comments because anyway the quotes in there |
| 3223 | # would cause problems or look ugly. |
| 3224 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3225 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3226 | trap 'exit_status=$? |
| 3227 | # Save into config.log some information that might help in debugging. |
| 3228 | { |
| 3229 | echo |
| 3230 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3231 | $as_echo "## ---------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3232 | ## Cache variables. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3233 | ## ---------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3234 | echo |
| 3235 | # The following way of writing the cache mishandles newlines in values, |
| 3236 | ( |
| 3237 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3238 | eval ac_val=\$$ac_var |
| 3239 | case $ac_val in #( |
| 3240 | *${as_nl}*) |
| 3241 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3242 | *_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] | 3243 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3244 | esac |
| 3245 | case $ac_var in #( |
| 3246 | _ | IFS | as_nl) ;; #( |
| 3247 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3248 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3249 | esac ;; |
| 3250 | esac |
| 3251 | done |
| 3252 | (set) 2>&1 | |
| 3253 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3254 | *${as_nl}ac_space=\ *) |
| 3255 | sed -n \ |
| 3256 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3257 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3258 | ;; #( |
| 3259 | *) |
| 3260 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3261 | ;; |
| 3262 | esac | |
| 3263 | sort |
| 3264 | ) |
| 3265 | echo |
| 3266 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3267 | $as_echo "## ----------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3268 | ## Output variables. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3269 | ## ----------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3270 | echo |
| 3271 | for ac_var in $ac_subst_vars |
| 3272 | do |
| 3273 | eval ac_val=\$$ac_var |
| 3274 | case $ac_val in |
| 3275 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3276 | esac |
| 3277 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3278 | done | sort |
| 3279 | echo |
| 3280 | |
| 3281 | if test -n "$ac_subst_files"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3282 | $as_echo "## ------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3283 | ## File substitutions. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3284 | ## ------------------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3285 | echo |
| 3286 | for ac_var in $ac_subst_files |
| 3287 | do |
| 3288 | eval ac_val=\$$ac_var |
| 3289 | case $ac_val in |
| 3290 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3291 | esac |
| 3292 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3293 | done | sort |
| 3294 | echo |
| 3295 | fi |
| 3296 | |
| 3297 | if test -s confdefs.h; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3298 | $as_echo "## ----------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3299 | ## confdefs.h. ## |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3300 | ## ----------- ##" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3301 | echo |
| 3302 | cat confdefs.h |
| 3303 | echo |
| 3304 | fi |
| 3305 | test "$ac_signal" != 0 && |
| 3306 | $as_echo "$as_me: caught signal $ac_signal" |
| 3307 | $as_echo "$as_me: exit $exit_status" |
| 3308 | } >&5 |
| 3309 | rm -f core *.core core.conftest.* && |
| 3310 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3311 | exit $exit_status |
| 3312 | ' 0 |
| 3313 | for ac_signal in 1 2 13 15; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3314 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3315 | done |
| 3316 | ac_signal=0 |
| 3317 | |
| 3318 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3319 | rm -f -r conftest* confdefs.h |
| 3320 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3321 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3322 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3323 | # Predefined preprocessor variables. |
| 3324 | |
| 3325 | cat >>confdefs.h <<_ACEOF |
| 3326 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3327 | _ACEOF |
| 3328 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3329 | cat >>confdefs.h <<_ACEOF |
| 3330 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3331 | _ACEOF |
| 3332 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3333 | cat >>confdefs.h <<_ACEOF |
| 3334 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3335 | _ACEOF |
| 3336 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3337 | cat >>confdefs.h <<_ACEOF |
| 3338 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3339 | _ACEOF |
| 3340 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3341 | cat >>confdefs.h <<_ACEOF |
| 3342 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3343 | _ACEOF |
| 3344 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3345 | cat >>confdefs.h <<_ACEOF |
| 3346 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3347 | _ACEOF |
| 3348 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3349 | |
| 3350 | # Let the site file select an alternate cache file if it wants to. |
| 3351 | # Prefer an explicitly selected file to automatically selected ones. |
| 3352 | ac_site_file1=NONE |
| 3353 | ac_site_file2=NONE |
| 3354 | if test -n "$CONFIG_SITE"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3355 | # We do not want a PATH search for config.site. |
| 3356 | case $CONFIG_SITE in #(( |
| 3357 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 3358 | */*) ac_site_file1=$CONFIG_SITE;; |
| 3359 | *) ac_site_file1=./$CONFIG_SITE;; |
| 3360 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3361 | elif test "x$prefix" != xNONE; then |
| 3362 | ac_site_file1=$prefix/share/config.site |
| 3363 | ac_site_file2=$prefix/etc/config.site |
| 3364 | else |
| 3365 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3366 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3367 | fi |
| 3368 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3369 | do |
| 3370 | test "x$ac_site_file" = xNONE && continue |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3371 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3372 | { $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] | 3373 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3374 | sed 's/^/| /' "$ac_site_file" >&5 |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3375 | . "$ac_site_file" \ |
| 3376 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3377 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3378 | as_fn_error $? "failed to load site script $ac_site_file |
| 3379 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3380 | fi |
| 3381 | done |
| 3382 | |
| 3383 | if test -r "$cache_file"; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3384 | # Some versions of bash will fail to source /dev/null (special files |
| 3385 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3386 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3387 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3388 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3389 | case $cache_file in |
| 3390 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3391 | *) . "./$cache_file";; |
| 3392 | esac |
| 3393 | fi |
| 3394 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3396 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3397 | >$cache_file |
| 3398 | fi |
| 3399 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 3400 | as_fn_append ac_header_list " stdlib.h" |
| 3401 | as_fn_append ac_header_list " unistd.h" |
| 3402 | as_fn_append ac_header_list " sys/param.h" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3403 | # Check that the precious variables saved in the cache have kept the same |
| 3404 | # value. |
| 3405 | ac_cache_corrupted=false |
| 3406 | for ac_var in $ac_precious_vars; do |
| 3407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3408 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3409 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3410 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3411 | case $ac_old_set,$ac_new_set in |
| 3412 | set,) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3413 | { $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] | 3414 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3415 | ac_cache_corrupted=: ;; |
| 3416 | ,set) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3417 | { $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] | 3418 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3419 | ac_cache_corrupted=: ;; |
| 3420 | ,);; |
| 3421 | *) |
| 3422 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3423 | # differences in whitespace do not lead to failure. |
| 3424 | ac_old_val_w=`echo x $ac_old_val` |
| 3425 | ac_new_val_w=`echo x $ac_new_val` |
| 3426 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3427 | { $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] | 3428 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3429 | ac_cache_corrupted=: |
| 3430 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3431 | { $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] | 3432 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3433 | eval $ac_var=\$ac_old_val |
| 3434 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3436 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3438 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3439 | fi;; |
| 3440 | esac |
| 3441 | # Pass precious variables to config.status. |
| 3442 | if test "$ac_new_set" = set; then |
| 3443 | case $ac_new_val in |
| 3444 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3445 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3446 | esac |
| 3447 | case " $ac_configure_args " in |
| 3448 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3449 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3450 | esac |
| 3451 | fi |
| 3452 | done |
| 3453 | if $ac_cache_corrupted; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3455 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3456 | { $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] | 3457 | $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] | 3458 | 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] | 3459 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3460 | ## -------------------- ## |
| 3461 | ## Main body of script. ## |
| 3462 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3463 | |
| 3464 | ac_ext=c |
| 3465 | ac_cpp='$CPP $CPPFLAGS' |
| 3466 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3467 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3468 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3469 | |
| 3470 | |
| 3471 | |
| 3472 | ac_aux_dir= |
| 3473 | for ac_dir in config "$srcdir"/config; do |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3474 | if test -f "$ac_dir/install-sh"; then |
| 3475 | ac_aux_dir=$ac_dir |
| 3476 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3477 | break |
| 3478 | elif test -f "$ac_dir/install.sh"; then |
| 3479 | ac_aux_dir=$ac_dir |
| 3480 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3481 | break |
| 3482 | elif test -f "$ac_dir/shtool"; then |
| 3483 | ac_aux_dir=$ac_dir |
| 3484 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3485 | break |
| 3486 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3487 | done |
| 3488 | if test -z "$ac_aux_dir"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3489 | 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] | 3490 | fi |
| 3491 | |
| 3492 | # These three variables are undocumented and unsupported, |
| 3493 | # and are intended to be withdrawn in a future Autoconf release. |
| 3494 | # They can cause serious problems if a builder's source tree is in a directory |
| 3495 | # whose full name contains unusual characters. |
| 3496 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3497 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3498 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3499 | |
| 3500 | |
| 3501 | |
| 3502 | |
| 3503 | ac_config_headers="$ac_config_headers config/config.h" |
| 3504 | |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 3505 | |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 3506 | ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3507 | |
| cristy | 8d0ff76 | 2013-03-10 20:33:28 +0000 | [diff] [blame] | 3508 | ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3509 | |
| 3510 | |
| 3511 | # |
| 3512 | # Save initial user-tunable values |
| 3513 | # |
| 3514 | USER_LIBS=$LIBS |
| 3515 | for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do |
| 3516 | eval isset=\${$var+set} |
| 3517 | if test "$isset" = 'set'; then |
| 3518 | eval val=$`echo $var` |
| 3519 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' " |
| 3520 | fi |
| 3521 | done |
| 3522 | |
| 3523 | |
| 3524 | CONFIGURE_ARGS="$0 ${ac_configure_args}" |
| 3525 | |
| 3526 | |
| 3527 | # Source file containing package/library versioning information. |
| 3528 | . ${srcdir}/version.sh |
| 3529 | |
| cristy | 15a8878 | 2010-01-31 23:24:49 +0000 | [diff] [blame] | 3530 | echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3531 | # Make sure we can run config.sub. |
| 3532 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3533 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3534 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3536 | $as_echo_n "checking build system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3537 | if ${ac_cv_build+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3538 | $as_echo_n "(cached) " >&6 |
| 3539 | else |
| 3540 | ac_build_alias=$build_alias |
| 3541 | test "x$ac_build_alias" = x && |
| 3542 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 3543 | test "x$ac_build_alias" = x && |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3544 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3545 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3546 | 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] | 3547 | |
| 3548 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3550 | $as_echo "$ac_cv_build" >&6; } |
| 3551 | case $ac_cv_build in |
| 3552 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3553 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3554 | esac |
| 3555 | build=$ac_cv_build |
| 3556 | ac_save_IFS=$IFS; IFS='-' |
| 3557 | set x $ac_cv_build |
| 3558 | shift |
| 3559 | build_cpu=$1 |
| 3560 | build_vendor=$2 |
| 3561 | shift; shift |
| 3562 | # Remember, the first character of IFS is used to create $*, |
| 3563 | # except with old shells: |
| 3564 | build_os=$* |
| 3565 | IFS=$ac_save_IFS |
| 3566 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3567 | |
| 3568 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3570 | $as_echo_n "checking host system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3571 | if ${ac_cv_host+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3572 | $as_echo_n "(cached) " >&6 |
| 3573 | else |
| 3574 | if test "x$host_alias" = x; then |
| 3575 | ac_cv_host=$ac_cv_build |
| 3576 | else |
| 3577 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3578 | 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] | 3579 | fi |
| 3580 | |
| 3581 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3583 | $as_echo "$ac_cv_host" >&6; } |
| 3584 | case $ac_cv_host in |
| 3585 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3586 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3587 | esac |
| 3588 | host=$ac_cv_host |
| 3589 | ac_save_IFS=$IFS; IFS='-' |
| 3590 | set x $ac_cv_host |
| 3591 | shift |
| 3592 | host_cpu=$1 |
| 3593 | host_vendor=$2 |
| 3594 | shift; shift |
| 3595 | # Remember, the first character of IFS is used to create $*, |
| 3596 | # except with old shells: |
| 3597 | host_os=$* |
| 3598 | IFS=$ac_save_IFS |
| 3599 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3600 | |
| 3601 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3603 | $as_echo_n "checking target system type... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3604 | if ${ac_cv_target+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3605 | $as_echo_n "(cached) " >&6 |
| 3606 | else |
| 3607 | if test "x$target_alias" = x; then |
| 3608 | ac_cv_target=$ac_cv_host |
| 3609 | else |
| 3610 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3611 | 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] | 3612 | fi |
| 3613 | |
| 3614 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3616 | $as_echo "$ac_cv_target" >&6; } |
| 3617 | case $ac_cv_target in |
| 3618 | *-*-*) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3619 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3620 | esac |
| 3621 | target=$ac_cv_target |
| 3622 | ac_save_IFS=$IFS; IFS='-' |
| 3623 | set x $ac_cv_target |
| 3624 | shift |
| 3625 | target_cpu=$1 |
| 3626 | target_vendor=$2 |
| 3627 | shift; shift |
| 3628 | # Remember, the first character of IFS is used to create $*, |
| 3629 | # except with old shells: |
| 3630 | target_os=$* |
| 3631 | IFS=$ac_save_IFS |
| 3632 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3633 | |
| 3634 | |
| 3635 | # The aliases save the names the user supplied, while $host etc. |
| 3636 | # will get canonicalized. |
| 3637 | test -n "$target_alias" && |
| 3638 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3639 | NONENONEs,x,x, && |
| 3640 | program_prefix=${target_alias}- |
| 3641 | |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 3642 | |
| 3643 | |
| 3644 | |
| cristy | 8be3414 | 2012-06-17 14:07:18 +0000 | [diff] [blame] | 3645 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3646 | MAGICK_TARGET_CPU=$host_cpu |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3647 | |
| 3648 | |
| cristy | 27d53d6 | 2012-07-29 23:30:07 +0000 | [diff] [blame] | 3649 | cat >>confdefs.h <<_ACEOF |
| 3650 | #define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU |
| 3651 | _ACEOF |
| 3652 | |
| 3653 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3654 | MAGICK_TARGET_VENDOR=$host_vendor |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3655 | |
| 3656 | |
| cristy | 27d53d6 | 2012-07-29 23:30:07 +0000 | [diff] [blame] | 3657 | cat >>confdefs.h <<_ACEOF |
| 3658 | #define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR |
| 3659 | _ACEOF |
| 3660 | |
| 3661 | |
| cristy | 19615b8 | 2011-04-13 20:02:01 +0000 | [diff] [blame] | 3662 | MAGICK_TARGET_OS=$host_os |
| cristy | 3225a07 | 2010-04-17 01:47:28 +0000 | [diff] [blame] | 3663 | |
| 3664 | |
| cristy | 27d53d6 | 2012-07-29 23:30:07 +0000 | [diff] [blame] | 3665 | cat >>confdefs.h <<_ACEOF |
| 3666 | #define MAGICK_TARGET_OS $MAGICK_TARGET_OS |
| 3667 | _ACEOF |
| 3668 | |
| 3669 | |
| cristy | 3744276 | 2013-02-10 21:07:23 +0000 | [diff] [blame] | 3670 | |
| 3671 | # Substitute versioning |
| 3672 | MAGICK_MAJOR_VERSION=7 |
| 3673 | |
| 3674 | MAGICK_MINOR_VERSION=0 |
| 3675 | |
| 3676 | MAGICK_MICRO_VERSION=0 |
| 3677 | |
| 3678 | MAGICK_PATCHLEVEL_VERSION=0 |
| 3679 | |
| 3680 | MAGICK_VERSION=7.0.0-0 |
| 3681 | |
| cristy | fec3182 | 2013-05-23 12:32:12 +0000 | [diff] [blame^] | 3682 | MAGICK_SVN_REVISION=12315:12338M |
| cristy | 3744276 | 2013-02-10 21:07:23 +0000 | [diff] [blame] | 3683 | |
| 3684 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3685 | # Substitute library versioning |
| cristy | bab87c3 | 2010-02-09 20:54:22 +0000 | [diff] [blame] | 3686 | MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE` |
| 3687 | |
| 3688 | MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE |
| 3689 | |
| cristy | 3744276 | 2013-02-10 21:07:23 +0000 | [diff] [blame] | 3690 | |
| cristy | d694ca3 | 2011-03-27 21:42:54 +0000 | [diff] [blame] | 3691 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3692 | # Ensure that make can run correctly |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3694 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3695 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3696 | # name. Accept space and tab only in the latter. |
| 3697 | am_lf=' |
| 3698 | ' |
| 3699 | case `pwd` in |
| 3700 | *[\\\"\#\$\&\'\`$am_lf]*) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3701 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3702 | esac |
| 3703 | case $srcdir in |
| 3704 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3705 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3706 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3707 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3708 | # Do 'set' in a subshell so we don't clobber the current shell's |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3709 | # arguments. Must try -L first in case configure is actually a |
| 3710 | # symlink; some systems play weird games with the mod time of symlinks |
| 3711 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3712 | # directory). |
| 3713 | if ( |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3714 | am_has_slept=no |
| 3715 | for am_try in 1 2; do |
| 3716 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3717 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3718 | if test "$*" = "X"; then |
| 3719 | # -L didn't work. |
| 3720 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3721 | fi |
| 3722 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3723 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3724 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3725 | # If neither matched, then we have a broken ls. This can happen |
| 3726 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3727 | # broken ls alias from the environment. This has actually |
| 3728 | # happened. Such a system could not be considered "sane". |
| 3729 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 3730 | alias in your environment" "$LINENO" 5 |
| 3731 | fi |
| 3732 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 3733 | break |
| 3734 | fi |
| 3735 | # Just in case. |
| 3736 | sleep 1 |
| 3737 | am_has_slept=yes |
| 3738 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3739 | test "$2" = conftest.file |
| 3740 | ) |
| 3741 | then |
| 3742 | # Ok. |
| 3743 | : |
| 3744 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 3745 | as_fn_error $? "newly created file is older than distributed files! |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3746 | Check your system clock" "$LINENO" 5 |
| 3747 | fi |
| 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3749 | $as_echo "yes" >&6; } |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3750 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3751 | # generated files are strictly newer. |
| 3752 | am_sleep_pid= |
| 3753 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 3754 | ( sleep 1 ) & |
| 3755 | am_sleep_pid=$! |
| 3756 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3757 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3758 | rm -f conftest.file |
| 3759 | |
| 3760 | |
| cristy | 58d34aa | 2013-01-24 15:11:54 +0000 | [diff] [blame] | 3761 | am__api_version='1.13' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3762 | |
| 3763 | # Find a good install program. We prefer a C program (faster), |
| 3764 | # so one script is as good as another. But avoid the broken or |
| 3765 | # incompatible versions: |
| 3766 | # SysV /etc/install, /usr/sbin/install |
| 3767 | # SunOS /usr/etc/install |
| 3768 | # IRIX /sbin/install |
| 3769 | # AIX /bin/install |
| 3770 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3771 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3772 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3773 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3774 | # OS/2's system install, which has a completely different semantic |
| 3775 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3776 | # Reject install programs that cannot install multiple files. |
| 3777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3778 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3779 | if test -z "$INSTALL"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3780 | if ${ac_cv_path_install+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3781 | $as_echo_n "(cached) " >&6 |
| 3782 | else |
| 3783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3784 | for as_dir in $PATH |
| 3785 | do |
| 3786 | IFS=$as_save_IFS |
| 3787 | test -z "$as_dir" && as_dir=. |
| 3788 | # Account for people who put trailing slashes in PATH elements. |
| 3789 | case $as_dir/ in #(( |
| 3790 | ./ | .// | /[cC]/* | \ |
| 3791 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3792 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3793 | /usr/ucb/* ) ;; |
| 3794 | *) |
| 3795 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3796 | # Don't use installbsd from OSF since it installs stuff as root |
| 3797 | # by default. |
| 3798 | for ac_prog in ginstall scoinst install; do |
| 3799 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 3800 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3801 | if test $ac_prog = install && |
| 3802 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3803 | # AIX install. It has an incompatible calling convention. |
| 3804 | : |
| 3805 | elif test $ac_prog = install && |
| 3806 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3807 | # program-specific install script used by HP pwplus--don't use. |
| 3808 | : |
| 3809 | else |
| 3810 | rm -rf conftest.one conftest.two conftest.dir |
| 3811 | echo one > conftest.one |
| 3812 | echo two > conftest.two |
| 3813 | mkdir conftest.dir |
| 3814 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3815 | test -s conftest.one && test -s conftest.two && |
| 3816 | test -s conftest.dir/conftest.one && |
| 3817 | test -s conftest.dir/conftest.two |
| 3818 | then |
| 3819 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3820 | break 3 |
| 3821 | fi |
| 3822 | fi |
| 3823 | fi |
| 3824 | done |
| 3825 | done |
| 3826 | ;; |
| 3827 | esac |
| 3828 | |
| 3829 | done |
| 3830 | IFS=$as_save_IFS |
| 3831 | |
| 3832 | rm -rf conftest.one conftest.two conftest.dir |
| 3833 | |
| 3834 | fi |
| 3835 | if test "${ac_cv_path_install+set}" = set; then |
| 3836 | INSTALL=$ac_cv_path_install |
| 3837 | else |
| 3838 | # As a last resort, use the slow shell script. Don't cache a |
| 3839 | # value for INSTALL within a source directory, because that will |
| 3840 | # break other packages using the cache if that directory is |
| 3841 | # removed, or if the value is a relative name. |
| 3842 | INSTALL=$ac_install_sh |
| 3843 | fi |
| 3844 | fi |
| 3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3846 | $as_echo "$INSTALL" >&6; } |
| 3847 | |
| 3848 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3849 | # It thinks the first close brace ends the variable substitution. |
| 3850 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3851 | |
| 3852 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3853 | |
| 3854 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3855 | |
| 3856 | test "$program_prefix" != NONE && |
| 3857 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3858 | # Use a double $ so make ignores it. |
| 3859 | test "$program_suffix" != NONE && |
| 3860 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3861 | # Double any \ or $. |
| 3862 | # By default was `s,x,x', remove it if useless. |
| 3863 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3864 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3865 | |
| 3866 | # expand $ac_aux_dir to an absolute path |
| 3867 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3868 | |
| 3869 | if test x"${MISSING+set}" != xset; then |
| 3870 | case $am_aux_dir in |
| 3871 | *\ * | *\ *) |
| 3872 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3873 | *) |
| 3874 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3875 | esac |
| 3876 | fi |
| 3877 | # Use eval to expand $SHELL |
| cristy | 58d34aa | 2013-01-24 15:11:54 +0000 | [diff] [blame] | 3878 | if eval "$MISSING --is-lightweight"; then |
| 3879 | am_missing_run="$MISSING " |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3880 | else |
| 3881 | am_missing_run= |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3883 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3884 | fi |
| 3885 | |
| 3886 | if test x"${install_sh}" != xset; then |
| 3887 | case $am_aux_dir in |
| 3888 | *\ * | *\ *) |
| 3889 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3890 | *) |
| 3891 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3892 | esac |
| 3893 | fi |
| 3894 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3895 | # Installed binaries are usually stripped using 'strip' when the user |
| 3896 | # run "make install-strip". However 'strip' might not be the right |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3897 | # tool to use in cross-compilation environments, therefore Automake |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 3898 | # will honor the 'STRIP' environment variable to overrule this program. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3899 | if test "$cross_compiling" != no; then |
| 3900 | if test -n "$ac_tool_prefix"; then |
| 3901 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3902 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3904 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3905 | if ${ac_cv_prog_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3906 | $as_echo_n "(cached) " >&6 |
| 3907 | else |
| 3908 | if test -n "$STRIP"; then |
| 3909 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3910 | else |
| 3911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3912 | for as_dir in $PATH |
| 3913 | do |
| 3914 | IFS=$as_save_IFS |
| 3915 | test -z "$as_dir" && as_dir=. |
| 3916 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 3917 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3918 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3919 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3920 | break 2 |
| 3921 | fi |
| 3922 | done |
| 3923 | done |
| 3924 | IFS=$as_save_IFS |
| 3925 | |
| 3926 | fi |
| 3927 | fi |
| 3928 | STRIP=$ac_cv_prog_STRIP |
| 3929 | if test -n "$STRIP"; then |
| 3930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3931 | $as_echo "$STRIP" >&6; } |
| 3932 | else |
| 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3934 | $as_echo "no" >&6; } |
| 3935 | fi |
| 3936 | |
| 3937 | |
| 3938 | fi |
| 3939 | if test -z "$ac_cv_prog_STRIP"; then |
| 3940 | ac_ct_STRIP=$STRIP |
| 3941 | # Extract the first word of "strip", so it can be a program name with args. |
| 3942 | set dummy strip; ac_word=$2 |
| 3943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3944 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3945 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3946 | $as_echo_n "(cached) " >&6 |
| 3947 | else |
| 3948 | if test -n "$ac_ct_STRIP"; then |
| 3949 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3950 | else |
| 3951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3952 | for as_dir in $PATH |
| 3953 | do |
| 3954 | IFS=$as_save_IFS |
| 3955 | test -z "$as_dir" && as_dir=. |
| 3956 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 3957 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3958 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3959 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3960 | break 2 |
| 3961 | fi |
| 3962 | done |
| 3963 | done |
| 3964 | IFS=$as_save_IFS |
| 3965 | |
| 3966 | fi |
| 3967 | fi |
| 3968 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3969 | if test -n "$ac_ct_STRIP"; then |
| 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3971 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3972 | else |
| 3973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3974 | $as_echo "no" >&6; } |
| 3975 | fi |
| 3976 | |
| 3977 | if test "x$ac_ct_STRIP" = x; then |
| 3978 | STRIP=":" |
| 3979 | else |
| 3980 | case $cross_compiling:$ac_tool_warned in |
| 3981 | yes:) |
| 3982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3983 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3984 | ac_tool_warned=yes ;; |
| 3985 | esac |
| 3986 | STRIP=$ac_ct_STRIP |
| 3987 | fi |
| 3988 | else |
| 3989 | STRIP="$ac_cv_prog_STRIP" |
| 3990 | fi |
| 3991 | |
| 3992 | fi |
| 3993 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3994 | |
| 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3996 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3997 | if test -z "$MKDIR_P"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 3998 | if ${ac_cv_path_mkdir+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 3999 | $as_echo_n "(cached) " >&6 |
| 4000 | else |
| 4001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4002 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 4003 | do |
| 4004 | IFS=$as_save_IFS |
| 4005 | test -z "$as_dir" && as_dir=. |
| 4006 | for ac_prog in mkdir gmkdir; do |
| 4007 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4008 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4009 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 4010 | 'mkdir (GNU coreutils) '* | \ |
| 4011 | 'mkdir (coreutils) '* | \ |
| 4012 | 'mkdir (fileutils) '4.1*) |
| 4013 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 4014 | break 3;; |
| 4015 | esac |
| 4016 | done |
| 4017 | done |
| 4018 | done |
| 4019 | IFS=$as_save_IFS |
| 4020 | |
| 4021 | fi |
| 4022 | |
| 4023 | test -d ./--version && rmdir ./--version |
| 4024 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 4025 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 4026 | else |
| 4027 | # As a last resort, use the slow shell script. Don't cache a |
| 4028 | # value for MKDIR_P within a source directory, because that will |
| 4029 | # break other packages using the cache if that directory is |
| 4030 | # removed, or if the value is a relative name. |
| 4031 | MKDIR_P="$ac_install_sh -d" |
| 4032 | fi |
| 4033 | fi |
| 4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 4035 | $as_echo "$MKDIR_P" >&6; } |
| 4036 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4037 | for ac_prog in gawk mawk nawk awk |
| 4038 | do |
| 4039 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4040 | set dummy $ac_prog; ac_word=$2 |
| 4041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4042 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4043 | if ${ac_cv_prog_AWK+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4044 | $as_echo_n "(cached) " >&6 |
| 4045 | else |
| 4046 | if test -n "$AWK"; then |
| 4047 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4048 | else |
| 4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4050 | for as_dir in $PATH |
| 4051 | do |
| 4052 | IFS=$as_save_IFS |
| 4053 | test -z "$as_dir" && as_dir=. |
| 4054 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4055 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4056 | ac_cv_prog_AWK="$ac_prog" |
| 4057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4058 | break 2 |
| 4059 | fi |
| 4060 | done |
| 4061 | done |
| 4062 | IFS=$as_save_IFS |
| 4063 | |
| 4064 | fi |
| 4065 | fi |
| 4066 | AWK=$ac_cv_prog_AWK |
| 4067 | if test -n "$AWK"; then |
| 4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4069 | $as_echo "$AWK" >&6; } |
| 4070 | else |
| 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4072 | $as_echo "no" >&6; } |
| 4073 | fi |
| 4074 | |
| 4075 | |
| 4076 | test -n "$AWK" && break |
| 4077 | done |
| 4078 | |
| 4079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4080 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4081 | set x ${MAKE-make} |
| 4082 | 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] | 4083 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4084 | $as_echo_n "(cached) " >&6 |
| 4085 | else |
| 4086 | cat >conftest.make <<\_ACEOF |
| 4087 | SHELL = /bin/sh |
| 4088 | all: |
| 4089 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 4090 | _ACEOF |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4091 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4092 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4093 | *@@@%%%=?*=@@@%%%*) |
| 4094 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4095 | *) |
| 4096 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4097 | esac |
| 4098 | rm -f conftest.make |
| 4099 | fi |
| 4100 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4102 | $as_echo "yes" >&6; } |
| 4103 | SET_MAKE= |
| 4104 | else |
| 4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4106 | $as_echo "no" >&6; } |
| 4107 | SET_MAKE="MAKE=${MAKE-make}" |
| 4108 | fi |
| 4109 | |
| 4110 | rm -rf .tst 2>/dev/null |
| 4111 | mkdir .tst 2>/dev/null |
| 4112 | if test -d .tst; then |
| 4113 | am__leading_dot=. |
| 4114 | else |
| 4115 | am__leading_dot=_ |
| 4116 | fi |
| 4117 | rmdir .tst 2>/dev/null |
| 4118 | |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4119 | # Check whether --enable-silent-rules was given. |
| 4120 | if test "${enable_silent_rules+set}" = set; then : |
| 4121 | enableval=$enable_silent_rules; |
| 4122 | fi |
| 4123 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 4124 | case $enable_silent_rules in # ((( |
| 4125 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 4126 | no) AM_DEFAULT_VERBOSITY=1;; |
| 4127 | *) AM_DEFAULT_VERBOSITY=1;; |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4128 | esac |
| cristy | c3fb77b | 2012-02-06 01:49:41 +0000 | [diff] [blame] | 4129 | am_make=${MAKE-make} |
| 4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 4131 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 4132 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 4133 | $as_echo_n "(cached) " >&6 |
| 4134 | else |
| 4135 | if $as_echo 'TRUE=$(BAR$(V)) |
| 4136 | BAR0=false |
| 4137 | BAR1=true |
| 4138 | V=1 |
| 4139 | am__doit: |
| 4140 | @$(TRUE) |
| 4141 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 4142 | am_cv_make_support_nested_variables=yes |
| 4143 | else |
| 4144 | am_cv_make_support_nested_variables=no |
| 4145 | fi |
| 4146 | fi |
| 4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 4148 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 4149 | if test $am_cv_make_support_nested_variables = yes; then |
| 4150 | AM_V='$(V)' |
| 4151 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 4152 | else |
| 4153 | AM_V=$AM_DEFAULT_VERBOSITY |
| 4154 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 4155 | fi |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4156 | AM_BACKSLASH='\' |
| 4157 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4158 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 4159 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 4160 | # is not polluted with repeated "-I." |
| 4161 | am__isrc=' -I$(srcdir)' |
| 4162 | # test to see if srcdir already configured |
| 4163 | if test -f $srcdir/config.status; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4164 | 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] | 4165 | fi |
| 4166 | fi |
| 4167 | |
| 4168 | # test whether we have cygpath |
| 4169 | if test -z "$CYGPATH_W"; then |
| 4170 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 4171 | CYGPATH_W='cygpath -w' |
| 4172 | else |
| 4173 | CYGPATH_W=echo |
| 4174 | fi |
| 4175 | fi |
| 4176 | |
| 4177 | |
| 4178 | # Define the identity of the package. |
| cristy | 09b53e1 | 2011-10-14 12:47:22 +0000 | [diff] [blame] | 4179 | PACKAGE='ImageMagick' |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 4180 | VERSION='7.0.0-0' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4181 | |
| 4182 | |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 4183 | cat >>confdefs.h <<_ACEOF |
| 4184 | #define PACKAGE "$PACKAGE" |
| 4185 | _ACEOF |
| 4186 | |
| 4187 | |
| 4188 | cat >>confdefs.h <<_ACEOF |
| 4189 | #define VERSION "$VERSION" |
| 4190 | _ACEOF |
| 4191 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4192 | # Some tools Automake needs. |
| 4193 | |
| 4194 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4195 | |
| 4196 | |
| 4197 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4198 | |
| 4199 | |
| 4200 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4201 | |
| 4202 | |
| 4203 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4204 | |
| 4205 | |
| 4206 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4207 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 4208 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 4209 | # dies out for good. For more background, see: |
| 4210 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 4211 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 4212 | mkdir_p='$(MKDIR_P)' |
| 4213 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4214 | # We need awk for the "check" target. The system "awk" is bad on |
| 4215 | # some platforms. |
| cristy | c3fb77b | 2012-02-06 01:49:41 +0000 | [diff] [blame] | 4216 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 4217 | # in the wild :-( We should find a proper way to deprecate it ... |
| 4218 | AMTAR='$${TAR-tar}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4219 | |
| cristy | e69bdbe | 2013-05-03 21:40:44 +0000 | [diff] [blame] | 4220 | |
| 4221 | # We'll loop over all known methods to create a tar archive until one works. |
| 4222 | _am_tools='gnutar pax cpio none' |
| 4223 | |
| cristy | c3fb77b | 2012-02-06 01:49:41 +0000 | [diff] [blame] | 4224 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4225 | |
| 4226 | |
| 4227 | |
| 4228 | |
| 4229 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4230 | |
| cristy | e69bdbe | 2013-05-03 21:40:44 +0000 | [diff] [blame] | 4231 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4232 | # Enable support for silent build rules |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4233 | # Check whether --enable-silent-rules was given. |
| 4234 | if test "${enable_silent_rules+set}" = set; then : |
| 4235 | enableval=$enable_silent_rules; |
| 4236 | fi |
| 4237 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 4238 | case $enable_silent_rules in # ((( |
| 4239 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 4240 | no) AM_DEFAULT_VERBOSITY=1;; |
| 4241 | *) AM_DEFAULT_VERBOSITY=0;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4242 | esac |
| cristy | c3fb77b | 2012-02-06 01:49:41 +0000 | [diff] [blame] | 4243 | am_make=${MAKE-make} |
| 4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 4245 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 4246 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 4247 | $as_echo_n "(cached) " >&6 |
| 4248 | else |
| 4249 | if $as_echo 'TRUE=$(BAR$(V)) |
| 4250 | BAR0=false |
| 4251 | BAR1=true |
| 4252 | V=1 |
| 4253 | am__doit: |
| 4254 | @$(TRUE) |
| 4255 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 4256 | am_cv_make_support_nested_variables=yes |
| 4257 | else |
| 4258 | am_cv_make_support_nested_variables=no |
| 4259 | fi |
| 4260 | fi |
| 4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 4262 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 4263 | if test $am_cv_make_support_nested_variables = yes; then |
| 4264 | AM_V='$(V)' |
| 4265 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 4266 | else |
| 4267 | AM_V=$AM_DEFAULT_VERBOSITY |
| 4268 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 4269 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4270 | AM_BACKSLASH='\' |
| 4271 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4272 | |
| 4273 | MAGICK_LIB_VERSION="0x" |
| 4274 | if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then |
| 4275 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4276 | fi |
| 4277 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT} |
| 4278 | if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then |
| 4279 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4280 | fi |
| 4281 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE} |
| 4282 | if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then |
| 4283 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0 |
| 4284 | fi |
| 4285 | MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION} |
| 4286 | |
| 4287 | |
| 4288 | # Definition used to define MagickLibVersionText in version.h |
| 4289 | MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}" |
| 4290 | |
| 4291 | |
| 4292 | # Definition used to define MagickLibVersionNumber in version.h |
| 4293 | MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}" |
| 4294 | |
| 4295 | |
| 4296 | # Regenerate config.status if ChangeLog or version.sh is updated. |
| 4297 | CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh' |
| 4298 | |
| 4299 | |
| 4300 | PERLMAINCC=$CC |
| 4301 | |
| 4302 | MAGICK_CFLAGS='' |
| 4303 | MAGICK_CPPFLAGS=$CPPFLAGS_USER |
| 4304 | MAGICK_PCFLAGS=$CPPFLAGS_USER |
| 4305 | MAGICK_LDFLAGS='' |
| 4306 | MAGICK_LIBS='' |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 4307 | MAGICK_FEATURES='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4308 | |
| 4309 | # |
| 4310 | # Evaluate shell variable equivalents to Makefile directory variables |
| 4311 | # |
| 4312 | if test "x$prefix" = xNONE; then |
| 4313 | prefix=$ac_default_prefix |
| 4314 | fi |
| 4315 | # Let make expand exec_prefix. |
| 4316 | if test "x$exec_prefix" = xNONE; then |
| 4317 | exec_prefix='${prefix}' |
| 4318 | fi |
| 4319 | |
| 4320 | # |
| 4321 | eval "eval PREFIX_DIR=${prefix}" |
| 4322 | |
| 4323 | eval "eval EXEC_PREFIX_DIR=${exec_prefix}" |
| 4324 | |
| 4325 | eval "eval BIN_DIR=$bindir" |
| 4326 | |
| 4327 | eval "eval SBIN_DIR=$sbindir" |
| 4328 | |
| 4329 | eval "eval LIBEXEC_DIR=$libexecdir" |
| 4330 | |
| 4331 | eval "eval DATA_DIR=$datadir" |
| 4332 | |
| cristy | 4e65ec2 | 2012-04-08 01:33:27 +0000 | [diff] [blame] | 4333 | eval "eval DOC_DIR=$datadir/doc" |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 4334 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4335 | eval "eval SYSCONF_DIR=$sysconfdir" |
| 4336 | |
| 4337 | eval "eval SHAREDSTATE_DIR=$sharedstatedir" |
| 4338 | |
| 4339 | eval "eval LOCALSTATE_DIR=$localstatedir" |
| 4340 | |
| 4341 | eval "eval LIB_DIR=$libdir" |
| 4342 | |
| 4343 | eval "eval INCLUDE_DIR=$includedir" |
| 4344 | |
| 4345 | eval "eval PERSISTINCLUDE_DIR=$oldincludedir" |
| 4346 | |
| 4347 | eval "eval INFO_DIR=$infodir" |
| 4348 | |
| 4349 | eval "eval MAN_DIR=$mandir" |
| 4350 | |
| 4351 | |
| 4352 | # Get full paths to source and build directories |
| 4353 | srcdirfull="`cd $srcdir && pwd`" |
| 4354 | builddir="`pwd`" |
| 4355 | |
| 4356 | # |
| 4357 | # Compute variables useful for running uninstalled software. |
| 4358 | # |
| 4359 | MAGICK_CODER_MODULE_PATH="${builddir}/coders" |
| 4360 | MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config" |
| 4361 | MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config" |
| 4362 | MAGICK_FILTER_MODULE_PATH="${builddir}/filters" |
| 4363 | DIRSEP=':' |
| 4364 | case "${build_os}" in |
| 4365 | mingw* ) |
| 4366 | MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0` |
| 4367 | MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0` |
| 4368 | MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0` |
| 4369 | MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0` |
| 4370 | DIRSEP=';' |
| 4371 | ;; |
| 4372 | esac |
| 4373 | case "${host_os}" in |
| 4374 | mingw* ) |
| 4375 | DIRSEP=';' |
| 4376 | ;; |
| 4377 | esac |
| 4378 | |
| 4379 | |
| 4380 | |
| 4381 | |
| 4382 | |
| 4383 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 4384 | |
| 4385 | # |
| 4386 | # Enable OS features. |
| 4387 | # |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4388 | DEPDIR="${am__leading_dot}deps" |
| 4389 | |
| 4390 | ac_config_commands="$ac_config_commands depfiles" |
| 4391 | |
| 4392 | |
| 4393 | am_make=${MAKE-make} |
| 4394 | cat > confinc << 'END' |
| 4395 | am__doit: |
| 4396 | @echo this is the am__doit target |
| 4397 | .PHONY: am__doit |
| 4398 | END |
| 4399 | # If we don't find an include directive, just comment out the code. |
| 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 4401 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 4402 | am__include="#" |
| 4403 | am__quote= |
| 4404 | _am_result=none |
| 4405 | # First try GNU make style include. |
| 4406 | echo "include confinc" > confmf |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 4407 | # Ignore all kinds of additional output from 'make'. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4408 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4409 | *the\ am__doit\ target*) |
| 4410 | am__include=include |
| 4411 | am__quote= |
| 4412 | _am_result=GNU |
| 4413 | ;; |
| 4414 | esac |
| 4415 | # Now try BSD make style include. |
| 4416 | if test "$am__include" = "#"; then |
| 4417 | echo '.include "confinc"' > confmf |
| 4418 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 4419 | *the\ am__doit\ target*) |
| 4420 | am__include=.include |
| 4421 | am__quote="\"" |
| 4422 | _am_result=BSD |
| 4423 | ;; |
| 4424 | esac |
| 4425 | fi |
| 4426 | |
| 4427 | |
| 4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 4429 | $as_echo "$_am_result" >&6; } |
| 4430 | rm -f confinc confmf |
| 4431 | |
| 4432 | # Check whether --enable-dependency-tracking was given. |
| 4433 | if test "${enable_dependency_tracking+set}" = set; then : |
| 4434 | enableval=$enable_dependency_tracking; |
| 4435 | fi |
| 4436 | |
| 4437 | if test "x$enable_dependency_tracking" != xno; then |
| 4438 | am_depcomp="$ac_aux_dir/depcomp" |
| 4439 | AMDEPBACKSLASH='\' |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 4440 | am__nodep='_no' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 4441 | fi |
| 4442 | if test "x$enable_dependency_tracking" != xno; then |
| 4443 | AMDEP_TRUE= |
| 4444 | AMDEP_FALSE='#' |
| 4445 | else |
| 4446 | AMDEP_TRUE='#' |
| 4447 | AMDEP_FALSE= |
| 4448 | fi |
| 4449 | |
| 4450 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4451 | ac_ext=c |
| 4452 | ac_cpp='$CPP $CPPFLAGS' |
| 4453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4456 | if test -n "$ac_tool_prefix"; then |
| 4457 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4458 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4460 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4461 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4462 | $as_echo_n "(cached) " >&6 |
| 4463 | else |
| 4464 | if test -n "$CC"; then |
| 4465 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4466 | else |
| 4467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4468 | for as_dir in $PATH |
| 4469 | do |
| 4470 | IFS=$as_save_IFS |
| 4471 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4472 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4473 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4474 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4476 | break 2 |
| 4477 | fi |
| 4478 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4479 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4480 | IFS=$as_save_IFS |
| 4481 | |
| 4482 | fi |
| 4483 | fi |
| 4484 | CC=$ac_cv_prog_CC |
| 4485 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4487 | $as_echo "$CC" >&6; } |
| 4488 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4490 | $as_echo "no" >&6; } |
| 4491 | fi |
| 4492 | |
| 4493 | |
| 4494 | fi |
| 4495 | if test -z "$ac_cv_prog_CC"; then |
| 4496 | ac_ct_CC=$CC |
| 4497 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4498 | set dummy gcc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4500 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4501 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4502 | $as_echo_n "(cached) " >&6 |
| 4503 | else |
| 4504 | if test -n "$ac_ct_CC"; then |
| 4505 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4506 | else |
| 4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4508 | for as_dir in $PATH |
| 4509 | do |
| 4510 | IFS=$as_save_IFS |
| 4511 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4512 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4513 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4514 | ac_cv_prog_ac_ct_CC="gcc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4516 | break 2 |
| 4517 | fi |
| 4518 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4519 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4520 | IFS=$as_save_IFS |
| 4521 | |
| 4522 | fi |
| 4523 | fi |
| 4524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4525 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4527 | $as_echo "$ac_ct_CC" >&6; } |
| 4528 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4530 | $as_echo "no" >&6; } |
| 4531 | fi |
| 4532 | |
| 4533 | if test "x$ac_ct_CC" = x; then |
| 4534 | CC="" |
| 4535 | else |
| 4536 | case $cross_compiling:$ac_tool_warned in |
| 4537 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4538 | { $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] | 4539 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4540 | ac_tool_warned=yes ;; |
| 4541 | esac |
| 4542 | CC=$ac_ct_CC |
| 4543 | fi |
| 4544 | else |
| 4545 | CC="$ac_cv_prog_CC" |
| 4546 | fi |
| 4547 | |
| 4548 | if test -z "$CC"; then |
| 4549 | if test -n "$ac_tool_prefix"; then |
| 4550 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4551 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4553 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4554 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4555 | $as_echo_n "(cached) " >&6 |
| 4556 | else |
| 4557 | if test -n "$CC"; then |
| 4558 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4559 | else |
| 4560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4561 | for as_dir in $PATH |
| 4562 | do |
| 4563 | IFS=$as_save_IFS |
| 4564 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4566 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4567 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4568 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4569 | break 2 |
| 4570 | fi |
| 4571 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4572 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4573 | IFS=$as_save_IFS |
| 4574 | |
| 4575 | fi |
| 4576 | fi |
| 4577 | CC=$ac_cv_prog_CC |
| 4578 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4580 | $as_echo "$CC" >&6; } |
| 4581 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4583 | $as_echo "no" >&6; } |
| 4584 | fi |
| 4585 | |
| 4586 | |
| 4587 | fi |
| 4588 | fi |
| 4589 | if test -z "$CC"; then |
| 4590 | # Extract the first word of "cc", so it can be a program name with args. |
| 4591 | set dummy cc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4593 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4594 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4595 | $as_echo_n "(cached) " >&6 |
| 4596 | else |
| 4597 | if test -n "$CC"; then |
| 4598 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4599 | else |
| 4600 | ac_prog_rejected=no |
| 4601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4602 | for as_dir in $PATH |
| 4603 | do |
| 4604 | IFS=$as_save_IFS |
| 4605 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4607 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4608 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4609 | ac_prog_rejected=yes |
| 4610 | continue |
| 4611 | fi |
| 4612 | ac_cv_prog_CC="cc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4614 | break 2 |
| 4615 | fi |
| 4616 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4617 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4618 | IFS=$as_save_IFS |
| 4619 | |
| 4620 | if test $ac_prog_rejected = yes; then |
| 4621 | # We found a bogon in the path, so make sure we never use it. |
| 4622 | set dummy $ac_cv_prog_CC |
| 4623 | shift |
| 4624 | if test $# != 0; then |
| 4625 | # We chose a different compiler from the bogus one. |
| 4626 | # However, it has the same basename, so the bogon will be chosen |
| 4627 | # first if we set CC to just the basename; use the full file name. |
| 4628 | shift |
| 4629 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4630 | fi |
| 4631 | fi |
| 4632 | fi |
| 4633 | fi |
| 4634 | CC=$ac_cv_prog_CC |
| 4635 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4637 | $as_echo "$CC" >&6; } |
| 4638 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4640 | $as_echo "no" >&6; } |
| 4641 | fi |
| 4642 | |
| 4643 | |
| 4644 | fi |
| 4645 | if test -z "$CC"; then |
| 4646 | if test -n "$ac_tool_prefix"; then |
| 4647 | for ac_prog in cl.exe |
| 4648 | do |
| 4649 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4650 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4652 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4653 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4654 | $as_echo_n "(cached) " >&6 |
| 4655 | else |
| 4656 | if test -n "$CC"; then |
| 4657 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4658 | else |
| 4659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4660 | for as_dir in $PATH |
| 4661 | do |
| 4662 | IFS=$as_save_IFS |
| 4663 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4665 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4666 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4668 | break 2 |
| 4669 | fi |
| 4670 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4671 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4672 | IFS=$as_save_IFS |
| 4673 | |
| 4674 | fi |
| 4675 | fi |
| 4676 | CC=$ac_cv_prog_CC |
| 4677 | if test -n "$CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4679 | $as_echo "$CC" >&6; } |
| 4680 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4682 | $as_echo "no" >&6; } |
| 4683 | fi |
| 4684 | |
| 4685 | |
| 4686 | test -n "$CC" && break |
| 4687 | done |
| 4688 | fi |
| 4689 | if test -z "$CC"; then |
| 4690 | ac_ct_CC=$CC |
| 4691 | for ac_prog in cl.exe |
| 4692 | do |
| 4693 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4694 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4696 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4697 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4698 | $as_echo_n "(cached) " >&6 |
| 4699 | else |
| 4700 | if test -n "$ac_ct_CC"; then |
| 4701 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4702 | else |
| 4703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4704 | for as_dir in $PATH |
| 4705 | do |
| 4706 | IFS=$as_save_IFS |
| 4707 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 4709 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4710 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4712 | break 2 |
| 4713 | fi |
| 4714 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4715 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4716 | IFS=$as_save_IFS |
| 4717 | |
| 4718 | fi |
| 4719 | fi |
| 4720 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4721 | if test -n "$ac_ct_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4723 | $as_echo "$ac_ct_CC" >&6; } |
| 4724 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4726 | $as_echo "no" >&6; } |
| 4727 | fi |
| 4728 | |
| 4729 | |
| 4730 | test -n "$ac_ct_CC" && break |
| 4731 | done |
| 4732 | |
| 4733 | if test "x$ac_ct_CC" = x; then |
| 4734 | CC="" |
| 4735 | else |
| 4736 | case $cross_compiling:$ac_tool_warned in |
| 4737 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4738 | { $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] | 4739 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4740 | ac_tool_warned=yes ;; |
| 4741 | esac |
| 4742 | CC=$ac_ct_CC |
| 4743 | fi |
| 4744 | fi |
| 4745 | |
| 4746 | fi |
| 4747 | |
| 4748 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4749 | 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] | 4750 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4751 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 4752 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4753 | |
| 4754 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4755 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4756 | set X $ac_compile |
| 4757 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4758 | for ac_option in --version -v -V -qversion; do |
| 4759 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4760 | case "(($ac_try" in |
| 4761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4762 | *) ac_try_echo=$ac_try;; |
| 4763 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4765 | $as_echo "$ac_try_echo"; } >&5 |
| 4766 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4767 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4768 | if test -s conftest.err; then |
| 4769 | sed '10a\ |
| 4770 | ... rest of stderr output deleted ... |
| 4771 | 10q' conftest.err >conftest.er1 |
| 4772 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4773 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4774 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4776 | test $ac_status = 0; } |
| 4777 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4778 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4780 | /* end confdefs.h. */ |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4781 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4782 | int |
| 4783 | main () |
| 4784 | { |
| 4785 | |
| 4786 | ; |
| 4787 | return 0; |
| 4788 | } |
| 4789 | _ACEOF |
| 4790 | ac_clean_files_save=$ac_clean_files |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4791 | 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] | 4792 | # Try to create an executable without -o first, disregard a.out. |
| 4793 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4794 | # of exeext. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4796 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4797 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4798 | |
| 4799 | # The possible output files: |
| 4800 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 4801 | |
| 4802 | ac_rmfiles= |
| 4803 | for ac_file in $ac_files |
| 4804 | do |
| 4805 | case $ac_file in |
| 4806 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4807 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 4808 | esac |
| 4809 | done |
| 4810 | rm -f $ac_rmfiles |
| 4811 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4812 | if { { ac_try="$ac_link_default" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4813 | case "(($ac_try" in |
| 4814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4815 | *) ac_try_echo=$ac_try;; |
| 4816 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4817 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4818 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4819 | (eval "$ac_link_default") 2>&5 |
| 4820 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4822 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4823 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 4824 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 4825 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 4826 | # so that the user can short-circuit this test for compilers unknown to |
| 4827 | # Autoconf. |
| 4828 | for ac_file in $ac_files '' |
| 4829 | do |
| 4830 | test -f "$ac_file" || continue |
| 4831 | case $ac_file in |
| 4832 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 4833 | ;; |
| 4834 | [ab].out ) |
| 4835 | # We found the default executable, but exeext='' is most |
| 4836 | # certainly right. |
| 4837 | break;; |
| 4838 | *.* ) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4839 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4840 | then :; else |
| 4841 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4842 | fi |
| 4843 | # We set ac_cv_exeext here because the later test for it is not |
| 4844 | # safe: cross compilers may not add the suffix if given an `-o' |
| 4845 | # argument, so we may need to know it at that point already. |
| 4846 | # Even if this section looks crufty: it has the advantage of |
| 4847 | # actually working. |
| 4848 | break;; |
| 4849 | * ) |
| 4850 | break;; |
| 4851 | esac |
| 4852 | done |
| 4853 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 4854 | |
| 4855 | else |
| 4856 | ac_file='' |
| 4857 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4858 | if test -z "$ac_file"; then : |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4860 | $as_echo "no" >&6; } |
| 4861 | $as_echo "$as_me: failed program was:" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4863 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4864 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4865 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4866 | as_fn_error 77 "C compiler cannot create executables |
| 4867 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4868 | else |
| 4869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4870 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4871 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 4873 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 4875 | $as_echo "$ac_file" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4876 | ac_exeext=$ac_cv_exeext |
| 4877 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4878 | 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] | 4879 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4881 | $as_echo_n "checking for suffix of executables... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4882 | if { { ac_try="$ac_link" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4883 | case "(($ac_try" in |
| 4884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4885 | *) ac_try_echo=$ac_try;; |
| 4886 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4888 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4889 | (eval "$ac_link") 2>&5 |
| 4890 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4892 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4893 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 4894 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 4895 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 4896 | # `rm'. |
| 4897 | for ac_file in conftest.exe conftest conftest.*; do |
| 4898 | test -f "$ac_file" || continue |
| 4899 | case $ac_file in |
| 4900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 4901 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 4902 | break;; |
| 4903 | * ) break;; |
| 4904 | esac |
| 4905 | done |
| 4906 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4907 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4908 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4909 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 4910 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4911 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4912 | rm -f conftest conftest$ac_cv_exeext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4914 | $as_echo "$ac_cv_exeext" >&6; } |
| 4915 | |
| 4916 | rm -f conftest.$ac_ext |
| 4917 | EXEEXT=$ac_cv_exeext |
| 4918 | ac_exeext=$EXEEXT |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4920 | /* end confdefs.h. */ |
| 4921 | #include <stdio.h> |
| 4922 | int |
| 4923 | main () |
| 4924 | { |
| 4925 | FILE *f = fopen ("conftest.out", "w"); |
| 4926 | return ferror (f) || fclose (f) != 0; |
| 4927 | |
| 4928 | ; |
| 4929 | return 0; |
| 4930 | } |
| 4931 | _ACEOF |
| 4932 | ac_clean_files="$ac_clean_files conftest.out" |
| 4933 | # Check that the compiler produces executables we can run. If not, either |
| 4934 | # the compiler is broken, or we cross compile. |
| 4935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 4936 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 4937 | if test "$cross_compiling" != yes; then |
| 4938 | { { ac_try="$ac_link" |
| 4939 | case "(($ac_try" in |
| 4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4941 | *) ac_try_echo=$ac_try;; |
| 4942 | esac |
| 4943 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4944 | $as_echo "$ac_try_echo"; } >&5 |
| 4945 | (eval "$ac_link") 2>&5 |
| 4946 | ac_status=$? |
| 4947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4948 | test $ac_status = 0; } |
| 4949 | if { ac_try='./conftest$ac_cv_exeext' |
| 4950 | { { case "(($ac_try" in |
| 4951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4952 | *) ac_try_echo=$ac_try;; |
| 4953 | esac |
| 4954 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4955 | $as_echo "$ac_try_echo"; } >&5 |
| 4956 | (eval "$ac_try") 2>&5 |
| 4957 | ac_status=$? |
| 4958 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4959 | test $ac_status = 0; }; }; then |
| 4960 | cross_compiling=no |
| 4961 | else |
| 4962 | if test "$cross_compiling" = maybe; then |
| 4963 | cross_compiling=yes |
| 4964 | else |
| 4965 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4966 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4967 | as_fn_error $? "cannot run C compiled programs. |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4968 | If you meant to cross compile, use \`--host'. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 4969 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 4970 | fi |
| 4971 | fi |
| 4972 | fi |
| 4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 4974 | $as_echo "$cross_compiling" >&6; } |
| 4975 | |
| 4976 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 4977 | ac_clean_files=$ac_clean_files_save |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4978 | { $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] | 4979 | $as_echo_n "checking for suffix of object files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 4980 | if ${ac_cv_objext+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4981 | $as_echo_n "(cached) " >&6 |
| 4982 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4984 | /* end confdefs.h. */ |
| 4985 | |
| 4986 | int |
| 4987 | main () |
| 4988 | { |
| 4989 | |
| 4990 | ; |
| 4991 | return 0; |
| 4992 | } |
| 4993 | _ACEOF |
| 4994 | rm -f conftest.o conftest.obj |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 4995 | if { { ac_try="$ac_compile" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 4996 | case "(($ac_try" in |
| 4997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4998 | *) ac_try_echo=$ac_try;; |
| 4999 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5000 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5001 | $as_echo "$ac_try_echo"; } >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5002 | (eval "$ac_compile") 2>&5 |
| 5003 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5004 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5005 | test $ac_status = 0; }; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5006 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 5007 | test -f "$ac_file" || continue; |
| 5008 | case $ac_file in |
| 5009 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 5010 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 5011 | break;; |
| 5012 | esac |
| 5013 | done |
| 5014 | else |
| 5015 | $as_echo "$as_me: failed program was:" >&5 |
| 5016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5017 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5018 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5019 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5020 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 5021 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5022 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5023 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 5024 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5026 | $as_echo "$ac_cv_objext" >&6; } |
| 5027 | OBJEXT=$ac_cv_objext |
| 5028 | ac_objext=$OBJEXT |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5029 | { $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] | 5030 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5031 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5032 | $as_echo_n "(cached) " >&6 |
| 5033 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5035 | /* end confdefs.h. */ |
| 5036 | |
| 5037 | int |
| 5038 | main () |
| 5039 | { |
| 5040 | #ifndef __GNUC__ |
| 5041 | choke me |
| 5042 | #endif |
| 5043 | |
| 5044 | ; |
| 5045 | return 0; |
| 5046 | } |
| 5047 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5048 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5049 | ac_compiler_gnu=yes |
| 5050 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5051 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5052 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5054 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5055 | |
| 5056 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5057 | { $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] | 5058 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5059 | if test $ac_compiler_gnu = yes; then |
| 5060 | GCC=yes |
| 5061 | else |
| 5062 | GCC= |
| 5063 | fi |
| 5064 | ac_test_CFLAGS=${CFLAGS+set} |
| 5065 | ac_save_CFLAGS=$CFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5067 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5068 | if ${ac_cv_prog_cc_g+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5069 | $as_echo_n "(cached) " >&6 |
| 5070 | else |
| 5071 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5072 | ac_c_werror_flag=yes |
| 5073 | ac_cv_prog_cc_g=no |
| 5074 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5076 | /* end confdefs.h. */ |
| 5077 | |
| 5078 | int |
| 5079 | main () |
| 5080 | { |
| 5081 | |
| 5082 | ; |
| 5083 | return 0; |
| 5084 | } |
| 5085 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5086 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5087 | ac_cv_prog_cc_g=yes |
| 5088 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5089 | CFLAGS="" |
| 5090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5091 | /* end confdefs.h. */ |
| 5092 | |
| 5093 | int |
| 5094 | main () |
| 5095 | { |
| 5096 | |
| 5097 | ; |
| 5098 | return 0; |
| 5099 | } |
| 5100 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5101 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5102 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5103 | else |
| 5104 | ac_c_werror_flag=$ac_save_c_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5105 | CFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5107 | /* end confdefs.h. */ |
| 5108 | |
| 5109 | int |
| 5110 | main () |
| 5111 | { |
| 5112 | |
| 5113 | ; |
| 5114 | return 0; |
| 5115 | } |
| 5116 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5117 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5118 | ac_cv_prog_cc_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5119 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5121 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5123 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5125 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5126 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5127 | { $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] | 5128 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5129 | if test "$ac_test_CFLAGS" = set; then |
| 5130 | CFLAGS=$ac_save_CFLAGS |
| 5131 | elif test $ac_cv_prog_cc_g = yes; then |
| 5132 | if test "$GCC" = yes; then |
| 5133 | CFLAGS="-g -O2" |
| 5134 | else |
| 5135 | CFLAGS="-g" |
| 5136 | fi |
| 5137 | else |
| 5138 | if test "$GCC" = yes; then |
| 5139 | CFLAGS="-O2" |
| 5140 | else |
| 5141 | CFLAGS= |
| 5142 | fi |
| 5143 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5144 | { $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] | 5145 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5146 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5147 | $as_echo_n "(cached) " >&6 |
| 5148 | else |
| 5149 | ac_cv_prog_cc_c89=no |
| 5150 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5152 | /* end confdefs.h. */ |
| 5153 | #include <stdarg.h> |
| 5154 | #include <stdio.h> |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5155 | struct stat; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5156 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5157 | struct buf { int x; }; |
| 5158 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5159 | static char *e (p, i) |
| 5160 | char **p; |
| 5161 | int i; |
| 5162 | { |
| 5163 | return p[i]; |
| 5164 | } |
| 5165 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5166 | { |
| 5167 | char *s; |
| 5168 | va_list v; |
| 5169 | va_start (v,p); |
| 5170 | s = g (p, va_arg (v,int)); |
| 5171 | va_end (v); |
| 5172 | return s; |
| 5173 | } |
| 5174 | |
| 5175 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5176 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5177 | These don't provoke an error unfortunately, instead are silently treated |
| 5178 | as 'x'. The following induces an error, until -std is added to get |
| 5179 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5180 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5181 | that's true only with -std. */ |
| 5182 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5183 | |
| 5184 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5185 | inside strings and character constants. */ |
| 5186 | #define FOO(x) 'x' |
| 5187 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5188 | |
| 5189 | int test (int i, double x); |
| 5190 | struct s1 {int (*f) (int a);}; |
| 5191 | struct s2 {int (*f) (double a);}; |
| 5192 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5193 | int argc; |
| 5194 | char **argv; |
| 5195 | int |
| 5196 | main () |
| 5197 | { |
| 5198 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5199 | ; |
| 5200 | return 0; |
| 5201 | } |
| 5202 | _ACEOF |
| 5203 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5204 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5205 | do |
| 5206 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5207 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5208 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5209 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5210 | rm -f core conftest.err conftest.$ac_objext |
| 5211 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5212 | done |
| 5213 | rm -f conftest.$ac_ext |
| 5214 | CC=$ac_save_CC |
| 5215 | |
| 5216 | fi |
| 5217 | # AC_CACHE_VAL |
| 5218 | case "x$ac_cv_prog_cc_c89" in |
| 5219 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5221 | $as_echo "none needed" >&6; } ;; |
| 5222 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5224 | $as_echo "unsupported" >&6; } ;; |
| 5225 | *) |
| 5226 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5227 | { $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] | 5228 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5229 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5230 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5231 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 5232 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5233 | |
| 5234 | ac_ext=c |
| 5235 | ac_cpp='$CPP $CPPFLAGS' |
| 5236 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5237 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5238 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5239 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5240 | depcc="$CC" am_compiler_list= |
| 5241 | |
| 5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5243 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5244 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5245 | $as_echo_n "(cached) " >&6 |
| 5246 | else |
| 5247 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5248 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5249 | # making bogus files that we don't know about and never remove. For |
| 5250 | # instance it was reported that on HP-UX the gcc test will end up |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 5251 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 5252 | # in D". |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 5253 | rm -rf conftest.dir |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5254 | mkdir conftest.dir |
| 5255 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5256 | # using a relative directory. |
| 5257 | cp "$am_depcomp" conftest.dir |
| 5258 | cd conftest.dir |
| 5259 | # We will build objects and dependencies in a subdirectory because |
| 5260 | # it helps to detect inapplicable dependency modes. For instance |
| 5261 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5262 | # side effect of compilation, but ICC will put the dependencies in |
| 5263 | # the current directory while Tru64 will put them in the object |
| 5264 | # directory. |
| 5265 | mkdir sub |
| 5266 | |
| 5267 | am_cv_CC_dependencies_compiler_type=none |
| 5268 | if test "$am_compiler_list" = ""; then |
| 5269 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5270 | fi |
| 5271 | am__universal=false |
| 5272 | case " $depcc " in #( |
| 5273 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5274 | esac |
| 5275 | |
| 5276 | for depmode in $am_compiler_list; do |
| 5277 | # Setup a source with many dependencies, because some compilers |
| 5278 | # like to wrap large dependency lists on column 80 (with \), and |
| 5279 | # we should not choose a depcomp mode which is confused by this. |
| 5280 | # |
| 5281 | # We need to recreate these files for each test, as the compiler may |
| 5282 | # overwrite some of them when testing with obscure command lines. |
| 5283 | # This happens at least with the AIX C compiler. |
| 5284 | : > sub/conftest.c |
| 5285 | for i in 1 2 3 4 5 6; do |
| 5286 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 5287 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5288 | # Solaris 10 /bin/sh. |
| 5289 | echo '/* dummy */' > sub/conftst$i.h |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5290 | done |
| 5291 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5292 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 5293 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5294 | # mode. It turns out that the SunPro C++ compiler does not properly |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 5295 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 5296 | # versions had trouble with output in subdirs. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5297 | am__obj=sub/conftest.${OBJEXT-o} |
| 5298 | am__minus_obj="-o $am__obj" |
| 5299 | case $depmode in |
| 5300 | gcc) |
| 5301 | # This depmode causes a compiler race in universal mode. |
| 5302 | test "$am__universal" = false || continue |
| 5303 | ;; |
| 5304 | nosideeffect) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 5305 | # After this tag, mechanisms are not by side-effect, so they'll |
| 5306 | # only be used when explicitly requested. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5307 | if test "x$enable_dependency_tracking" = xyes; then |
| 5308 | continue |
| 5309 | else |
| 5310 | break |
| 5311 | fi |
| 5312 | ;; |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 5313 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 5314 | # This compiler won't grok '-c -o', but also, the minuso test has |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 5315 | # not run yet. These depmodes are late enough in the game, and |
| 5316 | # so weak that their functioning should not be impacted. |
| 5317 | am__obj=conftest.${OBJEXT-o} |
| 5318 | am__minus_obj= |
| 5319 | ;; |
| 5320 | none) break ;; |
| 5321 | esac |
| 5322 | if depmode=$depmode \ |
| 5323 | source=sub/conftest.c object=$am__obj \ |
| 5324 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5325 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5326 | >/dev/null 2>conftest.err && |
| 5327 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5328 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5329 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5330 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5331 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5332 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5333 | # that says an option was ignored or not supported. |
| 5334 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5335 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5336 | # The diagnosis changed in icc 8.0: |
| 5337 | # icc: Command line remark: option '-MP' not supported |
| 5338 | if (grep 'ignoring option' conftest.err || |
| 5339 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5340 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5341 | break |
| 5342 | fi |
| 5343 | fi |
| 5344 | done |
| 5345 | |
| 5346 | cd .. |
| 5347 | rm -rf conftest.dir |
| 5348 | else |
| 5349 | am_cv_CC_dependencies_compiler_type=none |
| 5350 | fi |
| 5351 | |
| 5352 | fi |
| 5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5354 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5355 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5356 | |
| 5357 | if |
| 5358 | test "x$enable_dependency_tracking" != xno \ |
| 5359 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5360 | am__fastdepCC_TRUE= |
| 5361 | am__fastdepCC_FALSE='#' |
| 5362 | else |
| 5363 | am__fastdepCC_TRUE='#' |
| 5364 | am__fastdepCC_FALSE= |
| 5365 | fi |
| 5366 | |
| 5367 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 5368 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5369 | ac_ext=c |
| 5370 | ac_cpp='$CPP $CPPFLAGS' |
| 5371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5375 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5376 | # On Suns, sometimes $CPP names a directory. |
| 5377 | if test -n "$CPP" && test -d "$CPP"; then |
| 5378 | CPP= |
| 5379 | fi |
| 5380 | if test -z "$CPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5381 | if ${ac_cv_prog_CPP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5382 | $as_echo_n "(cached) " >&6 |
| 5383 | else |
| 5384 | # Double quotes because CPP needs to be expanded |
| 5385 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5386 | do |
| 5387 | ac_preproc_ok=false |
| 5388 | for ac_c_preproc_warn_flag in '' yes |
| 5389 | do |
| 5390 | # Use a header file that comes with gcc, so configuring glibc |
| 5391 | # with a fresh cross-compiler works. |
| 5392 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5393 | # <limits.h> exists even on freestanding compilers. |
| 5394 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5395 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5397 | /* end confdefs.h. */ |
| 5398 | #ifdef __STDC__ |
| 5399 | # include <limits.h> |
| 5400 | #else |
| 5401 | # include <assert.h> |
| 5402 | #endif |
| 5403 | Syntax error |
| 5404 | _ACEOF |
| 5405 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5406 | |
| 5407 | else |
| 5408 | # Broken: fails on valid input. |
| 5409 | continue |
| 5410 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5411 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5412 | |
| 5413 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5414 | # can be detected and how. |
| 5415 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5416 | /* end confdefs.h. */ |
| 5417 | #include <ac_nonexistent.h> |
| 5418 | _ACEOF |
| 5419 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5420 | # Broken: success on invalid input. |
| 5421 | continue |
| 5422 | else |
| 5423 | # Passes both tests. |
| 5424 | ac_preproc_ok=: |
| 5425 | break |
| 5426 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5427 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5428 | |
| 5429 | done |
| 5430 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5431 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5432 | if $ac_preproc_ok; then : |
| 5433 | break |
| 5434 | fi |
| 5435 | |
| 5436 | done |
| 5437 | ac_cv_prog_CPP=$CPP |
| 5438 | |
| 5439 | fi |
| 5440 | CPP=$ac_cv_prog_CPP |
| 5441 | else |
| 5442 | ac_cv_prog_CPP=$CPP |
| 5443 | fi |
| 5444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5445 | $as_echo "$CPP" >&6; } |
| 5446 | ac_preproc_ok=false |
| 5447 | for ac_c_preproc_warn_flag in '' yes |
| 5448 | do |
| 5449 | # Use a header file that comes with gcc, so configuring glibc |
| 5450 | # with a fresh cross-compiler works. |
| 5451 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5452 | # <limits.h> exists even on freestanding compilers. |
| 5453 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5454 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5456 | /* end confdefs.h. */ |
| 5457 | #ifdef __STDC__ |
| 5458 | # include <limits.h> |
| 5459 | #else |
| 5460 | # include <assert.h> |
| 5461 | #endif |
| 5462 | Syntax error |
| 5463 | _ACEOF |
| 5464 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5465 | |
| 5466 | else |
| 5467 | # Broken: fails on valid input. |
| 5468 | continue |
| 5469 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5470 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5471 | |
| 5472 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5473 | # can be detected and how. |
| 5474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5475 | /* end confdefs.h. */ |
| 5476 | #include <ac_nonexistent.h> |
| 5477 | _ACEOF |
| 5478 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5479 | # Broken: success on invalid input. |
| 5480 | continue |
| 5481 | else |
| 5482 | # Passes both tests. |
| 5483 | ac_preproc_ok=: |
| 5484 | break |
| 5485 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5486 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5487 | |
| 5488 | done |
| 5489 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5490 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5491 | if $ac_preproc_ok; then : |
| 5492 | |
| 5493 | else |
| 5494 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5495 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5496 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 5497 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5498 | fi |
| 5499 | |
| 5500 | ac_ext=c |
| 5501 | ac_cpp='$CPP $CPPFLAGS' |
| 5502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5505 | |
| 5506 | |
| 5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5508 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5509 | if ${ac_cv_path_GREP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5510 | $as_echo_n "(cached) " >&6 |
| 5511 | else |
| 5512 | if test -z "$GREP"; then |
| 5513 | ac_path_GREP_found=false |
| 5514 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5516 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5517 | do |
| 5518 | IFS=$as_save_IFS |
| 5519 | test -z "$as_dir" && as_dir=. |
| 5520 | for ac_prog in grep ggrep; do |
| 5521 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5522 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5523 | as_fn_executable_p "$ac_path_GREP" || continue |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5524 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5525 | # Check for GNU $ac_path_GREP |
| 5526 | case `"$ac_path_GREP" --version 2>&1` in |
| 5527 | *GNU*) |
| 5528 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5529 | *) |
| 5530 | ac_count=0 |
| 5531 | $as_echo_n 0123456789 >"conftest.in" |
| 5532 | while : |
| 5533 | do |
| 5534 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5535 | mv "conftest.tmp" "conftest.in" |
| 5536 | cp "conftest.in" "conftest.nl" |
| 5537 | $as_echo 'GREP' >> "conftest.nl" |
| 5538 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5539 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5540 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5541 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5542 | # Best one so far, save it but keep looking for a better one |
| 5543 | ac_cv_path_GREP="$ac_path_GREP" |
| 5544 | ac_path_GREP_max=$ac_count |
| 5545 | fi |
| 5546 | # 10*(2^10) chars as input seems more than enough |
| 5547 | test $ac_count -gt 10 && break |
| 5548 | done |
| 5549 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5550 | esac |
| 5551 | |
| 5552 | $ac_path_GREP_found && break 3 |
| 5553 | done |
| 5554 | done |
| 5555 | done |
| 5556 | IFS=$as_save_IFS |
| 5557 | if test -z "$ac_cv_path_GREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5558 | 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] | 5559 | fi |
| 5560 | else |
| 5561 | ac_cv_path_GREP=$GREP |
| 5562 | fi |
| 5563 | |
| 5564 | fi |
| 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5566 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5567 | GREP="$ac_cv_path_GREP" |
| 5568 | |
| 5569 | |
| 5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5571 | $as_echo_n "checking for egrep... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5572 | if ${ac_cv_path_EGREP+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5573 | $as_echo_n "(cached) " >&6 |
| 5574 | else |
| 5575 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5576 | then ac_cv_path_EGREP="$GREP -E" |
| 5577 | else |
| 5578 | if test -z "$EGREP"; then |
| 5579 | ac_path_EGREP_found=false |
| 5580 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5582 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5583 | do |
| 5584 | IFS=$as_save_IFS |
| 5585 | test -z "$as_dir" && as_dir=. |
| 5586 | for ac_prog in egrep; do |
| 5587 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5588 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5589 | as_fn_executable_p "$ac_path_EGREP" || continue |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5590 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5591 | # Check for GNU $ac_path_EGREP |
| 5592 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5593 | *GNU*) |
| 5594 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5595 | *) |
| 5596 | ac_count=0 |
| 5597 | $as_echo_n 0123456789 >"conftest.in" |
| 5598 | while : |
| 5599 | do |
| 5600 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5601 | mv "conftest.tmp" "conftest.in" |
| 5602 | cp "conftest.in" "conftest.nl" |
| 5603 | $as_echo 'EGREP' >> "conftest.nl" |
| 5604 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5605 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5606 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5607 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 5608 | # Best one so far, save it but keep looking for a better one |
| 5609 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 5610 | ac_path_EGREP_max=$ac_count |
| 5611 | fi |
| 5612 | # 10*(2^10) chars as input seems more than enough |
| 5613 | test $ac_count -gt 10 && break |
| 5614 | done |
| 5615 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5616 | esac |
| 5617 | |
| 5618 | $ac_path_EGREP_found && break 3 |
| 5619 | done |
| 5620 | done |
| 5621 | done |
| 5622 | IFS=$as_save_IFS |
| 5623 | if test -z "$ac_cv_path_EGREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5624 | 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] | 5625 | fi |
| 5626 | else |
| 5627 | ac_cv_path_EGREP=$EGREP |
| 5628 | fi |
| 5629 | |
| 5630 | fi |
| 5631 | fi |
| 5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 5633 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 5634 | EGREP="$ac_cv_path_EGREP" |
| 5635 | |
| 5636 | |
| 5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 5638 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5639 | if ${ac_cv_header_stdc+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5640 | $as_echo_n "(cached) " >&6 |
| 5641 | else |
| 5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5643 | /* end confdefs.h. */ |
| 5644 | #include <stdlib.h> |
| 5645 | #include <stdarg.h> |
| 5646 | #include <string.h> |
| 5647 | #include <float.h> |
| 5648 | |
| 5649 | int |
| 5650 | main () |
| 5651 | { |
| 5652 | |
| 5653 | ; |
| 5654 | return 0; |
| 5655 | } |
| 5656 | _ACEOF |
| 5657 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5658 | ac_cv_header_stdc=yes |
| 5659 | else |
| 5660 | ac_cv_header_stdc=no |
| 5661 | fi |
| 5662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5663 | |
| 5664 | if test $ac_cv_header_stdc = yes; then |
| 5665 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5667 | /* end confdefs.h. */ |
| 5668 | #include <string.h> |
| 5669 | |
| 5670 | _ACEOF |
| 5671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5672 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 5673 | |
| 5674 | else |
| 5675 | ac_cv_header_stdc=no |
| 5676 | fi |
| 5677 | rm -f conftest* |
| 5678 | |
| 5679 | fi |
| 5680 | |
| 5681 | if test $ac_cv_header_stdc = yes; then |
| 5682 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5684 | /* end confdefs.h. */ |
| 5685 | #include <stdlib.h> |
| 5686 | |
| 5687 | _ACEOF |
| 5688 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5689 | $EGREP "free" >/dev/null 2>&1; then : |
| 5690 | |
| 5691 | else |
| 5692 | ac_cv_header_stdc=no |
| 5693 | fi |
| 5694 | rm -f conftest* |
| 5695 | |
| 5696 | fi |
| 5697 | |
| 5698 | if test $ac_cv_header_stdc = yes; then |
| 5699 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5700 | if test "$cross_compiling" = yes; then : |
| 5701 | : |
| 5702 | else |
| 5703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5704 | /* end confdefs.h. */ |
| 5705 | #include <ctype.h> |
| 5706 | #include <stdlib.h> |
| 5707 | #if ((' ' & 0x0FF) == 0x020) |
| 5708 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5709 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5710 | #else |
| 5711 | # define ISLOWER(c) \ |
| 5712 | (('a' <= (c) && (c) <= 'i') \ |
| 5713 | || ('j' <= (c) && (c) <= 'r') \ |
| 5714 | || ('s' <= (c) && (c) <= 'z')) |
| 5715 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5716 | #endif |
| 5717 | |
| 5718 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5719 | int |
| 5720 | main () |
| 5721 | { |
| 5722 | int i; |
| 5723 | for (i = 0; i < 256; i++) |
| 5724 | if (XOR (islower (i), ISLOWER (i)) |
| 5725 | || toupper (i) != TOUPPER (i)) |
| 5726 | return 2; |
| 5727 | return 0; |
| 5728 | } |
| 5729 | _ACEOF |
| 5730 | if ac_fn_c_try_run "$LINENO"; then : |
| 5731 | |
| 5732 | else |
| 5733 | ac_cv_header_stdc=no |
| 5734 | fi |
| 5735 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5736 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5737 | fi |
| 5738 | |
| 5739 | fi |
| 5740 | fi |
| 5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 5742 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 5743 | if test $ac_cv_header_stdc = yes; then |
| 5744 | |
| 5745 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 5746 | |
| 5747 | fi |
| 5748 | |
| 5749 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5750 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5751 | inttypes.h stdint.h unistd.h |
| 5752 | do : |
| 5753 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5754 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 5755 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 5756 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5757 | cat >>confdefs.h <<_ACEOF |
| 5758 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5759 | _ACEOF |
| 5760 | |
| 5761 | fi |
| 5762 | |
| 5763 | done |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | 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] | 5768 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5769 | MINIX=yes |
| 5770 | else |
| 5771 | MINIX= |
| 5772 | fi |
| 5773 | |
| 5774 | |
| 5775 | if test "$MINIX" = yes; then |
| 5776 | |
| 5777 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 5778 | |
| 5779 | |
| 5780 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 5781 | |
| 5782 | |
| 5783 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 5784 | |
| 5785 | fi |
| 5786 | |
| 5787 | |
| 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 5789 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5790 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5791 | $as_echo_n "(cached) " >&6 |
| 5792 | else |
| 5793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5794 | /* end confdefs.h. */ |
| 5795 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5796 | # define __EXTENSIONS__ 1 |
| 5797 | $ac_includes_default |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5798 | int |
| 5799 | main () |
| 5800 | { |
| 5801 | |
| 5802 | ; |
| 5803 | return 0; |
| 5804 | } |
| 5805 | _ACEOF |
| 5806 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5807 | ac_cv_safe_to_define___extensions__=yes |
| 5808 | else |
| 5809 | ac_cv_safe_to_define___extensions__=no |
| 5810 | fi |
| 5811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5812 | fi |
| 5813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 5814 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 5815 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 5816 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 5817 | |
| 5818 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 5819 | |
| 5820 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 5821 | |
| 5822 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 5823 | |
| 5824 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 5825 | |
| 5826 | |
| 5827 | |
| 5828 | # Check for programs |
| 5829 | ac_ext=c |
| 5830 | ac_cpp='$CPP $CPPFLAGS' |
| 5831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5834 | if test -n "$ac_tool_prefix"; then |
| 5835 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5836 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5838 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5839 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5840 | $as_echo_n "(cached) " >&6 |
| 5841 | else |
| 5842 | if test -n "$CC"; then |
| 5843 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5844 | else |
| 5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5846 | for as_dir in $PATH |
| 5847 | do |
| 5848 | IFS=$as_save_IFS |
| 5849 | test -z "$as_dir" && as_dir=. |
| 5850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5851 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5852 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5854 | break 2 |
| 5855 | fi |
| 5856 | done |
| 5857 | done |
| 5858 | IFS=$as_save_IFS |
| 5859 | |
| 5860 | fi |
| 5861 | fi |
| 5862 | CC=$ac_cv_prog_CC |
| 5863 | if test -n "$CC"; then |
| 5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5865 | $as_echo "$CC" >&6; } |
| 5866 | else |
| 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5868 | $as_echo "no" >&6; } |
| 5869 | fi |
| 5870 | |
| 5871 | |
| 5872 | fi |
| 5873 | if test -z "$ac_cv_prog_CC"; then |
| 5874 | ac_ct_CC=$CC |
| 5875 | # Extract the first word of "gcc", so it can be a program name with args. |
| 5876 | set dummy gcc; ac_word=$2 |
| 5877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5878 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5879 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5880 | $as_echo_n "(cached) " >&6 |
| 5881 | else |
| 5882 | if test -n "$ac_ct_CC"; then |
| 5883 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5884 | else |
| 5885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5886 | for as_dir in $PATH |
| 5887 | do |
| 5888 | IFS=$as_save_IFS |
| 5889 | test -z "$as_dir" && as_dir=. |
| 5890 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5891 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5892 | ac_cv_prog_ac_ct_CC="gcc" |
| 5893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5894 | break 2 |
| 5895 | fi |
| 5896 | done |
| 5897 | done |
| 5898 | IFS=$as_save_IFS |
| 5899 | |
| 5900 | fi |
| 5901 | fi |
| 5902 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5903 | if test -n "$ac_ct_CC"; then |
| 5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5905 | $as_echo "$ac_ct_CC" >&6; } |
| 5906 | else |
| 5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5908 | $as_echo "no" >&6; } |
| 5909 | fi |
| 5910 | |
| 5911 | if test "x$ac_ct_CC" = x; then |
| 5912 | CC="" |
| 5913 | else |
| 5914 | case $cross_compiling:$ac_tool_warned in |
| 5915 | yes:) |
| 5916 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5917 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5918 | ac_tool_warned=yes ;; |
| 5919 | esac |
| 5920 | CC=$ac_ct_CC |
| 5921 | fi |
| 5922 | else |
| 5923 | CC="$ac_cv_prog_CC" |
| 5924 | fi |
| 5925 | |
| 5926 | if test -z "$CC"; then |
| 5927 | if test -n "$ac_tool_prefix"; then |
| 5928 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5929 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5931 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5932 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5933 | $as_echo_n "(cached) " >&6 |
| 5934 | else |
| 5935 | if test -n "$CC"; then |
| 5936 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5937 | else |
| 5938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5939 | for as_dir in $PATH |
| 5940 | do |
| 5941 | IFS=$as_save_IFS |
| 5942 | test -z "$as_dir" && as_dir=. |
| 5943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5945 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5947 | break 2 |
| 5948 | fi |
| 5949 | done |
| 5950 | done |
| 5951 | IFS=$as_save_IFS |
| 5952 | |
| 5953 | fi |
| 5954 | fi |
| 5955 | CC=$ac_cv_prog_CC |
| 5956 | if test -n "$CC"; then |
| 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5958 | $as_echo "$CC" >&6; } |
| 5959 | else |
| 5960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5961 | $as_echo "no" >&6; } |
| 5962 | fi |
| 5963 | |
| 5964 | |
| 5965 | fi |
| 5966 | fi |
| 5967 | if test -z "$CC"; then |
| 5968 | # Extract the first word of "cc", so it can be a program name with args. |
| 5969 | set dummy cc; ac_word=$2 |
| 5970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5971 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 5972 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5973 | $as_echo_n "(cached) " >&6 |
| 5974 | else |
| 5975 | if test -n "$CC"; then |
| 5976 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5977 | else |
| 5978 | ac_prog_rejected=no |
| 5979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5980 | for as_dir in $PATH |
| 5981 | do |
| 5982 | IFS=$as_save_IFS |
| 5983 | test -z "$as_dir" && as_dir=. |
| 5984 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 5985 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 5986 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5987 | ac_prog_rejected=yes |
| 5988 | continue |
| 5989 | fi |
| 5990 | ac_cv_prog_CC="cc" |
| 5991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5992 | break 2 |
| 5993 | fi |
| 5994 | done |
| 5995 | done |
| 5996 | IFS=$as_save_IFS |
| 5997 | |
| 5998 | if test $ac_prog_rejected = yes; then |
| 5999 | # We found a bogon in the path, so make sure we never use it. |
| 6000 | set dummy $ac_cv_prog_CC |
| 6001 | shift |
| 6002 | if test $# != 0; then |
| 6003 | # We chose a different compiler from the bogus one. |
| 6004 | # However, it has the same basename, so the bogon will be chosen |
| 6005 | # first if we set CC to just the basename; use the full file name. |
| 6006 | shift |
| 6007 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 6008 | fi |
| 6009 | fi |
| 6010 | fi |
| 6011 | fi |
| 6012 | CC=$ac_cv_prog_CC |
| 6013 | if test -n "$CC"; then |
| 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6015 | $as_echo "$CC" >&6; } |
| 6016 | else |
| 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6018 | $as_echo "no" >&6; } |
| 6019 | fi |
| 6020 | |
| 6021 | |
| 6022 | fi |
| 6023 | if test -z "$CC"; then |
| 6024 | if test -n "$ac_tool_prefix"; then |
| 6025 | for ac_prog in cl.exe |
| 6026 | do |
| 6027 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6028 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6030 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6031 | if ${ac_cv_prog_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6032 | $as_echo_n "(cached) " >&6 |
| 6033 | else |
| 6034 | if test -n "$CC"; then |
| 6035 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 6036 | else |
| 6037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6038 | for as_dir in $PATH |
| 6039 | do |
| 6040 | IFS=$as_save_IFS |
| 6041 | test -z "$as_dir" && as_dir=. |
| 6042 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 6043 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6044 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 6045 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6046 | break 2 |
| 6047 | fi |
| 6048 | done |
| 6049 | done |
| 6050 | IFS=$as_save_IFS |
| 6051 | |
| 6052 | fi |
| 6053 | fi |
| 6054 | CC=$ac_cv_prog_CC |
| 6055 | if test -n "$CC"; then |
| 6056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 6057 | $as_echo "$CC" >&6; } |
| 6058 | else |
| 6059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6060 | $as_echo "no" >&6; } |
| 6061 | fi |
| 6062 | |
| 6063 | |
| 6064 | test -n "$CC" && break |
| 6065 | done |
| 6066 | fi |
| 6067 | if test -z "$CC"; then |
| 6068 | ac_ct_CC=$CC |
| 6069 | for ac_prog in cl.exe |
| 6070 | do |
| 6071 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6072 | set dummy $ac_prog; ac_word=$2 |
| 6073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6074 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6075 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6076 | $as_echo_n "(cached) " >&6 |
| 6077 | else |
| 6078 | if test -n "$ac_ct_CC"; then |
| 6079 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 6080 | else |
| 6081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6082 | for as_dir in $PATH |
| 6083 | do |
| 6084 | IFS=$as_save_IFS |
| 6085 | test -z "$as_dir" && as_dir=. |
| 6086 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 6087 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6088 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 6089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6090 | break 2 |
| 6091 | fi |
| 6092 | done |
| 6093 | done |
| 6094 | IFS=$as_save_IFS |
| 6095 | |
| 6096 | fi |
| 6097 | fi |
| 6098 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 6099 | if test -n "$ac_ct_CC"; then |
| 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 6101 | $as_echo "$ac_ct_CC" >&6; } |
| 6102 | else |
| 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6104 | $as_echo "no" >&6; } |
| 6105 | fi |
| 6106 | |
| 6107 | |
| 6108 | test -n "$ac_ct_CC" && break |
| 6109 | done |
| 6110 | |
| 6111 | if test "x$ac_ct_CC" = x; then |
| 6112 | CC="" |
| 6113 | else |
| 6114 | case $cross_compiling:$ac_tool_warned in |
| 6115 | yes:) |
| 6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6117 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6118 | ac_tool_warned=yes ;; |
| 6119 | esac |
| 6120 | CC=$ac_ct_CC |
| 6121 | fi |
| 6122 | fi |
| 6123 | |
| 6124 | fi |
| 6125 | |
| 6126 | |
| 6127 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6128 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 6129 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 6130 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6131 | |
| 6132 | # Provide some information about the compiler. |
| 6133 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 6134 | set X $ac_compile |
| 6135 | ac_compiler=$2 |
| 6136 | for ac_option in --version -v -V -qversion; do |
| 6137 | { { ac_try="$ac_compiler $ac_option >&5" |
| 6138 | case "(($ac_try" in |
| 6139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6140 | *) ac_try_echo=$ac_try;; |
| 6141 | esac |
| 6142 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6143 | $as_echo "$ac_try_echo"; } >&5 |
| 6144 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6145 | ac_status=$? |
| 6146 | if test -s conftest.err; then |
| 6147 | sed '10a\ |
| 6148 | ... rest of stderr output deleted ... |
| 6149 | 10q' conftest.err >conftest.er1 |
| 6150 | cat conftest.er1 >&5 |
| 6151 | fi |
| 6152 | rm -f conftest.er1 conftest.err |
| 6153 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6154 | test $ac_status = 0; } |
| 6155 | done |
| 6156 | |
| 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 6158 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6159 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6160 | $as_echo_n "(cached) " >&6 |
| 6161 | else |
| 6162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6163 | /* end confdefs.h. */ |
| 6164 | |
| 6165 | int |
| 6166 | main () |
| 6167 | { |
| 6168 | #ifndef __GNUC__ |
| 6169 | choke me |
| 6170 | #endif |
| 6171 | |
| 6172 | ; |
| 6173 | return 0; |
| 6174 | } |
| 6175 | _ACEOF |
| 6176 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6177 | ac_compiler_gnu=yes |
| 6178 | else |
| 6179 | ac_compiler_gnu=no |
| 6180 | fi |
| 6181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6182 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 6183 | |
| 6184 | fi |
| 6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 6186 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 6187 | if test $ac_compiler_gnu = yes; then |
| 6188 | GCC=yes |
| 6189 | else |
| 6190 | GCC= |
| 6191 | fi |
| 6192 | ac_test_CFLAGS=${CFLAGS+set} |
| 6193 | ac_save_CFLAGS=$CFLAGS |
| 6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 6195 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6196 | if ${ac_cv_prog_cc_g+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6197 | $as_echo_n "(cached) " >&6 |
| 6198 | else |
| 6199 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 6200 | ac_c_werror_flag=yes |
| 6201 | ac_cv_prog_cc_g=no |
| 6202 | CFLAGS="-g" |
| 6203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6204 | /* end confdefs.h. */ |
| 6205 | |
| 6206 | int |
| 6207 | main () |
| 6208 | { |
| 6209 | |
| 6210 | ; |
| 6211 | return 0; |
| 6212 | } |
| 6213 | _ACEOF |
| 6214 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6215 | ac_cv_prog_cc_g=yes |
| 6216 | else |
| 6217 | CFLAGS="" |
| 6218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6219 | /* end confdefs.h. */ |
| 6220 | |
| 6221 | int |
| 6222 | main () |
| 6223 | { |
| 6224 | |
| 6225 | ; |
| 6226 | return 0; |
| 6227 | } |
| 6228 | _ACEOF |
| 6229 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6230 | |
| 6231 | else |
| 6232 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6233 | CFLAGS="-g" |
| 6234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6235 | /* end confdefs.h. */ |
| 6236 | |
| 6237 | int |
| 6238 | main () |
| 6239 | { |
| 6240 | |
| 6241 | ; |
| 6242 | return 0; |
| 6243 | } |
| 6244 | _ACEOF |
| 6245 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6246 | ac_cv_prog_cc_g=yes |
| 6247 | fi |
| 6248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6249 | fi |
| 6250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6251 | fi |
| 6252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6253 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 6254 | fi |
| 6255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 6256 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 6257 | if test "$ac_test_CFLAGS" = set; then |
| 6258 | CFLAGS=$ac_save_CFLAGS |
| 6259 | elif test $ac_cv_prog_cc_g = yes; then |
| 6260 | if test "$GCC" = yes; then |
| 6261 | CFLAGS="-g -O2" |
| 6262 | else |
| 6263 | CFLAGS="-g" |
| 6264 | fi |
| 6265 | else |
| 6266 | if test "$GCC" = yes; then |
| 6267 | CFLAGS="-O2" |
| 6268 | else |
| 6269 | CFLAGS= |
| 6270 | fi |
| 6271 | fi |
| 6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 6273 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6274 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6275 | $as_echo_n "(cached) " >&6 |
| 6276 | else |
| 6277 | ac_cv_prog_cc_c89=no |
| 6278 | ac_save_CC=$CC |
| 6279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6280 | /* end confdefs.h. */ |
| 6281 | #include <stdarg.h> |
| 6282 | #include <stdio.h> |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 6283 | struct stat; |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 6284 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6285 | struct buf { int x; }; |
| 6286 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6287 | static char *e (p, i) |
| 6288 | char **p; |
| 6289 | int i; |
| 6290 | { |
| 6291 | return p[i]; |
| 6292 | } |
| 6293 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6294 | { |
| 6295 | char *s; |
| 6296 | va_list v; |
| 6297 | va_start (v,p); |
| 6298 | s = g (p, va_arg (v,int)); |
| 6299 | va_end (v); |
| 6300 | return s; |
| 6301 | } |
| 6302 | |
| 6303 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6304 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6305 | These don't provoke an error unfortunately, instead are silently treated |
| 6306 | as 'x'. The following induces an error, until -std is added to get |
| 6307 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6308 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6309 | that's true only with -std. */ |
| 6310 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6311 | |
| 6312 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6313 | inside strings and character constants. */ |
| 6314 | #define FOO(x) 'x' |
| 6315 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6316 | |
| 6317 | int test (int i, double x); |
| 6318 | struct s1 {int (*f) (int a);}; |
| 6319 | struct s2 {int (*f) (double a);}; |
| 6320 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6321 | int argc; |
| 6322 | char **argv; |
| 6323 | int |
| 6324 | main () |
| 6325 | { |
| 6326 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6327 | ; |
| 6328 | return 0; |
| 6329 | } |
| 6330 | _ACEOF |
| 6331 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6332 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6333 | do |
| 6334 | CC="$ac_save_CC $ac_arg" |
| 6335 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6336 | ac_cv_prog_cc_c89=$ac_arg |
| 6337 | fi |
| 6338 | rm -f core conftest.err conftest.$ac_objext |
| 6339 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6340 | done |
| 6341 | rm -f conftest.$ac_ext |
| 6342 | CC=$ac_save_CC |
| 6343 | |
| 6344 | fi |
| 6345 | # AC_CACHE_VAL |
| 6346 | case "x$ac_cv_prog_cc_c89" in |
| 6347 | x) |
| 6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6349 | $as_echo "none needed" >&6; } ;; |
| 6350 | xno) |
| 6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6352 | $as_echo "unsupported" >&6; } ;; |
| 6353 | *) |
| 6354 | CC="$CC $ac_cv_prog_cc_c89" |
| 6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6356 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6357 | esac |
| 6358 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 6359 | |
| 6360 | fi |
| 6361 | |
| 6362 | ac_ext=c |
| 6363 | ac_cpp='$CPP $CPPFLAGS' |
| 6364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6367 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6368 | depcc="$CC" am_compiler_list= |
| 6369 | |
| 6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6371 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6372 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6373 | $as_echo_n "(cached) " >&6 |
| 6374 | else |
| 6375 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6376 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6377 | # making bogus files that we don't know about and never remove. For |
| 6378 | # instance it was reported that on HP-UX the gcc test will end up |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6379 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 6380 | # in D". |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6381 | rm -rf conftest.dir |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6382 | mkdir conftest.dir |
| 6383 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6384 | # using a relative directory. |
| 6385 | cp "$am_depcomp" conftest.dir |
| 6386 | cd conftest.dir |
| 6387 | # We will build objects and dependencies in a subdirectory because |
| 6388 | # it helps to detect inapplicable dependency modes. For instance |
| 6389 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6390 | # side effect of compilation, but ICC will put the dependencies in |
| 6391 | # the current directory while Tru64 will put them in the object |
| 6392 | # directory. |
| 6393 | mkdir sub |
| 6394 | |
| 6395 | am_cv_CC_dependencies_compiler_type=none |
| 6396 | if test "$am_compiler_list" = ""; then |
| 6397 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6398 | fi |
| 6399 | am__universal=false |
| 6400 | case " $depcc " in #( |
| 6401 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6402 | esac |
| 6403 | |
| 6404 | for depmode in $am_compiler_list; do |
| 6405 | # Setup a source with many dependencies, because some compilers |
| 6406 | # like to wrap large dependency lists on column 80 (with \), and |
| 6407 | # we should not choose a depcomp mode which is confused by this. |
| 6408 | # |
| 6409 | # We need to recreate these files for each test, as the compiler may |
| 6410 | # overwrite some of them when testing with obscure command lines. |
| 6411 | # This happens at least with the AIX C compiler. |
| 6412 | : > sub/conftest.c |
| 6413 | for i in 1 2 3 4 5 6; do |
| 6414 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6415 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 6416 | # Solaris 10 /bin/sh. |
| 6417 | echo '/* dummy */' > sub/conftst$i.h |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6418 | done |
| 6419 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6420 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6421 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6422 | # mode. It turns out that the SunPro C++ compiler does not properly |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6423 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 6424 | # versions had trouble with output in subdirs. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6425 | am__obj=sub/conftest.${OBJEXT-o} |
| 6426 | am__minus_obj="-o $am__obj" |
| 6427 | case $depmode in |
| 6428 | gcc) |
| 6429 | # This depmode causes a compiler race in universal mode. |
| 6430 | test "$am__universal" = false || continue |
| 6431 | ;; |
| 6432 | nosideeffect) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6433 | # After this tag, mechanisms are not by side-effect, so they'll |
| 6434 | # only be used when explicitly requested. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6435 | if test "x$enable_dependency_tracking" = xyes; then |
| 6436 | continue |
| 6437 | else |
| 6438 | break |
| 6439 | fi |
| 6440 | ;; |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6441 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6442 | # This compiler won't grok '-c -o', but also, the minuso test has |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6443 | # not run yet. These depmodes are late enough in the game, and |
| 6444 | # so weak that their functioning should not be impacted. |
| 6445 | am__obj=conftest.${OBJEXT-o} |
| 6446 | am__minus_obj= |
| 6447 | ;; |
| 6448 | none) break ;; |
| 6449 | esac |
| 6450 | if depmode=$depmode \ |
| 6451 | source=sub/conftest.c object=$am__obj \ |
| 6452 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6453 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6454 | >/dev/null 2>conftest.err && |
| 6455 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6456 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6457 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6458 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6459 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6460 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6461 | # that says an option was ignored or not supported. |
| 6462 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6463 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6464 | # The diagnosis changed in icc 8.0: |
| 6465 | # icc: Command line remark: option '-MP' not supported |
| 6466 | if (grep 'ignoring option' conftest.err || |
| 6467 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6468 | am_cv_CC_dependencies_compiler_type=$depmode |
| 6469 | break |
| 6470 | fi |
| 6471 | fi |
| 6472 | done |
| 6473 | |
| 6474 | cd .. |
| 6475 | rm -rf conftest.dir |
| 6476 | else |
| 6477 | am_cv_CC_dependencies_compiler_type=none |
| 6478 | fi |
| 6479 | |
| 6480 | fi |
| 6481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 6482 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 6483 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 6484 | |
| 6485 | if |
| 6486 | test "x$enable_dependency_tracking" != xno \ |
| 6487 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 6488 | am__fastdepCC_TRUE= |
| 6489 | am__fastdepCC_FALSE='#' |
| 6490 | else |
| 6491 | am__fastdepCC_TRUE='#' |
| 6492 | am__fastdepCC_FALSE= |
| 6493 | fi |
| 6494 | |
| 6495 | |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6496 | ac_ext=cpp |
| 6497 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6498 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6499 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6500 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6501 | if test -z "$CXX"; then |
| 6502 | if test -n "$CCC"; then |
| 6503 | CXX=$CCC |
| 6504 | else |
| 6505 | if test -n "$ac_tool_prefix"; then |
| 6506 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6507 | do |
| 6508 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6509 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6511 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6512 | if ${ac_cv_prog_CXX+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6513 | $as_echo_n "(cached) " >&6 |
| 6514 | else |
| 6515 | if test -n "$CXX"; then |
| 6516 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6517 | else |
| 6518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6519 | for as_dir in $PATH |
| 6520 | do |
| 6521 | IFS=$as_save_IFS |
| 6522 | test -z "$as_dir" && as_dir=. |
| 6523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 6524 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6525 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6526 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6527 | break 2 |
| 6528 | fi |
| 6529 | done |
| 6530 | done |
| 6531 | IFS=$as_save_IFS |
| 6532 | |
| 6533 | fi |
| 6534 | fi |
| 6535 | CXX=$ac_cv_prog_CXX |
| 6536 | if test -n "$CXX"; then |
| 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 6538 | $as_echo "$CXX" >&6; } |
| 6539 | else |
| 6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6541 | $as_echo "no" >&6; } |
| 6542 | fi |
| 6543 | |
| 6544 | |
| 6545 | test -n "$CXX" && break |
| 6546 | done |
| 6547 | fi |
| 6548 | if test -z "$CXX"; then |
| 6549 | ac_ct_CXX=$CXX |
| 6550 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 6551 | do |
| 6552 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6553 | set dummy $ac_prog; ac_word=$2 |
| 6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6555 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6556 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6557 | $as_echo_n "(cached) " >&6 |
| 6558 | else |
| 6559 | if test -n "$ac_ct_CXX"; then |
| 6560 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6561 | else |
| 6562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6563 | for as_dir in $PATH |
| 6564 | do |
| 6565 | IFS=$as_save_IFS |
| 6566 | test -z "$as_dir" && as_dir=. |
| 6567 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 6568 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6569 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6571 | break 2 |
| 6572 | fi |
| 6573 | done |
| 6574 | done |
| 6575 | IFS=$as_save_IFS |
| 6576 | |
| 6577 | fi |
| 6578 | fi |
| 6579 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6580 | if test -n "$ac_ct_CXX"; then |
| 6581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 6582 | $as_echo "$ac_ct_CXX" >&6; } |
| 6583 | else |
| 6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6585 | $as_echo "no" >&6; } |
| 6586 | fi |
| 6587 | |
| 6588 | |
| 6589 | test -n "$ac_ct_CXX" && break |
| 6590 | done |
| 6591 | |
| 6592 | if test "x$ac_ct_CXX" = x; then |
| 6593 | CXX="g++" |
| 6594 | else |
| 6595 | case $cross_compiling:$ac_tool_warned in |
| 6596 | yes:) |
| 6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6598 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6599 | ac_tool_warned=yes ;; |
| 6600 | esac |
| 6601 | CXX=$ac_ct_CXX |
| 6602 | fi |
| 6603 | fi |
| 6604 | |
| 6605 | fi |
| 6606 | fi |
| 6607 | # Provide some information about the compiler. |
| 6608 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 6609 | set X $ac_compile |
| 6610 | ac_compiler=$2 |
| 6611 | for ac_option in --version -v -V -qversion; do |
| 6612 | { { ac_try="$ac_compiler $ac_option >&5" |
| 6613 | case "(($ac_try" in |
| 6614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6615 | *) ac_try_echo=$ac_try;; |
| 6616 | esac |
| 6617 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6618 | $as_echo "$ac_try_echo"; } >&5 |
| 6619 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6620 | ac_status=$? |
| 6621 | if test -s conftest.err; then |
| 6622 | sed '10a\ |
| 6623 | ... rest of stderr output deleted ... |
| 6624 | 10q' conftest.err >conftest.er1 |
| 6625 | cat conftest.er1 >&5 |
| 6626 | fi |
| 6627 | rm -f conftest.er1 conftest.err |
| 6628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6629 | test $ac_status = 0; } |
| 6630 | done |
| 6631 | |
| 6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 6633 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6634 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6635 | $as_echo_n "(cached) " >&6 |
| 6636 | else |
| 6637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6638 | /* end confdefs.h. */ |
| 6639 | |
| 6640 | int |
| 6641 | main () |
| 6642 | { |
| 6643 | #ifndef __GNUC__ |
| 6644 | choke me |
| 6645 | #endif |
| 6646 | |
| 6647 | ; |
| 6648 | return 0; |
| 6649 | } |
| 6650 | _ACEOF |
| 6651 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6652 | ac_compiler_gnu=yes |
| 6653 | else |
| 6654 | ac_compiler_gnu=no |
| 6655 | fi |
| 6656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6657 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6658 | |
| 6659 | fi |
| 6660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6661 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 6662 | if test $ac_compiler_gnu = yes; then |
| 6663 | GXX=yes |
| 6664 | else |
| 6665 | GXX= |
| 6666 | fi |
| 6667 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 6668 | ac_save_CXXFLAGS=$CXXFLAGS |
| 6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 6670 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6671 | if ${ac_cv_prog_cxx_g+:} false; then : |
| cristy | 9564605 | 2009-11-28 23:05:30 +0000 | [diff] [blame] | 6672 | $as_echo_n "(cached) " >&6 |
| 6673 | else |
| 6674 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6675 | ac_cxx_werror_flag=yes |
| 6676 | ac_cv_prog_cxx_g=no |
| 6677 | CXXFLAGS="-g" |
| 6678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6679 | /* end confdefs.h. */ |
| 6680 | |
| 6681 | int |
| 6682 | main () |
| 6683 | { |
| 6684 | |
| 6685 | ; |
| 6686 | return 0; |
| 6687 | } |
| 6688 | _ACEOF |
| 6689 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6690 | ac_cv_prog_cxx_g=yes |
| 6691 | else |
| 6692 | CXXFLAGS="" |
| 6693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6694 | /* end confdefs.h. */ |
| 6695 | |
| 6696 | int |
| 6697 | main () |
| 6698 | { |
| 6699 | |
| 6700 | ; |
| 6701 | return 0; |
| 6702 | } |
| 6703 | _ACEOF |
| 6704 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6705 | |
| 6706 | else |
| 6707 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6708 | CXXFLAGS="-g" |
| 6709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6710 | /* end confdefs.h. */ |
| 6711 | |
| 6712 | int |
| 6713 | main () |
| 6714 | { |
| 6715 | |
| 6716 | ; |
| 6717 | return 0; |
| 6718 | } |
| 6719 | _ACEOF |
| 6720 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 6721 | ac_cv_prog_cxx_g=yes |
| 6722 | fi |
| 6723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6724 | fi |
| 6725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6726 | fi |
| 6727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6728 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6729 | fi |
| 6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 6731 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 6732 | if test "$ac_test_CXXFLAGS" = set; then |
| 6733 | CXXFLAGS=$ac_save_CXXFLAGS |
| 6734 | elif test $ac_cv_prog_cxx_g = yes; then |
| 6735 | if test "$GXX" = yes; then |
| 6736 | CXXFLAGS="-g -O2" |
| 6737 | else |
| 6738 | CXXFLAGS="-g" |
| 6739 | fi |
| 6740 | else |
| 6741 | if test "$GXX" = yes; then |
| 6742 | CXXFLAGS="-O2" |
| 6743 | else |
| 6744 | CXXFLAGS= |
| 6745 | fi |
| 6746 | fi |
| 6747 | ac_ext=c |
| 6748 | ac_cpp='$CPP $CPPFLAGS' |
| 6749 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6750 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6751 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6752 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6753 | depcc="$CXX" am_compiler_list= |
| 6754 | |
| 6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 6756 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6757 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6758 | $as_echo_n "(cached) " >&6 |
| 6759 | else |
| 6760 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 6761 | # We make a subdir and do the tests there. Otherwise we can end up |
| 6762 | # making bogus files that we don't know about and never remove. For |
| 6763 | # instance it was reported that on HP-UX the gcc test will end up |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6764 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 6765 | # in D". |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6766 | rm -rf conftest.dir |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6767 | mkdir conftest.dir |
| 6768 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 6769 | # using a relative directory. |
| 6770 | cp "$am_depcomp" conftest.dir |
| 6771 | cd conftest.dir |
| 6772 | # We will build objects and dependencies in a subdirectory because |
| 6773 | # it helps to detect inapplicable dependency modes. For instance |
| 6774 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 6775 | # side effect of compilation, but ICC will put the dependencies in |
| 6776 | # the current directory while Tru64 will put them in the object |
| 6777 | # directory. |
| 6778 | mkdir sub |
| 6779 | |
| 6780 | am_cv_CXX_dependencies_compiler_type=none |
| 6781 | if test "$am_compiler_list" = ""; then |
| 6782 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 6783 | fi |
| 6784 | am__universal=false |
| 6785 | case " $depcc " in #( |
| 6786 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 6787 | esac |
| 6788 | |
| 6789 | for depmode in $am_compiler_list; do |
| 6790 | # Setup a source with many dependencies, because some compilers |
| 6791 | # like to wrap large dependency lists on column 80 (with \), and |
| 6792 | # we should not choose a depcomp mode which is confused by this. |
| 6793 | # |
| 6794 | # We need to recreate these files for each test, as the compiler may |
| 6795 | # overwrite some of them when testing with obscure command lines. |
| 6796 | # This happens at least with the AIX C compiler. |
| 6797 | : > sub/conftest.c |
| 6798 | for i in 1 2 3 4 5 6; do |
| 6799 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6800 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 6801 | # Solaris 10 /bin/sh. |
| 6802 | echo '/* dummy */' > sub/conftst$i.h |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6803 | done |
| 6804 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 6805 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6806 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6807 | # mode. It turns out that the SunPro C++ compiler does not properly |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6808 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 6809 | # versions had trouble with output in subdirs. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6810 | am__obj=sub/conftest.${OBJEXT-o} |
| 6811 | am__minus_obj="-o $am__obj" |
| 6812 | case $depmode in |
| 6813 | gcc) |
| 6814 | # This depmode causes a compiler race in universal mode. |
| 6815 | test "$am__universal" = false || continue |
| 6816 | ;; |
| 6817 | nosideeffect) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6818 | # After this tag, mechanisms are not by side-effect, so they'll |
| 6819 | # only be used when explicitly requested. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6820 | if test "x$enable_dependency_tracking" = xyes; then |
| 6821 | continue |
| 6822 | else |
| 6823 | break |
| 6824 | fi |
| 6825 | ;; |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 6826 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 6827 | # This compiler won't grok '-c -o', but also, the minuso test has |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 6828 | # not run yet. These depmodes are late enough in the game, and |
| 6829 | # so weak that their functioning should not be impacted. |
| 6830 | am__obj=conftest.${OBJEXT-o} |
| 6831 | am__minus_obj= |
| 6832 | ;; |
| 6833 | none) break ;; |
| 6834 | esac |
| 6835 | if depmode=$depmode \ |
| 6836 | source=sub/conftest.c object=$am__obj \ |
| 6837 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 6838 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 6839 | >/dev/null 2>conftest.err && |
| 6840 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 6841 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 6842 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 6843 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 6844 | # icc doesn't choke on unknown options, it will just issue warnings |
| 6845 | # or remarks (even with -Werror). So we grep stderr for any message |
| 6846 | # that says an option was ignored or not supported. |
| 6847 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 6848 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 6849 | # The diagnosis changed in icc 8.0: |
| 6850 | # icc: Command line remark: option '-MP' not supported |
| 6851 | if (grep 'ignoring option' conftest.err || |
| 6852 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 6853 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 6854 | break |
| 6855 | fi |
| 6856 | fi |
| 6857 | done |
| 6858 | |
| 6859 | cd .. |
| 6860 | rm -rf conftest.dir |
| 6861 | else |
| 6862 | am_cv_CXX_dependencies_compiler_type=none |
| 6863 | fi |
| 6864 | |
| 6865 | fi |
| 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 6867 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 6868 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 6869 | |
| 6870 | if |
| 6871 | test "x$enable_dependency_tracking" != xno \ |
| 6872 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 6873 | am__fastdepCXX_TRUE= |
| 6874 | am__fastdepCXX_FALSE='#' |
| 6875 | else |
| 6876 | am__fastdepCXX_TRUE='#' |
| 6877 | am__fastdepCXX_FALSE= |
| 6878 | fi |
| 6879 | |
| 6880 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6881 | case $ac_cv_prog_cc_stdc in #( |
| 6882 | no) : |
| 6883 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 6884 | *) : |
| 6885 | { $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] | 6886 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 6887 | if ${ac_cv_prog_cc_c99+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6888 | $as_echo_n "(cached) " >&6 |
| 6889 | else |
| 6890 | ac_cv_prog_cc_c99=no |
| 6891 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 6892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 6893 | /* end confdefs.h. */ |
| 6894 | #include <stdarg.h> |
| 6895 | #include <stdbool.h> |
| 6896 | #include <stdlib.h> |
| 6897 | #include <wchar.h> |
| 6898 | #include <stdio.h> |
| 6899 | |
| 6900 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 6901 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 6902 | #define showlist(...) puts (#__VA_ARGS__) |
| 6903 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 6904 | static void |
| 6905 | test_varargs_macros (void) |
| 6906 | { |
| 6907 | int x = 1234; |
| 6908 | int y = 5678; |
| 6909 | debug ("Flag"); |
| 6910 | debug ("X = %d\n", x); |
| 6911 | showlist (The first, second, and third items.); |
| 6912 | report (x>y, "x is %d but y is %d", x, y); |
| 6913 | } |
| 6914 | |
| 6915 | // Check long long types. |
| 6916 | #define BIG64 18446744073709551615ull |
| 6917 | #define BIG32 4294967295ul |
| 6918 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 6919 | #if !BIG_OK |
| 6920 | your preprocessor is broken; |
| 6921 | #endif |
| 6922 | #if BIG_OK |
| 6923 | #else |
| 6924 | your preprocessor is broken; |
| 6925 | #endif |
| 6926 | static long long int bignum = -9223372036854775807LL; |
| 6927 | static unsigned long long int ubignum = BIG64; |
| 6928 | |
| 6929 | struct incomplete_array |
| 6930 | { |
| 6931 | int datasize; |
| 6932 | double data[]; |
| 6933 | }; |
| 6934 | |
| 6935 | struct named_init { |
| 6936 | int number; |
| 6937 | const wchar_t *name; |
| 6938 | double average; |
| 6939 | }; |
| 6940 | |
| 6941 | typedef const char *ccp; |
| 6942 | |
| 6943 | static inline int |
| 6944 | test_restrict (ccp restrict text) |
| 6945 | { |
| 6946 | // See if C++-style comments work. |
| 6947 | // Iterate through items via the restricted pointer. |
| 6948 | // Also check for declarations in for loops. |
| 6949 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 6950 | continue; |
| 6951 | return 0; |
| 6952 | } |
| 6953 | |
| 6954 | // Check varargs and va_copy. |
| 6955 | static void |
| 6956 | test_varargs (const char *format, ...) |
| 6957 | { |
| 6958 | va_list args; |
| 6959 | va_start (args, format); |
| 6960 | va_list args_copy; |
| 6961 | va_copy (args_copy, args); |
| 6962 | |
| 6963 | const char *str; |
| 6964 | int number; |
| 6965 | float fnumber; |
| 6966 | |
| 6967 | while (*format) |
| 6968 | { |
| 6969 | switch (*format++) |
| 6970 | { |
| 6971 | case 's': // string |
| 6972 | str = va_arg (args_copy, const char *); |
| 6973 | break; |
| 6974 | case 'd': // int |
| 6975 | number = va_arg (args_copy, int); |
| 6976 | break; |
| 6977 | case 'f': // float |
| 6978 | fnumber = va_arg (args_copy, double); |
| 6979 | break; |
| 6980 | default: |
| 6981 | break; |
| 6982 | } |
| 6983 | } |
| 6984 | va_end (args_copy); |
| 6985 | va_end (args); |
| 6986 | } |
| 6987 | |
| 6988 | int |
| 6989 | main () |
| 6990 | { |
| 6991 | |
| 6992 | // Check bool. |
| 6993 | _Bool success = false; |
| 6994 | |
| 6995 | // Check restrict. |
| 6996 | if (test_restrict ("String literal") == 0) |
| 6997 | success = true; |
| 6998 | char *restrict newvar = "Another string"; |
| 6999 | |
| 7000 | // Check varargs. |
| 7001 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 7002 | test_varargs_macros (); |
| 7003 | |
| 7004 | // Check flexible array members. |
| 7005 | struct incomplete_array *ia = |
| 7006 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 7007 | ia->datasize = 10; |
| 7008 | for (int i = 0; i < ia->datasize; ++i) |
| 7009 | ia->data[i] = i * 1.234; |
| 7010 | |
| 7011 | // Check named initializers. |
| 7012 | struct named_init ni = { |
| 7013 | .number = 34, |
| 7014 | .name = L"Test wide string", |
| 7015 | .average = 543.34343, |
| 7016 | }; |
| 7017 | |
| 7018 | ni.number = 58; |
| 7019 | |
| 7020 | int dynamic_array[ni.number]; |
| 7021 | dynamic_array[ni.number - 1] = 543; |
| 7022 | |
| 7023 | // work around unused variable warnings |
| 7024 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 7025 | || dynamic_array[ni.number - 1] != 543); |
| 7026 | |
| 7027 | ; |
| 7028 | return 0; |
| 7029 | } |
| 7030 | _ACEOF |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 7031 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7032 | do |
| 7033 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7034 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7035 | ac_cv_prog_cc_c99=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7036 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7037 | rm -f core conftest.err conftest.$ac_objext |
| 7038 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 7039 | done |
| 7040 | rm -f conftest.$ac_ext |
| 7041 | CC=$ac_save_CC |
| 7042 | |
| 7043 | fi |
| 7044 | # AC_CACHE_VAL |
| 7045 | case "x$ac_cv_prog_cc_c99" in |
| 7046 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7048 | $as_echo "none needed" >&6; } ;; |
| 7049 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7051 | $as_echo "unsupported" >&6; } ;; |
| 7052 | *) |
| 7053 | CC="$CC $ac_cv_prog_cc_c99" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7054 | { $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] | 7055 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 7056 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7057 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7058 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 7059 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7060 | { $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] | 7061 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7062 | if ${ac_cv_prog_cc_c89+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7063 | $as_echo_n "(cached) " >&6 |
| 7064 | else |
| 7065 | ac_cv_prog_cc_c89=no |
| 7066 | ac_save_CC=$CC |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7068 | /* end confdefs.h. */ |
| 7069 | #include <stdarg.h> |
| 7070 | #include <stdio.h> |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 7071 | struct stat; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7072 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 7073 | struct buf { int x; }; |
| 7074 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 7075 | static char *e (p, i) |
| 7076 | char **p; |
| 7077 | int i; |
| 7078 | { |
| 7079 | return p[i]; |
| 7080 | } |
| 7081 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 7082 | { |
| 7083 | char *s; |
| 7084 | va_list v; |
| 7085 | va_start (v,p); |
| 7086 | s = g (p, va_arg (v,int)); |
| 7087 | va_end (v); |
| 7088 | return s; |
| 7089 | } |
| 7090 | |
| 7091 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 7092 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 7093 | These don't provoke an error unfortunately, instead are silently treated |
| 7094 | as 'x'. The following induces an error, until -std is added to get |
| 7095 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 7096 | array size at least. It's necessary to write '\x00'==0 to get something |
| 7097 | that's true only with -std. */ |
| 7098 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 7099 | |
| 7100 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 7101 | inside strings and character constants. */ |
| 7102 | #define FOO(x) 'x' |
| 7103 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 7104 | |
| 7105 | int test (int i, double x); |
| 7106 | struct s1 {int (*f) (int a);}; |
| 7107 | struct s2 {int (*f) (double a);}; |
| 7108 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 7109 | int argc; |
| 7110 | char **argv; |
| 7111 | int |
| 7112 | main () |
| 7113 | { |
| 7114 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 7115 | ; |
| 7116 | return 0; |
| 7117 | } |
| 7118 | _ACEOF |
| 7119 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 7120 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 7121 | do |
| 7122 | CC="$ac_save_CC $ac_arg" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7123 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7124 | ac_cv_prog_cc_c89=$ac_arg |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7125 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7126 | rm -f core conftest.err conftest.$ac_objext |
| 7127 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 7128 | done |
| 7129 | rm -f conftest.$ac_ext |
| 7130 | CC=$ac_save_CC |
| 7131 | |
| 7132 | fi |
| 7133 | # AC_CACHE_VAL |
| 7134 | case "x$ac_cv_prog_cc_c89" in |
| 7135 | x) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7137 | $as_echo "none needed" >&6; } ;; |
| 7138 | xno) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7140 | $as_echo "unsupported" >&6; } ;; |
| 7141 | *) |
| 7142 | CC="$CC $ac_cv_prog_cc_c89" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7143 | { $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] | 7144 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 7145 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7146 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7147 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 7148 | else |
| 7149 | ac_cv_prog_cc_stdc=no |
| 7150 | fi |
| 7151 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7152 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7153 | ;; |
| 7154 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7155 | { $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] | 7156 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7157 | if ${ac_cv_prog_cc_stdc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7158 | $as_echo_n "(cached) " >&6 |
| 7159 | fi |
| 7160 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7161 | case $ac_cv_prog_cc_stdc in #( |
| 7162 | no) : |
| 7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 7164 | $as_echo "unsupported" >&6; } ;; #( |
| 7165 | '') : |
| 7166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 7167 | $as_echo "none needed" >&6; } ;; #( |
| 7168 | *) : |
| 7169 | { $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] | 7170 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 7171 | esac |
| 7172 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7173 | ac_ext=c |
| 7174 | ac_cpp='$CPP $CPPFLAGS' |
| 7175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7178 | { $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] | 7179 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7180 | # On Suns, sometimes $CPP names a directory. |
| 7181 | if test -n "$CPP" && test -d "$CPP"; then |
| 7182 | CPP= |
| 7183 | fi |
| 7184 | if test -z "$CPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7185 | if ${ac_cv_prog_CPP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7186 | $as_echo_n "(cached) " >&6 |
| 7187 | else |
| 7188 | # Double quotes because CPP needs to be expanded |
| 7189 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7190 | do |
| 7191 | ac_preproc_ok=false |
| 7192 | for ac_c_preproc_warn_flag in '' yes |
| 7193 | do |
| 7194 | # Use a header file that comes with gcc, so configuring glibc |
| 7195 | # with a fresh cross-compiler works. |
| 7196 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7197 | # <limits.h> exists even on freestanding compilers. |
| 7198 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7199 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7201 | /* end confdefs.h. */ |
| 7202 | #ifdef __STDC__ |
| 7203 | # include <limits.h> |
| 7204 | #else |
| 7205 | # include <assert.h> |
| 7206 | #endif |
| 7207 | Syntax error |
| 7208 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7209 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7210 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7211 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7212 | # Broken: fails on valid input. |
| 7213 | continue |
| 7214 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7215 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7216 | |
| 7217 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7218 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7220 | /* end confdefs.h. */ |
| 7221 | #include <ac_nonexistent.h> |
| 7222 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7223 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7224 | # Broken: success on invalid input. |
| 7225 | continue |
| 7226 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7227 | # Passes both tests. |
| 7228 | ac_preproc_ok=: |
| 7229 | break |
| 7230 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7231 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7232 | |
| 7233 | done |
| 7234 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7235 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7236 | if $ac_preproc_ok; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7237 | break |
| 7238 | fi |
| 7239 | |
| 7240 | done |
| 7241 | ac_cv_prog_CPP=$CPP |
| 7242 | |
| 7243 | fi |
| 7244 | CPP=$ac_cv_prog_CPP |
| 7245 | else |
| 7246 | ac_cv_prog_CPP=$CPP |
| 7247 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7249 | $as_echo "$CPP" >&6; } |
| 7250 | ac_preproc_ok=false |
| 7251 | for ac_c_preproc_warn_flag in '' yes |
| 7252 | do |
| 7253 | # Use a header file that comes with gcc, so configuring glibc |
| 7254 | # with a fresh cross-compiler works. |
| 7255 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7256 | # <limits.h> exists even on freestanding compilers. |
| 7257 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7258 | # not just through cpp. "Syntax error" is here to catch this case. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7260 | /* end confdefs.h. */ |
| 7261 | #ifdef __STDC__ |
| 7262 | # include <limits.h> |
| 7263 | #else |
| 7264 | # include <assert.h> |
| 7265 | #endif |
| 7266 | Syntax error |
| 7267 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7268 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7269 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7270 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7271 | # Broken: fails on valid input. |
| 7272 | continue |
| 7273 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7274 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7275 | |
| 7276 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7277 | # can be detected and how. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7279 | /* end confdefs.h. */ |
| 7280 | #include <ac_nonexistent.h> |
| 7281 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7282 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7283 | # Broken: success on invalid input. |
| 7284 | continue |
| 7285 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7286 | # Passes both tests. |
| 7287 | ac_preproc_ok=: |
| 7288 | break |
| 7289 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7290 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7291 | |
| 7292 | done |
| 7293 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7294 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7295 | if $ac_preproc_ok; then : |
| 7296 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7297 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 7298 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7299 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7300 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7301 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7302 | fi |
| 7303 | |
| 7304 | ac_ext=c |
| 7305 | ac_cpp='$CPP $CPPFLAGS' |
| 7306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7309 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 7311 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7312 | if ${ac_cv_path_SED+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7313 | $as_echo_n "(cached) " >&6 |
| 7314 | else |
| 7315 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 7316 | for ac_i in 1 2 3 4 5 6 7; do |
| 7317 | ac_script="$ac_script$as_nl$ac_script" |
| 7318 | done |
| 7319 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 7320 | { ac_script=; unset ac_script;} |
| 7321 | if test -z "$SED"; then |
| 7322 | ac_path_SED_found=false |
| 7323 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7325 | for as_dir in $PATH |
| 7326 | do |
| 7327 | IFS=$as_save_IFS |
| 7328 | test -z "$as_dir" && as_dir=. |
| 7329 | for ac_prog in sed gsed; do |
| 7330 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7331 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 7332 | as_fn_executable_p "$ac_path_SED" || continue |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7333 | # Check for GNU ac_path_SED and select it if it is found. |
| 7334 | # Check for GNU $ac_path_SED |
| 7335 | case `"$ac_path_SED" --version 2>&1` in |
| 7336 | *GNU*) |
| 7337 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 7338 | *) |
| 7339 | ac_count=0 |
| 7340 | $as_echo_n 0123456789 >"conftest.in" |
| 7341 | while : |
| 7342 | do |
| 7343 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7344 | mv "conftest.tmp" "conftest.in" |
| 7345 | cp "conftest.in" "conftest.nl" |
| 7346 | $as_echo '' >> "conftest.nl" |
| 7347 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7348 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7349 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7350 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 7351 | # Best one so far, save it but keep looking for a better one |
| 7352 | ac_cv_path_SED="$ac_path_SED" |
| 7353 | ac_path_SED_max=$ac_count |
| 7354 | fi |
| 7355 | # 10*(2^10) chars as input seems more than enough |
| 7356 | test $ac_count -gt 10 && break |
| 7357 | done |
| 7358 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7359 | esac |
| 7360 | |
| 7361 | $ac_path_SED_found && break 3 |
| 7362 | done |
| 7363 | done |
| 7364 | done |
| 7365 | IFS=$as_save_IFS |
| 7366 | if test -z "$ac_cv_path_SED"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7367 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7368 | fi |
| 7369 | else |
| 7370 | ac_cv_path_SED=$SED |
| 7371 | fi |
| 7372 | |
| 7373 | fi |
| 7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 7375 | $as_echo "$ac_cv_path_SED" >&6; } |
| 7376 | SED="$ac_cv_path_SED" |
| 7377 | rm -f conftest.sed |
| 7378 | |
| 7379 | test -z "$SED" && SED=sed |
| 7380 | Xsed="$SED -e 1s/^X//" |
| 7381 | |
| 7382 | |
| 7383 | |
| 7384 | |
| 7385 | |
| 7386 | |
| 7387 | |
| 7388 | |
| 7389 | |
| 7390 | |
| 7391 | |
| 7392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 7393 | $as_echo_n "checking for fgrep... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7394 | if ${ac_cv_path_FGREP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7395 | $as_echo_n "(cached) " >&6 |
| 7396 | else |
| 7397 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 7398 | then ac_cv_path_FGREP="$GREP -F" |
| 7399 | else |
| 7400 | if test -z "$FGREP"; then |
| 7401 | ac_path_FGREP_found=false |
| 7402 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7404 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 7405 | do |
| 7406 | IFS=$as_save_IFS |
| 7407 | test -z "$as_dir" && as_dir=. |
| 7408 | for ac_prog in fgrep; do |
| 7409 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7410 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 7411 | as_fn_executable_p "$ac_path_FGREP" || continue |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7412 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 7413 | # Check for GNU $ac_path_FGREP |
| 7414 | case `"$ac_path_FGREP" --version 2>&1` in |
| 7415 | *GNU*) |
| 7416 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 7417 | *) |
| 7418 | ac_count=0 |
| 7419 | $as_echo_n 0123456789 >"conftest.in" |
| 7420 | while : |
| 7421 | do |
| 7422 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 7423 | mv "conftest.tmp" "conftest.in" |
| 7424 | cp "conftest.in" "conftest.nl" |
| 7425 | $as_echo 'FGREP' >> "conftest.nl" |
| 7426 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 7427 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 7428 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 7429 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 7430 | # Best one so far, save it but keep looking for a better one |
| 7431 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 7432 | ac_path_FGREP_max=$ac_count |
| 7433 | fi |
| 7434 | # 10*(2^10) chars as input seems more than enough |
| 7435 | test $ac_count -gt 10 && break |
| 7436 | done |
| 7437 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 7438 | esac |
| 7439 | |
| 7440 | $ac_path_FGREP_found && break 3 |
| 7441 | done |
| 7442 | done |
| 7443 | done |
| 7444 | IFS=$as_save_IFS |
| 7445 | if test -z "$ac_cv_path_FGREP"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7446 | 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] | 7447 | fi |
| 7448 | else |
| 7449 | ac_cv_path_FGREP=$FGREP |
| 7450 | fi |
| 7451 | |
| 7452 | fi |
| 7453 | fi |
| 7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 7455 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 7456 | FGREP="$ac_cv_path_FGREP" |
| 7457 | |
| 7458 | |
| 7459 | test -z "$GREP" && GREP=grep |
| 7460 | |
| 7461 | |
| 7462 | |
| 7463 | |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | |
| 7468 | |
| 7469 | |
| 7470 | |
| 7471 | |
| 7472 | |
| 7473 | |
| 7474 | |
| 7475 | |
| 7476 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7477 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 7478 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 7479 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 7480 | |
| 7481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 7482 | $as_echo_n "checking how to print strings... " >&6; } |
| 7483 | # Test print first, because it will be a builtin if present. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7484 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 7485 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 7486 | ECHO='print -r --' |
| 7487 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 7488 | ECHO='printf %s\n' |
| 7489 | else |
| 7490 | # Use this function as a fallback that always works. |
| 7491 | func_fallback_echo () |
| 7492 | { |
| 7493 | eval 'cat <<_LTECHO_EOF |
| 7494 | $1 |
| 7495 | _LTECHO_EOF' |
| 7496 | } |
| 7497 | ECHO='func_fallback_echo' |
| 7498 | fi |
| 7499 | |
| 7500 | # func_echo_all arg... |
| 7501 | # Invoke $ECHO with all args, space-separated. |
| 7502 | func_echo_all () |
| 7503 | { |
| 7504 | $ECHO "" |
| 7505 | } |
| 7506 | |
| 7507 | case "$ECHO" in |
| 7508 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 7509 | $as_echo "printf" >&6; } ;; |
| 7510 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 7511 | $as_echo "print -r" >&6; } ;; |
| 7512 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 7513 | $as_echo "cat" >&6; } ;; |
| 7514 | esac |
| 7515 | |
| 7516 | |
| 7517 | |
| 7518 | |
| 7519 | |
| 7520 | |
| 7521 | |
| 7522 | |
| 7523 | |
| 7524 | |
| 7525 | |
| 7526 | |
| 7527 | |
| 7528 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7529 | |
| 7530 | |
| 7531 | # Check whether --with-gnu-ld was given. |
| 7532 | if test "${with_gnu_ld+set}" = set; then : |
| 7533 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 7534 | else |
| 7535 | with_gnu_ld=no |
| 7536 | fi |
| 7537 | |
| 7538 | ac_prog=ld |
| 7539 | if test "$GCC" = yes; then |
| 7540 | # Check if gcc -print-prog-name=ld gives a path. |
| 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 7542 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 7543 | case $host in |
| 7544 | *-*-mingw*) |
| 7545 | # gcc leaves a trailing carriage return which upsets mingw |
| 7546 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7547 | *) |
| 7548 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7549 | esac |
| 7550 | case $ac_prog in |
| 7551 | # Accept absolute paths. |
| 7552 | [\\/]* | ?:[\\/]*) |
| 7553 | re_direlt='/[^/][^/]*/\.\./' |
| 7554 | # Canonicalize the pathname of ld |
| 7555 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 7556 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 7557 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 7558 | done |
| 7559 | test -z "$LD" && LD="$ac_prog" |
| 7560 | ;; |
| 7561 | "") |
| 7562 | # If it fails, then pretend we aren't using GCC. |
| 7563 | ac_prog=ld |
| 7564 | ;; |
| 7565 | *) |
| 7566 | # If it is relative, then search for the first ld in PATH. |
| 7567 | with_gnu_ld=unknown |
| 7568 | ;; |
| 7569 | esac |
| 7570 | elif test "$with_gnu_ld" = yes; then |
| 7571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 7572 | $as_echo_n "checking for GNU ld... " >&6; } |
| 7573 | else |
| 7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 7575 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 7576 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7577 | if ${lt_cv_path_LD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7578 | $as_echo_n "(cached) " >&6 |
| 7579 | else |
| 7580 | if test -z "$LD"; then |
| 7581 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7582 | for ac_dir in $PATH; do |
| 7583 | IFS="$lt_save_ifs" |
| 7584 | test -z "$ac_dir" && ac_dir=. |
| 7585 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7586 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 7587 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7588 | # but apparently some variants of GNU ld only accept -v. |
| 7589 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7590 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 7591 | *GNU* | *'with BFD'*) |
| 7592 | test "$with_gnu_ld" != no && break |
| 7593 | ;; |
| 7594 | *) |
| 7595 | test "$with_gnu_ld" != yes && break |
| 7596 | ;; |
| 7597 | esac |
| 7598 | fi |
| 7599 | done |
| 7600 | IFS="$lt_save_ifs" |
| 7601 | else |
| 7602 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7603 | fi |
| 7604 | fi |
| 7605 | |
| 7606 | LD="$lt_cv_path_LD" |
| 7607 | if test -n "$LD"; then |
| 7608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 7609 | $as_echo "$LD" >&6; } |
| 7610 | else |
| 7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7612 | $as_echo "no" >&6; } |
| 7613 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 7614 | 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] | 7615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 7616 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7617 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7618 | $as_echo_n "(cached) " >&6 |
| 7619 | else |
| 7620 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 7621 | case `$LD -v 2>&1 </dev/null` in |
| 7622 | *GNU* | *'with BFD'*) |
| 7623 | lt_cv_prog_gnu_ld=yes |
| 7624 | ;; |
| 7625 | *) |
| 7626 | lt_cv_prog_gnu_ld=no |
| 7627 | ;; |
| 7628 | esac |
| 7629 | fi |
| 7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 7631 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 7632 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
| 7637 | |
| 7638 | |
| 7639 | |
| 7640 | |
| 7641 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7642 | |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 7644 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7645 | if ${ac_cv_prog_cc_c99+:} false; then : |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7646 | $as_echo_n "(cached) " >&6 |
| 7647 | else |
| 7648 | ac_cv_prog_cc_c99=no |
| 7649 | ac_save_CC=$CC |
| 7650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7651 | /* end confdefs.h. */ |
| 7652 | #include <stdarg.h> |
| 7653 | #include <stdbool.h> |
| 7654 | #include <stdlib.h> |
| 7655 | #include <wchar.h> |
| 7656 | #include <stdio.h> |
| 7657 | |
| 7658 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 7659 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 7660 | #define showlist(...) puts (#__VA_ARGS__) |
| 7661 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 7662 | static void |
| 7663 | test_varargs_macros (void) |
| 7664 | { |
| 7665 | int x = 1234; |
| 7666 | int y = 5678; |
| 7667 | debug ("Flag"); |
| 7668 | debug ("X = %d\n", x); |
| 7669 | showlist (The first, second, and third items.); |
| 7670 | report (x>y, "x is %d but y is %d", x, y); |
| 7671 | } |
| 7672 | |
| 7673 | // Check long long types. |
| 7674 | #define BIG64 18446744073709551615ull |
| 7675 | #define BIG32 4294967295ul |
| 7676 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 7677 | #if !BIG_OK |
| 7678 | your preprocessor is broken; |
| 7679 | #endif |
| 7680 | #if BIG_OK |
| 7681 | #else |
| 7682 | your preprocessor is broken; |
| 7683 | #endif |
| 7684 | static long long int bignum = -9223372036854775807LL; |
| 7685 | static unsigned long long int ubignum = BIG64; |
| 7686 | |
| 7687 | struct incomplete_array |
| 7688 | { |
| 7689 | int datasize; |
| 7690 | double data[]; |
| 7691 | }; |
| 7692 | |
| 7693 | struct named_init { |
| 7694 | int number; |
| 7695 | const wchar_t *name; |
| 7696 | double average; |
| 7697 | }; |
| 7698 | |
| 7699 | typedef const char *ccp; |
| 7700 | |
| 7701 | static inline int |
| 7702 | test_restrict (ccp restrict text) |
| 7703 | { |
| 7704 | // See if C++-style comments work. |
| 7705 | // Iterate through items via the restricted pointer. |
| 7706 | // Also check for declarations in for loops. |
| 7707 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 7708 | continue; |
| 7709 | return 0; |
| 7710 | } |
| 7711 | |
| 7712 | // Check varargs and va_copy. |
| 7713 | static void |
| 7714 | test_varargs (const char *format, ...) |
| 7715 | { |
| 7716 | va_list args; |
| 7717 | va_start (args, format); |
| 7718 | va_list args_copy; |
| 7719 | va_copy (args_copy, args); |
| 7720 | |
| 7721 | const char *str; |
| 7722 | int number; |
| 7723 | float fnumber; |
| 7724 | |
| 7725 | while (*format) |
| 7726 | { |
| 7727 | switch (*format++) |
| 7728 | { |
| 7729 | case 's': // string |
| 7730 | str = va_arg (args_copy, const char *); |
| 7731 | break; |
| 7732 | case 'd': // int |
| 7733 | number = va_arg (args_copy, int); |
| 7734 | break; |
| 7735 | case 'f': // float |
| 7736 | fnumber = va_arg (args_copy, double); |
| 7737 | break; |
| 7738 | default: |
| 7739 | break; |
| 7740 | } |
| 7741 | } |
| 7742 | va_end (args_copy); |
| 7743 | va_end (args); |
| 7744 | } |
| 7745 | |
| 7746 | int |
| 7747 | main () |
| 7748 | { |
| 7749 | |
| 7750 | // Check bool. |
| 7751 | _Bool success = false; |
| 7752 | |
| 7753 | // Check restrict. |
| 7754 | if (test_restrict ("String literal") == 0) |
| 7755 | success = true; |
| 7756 | char *restrict newvar = "Another string"; |
| 7757 | |
| 7758 | // Check varargs. |
| 7759 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 7760 | test_varargs_macros (); |
| 7761 | |
| 7762 | // Check flexible array members. |
| 7763 | struct incomplete_array *ia = |
| 7764 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 7765 | ia->datasize = 10; |
| 7766 | for (int i = 0; i < ia->datasize; ++i) |
| 7767 | ia->data[i] = i * 1.234; |
| 7768 | |
| 7769 | // Check named initializers. |
| 7770 | struct named_init ni = { |
| 7771 | .number = 34, |
| 7772 | .name = L"Test wide string", |
| 7773 | .average = 543.34343, |
| 7774 | }; |
| 7775 | |
| 7776 | ni.number = 58; |
| 7777 | |
| 7778 | int dynamic_array[ni.number]; |
| 7779 | dynamic_array[ni.number - 1] = 543; |
| 7780 | |
| 7781 | // work around unused variable warnings |
| 7782 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 7783 | || dynamic_array[ni.number - 1] != 543); |
| 7784 | |
| 7785 | ; |
| 7786 | return 0; |
| 7787 | } |
| 7788 | _ACEOF |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 7789 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
| cristy | 837d6dc | 2010-02-27 01:16:57 +0000 | [diff] [blame] | 7790 | do |
| 7791 | CC="$ac_save_CC $ac_arg" |
| 7792 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7793 | ac_cv_prog_cc_c99=$ac_arg |
| 7794 | fi |
| 7795 | rm -f core conftest.err conftest.$ac_objext |
| 7796 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 7797 | done |
| 7798 | rm -f conftest.$ac_ext |
| 7799 | CC=$ac_save_CC |
| 7800 | |
| 7801 | fi |
| 7802 | # AC_CACHE_VAL |
| 7803 | case "x$ac_cv_prog_cc_c99" in |
| 7804 | x) |
| 7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 7806 | $as_echo "none needed" >&6; } ;; |
| 7807 | xno) |
| 7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 7809 | $as_echo "unsupported" >&6; } ;; |
| 7810 | *) |
| 7811 | CC="$CC $ac_cv_prog_cc_c99" |
| 7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 7813 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 7814 | esac |
| 7815 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 7816 | |
| 7817 | fi |
| 7818 | |
| 7819 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7820 | if test "x$CC" != xcc; then |
| 7821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 7822 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 7823 | else |
| 7824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 7825 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 7826 | fi |
| 7827 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 7828 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7829 | if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 7830 | $as_echo_n "(cached) " >&6 |
| 7831 | else |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7833 | /* end confdefs.h. */ |
| 7834 | |
| 7835 | int |
| 7836 | main () |
| 7837 | { |
| 7838 | |
| 7839 | ; |
| 7840 | return 0; |
| 7841 | } |
| 7842 | _ACEOF |
| 7843 | # Make sure it works both with $CC and with simple cc. |
| 7844 | # We do the test twice because some compilers refuse to overwrite an |
| 7845 | # existing .o file with -o, though they will create one. |
| 7846 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 7847 | rm -f conftest2.* |
| 7848 | if { { case "(($ac_try" in |
| 7849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7850 | *) ac_try_echo=$ac_try;; |
| 7851 | esac |
| 7852 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7853 | $as_echo "$ac_try_echo"; } >&5 |
| 7854 | (eval "$ac_try") 2>&5 |
| 7855 | ac_status=$? |
| 7856 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7857 | test $ac_status = 0; } && |
| 7858 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 7859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7860 | *) ac_try_echo=$ac_try;; |
| 7861 | esac |
| 7862 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7863 | $as_echo "$ac_try_echo"; } >&5 |
| 7864 | (eval "$ac_try") 2>&5 |
| 7865 | ac_status=$? |
| 7866 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7867 | test $ac_status = 0; }; |
| 7868 | then |
| 7869 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 7870 | if test "x$CC" != xcc; then |
| 7871 | # Test first that cc exists at all. |
| 7872 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 7873 | { { case "(($ac_try" in |
| 7874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7875 | *) ac_try_echo=$ac_try;; |
| 7876 | esac |
| 7877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7878 | $as_echo "$ac_try_echo"; } >&5 |
| 7879 | (eval "$ac_try") 2>&5 |
| 7880 | ac_status=$? |
| 7881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7882 | test $ac_status = 0; }; }; then |
| 7883 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 7884 | rm -f conftest2.* |
| 7885 | if { { case "(($ac_try" in |
| 7886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7887 | *) ac_try_echo=$ac_try;; |
| 7888 | esac |
| 7889 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7890 | $as_echo "$ac_try_echo"; } >&5 |
| 7891 | (eval "$ac_try") 2>&5 |
| 7892 | ac_status=$? |
| 7893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7894 | test $ac_status = 0; } && |
| 7895 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 7896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7897 | *) ac_try_echo=$ac_try;; |
| 7898 | esac |
| 7899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7900 | $as_echo "$ac_try_echo"; } >&5 |
| 7901 | (eval "$ac_try") 2>&5 |
| 7902 | ac_status=$? |
| 7903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7904 | test $ac_status = 0; }; |
| 7905 | then |
| 7906 | # cc works too. |
| 7907 | : |
| 7908 | else |
| 7909 | # cc exists but doesn't like -o. |
| 7910 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 7911 | fi |
| 7912 | fi |
| 7913 | fi |
| 7914 | else |
| 7915 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 7916 | fi |
| 7917 | rm -f core conftest* |
| 7918 | |
| 7919 | fi |
| 7920 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 7921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7922 | $as_echo "yes" >&6; } |
| 7923 | else |
| 7924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7925 | $as_echo "no" >&6; } |
| 7926 | |
| 7927 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 7928 | |
| 7929 | fi |
| 7930 | |
| 7931 | # FIXME: we rely on the cache variable name because |
| 7932 | # there is no other way. |
| 7933 | set dummy $CC |
| 7934 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 7935 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 7936 | if test "$am_t" != yes; then |
| 7937 | # Losing compiler, so override with the script. |
| 7938 | # FIXME: It is wrong to rewrite CC. |
| 7939 | # But if we don't then we get into trouble of one sort or another. |
| 7940 | # A longer-term fix would be to have automake use am__CC in this case, |
| 7941 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 7942 | CC="$am_aux_dir/compile $CC" |
| 7943 | fi |
| 7944 | |
| 7945 | |
| 7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 |
| 7947 | $as_echo_n "checking CFLAGS for maximum warnings... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 7948 | if ${ac_cv_cflags_warn_all+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7949 | $as_echo_n "(cached) " >&6 |
| 7950 | else |
| 7951 | ac_cv_cflags_warn_all="no, unknown" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7952 | ac_ext=c |
| 7953 | ac_cpp='$CPP $CPPFLAGS' |
| 7954 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7955 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7956 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7957 | |
| 7958 | ac_save_CFLAGS="$CFLAGS" |
| 7959 | 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" # |
| 7960 | do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` |
| 7961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7962 | /* end confdefs.h. */ |
| 7963 | |
| 7964 | int |
| 7965 | main () |
| 7966 | { |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 7967 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 7968 | ; |
| 7969 | return 0; |
| 7970 | } |
| 7971 | _ACEOF |
| 7972 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7973 | ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
| 7974 | fi |
| 7975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7976 | done |
| 7977 | CFLAGS="$ac_save_CFLAGS" |
| 7978 | ac_ext=c |
| 7979 | ac_cpp='$CPP $CPPFLAGS' |
| 7980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7983 | |
| 7984 | |
| 7985 | fi |
| 7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 |
| 7987 | $as_echo "$ac_cv_cflags_warn_all" >&6; } |
| 7988 | case ".$ac_cv_cflags_warn_all" in |
| 7989 | .ok|.ok,*) ;; |
| 7990 | .|.no|.no,*) |
| 7991 | ;; |
| 7992 | *) |
| 7993 | if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null |
| 7994 | then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5 |
| 7995 | (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5 |
| 7996 | ac_status=$? |
| 7997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7998 | test $ac_status = 0; } |
| 7999 | else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5 |
| 8000 | (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5 |
| 8001 | ac_status=$? |
| 8002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 8003 | test $ac_status = 0; } |
| 8004 | CFLAGS="$CFLAGS $ac_cv_cflags_warn_all" |
| 8005 | fi |
| 8006 | ;; |
| nicolas | 6237c46 | 2010-10-05 06:11:49 +0000 | [diff] [blame] | 8007 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8008 | |
| cristy | 016e8b8 | 2012-12-26 12:11:06 +0000 | [diff] [blame] | 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 |
| 8010 | $as_echo_n "checking for C compiler vendor... " >&6; } |
| 8011 | if ${ax_cv_c_compiler_vendor+:} false; then : |
| 8012 | $as_echo_n "(cached) " >&6 |
| 8013 | else |
| 8014 | # note: don't check for gcc first since some other compilers define __GNUC__ |
| 8015 | vendors="intel: __ICC,__ECC,__INTEL_COMPILER |
| 8016 | ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ |
| 8017 | pathscale: __PATHCC__,__PATHSCALE__ |
| 8018 | clang: __clang__ |
| 8019 | gnu: __GNUC__ |
| 8020 | sun: __SUNPRO_C,__SUNPRO_CC |
| 8021 | hp: __HP_cc,__HP_aCC |
| 8022 | dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER |
| 8023 | borland: __BORLANDC__,__TURBOC__ |
| 8024 | comeau: __COMO__ |
| 8025 | cray: _CRAYC |
| 8026 | kai: __KCC |
| 8027 | lcc: __LCC__ |
| 8028 | sgi: __sgi,sgi |
| 8029 | microsoft: _MSC_VER |
| 8030 | metrowerks: __MWERKS__ |
| 8031 | watcom: __WATCOMC__ |
| 8032 | portland: __PGI |
| 8033 | unknown: UNKNOWN" |
| 8034 | for ventest in $vendors; do |
| 8035 | case $ventest in |
| 8036 | *:) vendor=$ventest; continue ;; |
| 8037 | *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; |
| 8038 | esac |
| 8039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8040 | /* end confdefs.h. */ |
| 8041 | |
| 8042 | int |
| 8043 | main () |
| 8044 | { |
| 8045 | |
| 8046 | #if !($vencpp) |
| 8047 | thisisanerror; |
| 8048 | #endif |
| 8049 | |
| 8050 | ; |
| 8051 | return 0; |
| 8052 | } |
| 8053 | _ACEOF |
| 8054 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8055 | break |
| 8056 | fi |
| 8057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8058 | done |
| 8059 | ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` |
| 8060 | |
| 8061 | fi |
| 8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 |
| 8063 | $as_echo "$ax_cv_c_compiler_vendor" >&6; } |
| 8064 | |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 8065 | |
| 8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 8067 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 8068 | set x ${MAKE-make} |
| 8069 | 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] | 8070 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 8071 | $as_echo_n "(cached) " >&6 |
| 8072 | else |
| 8073 | cat >conftest.make <<\_ACEOF |
| 8074 | SHELL = /bin/sh |
| 8075 | all: |
| 8076 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 8077 | _ACEOF |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 8078 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 8079 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 8080 | *@@@%%%=?*=@@@%%%*) |
| 8081 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 8082 | *) |
| 8083 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 8084 | esac |
| 8085 | rm -f conftest.make |
| 8086 | fi |
| 8087 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8089 | $as_echo "yes" >&6; } |
| 8090 | SET_MAKE= |
| 8091 | else |
| 8092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8093 | $as_echo "no" >&6; } |
| 8094 | SET_MAKE="MAKE=${MAKE-make}" |
| 8095 | fi |
| 8096 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8098 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 8099 | LN_S=$as_ln_s |
| 8100 | if test "$LN_S" = "ln -s"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8102 | $as_echo "yes" >&6; } |
| 8103 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8105 | $as_echo "no, using $LN_S" >&6; } |
| 8106 | fi |
| 8107 | |
| cristy | 8d0ff76 | 2013-03-10 20:33:28 +0000 | [diff] [blame] | 8108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 8109 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 8110 | if ${ac_cv_path_SED+:} false; then : |
| 8111 | $as_echo_n "(cached) " >&6 |
| 8112 | else |
| 8113 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 8114 | for ac_i in 1 2 3 4 5 6 7; do |
| 8115 | ac_script="$ac_script$as_nl$ac_script" |
| 8116 | done |
| 8117 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 8118 | { ac_script=; unset ac_script;} |
| 8119 | if test -z "$SED"; then |
| 8120 | ac_path_SED_found=false |
| 8121 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 8122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8123 | for as_dir in $PATH |
| 8124 | do |
| 8125 | IFS=$as_save_IFS |
| 8126 | test -z "$as_dir" && as_dir=. |
| 8127 | for ac_prog in sed gsed; do |
| 8128 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8129 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 8130 | as_fn_executable_p "$ac_path_SED" || continue |
| 8131 | # Check for GNU ac_path_SED and select it if it is found. |
| 8132 | # Check for GNU $ac_path_SED |
| 8133 | case `"$ac_path_SED" --version 2>&1` in |
| 8134 | *GNU*) |
| 8135 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 8136 | *) |
| 8137 | ac_count=0 |
| 8138 | $as_echo_n 0123456789 >"conftest.in" |
| 8139 | while : |
| 8140 | do |
| 8141 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 8142 | mv "conftest.tmp" "conftest.in" |
| 8143 | cp "conftest.in" "conftest.nl" |
| 8144 | $as_echo '' >> "conftest.nl" |
| 8145 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 8146 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 8147 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 8148 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 8149 | # Best one so far, save it but keep looking for a better one |
| 8150 | ac_cv_path_SED="$ac_path_SED" |
| 8151 | ac_path_SED_max=$ac_count |
| 8152 | fi |
| 8153 | # 10*(2^10) chars as input seems more than enough |
| 8154 | test $ac_count -gt 10 && break |
| 8155 | done |
| 8156 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 8157 | esac |
| 8158 | |
| 8159 | $ac_path_SED_found && break 3 |
| 8160 | done |
| 8161 | done |
| 8162 | done |
| 8163 | IFS=$as_save_IFS |
| 8164 | if test -z "$ac_cv_path_SED"; then |
| 8165 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 8166 | fi |
| 8167 | else |
| 8168 | ac_cv_path_SED=$SED |
| 8169 | fi |
| 8170 | |
| 8171 | fi |
| 8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 8173 | $as_echo "$ac_cv_path_SED" >&6; } |
| 8174 | SED="$ac_cv_path_SED" |
| 8175 | rm -f conftest.sed |
| 8176 | |
| cristy | bc55645 | 2012-08-17 19:44:03 +0000 | [diff] [blame] | 8177 | for ac_prog in gawk mawk nawk awk |
| 8178 | do |
| 8179 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 8180 | set dummy $ac_prog; ac_word=$2 |
| 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8182 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8183 | if ${ac_cv_prog_AWK+:} false; then : |
| 8184 | $as_echo_n "(cached) " >&6 |
| 8185 | else |
| 8186 | if test -n "$AWK"; then |
| 8187 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 8188 | else |
| 8189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8190 | for as_dir in $PATH |
| 8191 | do |
| 8192 | IFS=$as_save_IFS |
| 8193 | test -z "$as_dir" && as_dir=. |
| 8194 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8195 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8196 | ac_cv_prog_AWK="$ac_prog" |
| 8197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8198 | break 2 |
| 8199 | fi |
| 8200 | done |
| 8201 | done |
| 8202 | IFS=$as_save_IFS |
| 8203 | |
| 8204 | fi |
| 8205 | fi |
| 8206 | AWK=$ac_cv_prog_AWK |
| 8207 | if test -n "$AWK"; then |
| 8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 8209 | $as_echo "$AWK" >&6; } |
| 8210 | else |
| 8211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8212 | $as_echo "no" >&6; } |
| 8213 | fi |
| 8214 | |
| 8215 | |
| 8216 | test -n "$AWK" && break |
| 8217 | done |
| 8218 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5 |
| 8220 | $as_echo_n "checking if malloc debugging is wanted... " >&6; } |
| 8221 | |
| 8222 | # Check whether --with-dmalloc was given. |
| 8223 | if test "${with_dmalloc+set}" = set; then : |
| 8224 | withval=$with_dmalloc; if test "$withval" = yes; then |
| 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8226 | $as_echo "yes" >&6; } |
| 8227 | |
| 8228 | $as_echo "#define WITH_DMALLOC 1" >>confdefs.h |
| 8229 | |
| 8230 | LIBS="$LIBS -ldmalloc" |
| 8231 | LDFLAGS="$LDFLAGS -g" |
| 8232 | else |
| 8233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8234 | $as_echo "no" >&6; } |
| 8235 | fi |
| 8236 | else |
| 8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8238 | $as_echo "no" >&6; } |
| 8239 | fi |
| 8240 | |
| 8241 | |
| 8242 | |
| 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 |
| 8244 | $as_echo_n "checking for __attribute__... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8245 | if ${ax_cv___attribute__+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8246 | $as_echo_n "(cached) " >&6 |
| 8247 | else |
| 8248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8249 | /* end confdefs.h. */ |
| 8250 | #include <stdlib.h> |
| cristy | 7338053 | 2012-02-18 20:26:28 +0000 | [diff] [blame] | 8251 | static void foo(void) __attribute__ ((__unused__)); |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8252 | static void |
| 8253 | foo(void) { |
| 8254 | exit(1); |
| 8255 | } |
| 8256 | |
| 8257 | int |
| 8258 | main () |
| 8259 | { |
| 8260 | |
| 8261 | ; |
| 8262 | return 0; |
| 8263 | } |
| 8264 | _ACEOF |
| 8265 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8266 | ax_cv___attribute__=yes |
| 8267 | else |
| 8268 | ax_cv___attribute__=no |
| 8269 | |
| 8270 | fi |
| 8271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8272 | |
| 8273 | fi |
| 8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 |
| 8275 | $as_echo "$ax_cv___attribute__" >&6; } |
| 8276 | if test "$ax_cv___attribute__" = "yes"; then |
| 8277 | |
| 8278 | $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h |
| 8279 | |
| 8280 | fi |
| 8281 | |
| 8282 | |
| 8283 | |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 8284 | |
| 8285 | |
| 8286 | # Check whether --with-gcc-arch was given. |
| 8287 | if test "${with_gcc_arch+set}" = set; then : |
| 8288 | withval=$with_gcc_arch; ax_gcc_arch=$withval |
| 8289 | else |
| cristy | a32d181 | 2012-03-02 19:24:21 +0000 | [diff] [blame] | 8290 | ax_gcc_arch=no |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 8291 | fi |
| 8292 | |
| 8293 | |
| 8294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 |
| 8295 | $as_echo_n "checking for gcc architecture flag... " >&6; } |
| 8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 8297 | $as_echo "" >&6; } |
| 8298 | if ${ax_cv_gcc_archflag+:} false; then : |
| 8299 | $as_echo_n "(cached) " >&6 |
| 8300 | else |
| 8301 | |
| 8302 | ax_cv_gcc_archflag="unknown" |
| 8303 | |
| 8304 | if test "$GCC" = yes; then |
| 8305 | |
| 8306 | if test "x$ax_gcc_arch" = xyes; then |
| 8307 | ax_gcc_arch="" |
| 8308 | if test "$cross_compiling" = no; then |
| 8309 | case $host_cpu in |
| 8310 | i[3456]86*|x86_64*) # use cpuid codes |
| 8311 | |
| 8312 | ac_ext=c |
| 8313 | ac_cpp='$CPP $CPPFLAGS' |
| 8314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8317 | |
| 8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 |
| 8319 | $as_echo_n "checking for x86 cpuid 0 output... " >&6; } |
| 8320 | if ${ax_cv_gcc_x86_cpuid_0+:} false; then : |
| 8321 | $as_echo_n "(cached) " >&6 |
| 8322 | else |
| 8323 | if test "$cross_compiling" = yes; then : |
| 8324 | ax_cv_gcc_x86_cpuid_0=unknown |
| 8325 | else |
| 8326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8327 | /* end confdefs.h. */ |
| 8328 | #include <stdio.h> |
| 8329 | int |
| 8330 | main () |
| 8331 | { |
| 8332 | |
| 8333 | int op = 0, eax, ebx, ecx, edx; |
| 8334 | FILE *f; |
| 8335 | __asm__("cpuid" |
| 8336 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) |
| 8337 | : "a" (op)); |
| 8338 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; |
| 8339 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); |
| 8340 | fclose(f); |
| 8341 | return 0; |
| 8342 | |
| 8343 | ; |
| 8344 | return 0; |
| 8345 | } |
| 8346 | _ACEOF |
| 8347 | if ac_fn_c_try_run "$LINENO"; then : |
| 8348 | ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid |
| 8349 | else |
| 8350 | ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid |
| 8351 | fi |
| 8352 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8353 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8354 | fi |
| 8355 | |
| 8356 | fi |
| 8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 |
| 8358 | $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } |
| 8359 | ac_ext=c |
| 8360 | ac_cpp='$CPP $CPPFLAGS' |
| 8361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | ac_ext=c |
| 8368 | ac_cpp='$CPP $CPPFLAGS' |
| 8369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8372 | |
| 8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 |
| 8374 | $as_echo_n "checking for x86 cpuid 1 output... " >&6; } |
| 8375 | if ${ax_cv_gcc_x86_cpuid_1+:} false; then : |
| 8376 | $as_echo_n "(cached) " >&6 |
| 8377 | else |
| 8378 | if test "$cross_compiling" = yes; then : |
| 8379 | ax_cv_gcc_x86_cpuid_1=unknown |
| 8380 | else |
| 8381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8382 | /* end confdefs.h. */ |
| 8383 | #include <stdio.h> |
| 8384 | int |
| 8385 | main () |
| 8386 | { |
| 8387 | |
| 8388 | int op = 1, eax, ebx, ecx, edx; |
| 8389 | FILE *f; |
| 8390 | __asm__("cpuid" |
| 8391 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) |
| 8392 | : "a" (op)); |
| 8393 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; |
| 8394 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); |
| 8395 | fclose(f); |
| 8396 | return 0; |
| 8397 | |
| 8398 | ; |
| 8399 | return 0; |
| 8400 | } |
| 8401 | _ACEOF |
| 8402 | if ac_fn_c_try_run "$LINENO"; then : |
| 8403 | ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid |
| 8404 | else |
| 8405 | ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid |
| 8406 | fi |
| 8407 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8408 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8409 | fi |
| 8410 | |
| 8411 | fi |
| 8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 |
| 8413 | $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } |
| 8414 | ac_ext=c |
| 8415 | ac_cpp='$CPP $CPPFLAGS' |
| 8416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8419 | |
| 8420 | |
| 8421 | case $ax_cv_gcc_x86_cpuid_0 in |
| 8422 | *:756e6547:*:*) # Intel |
| 8423 | case $ax_cv_gcc_x86_cpuid_1 in |
| 8424 | *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; |
| 8425 | *5??:*:*:*) ax_gcc_arch=pentium ;; |
| 8426 | *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; |
| 8427 | *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; |
| 8428 | *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; |
| 8429 | *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; |
| 8430 | *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; |
| 8431 | *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;; |
| 8432 | *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;; |
| 8433 | *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;; |
| 8434 | *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;; |
| 8435 | *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;; |
| 8436 | *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;; |
| 8437 | *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;; |
| 8438 | ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*) |
| 8439 | case $host_cpu in |
| 8440 | x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; |
| 8441 | *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; |
| 8442 | esac ;; |
| 8443 | ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; |
| 8444 | esac ;; |
| 8445 | *:68747541:*:*) # AMD |
| 8446 | case $ax_cv_gcc_x86_cpuid_1 in |
| 8447 | *5[67]?:*:*:*) ax_gcc_arch=k6 ;; |
| 8448 | *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; |
| 8449 | *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; |
| 8450 | *60?:*:*:*) ax_gcc_arch=k7 ;; |
| 8451 | *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; |
| 8452 | *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; |
| 8453 | *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; |
| 8454 | *6[68a]?:*:*:*) |
| 8455 | |
| 8456 | ac_ext=c |
| 8457 | ac_cpp='$CPP $CPPFLAGS' |
| 8458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8461 | |
| 8462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 |
| 8463 | $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } |
| 8464 | if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : |
| 8465 | $as_echo_n "(cached) " >&6 |
| 8466 | else |
| 8467 | if test "$cross_compiling" = yes; then : |
| 8468 | ax_cv_gcc_x86_cpuid_0x80000006=unknown |
| 8469 | else |
| 8470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8471 | /* end confdefs.h. */ |
| 8472 | #include <stdio.h> |
| 8473 | int |
| 8474 | main () |
| 8475 | { |
| 8476 | |
| 8477 | int op = 0x80000006, eax, ebx, ecx, edx; |
| 8478 | FILE *f; |
| 8479 | __asm__("cpuid" |
| 8480 | : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) |
| 8481 | : "a" (op)); |
| 8482 | f = fopen("conftest_cpuid", "w"); if (!f) return 1; |
| 8483 | fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); |
| 8484 | fclose(f); |
| 8485 | return 0; |
| 8486 | |
| 8487 | ; |
| 8488 | return 0; |
| 8489 | } |
| 8490 | _ACEOF |
| 8491 | if ac_fn_c_try_run "$LINENO"; then : |
| 8492 | ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid |
| 8493 | else |
| 8494 | ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid |
| 8495 | fi |
| 8496 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8497 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8498 | fi |
| 8499 | |
| 8500 | fi |
| 8501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 |
| 8502 | $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } |
| 8503 | ac_ext=c |
| 8504 | ac_cpp='$CPP $CPPFLAGS' |
| 8505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8508 | |
| 8509 | # L2 cache size |
| 8510 | case $ax_cv_gcc_x86_cpuid_0x80000006 in |
| 8511 | *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 |
| 8512 | ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; |
| 8513 | *) ax_gcc_arch="athlon-4 athlon k7" ;; |
| 8514 | esac ;; |
| 8515 | ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; |
| 8516 | ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;; |
| 8517 | ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; |
| 8518 | ?00??f??:*:*:*) ax_gcc_arch="k8" ;; |
| 8519 | ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;; |
| 8520 | ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;; |
| 8521 | *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;; |
| 8522 | esac ;; |
| 8523 | *:746e6543:*:*) # IDT |
| 8524 | case $ax_cv_gcc_x86_cpuid_1 in |
| 8525 | *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; |
| 8526 | *58?:*:*:*) ax_gcc_arch=winchip2 ;; |
| 8527 | *6[78]?:*:*:*) ax_gcc_arch=c3 ;; |
| 8528 | *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; |
| 8529 | esac ;; |
| 8530 | esac |
| 8531 | if test x"$ax_gcc_arch" = x; then # fallback |
| 8532 | case $host_cpu in |
| 8533 | i586*) ax_gcc_arch=pentium ;; |
| 8534 | i686*) ax_gcc_arch=pentiumpro ;; |
| 8535 | esac |
| 8536 | fi |
| 8537 | ;; |
| 8538 | |
| 8539 | sparc*) |
| 8540 | # Extract the first word of "prtdiag", so it can be a program name with args. |
| 8541 | set dummy prtdiag; ac_word=$2 |
| 8542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8543 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8544 | if ${ac_cv_path_PRTDIAG+:} false; then : |
| 8545 | $as_echo_n "(cached) " >&6 |
| 8546 | else |
| 8547 | case $PRTDIAG in |
| 8548 | [\\/]* | ?:[\\/]*) |
| 8549 | ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. |
| 8550 | ;; |
| 8551 | *) |
| 8552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8553 | as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" |
| 8554 | for as_dir in $as_dummy |
| 8555 | do |
| 8556 | IFS=$as_save_IFS |
| 8557 | test -z "$as_dir" && as_dir=. |
| 8558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 8559 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 8560 | ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" |
| 8561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8562 | break 2 |
| 8563 | fi |
| 8564 | done |
| 8565 | done |
| 8566 | IFS=$as_save_IFS |
| 8567 | |
| 8568 | test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" |
| 8569 | ;; |
| 8570 | esac |
| 8571 | fi |
| 8572 | PRTDIAG=$ac_cv_path_PRTDIAG |
| 8573 | if test -n "$PRTDIAG"; then |
| 8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 |
| 8575 | $as_echo "$PRTDIAG" >&6; } |
| 8576 | else |
| 8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8578 | $as_echo "no" >&6; } |
| 8579 | fi |
| 8580 | |
| 8581 | |
| 8582 | cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null` |
| 8583 | cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` |
| 8584 | case $cputype in |
| 8585 | *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; |
| 8586 | *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; |
| 8587 | *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; |
| 8588 | *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; |
| 8589 | *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; |
| 8590 | *cypress*) ax_gcc_arch=cypress ;; |
| 8591 | esac ;; |
| 8592 | |
| 8593 | alphaev5) ax_gcc_arch=ev5 ;; |
| 8594 | alphaev56) ax_gcc_arch=ev56 ;; |
| 8595 | alphapca56) ax_gcc_arch="pca56 ev56" ;; |
| 8596 | alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; |
| 8597 | alphaev6) ax_gcc_arch=ev6 ;; |
| 8598 | alphaev67) ax_gcc_arch=ev67 ;; |
| 8599 | alphaev68) ax_gcc_arch="ev68 ev67" ;; |
| 8600 | alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; |
| 8601 | alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; |
| 8602 | alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; |
| 8603 | |
| 8604 | powerpc*) |
| 8605 | cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null` |
| 8606 | cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` |
| 8607 | case $cputype in |
| 8608 | *750*) ax_gcc_arch="750 G3" ;; |
| 8609 | *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; |
| 8610 | *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; |
| 8611 | *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; |
| 8612 | *970*) ax_gcc_arch="970 G5 power4";; |
| 8613 | *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; |
| 8614 | *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; |
| 8615 | 603ev|8240) ax_gcc_arch="$cputype 603e 603";; |
| 8616 | *) ax_gcc_arch=$cputype ;; |
| 8617 | esac |
| 8618 | ax_gcc_arch="$ax_gcc_arch powerpc" |
| 8619 | ;; |
| 8620 | esac |
| 8621 | fi # not cross-compiling |
| 8622 | fi # guess arch |
| 8623 | |
| 8624 | if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then |
| 8625 | for arch in $ax_gcc_arch; do |
| cristy | a32d181 | 2012-03-02 19:24:21 +0000 | [diff] [blame] | 8626 | if test "xno" = xyes; then # if we require portable code |
| cristy | 37110d6 | 2012-03-01 18:38:20 +0000 | [diff] [blame] | 8627 | flags="-mtune=$arch" |
| 8628 | # -mcpu=$arch and m$arch generate nonportable code on every arch except |
| 8629 | # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. |
| 8630 | case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac |
| 8631 | else |
| 8632 | flags="-march=$arch -mcpu=$arch -m$arch" |
| 8633 | fi |
| 8634 | for flag in $flags; do |
| 8635 | as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` |
| 8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 |
| 8637 | $as_echo_n "checking whether C compiler accepts $flag... " >&6; } |
| 8638 | if eval \${$as_CACHEVAR+:} false; then : |
| 8639 | $as_echo_n "(cached) " >&6 |
| 8640 | else |
| 8641 | |
| 8642 | ax_check_save_flags=$CFLAGS |
| 8643 | CFLAGS="$CFLAGS $flag" |
| 8644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8645 | /* end confdefs.h. */ |
| 8646 | |
| 8647 | int |
| 8648 | main () |
| 8649 | { |
| 8650 | |
| 8651 | ; |
| 8652 | return 0; |
| 8653 | } |
| 8654 | _ACEOF |
| 8655 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8656 | eval "$as_CACHEVAR=yes" |
| 8657 | else |
| 8658 | eval "$as_CACHEVAR=no" |
| 8659 | fi |
| 8660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8661 | CFLAGS=$ax_check_save_flags |
| 8662 | fi |
| 8663 | eval ac_res=\$$as_CACHEVAR |
| 8664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 8665 | $as_echo "$ac_res" >&6; } |
| 8666 | if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then : |
| 8667 | ax_cv_gcc_archflag=$flag; break |
| 8668 | else |
| 8669 | : |
| 8670 | fi |
| 8671 | |
| 8672 | done |
| 8673 | test "x$ax_cv_gcc_archflag" = xunknown || break |
| 8674 | done |
| 8675 | fi |
| 8676 | |
| 8677 | fi # $GCC=yes |
| 8678 | |
| 8679 | fi |
| 8680 | |
| 8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 |
| 8682 | $as_echo_n "checking for gcc architecture flag... " >&6; } |
| 8683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 |
| 8684 | $as_echo "$ax_cv_gcc_archflag" >&6; } |
| 8685 | if test "x$ax_cv_gcc_archflag" = xunknown; then |
| 8686 | : |
| 8687 | else |
| 8688 | CFLAGS="$CFLAGS $ax_cv_gcc_archflag" |
| 8689 | fi |
| 8690 | |
| 8691 | |
| 8692 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8693 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 8694 | if test -n "$ac_tool_prefix"; then |
| 8695 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 8696 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8698 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8699 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8700 | $as_echo_n "(cached) " >&6 |
| 8701 | else |
| 8702 | case $PKG_CONFIG in |
| 8703 | [\\/]* | ?:[\\/]*) |
| 8704 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8705 | ;; |
| 8706 | *) |
| 8707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8708 | for as_dir in $PATH |
| 8709 | do |
| 8710 | IFS=$as_save_IFS |
| 8711 | test -z "$as_dir" && as_dir=. |
| 8712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 8713 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8714 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8716 | break 2 |
| 8717 | fi |
| 8718 | done |
| 8719 | done |
| 8720 | IFS=$as_save_IFS |
| 8721 | |
| 8722 | ;; |
| 8723 | esac |
| 8724 | fi |
| 8725 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8726 | if test -n "$PKG_CONFIG"; then |
| 8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8728 | $as_echo "$PKG_CONFIG" >&6; } |
| 8729 | else |
| 8730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8731 | $as_echo "no" >&6; } |
| 8732 | fi |
| 8733 | |
| 8734 | |
| 8735 | fi |
| 8736 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 8737 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 8738 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8739 | set dummy pkg-config; ac_word=$2 |
| 8740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8741 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8742 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8743 | $as_echo_n "(cached) " >&6 |
| 8744 | else |
| 8745 | case $ac_pt_PKG_CONFIG in |
| 8746 | [\\/]* | ?:[\\/]*) |
| 8747 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 8748 | ;; |
| 8749 | *) |
| 8750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8751 | for as_dir in $PATH |
| 8752 | do |
| 8753 | IFS=$as_save_IFS |
| 8754 | test -z "$as_dir" && as_dir=. |
| 8755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 8756 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8757 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8759 | break 2 |
| 8760 | fi |
| 8761 | done |
| 8762 | done |
| 8763 | IFS=$as_save_IFS |
| 8764 | |
| 8765 | ;; |
| 8766 | esac |
| 8767 | fi |
| 8768 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 8769 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 8770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 8771 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 8772 | else |
| 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8774 | $as_echo "no" >&6; } |
| 8775 | fi |
| 8776 | |
| 8777 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 8778 | PKG_CONFIG="" |
| 8779 | else |
| 8780 | case $cross_compiling:$ac_tool_warned in |
| 8781 | yes:) |
| 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8783 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8784 | ac_tool_warned=yes ;; |
| 8785 | esac |
| 8786 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 8787 | fi |
| 8788 | else |
| 8789 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 8790 | fi |
| 8791 | |
| 8792 | fi |
| 8793 | if test -n "$PKG_CONFIG"; then |
| 8794 | _pkg_min_version=0.9.0 |
| 8795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 8796 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 8797 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 8798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8799 | $as_echo "yes" >&6; } |
| 8800 | else |
| 8801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8802 | $as_echo "no" >&6; } |
| 8803 | PKG_CONFIG="" |
| 8804 | fi |
| 8805 | |
| 8806 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8807 | |
| cristy | 9b86f20 | 2012-11-28 21:55:35 +0000 | [diff] [blame] | 8808 | # Check for linker script support |
| 8809 | |
| 8810 | # Check whether --enable-ld-version-script was given. |
| 8811 | if test "${enable_ld_version_script+set}" = set; then : |
| 8812 | enableval=$enable_ld_version_script; have_ld_version_script=$enableval |
| 8813 | fi |
| 8814 | |
| 8815 | if test -z "$have_ld_version_script"; then |
| 8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 |
| 8817 | $as_echo_n "checking if LD -Wl,--version-script works... " >&6; } |
| 8818 | save_LDFLAGS="$LDFLAGS" |
| 8819 | LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" |
| 8820 | cat > conftest.map <<EOF |
| 8821 | foo |
| 8822 | EOF |
| 8823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8824 | /* end confdefs.h. */ |
| 8825 | |
| 8826 | int |
| 8827 | main () |
| 8828 | { |
| 8829 | |
| 8830 | ; |
| 8831 | return 0; |
| 8832 | } |
| 8833 | _ACEOF |
| 8834 | if ac_fn_c_try_link "$LINENO"; then : |
| 8835 | accepts_syntax_errors=yes |
| 8836 | else |
| 8837 | accepts_syntax_errors=no |
| 8838 | fi |
| 8839 | rm -f core conftest.err conftest.$ac_objext \ |
| 8840 | conftest$ac_exeext conftest.$ac_ext |
| 8841 | if test "$accepts_syntax_errors" = no; then |
| 8842 | cat > conftest.map <<EOF |
| 8843 | VERS_1 { |
| 8844 | global: sym; |
| 8845 | }; |
| 8846 | |
| 8847 | VERS_2 { |
| 8848 | global: sym; |
| 8849 | } VERS_1; |
| 8850 | EOF |
| 8851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8852 | /* end confdefs.h. */ |
| 8853 | |
| 8854 | int |
| 8855 | main () |
| 8856 | { |
| 8857 | |
| 8858 | ; |
| 8859 | return 0; |
| 8860 | } |
| 8861 | _ACEOF |
| 8862 | if ac_fn_c_try_link "$LINENO"; then : |
| 8863 | have_ld_version_script=yes |
| 8864 | else |
| 8865 | have_ld_version_script=no |
| 8866 | fi |
| 8867 | rm -f core conftest.err conftest.$ac_objext \ |
| 8868 | conftest$ac_exeext conftest.$ac_ext |
| 8869 | else |
| 8870 | have_ld_version_script=no |
| 8871 | fi |
| 8872 | rm -f conftest.map |
| 8873 | LDFLAGS="$save_LDFLAGS" |
| 8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 |
| 8875 | $as_echo "$have_ld_version_script" >&6; } |
| 8876 | fi |
| 8877 | if test "$have_ld_version_script" = "yes"; then |
| 8878 | HAVE_LD_VERSION_SCRIPT_TRUE= |
| 8879 | HAVE_LD_VERSION_SCRIPT_FALSE='#' |
| 8880 | else |
| 8881 | HAVE_LD_VERSION_SCRIPT_TRUE='#' |
| 8882 | HAVE_LD_VERSION_SCRIPT_FALSE= |
| 8883 | fi |
| 8884 | |
| 8885 | |
| 8886 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8887 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8888 | # Enable run-time checking. |
| 8889 | # |
| 8890 | # Check whether --enable-bounds-checking was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8891 | if test "${enable_bounds_checking+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8892 | enableval=$enable_bounds_checking; enable_bounds_checking=$enableval |
| 8893 | else |
| 8894 | enable_bounds_checking='no' |
| 8895 | fi |
| 8896 | |
| 8897 | |
| 8898 | if test "$enable_bounds_checking" = yes; then |
| 8899 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8900 | $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8901 | |
| 8902 | fi |
| 8903 | |
| 8904 | # |
| 8905 | # Tests for Windows |
| 8906 | # |
| 8907 | |
| 8908 | |
| 8909 | |
| 8910 | GDI32_LIBS='' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8911 | native_win32_build='no' |
| 8912 | cygwin_build='no' |
| 8913 | case "${host_os}" in |
| 8914 | cygwin* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8915 | cygwin_build='yes' |
| 8916 | GDI32_LIBS='-lgdi32' |
| 8917 | ;; |
| 8918 | mingw* ) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8919 | native_win32_build='yes' |
| 8920 | GDI32_LIBS='-lgdi32' |
| 8921 | ;; |
| 8922 | esac |
| 8923 | if test "${GDI32_LIBS}x" != 'x'; then |
| 8924 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8925 | $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8926 | |
| 8927 | fi |
| 8928 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 8929 | if test "${GDI32_LIBS}x" != 'x' ; then |
| 8930 | WINGDI32_DELEGATE_TRUE= |
| 8931 | WINGDI32_DELEGATE_FALSE='#' |
| 8932 | else |
| 8933 | WINGDI32_DELEGATE_TRUE='#' |
| 8934 | WINGDI32_DELEGATE_FALSE= |
| 8935 | fi |
| 8936 | |
| 8937 | if test "${native_win32_build}" = 'yes' ; then |
| 8938 | WIN32_NATIVE_BUILD_TRUE= |
| 8939 | WIN32_NATIVE_BUILD_FALSE='#' |
| 8940 | else |
| 8941 | WIN32_NATIVE_BUILD_TRUE='#' |
| 8942 | WIN32_NATIVE_BUILD_FALSE= |
| 8943 | fi |
| 8944 | |
| 8945 | if test "${cygwin_build}" = 'yes' ; then |
| 8946 | CYGWIN_BUILD_TRUE= |
| 8947 | CYGWIN_BUILD_FALSE='#' |
| 8948 | else |
| 8949 | CYGWIN_BUILD_TRUE='#' |
| 8950 | CYGWIN_BUILD_FALSE= |
| 8951 | fi |
| 8952 | |
| 8953 | if test "x${CC}" = 'xcl.exe' ; then |
| 8954 | USING_CL_TRUE= |
| 8955 | USING_CL_FALSE='#' |
| 8956 | else |
| 8957 | USING_CL_TRUE='#' |
| 8958 | USING_CL_FALSE= |
| 8959 | fi |
| 8960 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8961 | |
| 8962 | WinPathScript="${srcdirfull}/winpath.sh" |
| 8963 | |
| 8964 | |
| 8965 | # |
| 8966 | # Compiler flags tweaks |
| 8967 | # |
| 8968 | if test "${GCC}" != "yes"; then |
| 8969 | case "${host}" in |
| 8970 | *-*-hpux* ) |
| 8971 | # aCC: HP ANSI C++ B3910B A.03.34 |
| 8972 | CFLAGS="${CFLAGS} -Wp,-H30000" |
| 8973 | if test -n "${CXXFLAGS}"; then |
| 8974 | CXXFLAGS='-AA' |
| 8975 | else |
| 8976 | CXXFLAGS="${CXXFLAGS} -AA" |
| 8977 | fi |
| 8978 | ;; |
| 8979 | *-dec-osf5.* ) |
| 8980 | # Compaq alphaev68-dec-osf5.1 compiler |
| 8981 | if test -n "${CXXFLAGS}"; then |
| 8982 | CXXFLAGS='-std strict_ansi -noimplicit_include' |
| 8983 | else |
| 8984 | CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include" |
| 8985 | fi |
| 8986 | esac |
| 8987 | fi |
| 8988 | |
| 8989 | # Check for lazy-loading. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 8990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8991 | $as_echo_n "checking for linker lazyload option... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 8992 | if ${im_cv_ld_lazyload+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 8993 | $as_echo_n "(cached) " >&6 |
| 8994 | else |
| 8995 | |
| 8996 | im_cv_ld_lazyload='none' |
| 8997 | case "${host}" in |
| 8998 | *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? ) |
| 8999 | if test "$lt_cv_prog_gnu_ld" != 'yes' ; then |
| 9000 | im_cv_ld_lazyload='-Wl,-zlazyload' |
| 9001 | fi |
| 9002 | ;; |
| 9003 | esac |
| 9004 | |
| 9005 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9007 | $as_echo "$im_cv_ld_lazyload" >&6; } |
| 9008 | if test "${im_cv_ld_lazyload}" != 'none' ; then |
| 9009 | if test -z "${LDFLAGS}" ; then |
| 9010 | LDFLAGS="${im_cv_ld_lazyload}" |
| 9011 | else |
| 9012 | LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}" |
| 9013 | fi |
| 9014 | fi |
| 9015 | |
| 9016 | case "$host" in |
| cristy | c37574e | 2013-02-16 01:04:55 +0000 | [diff] [blame] | 9017 | *darwin* | *-macos10*) |
| cristy | b3b90d3 | 2013-02-16 15:44:08 +0000 | [diff] [blame] | 9018 | CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0" |
| cristy | c37574e | 2013-02-16 01:04:55 +0000 | [diff] [blame] | 9019 | # Check whether --enable-osx-universal-binary was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9020 | if test "${enable_osx_universal_binary+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9021 | enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}" |
| 9022 | else |
| 9023 | build_osxuniversal=no |
| 9024 | fi |
| 9025 | |
| 9026 | |
| cristy | c37574e | 2013-02-16 01:04:55 +0000 | [diff] [blame] | 9027 | if test "${build_osxuniversal}" != no ; then |
| 9028 | if test "$enable_dependency_tracking" != no ; then |
| 9029 | as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9030 | Please re-run configure with these options: |
| 9031 | --disable-dependency-tracking --enable-osx-universal-binary |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9032 | " "$LINENO" 5 |
| cristy | c37574e | 2013-02-16 01:04:55 +0000 | [diff] [blame] | 9033 | fi |
| 9034 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 9035 | CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| 9036 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9037 | fi |
| 9038 | ;; |
| 9039 | esac |
| 9040 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9041 | # |
| 9042 | # ARCH specific include directory |
| 9043 | # |
| 9044 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 9045 | # Check whether --with-includearch-dir was given. |
| 9046 | if test "${with_includearch_dir+set}" = set; then : |
| 9047 | withval=$with_includearch_dir; includearch_dir=$withval |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9048 | else |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 9049 | includearch_dir=$INCLUDE_DIR |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9050 | fi |
| 9051 | |
| 9052 | |
| cristy | d286fd7 | 2013-02-24 19:25:33 +0000 | [diff] [blame] | 9053 | eval "eval INCLUDEARCH_DIR=$includearch_dir" |
| cristy | ac9041a | 2011-10-28 16:52:32 +0000 | [diff] [blame] | 9054 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9055 | |
| 9056 | # |
| 9057 | # ARCH specific configuration directory |
| 9058 | # |
| 9059 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 9060 | # Check whether --with-sharearch-dir was given. |
| 9061 | if test "${with_sharearch_dir+set}" = set; then : |
| 9062 | withval=$with_sharearch_dir; sharearch_dir=$withval |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9063 | else |
| cristy | 408ebcd | 2011-11-14 01:36:57 +0000 | [diff] [blame] | 9064 | sharearch_dir="${LIB_DIR}" |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9065 | fi |
| 9066 | |
| 9067 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 9068 | eval "eval SHAREARCH_DIR=$sharearch_dir" |
| cristy | ac9041a | 2011-10-28 16:52:32 +0000 | [diff] [blame] | 9069 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9070 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9071 | # Path to the pkgconfig folder |
| 9072 | |
| 9073 | # Check whether --with-pkgconfigdir was given. |
| 9074 | if test "${with_pkgconfigdir+set}" = set; then : |
| 9075 | withval=$with_pkgconfigdir; pkgconfigdir="$withval" |
| 9076 | else |
| 9077 | pkgconfigdir='${libdir}/pkgconfig' |
| 9078 | fi |
| 9079 | |
| 9080 | |
| 9081 | |
| cristy | 0151ae1 | 2011-10-28 16:32:29 +0000 | [diff] [blame] | 9082 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9083 | # Enable support for threads |
| 9084 | |
| 9085 | # Check whether --with-threads was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9086 | if test "${with_threads+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9087 | withval=$with_threads; with_threads=$withval |
| 9088 | else |
| 9089 | with_threads='yes' |
| 9090 | fi |
| 9091 | |
| 9092 | |
| 9093 | have_threads=no |
| 9094 | if test "$with_threads" != 'no'; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9095 | |
| 9096 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9097 | ac_ext=c |
| 9098 | ac_cpp='$CPP $CPPFLAGS' |
| 9099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9102 | |
| 9103 | ax_pthread_ok=no |
| 9104 | |
| 9105 | # We used to check for pthread.h first, but this fails if pthread.h |
| 9106 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 9107 | # It gets checked for in the link test anyway. |
| 9108 | |
| 9109 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 9110 | # etcetera environment variables, and if threads linking works using |
| 9111 | # them: |
| 9112 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 9113 | save_CFLAGS="$CFLAGS" |
| 9114 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9115 | save_LIBS="$LIBS" |
| 9116 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 9118 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 9119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9120 | /* end confdefs.h. */ |
| 9121 | |
| 9122 | /* Override any GCC internal prototype to avoid an error. |
| 9123 | Use char because int might match the return type of a GCC |
| 9124 | builtin and then its argument prototype would still apply. */ |
| 9125 | #ifdef __cplusplus |
| 9126 | extern "C" |
| 9127 | #endif |
| 9128 | char pthread_join (); |
| 9129 | int |
| 9130 | main () |
| 9131 | { |
| 9132 | return pthread_join (); |
| 9133 | ; |
| 9134 | return 0; |
| 9135 | } |
| 9136 | _ACEOF |
| 9137 | if ac_fn_c_try_link "$LINENO"; then : |
| 9138 | ax_pthread_ok=yes |
| 9139 | fi |
| 9140 | rm -f core conftest.err conftest.$ac_objext \ |
| 9141 | conftest$ac_exeext conftest.$ac_ext |
| 9142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 9143 | $as_echo "$ax_pthread_ok" >&6; } |
| 9144 | if test x"$ax_pthread_ok" = xno; then |
| 9145 | PTHREAD_LIBS="" |
| 9146 | PTHREAD_CFLAGS="" |
| 9147 | fi |
| 9148 | LIBS="$save_LIBS" |
| 9149 | CFLAGS="$save_CFLAGS" |
| 9150 | fi |
| 9151 | |
| 9152 | # We must check for the threads library under a number of different |
| 9153 | # names; the ordering is very important because some systems |
| 9154 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 9155 | # libraries is broken (non-POSIX). |
| 9156 | |
| 9157 | # Create a list of thread flags to try. Items starting with a "-" are |
| 9158 | # C compiler flags, and other items are library names, except for "none" |
| 9159 | # which indicates that we try without any flags at all, and "pthread-config" |
| 9160 | # which is a program returning the flags for the Pth emulation library. |
| 9161 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9162 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9163 | |
| 9164 | # The ordering *is* (sometimes) important. Some notes on the |
| 9165 | # individual items follow: |
| 9166 | |
| 9167 | # pthreads: AIX (must check this before -lpthread) |
| 9168 | # none: in case threads are in libc; should be tried before -Kthread and |
| 9169 | # other compiler flags to prevent continual compiler warnings |
| 9170 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 9171 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 9172 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 9173 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 9174 | # -pthreads: Solaris/gcc |
| 9175 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 9176 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 9177 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 9178 | # also defines -D_REENTRANT) |
| 9179 | # ... -mt is also the pthreads flag for HP/aCC |
| 9180 | # pthread: Linux, etcetera |
| 9181 | # --thread-safe: KAI C++ |
| 9182 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 9183 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9184 | case ${host_os} in |
| 9185 | solaris*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9186 | |
| 9187 | # On Solaris (at least, for some versions), libc contains stubbed |
| 9188 | # (non-functional) versions of the pthreads routines, so link-based |
| 9189 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 9190 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 9191 | # a function called by this macro, so we could check for that, but |
| 9192 | # who knows whether they'll stub that too in a future libc.) So, |
| 9193 | # we'll just look for -pthreads and -lpthread first: |
| 9194 | |
| 9195 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 9196 | ;; |
| 9197 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9198 | darwin*) |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9199 | ax_pthread_flags="-pthread $ax_pthread_flags" |
| 9200 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9201 | esac |
| 9202 | |
| 9203 | if test x"$ax_pthread_ok" = xno; then |
| 9204 | for flag in $ax_pthread_flags; do |
| 9205 | |
| 9206 | case $flag in |
| 9207 | none) |
| 9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 9209 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 9210 | ;; |
| 9211 | |
| 9212 | -*) |
| 9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 9214 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 9215 | PTHREAD_CFLAGS="$flag" |
| 9216 | ;; |
| 9217 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9218 | pthread-config) |
| 9219 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9220 | set dummy pthread-config; ac_word=$2 |
| 9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9222 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9223 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9224 | $as_echo_n "(cached) " >&6 |
| 9225 | else |
| 9226 | if test -n "$ax_pthread_config"; then |
| 9227 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 9228 | else |
| 9229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9230 | for as_dir in $PATH |
| 9231 | do |
| 9232 | IFS=$as_save_IFS |
| 9233 | test -z "$as_dir" && as_dir=. |
| 9234 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 9235 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9236 | ac_cv_prog_ax_pthread_config="yes" |
| 9237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9238 | break 2 |
| 9239 | fi |
| 9240 | done |
| 9241 | done |
| 9242 | IFS=$as_save_IFS |
| 9243 | |
| 9244 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 9245 | fi |
| 9246 | fi |
| 9247 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 9248 | if test -n "$ax_pthread_config"; then |
| 9249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 9250 | $as_echo "$ax_pthread_config" >&6; } |
| 9251 | else |
| 9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9253 | $as_echo "no" >&6; } |
| 9254 | fi |
| 9255 | |
| 9256 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9257 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 9258 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 9259 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 9260 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9261 | |
| 9262 | *) |
| 9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 9264 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 9265 | PTHREAD_LIBS="-l$flag" |
| 9266 | ;; |
| 9267 | esac |
| 9268 | |
| 9269 | save_LIBS="$LIBS" |
| 9270 | save_CFLAGS="$CFLAGS" |
| 9271 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9272 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9273 | |
| 9274 | # Check for various functions. We must include pthread.h, |
| 9275 | # since some functions may be macros. (On the Sequent, we |
| 9276 | # need a special flag -Kthread to make this header compile.) |
| 9277 | # We check for pthread_join because it is in -lpthread on IRIX |
| 9278 | # while pthread_create is in libc. We check for pthread_attr_init |
| 9279 | # due to DEC craziness with -lpthreads. We check for |
| 9280 | # pthread_cleanup_push because it is one of the few pthread |
| 9281 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 9282 | # We try pthread_create on general principles. |
| 9283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9284 | /* end confdefs.h. */ |
| 9285 | #include <pthread.h> |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9286 | static void routine(void *a) { a = 0; } |
| 9287 | static void *start_routine(void *a) { return a; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9288 | int |
| 9289 | main () |
| 9290 | { |
| 9291 | pthread_t th; pthread_attr_t attr; |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9292 | pthread_create(&th, 0, start_routine, 0); |
| 9293 | pthread_join(th, 0); |
| 9294 | pthread_attr_init(&attr); |
| 9295 | pthread_cleanup_push(routine, 0); |
| 9296 | pthread_cleanup_pop(0) /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9297 | ; |
| 9298 | return 0; |
| 9299 | } |
| 9300 | _ACEOF |
| 9301 | if ac_fn_c_try_link "$LINENO"; then : |
| 9302 | ax_pthread_ok=yes |
| 9303 | fi |
| 9304 | rm -f core conftest.err conftest.$ac_objext \ |
| 9305 | conftest$ac_exeext conftest.$ac_ext |
| 9306 | |
| 9307 | LIBS="$save_LIBS" |
| 9308 | CFLAGS="$save_CFLAGS" |
| 9309 | |
| 9310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 9311 | $as_echo "$ax_pthread_ok" >&6; } |
| 9312 | if test "x$ax_pthread_ok" = xyes; then |
| 9313 | break; |
| 9314 | fi |
| 9315 | |
| 9316 | PTHREAD_LIBS="" |
| 9317 | PTHREAD_CFLAGS="" |
| 9318 | done |
| 9319 | fi |
| 9320 | |
| 9321 | # Various other checks: |
| 9322 | if test "x$ax_pthread_ok" = xyes; then |
| 9323 | save_LIBS="$LIBS" |
| 9324 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9325 | save_CFLAGS="$CFLAGS" |
| 9326 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9327 | |
| 9328 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9330 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9331 | attr_name=unknown |
| 9332 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 9333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9334 | /* end confdefs.h. */ |
| 9335 | #include <pthread.h> |
| 9336 | int |
| 9337 | main () |
| 9338 | { |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9339 | int attr = $attr; return attr /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9340 | ; |
| 9341 | return 0; |
| 9342 | } |
| 9343 | _ACEOF |
| 9344 | if ac_fn_c_try_link "$LINENO"; then : |
| 9345 | attr_name=$attr; break |
| 9346 | fi |
| 9347 | rm -f core conftest.err conftest.$ac_objext \ |
| 9348 | conftest$ac_exeext conftest.$ac_ext |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9349 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 9351 | $as_echo "$attr_name" >&6; } |
| 9352 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 9353 | |
| 9354 | cat >>confdefs.h <<_ACEOF |
| 9355 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 9356 | _ACEOF |
| 9357 | |
| 9358 | fi |
| 9359 | |
| 9360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 9361 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 9362 | flag=no |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9363 | case ${host_os} in |
| 9364 | aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; |
| 9365 | osf* | hpux*) flag="-D_REENTRANT";; |
| 9366 | solaris*) |
| 9367 | if test "$GCC" = "yes"; then |
| 9368 | flag="-D_REENTRANT" |
| 9369 | else |
| 9370 | flag="-mt -D_REENTRANT" |
| 9371 | fi |
| 9372 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9373 | esac |
| 9374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 9375 | $as_echo "${flag}" >&6; } |
| 9376 | if test "x$flag" != xno; then |
| 9377 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 9378 | fi |
| 9379 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 9381 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 9382 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : |
| 9383 | $as_echo_n "(cached) " >&6 |
| 9384 | else |
| 9385 | |
| 9386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9387 | /* end confdefs.h. */ |
| 9388 | |
| 9389 | #include <pthread.h> |
| 9390 | int |
| 9391 | main () |
| 9392 | { |
| 9393 | int i = PTHREAD_PRIO_INHERIT; |
| 9394 | ; |
| 9395 | return 0; |
| 9396 | } |
| 9397 | _ACEOF |
| 9398 | if ac_fn_c_try_link "$LINENO"; then : |
| 9399 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 9400 | else |
| 9401 | ax_cv_PTHREAD_PRIO_INHERIT=no |
| 9402 | fi |
| 9403 | rm -f core conftest.err conftest.$ac_objext \ |
| 9404 | conftest$ac_exeext conftest.$ac_ext |
| 9405 | |
| 9406 | fi |
| 9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 9408 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 9409 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : |
| 9410 | |
| 9411 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 9412 | |
| 9413 | fi |
| 9414 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9415 | LIBS="$save_LIBS" |
| 9416 | CFLAGS="$save_CFLAGS" |
| 9417 | |
| cristy | 23493c4 | 2013-04-11 16:04:59 +0000 | [diff] [blame] | 9418 | # More AIX lossage: compile with *_r variant |
| 9419 | if test "x$GCC" != xyes; then |
| 9420 | case $host_os in |
| 9421 | aix*) |
| 9422 | case "x/$CC" in #( |
| 9423 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : |
| 9424 | #handle absolute path differently from PATH based program lookup |
| 9425 | case "x$CC" in #( |
| 9426 | x/*) : |
| 9427 | if as_fn_executable_p ${CC}_r; then : |
| 9428 | PTHREAD_CC="${CC}_r" |
| 9429 | fi ;; #( |
| 9430 | *) : |
| 9431 | for ac_prog in ${CC}_r |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9432 | do |
| 9433 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9434 | set dummy $ac_prog; ac_word=$2 |
| 9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9436 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9437 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9438 | $as_echo_n "(cached) " >&6 |
| 9439 | else |
| 9440 | if test -n "$PTHREAD_CC"; then |
| 9441 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 9442 | else |
| 9443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9444 | for as_dir in $PATH |
| 9445 | do |
| 9446 | IFS=$as_save_IFS |
| 9447 | test -z "$as_dir" && as_dir=. |
| 9448 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 9449 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9450 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 9451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9452 | break 2 |
| 9453 | fi |
| 9454 | done |
| 9455 | done |
| 9456 | IFS=$as_save_IFS |
| 9457 | |
| 9458 | fi |
| 9459 | fi |
| 9460 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 9461 | if test -n "$PTHREAD_CC"; then |
| 9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 9463 | $as_echo "$PTHREAD_CC" >&6; } |
| 9464 | else |
| 9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9466 | $as_echo "no" >&6; } |
| 9467 | fi |
| 9468 | |
| 9469 | |
| 9470 | test -n "$PTHREAD_CC" && break |
| 9471 | done |
| cristy | 23493c4 | 2013-04-11 16:04:59 +0000 | [diff] [blame] | 9472 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 9473 | ;; |
| 9474 | esac ;; #( |
| 9475 | *) : |
| 9476 | ;; |
| 9477 | esac |
| 9478 | ;; |
| 9479 | esac |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9480 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9481 | fi |
| 9482 | |
| cristy | 23493c4 | 2013-04-11 16:04:59 +0000 | [diff] [blame] | 9483 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 9484 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9485 | |
| 9486 | |
| 9487 | |
| 9488 | |
| 9489 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 9490 | if test x"$ax_pthread_ok" = xyes; then |
| 9491 | |
| 9492 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 9493 | |
| 9494 | : |
| 9495 | else |
| 9496 | ax_pthread_ok=no |
| 9497 | |
| 9498 | fi |
| 9499 | ac_ext=c |
| 9500 | ac_cpp='$CPP $CPPFLAGS' |
| 9501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9504 | |
| 9505 | |
| cristy | 7acf8fb | 2010-09-23 19:58:53 +0000 | [diff] [blame] | 9506 | if test "$ax_pthread_ok" = yes; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9507 | have_threads=yes |
| 9508 | DEF_THREAD="$PTHREAD_CFLAGS" |
| 9509 | CFLAGS="$CFLAGS $DEF_THREAD" |
| 9510 | CXXFLAGS="$CXXFLAGS $DEF_THREAD" |
| 9511 | if test "$CC" != "$PTHREAD_CC"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9512 | { $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] | 9513 | $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;} |
| 9514 | CC="$PTHREAD_CC" |
| 9515 | fi |
| cristy | 55bf91c | 2010-09-24 00:29:41 +0000 | [diff] [blame] | 9516 | |
| 9517 | $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h |
| 9518 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9519 | fi |
| 9520 | fi |
| 9521 | |
| 9522 | # Enable support for OpenMP |
| 9523 | if test "$have_threads" != 'yes'; then |
| 9524 | ac_cv_prog_c_openmp=unsupported |
| 9525 | fi |
| 9526 | |
| 9527 | OPENMP_CFLAGS= |
| 9528 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9529 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9530 | enableval=$enable_openmp; |
| 9531 | fi |
| 9532 | |
| 9533 | if test "$enable_openmp" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9534 | { $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] | 9535 | $as_echo_n "checking for $CC option to support OpenMP... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9536 | if ${ac_cv_prog_c_openmp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9537 | $as_echo_n "(cached) " >&6 |
| 9538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9540 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9541 | |
| 9542 | #ifndef _OPENMP |
| 9543 | choke me |
| 9544 | #endif |
| 9545 | #include <omp.h> |
| 9546 | int main () { return omp_get_num_threads (); } |
| 9547 | |
| 9548 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9549 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9550 | ac_cv_prog_c_openmp='none needed' |
| 9551 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9552 | ac_cv_prog_c_openmp='unsupported' |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 9553 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ |
| 9554 | -Popenmp --openmp; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9555 | ac_save_CFLAGS=$CFLAGS |
| 9556 | CFLAGS="$CFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9558 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9559 | |
| 9560 | #ifndef _OPENMP |
| 9561 | choke me |
| 9562 | #endif |
| 9563 | #include <omp.h> |
| 9564 | int main () { return omp_get_num_threads (); } |
| 9565 | |
| 9566 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9567 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9568 | ac_cv_prog_c_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9569 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9570 | rm -f core conftest.err conftest.$ac_objext \ |
| 9571 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9572 | CFLAGS=$ac_save_CFLAGS |
| 9573 | if test "$ac_cv_prog_c_openmp" != unsupported; then |
| 9574 | break |
| 9575 | fi |
| 9576 | done |
| 9577 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9578 | rm -f core conftest.err conftest.$ac_objext \ |
| 9579 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9580 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9581 | { $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] | 9582 | $as_echo "$ac_cv_prog_c_openmp" >&6; } |
| 9583 | case $ac_cv_prog_c_openmp in #( |
| 9584 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9585 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9586 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 9587 | OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9588 | esac |
| 9589 | fi |
| 9590 | |
| 9591 | |
| 9592 | CFLAGS="$OPENMP_CFLAGS $CFLAGS" |
| 9593 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS" |
| 9594 | |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 9595 | if test "$enable_openmp" != no; then |
| 9596 | if test "$ac_cv_prog_c_openmp" != 'unsupported'; then |
| 9597 | MAGICK_FEATURES="OpenMP $MAGICK_FEATURES" |
| 9598 | fi |
| 9599 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 9600 | |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 9601 | # Enable support for OpenCL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9602 | |
| 9603 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9604 | ac_ext=c |
| 9605 | ac_cpp='$CPP $CPPFLAGS' |
| 9606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9609 | |
| 9610 | ax_pthread_ok=no |
| 9611 | |
| 9612 | # We used to check for pthread.h first, but this fails if pthread.h |
| 9613 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 9614 | # It gets checked for in the link test anyway. |
| 9615 | |
| 9616 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 9617 | # etcetera environment variables, and if threads linking works using |
| 9618 | # them: |
| 9619 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 9620 | save_CFLAGS="$CFLAGS" |
| 9621 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9622 | save_LIBS="$LIBS" |
| 9623 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 9625 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 9626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9627 | /* end confdefs.h. */ |
| 9628 | |
| 9629 | /* Override any GCC internal prototype to avoid an error. |
| 9630 | Use char because int might match the return type of a GCC |
| 9631 | builtin and then its argument prototype would still apply. */ |
| 9632 | #ifdef __cplusplus |
| 9633 | extern "C" |
| 9634 | #endif |
| 9635 | char pthread_join (); |
| 9636 | int |
| 9637 | main () |
| 9638 | { |
| 9639 | return pthread_join (); |
| 9640 | ; |
| 9641 | return 0; |
| 9642 | } |
| 9643 | _ACEOF |
| 9644 | if ac_fn_c_try_link "$LINENO"; then : |
| 9645 | ax_pthread_ok=yes |
| 9646 | fi |
| 9647 | rm -f core conftest.err conftest.$ac_objext \ |
| 9648 | conftest$ac_exeext conftest.$ac_ext |
| 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 9650 | $as_echo "$ax_pthread_ok" >&6; } |
| 9651 | if test x"$ax_pthread_ok" = xno; then |
| 9652 | PTHREAD_LIBS="" |
| 9653 | PTHREAD_CFLAGS="" |
| 9654 | fi |
| 9655 | LIBS="$save_LIBS" |
| 9656 | CFLAGS="$save_CFLAGS" |
| 9657 | fi |
| 9658 | |
| 9659 | # We must check for the threads library under a number of different |
| 9660 | # names; the ordering is very important because some systems |
| 9661 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 9662 | # libraries is broken (non-POSIX). |
| 9663 | |
| 9664 | # Create a list of thread flags to try. Items starting with a "-" are |
| 9665 | # C compiler flags, and other items are library names, except for "none" |
| 9666 | # which indicates that we try without any flags at all, and "pthread-config" |
| 9667 | # which is a program returning the flags for the Pth emulation library. |
| 9668 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9669 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9670 | |
| 9671 | # The ordering *is* (sometimes) important. Some notes on the |
| 9672 | # individual items follow: |
| 9673 | |
| 9674 | # pthreads: AIX (must check this before -lpthread) |
| 9675 | # none: in case threads are in libc; should be tried before -Kthread and |
| 9676 | # other compiler flags to prevent continual compiler warnings |
| 9677 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 9678 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 9679 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 9680 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 9681 | # -pthreads: Solaris/gcc |
| 9682 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 9683 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 9684 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 9685 | # also defines -D_REENTRANT) |
| 9686 | # ... -mt is also the pthreads flag for HP/aCC |
| 9687 | # pthread: Linux, etcetera |
| 9688 | # --thread-safe: KAI C++ |
| 9689 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 9690 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9691 | case ${host_os} in |
| 9692 | solaris*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9693 | |
| 9694 | # On Solaris (at least, for some versions), libc contains stubbed |
| 9695 | # (non-functional) versions of the pthreads routines, so link-based |
| 9696 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 9697 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 9698 | # a function called by this macro, so we could check for that, but |
| 9699 | # who knows whether they'll stub that too in a future libc.) So, |
| 9700 | # we'll just look for -pthreads and -lpthread first: |
| 9701 | |
| 9702 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 9703 | ;; |
| 9704 | |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9705 | darwin*) |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9706 | ax_pthread_flags="-pthread $ax_pthread_flags" |
| 9707 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9708 | esac |
| 9709 | |
| 9710 | if test x"$ax_pthread_ok" = xno; then |
| 9711 | for flag in $ax_pthread_flags; do |
| 9712 | |
| 9713 | case $flag in |
| 9714 | none) |
| 9715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 9716 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 9717 | ;; |
| 9718 | |
| 9719 | -*) |
| 9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 9721 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 9722 | PTHREAD_CFLAGS="$flag" |
| 9723 | ;; |
| 9724 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9725 | pthread-config) |
| 9726 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9727 | set dummy pthread-config; ac_word=$2 |
| 9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9729 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9730 | if ${ac_cv_prog_ax_pthread_config+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9731 | $as_echo_n "(cached) " >&6 |
| 9732 | else |
| 9733 | if test -n "$ax_pthread_config"; then |
| 9734 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 9735 | else |
| 9736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9737 | for as_dir in $PATH |
| 9738 | do |
| 9739 | IFS=$as_save_IFS |
| 9740 | test -z "$as_dir" && as_dir=. |
| 9741 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 9742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9743 | ac_cv_prog_ax_pthread_config="yes" |
| 9744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9745 | break 2 |
| 9746 | fi |
| 9747 | done |
| 9748 | done |
| 9749 | IFS=$as_save_IFS |
| 9750 | |
| 9751 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 9752 | fi |
| 9753 | fi |
| 9754 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 9755 | if test -n "$ax_pthread_config"; then |
| 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 9757 | $as_echo "$ax_pthread_config" >&6; } |
| 9758 | else |
| 9759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9760 | $as_echo "no" >&6; } |
| 9761 | fi |
| 9762 | |
| 9763 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9764 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 9765 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 9766 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 9767 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9768 | |
| 9769 | *) |
| 9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 9771 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 9772 | PTHREAD_LIBS="-l$flag" |
| 9773 | ;; |
| 9774 | esac |
| 9775 | |
| 9776 | save_LIBS="$LIBS" |
| 9777 | save_CFLAGS="$CFLAGS" |
| 9778 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9779 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9780 | |
| 9781 | # Check for various functions. We must include pthread.h, |
| 9782 | # since some functions may be macros. (On the Sequent, we |
| 9783 | # need a special flag -Kthread to make this header compile.) |
| 9784 | # We check for pthread_join because it is in -lpthread on IRIX |
| 9785 | # while pthread_create is in libc. We check for pthread_attr_init |
| 9786 | # due to DEC craziness with -lpthreads. We check for |
| 9787 | # pthread_cleanup_push because it is one of the few pthread |
| 9788 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 9789 | # We try pthread_create on general principles. |
| 9790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9791 | /* end confdefs.h. */ |
| 9792 | #include <pthread.h> |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9793 | static void routine(void *a) { a = 0; } |
| 9794 | static void *start_routine(void *a) { return a; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9795 | int |
| 9796 | main () |
| 9797 | { |
| 9798 | pthread_t th; pthread_attr_t attr; |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9799 | pthread_create(&th, 0, start_routine, 0); |
| 9800 | pthread_join(th, 0); |
| 9801 | pthread_attr_init(&attr); |
| 9802 | pthread_cleanup_push(routine, 0); |
| 9803 | pthread_cleanup_pop(0) /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9804 | ; |
| 9805 | return 0; |
| 9806 | } |
| 9807 | _ACEOF |
| 9808 | if ac_fn_c_try_link "$LINENO"; then : |
| 9809 | ax_pthread_ok=yes |
| 9810 | fi |
| 9811 | rm -f core conftest.err conftest.$ac_objext \ |
| 9812 | conftest$ac_exeext conftest.$ac_ext |
| 9813 | |
| 9814 | LIBS="$save_LIBS" |
| 9815 | CFLAGS="$save_CFLAGS" |
| 9816 | |
| 9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 9818 | $as_echo "$ax_pthread_ok" >&6; } |
| 9819 | if test "x$ax_pthread_ok" = xyes; then |
| 9820 | break; |
| 9821 | fi |
| 9822 | |
| 9823 | PTHREAD_LIBS="" |
| 9824 | PTHREAD_CFLAGS="" |
| 9825 | done |
| 9826 | fi |
| 9827 | |
| 9828 | # Various other checks: |
| 9829 | if test "x$ax_pthread_ok" = xyes; then |
| 9830 | save_LIBS="$LIBS" |
| 9831 | LIBS="$PTHREAD_LIBS $LIBS" |
| 9832 | save_CFLAGS="$CFLAGS" |
| 9833 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 9834 | |
| 9835 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9837 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9838 | attr_name=unknown |
| 9839 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 9840 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9841 | /* end confdefs.h. */ |
| 9842 | #include <pthread.h> |
| 9843 | int |
| 9844 | main () |
| 9845 | { |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9846 | int attr = $attr; return attr /* ; */ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9847 | ; |
| 9848 | return 0; |
| 9849 | } |
| 9850 | _ACEOF |
| 9851 | if ac_fn_c_try_link "$LINENO"; then : |
| 9852 | attr_name=$attr; break |
| 9853 | fi |
| 9854 | rm -f core conftest.err conftest.$ac_objext \ |
| 9855 | conftest$ac_exeext conftest.$ac_ext |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9856 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 9858 | $as_echo "$attr_name" >&6; } |
| 9859 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 9860 | |
| 9861 | cat >>confdefs.h <<_ACEOF |
| 9862 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 9863 | _ACEOF |
| 9864 | |
| 9865 | fi |
| 9866 | |
| 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 9868 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 9869 | flag=no |
| cristy | 2ec87cc | 2013-02-18 17:46:50 +0000 | [diff] [blame] | 9870 | case ${host_os} in |
| 9871 | aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; |
| 9872 | osf* | hpux*) flag="-D_REENTRANT";; |
| 9873 | solaris*) |
| 9874 | if test "$GCC" = "yes"; then |
| 9875 | flag="-D_REENTRANT" |
| 9876 | else |
| 9877 | flag="-mt -D_REENTRANT" |
| 9878 | fi |
| 9879 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9880 | esac |
| 9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 9882 | $as_echo "${flag}" >&6; } |
| 9883 | if test "x$flag" != xno; then |
| 9884 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 9885 | fi |
| 9886 | |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 9888 | $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 9889 | if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : |
| 9890 | $as_echo_n "(cached) " >&6 |
| 9891 | else |
| 9892 | |
| 9893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9894 | /* end confdefs.h. */ |
| 9895 | |
| 9896 | #include <pthread.h> |
| 9897 | int |
| 9898 | main () |
| 9899 | { |
| 9900 | int i = PTHREAD_PRIO_INHERIT; |
| 9901 | ; |
| 9902 | return 0; |
| 9903 | } |
| 9904 | _ACEOF |
| 9905 | if ac_fn_c_try_link "$LINENO"; then : |
| 9906 | ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 9907 | else |
| 9908 | ax_cv_PTHREAD_PRIO_INHERIT=no |
| 9909 | fi |
| 9910 | rm -f core conftest.err conftest.$ac_objext \ |
| 9911 | conftest$ac_exeext conftest.$ac_ext |
| 9912 | |
| 9913 | fi |
| 9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 9915 | $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 9916 | if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : |
| 9917 | |
| 9918 | $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 9919 | |
| 9920 | fi |
| 9921 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9922 | LIBS="$save_LIBS" |
| 9923 | CFLAGS="$save_CFLAGS" |
| 9924 | |
| cristy | 23493c4 | 2013-04-11 16:04:59 +0000 | [diff] [blame] | 9925 | # More AIX lossage: compile with *_r variant |
| 9926 | if test "x$GCC" != xyes; then |
| 9927 | case $host_os in |
| 9928 | aix*) |
| 9929 | case "x/$CC" in #( |
| 9930 | x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : |
| 9931 | #handle absolute path differently from PATH based program lookup |
| 9932 | case "x$CC" in #( |
| 9933 | x/*) : |
| 9934 | if as_fn_executable_p ${CC}_r; then : |
| 9935 | PTHREAD_CC="${CC}_r" |
| 9936 | fi ;; #( |
| 9937 | *) : |
| 9938 | for ac_prog in ${CC}_r |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9939 | do |
| 9940 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9941 | set dummy $ac_prog; ac_word=$2 |
| 9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9943 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 9944 | if ${ac_cv_prog_PTHREAD_CC+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9945 | $as_echo_n "(cached) " >&6 |
| 9946 | else |
| 9947 | if test -n "$PTHREAD_CC"; then |
| 9948 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 9949 | else |
| 9950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9951 | for as_dir in $PATH |
| 9952 | do |
| 9953 | IFS=$as_save_IFS |
| 9954 | test -z "$as_dir" && as_dir=. |
| 9955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 9956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9957 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 9958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9959 | break 2 |
| 9960 | fi |
| 9961 | done |
| 9962 | done |
| 9963 | IFS=$as_save_IFS |
| 9964 | |
| 9965 | fi |
| 9966 | fi |
| 9967 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 9968 | if test -n "$PTHREAD_CC"; then |
| 9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 9970 | $as_echo "$PTHREAD_CC" >&6; } |
| 9971 | else |
| 9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9973 | $as_echo "no" >&6; } |
| 9974 | fi |
| 9975 | |
| 9976 | |
| 9977 | test -n "$PTHREAD_CC" && break |
| 9978 | done |
| cristy | 23493c4 | 2013-04-11 16:04:59 +0000 | [diff] [blame] | 9979 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 9980 | ;; |
| 9981 | esac ;; #( |
| 9982 | *) : |
| 9983 | ;; |
| 9984 | esac |
| 9985 | ;; |
| 9986 | esac |
| cristy | a316db1 | 2011-10-24 00:49:45 +0000 | [diff] [blame] | 9987 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9988 | fi |
| 9989 | |
| cristy | 23493c4 | 2013-04-11 16:04:59 +0000 | [diff] [blame] | 9990 | test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 9991 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 9997 | if test x"$ax_pthread_ok" = xyes; then |
| 9998 | |
| 9999 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 10000 | |
| 10001 | : |
| 10002 | else |
| 10003 | ax_pthread_ok=no |
| 10004 | |
| 10005 | fi |
| 10006 | ac_ext=c |
| 10007 | ac_cpp='$CPP $CPPFLAGS' |
| 10008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10011 | |
| 10012 | |
| 10013 | |
| 10014 | # Check whether --enable-opencl was given. |
| 10015 | if test "${enable_opencl+set}" = set; then : |
| cristy | 4879464 | 2012-09-02 15:19:08 +0000 | [diff] [blame] | 10016 | enableval=$enable_opencl; enable_opencl=$enableval |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10017 | else |
| cristy | 4879464 | 2012-09-02 15:19:08 +0000 | [diff] [blame] | 10018 | enable_opencl='no' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10019 | fi |
| 10020 | |
| 10021 | |
| cristy | 4879464 | 2012-09-02 15:19:08 +0000 | [diff] [blame] | 10022 | if test "$enable_opencl" = 'yes'; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10023 | ac_ext=c |
| 10024 | ac_cpp='$CPP $CPPFLAGS' |
| 10025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10028 | |
| cristy | 75314cc | 2012-09-15 23:08:29 +0000 | [diff] [blame] | 10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 |
| 10030 | $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; } |
| 10031 | if ${ax_cv_c_compiler_ms+:} false; then : |
| 10032 | $as_echo_n "(cached) " >&6 |
| 10033 | else |
| 10034 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10035 | /* end confdefs.h. */ |
| 10036 | |
| 10037 | int |
| 10038 | main () |
| 10039 | { |
| 10040 | #ifndef _MSC_VER |
| 10041 | choke me |
| 10042 | #endif |
| 10043 | |
| 10044 | ; |
| 10045 | return 0; |
| 10046 | } |
| 10047 | _ACEOF |
| 10048 | if ac_fn_c_try_compile "$LINENO"; then : |
| 10049 | ax_compiler_ms=yes |
| 10050 | else |
| 10051 | ax_compiler_ms=no |
| 10052 | fi |
| 10053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10054 | ax_cv_c_compiler_ms=$ax_compiler_ms |
| 10055 | |
| 10056 | fi |
| 10057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 |
| 10058 | $as_echo "$ax_cv_c_compiler_ms" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10059 | if test X$ax_compiler_ms = Xno; then : |
| 10060 | CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm" |
| 10061 | fi |
| 10062 | |
| 10063 | ax_save_CPPFLAGS=$CPPFLAGS |
| 10064 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 10065 | for ac_header in CL/cl.h OpenCL/cl.h |
| 10066 | do : |
| 10067 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10068 | 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] | 10069 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10070 | cat >>confdefs.h <<_ACEOF |
| 10071 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10072 | _ACEOF |
| 10073 | |
| 10074 | fi |
| 10075 | |
| 10076 | done |
| 10077 | |
| 10078 | CPPFLAGS=$ax_save_CPPFLAGS |
| 10079 | |
| 10080 | for ac_header in windows.h |
| 10081 | do : |
| 10082 | 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] | 10083 | if test "x$ac_cv_header_windows_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10084 | cat >>confdefs.h <<_ACEOF |
| 10085 | #define HAVE_WINDOWS_H 1 |
| 10086 | _ACEOF |
| 10087 | |
| 10088 | fi |
| 10089 | |
| 10090 | done |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5 |
| 10096 | $as_echo_n "checking for OpenCL library... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10097 | if ${ax_cv_check_cl_libcl+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10098 | $as_echo_n "(cached) " >&6 |
| 10099 | else |
| 10100 | ax_cv_check_cl_libcl=no |
| 10101 | case $host_cpu in |
| 10102 | x86_64) ax_check_cl_libdir=lib64 ;; |
| 10103 | *) ax_check_cl_libdir=lib ;; |
| 10104 | esac |
| 10105 | ax_save_CPPFLAGS=$CPPFLAGS |
| 10106 | CPPFLAGS="$CL_CFLAGS $CPPFLAGS" |
| 10107 | ax_save_LIBS=$LIBS |
| 10108 | LIBS="" |
| 10109 | ax_check_libs="-lOpenCL -lCL -lclparser" |
| 10110 | for ax_lib in $ax_check_libs; do |
| 10111 | if test X$ax_compiler_ms = Xyes; then : |
| 10112 | ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'` |
| 10113 | else |
| 10114 | ax_try_lib=$ax_lib |
| 10115 | fi |
| 10116 | LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS" |
| 10117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10118 | /* end confdefs.h. */ |
| 10119 | |
| 10120 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 10121 | # include <windows.h> |
| 10122 | # endif |
| 10123 | # ifdef HAVE_CL_CL_H |
| 10124 | # include <CL/cl.h> |
| 10125 | # elif defined(HAVE_OPENCL_CL_H) |
| 10126 | # include <OpenCL/cl.h> |
| 10127 | # else |
| 10128 | # error no CL.h |
| 10129 | # endif |
| 10130 | int |
| 10131 | main () |
| 10132 | { |
| 10133 | clCreateContextFromType(0,0,0,0,0) |
| 10134 | ; |
| 10135 | return 0; |
| 10136 | } |
| 10137 | _ACEOF |
| 10138 | if ac_fn_c_try_link "$LINENO"; then : |
| 10139 | ax_cv_check_cl_libcl=$ax_try_lib; break |
| 10140 | else |
| 10141 | 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" |
| 10142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10143 | /* end confdefs.h. */ |
| 10144 | |
| 10145 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 10146 | # include <windows.h> |
| 10147 | # endif |
| 10148 | # ifdef HAVE_CL_CL_H |
| 10149 | # include <CL/cl.h> |
| 10150 | # elif defined(HAVE_OPENCL_CL_H) |
| 10151 | # include <OpenCL/cl.h> |
| 10152 | # else |
| 10153 | # error no CL.h |
| 10154 | # endif |
| 10155 | int |
| 10156 | main () |
| 10157 | { |
| 10158 | clCreateContextFromType(0,0,0,0,0) |
| 10159 | ; |
| 10160 | return 0; |
| 10161 | } |
| 10162 | _ACEOF |
| 10163 | if ac_fn_c_try_link "$LINENO"; then : |
| 10164 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break |
| 10165 | else |
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 10166 | 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] | 10167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10168 | /* end confdefs.h. */ |
| 10169 | |
| 10170 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 10171 | # include <windows.h> |
| 10172 | # endif |
| 10173 | # ifdef HAVE_CL_CL_H |
| 10174 | # include <CL/cl.h> |
| 10175 | # elif defined(HAVE_OPENCL_CL_H) |
| 10176 | # include <OpenCL/cl.h> |
| 10177 | # else |
| 10178 | # error no CL.h |
| 10179 | # endif |
| 10180 | int |
| 10181 | main () |
| 10182 | { |
| 10183 | clCreateContextFromType(0,0,0,0,0) |
| 10184 | ; |
| 10185 | return 0; |
| 10186 | } |
| 10187 | _ACEOF |
| 10188 | if ac_fn_c_try_link "$LINENO"; then : |
| 10189 | ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break |
| 10190 | fi |
| 10191 | rm -f core conftest.err conftest.$ac_objext \ |
| 10192 | conftest$ac_exeext conftest.$ac_ext |
| 10193 | fi |
| 10194 | rm -f core conftest.err conftest.$ac_objext \ |
| 10195 | conftest$ac_exeext conftest.$ac_ext |
| 10196 | fi |
| 10197 | rm -f core conftest.err conftest.$ac_objext \ |
| 10198 | conftest$ac_exeext conftest.$ac_ext |
| 10199 | done |
| 10200 | |
| cristy | c3f8b8e | 2011-12-22 14:55:16 +0000 | [diff] [blame] | 10201 | if test "X$ax_cv_check_cl_libcl" = Xno; then : |
| cristy | 78c5a0c | 2010-12-04 20:00:59 +0000 | [diff] [blame] | 10202 | LIBS='-Wl,-framework,OpenCL' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10204 | /* end confdefs.h. */ |
| 10205 | |
| 10206 | # if defined(HAVE_WINDOWS_H) && defined(_WIN32) |
| 10207 | # include <windows.h> |
| 10208 | # endif |
| 10209 | # ifdef HAVE_CL_CL_H |
| 10210 | # include <CL/cl.h> |
| 10211 | # elif defined(HAVE_OPENCL_CL_H) |
| 10212 | # include <OpenCL/cl.h> |
| 10213 | # else |
| 10214 | # error no CL.h |
| 10215 | # endif |
| 10216 | int |
| 10217 | main () |
| 10218 | { |
| 10219 | clCreateContextFromType(0,0,0,0,0) |
| 10220 | ; |
| 10221 | return 0; |
| 10222 | } |
| 10223 | _ACEOF |
| 10224 | if ac_fn_c_try_link "$LINENO"; then : |
| 10225 | ax_cv_check_cl_libcl=$LIBS |
| 10226 | fi |
| 10227 | rm -f core conftest.err conftest.$ac_objext \ |
| 10228 | conftest$ac_exeext conftest.$ac_ext |
| 10229 | fi |
| 10230 | |
| 10231 | LIBS=$ax_save_LIBS |
| 10232 | CPPFLAGS=$ax_save_CPPFLAGS |
| 10233 | fi |
| 10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5 |
| 10235 | $as_echo "$ax_cv_check_cl_libcl" >&6; } |
| 10236 | |
| 10237 | if test "X$ax_cv_check_cl_libcl" = Xno; then : |
| 10238 | no_cl=yes; CL_CFLAGS=""; CL_LIBS="" |
| 10239 | else |
| 10240 | CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"; |
| 10241 | $as_echo "#define _OPENCL 1" >>confdefs.h |
| 10242 | |
| 10243 | fi |
| 10244 | ac_ext=c |
| 10245 | ac_cpp='$CPP $CPPFLAGS' |
| 10246 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10247 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10248 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10249 | |
| 10250 | fi |
| 10251 | |
| 10252 | |
| 10253 | |
| 10254 | |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 10255 | CFLAGS="$CL_CFLAGS $CFLAGS" |
| 10256 | LIBS="$CL_LIBS $LIBS" |
| cristy | 736173a | 2009-09-20 21:18:22 +0000 | [diff] [blame] | 10257 | |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 10258 | if test "$enable_opencl" != no; then |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 10259 | if test "X$ax_cv_check_cl_libcl" != Xno; then : |
| cristy | 391f1ce | 2010-09-09 17:23:28 +0000 | [diff] [blame] | 10260 | MAGICK_FEATURES="OpenCL $MAGICK_FEATURES" |
| 10261 | fi |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 10262 | fi |
| cristy | 2e8b51d | 2009-10-17 18:26:15 +0000 | [diff] [blame] | 10263 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10264 | ######## |
| 10265 | # |
| 10266 | # Check for large file support |
| 10267 | # |
| 10268 | ######## |
| 10269 | # Check whether --enable-largefile was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10270 | if test "${enable_largefile+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10271 | enableval=$enable_largefile; |
| 10272 | fi |
| 10273 | |
| 10274 | if test "$enable_largefile" != no; then |
| 10275 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10276 | { $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] | 10277 | $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] | 10278 | if ${ac_cv_sys_largefile_CC+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10279 | $as_echo_n "(cached) " >&6 |
| 10280 | else |
| 10281 | ac_cv_sys_largefile_CC=no |
| 10282 | if test "$GCC" != yes; then |
| 10283 | ac_save_CC=$CC |
| 10284 | while :; do |
| 10285 | # IRIX 6.2 and later do not support large files by default, |
| 10286 | # so use the C compiler's -n32 option if that helps. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10288 | /* end confdefs.h. */ |
| 10289 | #include <sys/types.h> |
| 10290 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10291 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10292 | since some C++ compilers masquerading as C compilers |
| 10293 | incorrectly reject 9223372036854775807. */ |
| 10294 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10295 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10296 | && LARGE_OFF_T % 2147483647 == 1) |
| 10297 | ? 1 : -1]; |
| 10298 | int |
| 10299 | main () |
| 10300 | { |
| 10301 | |
| 10302 | ; |
| 10303 | return 0; |
| 10304 | } |
| 10305 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10306 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10307 | break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10308 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10309 | rm -f core conftest.err conftest.$ac_objext |
| 10310 | CC="$CC -n32" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10311 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10312 | ac_cv_sys_largefile_CC=' -n32'; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10313 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10314 | rm -f core conftest.err conftest.$ac_objext |
| 10315 | break |
| 10316 | done |
| 10317 | CC=$ac_save_CC |
| 10318 | rm -f conftest.$ac_ext |
| 10319 | fi |
| 10320 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10321 | { $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] | 10322 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 10323 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 10324 | CC=$CC$ac_cv_sys_largefile_CC |
| 10325 | fi |
| 10326 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10327 | { $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] | 10328 | $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] | 10329 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10330 | $as_echo_n "(cached) " >&6 |
| 10331 | else |
| 10332 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10334 | /* end confdefs.h. */ |
| 10335 | #include <sys/types.h> |
| 10336 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10337 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10338 | since some C++ compilers masquerading as C compilers |
| 10339 | incorrectly reject 9223372036854775807. */ |
| 10340 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10341 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10342 | && LARGE_OFF_T % 2147483647 == 1) |
| 10343 | ? 1 : -1]; |
| 10344 | int |
| 10345 | main () |
| 10346 | { |
| 10347 | |
| 10348 | ; |
| 10349 | return 0; |
| 10350 | } |
| 10351 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10352 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10353 | ac_cv_sys_file_offset_bits=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10354 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10357 | /* end confdefs.h. */ |
| 10358 | #define _FILE_OFFSET_BITS 64 |
| 10359 | #include <sys/types.h> |
| 10360 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10361 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10362 | since some C++ compilers masquerading as C compilers |
| 10363 | incorrectly reject 9223372036854775807. */ |
| 10364 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10365 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10366 | && LARGE_OFF_T % 2147483647 == 1) |
| 10367 | ? 1 : -1]; |
| 10368 | int |
| 10369 | main () |
| 10370 | { |
| 10371 | |
| 10372 | ; |
| 10373 | return 0; |
| 10374 | } |
| 10375 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10376 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10377 | ac_cv_sys_file_offset_bits=64; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10378 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10380 | ac_cv_sys_file_offset_bits=unknown |
| 10381 | break |
| 10382 | done |
| 10383 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10384 | { $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] | 10385 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 10386 | case $ac_cv_sys_file_offset_bits in #( |
| 10387 | no | unknown) ;; |
| 10388 | *) |
| 10389 | cat >>confdefs.h <<_ACEOF |
| 10390 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 10391 | _ACEOF |
| 10392 | ;; |
| 10393 | esac |
| 10394 | rm -rf conftest* |
| 10395 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10396 | { $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] | 10397 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10398 | if ${ac_cv_sys_large_files+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10399 | $as_echo_n "(cached) " >&6 |
| 10400 | else |
| 10401 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10403 | /* end confdefs.h. */ |
| 10404 | #include <sys/types.h> |
| 10405 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10406 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10407 | since some C++ compilers masquerading as C compilers |
| 10408 | incorrectly reject 9223372036854775807. */ |
| 10409 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10410 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10411 | && LARGE_OFF_T % 2147483647 == 1) |
| 10412 | ? 1 : -1]; |
| 10413 | int |
| 10414 | main () |
| 10415 | { |
| 10416 | |
| 10417 | ; |
| 10418 | return 0; |
| 10419 | } |
| 10420 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10421 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10422 | ac_cv_sys_large_files=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10423 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10426 | /* end confdefs.h. */ |
| 10427 | #define _LARGE_FILES 1 |
| 10428 | #include <sys/types.h> |
| 10429 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 10430 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 10431 | since some C++ compilers masquerading as C compilers |
| 10432 | incorrectly reject 9223372036854775807. */ |
| 10433 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 10434 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 10435 | && LARGE_OFF_T % 2147483647 == 1) |
| 10436 | ? 1 : -1]; |
| 10437 | int |
| 10438 | main () |
| 10439 | { |
| 10440 | |
| 10441 | ; |
| 10442 | return 0; |
| 10443 | } |
| 10444 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10445 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10446 | ac_cv_sys_large_files=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10447 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10449 | ac_cv_sys_large_files=unknown |
| 10450 | break |
| 10451 | done |
| 10452 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10453 | { $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] | 10454 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 10455 | case $ac_cv_sys_large_files in #( |
| 10456 | no | unknown) ;; |
| 10457 | *) |
| 10458 | cat >>confdefs.h <<_ACEOF |
| 10459 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 10460 | _ACEOF |
| 10461 | ;; |
| 10462 | esac |
| 10463 | rm -rf conftest* |
| 10464 | fi |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 10465 | |
| 10466 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10467 | fi |
| 10468 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10469 | { $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] | 10470 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10471 | if ${ac_cv_sys_largefile_source+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10472 | $as_echo_n "(cached) " >&6 |
| 10473 | else |
| 10474 | while :; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10476 | /* end confdefs.h. */ |
| 10477 | #include <sys/types.h> /* for off_t */ |
| 10478 | #include <stdio.h> |
| 10479 | int |
| 10480 | main () |
| 10481 | { |
| 10482 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 10483 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 10484 | ; |
| 10485 | return 0; |
| 10486 | } |
| 10487 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10488 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10489 | ac_cv_sys_largefile_source=no; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10490 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10491 | rm -f core conftest.err conftest.$ac_objext \ |
| 10492 | conftest$ac_exeext conftest.$ac_ext |
| 10493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10494 | /* end confdefs.h. */ |
| 10495 | #define _LARGEFILE_SOURCE 1 |
| 10496 | #include <sys/types.h> /* for off_t */ |
| 10497 | #include <stdio.h> |
| 10498 | int |
| 10499 | main () |
| 10500 | { |
| 10501 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 10502 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 10503 | ; |
| 10504 | return 0; |
| 10505 | } |
| 10506 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10507 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10508 | ac_cv_sys_largefile_source=1; break |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10509 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10510 | rm -f core conftest.err conftest.$ac_objext \ |
| 10511 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10512 | ac_cv_sys_largefile_source=unknown |
| 10513 | break |
| 10514 | done |
| 10515 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10516 | { $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] | 10517 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 10518 | case $ac_cv_sys_largefile_source in #( |
| 10519 | no | unknown) ;; |
| 10520 | *) |
| 10521 | cat >>confdefs.h <<_ACEOF |
| 10522 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 10523 | _ACEOF |
| 10524 | ;; |
| 10525 | esac |
| 10526 | rm -rf conftest* |
| 10527 | |
| 10528 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 10529 | # in glibc 2.1.3, but that breaks too many other things. |
| 10530 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 10531 | if test $ac_cv_sys_largefile_source != unknown; then |
| 10532 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10533 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10534 | |
| 10535 | fi |
| 10536 | |
| 10537 | LFS_CPPFLAGS='' |
| 10538 | if test "$enable_largefile" != no; then |
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 10539 | case $ac_cv_sys_file_offset_bits in |
| 10540 | no) |
| 10541 | # nothing to do here as the host supports LFS fine |
| 10542 | ;; |
| 10543 | unknown) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10544 | { $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] | 10545 | $as_echo_n "checking for native large file support... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10546 | if test "$cross_compiling" = yes; then : |
| 10547 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 10549 | as_fn_error $? "cannot run test program while cross compiling |
| 10550 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10551 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10553 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10554 | #include <unistd.h> |
| 10555 | main () { |
| 10556 | exit(!(sizeof(off_t) == 8)); |
| 10557 | } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10558 | int |
| 10559 | main () |
| 10560 | { |
| 10561 | |
| 10562 | ; |
| 10563 | return 0; |
| 10564 | } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10565 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10566 | if ac_fn_c_try_run "$LINENO"; then : |
| 10567 | 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] | 10568 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 10569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10570 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10571 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10573 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10574 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 10575 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10576 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10577 | fi |
| 10578 | |
| cristy | c1e0cc1 | 2011-09-21 16:41:16 +0000 | [diff] [blame] | 10579 | ;; |
| 10580 | *) |
| 10581 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" |
| 10582 | ;; |
| 10583 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10584 | if test "$ac_cv_sys_large_files" != 'no'; then |
| 10585 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1" |
| 10586 | fi |
| 10587 | if test "$ac_cv_sys_largefile_source" != 'no'; then |
| 10588 | LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 10589 | fi |
| 10590 | fi |
| 10591 | |
| 10592 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 10593 | # Configure libtool |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10594 | enable_dlopen=yes |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | case `pwd` in |
| 10599 | *\ * | *\ *) |
| 10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 10601 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 10602 | esac |
| 10603 | |
| 10604 | |
| 10605 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 10606 | macro_version='2.4.2' |
| 10607 | macro_revision='1.3337' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | ltmain="$ac_aux_dir/ltmain.sh" |
| 10622 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10623 | # Backslashify metacharacters that are still active within |
| 10624 | # double-quoted strings. |
| 10625 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 10626 | |
| 10627 | # Same as above, but do not quote variable references. |
| 10628 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 10629 | |
| 10630 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 10631 | # double_quote_subst'ed string. |
| 10632 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 10633 | |
| 10634 | # Sed substitution to delay expansion of an escaped single quote. |
| 10635 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 10636 | |
| 10637 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 10638 | no_glob_subst='s/\*/\\\*/g' |
| 10639 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 10641 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10642 | if ${lt_cv_path_NM+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10643 | $as_echo_n "(cached) " >&6 |
| 10644 | else |
| 10645 | if test -n "$NM"; then |
| 10646 | # Let the user override the test. |
| 10647 | lt_cv_path_NM="$NM" |
| 10648 | else |
| 10649 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 10650 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 10651 | lt_nm_to_check="$lt_nm_to_check nm" |
| 10652 | fi |
| 10653 | for lt_tmp_nm in $lt_nm_to_check; do |
| 10654 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 10655 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 10656 | IFS="$lt_save_ifs" |
| 10657 | test -z "$ac_dir" && ac_dir=. |
| 10658 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 10659 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 10660 | # Check to see if the nm accepts a BSD-compat flag. |
| 10661 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 10662 | # nm: unknown option "B" ignored |
| 10663 | # Tru64's nm complains that /dev/null is an invalid object file |
| 10664 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 10665 | */dev/null* | *'Invalid file or object type'*) |
| 10666 | lt_cv_path_NM="$tmp_nm -B" |
| 10667 | break |
| 10668 | ;; |
| 10669 | *) |
| 10670 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 10671 | */dev/null*) |
| 10672 | lt_cv_path_NM="$tmp_nm -p" |
| 10673 | break |
| 10674 | ;; |
| 10675 | *) |
| 10676 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 10677 | continue # so that we can try to find one that supports BSD flags |
| 10678 | ;; |
| 10679 | esac |
| 10680 | ;; |
| 10681 | esac |
| 10682 | fi |
| 10683 | done |
| 10684 | IFS="$lt_save_ifs" |
| 10685 | done |
| 10686 | : ${lt_cv_path_NM=no} |
| 10687 | fi |
| 10688 | fi |
| 10689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 10690 | $as_echo "$lt_cv_path_NM" >&6; } |
| 10691 | if test "$lt_cv_path_NM" != "no"; then |
| 10692 | NM="$lt_cv_path_NM" |
| 10693 | else |
| 10694 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10695 | if test -n "$DUMPBIN"; then : |
| 10696 | # Let the user override the test. |
| 10697 | else |
| 10698 | if test -n "$ac_tool_prefix"; then |
| 10699 | for ac_prog in dumpbin "link -dump" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10700 | do |
| 10701 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10702 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10704 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10705 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10706 | $as_echo_n "(cached) " >&6 |
| 10707 | else |
| 10708 | if test -n "$DUMPBIN"; then |
| 10709 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 10710 | else |
| 10711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10712 | for as_dir in $PATH |
| 10713 | do |
| 10714 | IFS=$as_save_IFS |
| 10715 | test -z "$as_dir" && as_dir=. |
| 10716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 10717 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10718 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 10719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10720 | break 2 |
| 10721 | fi |
| 10722 | done |
| 10723 | done |
| 10724 | IFS=$as_save_IFS |
| 10725 | |
| 10726 | fi |
| 10727 | fi |
| 10728 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 10729 | if test -n "$DUMPBIN"; then |
| 10730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 10731 | $as_echo "$DUMPBIN" >&6; } |
| 10732 | else |
| 10733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10734 | $as_echo "no" >&6; } |
| 10735 | fi |
| 10736 | |
| 10737 | |
| 10738 | test -n "$DUMPBIN" && break |
| 10739 | done |
| 10740 | fi |
| 10741 | if test -z "$DUMPBIN"; then |
| 10742 | ac_ct_DUMPBIN=$DUMPBIN |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10743 | for ac_prog in dumpbin "link -dump" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10744 | do |
| 10745 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10746 | set dummy $ac_prog; ac_word=$2 |
| 10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10748 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10749 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10750 | $as_echo_n "(cached) " >&6 |
| 10751 | else |
| 10752 | if test -n "$ac_ct_DUMPBIN"; then |
| 10753 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 10754 | else |
| 10755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10756 | for as_dir in $PATH |
| 10757 | do |
| 10758 | IFS=$as_save_IFS |
| 10759 | test -z "$as_dir" && as_dir=. |
| 10760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 10761 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10762 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 10763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10764 | break 2 |
| 10765 | fi |
| 10766 | done |
| 10767 | done |
| 10768 | IFS=$as_save_IFS |
| 10769 | |
| 10770 | fi |
| 10771 | fi |
| 10772 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 10773 | if test -n "$ac_ct_DUMPBIN"; then |
| 10774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 10775 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 10776 | else |
| 10777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10778 | $as_echo "no" >&6; } |
| 10779 | fi |
| 10780 | |
| 10781 | |
| 10782 | test -n "$ac_ct_DUMPBIN" && break |
| 10783 | done |
| 10784 | |
| 10785 | if test "x$ac_ct_DUMPBIN" = x; then |
| 10786 | DUMPBIN=":" |
| 10787 | else |
| 10788 | case $cross_compiling:$ac_tool_warned in |
| 10789 | yes:) |
| 10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10791 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10792 | ac_tool_warned=yes ;; |
| 10793 | esac |
| 10794 | DUMPBIN=$ac_ct_DUMPBIN |
| 10795 | fi |
| 10796 | fi |
| 10797 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10798 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 10799 | *COFF*) |
| 10800 | DUMPBIN="$DUMPBIN -symbols" |
| 10801 | ;; |
| 10802 | *) |
| 10803 | DUMPBIN=: |
| 10804 | ;; |
| 10805 | esac |
| 10806 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10807 | |
| 10808 | if test "$DUMPBIN" != ":"; then |
| 10809 | NM="$DUMPBIN" |
| 10810 | fi |
| 10811 | fi |
| 10812 | test -z "$NM" && NM=nm |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
| 10818 | |
| 10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 10820 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10821 | if ${lt_cv_nm_interface+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10822 | $as_echo_n "(cached) " >&6 |
| 10823 | else |
| 10824 | lt_cv_nm_interface="BSD nm" |
| 10825 | echo "int some_variable = 0;" > conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10826 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10827 | (eval "$ac_compile" 2>conftest.err) |
| 10828 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10829 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10830 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 10831 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10832 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10833 | cat conftest.out >&5 |
| 10834 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 10835 | lt_cv_nm_interface="MS dumpbin" |
| 10836 | fi |
| 10837 | rm -f conftest* |
| 10838 | fi |
| 10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 10840 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 10841 | |
| 10842 | # find the maximum length of command line arguments |
| 10843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 10844 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10845 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10846 | $as_echo_n "(cached) " >&6 |
| 10847 | else |
| 10848 | i=0 |
| 10849 | teststring="ABCD" |
| 10850 | |
| 10851 | case $build_os in |
| 10852 | msdosdjgpp*) |
| 10853 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 10854 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 10855 | # during glob expansion). Even if it were fixed, the result of this |
| 10856 | # check would be larger than it should be. |
| 10857 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 10858 | ;; |
| 10859 | |
| 10860 | gnu*) |
| 10861 | # Under GNU Hurd, this test is not required because there is |
| 10862 | # no limit to the length of command line arguments. |
| 10863 | # Libtool will interpret -1 as no limit whatsoever |
| 10864 | lt_cv_sys_max_cmd_len=-1; |
| 10865 | ;; |
| 10866 | |
| 10867 | cygwin* | mingw* | cegcc*) |
| 10868 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 10869 | # about 5 minutes as the teststring grows exponentially. |
| 10870 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 10871 | # you end up with a "frozen" computer, even though with patience |
| 10872 | # the test eventually succeeds (with a max line length of 256k). |
| 10873 | # Instead, let's just punt: use the minimum linelength reported by |
| 10874 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 10875 | lt_cv_sys_max_cmd_len=8192; |
| 10876 | ;; |
| 10877 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10878 | mint*) |
| 10879 | # On MiNT this can take a long time and run out of memory. |
| 10880 | lt_cv_sys_max_cmd_len=8192; |
| 10881 | ;; |
| 10882 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10883 | amigaos*) |
| 10884 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 10885 | # So we just punt and use a minimum line length of 8192. |
| 10886 | lt_cv_sys_max_cmd_len=8192; |
| 10887 | ;; |
| 10888 | |
| 10889 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 10890 | # This has been around since 386BSD, at least. Likely further. |
| 10891 | if test -x /sbin/sysctl; then |
| 10892 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 10893 | elif test -x /usr/sbin/sysctl; then |
| 10894 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 10895 | else |
| 10896 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 10897 | fi |
| 10898 | # And add a safety zone |
| 10899 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10900 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 10901 | ;; |
| 10902 | |
| 10903 | interix*) |
| 10904 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 10905 | lt_cv_sys_max_cmd_len=196608 |
| 10906 | ;; |
| 10907 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 10908 | os2*) |
| 10909 | # The test takes a long time on OS/2. |
| 10910 | lt_cv_sys_max_cmd_len=8192 |
| 10911 | ;; |
| 10912 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10913 | osf*) |
| 10914 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 10915 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 10916 | # nice to cause kernel panics so lets avoid the loop below. |
| 10917 | # First set a reasonable default. |
| 10918 | lt_cv_sys_max_cmd_len=16384 |
| 10919 | # |
| 10920 | if test -x /sbin/sysconfig; then |
| 10921 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 10922 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 10923 | esac |
| 10924 | fi |
| 10925 | ;; |
| 10926 | sco3.2v5*) |
| 10927 | lt_cv_sys_max_cmd_len=102400 |
| 10928 | ;; |
| 10929 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 10930 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 10931 | if test -n "$kargmax"; then |
| 10932 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 10933 | else |
| 10934 | lt_cv_sys_max_cmd_len=32768 |
| 10935 | fi |
| 10936 | ;; |
| 10937 | *) |
| 10938 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 10939 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 10940 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10941 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 10942 | else |
| 10943 | # Make teststring a little bigger before we do anything with it. |
| 10944 | # a 1K string should be a reasonable start. |
| 10945 | for i in 1 2 3 4 5 6 7 8 ; do |
| 10946 | teststring=$teststring$teststring |
| 10947 | done |
| 10948 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 10949 | # If test is not a shell built-in, we'll probably end up computing a |
| 10950 | # maximum length that is only half of the actual maximum length, but |
| 10951 | # we can't tell. |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 10952 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 10953 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10954 | test $i != 17 # 1/2 MB should be enough |
| 10955 | do |
| 10956 | i=`expr $i + 1` |
| 10957 | teststring=$teststring$teststring |
| 10958 | done |
| 10959 | # Only check the string length outside the loop. |
| 10960 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 10961 | teststring= |
| 10962 | # Add a significant safety factor because C++ compilers can tack on |
| 10963 | # massive amounts of additional arguments before passing them to the |
| 10964 | # linker. It appears as though 1/2 is a usable value. |
| 10965 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 10966 | fi |
| 10967 | ;; |
| 10968 | esac |
| 10969 | |
| 10970 | fi |
| 10971 | |
| 10972 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 10974 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 10975 | else |
| 10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 10977 | $as_echo "none" >&6; } |
| 10978 | fi |
| 10979 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10980 | |
| 10981 | |
| 10982 | |
| 10983 | |
| 10984 | |
| 10985 | |
| 10986 | : ${CP="cp -f"} |
| 10987 | : ${MV="mv -f"} |
| 10988 | : ${RM="rm -f"} |
| 10989 | |
| 10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 10991 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 10992 | # Try some XSI features |
| 10993 | xsi_shell=no |
| 10994 | ( _lt_dummy="a/b/c" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 10995 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 10996 | = c,a/b,b/c, \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 10997 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 10998 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 10999 | && xsi_shell=yes |
| 11000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 11001 | $as_echo "$xsi_shell" >&6; } |
| 11002 | |
| 11003 | |
| 11004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 11005 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 11006 | lt_shell_append=no |
| 11007 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 11008 | >/dev/null 2>&1 \ |
| 11009 | && lt_shell_append=yes |
| 11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 11011 | $as_echo "$lt_shell_append" >&6; } |
| 11012 | |
| 11013 | |
| 11014 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11015 | lt_unset=unset |
| 11016 | else |
| 11017 | lt_unset=false |
| 11018 | fi |
| 11019 | |
| 11020 | |
| 11021 | |
| 11022 | |
| 11023 | |
| 11024 | # test EBCDIC or ASCII |
| 11025 | case `echo X|tr X '\101'` in |
| 11026 | A) # ASCII based system |
| 11027 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 11028 | lt_SP2NL='tr \040 \012' |
| 11029 | lt_NL2SP='tr \015\012 \040\040' |
| 11030 | ;; |
| 11031 | *) # EBCDIC based system |
| 11032 | lt_SP2NL='tr \100 \n' |
| 11033 | lt_NL2SP='tr \r\n \100\100' |
| 11034 | ;; |
| 11035 | esac |
| 11036 | |
| 11037 | |
| 11038 | |
| 11039 | |
| 11040 | |
| 11041 | |
| 11042 | |
| 11043 | |
| 11044 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 11046 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 11047 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 11048 | $as_echo_n "(cached) " >&6 |
| 11049 | else |
| 11050 | case $host in |
| 11051 | *-*-mingw* ) |
| 11052 | case $build in |
| 11053 | *-*-mingw* ) # actually msys |
| 11054 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 11055 | ;; |
| 11056 | *-*-cygwin* ) |
| 11057 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 11058 | ;; |
| 11059 | * ) # otherwise, assume *nix |
| 11060 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 11061 | ;; |
| 11062 | esac |
| 11063 | ;; |
| 11064 | *-*-cygwin* ) |
| 11065 | case $build in |
| 11066 | *-*-mingw* ) # actually msys |
| 11067 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 11068 | ;; |
| 11069 | *-*-cygwin* ) |
| 11070 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 11071 | ;; |
| 11072 | * ) # otherwise, assume *nix |
| 11073 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 11074 | ;; |
| 11075 | esac |
| 11076 | ;; |
| 11077 | * ) # unhandled hosts (and "normal" native builds) |
| 11078 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 11079 | ;; |
| 11080 | esac |
| 11081 | |
| 11082 | fi |
| 11083 | |
| 11084 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 11086 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 11087 | |
| 11088 | |
| 11089 | |
| 11090 | |
| 11091 | |
| 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 11093 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 11094 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 11095 | $as_echo_n "(cached) " >&6 |
| 11096 | else |
| 11097 | #assume ordinary cross tools, or native build. |
| 11098 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 11099 | case $host in |
| 11100 | *-*-mingw* ) |
| 11101 | case $build in |
| 11102 | *-*-mingw* ) # actually msys |
| 11103 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 11104 | ;; |
| 11105 | esac |
| 11106 | ;; |
| 11107 | esac |
| 11108 | |
| 11109 | fi |
| 11110 | |
| 11111 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 11112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 11113 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 11114 | |
| 11115 | |
| 11116 | |
| 11117 | |
| 11118 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 11120 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11121 | if ${lt_cv_ld_reload_flag+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11122 | $as_echo_n "(cached) " >&6 |
| 11123 | else |
| 11124 | lt_cv_ld_reload_flag='-r' |
| 11125 | fi |
| 11126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 11127 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 11128 | reload_flag=$lt_cv_ld_reload_flag |
| 11129 | case $reload_flag in |
| 11130 | "" | " "*) ;; |
| 11131 | *) reload_flag=" $reload_flag" ;; |
| 11132 | esac |
| 11133 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 11134 | case $host_os in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11135 | cygwin* | mingw* | pw32* | cegcc*) |
| 11136 | if test "$GCC" != yes; then |
| 11137 | reload_cmds=false |
| 11138 | fi |
| 11139 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11140 | darwin*) |
| 11141 | if test "$GCC" = yes; then |
| 11142 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 11143 | else |
| 11144 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 11145 | fi |
| 11146 | ;; |
| 11147 | esac |
| 11148 | |
| 11149 | |
| 11150 | |
| 11151 | |
| 11152 | |
| 11153 | |
| 11154 | |
| 11155 | |
| 11156 | |
| 11157 | if test -n "$ac_tool_prefix"; then |
| 11158 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 11159 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 11160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11161 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11162 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11163 | $as_echo_n "(cached) " >&6 |
| 11164 | else |
| 11165 | if test -n "$OBJDUMP"; then |
| 11166 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 11167 | else |
| 11168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11169 | for as_dir in $PATH |
| 11170 | do |
| 11171 | IFS=$as_save_IFS |
| 11172 | test -z "$as_dir" && as_dir=. |
| 11173 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11175 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 11176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11177 | break 2 |
| 11178 | fi |
| 11179 | done |
| 11180 | done |
| 11181 | IFS=$as_save_IFS |
| 11182 | |
| 11183 | fi |
| 11184 | fi |
| 11185 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 11186 | if test -n "$OBJDUMP"; then |
| 11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 11188 | $as_echo "$OBJDUMP" >&6; } |
| 11189 | else |
| 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11191 | $as_echo "no" >&6; } |
| 11192 | fi |
| 11193 | |
| 11194 | |
| 11195 | fi |
| 11196 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 11197 | ac_ct_OBJDUMP=$OBJDUMP |
| 11198 | # Extract the first word of "objdump", so it can be a program name with args. |
| 11199 | set dummy objdump; ac_word=$2 |
| 11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11201 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11202 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11203 | $as_echo_n "(cached) " >&6 |
| 11204 | else |
| 11205 | if test -n "$ac_ct_OBJDUMP"; then |
| 11206 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 11207 | else |
| 11208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11209 | for as_dir in $PATH |
| 11210 | do |
| 11211 | IFS=$as_save_IFS |
| 11212 | test -z "$as_dir" && as_dir=. |
| 11213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11215 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 11216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11217 | break 2 |
| 11218 | fi |
| 11219 | done |
| 11220 | done |
| 11221 | IFS=$as_save_IFS |
| 11222 | |
| 11223 | fi |
| 11224 | fi |
| 11225 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 11226 | if test -n "$ac_ct_OBJDUMP"; then |
| 11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 11228 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 11229 | else |
| 11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11231 | $as_echo "no" >&6; } |
| 11232 | fi |
| 11233 | |
| 11234 | if test "x$ac_ct_OBJDUMP" = x; then |
| 11235 | OBJDUMP="false" |
| 11236 | else |
| 11237 | case $cross_compiling:$ac_tool_warned in |
| 11238 | yes:) |
| 11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11240 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11241 | ac_tool_warned=yes ;; |
| 11242 | esac |
| 11243 | OBJDUMP=$ac_ct_OBJDUMP |
| 11244 | fi |
| 11245 | else |
| 11246 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 11247 | fi |
| 11248 | |
| 11249 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 11250 | |
| 11251 | |
| 11252 | |
| 11253 | |
| 11254 | |
| 11255 | |
| 11256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 11257 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11258 | if ${lt_cv_deplibs_check_method+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11259 | $as_echo_n "(cached) " >&6 |
| 11260 | else |
| 11261 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 11262 | lt_cv_file_magic_test_file= |
| 11263 | lt_cv_deplibs_check_method='unknown' |
| 11264 | # Need to set the preceding variable on all platforms that support |
| 11265 | # interlibrary dependencies. |
| 11266 | # 'none' -- dependencies not supported. |
| 11267 | # `unknown' -- same as none, but documents that we really don't know. |
| 11268 | # 'pass_all' -- all dependencies passed with no checks. |
| 11269 | # 'test_compile' -- check by making test program. |
| 11270 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 11271 | # which responds to the $file_magic_cmd with a given extended regex. |
| 11272 | # If you have `file' or equivalent on your system and you're not sure |
| 11273 | # whether `pass_all' will *always* work, you probably want this one. |
| 11274 | |
| 11275 | case $host_os in |
| 11276 | aix[4-9]*) |
| 11277 | lt_cv_deplibs_check_method=pass_all |
| 11278 | ;; |
| 11279 | |
| 11280 | beos*) |
| 11281 | lt_cv_deplibs_check_method=pass_all |
| 11282 | ;; |
| 11283 | |
| 11284 | bsdi[45]*) |
| 11285 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 11286 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 11287 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 11288 | ;; |
| 11289 | |
| 11290 | cygwin*) |
| 11291 | # func_win32_libid is a shell function defined in ltmain.sh |
| 11292 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 11293 | lt_cv_file_magic_cmd='func_win32_libid' |
| 11294 | ;; |
| 11295 | |
| 11296 | mingw* | pw32*) |
| 11297 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 11298 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 11299 | # unless we find 'file', for example because we are cross-compiling. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11300 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 11301 | 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] | 11302 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 11303 | lt_cv_file_magic_cmd='func_win32_libid' |
| 11304 | else |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11305 | # Keep this pattern in sync with the one in func_win32_libid. |
| 11306 | 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] | 11307 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 11308 | fi |
| 11309 | ;; |
| 11310 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11311 | cegcc*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11312 | # use the weaker test based on 'objdump'. See mingw*. |
| 11313 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 11314 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 11315 | ;; |
| 11316 | |
| 11317 | darwin* | rhapsody*) |
| 11318 | lt_cv_deplibs_check_method=pass_all |
| 11319 | ;; |
| 11320 | |
| 11321 | freebsd* | dragonfly*) |
| 11322 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 11323 | case $host_cpu in |
| 11324 | i*86 ) |
| 11325 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 11326 | # Let's accept both of them until this is cleared up. |
| 11327 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 11328 | lt_cv_file_magic_cmd=/usr/bin/file |
| 11329 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 11330 | ;; |
| 11331 | esac |
| 11332 | else |
| 11333 | lt_cv_deplibs_check_method=pass_all |
| 11334 | fi |
| 11335 | ;; |
| 11336 | |
| 11337 | gnu*) |
| 11338 | lt_cv_deplibs_check_method=pass_all |
| 11339 | ;; |
| 11340 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11341 | haiku*) |
| 11342 | lt_cv_deplibs_check_method=pass_all |
| 11343 | ;; |
| 11344 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11345 | hpux10.20* | hpux11*) |
| 11346 | lt_cv_file_magic_cmd=/usr/bin/file |
| 11347 | case $host_cpu in |
| 11348 | ia64*) |
| 11349 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 11350 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 11351 | ;; |
| 11352 | hppa*64*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11353 | 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] | 11354 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 11355 | ;; |
| 11356 | *) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11357 | 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] | 11358 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 11359 | ;; |
| 11360 | esac |
| 11361 | ;; |
| 11362 | |
| 11363 | interix[3-9]*) |
| 11364 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 11365 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 11366 | ;; |
| 11367 | |
| 11368 | irix5* | irix6* | nonstopux*) |
| 11369 | case $LD in |
| 11370 | *-32|*"-32 ") libmagic=32-bit;; |
| 11371 | *-n32|*"-n32 ") libmagic=N32;; |
| 11372 | *-64|*"-64 ") libmagic=64-bit;; |
| 11373 | *) libmagic=never-match;; |
| 11374 | esac |
| 11375 | lt_cv_deplibs_check_method=pass_all |
| 11376 | ;; |
| 11377 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 11378 | # This must be glibc/ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 11379 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11380 | lt_cv_deplibs_check_method=pass_all |
| 11381 | ;; |
| 11382 | |
| 11383 | netbsd*) |
| 11384 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 11385 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 11386 | else |
| 11387 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 11388 | fi |
| 11389 | ;; |
| 11390 | |
| 11391 | newos6*) |
| 11392 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 11393 | lt_cv_file_magic_cmd=/usr/bin/file |
| 11394 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 11395 | ;; |
| 11396 | |
| 11397 | *nto* | *qnx*) |
| 11398 | lt_cv_deplibs_check_method=pass_all |
| 11399 | ;; |
| 11400 | |
| 11401 | openbsd*) |
| 11402 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11403 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 11404 | else |
| 11405 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 11406 | fi |
| 11407 | ;; |
| 11408 | |
| 11409 | osf3* | osf4* | osf5*) |
| 11410 | lt_cv_deplibs_check_method=pass_all |
| 11411 | ;; |
| 11412 | |
| 11413 | rdos*) |
| 11414 | lt_cv_deplibs_check_method=pass_all |
| 11415 | ;; |
| 11416 | |
| 11417 | solaris*) |
| 11418 | lt_cv_deplibs_check_method=pass_all |
| 11419 | ;; |
| 11420 | |
| 11421 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11422 | lt_cv_deplibs_check_method=pass_all |
| 11423 | ;; |
| 11424 | |
| 11425 | sysv4 | sysv4.3*) |
| 11426 | case $host_vendor in |
| 11427 | motorola) |
| 11428 | 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]' |
| 11429 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 11430 | ;; |
| 11431 | ncr) |
| 11432 | lt_cv_deplibs_check_method=pass_all |
| 11433 | ;; |
| 11434 | sequent) |
| 11435 | lt_cv_file_magic_cmd='/bin/file' |
| 11436 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 11437 | ;; |
| 11438 | sni) |
| 11439 | lt_cv_file_magic_cmd='/bin/file' |
| 11440 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 11441 | lt_cv_file_magic_test_file=/lib/libc.so |
| 11442 | ;; |
| 11443 | siemens) |
| 11444 | lt_cv_deplibs_check_method=pass_all |
| 11445 | ;; |
| 11446 | pc) |
| 11447 | lt_cv_deplibs_check_method=pass_all |
| 11448 | ;; |
| 11449 | esac |
| 11450 | ;; |
| 11451 | |
| 11452 | tpf*) |
| 11453 | lt_cv_deplibs_check_method=pass_all |
| 11454 | ;; |
| 11455 | esac |
| 11456 | |
| 11457 | fi |
| 11458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 11459 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11460 | |
| 11461 | file_magic_glob= |
| 11462 | want_nocaseglob=no |
| 11463 | if test "$build" = "$host"; then |
| 11464 | case $host_os in |
| 11465 | mingw* | pw32*) |
| 11466 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 11467 | want_nocaseglob=yes |
| 11468 | else |
| 11469 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 11470 | fi |
| 11471 | ;; |
| 11472 | esac |
| 11473 | fi |
| 11474 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11475 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 11476 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 11477 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 11478 | |
| 11479 | |
| 11480 | |
| 11481 | |
| 11482 | |
| 11483 | |
| 11484 | |
| 11485 | |
| 11486 | |
| 11487 | |
| 11488 | |
| 11489 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11490 | |
| 11491 | |
| 11492 | |
| 11493 | |
| 11494 | |
| 11495 | |
| 11496 | |
| 11497 | |
| 11498 | |
| 11499 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11500 | if test -n "$ac_tool_prefix"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11501 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 11502 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11504 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11505 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 11506 | $as_echo_n "(cached) " >&6 |
| 11507 | else |
| 11508 | if test -n "$DLLTOOL"; then |
| 11509 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11510 | else |
| 11511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11512 | for as_dir in $PATH |
| 11513 | do |
| 11514 | IFS=$as_save_IFS |
| 11515 | test -z "$as_dir" && as_dir=. |
| 11516 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11517 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11518 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 11519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11520 | break 2 |
| 11521 | fi |
| 11522 | done |
| 11523 | done |
| 11524 | IFS=$as_save_IFS |
| 11525 | |
| 11526 | fi |
| 11527 | fi |
| 11528 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11529 | if test -n "$DLLTOOL"; then |
| 11530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 11531 | $as_echo "$DLLTOOL" >&6; } |
| 11532 | else |
| 11533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11534 | $as_echo "no" >&6; } |
| 11535 | fi |
| 11536 | |
| 11537 | |
| 11538 | fi |
| 11539 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 11540 | ac_ct_DLLTOOL=$DLLTOOL |
| 11541 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 11542 | set dummy dlltool; ac_word=$2 |
| 11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11544 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11545 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 11546 | $as_echo_n "(cached) " >&6 |
| 11547 | else |
| 11548 | if test -n "$ac_ct_DLLTOOL"; then |
| 11549 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 11550 | else |
| 11551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11552 | for as_dir in $PATH |
| 11553 | do |
| 11554 | IFS=$as_save_IFS |
| 11555 | test -z "$as_dir" && as_dir=. |
| 11556 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11558 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 11559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11560 | break 2 |
| 11561 | fi |
| 11562 | done |
| 11563 | done |
| 11564 | IFS=$as_save_IFS |
| 11565 | |
| 11566 | fi |
| 11567 | fi |
| 11568 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 11569 | if test -n "$ac_ct_DLLTOOL"; then |
| 11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 11571 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 11572 | else |
| 11573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11574 | $as_echo "no" >&6; } |
| 11575 | fi |
| 11576 | |
| 11577 | if test "x$ac_ct_DLLTOOL" = x; then |
| 11578 | DLLTOOL="false" |
| 11579 | else |
| 11580 | case $cross_compiling:$ac_tool_warned in |
| 11581 | yes:) |
| 11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11583 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11584 | ac_tool_warned=yes ;; |
| 11585 | esac |
| 11586 | DLLTOOL=$ac_ct_DLLTOOL |
| 11587 | fi |
| 11588 | else |
| 11589 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 11590 | fi |
| 11591 | |
| 11592 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11593 | |
| 11594 | |
| 11595 | |
| 11596 | |
| 11597 | |
| 11598 | |
| 11599 | |
| 11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 11601 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 11602 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 11603 | $as_echo_n "(cached) " >&6 |
| 11604 | else |
| 11605 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 11606 | |
| 11607 | case $host_os in |
| 11608 | cygwin* | mingw* | pw32* | cegcc*) |
| 11609 | # two different shell functions defined in ltmain.sh |
| 11610 | # decide which to use based on capabilities of $DLLTOOL |
| 11611 | case `$DLLTOOL --help 2>&1` in |
| 11612 | *--identify-strict*) |
| 11613 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 11614 | ;; |
| 11615 | *) |
| 11616 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 11617 | ;; |
| 11618 | esac |
| 11619 | ;; |
| 11620 | *) |
| 11621 | # fallback: assume linklib IS sharedlib |
| 11622 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 11623 | ;; |
| 11624 | esac |
| 11625 | |
| 11626 | fi |
| 11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 11628 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 11629 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 11630 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 11631 | |
| 11632 | |
| 11633 | |
| 11634 | |
| 11635 | |
| 11636 | |
| 11637 | |
| 11638 | if test -n "$ac_tool_prefix"; then |
| 11639 | for ac_prog in ar |
| 11640 | do |
| 11641 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 11642 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11644 | $as_echo_n "checking for $ac_word... " >&6; } |
| 11645 | if ${ac_cv_prog_AR+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11646 | $as_echo_n "(cached) " >&6 |
| 11647 | else |
| 11648 | if test -n "$AR"; then |
| 11649 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11650 | else |
| 11651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11652 | for as_dir in $PATH |
| 11653 | do |
| 11654 | IFS=$as_save_IFS |
| 11655 | test -z "$as_dir" && as_dir=. |
| 11656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11658 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11660 | break 2 |
| 11661 | fi |
| 11662 | done |
| 11663 | done |
| 11664 | IFS=$as_save_IFS |
| 11665 | |
| 11666 | fi |
| 11667 | fi |
| 11668 | AR=$ac_cv_prog_AR |
| 11669 | if test -n "$AR"; then |
| 11670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 11671 | $as_echo "$AR" >&6; } |
| 11672 | else |
| 11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11674 | $as_echo "no" >&6; } |
| 11675 | fi |
| 11676 | |
| 11677 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11678 | test -n "$AR" && break |
| 11679 | done |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11680 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11681 | if test -z "$AR"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11682 | ac_ct_AR=$AR |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11683 | for ac_prog in ar |
| 11684 | do |
| 11685 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11686 | set dummy $ac_prog; ac_word=$2 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11688 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11689 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11690 | $as_echo_n "(cached) " >&6 |
| 11691 | else |
| 11692 | if test -n "$ac_ct_AR"; then |
| 11693 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 11694 | else |
| 11695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11696 | for as_dir in $PATH |
| 11697 | do |
| 11698 | IFS=$as_save_IFS |
| 11699 | test -z "$as_dir" && as_dir=. |
| 11700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11702 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11704 | break 2 |
| 11705 | fi |
| 11706 | done |
| 11707 | done |
| 11708 | IFS=$as_save_IFS |
| 11709 | |
| 11710 | fi |
| 11711 | fi |
| 11712 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11713 | if test -n "$ac_ct_AR"; then |
| 11714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 11715 | $as_echo "$ac_ct_AR" >&6; } |
| 11716 | else |
| 11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11718 | $as_echo "no" >&6; } |
| 11719 | fi |
| 11720 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11721 | |
| 11722 | test -n "$ac_ct_AR" && break |
| 11723 | done |
| 11724 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11725 | if test "x$ac_ct_AR" = x; then |
| 11726 | AR="false" |
| 11727 | else |
| 11728 | case $cross_compiling:$ac_tool_warned in |
| 11729 | yes:) |
| 11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11731 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11732 | ac_tool_warned=yes ;; |
| 11733 | esac |
| 11734 | AR=$ac_ct_AR |
| 11735 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11736 | fi |
| 11737 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11738 | : ${AR=ar} |
| 11739 | : ${AR_FLAGS=cru} |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
| 11746 | |
| 11747 | |
| 11748 | |
| 11749 | |
| 11750 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 11752 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 11753 | if ${lt_cv_ar_at_file+:} false; then : |
| 11754 | $as_echo_n "(cached) " >&6 |
| 11755 | else |
| 11756 | lt_cv_ar_at_file=no |
| 11757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11758 | /* end confdefs.h. */ |
| 11759 | |
| 11760 | int |
| 11761 | main () |
| 11762 | { |
| 11763 | |
| 11764 | ; |
| 11765 | return 0; |
| 11766 | } |
| 11767 | _ACEOF |
| 11768 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11769 | echo conftest.$ac_objext > conftest.lst |
| 11770 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 11771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 11772 | (eval $lt_ar_try) 2>&5 |
| 11773 | ac_status=$? |
| 11774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11775 | test $ac_status = 0; } |
| 11776 | if test "$ac_status" -eq 0; then |
| 11777 | # Ensure the archiver fails upon bogus file names. |
| 11778 | rm -f conftest.$ac_objext libconftest.a |
| 11779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 11780 | (eval $lt_ar_try) 2>&5 |
| 11781 | ac_status=$? |
| 11782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11783 | test $ac_status = 0; } |
| 11784 | if test "$ac_status" -ne 0; then |
| 11785 | lt_cv_ar_at_file=@ |
| 11786 | fi |
| 11787 | fi |
| 11788 | rm -f conftest.* libconftest.a |
| 11789 | |
| 11790 | fi |
| 11791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11792 | |
| 11793 | fi |
| 11794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 11795 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 11796 | |
| 11797 | if test "x$lt_cv_ar_at_file" = xno; then |
| 11798 | archiver_list_spec= |
| 11799 | else |
| 11800 | archiver_list_spec=$lt_cv_ar_at_file |
| 11801 | fi |
| 11802 | |
| 11803 | |
| 11804 | |
| 11805 | |
| 11806 | |
| 11807 | |
| 11808 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11809 | if test -n "$ac_tool_prefix"; then |
| 11810 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 11811 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11813 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11814 | if ${ac_cv_prog_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11815 | $as_echo_n "(cached) " >&6 |
| 11816 | else |
| 11817 | if test -n "$STRIP"; then |
| 11818 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11819 | else |
| 11820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11821 | for as_dir in $PATH |
| 11822 | do |
| 11823 | IFS=$as_save_IFS |
| 11824 | test -z "$as_dir" && as_dir=. |
| 11825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11827 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11829 | break 2 |
| 11830 | fi |
| 11831 | done |
| 11832 | done |
| 11833 | IFS=$as_save_IFS |
| 11834 | |
| 11835 | fi |
| 11836 | fi |
| 11837 | STRIP=$ac_cv_prog_STRIP |
| 11838 | if test -n "$STRIP"; then |
| 11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 11840 | $as_echo "$STRIP" >&6; } |
| 11841 | else |
| 11842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11843 | $as_echo "no" >&6; } |
| 11844 | fi |
| 11845 | |
| 11846 | |
| 11847 | fi |
| 11848 | if test -z "$ac_cv_prog_STRIP"; then |
| 11849 | ac_ct_STRIP=$STRIP |
| 11850 | # Extract the first word of "strip", so it can be a program name with args. |
| 11851 | set dummy strip; ac_word=$2 |
| 11852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11853 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11854 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11855 | $as_echo_n "(cached) " >&6 |
| 11856 | else |
| 11857 | if test -n "$ac_ct_STRIP"; then |
| 11858 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11859 | else |
| 11860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11861 | for as_dir in $PATH |
| 11862 | do |
| 11863 | IFS=$as_save_IFS |
| 11864 | test -z "$as_dir" && as_dir=. |
| 11865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11867 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11869 | break 2 |
| 11870 | fi |
| 11871 | done |
| 11872 | done |
| 11873 | IFS=$as_save_IFS |
| 11874 | |
| 11875 | fi |
| 11876 | fi |
| 11877 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11878 | if test -n "$ac_ct_STRIP"; then |
| 11879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 11880 | $as_echo "$ac_ct_STRIP" >&6; } |
| 11881 | else |
| 11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11883 | $as_echo "no" >&6; } |
| 11884 | fi |
| 11885 | |
| 11886 | if test "x$ac_ct_STRIP" = x; then |
| 11887 | STRIP=":" |
| 11888 | else |
| 11889 | case $cross_compiling:$ac_tool_warned in |
| 11890 | yes:) |
| 11891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11892 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11893 | ac_tool_warned=yes ;; |
| 11894 | esac |
| 11895 | STRIP=$ac_ct_STRIP |
| 11896 | fi |
| 11897 | else |
| 11898 | STRIP="$ac_cv_prog_STRIP" |
| 11899 | fi |
| 11900 | |
| 11901 | test -z "$STRIP" && STRIP=: |
| 11902 | |
| 11903 | |
| 11904 | |
| 11905 | |
| 11906 | |
| 11907 | |
| 11908 | if test -n "$ac_tool_prefix"; then |
| 11909 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11910 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11912 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11913 | if ${ac_cv_prog_RANLIB+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11914 | $as_echo_n "(cached) " >&6 |
| 11915 | else |
| 11916 | if test -n "$RANLIB"; then |
| 11917 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11918 | else |
| 11919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11920 | for as_dir in $PATH |
| 11921 | do |
| 11922 | IFS=$as_save_IFS |
| 11923 | test -z "$as_dir" && as_dir=. |
| 11924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11926 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11928 | break 2 |
| 11929 | fi |
| 11930 | done |
| 11931 | done |
| 11932 | IFS=$as_save_IFS |
| 11933 | |
| 11934 | fi |
| 11935 | fi |
| 11936 | RANLIB=$ac_cv_prog_RANLIB |
| 11937 | if test -n "$RANLIB"; then |
| 11938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 11939 | $as_echo "$RANLIB" >&6; } |
| 11940 | else |
| 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11942 | $as_echo "no" >&6; } |
| 11943 | fi |
| 11944 | |
| 11945 | |
| 11946 | fi |
| 11947 | if test -z "$ac_cv_prog_RANLIB"; then |
| 11948 | ac_ct_RANLIB=$RANLIB |
| 11949 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11950 | set dummy ranlib; ac_word=$2 |
| 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11952 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 11953 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11954 | $as_echo_n "(cached) " >&6 |
| 11955 | else |
| 11956 | if test -n "$ac_ct_RANLIB"; then |
| 11957 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11958 | else |
| 11959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11960 | for as_dir in $PATH |
| 11961 | do |
| 11962 | IFS=$as_save_IFS |
| 11963 | test -z "$as_dir" && as_dir=. |
| 11964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 11965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 11966 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11968 | break 2 |
| 11969 | fi |
| 11970 | done |
| 11971 | done |
| 11972 | IFS=$as_save_IFS |
| 11973 | |
| 11974 | fi |
| 11975 | fi |
| 11976 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11977 | if test -n "$ac_ct_RANLIB"; then |
| 11978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 11979 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 11980 | else |
| 11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11982 | $as_echo "no" >&6; } |
| 11983 | fi |
| 11984 | |
| 11985 | if test "x$ac_ct_RANLIB" = x; then |
| 11986 | RANLIB=":" |
| 11987 | else |
| 11988 | case $cross_compiling:$ac_tool_warned in |
| 11989 | yes:) |
| 11990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11992 | ac_tool_warned=yes ;; |
| 11993 | esac |
| 11994 | RANLIB=$ac_ct_RANLIB |
| 11995 | fi |
| 11996 | else |
| 11997 | RANLIB="$ac_cv_prog_RANLIB" |
| 11998 | fi |
| 11999 | |
| 12000 | test -z "$RANLIB" && RANLIB=: |
| 12001 | |
| 12002 | |
| 12003 | |
| 12004 | |
| 12005 | |
| 12006 | |
| 12007 | # Determine commands to create old-style static archives. |
| 12008 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 12009 | old_postinstall_cmds='chmod 644 $oldlib' |
| 12010 | old_postuninstall_cmds= |
| 12011 | |
| 12012 | if test -n "$RANLIB"; then |
| 12013 | case $host_os in |
| 12014 | openbsd*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12015 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12016 | ;; |
| 12017 | *) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12018 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12019 | ;; |
| 12020 | esac |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12021 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12022 | fi |
| 12023 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12024 | case $host_os in |
| 12025 | darwin*) |
| 12026 | lock_old_archive_extraction=yes ;; |
| 12027 | *) |
| 12028 | lock_old_archive_extraction=no ;; |
| 12029 | esac |
| 12030 | |
| 12031 | |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12036 | |
| 12037 | |
| 12038 | |
| 12039 | |
| 12040 | |
| 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 | |
| 12069 | # If no C compiler was specified, use CC. |
| 12070 | LTCC=${LTCC-"$CC"} |
| 12071 | |
| 12072 | # If no C compiler flags were specified, use CFLAGS. |
| 12073 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12074 | |
| 12075 | # Allow CC to be a program name with arguments. |
| 12076 | compiler=$CC |
| 12077 | |
| 12078 | |
| 12079 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 12080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 12081 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12082 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12083 | $as_echo_n "(cached) " >&6 |
| 12084 | else |
| 12085 | |
| 12086 | # These are sane defaults that work on at least a few old systems. |
| 12087 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 12088 | |
| 12089 | # Character class describing NM global symbol codes. |
| 12090 | symcode='[BCDEGRST]' |
| 12091 | |
| 12092 | # Regexp to match symbols that can be accessed directly from C. |
| 12093 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 12094 | |
| 12095 | # Define system-specific variables. |
| 12096 | case $host_os in |
| 12097 | aix*) |
| 12098 | symcode='[BCDT]' |
| 12099 | ;; |
| 12100 | cygwin* | mingw* | pw32* | cegcc*) |
| 12101 | symcode='[ABCDGISTW]' |
| 12102 | ;; |
| 12103 | hpux*) |
| 12104 | if test "$host_cpu" = ia64; then |
| 12105 | symcode='[ABCDEGRST]' |
| 12106 | fi |
| 12107 | ;; |
| 12108 | irix* | nonstopux*) |
| 12109 | symcode='[BCDEGRST]' |
| 12110 | ;; |
| 12111 | osf*) |
| 12112 | symcode='[BCDEGQRST]' |
| 12113 | ;; |
| 12114 | solaris*) |
| 12115 | symcode='[BDRT]' |
| 12116 | ;; |
| 12117 | sco3.2v5*) |
| 12118 | symcode='[DT]' |
| 12119 | ;; |
| 12120 | sysv4.2uw2*) |
| 12121 | symcode='[DT]' |
| 12122 | ;; |
| 12123 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 12124 | symcode='[ABDT]' |
| 12125 | ;; |
| 12126 | sysv4) |
| 12127 | symcode='[DFNSTU]' |
| 12128 | ;; |
| 12129 | esac |
| 12130 | |
| 12131 | # If we're using GNU nm, then use its standard symbol codes. |
| 12132 | case `$NM -V 2>&1` in |
| 12133 | *GNU* | *'with BFD'*) |
| 12134 | symcode='[ABCDGIRSTW]' ;; |
| 12135 | esac |
| 12136 | |
| 12137 | # Transform an extracted symbol line into a proper C declaration. |
| 12138 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 12139 | # so use this general approach. |
| 12140 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 12141 | |
| 12142 | # Transform an extracted symbol line into symbol name and symbol address |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12143 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 12144 | 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] | 12145 | |
| 12146 | # Handle CRLF in mingw tool chain |
| 12147 | opt_cr= |
| 12148 | case $build_os in |
| 12149 | mingw*) |
| 12150 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 12151 | ;; |
| 12152 | esac |
| 12153 | |
| 12154 | # Try without a prefix underscore, then with it. |
| 12155 | for ac_symprfx in "" "_"; do |
| 12156 | |
| 12157 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 12158 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 12159 | |
| 12160 | # Write the raw and C identifiers. |
| 12161 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 12162 | # Fake it for dumpbin and say T for any non-static function |
| 12163 | # and D for any global variable. |
| 12164 | # Also find C++ and __fastcall symbols from MSVC++, |
| 12165 | # which start with @ or ?. |
| 12166 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 12167 | " {last_section=section; section=\$ 3};"\ |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12168 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12169 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 12170 | " \$ 0!~/External *\|/{next};"\ |
| 12171 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 12172 | " {if(hide[section]) next};"\ |
| 12173 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 12174 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 12175 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 12176 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 12177 | " ' prfx=^$ac_symprfx" |
| 12178 | else |
| 12179 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 12180 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12181 | 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] | 12182 | |
| 12183 | # Check to see that the pipe works correctly. |
| 12184 | pipe_works=no |
| 12185 | |
| 12186 | rm -f conftest* |
| 12187 | cat > conftest.$ac_ext <<_LT_EOF |
| 12188 | #ifdef __cplusplus |
| 12189 | extern "C" { |
| 12190 | #endif |
| 12191 | char nm_test_var; |
| 12192 | void nm_test_func(void); |
| 12193 | void nm_test_func(void){} |
| 12194 | #ifdef __cplusplus |
| 12195 | } |
| 12196 | #endif |
| 12197 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 12198 | _LT_EOF |
| 12199 | |
| 12200 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12201 | (eval $ac_compile) 2>&5 |
| 12202 | ac_status=$? |
| 12203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12204 | test $ac_status = 0; }; then |
| 12205 | # Now try to grab the symbols. |
| 12206 | nlist=conftest.nm |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12207 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 12208 | (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] | 12209 | ac_status=$? |
| 12210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12211 | test $ac_status = 0; } && test -s "$nlist"; then |
| 12212 | # Try sorting and uniquifying the output. |
| 12213 | if sort "$nlist" | uniq > "$nlist"T; then |
| 12214 | mv -f "$nlist"T "$nlist" |
| 12215 | else |
| 12216 | rm -f "$nlist"T |
| 12217 | fi |
| 12218 | |
| 12219 | # Make sure that we snagged all the symbols we need. |
| 12220 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 12221 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 12222 | cat <<_LT_EOF > conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12223 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 12224 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 12225 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 12226 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 12227 | # define LT_DLSYM_CONST |
| 12228 | #elif defined(__osf__) |
| 12229 | /* This system does not cope well with relocations in const data. */ |
| 12230 | # define LT_DLSYM_CONST |
| 12231 | #else |
| 12232 | # define LT_DLSYM_CONST const |
| 12233 | #endif |
| 12234 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12235 | #ifdef __cplusplus |
| 12236 | extern "C" { |
| 12237 | #endif |
| 12238 | |
| 12239 | _LT_EOF |
| 12240 | # Now generate the symbol file. |
| 12241 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 12242 | |
| 12243 | cat <<_LT_EOF >> conftest.$ac_ext |
| 12244 | |
| 12245 | /* The mapping between symbol names and symbols. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12246 | LT_DLSYM_CONST struct { |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12247 | const char *name; |
| 12248 | void *address; |
| 12249 | } |
| 12250 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 12251 | { |
| 12252 | { "@PROGRAM@", (void *) 0 }, |
| 12253 | _LT_EOF |
| 12254 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 12255 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 12256 | {0, (void *) 0} |
| 12257 | }; |
| 12258 | |
| 12259 | /* This works around a problem in FreeBSD linker */ |
| 12260 | #ifdef FREEBSD_WORKAROUND |
| 12261 | static const void *lt_preloaded_setup() { |
| 12262 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 12263 | } |
| 12264 | #endif |
| 12265 | |
| 12266 | #ifdef __cplusplus |
| 12267 | } |
| 12268 | #endif |
| 12269 | _LT_EOF |
| 12270 | # Now try linking the two files. |
| 12271 | mv conftest.$ac_objext conftstm.$ac_objext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12272 | lt_globsym_save_LIBS=$LIBS |
| 12273 | lt_globsym_save_CFLAGS=$CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12274 | LIBS="conftstm.$ac_objext" |
| 12275 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 12276 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 12277 | (eval $ac_link) 2>&5 |
| 12278 | ac_status=$? |
| 12279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12280 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 12281 | pipe_works=yes |
| 12282 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12283 | LIBS=$lt_globsym_save_LIBS |
| 12284 | CFLAGS=$lt_globsym_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12285 | else |
| 12286 | echo "cannot find nm_test_func in $nlist" >&5 |
| 12287 | fi |
| 12288 | else |
| 12289 | echo "cannot find nm_test_var in $nlist" >&5 |
| 12290 | fi |
| 12291 | else |
| 12292 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 12293 | fi |
| 12294 | else |
| 12295 | echo "$progname: failed program was:" >&5 |
| 12296 | cat conftest.$ac_ext >&5 |
| 12297 | fi |
| 12298 | rm -rf conftest* conftst* |
| 12299 | |
| 12300 | # Do not use the global_symbol_pipe unless it works. |
| 12301 | if test "$pipe_works" = yes; then |
| 12302 | break |
| 12303 | else |
| 12304 | lt_cv_sys_global_symbol_pipe= |
| 12305 | fi |
| 12306 | done |
| 12307 | |
| 12308 | fi |
| 12309 | |
| 12310 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 12311 | lt_cv_sys_global_symbol_to_cdecl= |
| 12312 | fi |
| 12313 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 12314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 12315 | $as_echo "failed" >&6; } |
| 12316 | else |
| 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 12318 | $as_echo "ok" >&6; } |
| 12319 | fi |
| 12320 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12321 | # Response file support. |
| 12322 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 12323 | nm_file_list_spec='@' |
| 12324 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 12325 | nm_file_list_spec='@' |
| 12326 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12327 | |
| 12328 | |
| 12329 | |
| 12330 | |
| 12331 | |
| 12332 | |
| 12333 | |
| 12334 | |
| 12335 | |
| 12336 | |
| 12337 | |
| 12338 | |
| 12339 | |
| 12340 | |
| 12341 | |
| 12342 | |
| 12343 | |
| 12344 | |
| 12345 | |
| 12346 | |
| 12347 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12348 | |
| 12349 | |
| 12350 | |
| 12351 | |
| 12352 | |
| 12353 | |
| 12354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 12355 | $as_echo_n "checking for sysroot... " >&6; } |
| 12356 | |
| 12357 | # Check whether --with-sysroot was given. |
| 12358 | if test "${with_sysroot+set}" = set; then : |
| 12359 | withval=$with_sysroot; |
| 12360 | else |
| 12361 | with_sysroot=no |
| 12362 | fi |
| 12363 | |
| 12364 | |
| 12365 | lt_sysroot= |
| 12366 | case ${with_sysroot} in #( |
| 12367 | yes) |
| 12368 | if test "$GCC" = yes; then |
| 12369 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 12370 | fi |
| 12371 | ;; #( |
| 12372 | /*) |
| 12373 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 12374 | ;; #( |
| 12375 | no|'') |
| 12376 | ;; #( |
| 12377 | *) |
| 12378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 12379 | $as_echo "${with_sysroot}" >&6; } |
| 12380 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 12381 | ;; |
| 12382 | esac |
| 12383 | |
| 12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 12385 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 12386 | |
| 12387 | |
| 12388 | |
| 12389 | |
| 12390 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12391 | # Check whether --enable-libtool-lock was given. |
| 12392 | if test "${enable_libtool_lock+set}" = set; then : |
| 12393 | enableval=$enable_libtool_lock; |
| 12394 | fi |
| 12395 | |
| 12396 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 12397 | |
| 12398 | # Some flags need to be propagated to the compiler or linker for good |
| 12399 | # libtool support. |
| 12400 | case $host in |
| 12401 | ia64-*-hpux*) |
| 12402 | # Find out which ABI we are using. |
| 12403 | echo 'int i;' > conftest.$ac_ext |
| 12404 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12405 | (eval $ac_compile) 2>&5 |
| 12406 | ac_status=$? |
| 12407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12408 | test $ac_status = 0; }; then |
| 12409 | case `/usr/bin/file conftest.$ac_objext` in |
| 12410 | *ELF-32*) |
| 12411 | HPUX_IA64_MODE="32" |
| 12412 | ;; |
| 12413 | *ELF-64*) |
| 12414 | HPUX_IA64_MODE="64" |
| 12415 | ;; |
| 12416 | esac |
| 12417 | fi |
| 12418 | rm -rf conftest* |
| 12419 | ;; |
| 12420 | *-*-irix6*) |
| 12421 | # Find out which ABI we are using. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 12422 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12423 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12424 | (eval $ac_compile) 2>&5 |
| 12425 | ac_status=$? |
| 12426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12427 | test $ac_status = 0; }; then |
| 12428 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 12429 | case `/usr/bin/file conftest.$ac_objext` in |
| 12430 | *32-bit*) |
| 12431 | LD="${LD-ld} -melf32bsmip" |
| 12432 | ;; |
| 12433 | *N32*) |
| 12434 | LD="${LD-ld} -melf32bmipn32" |
| 12435 | ;; |
| 12436 | *64-bit*) |
| 12437 | LD="${LD-ld} -melf64bmip" |
| 12438 | ;; |
| 12439 | esac |
| 12440 | else |
| 12441 | case `/usr/bin/file conftest.$ac_objext` in |
| 12442 | *32-bit*) |
| 12443 | LD="${LD-ld} -32" |
| 12444 | ;; |
| 12445 | *N32*) |
| 12446 | LD="${LD-ld} -n32" |
| 12447 | ;; |
| 12448 | *64-bit*) |
| 12449 | LD="${LD-ld} -64" |
| 12450 | ;; |
| 12451 | esac |
| 12452 | fi |
| 12453 | fi |
| 12454 | rm -rf conftest* |
| 12455 | ;; |
| 12456 | |
| 12457 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 12458 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 12459 | # Find out which ABI we are using. |
| 12460 | echo 'int i;' > conftest.$ac_ext |
| 12461 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12462 | (eval $ac_compile) 2>&5 |
| 12463 | ac_status=$? |
| 12464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12465 | test $ac_status = 0; }; then |
| 12466 | case `/usr/bin/file conftest.o` in |
| 12467 | *32-bit*) |
| 12468 | case $host in |
| 12469 | x86_64-*kfreebsd*-gnu) |
| 12470 | LD="${LD-ld} -m elf_i386_fbsd" |
| 12471 | ;; |
| 12472 | x86_64-*linux*) |
| 12473 | LD="${LD-ld} -m elf_i386" |
| 12474 | ;; |
| 12475 | ppc64-*linux*|powerpc64-*linux*) |
| 12476 | LD="${LD-ld} -m elf32ppclinux" |
| 12477 | ;; |
| 12478 | s390x-*linux*) |
| 12479 | LD="${LD-ld} -m elf_s390" |
| 12480 | ;; |
| 12481 | sparc64-*linux*) |
| 12482 | LD="${LD-ld} -m elf32_sparc" |
| 12483 | ;; |
| 12484 | esac |
| 12485 | ;; |
| 12486 | *64-bit*) |
| 12487 | case $host in |
| 12488 | x86_64-*kfreebsd*-gnu) |
| 12489 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 12490 | ;; |
| 12491 | x86_64-*linux*) |
| 12492 | LD="${LD-ld} -m elf_x86_64" |
| 12493 | ;; |
| 12494 | ppc*-*linux*|powerpc*-*linux*) |
| 12495 | LD="${LD-ld} -m elf64ppc" |
| 12496 | ;; |
| 12497 | s390*-*linux*|s390*-*tpf*) |
| 12498 | LD="${LD-ld} -m elf64_s390" |
| 12499 | ;; |
| 12500 | sparc*-*linux*) |
| 12501 | LD="${LD-ld} -m elf64_sparc" |
| 12502 | ;; |
| 12503 | esac |
| 12504 | ;; |
| 12505 | esac |
| 12506 | fi |
| 12507 | rm -rf conftest* |
| 12508 | ;; |
| 12509 | |
| 12510 | *-*-sco3.2v5*) |
| 12511 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12512 | SAVE_CFLAGS="$CFLAGS" |
| 12513 | CFLAGS="$CFLAGS -belf" |
| 12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 12515 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12516 | if ${lt_cv_cc_needs_belf+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12517 | $as_echo_n "(cached) " >&6 |
| 12518 | else |
| 12519 | ac_ext=c |
| 12520 | ac_cpp='$CPP $CPPFLAGS' |
| 12521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12524 | |
| 12525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12526 | /* end confdefs.h. */ |
| 12527 | |
| 12528 | int |
| 12529 | main () |
| 12530 | { |
| 12531 | |
| 12532 | ; |
| 12533 | return 0; |
| 12534 | } |
| 12535 | _ACEOF |
| 12536 | if ac_fn_c_try_link "$LINENO"; then : |
| 12537 | lt_cv_cc_needs_belf=yes |
| 12538 | else |
| 12539 | lt_cv_cc_needs_belf=no |
| 12540 | fi |
| 12541 | rm -f core conftest.err conftest.$ac_objext \ |
| 12542 | conftest$ac_exeext conftest.$ac_ext |
| 12543 | ac_ext=c |
| 12544 | ac_cpp='$CPP $CPPFLAGS' |
| 12545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12548 | |
| 12549 | fi |
| 12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 12551 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 12552 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 12553 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12554 | CFLAGS="$SAVE_CFLAGS" |
| 12555 | fi |
| 12556 | ;; |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12557 | *-*solaris*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12558 | # Find out which ABI we are using. |
| 12559 | echo 'int i;' > conftest.$ac_ext |
| 12560 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12561 | (eval $ac_compile) 2>&5 |
| 12562 | ac_status=$? |
| 12563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12564 | test $ac_status = 0; }; then |
| 12565 | case `/usr/bin/file conftest.o` in |
| 12566 | *64-bit*) |
| 12567 | case $lt_cv_prog_gnu_ld in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 12568 | yes*) |
| 12569 | case $host in |
| 12570 | i?86-*-solaris*) |
| 12571 | LD="${LD-ld} -m elf_x86_64" |
| 12572 | ;; |
| 12573 | sparc*-*-solaris*) |
| 12574 | LD="${LD-ld} -m elf64_sparc" |
| 12575 | ;; |
| 12576 | esac |
| 12577 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 12578 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 12579 | LD="${LD-ld}_sol2" |
| 12580 | fi |
| 12581 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12582 | *) |
| 12583 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 12584 | LD="${LD-ld} -64" |
| 12585 | fi |
| 12586 | ;; |
| 12587 | esac |
| 12588 | ;; |
| 12589 | esac |
| 12590 | fi |
| 12591 | rm -rf conftest* |
| 12592 | ;; |
| 12593 | esac |
| 12594 | |
| 12595 | need_locks="$enable_libtool_lock" |
| 12596 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12597 | if test -n "$ac_tool_prefix"; then |
| 12598 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 12599 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12601 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12602 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 12603 | $as_echo_n "(cached) " >&6 |
| 12604 | else |
| 12605 | if test -n "$MANIFEST_TOOL"; then |
| 12606 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 12607 | else |
| 12608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12609 | for as_dir in $PATH |
| 12610 | do |
| 12611 | IFS=$as_save_IFS |
| 12612 | test -z "$as_dir" && as_dir=. |
| 12613 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12614 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12615 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 12616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12617 | break 2 |
| 12618 | fi |
| 12619 | done |
| 12620 | done |
| 12621 | IFS=$as_save_IFS |
| 12622 | |
| 12623 | fi |
| 12624 | fi |
| 12625 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 12626 | if test -n "$MANIFEST_TOOL"; then |
| 12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 12628 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 12629 | else |
| 12630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12631 | $as_echo "no" >&6; } |
| 12632 | fi |
| 12633 | |
| 12634 | |
| 12635 | fi |
| 12636 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 12637 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 12638 | # Extract the first word of "mt", so it can be a program name with args. |
| 12639 | set dummy mt; ac_word=$2 |
| 12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12641 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12642 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 12643 | $as_echo_n "(cached) " >&6 |
| 12644 | else |
| 12645 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 12646 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 12647 | else |
| 12648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12649 | for as_dir in $PATH |
| 12650 | do |
| 12651 | IFS=$as_save_IFS |
| 12652 | test -z "$as_dir" && as_dir=. |
| 12653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12655 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 12656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12657 | break 2 |
| 12658 | fi |
| 12659 | done |
| 12660 | done |
| 12661 | IFS=$as_save_IFS |
| 12662 | |
| 12663 | fi |
| 12664 | fi |
| 12665 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 12666 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 12668 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 12669 | else |
| 12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12671 | $as_echo "no" >&6; } |
| 12672 | fi |
| 12673 | |
| 12674 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 12675 | MANIFEST_TOOL=":" |
| 12676 | else |
| 12677 | case $cross_compiling:$ac_tool_warned in |
| 12678 | yes:) |
| 12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12680 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12681 | ac_tool_warned=yes ;; |
| 12682 | esac |
| 12683 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 12684 | fi |
| 12685 | else |
| 12686 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 12687 | fi |
| 12688 | |
| 12689 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 12691 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 12692 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 12693 | $as_echo_n "(cached) " >&6 |
| 12694 | else |
| 12695 | lt_cv_path_mainfest_tool=no |
| 12696 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 12697 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 12698 | cat conftest.err >&5 |
| 12699 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 12700 | lt_cv_path_mainfest_tool=yes |
| 12701 | fi |
| 12702 | rm -f conftest* |
| 12703 | fi |
| 12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 12705 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 12706 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 12707 | MANIFEST_TOOL=: |
| 12708 | fi |
| 12709 | |
| 12710 | |
| 12711 | |
| 12712 | |
| 12713 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12714 | |
| 12715 | case $host_os in |
| 12716 | rhapsody* | darwin*) |
| 12717 | if test -n "$ac_tool_prefix"; then |
| 12718 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 12719 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12721 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12722 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12723 | $as_echo_n "(cached) " >&6 |
| 12724 | else |
| 12725 | if test -n "$DSYMUTIL"; then |
| 12726 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 12727 | else |
| 12728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12729 | for as_dir in $PATH |
| 12730 | do |
| 12731 | IFS=$as_save_IFS |
| 12732 | test -z "$as_dir" && as_dir=. |
| 12733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12735 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 12736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12737 | break 2 |
| 12738 | fi |
| 12739 | done |
| 12740 | done |
| 12741 | IFS=$as_save_IFS |
| 12742 | |
| 12743 | fi |
| 12744 | fi |
| 12745 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 12746 | if test -n "$DSYMUTIL"; then |
| 12747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 12748 | $as_echo "$DSYMUTIL" >&6; } |
| 12749 | else |
| 12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12751 | $as_echo "no" >&6; } |
| 12752 | fi |
| 12753 | |
| 12754 | |
| 12755 | fi |
| 12756 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 12757 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 12758 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 12759 | set dummy dsymutil; ac_word=$2 |
| 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12761 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12762 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12763 | $as_echo_n "(cached) " >&6 |
| 12764 | else |
| 12765 | if test -n "$ac_ct_DSYMUTIL"; then |
| 12766 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 12767 | else |
| 12768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12769 | for as_dir in $PATH |
| 12770 | do |
| 12771 | IFS=$as_save_IFS |
| 12772 | test -z "$as_dir" && as_dir=. |
| 12773 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12774 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12775 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 12776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12777 | break 2 |
| 12778 | fi |
| 12779 | done |
| 12780 | done |
| 12781 | IFS=$as_save_IFS |
| 12782 | |
| 12783 | fi |
| 12784 | fi |
| 12785 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 12786 | if test -n "$ac_ct_DSYMUTIL"; then |
| 12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 12788 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 12789 | else |
| 12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12791 | $as_echo "no" >&6; } |
| 12792 | fi |
| 12793 | |
| 12794 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 12795 | DSYMUTIL=":" |
| 12796 | else |
| 12797 | case $cross_compiling:$ac_tool_warned in |
| 12798 | yes:) |
| 12799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12801 | ac_tool_warned=yes ;; |
| 12802 | esac |
| 12803 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 12804 | fi |
| 12805 | else |
| 12806 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 12807 | fi |
| 12808 | |
| 12809 | if test -n "$ac_tool_prefix"; then |
| 12810 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 12811 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12813 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12814 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12815 | $as_echo_n "(cached) " >&6 |
| 12816 | else |
| 12817 | if test -n "$NMEDIT"; then |
| 12818 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 12819 | else |
| 12820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12821 | for as_dir in $PATH |
| 12822 | do |
| 12823 | IFS=$as_save_IFS |
| 12824 | test -z "$as_dir" && as_dir=. |
| 12825 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12827 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 12828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12829 | break 2 |
| 12830 | fi |
| 12831 | done |
| 12832 | done |
| 12833 | IFS=$as_save_IFS |
| 12834 | |
| 12835 | fi |
| 12836 | fi |
| 12837 | NMEDIT=$ac_cv_prog_NMEDIT |
| 12838 | if test -n "$NMEDIT"; then |
| 12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 12840 | $as_echo "$NMEDIT" >&6; } |
| 12841 | else |
| 12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12843 | $as_echo "no" >&6; } |
| 12844 | fi |
| 12845 | |
| 12846 | |
| 12847 | fi |
| 12848 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 12849 | ac_ct_NMEDIT=$NMEDIT |
| 12850 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 12851 | set dummy nmedit; ac_word=$2 |
| 12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12853 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12854 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12855 | $as_echo_n "(cached) " >&6 |
| 12856 | else |
| 12857 | if test -n "$ac_ct_NMEDIT"; then |
| 12858 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 12859 | else |
| 12860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12861 | for as_dir in $PATH |
| 12862 | do |
| 12863 | IFS=$as_save_IFS |
| 12864 | test -z "$as_dir" && as_dir=. |
| 12865 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12867 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 12868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12869 | break 2 |
| 12870 | fi |
| 12871 | done |
| 12872 | done |
| 12873 | IFS=$as_save_IFS |
| 12874 | |
| 12875 | fi |
| 12876 | fi |
| 12877 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 12878 | if test -n "$ac_ct_NMEDIT"; then |
| 12879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 12880 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 12881 | else |
| 12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12883 | $as_echo "no" >&6; } |
| 12884 | fi |
| 12885 | |
| 12886 | if test "x$ac_ct_NMEDIT" = x; then |
| 12887 | NMEDIT=":" |
| 12888 | else |
| 12889 | case $cross_compiling:$ac_tool_warned in |
| 12890 | yes:) |
| 12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12892 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12893 | ac_tool_warned=yes ;; |
| 12894 | esac |
| 12895 | NMEDIT=$ac_ct_NMEDIT |
| 12896 | fi |
| 12897 | else |
| 12898 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 12899 | fi |
| 12900 | |
| 12901 | if test -n "$ac_tool_prefix"; then |
| 12902 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 12903 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12905 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12906 | if ${ac_cv_prog_LIPO+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12907 | $as_echo_n "(cached) " >&6 |
| 12908 | else |
| 12909 | if test -n "$LIPO"; then |
| 12910 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 12911 | else |
| 12912 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12913 | for as_dir in $PATH |
| 12914 | do |
| 12915 | IFS=$as_save_IFS |
| 12916 | test -z "$as_dir" && as_dir=. |
| 12917 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12918 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12919 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 12920 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12921 | break 2 |
| 12922 | fi |
| 12923 | done |
| 12924 | done |
| 12925 | IFS=$as_save_IFS |
| 12926 | |
| 12927 | fi |
| 12928 | fi |
| 12929 | LIPO=$ac_cv_prog_LIPO |
| 12930 | if test -n "$LIPO"; then |
| 12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 12932 | $as_echo "$LIPO" >&6; } |
| 12933 | else |
| 12934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12935 | $as_echo "no" >&6; } |
| 12936 | fi |
| 12937 | |
| 12938 | |
| 12939 | fi |
| 12940 | if test -z "$ac_cv_prog_LIPO"; then |
| 12941 | ac_ct_LIPO=$LIPO |
| 12942 | # Extract the first word of "lipo", so it can be a program name with args. |
| 12943 | set dummy lipo; ac_word=$2 |
| 12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12945 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12946 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12947 | $as_echo_n "(cached) " >&6 |
| 12948 | else |
| 12949 | if test -n "$ac_ct_LIPO"; then |
| 12950 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 12951 | else |
| 12952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12953 | for as_dir in $PATH |
| 12954 | do |
| 12955 | IFS=$as_save_IFS |
| 12956 | test -z "$as_dir" && as_dir=. |
| 12957 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 12958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12959 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 12960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12961 | break 2 |
| 12962 | fi |
| 12963 | done |
| 12964 | done |
| 12965 | IFS=$as_save_IFS |
| 12966 | |
| 12967 | fi |
| 12968 | fi |
| 12969 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 12970 | if test -n "$ac_ct_LIPO"; then |
| 12971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 12972 | $as_echo "$ac_ct_LIPO" >&6; } |
| 12973 | else |
| 12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12975 | $as_echo "no" >&6; } |
| 12976 | fi |
| 12977 | |
| 12978 | if test "x$ac_ct_LIPO" = x; then |
| 12979 | LIPO=":" |
| 12980 | else |
| 12981 | case $cross_compiling:$ac_tool_warned in |
| 12982 | yes:) |
| 12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12984 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12985 | ac_tool_warned=yes ;; |
| 12986 | esac |
| 12987 | LIPO=$ac_ct_LIPO |
| 12988 | fi |
| 12989 | else |
| 12990 | LIPO="$ac_cv_prog_LIPO" |
| 12991 | fi |
| 12992 | |
| 12993 | if test -n "$ac_tool_prefix"; then |
| 12994 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 12995 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12997 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 12998 | if ${ac_cv_prog_OTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 12999 | $as_echo_n "(cached) " >&6 |
| 13000 | else |
| 13001 | if test -n "$OTOOL"; then |
| 13002 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 13003 | else |
| 13004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13005 | for as_dir in $PATH |
| 13006 | do |
| 13007 | IFS=$as_save_IFS |
| 13008 | test -z "$as_dir" && as_dir=. |
| 13009 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13011 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 13012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13013 | break 2 |
| 13014 | fi |
| 13015 | done |
| 13016 | done |
| 13017 | IFS=$as_save_IFS |
| 13018 | |
| 13019 | fi |
| 13020 | fi |
| 13021 | OTOOL=$ac_cv_prog_OTOOL |
| 13022 | if test -n "$OTOOL"; then |
| 13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 13024 | $as_echo "$OTOOL" >&6; } |
| 13025 | else |
| 13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13027 | $as_echo "no" >&6; } |
| 13028 | fi |
| 13029 | |
| 13030 | |
| 13031 | fi |
| 13032 | if test -z "$ac_cv_prog_OTOOL"; then |
| 13033 | ac_ct_OTOOL=$OTOOL |
| 13034 | # Extract the first word of "otool", so it can be a program name with args. |
| 13035 | set dummy otool; ac_word=$2 |
| 13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13037 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13038 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13039 | $as_echo_n "(cached) " >&6 |
| 13040 | else |
| 13041 | if test -n "$ac_ct_OTOOL"; then |
| 13042 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 13043 | else |
| 13044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13045 | for as_dir in $PATH |
| 13046 | do |
| 13047 | IFS=$as_save_IFS |
| 13048 | test -z "$as_dir" && as_dir=. |
| 13049 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13051 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 13052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13053 | break 2 |
| 13054 | fi |
| 13055 | done |
| 13056 | done |
| 13057 | IFS=$as_save_IFS |
| 13058 | |
| 13059 | fi |
| 13060 | fi |
| 13061 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 13062 | if test -n "$ac_ct_OTOOL"; then |
| 13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 13064 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 13065 | else |
| 13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13067 | $as_echo "no" >&6; } |
| 13068 | fi |
| 13069 | |
| 13070 | if test "x$ac_ct_OTOOL" = x; then |
| 13071 | OTOOL=":" |
| 13072 | else |
| 13073 | case $cross_compiling:$ac_tool_warned in |
| 13074 | yes:) |
| 13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13076 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13077 | ac_tool_warned=yes ;; |
| 13078 | esac |
| 13079 | OTOOL=$ac_ct_OTOOL |
| 13080 | fi |
| 13081 | else |
| 13082 | OTOOL="$ac_cv_prog_OTOOL" |
| 13083 | fi |
| 13084 | |
| 13085 | if test -n "$ac_tool_prefix"; then |
| 13086 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 13087 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 13088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13089 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13090 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13091 | $as_echo_n "(cached) " >&6 |
| 13092 | else |
| 13093 | if test -n "$OTOOL64"; then |
| 13094 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 13095 | else |
| 13096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13097 | for as_dir in $PATH |
| 13098 | do |
| 13099 | IFS=$as_save_IFS |
| 13100 | test -z "$as_dir" && as_dir=. |
| 13101 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13102 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13103 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 13104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13105 | break 2 |
| 13106 | fi |
| 13107 | done |
| 13108 | done |
| 13109 | IFS=$as_save_IFS |
| 13110 | |
| 13111 | fi |
| 13112 | fi |
| 13113 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 13114 | if test -n "$OTOOL64"; then |
| 13115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 13116 | $as_echo "$OTOOL64" >&6; } |
| 13117 | else |
| 13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13119 | $as_echo "no" >&6; } |
| 13120 | fi |
| 13121 | |
| 13122 | |
| 13123 | fi |
| 13124 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 13125 | ac_ct_OTOOL64=$OTOOL64 |
| 13126 | # Extract the first word of "otool64", so it can be a program name with args. |
| 13127 | set dummy otool64; ac_word=$2 |
| 13128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13129 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13130 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13131 | $as_echo_n "(cached) " >&6 |
| 13132 | else |
| 13133 | if test -n "$ac_ct_OTOOL64"; then |
| 13134 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 13135 | else |
| 13136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13137 | for as_dir in $PATH |
| 13138 | do |
| 13139 | IFS=$as_save_IFS |
| 13140 | test -z "$as_dir" && as_dir=. |
| 13141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13143 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 13144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13145 | break 2 |
| 13146 | fi |
| 13147 | done |
| 13148 | done |
| 13149 | IFS=$as_save_IFS |
| 13150 | |
| 13151 | fi |
| 13152 | fi |
| 13153 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 13154 | if test -n "$ac_ct_OTOOL64"; then |
| 13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 13156 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 13157 | else |
| 13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13159 | $as_echo "no" >&6; } |
| 13160 | fi |
| 13161 | |
| 13162 | if test "x$ac_ct_OTOOL64" = x; then |
| 13163 | OTOOL64=":" |
| 13164 | else |
| 13165 | case $cross_compiling:$ac_tool_warned in |
| 13166 | yes:) |
| 13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13168 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13169 | ac_tool_warned=yes ;; |
| 13170 | esac |
| 13171 | OTOOL64=$ac_ct_OTOOL64 |
| 13172 | fi |
| 13173 | else |
| 13174 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 13175 | fi |
| 13176 | |
| 13177 | |
| 13178 | |
| 13179 | |
| 13180 | |
| 13181 | |
| 13182 | |
| 13183 | |
| 13184 | |
| 13185 | |
| 13186 | |
| 13187 | |
| 13188 | |
| 13189 | |
| 13190 | |
| 13191 | |
| 13192 | |
| 13193 | |
| 13194 | |
| 13195 | |
| 13196 | |
| 13197 | |
| 13198 | |
| 13199 | |
| 13200 | |
| 13201 | |
| 13202 | |
| 13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 13204 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13205 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13206 | $as_echo_n "(cached) " >&6 |
| 13207 | else |
| 13208 | lt_cv_apple_cc_single_mod=no |
| 13209 | if test -z "${LT_MULTI_MODULE}"; then |
| 13210 | # By default we will add the -single_module flag. You can override |
| 13211 | # by either setting the environment variable LT_MULTI_MODULE |
| 13212 | # non-empty at configure time, or by adding -multi_module to the |
| 13213 | # link flags. |
| 13214 | rm -rf libconftest.dylib* |
| 13215 | echo "int foo(void){return 1;}" > conftest.c |
| 13216 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 13217 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 13218 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 13219 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 13220 | _lt_result=$? |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13221 | # If there is a non-empty error log, and "single_module" |
| 13222 | # appears in it, assume the flag caused a linker warning |
| 13223 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 13224 | cat conftest.err >&5 |
| 13225 | # Otherwise, if the output was created with a 0 exit code from |
| 13226 | # the compiler, it worked. |
| 13227 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13228 | lt_cv_apple_cc_single_mod=yes |
| 13229 | else |
| 13230 | cat conftest.err >&5 |
| 13231 | fi |
| 13232 | rm -rf libconftest.dylib* |
| 13233 | rm -f conftest.* |
| 13234 | fi |
| 13235 | fi |
| 13236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 13237 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13238 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 13240 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13241 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13242 | $as_echo_n "(cached) " >&6 |
| 13243 | else |
| 13244 | lt_cv_ld_exported_symbols_list=no |
| 13245 | save_LDFLAGS=$LDFLAGS |
| 13246 | echo "_main" > conftest.sym |
| 13247 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 13248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13249 | /* end confdefs.h. */ |
| 13250 | |
| 13251 | int |
| 13252 | main () |
| 13253 | { |
| 13254 | |
| 13255 | ; |
| 13256 | return 0; |
| 13257 | } |
| 13258 | _ACEOF |
| 13259 | if ac_fn_c_try_link "$LINENO"; then : |
| 13260 | lt_cv_ld_exported_symbols_list=yes |
| 13261 | else |
| 13262 | lt_cv_ld_exported_symbols_list=no |
| 13263 | fi |
| 13264 | rm -f core conftest.err conftest.$ac_objext \ |
| 13265 | conftest$ac_exeext conftest.$ac_ext |
| 13266 | LDFLAGS="$save_LDFLAGS" |
| 13267 | |
| 13268 | fi |
| 13269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 13270 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13271 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 13273 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13274 | if ${lt_cv_ld_force_load+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13275 | $as_echo_n "(cached) " >&6 |
| 13276 | else |
| 13277 | lt_cv_ld_force_load=no |
| 13278 | cat > conftest.c << _LT_EOF |
| 13279 | int forced_loaded() { return 2;} |
| 13280 | _LT_EOF |
| 13281 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 13282 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 13283 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 13284 | $AR cru libconftest.a conftest.o 2>&5 |
| 13285 | echo "$RANLIB libconftest.a" >&5 |
| 13286 | $RANLIB libconftest.a 2>&5 |
| 13287 | cat > conftest.c << _LT_EOF |
| 13288 | int main() { return 0;} |
| 13289 | _LT_EOF |
| 13290 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 13291 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 13292 | _lt_result=$? |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13293 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 13294 | cat conftest.err >&5 |
| 13295 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13296 | lt_cv_ld_force_load=yes |
| 13297 | else |
| 13298 | cat conftest.err >&5 |
| 13299 | fi |
| 13300 | rm -f conftest.err libconftest.a conftest conftest.c |
| 13301 | rm -rf conftest.dSYM |
| 13302 | |
| 13303 | fi |
| 13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 13305 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13306 | case $host_os in |
| 13307 | rhapsody* | darwin1.[012]) |
| 13308 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 13309 | darwin1.*) |
| 13310 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 13311 | darwin*) # darwin 5.x on |
| 13312 | # if running on 10.5 or later, the deployment target defaults |
| 13313 | # to the OS version, if on x86, and 10.4, the deployment |
| 13314 | # target defaults to 10.4. Don't you love it? |
| 13315 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 13316 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 13317 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 13318 | 10.[012]*) |
| 13319 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 13320 | 10.*) |
| 13321 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 13322 | esac |
| 13323 | ;; |
| 13324 | esac |
| 13325 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 13326 | _lt_dar_single_mod='$single_module' |
| 13327 | fi |
| 13328 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 13329 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 13330 | else |
| 13331 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 13332 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13333 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13334 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 13335 | else |
| 13336 | _lt_dsymutil= |
| 13337 | fi |
| 13338 | ;; |
| 13339 | esac |
| 13340 | |
| 13341 | for ac_header in dlfcn.h |
| 13342 | do : |
| 13343 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 13344 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13345 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13346 | cat >>confdefs.h <<_ACEOF |
| 13347 | #define HAVE_DLFCN_H 1 |
| 13348 | _ACEOF |
| 13349 | |
| 13350 | fi |
| 13351 | |
| 13352 | done |
| 13353 | |
| 13354 | |
| 13355 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13356 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13357 | func_stripname_cnf () |
| 13358 | { |
| 13359 | case ${2} in |
| 13360 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 13361 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 13362 | esac |
| 13363 | } # func_stripname_cnf |
| 13364 | |
| 13365 | |
| 13366 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13367 | |
| 13368 | |
| 13369 | # Set options |
| 13370 | enable_win32_dll=yes |
| 13371 | |
| 13372 | case $host in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13373 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13374 | if test -n "$ac_tool_prefix"; then |
| 13375 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 13376 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13378 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13379 | if ${ac_cv_prog_AS+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13380 | $as_echo_n "(cached) " >&6 |
| 13381 | else |
| 13382 | if test -n "$AS"; then |
| 13383 | ac_cv_prog_AS="$AS" # Let the user override the test. |
| 13384 | else |
| 13385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13386 | for as_dir in $PATH |
| 13387 | do |
| 13388 | IFS=$as_save_IFS |
| 13389 | test -z "$as_dir" && as_dir=. |
| 13390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13392 | ac_cv_prog_AS="${ac_tool_prefix}as" |
| 13393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13394 | break 2 |
| 13395 | fi |
| 13396 | done |
| 13397 | done |
| 13398 | IFS=$as_save_IFS |
| 13399 | |
| 13400 | fi |
| 13401 | fi |
| 13402 | AS=$ac_cv_prog_AS |
| 13403 | if test -n "$AS"; then |
| 13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 13405 | $as_echo "$AS" >&6; } |
| 13406 | else |
| 13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13408 | $as_echo "no" >&6; } |
| 13409 | fi |
| 13410 | |
| 13411 | |
| 13412 | fi |
| 13413 | if test -z "$ac_cv_prog_AS"; then |
| 13414 | ac_ct_AS=$AS |
| 13415 | # Extract the first word of "as", so it can be a program name with args. |
| 13416 | set dummy as; ac_word=$2 |
| 13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13418 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13419 | if ${ac_cv_prog_ac_ct_AS+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13420 | $as_echo_n "(cached) " >&6 |
| 13421 | else |
| 13422 | if test -n "$ac_ct_AS"; then |
| 13423 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 13424 | else |
| 13425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13426 | for as_dir in $PATH |
| 13427 | do |
| 13428 | IFS=$as_save_IFS |
| 13429 | test -z "$as_dir" && as_dir=. |
| 13430 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13431 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13432 | ac_cv_prog_ac_ct_AS="as" |
| 13433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13434 | break 2 |
| 13435 | fi |
| 13436 | done |
| 13437 | done |
| 13438 | IFS=$as_save_IFS |
| 13439 | |
| 13440 | fi |
| 13441 | fi |
| 13442 | ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 13443 | if test -n "$ac_ct_AS"; then |
| 13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 13445 | $as_echo "$ac_ct_AS" >&6; } |
| 13446 | else |
| 13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13448 | $as_echo "no" >&6; } |
| 13449 | fi |
| 13450 | |
| 13451 | if test "x$ac_ct_AS" = x; then |
| 13452 | AS="false" |
| 13453 | else |
| 13454 | case $cross_compiling:$ac_tool_warned in |
| 13455 | yes:) |
| 13456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13458 | ac_tool_warned=yes ;; |
| 13459 | esac |
| 13460 | AS=$ac_ct_AS |
| 13461 | fi |
| 13462 | else |
| 13463 | AS="$ac_cv_prog_AS" |
| 13464 | fi |
| 13465 | |
| 13466 | if test -n "$ac_tool_prefix"; then |
| 13467 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 13468 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 13469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13470 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13471 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13472 | $as_echo_n "(cached) " >&6 |
| 13473 | else |
| 13474 | if test -n "$DLLTOOL"; then |
| 13475 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 13476 | else |
| 13477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13478 | for as_dir in $PATH |
| 13479 | do |
| 13480 | IFS=$as_save_IFS |
| 13481 | test -z "$as_dir" && as_dir=. |
| 13482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13484 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 13485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13486 | break 2 |
| 13487 | fi |
| 13488 | done |
| 13489 | done |
| 13490 | IFS=$as_save_IFS |
| 13491 | |
| 13492 | fi |
| 13493 | fi |
| 13494 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 13495 | if test -n "$DLLTOOL"; then |
| 13496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 13497 | $as_echo "$DLLTOOL" >&6; } |
| 13498 | else |
| 13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13500 | $as_echo "no" >&6; } |
| 13501 | fi |
| 13502 | |
| 13503 | |
| 13504 | fi |
| 13505 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 13506 | ac_ct_DLLTOOL=$DLLTOOL |
| 13507 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 13508 | set dummy dlltool; ac_word=$2 |
| 13509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13510 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13511 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13512 | $as_echo_n "(cached) " >&6 |
| 13513 | else |
| 13514 | if test -n "$ac_ct_DLLTOOL"; then |
| 13515 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 13516 | else |
| 13517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13518 | for as_dir in $PATH |
| 13519 | do |
| 13520 | IFS=$as_save_IFS |
| 13521 | test -z "$as_dir" && as_dir=. |
| 13522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13523 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13524 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 13525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13526 | break 2 |
| 13527 | fi |
| 13528 | done |
| 13529 | done |
| 13530 | IFS=$as_save_IFS |
| 13531 | |
| 13532 | fi |
| 13533 | fi |
| 13534 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 13535 | if test -n "$ac_ct_DLLTOOL"; then |
| 13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 13537 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 13538 | else |
| 13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13540 | $as_echo "no" >&6; } |
| 13541 | fi |
| 13542 | |
| 13543 | if test "x$ac_ct_DLLTOOL" = x; then |
| 13544 | DLLTOOL="false" |
| 13545 | else |
| 13546 | case $cross_compiling:$ac_tool_warned in |
| 13547 | yes:) |
| 13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13549 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13550 | ac_tool_warned=yes ;; |
| 13551 | esac |
| 13552 | DLLTOOL=$ac_ct_DLLTOOL |
| 13553 | fi |
| 13554 | else |
| 13555 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 13556 | fi |
| 13557 | |
| 13558 | if test -n "$ac_tool_prefix"; then |
| 13559 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 13560 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 13561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13562 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13563 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13564 | $as_echo_n "(cached) " >&6 |
| 13565 | else |
| 13566 | if test -n "$OBJDUMP"; then |
| 13567 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 13568 | else |
| 13569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13570 | for as_dir in $PATH |
| 13571 | do |
| 13572 | IFS=$as_save_IFS |
| 13573 | test -z "$as_dir" && as_dir=. |
| 13574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13575 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13576 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 13577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13578 | break 2 |
| 13579 | fi |
| 13580 | done |
| 13581 | done |
| 13582 | IFS=$as_save_IFS |
| 13583 | |
| 13584 | fi |
| 13585 | fi |
| 13586 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 13587 | if test -n "$OBJDUMP"; then |
| 13588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 13589 | $as_echo "$OBJDUMP" >&6; } |
| 13590 | else |
| 13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13592 | $as_echo "no" >&6; } |
| 13593 | fi |
| 13594 | |
| 13595 | |
| 13596 | fi |
| 13597 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 13598 | ac_ct_OBJDUMP=$OBJDUMP |
| 13599 | # Extract the first word of "objdump", so it can be a program name with args. |
| 13600 | set dummy objdump; ac_word=$2 |
| 13601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13602 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13603 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13604 | $as_echo_n "(cached) " >&6 |
| 13605 | else |
| 13606 | if test -n "$ac_ct_OBJDUMP"; then |
| 13607 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 13608 | else |
| 13609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13610 | for as_dir in $PATH |
| 13611 | do |
| 13612 | IFS=$as_save_IFS |
| 13613 | test -z "$as_dir" && as_dir=. |
| 13614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 13615 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13616 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 13617 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13618 | break 2 |
| 13619 | fi |
| 13620 | done |
| 13621 | done |
| 13622 | IFS=$as_save_IFS |
| 13623 | |
| 13624 | fi |
| 13625 | fi |
| 13626 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 13627 | if test -n "$ac_ct_OBJDUMP"; then |
| 13628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 13629 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 13630 | else |
| 13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13632 | $as_echo "no" >&6; } |
| 13633 | fi |
| 13634 | |
| 13635 | if test "x$ac_ct_OBJDUMP" = x; then |
| 13636 | OBJDUMP="false" |
| 13637 | else |
| 13638 | case $cross_compiling:$ac_tool_warned in |
| 13639 | yes:) |
| 13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13641 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13642 | ac_tool_warned=yes ;; |
| 13643 | esac |
| 13644 | OBJDUMP=$ac_ct_OBJDUMP |
| 13645 | fi |
| 13646 | else |
| 13647 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 13648 | fi |
| 13649 | |
| 13650 | ;; |
| 13651 | esac |
| 13652 | |
| 13653 | test -z "$AS" && AS=as |
| 13654 | |
| 13655 | |
| 13656 | |
| 13657 | |
| 13658 | |
| 13659 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13660 | |
| 13661 | |
| 13662 | |
| 13663 | |
| 13664 | |
| 13665 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13666 | |
| 13667 | |
| 13668 | |
| 13669 | |
| 13670 | |
| 13671 | |
| 13672 | |
| 13673 | |
| 13674 | |
| 13675 | # Check whether --enable-shared was given. |
| 13676 | if test "${enable_shared+set}" = set; then : |
| 13677 | enableval=$enable_shared; p=${PACKAGE-default} |
| 13678 | case $enableval in |
| 13679 | yes) enable_shared=yes ;; |
| 13680 | no) enable_shared=no ;; |
| 13681 | *) |
| 13682 | enable_shared=no |
| 13683 | # Look at the argument we got. We use all the common list separators. |
| 13684 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 13685 | for pkg in $enableval; do |
| 13686 | IFS="$lt_save_ifs" |
| 13687 | if test "X$pkg" = "X$p"; then |
| 13688 | enable_shared=yes |
| 13689 | fi |
| 13690 | done |
| 13691 | IFS="$lt_save_ifs" |
| 13692 | ;; |
| 13693 | esac |
| 13694 | else |
| 13695 | enable_shared=yes |
| 13696 | fi |
| 13697 | |
| 13698 | |
| 13699 | |
| 13700 | |
| 13701 | |
| 13702 | |
| 13703 | |
| 13704 | |
| 13705 | |
| 13706 | # Check whether --enable-static was given. |
| 13707 | if test "${enable_static+set}" = set; then : |
| 13708 | enableval=$enable_static; p=${PACKAGE-default} |
| 13709 | case $enableval in |
| 13710 | yes) enable_static=yes ;; |
| 13711 | no) enable_static=no ;; |
| 13712 | *) |
| 13713 | enable_static=no |
| 13714 | # Look at the argument we got. We use all the common list separators. |
| 13715 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 13716 | for pkg in $enableval; do |
| 13717 | IFS="$lt_save_ifs" |
| 13718 | if test "X$pkg" = "X$p"; then |
| 13719 | enable_static=yes |
| 13720 | fi |
| 13721 | done |
| 13722 | IFS="$lt_save_ifs" |
| 13723 | ;; |
| 13724 | esac |
| 13725 | else |
| 13726 | enable_static=yes |
| 13727 | fi |
| 13728 | |
| 13729 | |
| 13730 | |
| 13731 | |
| 13732 | |
| 13733 | |
| 13734 | |
| 13735 | |
| 13736 | |
| 13737 | |
| 13738 | # Check whether --with-pic was given. |
| 13739 | if test "${with_pic+set}" = set; then : |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13740 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 13741 | case $withval in |
| 13742 | yes|no) pic_mode=$withval ;; |
| 13743 | *) |
| 13744 | pic_mode=default |
| 13745 | # Look at the argument we got. We use all the common list separators. |
| 13746 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 13747 | for lt_pkg in $withval; do |
| 13748 | IFS="$lt_save_ifs" |
| 13749 | if test "X$lt_pkg" = "X$lt_p"; then |
| 13750 | pic_mode=yes |
| 13751 | fi |
| 13752 | done |
| 13753 | IFS="$lt_save_ifs" |
| 13754 | ;; |
| 13755 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13756 | else |
| 13757 | pic_mode=default |
| 13758 | fi |
| 13759 | |
| 13760 | |
| 13761 | test -z "$pic_mode" && pic_mode=default |
| 13762 | |
| 13763 | |
| 13764 | |
| 13765 | |
| 13766 | |
| 13767 | |
| 13768 | |
| 13769 | # Check whether --enable-fast-install was given. |
| 13770 | if test "${enable_fast_install+set}" = set; then : |
| 13771 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 13772 | case $enableval in |
| 13773 | yes) enable_fast_install=yes ;; |
| 13774 | no) enable_fast_install=no ;; |
| 13775 | *) |
| 13776 | enable_fast_install=no |
| 13777 | # Look at the argument we got. We use all the common list separators. |
| 13778 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 13779 | for pkg in $enableval; do |
| 13780 | IFS="$lt_save_ifs" |
| 13781 | if test "X$pkg" = "X$p"; then |
| 13782 | enable_fast_install=yes |
| 13783 | fi |
| 13784 | done |
| 13785 | IFS="$lt_save_ifs" |
| 13786 | ;; |
| 13787 | esac |
| 13788 | else |
| 13789 | enable_fast_install=yes |
| 13790 | fi |
| 13791 | |
| 13792 | |
| 13793 | |
| 13794 | |
| 13795 | |
| 13796 | |
| 13797 | |
| 13798 | |
| 13799 | |
| 13800 | |
| 13801 | |
| 13802 | # This can be used to rebuild libtool when needed |
| 13803 | LIBTOOL_DEPS="$ltmain" |
| 13804 | |
| 13805 | # Always use our own libtool. |
| 13806 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 13807 | |
| 13808 | |
| 13809 | |
| 13810 | |
| 13811 | |
| 13812 | |
| 13813 | |
| 13814 | |
| 13815 | |
| 13816 | |
| 13817 | |
| 13818 | |
| 13819 | |
| 13820 | |
| 13821 | |
| 13822 | |
| 13823 | |
| 13824 | |
| 13825 | |
| 13826 | |
| 13827 | |
| 13828 | |
| 13829 | |
| 13830 | |
| 13831 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13832 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 13833 | |
| 13834 | |
| 13835 | |
| 13836 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13837 | test -z "$LN_S" && LN_S="ln -s" |
| 13838 | |
| 13839 | |
| 13840 | |
| 13841 | |
| 13842 | |
| 13843 | |
| 13844 | |
| 13845 | |
| 13846 | |
| 13847 | |
| 13848 | |
| 13849 | |
| 13850 | |
| 13851 | |
| 13852 | if test -n "${ZSH_VERSION+set}" ; then |
| 13853 | setopt NO_GLOB_SUBST |
| 13854 | fi |
| 13855 | |
| 13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 13857 | $as_echo_n "checking for objdir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13858 | if ${lt_cv_objdir+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13859 | $as_echo_n "(cached) " >&6 |
| 13860 | else |
| 13861 | rm -f .libs 2>/dev/null |
| 13862 | mkdir .libs 2>/dev/null |
| 13863 | if test -d .libs; then |
| 13864 | lt_cv_objdir=.libs |
| 13865 | else |
| 13866 | # MS-DOS does not allow filenames that begin with a dot. |
| 13867 | lt_cv_objdir=_libs |
| 13868 | fi |
| 13869 | rmdir .libs 2>/dev/null |
| 13870 | fi |
| 13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 13872 | $as_echo "$lt_cv_objdir" >&6; } |
| 13873 | objdir=$lt_cv_objdir |
| 13874 | |
| 13875 | |
| 13876 | |
| 13877 | |
| 13878 | |
| 13879 | cat >>confdefs.h <<_ACEOF |
| 13880 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 13881 | _ACEOF |
| 13882 | |
| 13883 | |
| 13884 | |
| 13885 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13886 | case $host_os in |
| 13887 | aix3*) |
| 13888 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 13889 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 13890 | # vanish in a puff of smoke. |
| 13891 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 13892 | COLLECT_NAMES= |
| 13893 | export COLLECT_NAMES |
| 13894 | fi |
| 13895 | ;; |
| 13896 | esac |
| 13897 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13898 | # Global variables: |
| 13899 | ofile=libtool |
| 13900 | can_build_shared=yes |
| 13901 | |
| 13902 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 13903 | # which needs '.lib'). |
| 13904 | libext=a |
| 13905 | |
| 13906 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 13907 | |
| 13908 | old_CC="$CC" |
| 13909 | old_CFLAGS="$CFLAGS" |
| 13910 | |
| 13911 | # Set sane defaults for various variables |
| 13912 | test -z "$CC" && CC=cc |
| 13913 | test -z "$LTCC" && LTCC=$CC |
| 13914 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 13915 | test -z "$LD" && LD=ld |
| 13916 | test -z "$ac_objext" && ac_objext=o |
| 13917 | |
| 13918 | for cc_temp in $compiler""; do |
| 13919 | case $cc_temp in |
| 13920 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 13921 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 13922 | \-*) ;; |
| 13923 | *) break;; |
| 13924 | esac |
| 13925 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 13926 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13927 | |
| 13928 | |
| 13929 | # Only perform the check for file, if the check method requires it |
| 13930 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 13931 | case $deplibs_check_method in |
| 13932 | file_magic*) |
| 13933 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 13935 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 13936 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 13937 | $as_echo_n "(cached) " >&6 |
| 13938 | else |
| 13939 | case $MAGIC_CMD in |
| 13940 | [\\/*] | ?:[\\/]*) |
| 13941 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 13942 | ;; |
| 13943 | *) |
| 13944 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 13945 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 13946 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 13947 | for ac_dir in $ac_dummy; do |
| 13948 | IFS="$lt_save_ifs" |
| 13949 | test -z "$ac_dir" && ac_dir=. |
| 13950 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 13951 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 13952 | if test -n "$file_magic_test_file"; then |
| 13953 | case $deplibs_check_method in |
| 13954 | "file_magic "*) |
| 13955 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 13956 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13957 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 13958 | $EGREP "$file_magic_regex" > /dev/null; then |
| 13959 | : |
| 13960 | else |
| 13961 | cat <<_LT_EOF 1>&2 |
| 13962 | |
| 13963 | *** Warning: the command libtool uses to detect shared libraries, |
| 13964 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 13965 | *** The result is that libtool may fail to recognize shared libraries |
| 13966 | *** as such. This will affect the creation of libtool libraries that |
| 13967 | *** depend on shared libraries, but programs linked with such libtool |
| 13968 | *** libraries will work regardless of this problem. Nevertheless, you |
| 13969 | *** may want to report the problem to your system manager and/or to |
| 13970 | *** bug-libtool@gnu.org |
| 13971 | |
| 13972 | _LT_EOF |
| 13973 | fi ;; |
| 13974 | esac |
| 13975 | fi |
| 13976 | break |
| 13977 | fi |
| 13978 | done |
| 13979 | IFS="$lt_save_ifs" |
| 13980 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 13981 | ;; |
| 13982 | esac |
| 13983 | fi |
| 13984 | |
| 13985 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 13986 | if test -n "$MAGIC_CMD"; then |
| 13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 13988 | $as_echo "$MAGIC_CMD" >&6; } |
| 13989 | else |
| 13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13991 | $as_echo "no" >&6; } |
| 13992 | fi |
| 13993 | |
| 13994 | |
| 13995 | |
| 13996 | |
| 13997 | |
| 13998 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 13999 | if test -n "$ac_tool_prefix"; then |
| 14000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 14001 | $as_echo_n "checking for file... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14002 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14003 | $as_echo_n "(cached) " >&6 |
| 14004 | else |
| 14005 | case $MAGIC_CMD in |
| 14006 | [\\/*] | ?:[\\/]*) |
| 14007 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 14008 | ;; |
| 14009 | *) |
| 14010 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 14011 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 14012 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14013 | for ac_dir in $ac_dummy; do |
| 14014 | IFS="$lt_save_ifs" |
| 14015 | test -z "$ac_dir" && ac_dir=. |
| 14016 | if test -f $ac_dir/file; then |
| 14017 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 14018 | if test -n "$file_magic_test_file"; then |
| 14019 | case $deplibs_check_method in |
| 14020 | "file_magic "*) |
| 14021 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 14022 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14023 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14024 | $EGREP "$file_magic_regex" > /dev/null; then |
| 14025 | : |
| 14026 | else |
| 14027 | cat <<_LT_EOF 1>&2 |
| 14028 | |
| 14029 | *** Warning: the command libtool uses to detect shared libraries, |
| 14030 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14031 | *** The result is that libtool may fail to recognize shared libraries |
| 14032 | *** as such. This will affect the creation of libtool libraries that |
| 14033 | *** depend on shared libraries, but programs linked with such libtool |
| 14034 | *** libraries will work regardless of this problem. Nevertheless, you |
| 14035 | *** may want to report the problem to your system manager and/or to |
| 14036 | *** bug-libtool@gnu.org |
| 14037 | |
| 14038 | _LT_EOF |
| 14039 | fi ;; |
| 14040 | esac |
| 14041 | fi |
| 14042 | break |
| 14043 | fi |
| 14044 | done |
| 14045 | IFS="$lt_save_ifs" |
| 14046 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 14047 | ;; |
| 14048 | esac |
| 14049 | fi |
| 14050 | |
| 14051 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 14052 | if test -n "$MAGIC_CMD"; then |
| 14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 14054 | $as_echo "$MAGIC_CMD" >&6; } |
| 14055 | else |
| 14056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14057 | $as_echo "no" >&6; } |
| 14058 | fi |
| 14059 | |
| 14060 | |
| 14061 | else |
| 14062 | MAGIC_CMD=: |
| 14063 | fi |
| 14064 | fi |
| 14065 | |
| 14066 | fi |
| 14067 | ;; |
| 14068 | esac |
| 14069 | |
| 14070 | # Use C for the default configuration in the libtool script |
| 14071 | |
| 14072 | lt_save_CC="$CC" |
| 14073 | ac_ext=c |
| 14074 | ac_cpp='$CPP $CPPFLAGS' |
| 14075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14078 | |
| 14079 | |
| 14080 | # Source file extension for C test sources. |
| 14081 | ac_ext=c |
| 14082 | |
| 14083 | # Object file extension for compiled C test sources. |
| 14084 | objext=o |
| 14085 | objext=$objext |
| 14086 | |
| 14087 | # Code to be used in simple compile tests |
| 14088 | lt_simple_compile_test_code="int some_variable = 0;" |
| 14089 | |
| 14090 | # Code to be used in simple link tests |
| 14091 | lt_simple_link_test_code='int main(){return(0);}' |
| 14092 | |
| 14093 | |
| 14094 | |
| 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | # If no C compiler was specified, use CC. |
| 14100 | LTCC=${LTCC-"$CC"} |
| 14101 | |
| 14102 | # If no C compiler flags were specified, use CFLAGS. |
| 14103 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14104 | |
| 14105 | # Allow CC to be a program name with arguments. |
| 14106 | compiler=$CC |
| 14107 | |
| 14108 | # Save the default compiler, since it gets overwritten when the other |
| 14109 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 14110 | compiler_DEFAULT=$CC |
| 14111 | |
| 14112 | # save warnings/boilerplate of simple test code |
| 14113 | ac_outfile=conftest.$ac_objext |
| 14114 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14115 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14116 | _lt_compiler_boilerplate=`cat conftest.err` |
| 14117 | $RM conftest* |
| 14118 | |
| 14119 | ac_outfile=conftest.$ac_objext |
| 14120 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14121 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14122 | _lt_linker_boilerplate=`cat conftest.err` |
| 14123 | $RM -r conftest* |
| 14124 | |
| 14125 | |
| 14126 | ## CAVEAT EMPTOR: |
| 14127 | ## There is no encapsulation within the following macros, do not change |
| 14128 | ## the running order or otherwise move them around unless you know exactly |
| 14129 | ## what you are doing... |
| 14130 | if test -n "$compiler"; then |
| 14131 | |
| 14132 | lt_prog_compiler_no_builtin_flag= |
| 14133 | |
| 14134 | if test "$GCC" = yes; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14135 | case $cc_basename in |
| 14136 | nvcc*) |
| 14137 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 14138 | *) |
| 14139 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 14140 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14141 | |
| 14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14143 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14144 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14145 | $as_echo_n "(cached) " >&6 |
| 14146 | else |
| 14147 | lt_cv_prog_compiler_rtti_exceptions=no |
| 14148 | ac_outfile=conftest.$ac_objext |
| 14149 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14150 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 14151 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14152 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14153 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14154 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14155 | # The option is referenced via a variable to avoid confusing sed. |
| 14156 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14157 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14158 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14159 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14160 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14161 | (eval "$lt_compile" 2>conftest.err) |
| 14162 | ac_status=$? |
| 14163 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14165 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14166 | # The compiler can only warn and ignore the option if not recognized |
| 14167 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14168 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14169 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14170 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14171 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 14172 | fi |
| 14173 | fi |
| 14174 | $RM conftest* |
| 14175 | |
| 14176 | fi |
| 14177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14178 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 14179 | |
| 14180 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 14181 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14182 | else |
| 14183 | : |
| 14184 | fi |
| 14185 | |
| 14186 | fi |
| 14187 | |
| 14188 | |
| 14189 | |
| 14190 | |
| 14191 | |
| 14192 | |
| 14193 | lt_prog_compiler_wl= |
| 14194 | lt_prog_compiler_pic= |
| 14195 | lt_prog_compiler_static= |
| 14196 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14197 | |
| 14198 | if test "$GCC" = yes; then |
| 14199 | lt_prog_compiler_wl='-Wl,' |
| 14200 | lt_prog_compiler_static='-static' |
| 14201 | |
| 14202 | case $host_os in |
| 14203 | aix*) |
| 14204 | # All AIX code is PIC. |
| 14205 | if test "$host_cpu" = ia64; then |
| 14206 | # AIX 5 now supports IA64 processor |
| 14207 | lt_prog_compiler_static='-Bstatic' |
| 14208 | fi |
| 14209 | ;; |
| 14210 | |
| 14211 | amigaos*) |
| 14212 | case $host_cpu in |
| 14213 | powerpc) |
| 14214 | # see comment about AmigaOS4 .so support |
| 14215 | lt_prog_compiler_pic='-fPIC' |
| 14216 | ;; |
| 14217 | m68k) |
| 14218 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14219 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14220 | # like `-m68040'. |
| 14221 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 14222 | ;; |
| 14223 | esac |
| 14224 | ;; |
| 14225 | |
| 14226 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14227 | # PIC is the default for these OSes. |
| 14228 | ;; |
| 14229 | |
| 14230 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 14231 | # This hack is so that the source file can tell whether it is being |
| 14232 | # built for inclusion in a dll (and should export symbols for example). |
| 14233 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14234 | # (--disable-auto-import) libraries |
| 14235 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14236 | ;; |
| 14237 | |
| 14238 | darwin* | rhapsody*) |
| 14239 | # PIC is the default on this platform |
| 14240 | # Common symbols not allowed in MH_DYLIB files |
| 14241 | lt_prog_compiler_pic='-fno-common' |
| 14242 | ;; |
| 14243 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14244 | haiku*) |
| 14245 | # PIC is the default for Haiku. |
| 14246 | # The "-static" flag exists, but is broken. |
| 14247 | lt_prog_compiler_static= |
| 14248 | ;; |
| 14249 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14250 | hpux*) |
| 14251 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14252 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14253 | # sets the default TLS model and affects inlining. |
| 14254 | case $host_cpu in |
| 14255 | hppa*64*) |
| 14256 | # +Z the default |
| 14257 | ;; |
| 14258 | *) |
| 14259 | lt_prog_compiler_pic='-fPIC' |
| 14260 | ;; |
| 14261 | esac |
| 14262 | ;; |
| 14263 | |
| 14264 | interix[3-9]*) |
| 14265 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14266 | # Instead, we relocate shared libraries at runtime. |
| 14267 | ;; |
| 14268 | |
| 14269 | msdosdjgpp*) |
| 14270 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14271 | # on systems that don't support them. |
| 14272 | lt_prog_compiler_can_build_shared=no |
| 14273 | enable_shared=no |
| 14274 | ;; |
| 14275 | |
| 14276 | *nto* | *qnx*) |
| 14277 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14278 | # it will coredump. |
| 14279 | lt_prog_compiler_pic='-fPIC -shared' |
| 14280 | ;; |
| 14281 | |
| 14282 | sysv4*MP*) |
| 14283 | if test -d /usr/nec; then |
| 14284 | lt_prog_compiler_pic=-Kconform_pic |
| 14285 | fi |
| 14286 | ;; |
| 14287 | |
| 14288 | *) |
| 14289 | lt_prog_compiler_pic='-fPIC' |
| 14290 | ;; |
| 14291 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14292 | |
| 14293 | case $cc_basename in |
| 14294 | nvcc*) # Cuda Compiler Driver 2.2 |
| 14295 | lt_prog_compiler_wl='-Xlinker ' |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14296 | if test -n "$lt_prog_compiler_pic"; then |
| 14297 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 14298 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14299 | ;; |
| 14300 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14301 | else |
| 14302 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 14303 | case $host_os in |
| 14304 | aix*) |
| 14305 | lt_prog_compiler_wl='-Wl,' |
| 14306 | if test "$host_cpu" = ia64; then |
| 14307 | # AIX 5 now supports IA64 processor |
| 14308 | lt_prog_compiler_static='-Bstatic' |
| 14309 | else |
| 14310 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 14311 | fi |
| 14312 | ;; |
| 14313 | |
| 14314 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 14315 | # This hack is so that the source file can tell whether it is being |
| 14316 | # built for inclusion in a dll (and should export symbols for example). |
| 14317 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14318 | ;; |
| 14319 | |
| 14320 | hpux9* | hpux10* | hpux11*) |
| 14321 | lt_prog_compiler_wl='-Wl,' |
| 14322 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14323 | # not for PA HP-UX. |
| 14324 | case $host_cpu in |
| 14325 | hppa*64*|ia64*) |
| 14326 | # +Z the default |
| 14327 | ;; |
| 14328 | *) |
| 14329 | lt_prog_compiler_pic='+Z' |
| 14330 | ;; |
| 14331 | esac |
| 14332 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14333 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 14334 | ;; |
| 14335 | |
| 14336 | irix5* | irix6* | nonstopux*) |
| 14337 | lt_prog_compiler_wl='-Wl,' |
| 14338 | # PIC (with -KPIC) is the default. |
| 14339 | lt_prog_compiler_static='-non_shared' |
| 14340 | ;; |
| 14341 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14342 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14343 | case $cc_basename in |
| 14344 | # old Intel for x86_64 which still supported -KPIC. |
| 14345 | ecc*) |
| 14346 | lt_prog_compiler_wl='-Wl,' |
| 14347 | lt_prog_compiler_pic='-KPIC' |
| 14348 | lt_prog_compiler_static='-static' |
| 14349 | ;; |
| 14350 | # icc used to be incompatible with GCC. |
| 14351 | # ICC 10 doesn't accept -KPIC any more. |
| 14352 | icc* | ifort*) |
| 14353 | lt_prog_compiler_wl='-Wl,' |
| 14354 | lt_prog_compiler_pic='-fPIC' |
| 14355 | lt_prog_compiler_static='-static' |
| 14356 | ;; |
| 14357 | # Lahey Fortran 8.1. |
| 14358 | lf95*) |
| 14359 | lt_prog_compiler_wl='-Wl,' |
| 14360 | lt_prog_compiler_pic='--shared' |
| 14361 | lt_prog_compiler_static='--static' |
| 14362 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14363 | nagfor*) |
| 14364 | # NAG Fortran compiler |
| 14365 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14366 | lt_prog_compiler_pic='-PIC' |
| 14367 | lt_prog_compiler_static='-Bstatic' |
| 14368 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14369 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14370 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 14371 | # which looks to be a dead project) |
| 14372 | lt_prog_compiler_wl='-Wl,' |
| 14373 | lt_prog_compiler_pic='-fpic' |
| 14374 | lt_prog_compiler_static='-Bstatic' |
| 14375 | ;; |
| 14376 | ccc*) |
| 14377 | lt_prog_compiler_wl='-Wl,' |
| 14378 | # All Alpha code is PIC. |
| 14379 | lt_prog_compiler_static='-non_shared' |
| 14380 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14381 | xl* | bgxl* | bgf* | mpixl*) |
| 14382 | # 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] | 14383 | lt_prog_compiler_wl='-Wl,' |
| 14384 | lt_prog_compiler_pic='-qpic' |
| 14385 | lt_prog_compiler_static='-qstaticlink' |
| 14386 | ;; |
| 14387 | *) |
| 14388 | case `$CC -V 2>&1 | sed 5q` in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14389 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14390 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 14391 | lt_prog_compiler_pic='-KPIC' |
| 14392 | lt_prog_compiler_static='-Bstatic' |
| 14393 | lt_prog_compiler_wl='' |
| 14394 | ;; |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14395 | *Sun\ F* | *Sun*Fortran*) |
| 14396 | lt_prog_compiler_pic='-KPIC' |
| 14397 | lt_prog_compiler_static='-Bstatic' |
| 14398 | lt_prog_compiler_wl='-Qoption ld ' |
| 14399 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14400 | *Sun\ C*) |
| 14401 | # Sun C 5.9 |
| 14402 | lt_prog_compiler_pic='-KPIC' |
| 14403 | lt_prog_compiler_static='-Bstatic' |
| 14404 | lt_prog_compiler_wl='-Wl,' |
| 14405 | ;; |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 14406 | *Intel*\ [CF]*Compiler*) |
| 14407 | lt_prog_compiler_wl='-Wl,' |
| 14408 | lt_prog_compiler_pic='-fPIC' |
| 14409 | lt_prog_compiler_static='-static' |
| 14410 | ;; |
| 14411 | *Portland\ Group*) |
| 14412 | lt_prog_compiler_wl='-Wl,' |
| 14413 | lt_prog_compiler_pic='-fpic' |
| 14414 | lt_prog_compiler_static='-Bstatic' |
| 14415 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14416 | esac |
| 14417 | ;; |
| 14418 | esac |
| 14419 | ;; |
| 14420 | |
| 14421 | newsos6) |
| 14422 | lt_prog_compiler_pic='-KPIC' |
| 14423 | lt_prog_compiler_static='-Bstatic' |
| 14424 | ;; |
| 14425 | |
| 14426 | *nto* | *qnx*) |
| 14427 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14428 | # it will coredump. |
| 14429 | lt_prog_compiler_pic='-fPIC -shared' |
| 14430 | ;; |
| 14431 | |
| 14432 | osf3* | osf4* | osf5*) |
| 14433 | lt_prog_compiler_wl='-Wl,' |
| 14434 | # All OSF/1 code is PIC. |
| 14435 | lt_prog_compiler_static='-non_shared' |
| 14436 | ;; |
| 14437 | |
| 14438 | rdos*) |
| 14439 | lt_prog_compiler_static='-non_shared' |
| 14440 | ;; |
| 14441 | |
| 14442 | solaris*) |
| 14443 | lt_prog_compiler_pic='-KPIC' |
| 14444 | lt_prog_compiler_static='-Bstatic' |
| 14445 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14446 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14447 | lt_prog_compiler_wl='-Qoption ld ';; |
| 14448 | *) |
| 14449 | lt_prog_compiler_wl='-Wl,';; |
| 14450 | esac |
| 14451 | ;; |
| 14452 | |
| 14453 | sunos4*) |
| 14454 | lt_prog_compiler_wl='-Qoption ld ' |
| 14455 | lt_prog_compiler_pic='-PIC' |
| 14456 | lt_prog_compiler_static='-Bstatic' |
| 14457 | ;; |
| 14458 | |
| 14459 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 14460 | lt_prog_compiler_wl='-Wl,' |
| 14461 | lt_prog_compiler_pic='-KPIC' |
| 14462 | lt_prog_compiler_static='-Bstatic' |
| 14463 | ;; |
| 14464 | |
| 14465 | sysv4*MP*) |
| 14466 | if test -d /usr/nec ;then |
| 14467 | lt_prog_compiler_pic='-Kconform_pic' |
| 14468 | lt_prog_compiler_static='-Bstatic' |
| 14469 | fi |
| 14470 | ;; |
| 14471 | |
| 14472 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14473 | lt_prog_compiler_wl='-Wl,' |
| 14474 | lt_prog_compiler_pic='-KPIC' |
| 14475 | lt_prog_compiler_static='-Bstatic' |
| 14476 | ;; |
| 14477 | |
| 14478 | unicos*) |
| 14479 | lt_prog_compiler_wl='-Wl,' |
| 14480 | lt_prog_compiler_can_build_shared=no |
| 14481 | ;; |
| 14482 | |
| 14483 | uts4*) |
| 14484 | lt_prog_compiler_pic='-pic' |
| 14485 | lt_prog_compiler_static='-Bstatic' |
| 14486 | ;; |
| 14487 | |
| 14488 | *) |
| 14489 | lt_prog_compiler_can_build_shared=no |
| 14490 | ;; |
| 14491 | esac |
| 14492 | fi |
| 14493 | |
| 14494 | case $host_os in |
| 14495 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14496 | *djgpp*) |
| 14497 | lt_prog_compiler_pic= |
| 14498 | ;; |
| 14499 | *) |
| 14500 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14501 | ;; |
| 14502 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14503 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14505 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 14506 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 14507 | $as_echo_n "(cached) " >&6 |
| 14508 | else |
| 14509 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 14510 | fi |
| 14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 14512 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 14513 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14514 | |
| 14515 | # |
| 14516 | # Check to make sure the PIC flag actually works. |
| 14517 | # |
| 14518 | if test -n "$lt_prog_compiler_pic"; then |
| 14519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14520 | $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] | 14521 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14522 | $as_echo_n "(cached) " >&6 |
| 14523 | else |
| 14524 | lt_cv_prog_compiler_pic_works=no |
| 14525 | ac_outfile=conftest.$ac_objext |
| 14526 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14527 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 14528 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14529 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14530 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14531 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14532 | # The option is referenced via a variable to avoid confusing sed. |
| 14533 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14534 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14535 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14536 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14537 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14538 | (eval "$lt_compile" 2>conftest.err) |
| 14539 | ac_status=$? |
| 14540 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14542 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14543 | # The compiler can only warn and ignore the option if not recognized |
| 14544 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14545 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14546 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14547 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14548 | lt_cv_prog_compiler_pic_works=yes |
| 14549 | fi |
| 14550 | fi |
| 14551 | $RM conftest* |
| 14552 | |
| 14553 | fi |
| 14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 14555 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 14556 | |
| 14557 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 14558 | case $lt_prog_compiler_pic in |
| 14559 | "" | " "*) ;; |
| 14560 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14561 | esac |
| 14562 | else |
| 14563 | lt_prog_compiler_pic= |
| 14564 | lt_prog_compiler_can_build_shared=no |
| 14565 | fi |
| 14566 | |
| 14567 | fi |
| 14568 | |
| 14569 | |
| 14570 | |
| 14571 | |
| 14572 | |
| 14573 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14574 | |
| 14575 | |
| 14576 | |
| 14577 | |
| 14578 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14579 | # |
| 14580 | # Check to make sure the static flag actually works. |
| 14581 | # |
| 14582 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14584 | $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] | 14585 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14586 | $as_echo_n "(cached) " >&6 |
| 14587 | else |
| 14588 | lt_cv_prog_compiler_static_works=no |
| 14589 | save_LDFLAGS="$LDFLAGS" |
| 14590 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14591 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14592 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14593 | # The linker can only warn and ignore the option if not recognized |
| 14594 | # So say no if there are warnings |
| 14595 | if test -s conftest.err; then |
| 14596 | # Append any errors to the config.log. |
| 14597 | cat conftest.err 1>&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14598 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14599 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14600 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14601 | lt_cv_prog_compiler_static_works=yes |
| 14602 | fi |
| 14603 | else |
| 14604 | lt_cv_prog_compiler_static_works=yes |
| 14605 | fi |
| 14606 | fi |
| 14607 | $RM -r conftest* |
| 14608 | LDFLAGS="$save_LDFLAGS" |
| 14609 | |
| 14610 | fi |
| 14611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 14612 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 14613 | |
| 14614 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 14615 | : |
| 14616 | else |
| 14617 | lt_prog_compiler_static= |
| 14618 | fi |
| 14619 | |
| 14620 | |
| 14621 | |
| 14622 | |
| 14623 | |
| 14624 | |
| 14625 | |
| 14626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14627 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14628 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14629 | $as_echo_n "(cached) " >&6 |
| 14630 | else |
| 14631 | lt_cv_prog_compiler_c_o=no |
| 14632 | $RM -r conftest 2>/dev/null |
| 14633 | mkdir conftest |
| 14634 | cd conftest |
| 14635 | mkdir out |
| 14636 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14637 | |
| 14638 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14639 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14640 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14641 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14642 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14643 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14644 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14645 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14646 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14647 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14648 | (eval "$lt_compile" 2>out/conftest.err) |
| 14649 | ac_status=$? |
| 14650 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14652 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14653 | then |
| 14654 | # The compiler can only warn and ignore the option if not recognized |
| 14655 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14656 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14657 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14658 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14659 | lt_cv_prog_compiler_c_o=yes |
| 14660 | fi |
| 14661 | fi |
| 14662 | chmod u+w . 2>&5 |
| 14663 | $RM conftest* |
| 14664 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14665 | # template instantiation |
| 14666 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14667 | $RM out/* && rmdir out |
| 14668 | cd .. |
| 14669 | $RM -r conftest |
| 14670 | $RM conftest* |
| 14671 | |
| 14672 | fi |
| 14673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14674 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 14675 | |
| 14676 | |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | |
| 14681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14682 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14683 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14684 | $as_echo_n "(cached) " >&6 |
| 14685 | else |
| 14686 | lt_cv_prog_compiler_c_o=no |
| 14687 | $RM -r conftest 2>/dev/null |
| 14688 | mkdir conftest |
| 14689 | cd conftest |
| 14690 | mkdir out |
| 14691 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14692 | |
| 14693 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14694 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14695 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14696 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14697 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14698 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14699 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14700 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14701 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14702 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14703 | (eval "$lt_compile" 2>out/conftest.err) |
| 14704 | ac_status=$? |
| 14705 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14707 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14708 | then |
| 14709 | # The compiler can only warn and ignore the option if not recognized |
| 14710 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14711 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14712 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14713 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14714 | lt_cv_prog_compiler_c_o=yes |
| 14715 | fi |
| 14716 | fi |
| 14717 | chmod u+w . 2>&5 |
| 14718 | $RM conftest* |
| 14719 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14720 | # template instantiation |
| 14721 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14722 | $RM out/* && rmdir out |
| 14723 | cd .. |
| 14724 | $RM -r conftest |
| 14725 | $RM conftest* |
| 14726 | |
| 14727 | fi |
| 14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 14729 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 14730 | |
| 14731 | |
| 14732 | |
| 14733 | |
| 14734 | hard_links="nottested" |
| 14735 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 14736 | # do not overwrite the value of need_locks provided by the user |
| 14737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 14738 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 14739 | hard_links=yes |
| 14740 | $RM conftest* |
| 14741 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14742 | touch conftest.a |
| 14743 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14744 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 14746 | $as_echo "$hard_links" >&6; } |
| 14747 | if test "$hard_links" = no; then |
| 14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14749 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14750 | need_locks=warn |
| 14751 | fi |
| 14752 | else |
| 14753 | need_locks=no |
| 14754 | fi |
| 14755 | |
| 14756 | |
| 14757 | |
| 14758 | |
| 14759 | |
| 14760 | |
| 14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14762 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14763 | |
| 14764 | runpath_var= |
| 14765 | allow_undefined_flag= |
| 14766 | always_export_symbols=no |
| 14767 | archive_cmds= |
| 14768 | archive_expsym_cmds= |
| 14769 | compiler_needs_object=no |
| 14770 | enable_shared_with_static_runtimes=no |
| 14771 | export_dynamic_flag_spec= |
| 14772 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14773 | hardcode_automatic=no |
| 14774 | hardcode_direct=no |
| 14775 | hardcode_direct_absolute=no |
| 14776 | hardcode_libdir_flag_spec= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14777 | hardcode_libdir_separator= |
| 14778 | hardcode_minus_L=no |
| 14779 | hardcode_shlibpath_var=unsupported |
| 14780 | inherit_rpath=no |
| 14781 | link_all_deplibs=unknown |
| 14782 | module_cmds= |
| 14783 | module_expsym_cmds= |
| 14784 | old_archive_from_new_cmds= |
| 14785 | old_archive_from_expsyms_cmds= |
| 14786 | thread_safe_flag_spec= |
| 14787 | whole_archive_flag_spec= |
| 14788 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 14789 | # included in the symbol list |
| 14790 | include_expsyms= |
| 14791 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 14792 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 14793 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 14794 | # as well as any symbol that contains `d'. |
| 14795 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 14796 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 14797 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 14798 | # the symbol is explicitly referenced. Since portable code cannot |
| 14799 | # rely on this symbol name, it's probably fine to never include it in |
| 14800 | # preloaded symbol tables. |
| 14801 | # Exclude shared library initialization/finalization symbols. |
| 14802 | extract_expsyms_cmds= |
| 14803 | |
| 14804 | case $host_os in |
| 14805 | cygwin* | mingw* | pw32* | cegcc*) |
| 14806 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 14807 | # When not using gcc, we currently assume that we are using |
| 14808 | # Microsoft Visual C++. |
| 14809 | if test "$GCC" != yes; then |
| 14810 | with_gnu_ld=no |
| 14811 | fi |
| 14812 | ;; |
| 14813 | interix*) |
| 14814 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 14815 | with_gnu_ld=yes |
| 14816 | ;; |
| 14817 | openbsd*) |
| 14818 | with_gnu_ld=no |
| 14819 | ;; |
| 14820 | esac |
| 14821 | |
| 14822 | ld_shlibs=yes |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14823 | |
| 14824 | # On some targets, GNU ld is compatible enough with the native linker |
| 14825 | # that we're better off using the native interface for both. |
| 14826 | lt_use_gnu_ld_interface=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14827 | if test "$with_gnu_ld" = yes; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14828 | case $host_os in |
| 14829 | aix*) |
| 14830 | # The AIX port of GNU ld has always aspired to compatibility |
| 14831 | # with the native linker. However, as the warning in the GNU ld |
| 14832 | # block says, versions before 2.19.5* couldn't really create working |
| 14833 | # shared libraries, regardless of the interface used. |
| 14834 | case `$LD -v 2>&1` in |
| 14835 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 14836 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 14837 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 14838 | *) |
| 14839 | lt_use_gnu_ld_interface=yes |
| 14840 | ;; |
| 14841 | esac |
| 14842 | ;; |
| 14843 | *) |
| 14844 | lt_use_gnu_ld_interface=yes |
| 14845 | ;; |
| 14846 | esac |
| 14847 | fi |
| 14848 | |
| 14849 | if test "$lt_use_gnu_ld_interface" = yes; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14850 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 14851 | wlarc='${wl}' |
| 14852 | |
| 14853 | # Set some defaults for GNU ld with shared library support. These |
| 14854 | # are reset later if shared libraries are not supported. Putting them |
| 14855 | # here allows them to be overridden if necessary. |
| 14856 | runpath_var=LD_RUN_PATH |
| 14857 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 14858 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 14859 | # ancient GNU ld didn't support --whole-archive et. al. |
| 14860 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 14861 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 14862 | else |
| 14863 | whole_archive_flag_spec= |
| 14864 | fi |
| 14865 | supports_anon_versioning=no |
| 14866 | case `$LD -v 2>&1` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14867 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14868 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 14869 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 14870 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 14871 | *\ 2.11.*) ;; # other 2.11 versions |
| 14872 | *) supports_anon_versioning=yes ;; |
| 14873 | esac |
| 14874 | |
| 14875 | # See if GNU ld supports shared libraries. |
| 14876 | case $host_os in |
| 14877 | aix[3-9]*) |
| 14878 | # On AIX/PPC, the GNU linker is very broken |
| 14879 | if test "$host_cpu" != ia64; then |
| 14880 | ld_shlibs=no |
| 14881 | cat <<_LT_EOF 1>&2 |
| 14882 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14883 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14884 | *** to be unable to reliably create shared libraries on AIX. |
| 14885 | *** Therefore, libtool is disabling shared libraries support. If you |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14886 | *** really care for shared libraries, you may want to install binutils |
| 14887 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 14888 | *** You will then need to restart the configuration process. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14889 | |
| 14890 | _LT_EOF |
| 14891 | fi |
| 14892 | ;; |
| 14893 | |
| 14894 | amigaos*) |
| 14895 | case $host_cpu in |
| 14896 | powerpc) |
| 14897 | # see comment about AmigaOS4 .so support |
| 14898 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14899 | archive_expsym_cmds='' |
| 14900 | ;; |
| 14901 | m68k) |
| 14902 | 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)' |
| 14903 | hardcode_libdir_flag_spec='-L$libdir' |
| 14904 | hardcode_minus_L=yes |
| 14905 | ;; |
| 14906 | esac |
| 14907 | ;; |
| 14908 | |
| 14909 | beos*) |
| 14910 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 14911 | allow_undefined_flag=unsupported |
| 14912 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 14913 | # support --undefined. This deserves some investigation. FIXME |
| 14914 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14915 | else |
| 14916 | ld_shlibs=no |
| 14917 | fi |
| 14918 | ;; |
| 14919 | |
| 14920 | cygwin* | mingw* | pw32* | cegcc*) |
| 14921 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 14922 | # as there is no search path for DLLs. |
| 14923 | hardcode_libdir_flag_spec='-L$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14924 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14925 | allow_undefined_flag=unsupported |
| 14926 | always_export_symbols=no |
| 14927 | enable_shared_with_static_runtimes=yes |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14928 | 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' |
| 14929 | 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] | 14930 | |
| 14931 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 14932 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14933 | # If the export-symbols file already is a .def file (1st line |
| 14934 | # is EXPORTS), use it as is; otherwise, prepend... |
| 14935 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 14936 | cp $export_symbols $output_objdir/$soname.def; |
| 14937 | else |
| 14938 | echo EXPORTS > $output_objdir/$soname.def; |
| 14939 | cat $export_symbols >> $output_objdir/$soname.def; |
| 14940 | fi~ |
| 14941 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 14942 | else |
| 14943 | ld_shlibs=no |
| 14944 | fi |
| 14945 | ;; |
| 14946 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14947 | haiku*) |
| 14948 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 14949 | link_all_deplibs=yes |
| 14950 | ;; |
| 14951 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14952 | interix[3-9]*) |
| 14953 | hardcode_direct=no |
| 14954 | hardcode_shlibpath_var=no |
| 14955 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 14956 | export_dynamic_flag_spec='${wl}-E' |
| 14957 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 14958 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 14959 | # default) and relocated if they conflict, which is a slow very memory |
| 14960 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 14961 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 14962 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 14963 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 14964 | 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' |
| 14965 | ;; |
| 14966 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14967 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14968 | tmp_diet=no |
| 14969 | if test "$host_os" = linux-dietlibc; then |
| 14970 | case $cc_basename in |
| 14971 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 14972 | esac |
| 14973 | fi |
| 14974 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 14975 | && test "$tmp_diet" = no |
| 14976 | then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 14977 | tmp_addflag=' $pic_flag' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 14978 | tmp_sharedflag='-shared' |
| 14979 | case $cc_basename,$host_cpu in |
| 14980 | pgcc*) # Portland Group C compiler |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14981 | 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] | 14982 | tmp_addflag=' $pic_flag' |
| 14983 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14984 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 14985 | # Portland Group f77 and f90 compilers |
| 14986 | 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] | 14987 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 14988 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 14989 | tmp_addflag=' -i_dynamic' ;; |
| 14990 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 14991 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 14992 | ifc* | ifort*) # Intel Fortran compiler |
| 14993 | tmp_addflag=' -nofor_main' ;; |
| 14994 | lf95*) # Lahey Fortran 8.1 |
| 14995 | whole_archive_flag_spec= |
| 14996 | tmp_sharedflag='--shared' ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 14997 | 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] | 14998 | tmp_sharedflag='-qmkshrobj' |
| 14999 | tmp_addflag= ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15000 | nvcc*) # Cuda Compiler Driver 2.2 |
| 15001 | 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' |
| 15002 | compiler_needs_object=yes |
| 15003 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15004 | esac |
| 15005 | case `$CC -V 2>&1 | sed 5q` in |
| 15006 | *Sun\ C*) # Sun C 5.9 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15007 | 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] | 15008 | compiler_needs_object=yes |
| 15009 | tmp_sharedflag='-G' ;; |
| 15010 | *Sun\ F*) # Sun Fortran 8.3 |
| 15011 | tmp_sharedflag='-G' ;; |
| 15012 | esac |
| 15013 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15014 | |
| 15015 | if test "x$supports_anon_versioning" = xyes; then |
| 15016 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15017 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15018 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15019 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 15020 | fi |
| 15021 | |
| 15022 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15023 | xlf* | bgf* | bgxlf* | mpixlf*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15024 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 15025 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15026 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15027 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15028 | if test "x$supports_anon_versioning" = xyes; then |
| 15029 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15030 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15031 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15032 | $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] | 15033 | fi |
| 15034 | ;; |
| 15035 | esac |
| 15036 | else |
| 15037 | ld_shlibs=no |
| 15038 | fi |
| 15039 | ;; |
| 15040 | |
| 15041 | netbsd*) |
| 15042 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15043 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15044 | wlarc= |
| 15045 | else |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15046 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15047 | 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] | 15048 | fi |
| 15049 | ;; |
| 15050 | |
| 15051 | solaris*) |
| 15052 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 15053 | ld_shlibs=no |
| 15054 | cat <<_LT_EOF 1>&2 |
| 15055 | |
| 15056 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15057 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 15058 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15059 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 15060 | *** your PATH or compiler configuration so that the native linker is |
| 15061 | *** used, and then restart. |
| 15062 | |
| 15063 | _LT_EOF |
| 15064 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15065 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15066 | 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] | 15067 | else |
| 15068 | ld_shlibs=no |
| 15069 | fi |
| 15070 | ;; |
| 15071 | |
| 15072 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15073 | case `$LD -v 2>&1` in |
| 15074 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15075 | ld_shlibs=no |
| 15076 | cat <<_LT_EOF 1>&2 |
| 15077 | |
| 15078 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 15079 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15080 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 15081 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15082 | *** your PATH or compiler configuration so that the native linker is |
| 15083 | *** used, and then restart. |
| 15084 | |
| 15085 | _LT_EOF |
| 15086 | ;; |
| 15087 | *) |
| 15088 | # For security reasons, it is highly recommended that you always |
| 15089 | # use absolute paths for naming shared libraries, and exclude the |
| 15090 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 15091 | # requires that you compile everything twice, which is a pain. |
| 15092 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15093 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15094 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15095 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 15096 | else |
| 15097 | ld_shlibs=no |
| 15098 | fi |
| 15099 | ;; |
| 15100 | esac |
| 15101 | ;; |
| 15102 | |
| 15103 | sunos4*) |
| 15104 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15105 | wlarc= |
| 15106 | hardcode_direct=yes |
| 15107 | hardcode_shlibpath_var=no |
| 15108 | ;; |
| 15109 | |
| 15110 | *) |
| 15111 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15112 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15113 | 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] | 15114 | else |
| 15115 | ld_shlibs=no |
| 15116 | fi |
| 15117 | ;; |
| 15118 | esac |
| 15119 | |
| 15120 | if test "$ld_shlibs" = no; then |
| 15121 | runpath_var= |
| 15122 | hardcode_libdir_flag_spec= |
| 15123 | export_dynamic_flag_spec= |
| 15124 | whole_archive_flag_spec= |
| 15125 | fi |
| 15126 | else |
| 15127 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 15128 | case $host_os in |
| 15129 | aix3*) |
| 15130 | allow_undefined_flag=unsupported |
| 15131 | always_export_symbols=yes |
| 15132 | 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' |
| 15133 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 15134 | # are no directories specified by -L. |
| 15135 | hardcode_minus_L=yes |
| 15136 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 15137 | # Neither direct hardcoding nor static linking is supported with a |
| 15138 | # broken collect2. |
| 15139 | hardcode_direct=unsupported |
| 15140 | fi |
| 15141 | ;; |
| 15142 | |
| 15143 | aix[4-9]*) |
| 15144 | if test "$host_cpu" = ia64; then |
| 15145 | # On IA64, the linker does run time linking by default, so we don't |
| 15146 | # have to do anything special. |
| 15147 | aix_use_runtimelinking=no |
| 15148 | exp_sym_flag='-Bexport' |
| 15149 | no_entry_flag="" |
| 15150 | else |
| 15151 | # If we're using GNU nm, then we don't want the "-C" option. |
| 15152 | # -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] | 15153 | # Also, AIX nm treats weak defined symbols like other global |
| 15154 | # defined symbols, whereas GNU nm marks them as "W". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15155 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15156 | 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] | 15157 | else |
| 15158 | 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' |
| 15159 | fi |
| 15160 | aix_use_runtimelinking=no |
| 15161 | |
| 15162 | # Test if we are trying to use run time linking or normal |
| 15163 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15164 | # need to do runtime linking. |
| 15165 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 15166 | for ld_flag in $LDFLAGS; do |
| 15167 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 15168 | aix_use_runtimelinking=yes |
| 15169 | break |
| 15170 | fi |
| 15171 | done |
| 15172 | ;; |
| 15173 | esac |
| 15174 | |
| 15175 | exp_sym_flag='-bexport' |
| 15176 | no_entry_flag='-bnoentry' |
| 15177 | fi |
| 15178 | |
| 15179 | # When large executables or shared objects are built, AIX ld can |
| 15180 | # have problems creating the table of contents. If linking a library |
| 15181 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 15182 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15183 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15184 | |
| 15185 | archive_cmds='' |
| 15186 | hardcode_direct=yes |
| 15187 | hardcode_direct_absolute=yes |
| 15188 | hardcode_libdir_separator=':' |
| 15189 | link_all_deplibs=yes |
| 15190 | file_list_spec='${wl}-f,' |
| 15191 | |
| 15192 | if test "$GCC" = yes; then |
| 15193 | case $host_os in aix4.[012]|aix4.[012].*) |
| 15194 | # We only want to do this on AIX 4.2 and lower, the check |
| 15195 | # below for broken collect2 doesn't work under 4.3+ |
| 15196 | collect2name=`${CC} -print-prog-name=collect2` |
| 15197 | if test -f "$collect2name" && |
| 15198 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 15199 | then |
| 15200 | # We have reworked collect2 |
| 15201 | : |
| 15202 | else |
| 15203 | # We have old collect2 |
| 15204 | hardcode_direct=unsupported |
| 15205 | # It fails to find uninstalled libraries when the uninstalled |
| 15206 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 15207 | # to unsupported forces relinking |
| 15208 | hardcode_minus_L=yes |
| 15209 | hardcode_libdir_flag_spec='-L$libdir' |
| 15210 | hardcode_libdir_separator= |
| 15211 | fi |
| 15212 | ;; |
| 15213 | esac |
| 15214 | shared_flag='-shared' |
| 15215 | if test "$aix_use_runtimelinking" = yes; then |
| 15216 | shared_flag="$shared_flag "'${wl}-G' |
| 15217 | fi |
| 15218 | else |
| 15219 | # not using gcc |
| 15220 | if test "$host_cpu" = ia64; then |
| 15221 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15222 | # chokes on -Wl,-G. The following line is correct: |
| 15223 | shared_flag='-G' |
| 15224 | else |
| 15225 | if test "$aix_use_runtimelinking" = yes; then |
| 15226 | shared_flag='${wl}-G' |
| 15227 | else |
| 15228 | shared_flag='${wl}-bM:SRE' |
| 15229 | fi |
| 15230 | fi |
| 15231 | fi |
| 15232 | |
| 15233 | export_dynamic_flag_spec='${wl}-bexpall' |
| 15234 | # It seems that -bexpall does not export symbols beginning with |
| 15235 | # underscore (_), so it is better to generate a list of symbols to export. |
| 15236 | always_export_symbols=yes |
| 15237 | if test "$aix_use_runtimelinking" = yes; then |
| 15238 | # Warning - without using the other runtime loading flags (-brtl), |
| 15239 | # -berok will link without error, but may produce a broken library. |
| 15240 | allow_undefined_flag='-berok' |
| 15241 | # Determine the default libpath from the value encoded in an |
| 15242 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15243 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 15244 | aix_libpath=$lt_cv_aix_libpath |
| 15245 | else |
| 15246 | if ${lt_cv_aix_libpath_+:} false; then : |
| 15247 | $as_echo_n "(cached) " >&6 |
| 15248 | else |
| 15249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15250 | /* end confdefs.h. */ |
| 15251 | |
| 15252 | int |
| 15253 | main () |
| 15254 | { |
| 15255 | |
| 15256 | ; |
| 15257 | return 0; |
| 15258 | } |
| 15259 | _ACEOF |
| 15260 | if ac_fn_c_try_link "$LINENO"; then : |
| 15261 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15262 | lt_aix_libpath_sed=' |
| 15263 | /Import File Strings/,/^$/ { |
| 15264 | /^0/ { |
| 15265 | s/^0 *\([^ ]*\) *$/\1/ |
| 15266 | p |
| 15267 | } |
| 15268 | }' |
| 15269 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15270 | # Check for a 64-bit object if we didn't find anything. |
| 15271 | if test -z "$lt_cv_aix_libpath_"; then |
| 15272 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15273 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15274 | fi |
| 15275 | rm -f core conftest.err conftest.$ac_objext \ |
| 15276 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15277 | if test -z "$lt_cv_aix_libpath_"; then |
| 15278 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 15279 | fi |
| 15280 | |
| 15281 | fi |
| 15282 | |
| 15283 | aix_libpath=$lt_cv_aix_libpath_ |
| 15284 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15285 | |
| 15286 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15287 | 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] | 15288 | else |
| 15289 | if test "$host_cpu" = ia64; then |
| 15290 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 15291 | allow_undefined_flag="-z nodefs" |
| 15292 | 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" |
| 15293 | else |
| 15294 | # Determine the default libpath from the value encoded in an |
| 15295 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15296 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 15297 | aix_libpath=$lt_cv_aix_libpath |
| 15298 | else |
| 15299 | if ${lt_cv_aix_libpath_+:} false; then : |
| 15300 | $as_echo_n "(cached) " >&6 |
| 15301 | else |
| 15302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15303 | /* end confdefs.h. */ |
| 15304 | |
| 15305 | int |
| 15306 | main () |
| 15307 | { |
| 15308 | |
| 15309 | ; |
| 15310 | return 0; |
| 15311 | } |
| 15312 | _ACEOF |
| 15313 | if ac_fn_c_try_link "$LINENO"; then : |
| 15314 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15315 | lt_aix_libpath_sed=' |
| 15316 | /Import File Strings/,/^$/ { |
| 15317 | /^0/ { |
| 15318 | s/^0 *\([^ ]*\) *$/\1/ |
| 15319 | p |
| 15320 | } |
| 15321 | }' |
| 15322 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15323 | # Check for a 64-bit object if we didn't find anything. |
| 15324 | if test -z "$lt_cv_aix_libpath_"; then |
| 15325 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15326 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15327 | fi |
| 15328 | rm -f core conftest.err conftest.$ac_objext \ |
| 15329 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15330 | if test -z "$lt_cv_aix_libpath_"; then |
| 15331 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 15332 | fi |
| 15333 | |
| 15334 | fi |
| 15335 | |
| 15336 | aix_libpath=$lt_cv_aix_libpath_ |
| 15337 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15338 | |
| 15339 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 15340 | # Warning - without using the other run time loading flags, |
| 15341 | # -berok will link without error, but may produce a broken library. |
| 15342 | no_undefined_flag=' ${wl}-bernotok' |
| 15343 | allow_undefined_flag=' ${wl}-berok' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15344 | if test "$with_gnu_ld" = yes; then |
| 15345 | # We only use this code for GNU lds that support --whole-archive. |
| 15346 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 15347 | else |
| 15348 | # Exported symbols can be pulled into shared objects from archives |
| 15349 | whole_archive_flag_spec='$convenience' |
| 15350 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15351 | archive_cmds_need_lc=yes |
| 15352 | # This is similar to how AIX traditionally builds its shared libraries. |
| 15353 | 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' |
| 15354 | fi |
| 15355 | fi |
| 15356 | ;; |
| 15357 | |
| 15358 | amigaos*) |
| 15359 | case $host_cpu in |
| 15360 | powerpc) |
| 15361 | # see comment about AmigaOS4 .so support |
| 15362 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 15363 | archive_expsym_cmds='' |
| 15364 | ;; |
| 15365 | m68k) |
| 15366 | 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)' |
| 15367 | hardcode_libdir_flag_spec='-L$libdir' |
| 15368 | hardcode_minus_L=yes |
| 15369 | ;; |
| 15370 | esac |
| 15371 | ;; |
| 15372 | |
| 15373 | bsdi[45]*) |
| 15374 | export_dynamic_flag_spec=-rdynamic |
| 15375 | ;; |
| 15376 | |
| 15377 | cygwin* | mingw* | pw32* | cegcc*) |
| 15378 | # When not using gcc, we currently assume that we are using |
| 15379 | # Microsoft Visual C++. |
| 15380 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15381 | # no search path for DLLs. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15382 | case $cc_basename in |
| 15383 | cl*) |
| 15384 | # Native MSVC |
| 15385 | hardcode_libdir_flag_spec=' ' |
| 15386 | allow_undefined_flag=unsupported |
| 15387 | always_export_symbols=yes |
| 15388 | file_list_spec='@' |
| 15389 | # Tell ltmain to make .lib files, not .a files. |
| 15390 | libext=lib |
| 15391 | # Tell ltmain to make .dll files, not .so files. |
| 15392 | shrext_cmds=".dll" |
| 15393 | # FIXME: Setting linknames here is a bad hack. |
| 15394 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 15395 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 15396 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 15397 | else |
| 15398 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 15399 | fi~ |
| 15400 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 15401 | linknames=' |
| 15402 | # The linker will not automatically build a static lib if we build a DLL. |
| 15403 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 15404 | enable_shared_with_static_runtimes=yes |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15405 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15406 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 15407 | # Don't use ranlib |
| 15408 | old_postinstall_cmds='chmod 644 $oldlib' |
| 15409 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 15410 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 15411 | case $lt_outputfile in |
| 15412 | *.exe|*.EXE) ;; |
| 15413 | *) |
| 15414 | lt_outputfile="$lt_outputfile.exe" |
| 15415 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 15416 | ;; |
| 15417 | esac~ |
| 15418 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 15419 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 15420 | $RM "$lt_outputfile.manifest"; |
| 15421 | fi' |
| 15422 | ;; |
| 15423 | *) |
| 15424 | # Assume MSVC wrapper |
| 15425 | hardcode_libdir_flag_spec=' ' |
| 15426 | allow_undefined_flag=unsupported |
| 15427 | # Tell ltmain to make .lib files, not .a files. |
| 15428 | libext=lib |
| 15429 | # Tell ltmain to make .dll files, not .so files. |
| 15430 | shrext_cmds=".dll" |
| 15431 | # FIXME: Setting linknames here is a bad hack. |
| 15432 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15433 | # The linker will automatically build a .lib file if we build a DLL. |
| 15434 | old_archive_from_new_cmds='true' |
| 15435 | # FIXME: Should let the user specify the lib program. |
| 15436 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 15437 | enable_shared_with_static_runtimes=yes |
| 15438 | ;; |
| 15439 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15440 | ;; |
| 15441 | |
| 15442 | darwin* | rhapsody*) |
| 15443 | |
| 15444 | |
| 15445 | archive_cmds_need_lc=no |
| 15446 | hardcode_direct=no |
| 15447 | hardcode_automatic=yes |
| 15448 | hardcode_shlibpath_var=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15449 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 15450 | 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\"`' |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15451 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15452 | else |
| 15453 | whole_archive_flag_spec='' |
| 15454 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15455 | link_all_deplibs=yes |
| 15456 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 15457 | case $cc_basename in |
| 15458 | ifort*) _lt_dar_can_shared=yes ;; |
| 15459 | *) _lt_dar_can_shared=$GCC ;; |
| 15460 | esac |
| 15461 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15462 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15463 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 15464 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 15465 | 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}" |
| 15466 | 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}" |
| 15467 | |
| 15468 | else |
| 15469 | ld_shlibs=no |
| 15470 | fi |
| 15471 | |
| 15472 | ;; |
| 15473 | |
| 15474 | dgux*) |
| 15475 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15476 | hardcode_libdir_flag_spec='-L$libdir' |
| 15477 | hardcode_shlibpath_var=no |
| 15478 | ;; |
| 15479 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15480 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15481 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 15482 | # does not break anything, and helps significantly (at the cost of a little |
| 15483 | # extra space). |
| 15484 | freebsd2.2*) |
| 15485 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15486 | hardcode_libdir_flag_spec='-R$libdir' |
| 15487 | hardcode_direct=yes |
| 15488 | hardcode_shlibpath_var=no |
| 15489 | ;; |
| 15490 | |
| 15491 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 15492 | freebsd2.*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15493 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15494 | hardcode_direct=yes |
| 15495 | hardcode_minus_L=yes |
| 15496 | hardcode_shlibpath_var=no |
| 15497 | ;; |
| 15498 | |
| 15499 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15500 | freebsd* | dragonfly*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15501 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15502 | hardcode_libdir_flag_spec='-R$libdir' |
| 15503 | hardcode_direct=yes |
| 15504 | hardcode_shlibpath_var=no |
| 15505 | ;; |
| 15506 | |
| 15507 | hpux9*) |
| 15508 | if test "$GCC" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15509 | 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] | 15510 | else |
| 15511 | 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' |
| 15512 | fi |
| 15513 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15514 | hardcode_libdir_separator=: |
| 15515 | hardcode_direct=yes |
| 15516 | |
| 15517 | # hardcode_minus_L: Not really in the search PATH, |
| 15518 | # but as the default location of the library. |
| 15519 | hardcode_minus_L=yes |
| 15520 | export_dynamic_flag_spec='${wl}-E' |
| 15521 | ;; |
| 15522 | |
| 15523 | hpux10*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15524 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15525 | 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] | 15526 | else |
| 15527 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15528 | fi |
| 15529 | if test "$with_gnu_ld" = no; then |
| 15530 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15531 | hardcode_libdir_separator=: |
| 15532 | hardcode_direct=yes |
| 15533 | hardcode_direct_absolute=yes |
| 15534 | export_dynamic_flag_spec='${wl}-E' |
| 15535 | # hardcode_minus_L: Not really in the search PATH, |
| 15536 | # but as the default location of the library. |
| 15537 | hardcode_minus_L=yes |
| 15538 | fi |
| 15539 | ;; |
| 15540 | |
| 15541 | hpux11*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15542 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15543 | case $host_cpu in |
| 15544 | hppa*64*) |
| 15545 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15546 | ;; |
| 15547 | ia64*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15548 | 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] | 15549 | ;; |
| 15550 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15551 | 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] | 15552 | ;; |
| 15553 | esac |
| 15554 | else |
| 15555 | case $host_cpu in |
| 15556 | hppa*64*) |
| 15557 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15558 | ;; |
| 15559 | ia64*) |
| 15560 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 15561 | ;; |
| 15562 | *) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15563 | |
| 15564 | # Older versions of the 11.00 compiler do not understand -b yet |
| 15565 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 15567 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15568 | if ${lt_cv_prog_compiler__b+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15569 | $as_echo_n "(cached) " >&6 |
| 15570 | else |
| 15571 | lt_cv_prog_compiler__b=no |
| 15572 | save_LDFLAGS="$LDFLAGS" |
| 15573 | LDFLAGS="$LDFLAGS -b" |
| 15574 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 15575 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 15576 | # The linker can only warn and ignore the option if not recognized |
| 15577 | # So say no if there are warnings |
| 15578 | if test -s conftest.err; then |
| 15579 | # Append any errors to the config.log. |
| 15580 | cat conftest.err 1>&5 |
| 15581 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 15582 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 15583 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 15584 | lt_cv_prog_compiler__b=yes |
| 15585 | fi |
| 15586 | else |
| 15587 | lt_cv_prog_compiler__b=yes |
| 15588 | fi |
| 15589 | fi |
| 15590 | $RM -r conftest* |
| 15591 | LDFLAGS="$save_LDFLAGS" |
| 15592 | |
| 15593 | fi |
| 15594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 15595 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 15596 | |
| 15597 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 15598 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 15599 | else |
| 15600 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 15601 | fi |
| 15602 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15603 | ;; |
| 15604 | esac |
| 15605 | fi |
| 15606 | if test "$with_gnu_ld" = no; then |
| 15607 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 15608 | hardcode_libdir_separator=: |
| 15609 | |
| 15610 | case $host_cpu in |
| 15611 | hppa*64*|ia64*) |
| 15612 | hardcode_direct=no |
| 15613 | hardcode_shlibpath_var=no |
| 15614 | ;; |
| 15615 | *) |
| 15616 | hardcode_direct=yes |
| 15617 | hardcode_direct_absolute=yes |
| 15618 | export_dynamic_flag_spec='${wl}-E' |
| 15619 | |
| 15620 | # hardcode_minus_L: Not really in the search PATH, |
| 15621 | # but as the default location of the library. |
| 15622 | hardcode_minus_L=yes |
| 15623 | ;; |
| 15624 | esac |
| 15625 | fi |
| 15626 | ;; |
| 15627 | |
| 15628 | irix5* | irix6* | nonstopux*) |
| 15629 | if test "$GCC" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15630 | 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] | 15631 | # Try to use the -exported_symbol ld option, if it does not |
| 15632 | # work, assume that -exports_file does not work either and |
| 15633 | # implicitly export all symbols. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15634 | # This should be the same for all languages, so no per-tag cache variable. |
| 15635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 15636 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 15637 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 15638 | $as_echo_n "(cached) " >&6 |
| 15639 | else |
| 15640 | save_LDFLAGS="$LDFLAGS" |
| 15641 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 15642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15643 | /* end confdefs.h. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15644 | int foo (void) { return 0; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15645 | _ACEOF |
| 15646 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15647 | lt_cv_irix_exported_symbol=yes |
| 15648 | else |
| 15649 | lt_cv_irix_exported_symbol=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15650 | fi |
| 15651 | rm -f core conftest.err conftest.$ac_objext \ |
| 15652 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15653 | LDFLAGS="$save_LDFLAGS" |
| 15654 | fi |
| 15655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 15656 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 15657 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 15658 | 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' |
| 15659 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15660 | else |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15661 | 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' |
| 15662 | 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] | 15663 | fi |
| 15664 | archive_cmds_need_lc='no' |
| 15665 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15666 | hardcode_libdir_separator=: |
| 15667 | inherit_rpath=yes |
| 15668 | link_all_deplibs=yes |
| 15669 | ;; |
| 15670 | |
| 15671 | netbsd*) |
| 15672 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15673 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 15674 | else |
| 15675 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 15676 | fi |
| 15677 | hardcode_libdir_flag_spec='-R$libdir' |
| 15678 | hardcode_direct=yes |
| 15679 | hardcode_shlibpath_var=no |
| 15680 | ;; |
| 15681 | |
| 15682 | newsos6) |
| 15683 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15684 | hardcode_direct=yes |
| 15685 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15686 | hardcode_libdir_separator=: |
| 15687 | hardcode_shlibpath_var=no |
| 15688 | ;; |
| 15689 | |
| 15690 | *nto* | *qnx*) |
| 15691 | ;; |
| 15692 | |
| 15693 | openbsd*) |
| 15694 | if test -f /usr/libexec/ld.so; then |
| 15695 | hardcode_direct=yes |
| 15696 | hardcode_shlibpath_var=no |
| 15697 | hardcode_direct_absolute=yes |
| 15698 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15699 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15700 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 15701 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15702 | export_dynamic_flag_spec='${wl}-E' |
| 15703 | else |
| 15704 | case $host_os in |
| 15705 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 15706 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15707 | hardcode_libdir_flag_spec='-R$libdir' |
| 15708 | ;; |
| 15709 | *) |
| 15710 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15711 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 15712 | ;; |
| 15713 | esac |
| 15714 | fi |
| 15715 | else |
| 15716 | ld_shlibs=no |
| 15717 | fi |
| 15718 | ;; |
| 15719 | |
| 15720 | os2*) |
| 15721 | hardcode_libdir_flag_spec='-L$libdir' |
| 15722 | hardcode_minus_L=yes |
| 15723 | allow_undefined_flag=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15724 | 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] | 15725 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 15726 | ;; |
| 15727 | |
| 15728 | osf3*) |
| 15729 | if test "$GCC" = yes; then |
| 15730 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15731 | 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] | 15732 | else |
| 15733 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15734 | 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] | 15735 | fi |
| 15736 | archive_cmds_need_lc='no' |
| 15737 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15738 | hardcode_libdir_separator=: |
| 15739 | ;; |
| 15740 | |
| 15741 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 15742 | if test "$GCC" = yes; then |
| 15743 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15744 | 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] | 15745 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 15746 | else |
| 15747 | allow_undefined_flag=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15748 | 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] | 15749 | 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] | 15750 | $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] | 15751 | |
| 15752 | # Both c and cxx compiler support -rpath directly |
| 15753 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 15754 | fi |
| 15755 | archive_cmds_need_lc='no' |
| 15756 | hardcode_libdir_separator=: |
| 15757 | ;; |
| 15758 | |
| 15759 | solaris*) |
| 15760 | no_undefined_flag=' -z defs' |
| 15761 | if test "$GCC" = yes; then |
| 15762 | wlarc='${wl}' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15763 | 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] | 15764 | 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] | 15765 | $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] | 15766 | else |
| 15767 | case `$CC -V 2>&1` in |
| 15768 | *"Compilers 5.0"*) |
| 15769 | wlarc='' |
| 15770 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15771 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15772 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 15773 | ;; |
| 15774 | *) |
| 15775 | wlarc='${wl}' |
| 15776 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15777 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 15778 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 15779 | ;; |
| 15780 | esac |
| 15781 | fi |
| 15782 | hardcode_libdir_flag_spec='-R$libdir' |
| 15783 | hardcode_shlibpath_var=no |
| 15784 | case $host_os in |
| 15785 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 15786 | *) |
| 15787 | # The compiler driver will combine and reorder linker options, |
| 15788 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 15789 | # but is careful enough not to reorder. |
| 15790 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 15791 | if test "$GCC" = yes; then |
| 15792 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 15793 | else |
| 15794 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 15795 | fi |
| 15796 | ;; |
| 15797 | esac |
| 15798 | link_all_deplibs=yes |
| 15799 | ;; |
| 15800 | |
| 15801 | sunos4*) |
| 15802 | if test "x$host_vendor" = xsequent; then |
| 15803 | # Use $CC to link under sequent, because it throws in some extra .o |
| 15804 | # files that make .init and .fini sections work. |
| 15805 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15806 | else |
| 15807 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 15808 | fi |
| 15809 | hardcode_libdir_flag_spec='-L$libdir' |
| 15810 | hardcode_direct=yes |
| 15811 | hardcode_minus_L=yes |
| 15812 | hardcode_shlibpath_var=no |
| 15813 | ;; |
| 15814 | |
| 15815 | sysv4) |
| 15816 | case $host_vendor in |
| 15817 | sni) |
| 15818 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15819 | hardcode_direct=yes # is this really true??? |
| 15820 | ;; |
| 15821 | siemens) |
| 15822 | ## LD is ld it makes a PLAMLIB |
| 15823 | ## CC just makes a GrossModule. |
| 15824 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 15825 | reload_cmds='$CC -r -o $output$reload_objs' |
| 15826 | hardcode_direct=no |
| 15827 | ;; |
| 15828 | motorola) |
| 15829 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15830 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 15831 | ;; |
| 15832 | esac |
| 15833 | runpath_var='LD_RUN_PATH' |
| 15834 | hardcode_shlibpath_var=no |
| 15835 | ;; |
| 15836 | |
| 15837 | sysv4.3*) |
| 15838 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15839 | hardcode_shlibpath_var=no |
| 15840 | export_dynamic_flag_spec='-Bexport' |
| 15841 | ;; |
| 15842 | |
| 15843 | sysv4*MP*) |
| 15844 | if test -d /usr/nec; then |
| 15845 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15846 | hardcode_shlibpath_var=no |
| 15847 | runpath_var=LD_RUN_PATH |
| 15848 | hardcode_runpath_var=yes |
| 15849 | ld_shlibs=yes |
| 15850 | fi |
| 15851 | ;; |
| 15852 | |
| 15853 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 15854 | no_undefined_flag='${wl}-z,text' |
| 15855 | archive_cmds_need_lc=no |
| 15856 | hardcode_shlibpath_var=no |
| 15857 | runpath_var='LD_RUN_PATH' |
| 15858 | |
| 15859 | if test "$GCC" = yes; then |
| 15860 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15861 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15862 | else |
| 15863 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15864 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15865 | fi |
| 15866 | ;; |
| 15867 | |
| 15868 | sysv5* | sco3.2v5* | sco5v6*) |
| 15869 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 15870 | # link with -lc, and that would cause any symbols used from libc to |
| 15871 | # always be unresolved, which means just about no library would |
| 15872 | # ever link correctly. If we're not using GNU ld we use -z text |
| 15873 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 15874 | # as -z defs. |
| 15875 | no_undefined_flag='${wl}-z,text' |
| 15876 | allow_undefined_flag='${wl}-z,nodefs' |
| 15877 | archive_cmds_need_lc=no |
| 15878 | hardcode_shlibpath_var=no |
| 15879 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 15880 | hardcode_libdir_separator=':' |
| 15881 | link_all_deplibs=yes |
| 15882 | export_dynamic_flag_spec='${wl}-Bexport' |
| 15883 | runpath_var='LD_RUN_PATH' |
| 15884 | |
| 15885 | if test "$GCC" = yes; then |
| 15886 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15887 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15888 | else |
| 15889 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15890 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 15891 | fi |
| 15892 | ;; |
| 15893 | |
| 15894 | uts4*) |
| 15895 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15896 | hardcode_libdir_flag_spec='-L$libdir' |
| 15897 | hardcode_shlibpath_var=no |
| 15898 | ;; |
| 15899 | |
| 15900 | *) |
| 15901 | ld_shlibs=no |
| 15902 | ;; |
| 15903 | esac |
| 15904 | |
| 15905 | if test x$host_vendor = xsni; then |
| 15906 | case $host in |
| 15907 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 15908 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 15909 | ;; |
| 15910 | esac |
| 15911 | fi |
| 15912 | fi |
| 15913 | |
| 15914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 15915 | $as_echo "$ld_shlibs" >&6; } |
| 15916 | test "$ld_shlibs" = no && can_build_shared=no |
| 15917 | |
| 15918 | with_gnu_ld=$with_gnu_ld |
| 15919 | |
| 15920 | |
| 15921 | |
| 15922 | |
| 15923 | |
| 15924 | |
| 15925 | |
| 15926 | |
| 15927 | |
| 15928 | |
| 15929 | |
| 15930 | |
| 15931 | |
| 15932 | |
| 15933 | |
| 15934 | # |
| 15935 | # Do we need to explicitly link libc? |
| 15936 | # |
| 15937 | case "x$archive_cmds_need_lc" in |
| 15938 | x|xyes) |
| 15939 | # Assume -lc should be added |
| 15940 | archive_cmds_need_lc=yes |
| 15941 | |
| 15942 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 15943 | case $archive_cmds in |
| 15944 | *'~'*) |
| 15945 | # FIXME: we may have to deal with multi-command sequences. |
| 15946 | ;; |
| 15947 | '$CC '*) |
| 15948 | # Test whether the compiler implicitly links with -lc since on some |
| 15949 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 15950 | # to ld, don't add -lc before -lgcc. |
| 15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 15952 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 15953 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15954 | $as_echo_n "(cached) " >&6 |
| 15955 | else |
| 15956 | $RM conftest* |
| 15957 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15958 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15959 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15960 | (eval $ac_compile) 2>&5 |
| 15961 | ac_status=$? |
| 15962 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15963 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15964 | soname=conftest |
| 15965 | lib=conftest |
| 15966 | libobjs=conftest.$ac_objext |
| 15967 | deplibs= |
| 15968 | wl=$lt_prog_compiler_wl |
| 15969 | pic_flag=$lt_prog_compiler_pic |
| 15970 | compiler_flags=-v |
| 15971 | linker_flags=-v |
| 15972 | verstring= |
| 15973 | output_objdir=. |
| 15974 | libname=conftest |
| 15975 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 15976 | allow_undefined_flag= |
| 15977 | 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] | 15978 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 15979 | ac_status=$? |
| 15980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15981 | test $ac_status = 0; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 15982 | then |
| 15983 | lt_cv_archive_cmds_need_lc=no |
| 15984 | else |
| 15985 | lt_cv_archive_cmds_need_lc=yes |
| 15986 | fi |
| 15987 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 15988 | else |
| 15989 | cat conftest.err 1>&5 |
| 15990 | fi |
| 15991 | $RM conftest* |
| 15992 | |
| 15993 | fi |
| 15994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 15995 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 15996 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 15997 | ;; |
| 15998 | esac |
| 15999 | fi |
| 16000 | ;; |
| 16001 | esac |
| 16002 | |
| 16003 | |
| 16004 | |
| 16005 | |
| 16006 | |
| 16007 | |
| 16008 | |
| 16009 | |
| 16010 | |
| 16011 | |
| 16012 | |
| 16013 | |
| 16014 | |
| 16015 | |
| 16016 | |
| 16017 | |
| 16018 | |
| 16019 | |
| 16020 | |
| 16021 | |
| 16022 | |
| 16023 | |
| 16024 | |
| 16025 | |
| 16026 | |
| 16027 | |
| 16028 | |
| 16029 | |
| 16030 | |
| 16031 | |
| 16032 | |
| 16033 | |
| 16034 | |
| 16035 | |
| 16036 | |
| 16037 | |
| 16038 | |
| 16039 | |
| 16040 | |
| 16041 | |
| 16042 | |
| 16043 | |
| 16044 | |
| 16045 | |
| 16046 | |
| 16047 | |
| 16048 | |
| 16049 | |
| 16050 | |
| 16051 | |
| 16052 | |
| 16053 | |
| 16054 | |
| 16055 | |
| 16056 | |
| 16057 | |
| 16058 | |
| 16059 | |
| 16060 | |
| 16061 | |
| 16062 | |
| 16063 | |
| 16064 | |
| 16065 | |
| 16066 | |
| 16067 | |
| 16068 | |
| 16069 | |
| 16070 | |
| 16071 | |
| 16072 | |
| 16073 | |
| 16074 | |
| 16075 | |
| 16076 | |
| 16077 | |
| 16078 | |
| 16079 | |
| 16080 | |
| 16081 | |
| 16082 | |
| 16083 | |
| 16084 | |
| 16085 | |
| 16086 | |
| 16087 | |
| 16088 | |
| 16089 | |
| 16090 | |
| 16091 | |
| 16092 | |
| 16093 | |
| 16094 | |
| 16095 | |
| 16096 | |
| 16097 | |
| 16098 | |
| 16099 | |
| 16100 | |
| 16101 | |
| 16102 | |
| 16103 | |
| 16104 | |
| 16105 | |
| 16106 | |
| 16107 | |
| 16108 | |
| 16109 | |
| 16110 | |
| 16111 | |
| 16112 | |
| 16113 | |
| 16114 | |
| 16115 | |
| 16116 | |
| 16117 | |
| 16118 | |
| 16119 | |
| 16120 | |
| 16121 | |
| 16122 | |
| 16123 | |
| 16124 | |
| 16125 | |
| 16126 | |
| 16127 | |
| 16128 | |
| 16129 | |
| 16130 | |
| 16131 | |
| 16132 | |
| 16133 | |
| 16134 | |
| 16135 | |
| 16136 | |
| 16137 | |
| 16138 | |
| 16139 | |
| 16140 | |
| 16141 | |
| 16142 | |
| 16143 | |
| 16144 | |
| 16145 | |
| 16146 | |
| 16147 | |
| 16148 | |
| 16149 | |
| 16150 | |
| 16151 | |
| 16152 | |
| 16153 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 16155 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 16156 | |
| 16157 | if test "$GCC" = yes; then |
| 16158 | case $host_os in |
| 16159 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 16160 | *) lt_awk_arg="/^libraries:/" ;; |
| 16161 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16162 | case $host_os in |
| 16163 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 16164 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 16165 | esac |
| 16166 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 16167 | case $lt_search_path_spec in |
| 16168 | *\;*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16169 | # if the path contains ";" then we assume it to be the separator |
| 16170 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 16171 | # assumed that no part of a normal pathname contains ";" but that should |
| 16172 | # okay in the real world where ";" in dirpaths is itself problematic. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16173 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 16174 | ;; |
| 16175 | *) |
| 16176 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 16177 | ;; |
| 16178 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16179 | # Ok, now we have the path, separated by spaces, we can step through it |
| 16180 | # and add multilib dir if necessary. |
| 16181 | lt_tmp_lt_search_path_spec= |
| 16182 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 16183 | for lt_sys_path in $lt_search_path_spec; do |
| 16184 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 16185 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 16186 | else |
| 16187 | test -d "$lt_sys_path" && \ |
| 16188 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 16189 | fi |
| 16190 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16191 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16192 | BEGIN {RS=" "; FS="/|\n";} { |
| 16193 | lt_foo=""; |
| 16194 | lt_count=0; |
| 16195 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 16196 | if ($lt_i != "" && $lt_i != ".") { |
| 16197 | if ($lt_i == "..") { |
| 16198 | lt_count++; |
| 16199 | } else { |
| 16200 | if (lt_count == 0) { |
| 16201 | lt_foo="/" $lt_i lt_foo; |
| 16202 | } else { |
| 16203 | lt_count--; |
| 16204 | } |
| 16205 | } |
| 16206 | } |
| 16207 | } |
| 16208 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 16209 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 16210 | }'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16211 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 16212 | # for these hosts. |
| 16213 | case $host_os in |
| 16214 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 16215 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 16216 | esac |
| 16217 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16218 | else |
| 16219 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16220 | fi |
| 16221 | library_names_spec= |
| 16222 | libname_spec='lib$name' |
| 16223 | soname_spec= |
| 16224 | shrext_cmds=".so" |
| 16225 | postinstall_cmds= |
| 16226 | postuninstall_cmds= |
| 16227 | finish_cmds= |
| 16228 | finish_eval= |
| 16229 | shlibpath_var= |
| 16230 | shlibpath_overrides_runpath=unknown |
| 16231 | version_type=none |
| 16232 | dynamic_linker="$host_os ld.so" |
| 16233 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16234 | need_lib_prefix=unknown |
| 16235 | hardcode_into_libs=no |
| 16236 | |
| 16237 | # when you set need_version to no, make sure it does not cause -set_version |
| 16238 | # flags to be left without arguments |
| 16239 | need_version=unknown |
| 16240 | |
| 16241 | case $host_os in |
| 16242 | aix3*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16243 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16244 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 16245 | shlibpath_var=LIBPATH |
| 16246 | |
| 16247 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 16248 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16249 | ;; |
| 16250 | |
| 16251 | aix[4-9]*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16252 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16253 | need_lib_prefix=no |
| 16254 | need_version=no |
| 16255 | hardcode_into_libs=yes |
| 16256 | if test "$host_cpu" = ia64; then |
| 16257 | # AIX 5 supports IA64 |
| 16258 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 16259 | shlibpath_var=LD_LIBRARY_PATH |
| 16260 | else |
| 16261 | # With GCC up to 2.95.x, collect2 would create an import file |
| 16262 | # for dependence libraries. The import file would start with |
| 16263 | # the line `#! .'. This would cause the generated library to |
| 16264 | # depend on `.', always an invalid library. This was fixed in |
| 16265 | # development snapshots of GCC prior to 3.0. |
| 16266 | case $host_os in |
| 16267 | aix4 | aix4.[01] | aix4.[01].*) |
| 16268 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16269 | echo ' yes ' |
| 16270 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 16271 | : |
| 16272 | else |
| 16273 | can_build_shared=no |
| 16274 | fi |
| 16275 | ;; |
| 16276 | esac |
| 16277 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 16278 | # soname into executable. Probably we can add versioning support to |
| 16279 | # collect2, so additional links can be useful in future. |
| 16280 | if test "$aix_use_runtimelinking" = yes; then |
| 16281 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16282 | # instead of lib<name>.a to let people know that these are not |
| 16283 | # typical AIX shared libraries. |
| 16284 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16285 | else |
| 16286 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 16287 | # and later when we are not doing run time linking. |
| 16288 | library_names_spec='${libname}${release}.a $libname.a' |
| 16289 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16290 | fi |
| 16291 | shlibpath_var=LIBPATH |
| 16292 | fi |
| 16293 | ;; |
| 16294 | |
| 16295 | amigaos*) |
| 16296 | case $host_cpu in |
| 16297 | powerpc) |
| 16298 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 16299 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 16300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16301 | ;; |
| 16302 | m68k) |
| 16303 | library_names_spec='$libname.ixlibrary $libname.a' |
| 16304 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16305 | 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] | 16306 | ;; |
| 16307 | esac |
| 16308 | ;; |
| 16309 | |
| 16310 | beos*) |
| 16311 | library_names_spec='${libname}${shared_ext}' |
| 16312 | dynamic_linker="$host_os ld.so" |
| 16313 | shlibpath_var=LIBRARY_PATH |
| 16314 | ;; |
| 16315 | |
| 16316 | bsdi[45]*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16317 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16318 | need_version=no |
| 16319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16320 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16321 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16322 | shlibpath_var=LD_LIBRARY_PATH |
| 16323 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16324 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16325 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 16326 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16327 | # libtool to hard-code these into programs |
| 16328 | ;; |
| 16329 | |
| 16330 | cygwin* | mingw* | pw32* | cegcc*) |
| 16331 | version_type=windows |
| 16332 | shrext_cmds=".dll" |
| 16333 | need_version=no |
| 16334 | need_lib_prefix=no |
| 16335 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16336 | case $GCC,$cc_basename in |
| 16337 | yes,*) |
| 16338 | # gcc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16339 | library_names_spec='$libname.dll.a' |
| 16340 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16341 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16342 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 16343 | dldir=$destdir/`dirname \$dlpath`~ |
| 16344 | test -d \$dldir || mkdir -p \$dldir~ |
| 16345 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 16346 | chmod a+x \$dldir/$dlname~ |
| 16347 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16348 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 16349 | fi' |
| 16350 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16351 | dlpath=$dir/\$dldll~ |
| 16352 | $RM \$dlpath' |
| 16353 | shlibpath_overrides_runpath=yes |
| 16354 | |
| 16355 | case $host_os in |
| 16356 | cygwin*) |
| 16357 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16358 | 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] | 16359 | |
| 16360 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16361 | ;; |
| 16362 | mingw* | cegcc*) |
| 16363 | # MinGW DLLs use traditional 'lib' prefix |
| 16364 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16365 | ;; |
| 16366 | pw32*) |
| 16367 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16368 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16369 | ;; |
| 16370 | esac |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16371 | dynamic_linker='Win32 ld.exe' |
| 16372 | ;; |
| 16373 | |
| 16374 | *,cl*) |
| 16375 | # Native MSVC |
| 16376 | libname_spec='$name' |
| 16377 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 16378 | library_names_spec='${libname}.dll.lib' |
| 16379 | |
| 16380 | case $build_os in |
| 16381 | mingw*) |
| 16382 | sys_lib_search_path_spec= |
| 16383 | lt_save_ifs=$IFS |
| 16384 | IFS=';' |
| 16385 | for lt_path in $LIB |
| 16386 | do |
| 16387 | IFS=$lt_save_ifs |
| 16388 | # Let DOS variable expansion print the short 8.3 style file name. |
| 16389 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 16390 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 16391 | done |
| 16392 | IFS=$lt_save_ifs |
| 16393 | # Convert to MSYS style. |
| 16394 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 16395 | ;; |
| 16396 | cygwin*) |
| 16397 | # Convert to unix form, then to dos form, then back to unix form |
| 16398 | # but this time dos style (no spaces!) so that the unix form looks |
| 16399 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 16400 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 16401 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 16402 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16403 | ;; |
| 16404 | *) |
| 16405 | sys_lib_search_path_spec="$LIB" |
| 16406 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 16407 | # It is most probably a Windows format PATH. |
| 16408 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16409 | else |
| 16410 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16411 | fi |
| 16412 | # FIXME: find the short name or the path components, as spaces are |
| 16413 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 16414 | ;; |
| 16415 | esac |
| 16416 | |
| 16417 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16418 | postinstall_cmds='base_file=`basename \${file}`~ |
| 16419 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 16420 | dldir=$destdir/`dirname \$dlpath`~ |
| 16421 | test -d \$dldir || mkdir -p \$dldir~ |
| 16422 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 16423 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16424 | dlpath=$dir/\$dldll~ |
| 16425 | $RM \$dlpath' |
| 16426 | shlibpath_overrides_runpath=yes |
| 16427 | dynamic_linker='Win32 link.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16428 | ;; |
| 16429 | |
| 16430 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16431 | # Assume MSVC wrapper |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16432 | 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] | 16433 | dynamic_linker='Win32 ld.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16434 | ;; |
| 16435 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16436 | # FIXME: first we should search . and the directory the executable is in |
| 16437 | shlibpath_var=PATH |
| 16438 | ;; |
| 16439 | |
| 16440 | darwin* | rhapsody*) |
| 16441 | dynamic_linker="$host_os dyld" |
| 16442 | version_type=darwin |
| 16443 | need_lib_prefix=no |
| 16444 | need_version=no |
| 16445 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 16446 | soname_spec='${libname}${release}${major}$shared_ext' |
| 16447 | shlibpath_overrides_runpath=yes |
| 16448 | shlibpath_var=DYLD_LIBRARY_PATH |
| 16449 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 16450 | |
| 16451 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 16452 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 16453 | ;; |
| 16454 | |
| 16455 | dgux*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16456 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16457 | need_lib_prefix=no |
| 16458 | need_version=no |
| 16459 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 16460 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16461 | shlibpath_var=LD_LIBRARY_PATH |
| 16462 | ;; |
| 16463 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16464 | freebsd* | dragonfly*) |
| 16465 | # DragonFly does not have aout. When/if they implement a new |
| 16466 | # versioning mechanism, adjust this. |
| 16467 | if test -x /usr/bin/objformat; then |
| 16468 | objformat=`/usr/bin/objformat` |
| 16469 | else |
| 16470 | case $host_os in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16471 | freebsd[23].*) objformat=aout ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16472 | *) objformat=elf ;; |
| 16473 | esac |
| 16474 | fi |
| 16475 | version_type=freebsd-$objformat |
| 16476 | case $version_type in |
| 16477 | freebsd-elf*) |
| 16478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16479 | need_version=no |
| 16480 | need_lib_prefix=no |
| 16481 | ;; |
| 16482 | freebsd-*) |
| 16483 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 16484 | need_version=yes |
| 16485 | ;; |
| 16486 | esac |
| 16487 | shlibpath_var=LD_LIBRARY_PATH |
| 16488 | case $host_os in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16489 | freebsd2.*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16490 | shlibpath_overrides_runpath=yes |
| 16491 | ;; |
| 16492 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 16493 | shlibpath_overrides_runpath=yes |
| 16494 | hardcode_into_libs=yes |
| 16495 | ;; |
| 16496 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 16497 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 16498 | shlibpath_overrides_runpath=no |
| 16499 | hardcode_into_libs=yes |
| 16500 | ;; |
| 16501 | *) # from 4.6 on, and DragonFly |
| 16502 | shlibpath_overrides_runpath=yes |
| 16503 | hardcode_into_libs=yes |
| 16504 | ;; |
| 16505 | esac |
| 16506 | ;; |
| 16507 | |
| 16508 | gnu*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16509 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16510 | need_lib_prefix=no |
| 16511 | need_version=no |
| 16512 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16513 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16514 | shlibpath_var=LD_LIBRARY_PATH |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16515 | shlibpath_overrides_runpath=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16516 | hardcode_into_libs=yes |
| 16517 | ;; |
| 16518 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16519 | haiku*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16520 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16521 | need_lib_prefix=no |
| 16522 | need_version=no |
| 16523 | dynamic_linker="$host_os runtime_loader" |
| 16524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 16525 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16526 | shlibpath_var=LIBRARY_PATH |
| 16527 | shlibpath_overrides_runpath=yes |
| 16528 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 16529 | hardcode_into_libs=yes |
| 16530 | ;; |
| 16531 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16532 | hpux9* | hpux10* | hpux11*) |
| 16533 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 16534 | # link against other versions. |
| 16535 | version_type=sunos |
| 16536 | need_lib_prefix=no |
| 16537 | need_version=no |
| 16538 | case $host_cpu in |
| 16539 | ia64*) |
| 16540 | shrext_cmds='.so' |
| 16541 | hardcode_into_libs=yes |
| 16542 | dynamic_linker="$host_os dld.so" |
| 16543 | shlibpath_var=LD_LIBRARY_PATH |
| 16544 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16545 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16546 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16547 | if test "X$HPUX_IA64_MODE" = X32; then |
| 16548 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 16549 | else |
| 16550 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 16551 | fi |
| 16552 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16553 | ;; |
| 16554 | hppa*64*) |
| 16555 | shrext_cmds='.sl' |
| 16556 | hardcode_into_libs=yes |
| 16557 | dynamic_linker="$host_os dld.sl" |
| 16558 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 16559 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 16560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16561 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16562 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 16563 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 16564 | ;; |
| 16565 | *) |
| 16566 | shrext_cmds='.sl' |
| 16567 | dynamic_linker="$host_os dld.sl" |
| 16568 | shlibpath_var=SHLIB_PATH |
| 16569 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 16570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16571 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16572 | ;; |
| 16573 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16574 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16575 | postinstall_cmds='chmod 555 $lib' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16576 | # or fails outright, so override atomically: |
| 16577 | install_override_mode=555 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16578 | ;; |
| 16579 | |
| 16580 | interix[3-9]*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16581 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16582 | need_lib_prefix=no |
| 16583 | need_version=no |
| 16584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16585 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16586 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 16587 | shlibpath_var=LD_LIBRARY_PATH |
| 16588 | shlibpath_overrides_runpath=no |
| 16589 | hardcode_into_libs=yes |
| 16590 | ;; |
| 16591 | |
| 16592 | irix5* | irix6* | nonstopux*) |
| 16593 | case $host_os in |
| 16594 | nonstopux*) version_type=nonstopux ;; |
| 16595 | *) |
| 16596 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16597 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16598 | else |
| 16599 | version_type=irix |
| 16600 | fi ;; |
| 16601 | esac |
| 16602 | need_lib_prefix=no |
| 16603 | need_version=no |
| 16604 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16606 | case $host_os in |
| 16607 | irix5* | nonstopux*) |
| 16608 | libsuff= shlibsuff= |
| 16609 | ;; |
| 16610 | *) |
| 16611 | case $LD in # libtool.m4 will add one of these switches to LD |
| 16612 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 16613 | libsuff= shlibsuff= libmagic=32-bit;; |
| 16614 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 16615 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 16616 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 16617 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 16618 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 16619 | esac |
| 16620 | ;; |
| 16621 | esac |
| 16622 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 16623 | shlibpath_overrides_runpath=no |
| 16624 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 16625 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 16626 | hardcode_into_libs=yes |
| 16627 | ;; |
| 16628 | |
| 16629 | # No shared lib support for Linux oldld, aout, or coff. |
| 16630 | linux*oldld* | linux*aout* | linux*coff*) |
| 16631 | dynamic_linker=no |
| 16632 | ;; |
| 16633 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16634 | # This must be glibc/ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16635 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16636 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16637 | need_lib_prefix=no |
| 16638 | need_version=no |
| 16639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16640 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16641 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 16642 | shlibpath_var=LD_LIBRARY_PATH |
| 16643 | shlibpath_overrides_runpath=no |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16644 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16645 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 16646 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16647 | $as_echo_n "(cached) " >&6 |
| 16648 | else |
| 16649 | lt_cv_shlibpath_overrides_runpath=no |
| 16650 | save_LDFLAGS=$LDFLAGS |
| 16651 | save_libdir=$libdir |
| 16652 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 16653 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 16654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16655 | /* end confdefs.h. */ |
| 16656 | |
| 16657 | int |
| 16658 | main () |
| 16659 | { |
| 16660 | |
| 16661 | ; |
| 16662 | return 0; |
| 16663 | } |
| 16664 | _ACEOF |
| 16665 | if ac_fn_c_try_link "$LINENO"; then : |
| 16666 | 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] | 16667 | lt_cv_shlibpath_overrides_runpath=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16668 | fi |
| 16669 | fi |
| 16670 | rm -f core conftest.err conftest.$ac_objext \ |
| 16671 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16672 | LDFLAGS=$save_LDFLAGS |
| 16673 | libdir=$save_libdir |
| 16674 | |
| 16675 | fi |
| 16676 | |
| 16677 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16678 | |
| 16679 | # This implies no fast_install, which is unacceptable. |
| 16680 | # Some rework will be needed to allow for fast_install |
| 16681 | # before this can be enabled. |
| 16682 | hardcode_into_libs=yes |
| 16683 | |
| 16684 | # Add ABI-specific directories to the system library path. |
| 16685 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 16686 | |
| 16687 | # Append ld.so.conf contents to the search path |
| 16688 | if test -f /etc/ld.so.conf; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16689 | 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] | 16690 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16691 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16692 | fi |
| 16693 | |
| 16694 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 16695 | # powerpc, because MkLinux only supported shared libraries with the |
| 16696 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 16697 | # most powerpc-linux boxes support dynamic linking these days and |
| 16698 | # people can always --disable-shared, the test was removed, and we |
| 16699 | # assume the GNU/Linux dynamic linker is in use. |
| 16700 | dynamic_linker='GNU/Linux ld.so' |
| 16701 | ;; |
| 16702 | |
| 16703 | netbsd*) |
| 16704 | version_type=sunos |
| 16705 | need_lib_prefix=no |
| 16706 | need_version=no |
| 16707 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 16708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16709 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16710 | dynamic_linker='NetBSD (a.out) ld.so' |
| 16711 | else |
| 16712 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 16713 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16714 | dynamic_linker='NetBSD ld.elf_so' |
| 16715 | fi |
| 16716 | shlibpath_var=LD_LIBRARY_PATH |
| 16717 | shlibpath_overrides_runpath=yes |
| 16718 | hardcode_into_libs=yes |
| 16719 | ;; |
| 16720 | |
| 16721 | newsos6) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16722 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16724 | shlibpath_var=LD_LIBRARY_PATH |
| 16725 | shlibpath_overrides_runpath=yes |
| 16726 | ;; |
| 16727 | |
| 16728 | *nto* | *qnx*) |
| 16729 | version_type=qnx |
| 16730 | need_lib_prefix=no |
| 16731 | need_version=no |
| 16732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16733 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16734 | shlibpath_var=LD_LIBRARY_PATH |
| 16735 | shlibpath_overrides_runpath=no |
| 16736 | hardcode_into_libs=yes |
| 16737 | dynamic_linker='ldqnx.so' |
| 16738 | ;; |
| 16739 | |
| 16740 | openbsd*) |
| 16741 | version_type=sunos |
| 16742 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 16743 | need_lib_prefix=no |
| 16744 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 16745 | case $host_os in |
| 16746 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 16747 | *) need_version=no ;; |
| 16748 | esac |
| 16749 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16750 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 16751 | shlibpath_var=LD_LIBRARY_PATH |
| 16752 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 16753 | case $host_os in |
| 16754 | openbsd2.[89] | openbsd2.[89].*) |
| 16755 | shlibpath_overrides_runpath=no |
| 16756 | ;; |
| 16757 | *) |
| 16758 | shlibpath_overrides_runpath=yes |
| 16759 | ;; |
| 16760 | esac |
| 16761 | else |
| 16762 | shlibpath_overrides_runpath=yes |
| 16763 | fi |
| 16764 | ;; |
| 16765 | |
| 16766 | os2*) |
| 16767 | libname_spec='$name' |
| 16768 | shrext_cmds=".dll" |
| 16769 | need_lib_prefix=no |
| 16770 | library_names_spec='$libname${shared_ext} $libname.a' |
| 16771 | dynamic_linker='OS/2 ld.exe' |
| 16772 | shlibpath_var=LIBPATH |
| 16773 | ;; |
| 16774 | |
| 16775 | osf3* | osf4* | osf5*) |
| 16776 | version_type=osf |
| 16777 | need_lib_prefix=no |
| 16778 | need_version=no |
| 16779 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16781 | shlibpath_var=LD_LIBRARY_PATH |
| 16782 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 16783 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 16784 | ;; |
| 16785 | |
| 16786 | rdos*) |
| 16787 | dynamic_linker=no |
| 16788 | ;; |
| 16789 | |
| 16790 | solaris*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16791 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16792 | need_lib_prefix=no |
| 16793 | need_version=no |
| 16794 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16795 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16796 | shlibpath_var=LD_LIBRARY_PATH |
| 16797 | shlibpath_overrides_runpath=yes |
| 16798 | hardcode_into_libs=yes |
| 16799 | # ldd complains unless libraries are executable |
| 16800 | postinstall_cmds='chmod +x $lib' |
| 16801 | ;; |
| 16802 | |
| 16803 | sunos4*) |
| 16804 | version_type=sunos |
| 16805 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 16806 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 16807 | shlibpath_var=LD_LIBRARY_PATH |
| 16808 | shlibpath_overrides_runpath=yes |
| 16809 | if test "$with_gnu_ld" = yes; then |
| 16810 | need_lib_prefix=no |
| 16811 | fi |
| 16812 | need_version=yes |
| 16813 | ;; |
| 16814 | |
| 16815 | sysv4 | sysv4.3*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16816 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16817 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16818 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16819 | shlibpath_var=LD_LIBRARY_PATH |
| 16820 | case $host_vendor in |
| 16821 | sni) |
| 16822 | shlibpath_overrides_runpath=no |
| 16823 | need_lib_prefix=no |
| 16824 | runpath_var=LD_RUN_PATH |
| 16825 | ;; |
| 16826 | siemens) |
| 16827 | need_lib_prefix=no |
| 16828 | ;; |
| 16829 | motorola) |
| 16830 | need_lib_prefix=no |
| 16831 | need_version=no |
| 16832 | shlibpath_overrides_runpath=no |
| 16833 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 16834 | ;; |
| 16835 | esac |
| 16836 | ;; |
| 16837 | |
| 16838 | sysv4*MP*) |
| 16839 | if test -d /usr/nec ;then |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16840 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16841 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 16842 | soname_spec='$libname${shared_ext}.$major' |
| 16843 | shlibpath_var=LD_LIBRARY_PATH |
| 16844 | fi |
| 16845 | ;; |
| 16846 | |
| 16847 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 16848 | version_type=freebsd-elf |
| 16849 | need_lib_prefix=no |
| 16850 | need_version=no |
| 16851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 16852 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16853 | shlibpath_var=LD_LIBRARY_PATH |
| 16854 | shlibpath_overrides_runpath=yes |
| 16855 | hardcode_into_libs=yes |
| 16856 | if test "$with_gnu_ld" = yes; then |
| 16857 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 16858 | else |
| 16859 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 16860 | case $host_os in |
| 16861 | sco3.2v5*) |
| 16862 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 16863 | ;; |
| 16864 | esac |
| 16865 | fi |
| 16866 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 16867 | ;; |
| 16868 | |
| 16869 | tpf*) |
| 16870 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16871 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16872 | need_lib_prefix=no |
| 16873 | need_version=no |
| 16874 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16875 | shlibpath_var=LD_LIBRARY_PATH |
| 16876 | shlibpath_overrides_runpath=no |
| 16877 | hardcode_into_libs=yes |
| 16878 | ;; |
| 16879 | |
| 16880 | uts4*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 16881 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 16883 | soname_spec='${libname}${release}${shared_ext}$major' |
| 16884 | shlibpath_var=LD_LIBRARY_PATH |
| 16885 | ;; |
| 16886 | |
| 16887 | *) |
| 16888 | dynamic_linker=no |
| 16889 | ;; |
| 16890 | esac |
| 16891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 16892 | $as_echo "$dynamic_linker" >&6; } |
| 16893 | test "$dynamic_linker" = no && can_build_shared=no |
| 16894 | |
| 16895 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 16896 | if test "$GCC" = yes; then |
| 16897 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 16898 | fi |
| 16899 | |
| 16900 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 16901 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 16902 | fi |
| 16903 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 16904 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 16905 | fi |
| 16906 | |
| 16907 | |
| 16908 | |
| 16909 | |
| 16910 | |
| 16911 | |
| 16912 | |
| 16913 | |
| 16914 | |
| 16915 | |
| 16916 | |
| 16917 | |
| 16918 | |
| 16919 | |
| 16920 | |
| 16921 | |
| 16922 | |
| 16923 | |
| 16924 | |
| 16925 | |
| 16926 | |
| 16927 | |
| 16928 | |
| 16929 | |
| 16930 | |
| 16931 | |
| 16932 | |
| 16933 | |
| 16934 | |
| 16935 | |
| 16936 | |
| 16937 | |
| 16938 | |
| 16939 | |
| 16940 | |
| 16941 | |
| 16942 | |
| 16943 | |
| 16944 | |
| 16945 | |
| 16946 | |
| 16947 | |
| 16948 | |
| 16949 | |
| 16950 | |
| 16951 | |
| 16952 | |
| 16953 | |
| 16954 | |
| 16955 | |
| 16956 | |
| 16957 | |
| 16958 | |
| 16959 | |
| 16960 | |
| 16961 | |
| 16962 | |
| 16963 | |
| 16964 | |
| 16965 | |
| 16966 | |
| 16967 | |
| 16968 | |
| 16969 | |
| 16970 | |
| 16971 | |
| 16972 | |
| 16973 | |
| 16974 | |
| 16975 | |
| 16976 | |
| 16977 | |
| 16978 | |
| 16979 | |
| 16980 | |
| 16981 | |
| 16982 | |
| 16983 | |
| 16984 | |
| 16985 | |
| 16986 | |
| 16987 | |
| 16988 | |
| 16989 | |
| 16990 | |
| 16991 | |
| 16992 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 16993 | |
| 16994 | |
| 16995 | |
| 16996 | |
| 16997 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 16998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 16999 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 17000 | hardcode_action= |
| 17001 | if test -n "$hardcode_libdir_flag_spec" || |
| 17002 | test -n "$runpath_var" || |
| 17003 | test "X$hardcode_automatic" = "Xyes" ; then |
| 17004 | |
| 17005 | # We can hardcode non-existent directories. |
| 17006 | if test "$hardcode_direct" != no && |
| 17007 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 17008 | # have to relink, otherwise we might link with an installed library |
| 17009 | # when we should be linking with a yet-to-be-installed one |
| 17010 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 17011 | test "$hardcode_minus_L" != no; then |
| 17012 | # Linking always hardcodes the temporary library directory. |
| 17013 | hardcode_action=relink |
| 17014 | else |
| 17015 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 17016 | hardcode_action=immediate |
| 17017 | fi |
| 17018 | else |
| 17019 | # We cannot hardcode anything, or else we can only hardcode existing |
| 17020 | # directories. |
| 17021 | hardcode_action=unsupported |
| 17022 | fi |
| 17023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 17024 | $as_echo "$hardcode_action" >&6; } |
| 17025 | |
| 17026 | if test "$hardcode_action" = relink || |
| 17027 | test "$inherit_rpath" = yes; then |
| 17028 | # Fast installation is not supported |
| 17029 | enable_fast_install=no |
| 17030 | elif test "$shlibpath_overrides_runpath" = yes || |
| 17031 | test "$enable_shared" = no; then |
| 17032 | # Fast installation is not necessary |
| 17033 | enable_fast_install=needless |
| 17034 | fi |
| 17035 | |
| 17036 | |
| 17037 | |
| 17038 | |
| 17039 | |
| 17040 | |
| 17041 | if test "x$enable_dlopen" != xyes; then |
| 17042 | enable_dlopen=unknown |
| 17043 | enable_dlopen_self=unknown |
| 17044 | enable_dlopen_self_static=unknown |
| 17045 | else |
| 17046 | lt_cv_dlopen=no |
| 17047 | lt_cv_dlopen_libs= |
| 17048 | |
| 17049 | case $host_os in |
| 17050 | beos*) |
| 17051 | lt_cv_dlopen="load_add_on" |
| 17052 | lt_cv_dlopen_libs= |
| 17053 | lt_cv_dlopen_self=yes |
| 17054 | ;; |
| 17055 | |
| 17056 | mingw* | pw32* | cegcc*) |
| 17057 | lt_cv_dlopen="LoadLibrary" |
| 17058 | lt_cv_dlopen_libs= |
| 17059 | ;; |
| 17060 | |
| 17061 | cygwin*) |
| 17062 | lt_cv_dlopen="dlopen" |
| 17063 | lt_cv_dlopen_libs= |
| 17064 | ;; |
| 17065 | |
| 17066 | darwin*) |
| 17067 | # if libdl is installed we need to link against it |
| 17068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 17069 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17070 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17071 | $as_echo_n "(cached) " >&6 |
| 17072 | else |
| 17073 | ac_check_lib_save_LIBS=$LIBS |
| 17074 | LIBS="-ldl $LIBS" |
| 17075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17076 | /* end confdefs.h. */ |
| 17077 | |
| 17078 | /* Override any GCC internal prototype to avoid an error. |
| 17079 | Use char because int might match the return type of a GCC |
| 17080 | builtin and then its argument prototype would still apply. */ |
| 17081 | #ifdef __cplusplus |
| 17082 | extern "C" |
| 17083 | #endif |
| 17084 | char dlopen (); |
| 17085 | int |
| 17086 | main () |
| 17087 | { |
| 17088 | return dlopen (); |
| 17089 | ; |
| 17090 | return 0; |
| 17091 | } |
| 17092 | _ACEOF |
| 17093 | if ac_fn_c_try_link "$LINENO"; then : |
| 17094 | ac_cv_lib_dl_dlopen=yes |
| 17095 | else |
| 17096 | ac_cv_lib_dl_dlopen=no |
| 17097 | fi |
| 17098 | rm -f core conftest.err conftest.$ac_objext \ |
| 17099 | conftest$ac_exeext conftest.$ac_ext |
| 17100 | LIBS=$ac_check_lib_save_LIBS |
| 17101 | fi |
| 17102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17103 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17104 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17105 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17106 | else |
| 17107 | |
| 17108 | lt_cv_dlopen="dyld" |
| 17109 | lt_cv_dlopen_libs= |
| 17110 | lt_cv_dlopen_self=yes |
| 17111 | |
| 17112 | fi |
| 17113 | |
| 17114 | ;; |
| 17115 | |
| 17116 | *) |
| 17117 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17118 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17119 | lt_cv_dlopen="shl_load" |
| 17120 | else |
| 17121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 17122 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17123 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17124 | $as_echo_n "(cached) " >&6 |
| 17125 | else |
| 17126 | ac_check_lib_save_LIBS=$LIBS |
| 17127 | LIBS="-ldld $LIBS" |
| 17128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17129 | /* end confdefs.h. */ |
| 17130 | |
| 17131 | /* Override any GCC internal prototype to avoid an error. |
| 17132 | Use char because int might match the return type of a GCC |
| 17133 | builtin and then its argument prototype would still apply. */ |
| 17134 | #ifdef __cplusplus |
| 17135 | extern "C" |
| 17136 | #endif |
| 17137 | char shl_load (); |
| 17138 | int |
| 17139 | main () |
| 17140 | { |
| 17141 | return shl_load (); |
| 17142 | ; |
| 17143 | return 0; |
| 17144 | } |
| 17145 | _ACEOF |
| 17146 | if ac_fn_c_try_link "$LINENO"; then : |
| 17147 | ac_cv_lib_dld_shl_load=yes |
| 17148 | else |
| 17149 | ac_cv_lib_dld_shl_load=no |
| 17150 | fi |
| 17151 | rm -f core conftest.err conftest.$ac_objext \ |
| 17152 | conftest$ac_exeext conftest.$ac_ext |
| 17153 | LIBS=$ac_check_lib_save_LIBS |
| 17154 | fi |
| 17155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 17156 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17157 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17158 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 17159 | else |
| 17160 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17161 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17162 | lt_cv_dlopen="dlopen" |
| 17163 | else |
| 17164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 17165 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17166 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17167 | $as_echo_n "(cached) " >&6 |
| 17168 | else |
| 17169 | ac_check_lib_save_LIBS=$LIBS |
| 17170 | LIBS="-ldl $LIBS" |
| 17171 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17172 | /* end confdefs.h. */ |
| 17173 | |
| 17174 | /* Override any GCC internal prototype to avoid an error. |
| 17175 | Use char because int might match the return type of a GCC |
| 17176 | builtin and then its argument prototype would still apply. */ |
| 17177 | #ifdef __cplusplus |
| 17178 | extern "C" |
| 17179 | #endif |
| 17180 | char dlopen (); |
| 17181 | int |
| 17182 | main () |
| 17183 | { |
| 17184 | return dlopen (); |
| 17185 | ; |
| 17186 | return 0; |
| 17187 | } |
| 17188 | _ACEOF |
| 17189 | if ac_fn_c_try_link "$LINENO"; then : |
| 17190 | ac_cv_lib_dl_dlopen=yes |
| 17191 | else |
| 17192 | ac_cv_lib_dl_dlopen=no |
| 17193 | fi |
| 17194 | rm -f core conftest.err conftest.$ac_objext \ |
| 17195 | conftest$ac_exeext conftest.$ac_ext |
| 17196 | LIBS=$ac_check_lib_save_LIBS |
| 17197 | fi |
| 17198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 17199 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17200 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17201 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 17202 | else |
| 17203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 17204 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17205 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17206 | $as_echo_n "(cached) " >&6 |
| 17207 | else |
| 17208 | ac_check_lib_save_LIBS=$LIBS |
| 17209 | LIBS="-lsvld $LIBS" |
| 17210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17211 | /* end confdefs.h. */ |
| 17212 | |
| 17213 | /* Override any GCC internal prototype to avoid an error. |
| 17214 | Use char because int might match the return type of a GCC |
| 17215 | builtin and then its argument prototype would still apply. */ |
| 17216 | #ifdef __cplusplus |
| 17217 | extern "C" |
| 17218 | #endif |
| 17219 | char dlopen (); |
| 17220 | int |
| 17221 | main () |
| 17222 | { |
| 17223 | return dlopen (); |
| 17224 | ; |
| 17225 | return 0; |
| 17226 | } |
| 17227 | _ACEOF |
| 17228 | if ac_fn_c_try_link "$LINENO"; then : |
| 17229 | ac_cv_lib_svld_dlopen=yes |
| 17230 | else |
| 17231 | ac_cv_lib_svld_dlopen=no |
| 17232 | fi |
| 17233 | rm -f core conftest.err conftest.$ac_objext \ |
| 17234 | conftest$ac_exeext conftest.$ac_ext |
| 17235 | LIBS=$ac_check_lib_save_LIBS |
| 17236 | fi |
| 17237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 17238 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17239 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17240 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 17241 | else |
| 17242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 17243 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17244 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17245 | $as_echo_n "(cached) " >&6 |
| 17246 | else |
| 17247 | ac_check_lib_save_LIBS=$LIBS |
| 17248 | LIBS="-ldld $LIBS" |
| 17249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17250 | /* end confdefs.h. */ |
| 17251 | |
| 17252 | /* Override any GCC internal prototype to avoid an error. |
| 17253 | Use char because int might match the return type of a GCC |
| 17254 | builtin and then its argument prototype would still apply. */ |
| 17255 | #ifdef __cplusplus |
| 17256 | extern "C" |
| 17257 | #endif |
| 17258 | char dld_link (); |
| 17259 | int |
| 17260 | main () |
| 17261 | { |
| 17262 | return dld_link (); |
| 17263 | ; |
| 17264 | return 0; |
| 17265 | } |
| 17266 | _ACEOF |
| 17267 | if ac_fn_c_try_link "$LINENO"; then : |
| 17268 | ac_cv_lib_dld_dld_link=yes |
| 17269 | else |
| 17270 | ac_cv_lib_dld_dld_link=no |
| 17271 | fi |
| 17272 | rm -f core conftest.err conftest.$ac_objext \ |
| 17273 | conftest$ac_exeext conftest.$ac_ext |
| 17274 | LIBS=$ac_check_lib_save_LIBS |
| 17275 | fi |
| 17276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 17277 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17278 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17279 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 17280 | fi |
| 17281 | |
| 17282 | |
| 17283 | fi |
| 17284 | |
| 17285 | |
| 17286 | fi |
| 17287 | |
| 17288 | |
| 17289 | fi |
| 17290 | |
| 17291 | |
| 17292 | fi |
| 17293 | |
| 17294 | |
| 17295 | fi |
| 17296 | |
| 17297 | ;; |
| 17298 | esac |
| 17299 | |
| 17300 | if test "x$lt_cv_dlopen" != xno; then |
| 17301 | enable_dlopen=yes |
| 17302 | else |
| 17303 | enable_dlopen=no |
| 17304 | fi |
| 17305 | |
| 17306 | case $lt_cv_dlopen in |
| 17307 | dlopen) |
| 17308 | save_CPPFLAGS="$CPPFLAGS" |
| 17309 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 17310 | |
| 17311 | save_LDFLAGS="$LDFLAGS" |
| 17312 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 17313 | |
| 17314 | save_LIBS="$LIBS" |
| 17315 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 17316 | |
| 17317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 17318 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17319 | if ${lt_cv_dlopen_self+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17320 | $as_echo_n "(cached) " >&6 |
| 17321 | else |
| 17322 | if test "$cross_compiling" = yes; then : |
| 17323 | lt_cv_dlopen_self=cross |
| 17324 | else |
| 17325 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17326 | lt_status=$lt_dlunknown |
| 17327 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17328 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17329 | #include "confdefs.h" |
| 17330 | |
| 17331 | #if HAVE_DLFCN_H |
| 17332 | #include <dlfcn.h> |
| 17333 | #endif |
| 17334 | |
| 17335 | #include <stdio.h> |
| 17336 | |
| 17337 | #ifdef RTLD_GLOBAL |
| 17338 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17339 | #else |
| 17340 | # ifdef DL_GLOBAL |
| 17341 | # define LT_DLGLOBAL DL_GLOBAL |
| 17342 | # else |
| 17343 | # define LT_DLGLOBAL 0 |
| 17344 | # endif |
| 17345 | #endif |
| 17346 | |
| 17347 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17348 | find out it does not work in some platform. */ |
| 17349 | #ifndef LT_DLLAZY_OR_NOW |
| 17350 | # ifdef RTLD_LAZY |
| 17351 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17352 | # else |
| 17353 | # ifdef DL_LAZY |
| 17354 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17355 | # else |
| 17356 | # ifdef RTLD_NOW |
| 17357 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17358 | # else |
| 17359 | # ifdef DL_NOW |
| 17360 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17361 | # else |
| 17362 | # define LT_DLLAZY_OR_NOW 0 |
| 17363 | # endif |
| 17364 | # endif |
| 17365 | # endif |
| 17366 | # endif |
| 17367 | #endif |
| 17368 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17369 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 17370 | correspondingly for the symbols needed. */ |
| 17371 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17372 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17373 | #endif |
| 17374 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17375 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17376 | int main () |
| 17377 | { |
| 17378 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17379 | int status = $lt_dlunknown; |
| 17380 | |
| 17381 | if (self) |
| 17382 | { |
| 17383 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17384 | else |
| 17385 | { |
| 17386 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17387 | else puts (dlerror ()); |
| 17388 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17389 | /* dlclose (self); */ |
| 17390 | } |
| 17391 | else |
| 17392 | puts (dlerror ()); |
| 17393 | |
| 17394 | return status; |
| 17395 | } |
| 17396 | _LT_EOF |
| 17397 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 17398 | (eval $ac_link) 2>&5 |
| 17399 | ac_status=$? |
| 17400 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17401 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17402 | (./conftest; exit; ) >&5 2>/dev/null |
| 17403 | lt_status=$? |
| 17404 | case x$lt_status in |
| 17405 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 17406 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 17407 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 17408 | esac |
| 17409 | else : |
| 17410 | # compilation failed |
| 17411 | lt_cv_dlopen_self=no |
| 17412 | fi |
| 17413 | fi |
| 17414 | rm -fr conftest* |
| 17415 | |
| 17416 | |
| 17417 | fi |
| 17418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 17419 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 17420 | |
| 17421 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 17422 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 17423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 17424 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17425 | if ${lt_cv_dlopen_self_static+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17426 | $as_echo_n "(cached) " >&6 |
| 17427 | else |
| 17428 | if test "$cross_compiling" = yes; then : |
| 17429 | lt_cv_dlopen_self_static=cross |
| 17430 | else |
| 17431 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 17432 | lt_status=$lt_dlunknown |
| 17433 | cat > conftest.$ac_ext <<_LT_EOF |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17434 | #line $LINENO "configure" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17435 | #include "confdefs.h" |
| 17436 | |
| 17437 | #if HAVE_DLFCN_H |
| 17438 | #include <dlfcn.h> |
| 17439 | #endif |
| 17440 | |
| 17441 | #include <stdio.h> |
| 17442 | |
| 17443 | #ifdef RTLD_GLOBAL |
| 17444 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 17445 | #else |
| 17446 | # ifdef DL_GLOBAL |
| 17447 | # define LT_DLGLOBAL DL_GLOBAL |
| 17448 | # else |
| 17449 | # define LT_DLGLOBAL 0 |
| 17450 | # endif |
| 17451 | #endif |
| 17452 | |
| 17453 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 17454 | find out it does not work in some platform. */ |
| 17455 | #ifndef LT_DLLAZY_OR_NOW |
| 17456 | # ifdef RTLD_LAZY |
| 17457 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 17458 | # else |
| 17459 | # ifdef DL_LAZY |
| 17460 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 17461 | # else |
| 17462 | # ifdef RTLD_NOW |
| 17463 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 17464 | # else |
| 17465 | # ifdef DL_NOW |
| 17466 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 17467 | # else |
| 17468 | # define LT_DLLAZY_OR_NOW 0 |
| 17469 | # endif |
| 17470 | # endif |
| 17471 | # endif |
| 17472 | # endif |
| 17473 | #endif |
| 17474 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17475 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 17476 | correspondingly for the symbols needed. */ |
| 17477 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17478 | int fnord () __attribute__((visibility("default"))); |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17479 | #endif |
| 17480 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17481 | int fnord () { return 42; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17482 | int main () |
| 17483 | { |
| 17484 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 17485 | int status = $lt_dlunknown; |
| 17486 | |
| 17487 | if (self) |
| 17488 | { |
| 17489 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17490 | else |
| 17491 | { |
| 17492 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 17493 | else puts (dlerror ()); |
| 17494 | } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17495 | /* dlclose (self); */ |
| 17496 | } |
| 17497 | else |
| 17498 | puts (dlerror ()); |
| 17499 | |
| 17500 | return status; |
| 17501 | } |
| 17502 | _LT_EOF |
| 17503 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 17504 | (eval $ac_link) 2>&5 |
| 17505 | ac_status=$? |
| 17506 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 17507 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 17508 | (./conftest; exit; ) >&5 2>/dev/null |
| 17509 | lt_status=$? |
| 17510 | case x$lt_status in |
| 17511 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17512 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 17513 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 17514 | esac |
| 17515 | else : |
| 17516 | # compilation failed |
| 17517 | lt_cv_dlopen_self_static=no |
| 17518 | fi |
| 17519 | fi |
| 17520 | rm -fr conftest* |
| 17521 | |
| 17522 | |
| 17523 | fi |
| 17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 17525 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 17526 | fi |
| 17527 | |
| 17528 | CPPFLAGS="$save_CPPFLAGS" |
| 17529 | LDFLAGS="$save_LDFLAGS" |
| 17530 | LIBS="$save_LIBS" |
| 17531 | ;; |
| 17532 | esac |
| 17533 | |
| 17534 | case $lt_cv_dlopen_self in |
| 17535 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 17536 | *) enable_dlopen_self=unknown ;; |
| 17537 | esac |
| 17538 | |
| 17539 | case $lt_cv_dlopen_self_static in |
| 17540 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 17541 | *) enable_dlopen_self_static=unknown ;; |
| 17542 | esac |
| 17543 | fi |
| 17544 | |
| 17545 | |
| 17546 | |
| 17547 | |
| 17548 | |
| 17549 | |
| 17550 | |
| 17551 | |
| 17552 | |
| 17553 | |
| 17554 | |
| 17555 | |
| 17556 | |
| 17557 | |
| 17558 | |
| 17559 | |
| 17560 | |
| 17561 | striplib= |
| 17562 | old_striplib= |
| 17563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 17564 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 17565 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 17566 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 17567 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 17568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17569 | $as_echo "yes" >&6; } |
| 17570 | else |
| 17571 | # FIXME - insert some real tests, host_os isn't really good enough |
| 17572 | case $host_os in |
| 17573 | darwin*) |
| 17574 | if test -n "$STRIP" ; then |
| 17575 | striplib="$STRIP -x" |
| 17576 | old_striplib="$STRIP -S" |
| 17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17578 | $as_echo "yes" >&6; } |
| 17579 | else |
| 17580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17581 | $as_echo "no" >&6; } |
| 17582 | fi |
| 17583 | ;; |
| 17584 | *) |
| 17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17586 | $as_echo "no" >&6; } |
| 17587 | ;; |
| 17588 | esac |
| 17589 | fi |
| 17590 | |
| 17591 | |
| 17592 | |
| 17593 | |
| 17594 | |
| 17595 | |
| 17596 | |
| 17597 | |
| 17598 | |
| 17599 | |
| 17600 | |
| 17601 | |
| 17602 | # Report which library types will actually be built |
| 17603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 17604 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 17605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 17606 | $as_echo "$can_build_shared" >&6; } |
| 17607 | |
| 17608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 17609 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 17610 | test "$can_build_shared" = "no" && enable_shared=no |
| 17611 | |
| 17612 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 17613 | # are all built from PIC. |
| 17614 | case $host_os in |
| 17615 | aix3*) |
| 17616 | test "$enable_shared" = yes && enable_static=no |
| 17617 | if test -n "$RANLIB"; then |
| 17618 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 17619 | postinstall_cmds='$RANLIB $lib' |
| 17620 | fi |
| 17621 | ;; |
| 17622 | |
| 17623 | aix[4-9]*) |
| 17624 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 17625 | test "$enable_shared" = yes && enable_static=no |
| 17626 | fi |
| 17627 | ;; |
| 17628 | esac |
| 17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 17630 | $as_echo "$enable_shared" >&6; } |
| 17631 | |
| 17632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 17633 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 17634 | # Make sure either enable_shared or enable_static is yes. |
| 17635 | test "$enable_shared" = yes || enable_static=yes |
| 17636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 17637 | $as_echo "$enable_static" >&6; } |
| 17638 | |
| 17639 | |
| 17640 | |
| 17641 | |
| 17642 | fi |
| 17643 | ac_ext=c |
| 17644 | ac_cpp='$CPP $CPPFLAGS' |
| 17645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17648 | |
| 17649 | CC="$lt_save_CC" |
| 17650 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17651 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 17652 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 17653 | (test "X$CXX" != "Xg++"))) ; then |
| 17654 | ac_ext=cpp |
| 17655 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17656 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17657 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17658 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 17660 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 17661 | if test -z "$CXXCPP"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17662 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17663 | $as_echo_n "(cached) " >&6 |
| 17664 | else |
| 17665 | # Double quotes because CXXCPP needs to be expanded |
| 17666 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 17667 | do |
| 17668 | ac_preproc_ok=false |
| 17669 | for ac_cxx_preproc_warn_flag in '' yes |
| 17670 | do |
| 17671 | # Use a header file that comes with gcc, so configuring glibc |
| 17672 | # with a fresh cross-compiler works. |
| 17673 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17674 | # <limits.h> exists even on freestanding compilers. |
| 17675 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 17676 | # not just through cpp. "Syntax error" is here to catch this case. |
| 17677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17678 | /* end confdefs.h. */ |
| 17679 | #ifdef __STDC__ |
| 17680 | # include <limits.h> |
| 17681 | #else |
| 17682 | # include <assert.h> |
| 17683 | #endif |
| 17684 | Syntax error |
| 17685 | _ACEOF |
| 17686 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 17687 | |
| 17688 | else |
| 17689 | # Broken: fails on valid input. |
| 17690 | continue |
| 17691 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17692 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17693 | |
| 17694 | # OK, works on sane cases. Now check whether nonexistent headers |
| 17695 | # can be detected and how. |
| 17696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17697 | /* end confdefs.h. */ |
| 17698 | #include <ac_nonexistent.h> |
| 17699 | _ACEOF |
| 17700 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 17701 | # Broken: success on invalid input. |
| 17702 | continue |
| 17703 | else |
| 17704 | # Passes both tests. |
| 17705 | ac_preproc_ok=: |
| 17706 | break |
| 17707 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17708 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17709 | |
| 17710 | done |
| 17711 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17712 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17713 | if $ac_preproc_ok; then : |
| 17714 | break |
| 17715 | fi |
| 17716 | |
| 17717 | done |
| 17718 | ac_cv_prog_CXXCPP=$CXXCPP |
| 17719 | |
| 17720 | fi |
| 17721 | CXXCPP=$ac_cv_prog_CXXCPP |
| 17722 | else |
| 17723 | ac_cv_prog_CXXCPP=$CXXCPP |
| 17724 | fi |
| 17725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 17726 | $as_echo "$CXXCPP" >&6; } |
| 17727 | ac_preproc_ok=false |
| 17728 | for ac_cxx_preproc_warn_flag in '' yes |
| 17729 | do |
| 17730 | # Use a header file that comes with gcc, so configuring glibc |
| 17731 | # with a fresh cross-compiler works. |
| 17732 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 17733 | # <limits.h> exists even on freestanding compilers. |
| 17734 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 17735 | # not just through cpp. "Syntax error" is here to catch this case. |
| 17736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17737 | /* end confdefs.h. */ |
| 17738 | #ifdef __STDC__ |
| 17739 | # include <limits.h> |
| 17740 | #else |
| 17741 | # include <assert.h> |
| 17742 | #endif |
| 17743 | Syntax error |
| 17744 | _ACEOF |
| 17745 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 17746 | |
| 17747 | else |
| 17748 | # Broken: fails on valid input. |
| 17749 | continue |
| 17750 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17751 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17752 | |
| 17753 | # OK, works on sane cases. Now check whether nonexistent headers |
| 17754 | # can be detected and how. |
| 17755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17756 | /* end confdefs.h. */ |
| 17757 | #include <ac_nonexistent.h> |
| 17758 | _ACEOF |
| 17759 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 17760 | # Broken: success on invalid input. |
| 17761 | continue |
| 17762 | else |
| 17763 | # Passes both tests. |
| 17764 | ac_preproc_ok=: |
| 17765 | break |
| 17766 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17767 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17768 | |
| 17769 | done |
| 17770 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17771 | rm -f conftest.i conftest.err conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17772 | if $ac_preproc_ok; then : |
| 17773 | |
| 17774 | else |
| 17775 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17776 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17777 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 17778 | See \`config.log' for more details" "$LINENO" 5; } |
| 17779 | fi |
| 17780 | |
| 17781 | ac_ext=c |
| 17782 | ac_cpp='$CPP $CPPFLAGS' |
| 17783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 17786 | |
| 17787 | else |
| 17788 | _lt_caught_CXX_error=yes |
| 17789 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17790 | |
| 17791 | ac_ext=cpp |
| 17792 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 17793 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 17794 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 17795 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 17796 | |
| 17797 | archive_cmds_need_lc_CXX=no |
| 17798 | allow_undefined_flag_CXX= |
| 17799 | always_export_symbols_CXX=no |
| 17800 | archive_expsym_cmds_CXX= |
| 17801 | compiler_needs_object_CXX=no |
| 17802 | export_dynamic_flag_spec_CXX= |
| 17803 | hardcode_direct_CXX=no |
| 17804 | hardcode_direct_absolute_CXX=no |
| 17805 | hardcode_libdir_flag_spec_CXX= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17806 | hardcode_libdir_separator_CXX= |
| 17807 | hardcode_minus_L_CXX=no |
| 17808 | hardcode_shlibpath_var_CXX=unsupported |
| 17809 | hardcode_automatic_CXX=no |
| 17810 | inherit_rpath_CXX=no |
| 17811 | module_cmds_CXX= |
| 17812 | module_expsym_cmds_CXX= |
| 17813 | link_all_deplibs_CXX=unknown |
| 17814 | old_archive_cmds_CXX=$old_archive_cmds |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17815 | reload_flag_CXX=$reload_flag |
| 17816 | reload_cmds_CXX=$reload_cmds |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17817 | no_undefined_flag_CXX= |
| 17818 | whole_archive_flag_spec_CXX= |
| 17819 | enable_shared_with_static_runtimes_CXX=no |
| 17820 | |
| 17821 | # Source file extension for C++ test sources. |
| 17822 | ac_ext=cpp |
| 17823 | |
| 17824 | # Object file extension for compiled C++ test sources. |
| 17825 | objext=o |
| 17826 | objext_CXX=$objext |
| 17827 | |
| 17828 | # No sense in running all these tests if we already determined that |
| 17829 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 17830 | # are currently assumed to apply to all compilers on this platform, |
| 17831 | # and will be corrupted by setting them based on a non-working compiler. |
| 17832 | if test "$_lt_caught_CXX_error" != yes; then |
| 17833 | # Code to be used in simple compile tests |
| 17834 | lt_simple_compile_test_code="int some_variable = 0;" |
| 17835 | |
| 17836 | # Code to be used in simple link tests |
| 17837 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 17838 | |
| 17839 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 17840 | |
| 17841 | |
| 17842 | |
| 17843 | |
| 17844 | |
| 17845 | |
| 17846 | # If no C compiler was specified, use CC. |
| 17847 | LTCC=${LTCC-"$CC"} |
| 17848 | |
| 17849 | # If no C compiler flags were specified, use CFLAGS. |
| 17850 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 17851 | |
| 17852 | # Allow CC to be a program name with arguments. |
| 17853 | compiler=$CC |
| 17854 | |
| 17855 | |
| 17856 | # save warnings/boilerplate of simple test code |
| 17857 | ac_outfile=conftest.$ac_objext |
| 17858 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 17859 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17860 | _lt_compiler_boilerplate=`cat conftest.err` |
| 17861 | $RM conftest* |
| 17862 | |
| 17863 | ac_outfile=conftest.$ac_objext |
| 17864 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 17865 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 17866 | _lt_linker_boilerplate=`cat conftest.err` |
| 17867 | $RM -r conftest* |
| 17868 | |
| 17869 | |
| 17870 | # Allow CC to be a program name with arguments. |
| 17871 | lt_save_CC=$CC |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17872 | lt_save_CFLAGS=$CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17873 | lt_save_LD=$LD |
| 17874 | lt_save_GCC=$GCC |
| 17875 | GCC=$GXX |
| 17876 | lt_save_with_gnu_ld=$with_gnu_ld |
| 17877 | lt_save_path_LD=$lt_cv_path_LD |
| 17878 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 17879 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 17880 | else |
| 17881 | $as_unset lt_cv_prog_gnu_ld |
| 17882 | fi |
| 17883 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 17884 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 17885 | else |
| 17886 | $as_unset lt_cv_path_LD |
| 17887 | fi |
| 17888 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 17889 | CC=${CXX-"c++"} |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17890 | CFLAGS=$CXXFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17891 | compiler=$CC |
| 17892 | compiler_CXX=$CC |
| 17893 | for cc_temp in $compiler""; do |
| 17894 | case $cc_temp in |
| 17895 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 17896 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 17897 | \-*) ;; |
| 17898 | *) break;; |
| 17899 | esac |
| 17900 | done |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 17901 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17902 | |
| 17903 | |
| 17904 | if test -n "$compiler"; then |
| 17905 | # We don't want -fno-exception when compiling C++ code, so set the |
| 17906 | # no_builtin_flag separately |
| 17907 | if test "$GXX" = yes; then |
| 17908 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 17909 | else |
| 17910 | lt_prog_compiler_no_builtin_flag_CXX= |
| 17911 | fi |
| 17912 | |
| 17913 | if test "$GXX" = yes; then |
| 17914 | # Set up default GNU C++ configuration |
| 17915 | |
| 17916 | |
| 17917 | |
| 17918 | # Check whether --with-gnu-ld was given. |
| 17919 | if test "${with_gnu_ld+set}" = set; then : |
| 17920 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 17921 | else |
| 17922 | with_gnu_ld=no |
| 17923 | fi |
| 17924 | |
| 17925 | ac_prog=ld |
| 17926 | if test "$GCC" = yes; then |
| 17927 | # Check if gcc -print-prog-name=ld gives a path. |
| 17928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 17929 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 17930 | case $host in |
| 17931 | *-*-mingw*) |
| 17932 | # gcc leaves a trailing carriage return which upsets mingw |
| 17933 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 17934 | *) |
| 17935 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 17936 | esac |
| 17937 | case $ac_prog in |
| 17938 | # Accept absolute paths. |
| 17939 | [\\/]* | ?:[\\/]*) |
| 17940 | re_direlt='/[^/][^/]*/\.\./' |
| 17941 | # Canonicalize the pathname of ld |
| 17942 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 17943 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 17944 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 17945 | done |
| 17946 | test -z "$LD" && LD="$ac_prog" |
| 17947 | ;; |
| 17948 | "") |
| 17949 | # If it fails, then pretend we aren't using GCC. |
| 17950 | ac_prog=ld |
| 17951 | ;; |
| 17952 | *) |
| 17953 | # If it is relative, then search for the first ld in PATH. |
| 17954 | with_gnu_ld=unknown |
| 17955 | ;; |
| 17956 | esac |
| 17957 | elif test "$with_gnu_ld" = yes; then |
| 17958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 17959 | $as_echo_n "checking for GNU ld... " >&6; } |
| 17960 | else |
| 17961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 17962 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 17963 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 17964 | if ${lt_cv_path_LD+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 17965 | $as_echo_n "(cached) " >&6 |
| 17966 | else |
| 17967 | if test -z "$LD"; then |
| 17968 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 17969 | for ac_dir in $PATH; do |
| 17970 | IFS="$lt_save_ifs" |
| 17971 | test -z "$ac_dir" && ac_dir=. |
| 17972 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 17973 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 17974 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 17975 | # but apparently some variants of GNU ld only accept -v. |
| 17976 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 17977 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 17978 | *GNU* | *'with BFD'*) |
| 17979 | test "$with_gnu_ld" != no && break |
| 17980 | ;; |
| 17981 | *) |
| 17982 | test "$with_gnu_ld" != yes && break |
| 17983 | ;; |
| 17984 | esac |
| 17985 | fi |
| 17986 | done |
| 17987 | IFS="$lt_save_ifs" |
| 17988 | else |
| 17989 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 17990 | fi |
| 17991 | fi |
| 17992 | |
| 17993 | LD="$lt_cv_path_LD" |
| 17994 | if test -n "$LD"; then |
| 17995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 17996 | $as_echo "$LD" >&6; } |
| 17997 | else |
| 17998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17999 | $as_echo "no" >&6; } |
| 18000 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 18001 | 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] | 18002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 18003 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18004 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18005 | $as_echo_n "(cached) " >&6 |
| 18006 | else |
| 18007 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 18008 | case `$LD -v 2>&1 </dev/null` in |
| 18009 | *GNU* | *'with BFD'*) |
| 18010 | lt_cv_prog_gnu_ld=yes |
| 18011 | ;; |
| 18012 | *) |
| 18013 | lt_cv_prog_gnu_ld=no |
| 18014 | ;; |
| 18015 | esac |
| 18016 | fi |
| 18017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 18018 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 18019 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 18020 | |
| 18021 | |
| 18022 | |
| 18023 | |
| 18024 | |
| 18025 | |
| 18026 | |
| 18027 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 18028 | # archiving commands below assume that GNU ld is being used. |
| 18029 | if test "$with_gnu_ld" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18030 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18031 | 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] | 18032 | |
| 18033 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18034 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18035 | |
| 18036 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 18037 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 18038 | # investigate it a little bit more. (MM) |
| 18039 | wlarc='${wl}' |
| 18040 | |
| 18041 | # ancient GNU ld didn't support --whole-archive et. al. |
| 18042 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 18043 | $GREP 'no-whole-archive' > /dev/null; then |
| 18044 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18045 | else |
| 18046 | whole_archive_flag_spec_CXX= |
| 18047 | fi |
| 18048 | else |
| 18049 | with_gnu_ld=no |
| 18050 | wlarc= |
| 18051 | |
| 18052 | # A generic and very simple default shared library creation |
| 18053 | # command for GNU C++ for the case where it uses the native |
| 18054 | # linker, instead of GNU ld. If possible, this setting should |
| 18055 | # overridden to take advantage of the native linker features on |
| 18056 | # the platform it is being used on. |
| 18057 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18058 | fi |
| 18059 | |
| 18060 | # Commands to make compiler produce verbose output that lists |
| 18061 | # what "hidden" libraries, object files and flags are used when |
| 18062 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18063 | 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] | 18064 | |
| 18065 | else |
| 18066 | GXX=no |
| 18067 | with_gnu_ld=no |
| 18068 | wlarc= |
| 18069 | fi |
| 18070 | |
| 18071 | # PORTME: fill in a description of your system's C++ link characteristics |
| 18072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 18073 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 18074 | ld_shlibs_CXX=yes |
| 18075 | case $host_os in |
| 18076 | aix3*) |
| 18077 | # FIXME: insert proper C++ library support |
| 18078 | ld_shlibs_CXX=no |
| 18079 | ;; |
| 18080 | aix[4-9]*) |
| 18081 | if test "$host_cpu" = ia64; then |
| 18082 | # On IA64, the linker does run time linking by default, so we don't |
| 18083 | # have to do anything special. |
| 18084 | aix_use_runtimelinking=no |
| 18085 | exp_sym_flag='-Bexport' |
| 18086 | no_entry_flag="" |
| 18087 | else |
| 18088 | aix_use_runtimelinking=no |
| 18089 | |
| 18090 | # Test if we are trying to use run time linking or normal |
| 18091 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 18092 | # need to do runtime linking. |
| 18093 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 18094 | for ld_flag in $LDFLAGS; do |
| 18095 | case $ld_flag in |
| 18096 | *-brtl*) |
| 18097 | aix_use_runtimelinking=yes |
| 18098 | break |
| 18099 | ;; |
| 18100 | esac |
| 18101 | done |
| 18102 | ;; |
| 18103 | esac |
| 18104 | |
| 18105 | exp_sym_flag='-bexport' |
| 18106 | no_entry_flag='-bnoentry' |
| 18107 | fi |
| 18108 | |
| 18109 | # When large executables or shared objects are built, AIX ld can |
| 18110 | # have problems creating the table of contents. If linking a library |
| 18111 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 18112 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 18113 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 18114 | |
| 18115 | archive_cmds_CXX='' |
| 18116 | hardcode_direct_CXX=yes |
| 18117 | hardcode_direct_absolute_CXX=yes |
| 18118 | hardcode_libdir_separator_CXX=':' |
| 18119 | link_all_deplibs_CXX=yes |
| 18120 | file_list_spec_CXX='${wl}-f,' |
| 18121 | |
| 18122 | if test "$GXX" = yes; then |
| 18123 | case $host_os in aix4.[012]|aix4.[012].*) |
| 18124 | # We only want to do this on AIX 4.2 and lower, the check |
| 18125 | # below for broken collect2 doesn't work under 4.3+ |
| 18126 | collect2name=`${CC} -print-prog-name=collect2` |
| 18127 | if test -f "$collect2name" && |
| 18128 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 18129 | then |
| 18130 | # We have reworked collect2 |
| 18131 | : |
| 18132 | else |
| 18133 | # We have old collect2 |
| 18134 | hardcode_direct_CXX=unsupported |
| 18135 | # It fails to find uninstalled libraries when the uninstalled |
| 18136 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 18137 | # to unsupported forces relinking |
| 18138 | hardcode_minus_L_CXX=yes |
| 18139 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18140 | hardcode_libdir_separator_CXX= |
| 18141 | fi |
| 18142 | esac |
| 18143 | shared_flag='-shared' |
| 18144 | if test "$aix_use_runtimelinking" = yes; then |
| 18145 | shared_flag="$shared_flag "'${wl}-G' |
| 18146 | fi |
| 18147 | else |
| 18148 | # not using gcc |
| 18149 | if test "$host_cpu" = ia64; then |
| 18150 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 18151 | # chokes on -Wl,-G. The following line is correct: |
| 18152 | shared_flag='-G' |
| 18153 | else |
| 18154 | if test "$aix_use_runtimelinking" = yes; then |
| 18155 | shared_flag='${wl}-G' |
| 18156 | else |
| 18157 | shared_flag='${wl}-bM:SRE' |
| 18158 | fi |
| 18159 | fi |
| 18160 | fi |
| 18161 | |
| 18162 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 18163 | # It seems that -bexpall does not export symbols beginning with |
| 18164 | # underscore (_), so it is better to generate a list of symbols to |
| 18165 | # export. |
| 18166 | always_export_symbols_CXX=yes |
| 18167 | if test "$aix_use_runtimelinking" = yes; then |
| 18168 | # Warning - without using the other runtime loading flags (-brtl), |
| 18169 | # -berok will link without error, but may produce a broken library. |
| 18170 | allow_undefined_flag_CXX='-berok' |
| 18171 | # Determine the default libpath from the value encoded in an empty |
| 18172 | # executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18173 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 18174 | aix_libpath=$lt_cv_aix_libpath |
| 18175 | else |
| 18176 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 18177 | $as_echo_n "(cached) " >&6 |
| 18178 | else |
| 18179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18180 | /* end confdefs.h. */ |
| 18181 | |
| 18182 | int |
| 18183 | main () |
| 18184 | { |
| 18185 | |
| 18186 | ; |
| 18187 | return 0; |
| 18188 | } |
| 18189 | _ACEOF |
| 18190 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18191 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18192 | lt_aix_libpath_sed=' |
| 18193 | /Import File Strings/,/^$/ { |
| 18194 | /^0/ { |
| 18195 | s/^0 *\([^ ]*\) *$/\1/ |
| 18196 | p |
| 18197 | } |
| 18198 | }' |
| 18199 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 18200 | # Check for a 64-bit object if we didn't find anything. |
| 18201 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 18202 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 18203 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18204 | fi |
| 18205 | rm -f core conftest.err conftest.$ac_objext \ |
| 18206 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18207 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 18208 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 18209 | fi |
| 18210 | |
| 18211 | fi |
| 18212 | |
| 18213 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 18214 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18215 | |
| 18216 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18217 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18218 | 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] | 18219 | else |
| 18220 | if test "$host_cpu" = ia64; then |
| 18221 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 18222 | allow_undefined_flag_CXX="-z nodefs" |
| 18223 | 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" |
| 18224 | else |
| 18225 | # Determine the default libpath from the value encoded in an |
| 18226 | # empty executable. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18227 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 18228 | aix_libpath=$lt_cv_aix_libpath |
| 18229 | else |
| 18230 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 18231 | $as_echo_n "(cached) " >&6 |
| 18232 | else |
| 18233 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18234 | /* end confdefs.h. */ |
| 18235 | |
| 18236 | int |
| 18237 | main () |
| 18238 | { |
| 18239 | |
| 18240 | ; |
| 18241 | return 0; |
| 18242 | } |
| 18243 | _ACEOF |
| 18244 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 18245 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18246 | lt_aix_libpath_sed=' |
| 18247 | /Import File Strings/,/^$/ { |
| 18248 | /^0/ { |
| 18249 | s/^0 *\([^ ]*\) *$/\1/ |
| 18250 | p |
| 18251 | } |
| 18252 | }' |
| 18253 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 18254 | # Check for a 64-bit object if we didn't find anything. |
| 18255 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 18256 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 18257 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18258 | fi |
| 18259 | rm -f core conftest.err conftest.$ac_objext \ |
| 18260 | conftest$ac_exeext conftest.$ac_ext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18261 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 18262 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 18263 | fi |
| 18264 | |
| 18265 | fi |
| 18266 | |
| 18267 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 18268 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18269 | |
| 18270 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 18271 | # Warning - without using the other run time loading flags, |
| 18272 | # -berok will link without error, but may produce a broken library. |
| 18273 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 18274 | allow_undefined_flag_CXX=' ${wl}-berok' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18275 | if test "$with_gnu_ld" = yes; then |
| 18276 | # We only use this code for GNU lds that support --whole-archive. |
| 18277 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18278 | else |
| 18279 | # Exported symbols can be pulled into shared objects from archives |
| 18280 | whole_archive_flag_spec_CXX='$convenience' |
| 18281 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18282 | archive_cmds_need_lc_CXX=yes |
| 18283 | # This is similar to how AIX traditionally builds its shared |
| 18284 | # libraries. |
| 18285 | 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' |
| 18286 | fi |
| 18287 | fi |
| 18288 | ;; |
| 18289 | |
| 18290 | beos*) |
| 18291 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 18292 | allow_undefined_flag_CXX=unsupported |
| 18293 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 18294 | # support --undefined. This deserves some investigation. FIXME |
| 18295 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18296 | else |
| 18297 | ld_shlibs_CXX=no |
| 18298 | fi |
| 18299 | ;; |
| 18300 | |
| 18301 | chorus*) |
| 18302 | case $cc_basename in |
| 18303 | *) |
| 18304 | # FIXME: insert proper C++ library support |
| 18305 | ld_shlibs_CXX=no |
| 18306 | ;; |
| 18307 | esac |
| 18308 | ;; |
| 18309 | |
| 18310 | cygwin* | mingw* | pw32* | cegcc*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18311 | case $GXX,$cc_basename in |
| 18312 | ,cl* | no,cl*) |
| 18313 | # Native MSVC |
| 18314 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 18315 | # no search path for DLLs. |
| 18316 | hardcode_libdir_flag_spec_CXX=' ' |
| 18317 | allow_undefined_flag_CXX=unsupported |
| 18318 | always_export_symbols_CXX=yes |
| 18319 | file_list_spec_CXX='@' |
| 18320 | # Tell ltmain to make .lib files, not .a files. |
| 18321 | libext=lib |
| 18322 | # Tell ltmain to make .dll files, not .so files. |
| 18323 | shrext_cmds=".dll" |
| 18324 | # FIXME: Setting linknames here is a bad hack. |
| 18325 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 18326 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18327 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 18328 | else |
| 18329 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 18330 | fi~ |
| 18331 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 18332 | linknames=' |
| 18333 | # The linker will not automatically build a static lib if we build a DLL. |
| 18334 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 18335 | enable_shared_with_static_runtimes_CXX=yes |
| 18336 | # Don't use ranlib |
| 18337 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 18338 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 18339 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 18340 | case $lt_outputfile in |
| 18341 | *.exe|*.EXE) ;; |
| 18342 | *) |
| 18343 | lt_outputfile="$lt_outputfile.exe" |
| 18344 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 18345 | ;; |
| 18346 | esac~ |
| 18347 | func_to_tool_file "$lt_outputfile"~ |
| 18348 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 18349 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 18350 | $RM "$lt_outputfile.manifest"; |
| 18351 | fi' |
| 18352 | ;; |
| 18353 | *) |
| 18354 | # g++ |
| 18355 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 18356 | # as there is no search path for DLLs. |
| 18357 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 18358 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 18359 | allow_undefined_flag_CXX=unsupported |
| 18360 | always_export_symbols_CXX=no |
| 18361 | enable_shared_with_static_runtimes_CXX=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18362 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18363 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 18364 | 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' |
| 18365 | # If the export-symbols file already is a .def file (1st line |
| 18366 | # is EXPORTS), use it as is; otherwise, prepend... |
| 18367 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 18368 | cp $export_symbols $output_objdir/$soname.def; |
| 18369 | else |
| 18370 | echo EXPORTS > $output_objdir/$soname.def; |
| 18371 | cat $export_symbols >> $output_objdir/$soname.def; |
| 18372 | fi~ |
| 18373 | $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' |
| 18374 | else |
| 18375 | ld_shlibs_CXX=no |
| 18376 | fi |
| 18377 | ;; |
| 18378 | esac |
| 18379 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18380 | darwin* | rhapsody*) |
| 18381 | |
| 18382 | |
| 18383 | archive_cmds_need_lc_CXX=no |
| 18384 | hardcode_direct_CXX=no |
| 18385 | hardcode_automatic_CXX=yes |
| 18386 | hardcode_shlibpath_var_CXX=unsupported |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18387 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 18388 | 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\"`' |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 18389 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18390 | else |
| 18391 | whole_archive_flag_spec_CXX='' |
| 18392 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18393 | link_all_deplibs_CXX=yes |
| 18394 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 18395 | case $cc_basename in |
| 18396 | ifort*) _lt_dar_can_shared=yes ;; |
| 18397 | *) _lt_dar_can_shared=$GCC ;; |
| 18398 | esac |
| 18399 | if test "$_lt_dar_can_shared" = "yes"; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18400 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18401 | 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}" |
| 18402 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 18403 | 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}" |
| 18404 | 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}" |
| 18405 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 18406 | 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}" |
| 18407 | 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}" |
| 18408 | fi |
| 18409 | |
| 18410 | else |
| 18411 | ld_shlibs_CXX=no |
| 18412 | fi |
| 18413 | |
| 18414 | ;; |
| 18415 | |
| 18416 | dgux*) |
| 18417 | case $cc_basename in |
| 18418 | ec++*) |
| 18419 | # FIXME: insert proper C++ library support |
| 18420 | ld_shlibs_CXX=no |
| 18421 | ;; |
| 18422 | ghcx*) |
| 18423 | # Green Hills C++ Compiler |
| 18424 | # FIXME: insert proper C++ library support |
| 18425 | ld_shlibs_CXX=no |
| 18426 | ;; |
| 18427 | *) |
| 18428 | # FIXME: insert proper C++ library support |
| 18429 | ld_shlibs_CXX=no |
| 18430 | ;; |
| 18431 | esac |
| 18432 | ;; |
| 18433 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 18434 | freebsd2.*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18435 | # C++ shared libraries reported to be fairly broken before |
| 18436 | # switch to ELF |
| 18437 | ld_shlibs_CXX=no |
| 18438 | ;; |
| 18439 | |
| 18440 | freebsd-elf*) |
| 18441 | archive_cmds_need_lc_CXX=no |
| 18442 | ;; |
| 18443 | |
| 18444 | freebsd* | dragonfly*) |
| 18445 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 18446 | # conventions |
| 18447 | ld_shlibs_CXX=yes |
| 18448 | ;; |
| 18449 | |
| 18450 | gnu*) |
| 18451 | ;; |
| 18452 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18453 | haiku*) |
| 18454 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18455 | link_all_deplibs_CXX=yes |
| 18456 | ;; |
| 18457 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18458 | hpux9*) |
| 18459 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18460 | hardcode_libdir_separator_CXX=: |
| 18461 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18462 | hardcode_direct_CXX=yes |
| 18463 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18464 | # but as the default |
| 18465 | # location of the library. |
| 18466 | |
| 18467 | case $cc_basename in |
| 18468 | CC*) |
| 18469 | # FIXME: insert proper C++ library support |
| 18470 | ld_shlibs_CXX=no |
| 18471 | ;; |
| 18472 | aCC*) |
| 18473 | 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' |
| 18474 | # Commands to make compiler produce verbose output that lists |
| 18475 | # what "hidden" libraries, object files and flags are used when |
| 18476 | # linking a shared library. |
| 18477 | # |
| 18478 | # There doesn't appear to be a way to prevent this compiler from |
| 18479 | # explicitly linking system object files so we need to strip them |
| 18480 | # from the output so that they don't get included in the library |
| 18481 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18482 | 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] | 18483 | ;; |
| 18484 | *) |
| 18485 | if test "$GXX" = yes; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18486 | 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] | 18487 | else |
| 18488 | # FIXME: insert proper C++ library support |
| 18489 | ld_shlibs_CXX=no |
| 18490 | fi |
| 18491 | ;; |
| 18492 | esac |
| 18493 | ;; |
| 18494 | |
| 18495 | hpux10*|hpux11*) |
| 18496 | if test $with_gnu_ld = no; then |
| 18497 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 18498 | hardcode_libdir_separator_CXX=: |
| 18499 | |
| 18500 | case $host_cpu in |
| 18501 | hppa*64*|ia64*) |
| 18502 | ;; |
| 18503 | *) |
| 18504 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18505 | ;; |
| 18506 | esac |
| 18507 | fi |
| 18508 | case $host_cpu in |
| 18509 | hppa*64*|ia64*) |
| 18510 | hardcode_direct_CXX=no |
| 18511 | hardcode_shlibpath_var_CXX=no |
| 18512 | ;; |
| 18513 | *) |
| 18514 | hardcode_direct_CXX=yes |
| 18515 | hardcode_direct_absolute_CXX=yes |
| 18516 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 18517 | # but as the default |
| 18518 | # location of the library. |
| 18519 | ;; |
| 18520 | esac |
| 18521 | |
| 18522 | case $cc_basename in |
| 18523 | CC*) |
| 18524 | # FIXME: insert proper C++ library support |
| 18525 | ld_shlibs_CXX=no |
| 18526 | ;; |
| 18527 | aCC*) |
| 18528 | case $host_cpu in |
| 18529 | hppa*64*) |
| 18530 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18531 | ;; |
| 18532 | ia64*) |
| 18533 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18534 | ;; |
| 18535 | *) |
| 18536 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18537 | ;; |
| 18538 | esac |
| 18539 | # Commands to make compiler produce verbose output that lists |
| 18540 | # what "hidden" libraries, object files and flags are used when |
| 18541 | # linking a shared library. |
| 18542 | # |
| 18543 | # There doesn't appear to be a way to prevent this compiler from |
| 18544 | # explicitly linking system object files so we need to strip them |
| 18545 | # from the output so that they don't get included in the library |
| 18546 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18547 | 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] | 18548 | ;; |
| 18549 | *) |
| 18550 | if test "$GXX" = yes; then |
| 18551 | if test $with_gnu_ld = no; then |
| 18552 | case $host_cpu in |
| 18553 | hppa*64*) |
| 18554 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18555 | ;; |
| 18556 | ia64*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18557 | 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] | 18558 | ;; |
| 18559 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18560 | 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] | 18561 | ;; |
| 18562 | esac |
| 18563 | fi |
| 18564 | else |
| 18565 | # FIXME: insert proper C++ library support |
| 18566 | ld_shlibs_CXX=no |
| 18567 | fi |
| 18568 | ;; |
| 18569 | esac |
| 18570 | ;; |
| 18571 | |
| 18572 | interix[3-9]*) |
| 18573 | hardcode_direct_CXX=no |
| 18574 | hardcode_shlibpath_var_CXX=no |
| 18575 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18576 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18577 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 18578 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 18579 | # default) and relocated if they conflict, which is a slow very memory |
| 18580 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 18581 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 18582 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 18583 | 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' |
| 18584 | 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' |
| 18585 | ;; |
| 18586 | irix5* | irix6*) |
| 18587 | case $cc_basename in |
| 18588 | CC*) |
| 18589 | # SGI C++ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18590 | 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] | 18591 | |
| 18592 | # Archives containing C++ object files must be created using |
| 18593 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 18594 | # necessary to make sure instantiated templates are included |
| 18595 | # in the archive. |
| 18596 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 18597 | ;; |
| 18598 | *) |
| 18599 | if test "$GXX" = yes; then |
| 18600 | if test "$with_gnu_ld" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18601 | 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] | 18602 | else |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18603 | 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] | 18604 | fi |
| 18605 | fi |
| 18606 | link_all_deplibs_CXX=yes |
| 18607 | ;; |
| 18608 | esac |
| 18609 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18610 | hardcode_libdir_separator_CXX=: |
| 18611 | inherit_rpath_CXX=yes |
| 18612 | ;; |
| 18613 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18614 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18615 | case $cc_basename in |
| 18616 | KCC*) |
| 18617 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18618 | |
| 18619 | # KCC will only create a shared library if the output file |
| 18620 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18621 | # to its proper name (with version) after linking. |
| 18622 | 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' |
| 18623 | 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' |
| 18624 | # Commands to make compiler produce verbose output that lists |
| 18625 | # what "hidden" libraries, object files and flags are used when |
| 18626 | # linking a shared library. |
| 18627 | # |
| 18628 | # There doesn't appear to be a way to prevent this compiler from |
| 18629 | # explicitly linking system object files so we need to strip them |
| 18630 | # from the output so that they don't get included in the library |
| 18631 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18632 | 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] | 18633 | |
| 18634 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18635 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18636 | |
| 18637 | # Archives containing C++ object files must be created using |
| 18638 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 18639 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 18640 | ;; |
| 18641 | icpc* | ecpc* ) |
| 18642 | # Intel C++ |
| 18643 | with_gnu_ld=yes |
| 18644 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 18645 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 18646 | # earlier do not add the objects themselves. |
| 18647 | case `$CC -V 2>&1` in |
| 18648 | *"Version 7."*) |
| 18649 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18650 | 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' |
| 18651 | ;; |
| 18652 | *) # Version 8.0 or newer |
| 18653 | tmp_idyn= |
| 18654 | case $host_cpu in |
| 18655 | ia64*) tmp_idyn=' -i_dynamic';; |
| 18656 | esac |
| 18657 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18658 | 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' |
| 18659 | ;; |
| 18660 | esac |
| 18661 | archive_cmds_need_lc_CXX=no |
| 18662 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18663 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18664 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 18665 | ;; |
| 18666 | pgCC* | pgcpp*) |
| 18667 | # Portland Group C++ compiler |
| 18668 | case `$CC -V` in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18669 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18670 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 18671 | rm -rf $tpldir~ |
| 18672 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18673 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18674 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 18675 | rm -rf $tpldir~ |
| 18676 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18677 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18678 | $RANLIB $oldlib' |
| 18679 | archive_cmds_CXX='tpldir=Template.dir~ |
| 18680 | rm -rf $tpldir~ |
| 18681 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18682 | $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] | 18683 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 18684 | rm -rf $tpldir~ |
| 18685 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18686 | $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] | 18687 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18688 | *) # Version 6 and above use weak symbols |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18689 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 18690 | 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' |
| 18691 | ;; |
| 18692 | esac |
| 18693 | |
| 18694 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 18695 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18696 | 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] | 18697 | ;; |
| 18698 | cxx*) |
| 18699 | # Compaq C++ |
| 18700 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18701 | 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' |
| 18702 | |
| 18703 | runpath_var=LD_RUN_PATH |
| 18704 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18705 | hardcode_libdir_separator_CXX=: |
| 18706 | |
| 18707 | # Commands to make compiler produce verbose output that lists |
| 18708 | # what "hidden" libraries, object files and flags are used when |
| 18709 | # linking a shared library. |
| 18710 | # |
| 18711 | # There doesn't appear to be a way to prevent this compiler from |
| 18712 | # explicitly linking system object files so we need to strip them |
| 18713 | # from the output so that they don't get included in the library |
| 18714 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18715 | 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] | 18716 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18717 | xl* | mpixl* | bgxl*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18718 | # IBM XL 8.0 on PPC, with GNU ld |
| 18719 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18720 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 18721 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 18722 | if test "x$supports_anon_versioning" = xyes; then |
| 18723 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 18724 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 18725 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 18726 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 18727 | fi |
| 18728 | ;; |
| 18729 | *) |
| 18730 | case `$CC -V 2>&1 | sed 5q` in |
| 18731 | *Sun\ C*) |
| 18732 | # Sun C++ 5.9 |
| 18733 | no_undefined_flag_CXX=' -zdefs' |
| 18734 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18735 | 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' |
| 18736 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18737 | 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] | 18738 | compiler_needs_object_CXX=yes |
| 18739 | |
| 18740 | # Not sure whether something based on |
| 18741 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 18742 | # would be better. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18743 | output_verbose_link_cmd='func_echo_all' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18744 | |
| 18745 | # Archives containing C++ object files must be created using |
| 18746 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18747 | # necessary to make sure instantiated templates are included |
| 18748 | # in the archive. |
| 18749 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18750 | ;; |
| 18751 | esac |
| 18752 | ;; |
| 18753 | esac |
| 18754 | ;; |
| 18755 | |
| 18756 | lynxos*) |
| 18757 | # FIXME: insert proper C++ library support |
| 18758 | ld_shlibs_CXX=no |
| 18759 | ;; |
| 18760 | |
| 18761 | m88k*) |
| 18762 | # FIXME: insert proper C++ library support |
| 18763 | ld_shlibs_CXX=no |
| 18764 | ;; |
| 18765 | |
| 18766 | mvs*) |
| 18767 | case $cc_basename in |
| 18768 | cxx*) |
| 18769 | # FIXME: insert proper C++ library support |
| 18770 | ld_shlibs_CXX=no |
| 18771 | ;; |
| 18772 | *) |
| 18773 | # FIXME: insert proper C++ library support |
| 18774 | ld_shlibs_CXX=no |
| 18775 | ;; |
| 18776 | esac |
| 18777 | ;; |
| 18778 | |
| 18779 | netbsd*) |
| 18780 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 18781 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 18782 | wlarc= |
| 18783 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18784 | hardcode_direct_CXX=yes |
| 18785 | hardcode_shlibpath_var_CXX=no |
| 18786 | fi |
| 18787 | # Workaround some broken pre-1.5 toolchains |
| 18788 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 18789 | ;; |
| 18790 | |
| 18791 | *nto* | *qnx*) |
| 18792 | ld_shlibs_CXX=yes |
| 18793 | ;; |
| 18794 | |
| 18795 | openbsd2*) |
| 18796 | # C++ shared libraries are fairly broken |
| 18797 | ld_shlibs_CXX=no |
| 18798 | ;; |
| 18799 | |
| 18800 | openbsd*) |
| 18801 | if test -f /usr/libexec/ld.so; then |
| 18802 | hardcode_direct_CXX=yes |
| 18803 | hardcode_shlibpath_var_CXX=no |
| 18804 | hardcode_direct_absolute_CXX=yes |
| 18805 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 18806 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18807 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 18808 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 18809 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 18810 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 18811 | fi |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18812 | output_verbose_link_cmd=func_echo_all |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18813 | else |
| 18814 | ld_shlibs_CXX=no |
| 18815 | fi |
| 18816 | ;; |
| 18817 | |
| 18818 | osf3* | osf4* | osf5*) |
| 18819 | case $cc_basename in |
| 18820 | KCC*) |
| 18821 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 18822 | |
| 18823 | # KCC will only create a shared library if the output file |
| 18824 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 18825 | # to its proper name (with version) after linking. |
| 18826 | 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' |
| 18827 | |
| 18828 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 18829 | hardcode_libdir_separator_CXX=: |
| 18830 | |
| 18831 | # Archives containing C++ object files must be created using |
| 18832 | # the KAI C++ compiler. |
| 18833 | case $host in |
| 18834 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 18835 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 18836 | esac |
| 18837 | ;; |
| 18838 | RCC*) |
| 18839 | # Rational C++ 2.4.1 |
| 18840 | # FIXME: insert proper C++ library support |
| 18841 | ld_shlibs_CXX=no |
| 18842 | ;; |
| 18843 | cxx*) |
| 18844 | case $host in |
| 18845 | osf3*) |
| 18846 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18847 | 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] | 18848 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18849 | ;; |
| 18850 | *) |
| 18851 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18852 | 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] | 18853 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 18854 | echo "-hidden">> $lib.exp~ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18855 | $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] | 18856 | $RM $lib.exp' |
| 18857 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 18858 | ;; |
| 18859 | esac |
| 18860 | |
| 18861 | hardcode_libdir_separator_CXX=: |
| 18862 | |
| 18863 | # Commands to make compiler produce verbose output that lists |
| 18864 | # what "hidden" libraries, object files and flags are used when |
| 18865 | # linking a shared library. |
| 18866 | # |
| 18867 | # There doesn't appear to be a way to prevent this compiler from |
| 18868 | # explicitly linking system object files so we need to strip them |
| 18869 | # from the output so that they don't get included in the library |
| 18870 | # dependencies. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18871 | 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] | 18872 | ;; |
| 18873 | *) |
| 18874 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18875 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 18876 | case $host in |
| 18877 | osf3*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18878 | 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] | 18879 | ;; |
| 18880 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18881 | 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] | 18882 | ;; |
| 18883 | esac |
| 18884 | |
| 18885 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 18886 | hardcode_libdir_separator_CXX=: |
| 18887 | |
| 18888 | # Commands to make compiler produce verbose output that lists |
| 18889 | # what "hidden" libraries, object files and flags are used when |
| 18890 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18891 | 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] | 18892 | |
| 18893 | else |
| 18894 | # FIXME: insert proper C++ library support |
| 18895 | ld_shlibs_CXX=no |
| 18896 | fi |
| 18897 | ;; |
| 18898 | esac |
| 18899 | ;; |
| 18900 | |
| 18901 | psos*) |
| 18902 | # FIXME: insert proper C++ library support |
| 18903 | ld_shlibs_CXX=no |
| 18904 | ;; |
| 18905 | |
| 18906 | sunos4*) |
| 18907 | case $cc_basename in |
| 18908 | CC*) |
| 18909 | # Sun C++ 4.x |
| 18910 | # FIXME: insert proper C++ library support |
| 18911 | ld_shlibs_CXX=no |
| 18912 | ;; |
| 18913 | lcc*) |
| 18914 | # Lucid |
| 18915 | # FIXME: insert proper C++ library support |
| 18916 | ld_shlibs_CXX=no |
| 18917 | ;; |
| 18918 | *) |
| 18919 | # FIXME: insert proper C++ library support |
| 18920 | ld_shlibs_CXX=no |
| 18921 | ;; |
| 18922 | esac |
| 18923 | ;; |
| 18924 | |
| 18925 | solaris*) |
| 18926 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18927 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18928 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 18929 | archive_cmds_need_lc_CXX=yes |
| 18930 | no_undefined_flag_CXX=' -zdefs' |
| 18931 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 18932 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18933 | $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' |
| 18934 | |
| 18935 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 18936 | hardcode_shlibpath_var_CXX=no |
| 18937 | case $host_os in |
| 18938 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18939 | *) |
| 18940 | # The compiler driver will combine and reorder linker options, |
| 18941 | # but understands `-z linker_flag'. |
| 18942 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 18943 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 18944 | ;; |
| 18945 | esac |
| 18946 | link_all_deplibs_CXX=yes |
| 18947 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18948 | output_verbose_link_cmd='func_echo_all' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 18949 | |
| 18950 | # Archives containing C++ object files must be created using |
| 18951 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 18952 | # necessary to make sure instantiated templates are included |
| 18953 | # in the archive. |
| 18954 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 18955 | ;; |
| 18956 | gcx*) |
| 18957 | # Green Hills C++ Compiler |
| 18958 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18959 | |
| 18960 | # The C++ compiler must be used to create the archive. |
| 18961 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 18962 | ;; |
| 18963 | *) |
| 18964 | # GNU C++ compiler with Solaris linker |
| 18965 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 18966 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 18967 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 18968 | 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] | 18969 | 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] | 18970 | $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] | 18971 | |
| 18972 | # Commands to make compiler produce verbose output that lists |
| 18973 | # what "hidden" libraries, object files and flags are used when |
| 18974 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18975 | 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] | 18976 | else |
| 18977 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 18978 | # platform. |
| 18979 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 18980 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 18981 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 18982 | |
| 18983 | # Commands to make compiler produce verbose output that lists |
| 18984 | # what "hidden" libraries, object files and flags are used when |
| 18985 | # linking a shared library. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 18986 | 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] | 18987 | fi |
| 18988 | |
| 18989 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 18990 | case $host_os in |
| 18991 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 18992 | *) |
| 18993 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 18994 | ;; |
| 18995 | esac |
| 18996 | fi |
| 18997 | ;; |
| 18998 | esac |
| 18999 | ;; |
| 19000 | |
| 19001 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 19002 | no_undefined_flag_CXX='${wl}-z,text' |
| 19003 | archive_cmds_need_lc_CXX=no |
| 19004 | hardcode_shlibpath_var_CXX=no |
| 19005 | runpath_var='LD_RUN_PATH' |
| 19006 | |
| 19007 | case $cc_basename in |
| 19008 | CC*) |
| 19009 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19010 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19011 | ;; |
| 19012 | *) |
| 19013 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19014 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19015 | ;; |
| 19016 | esac |
| 19017 | ;; |
| 19018 | |
| 19019 | sysv5* | sco3.2v5* | sco5v6*) |
| 19020 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 19021 | # link with -lc, and that would cause any symbols used from libc to |
| 19022 | # always be unresolved, which means just about no library would |
| 19023 | # ever link correctly. If we're not using GNU ld we use -z text |
| 19024 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 19025 | # as -z defs. |
| 19026 | no_undefined_flag_CXX='${wl}-z,text' |
| 19027 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 19028 | archive_cmds_need_lc_CXX=no |
| 19029 | hardcode_shlibpath_var_CXX=no |
| 19030 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 19031 | hardcode_libdir_separator_CXX=':' |
| 19032 | link_all_deplibs_CXX=yes |
| 19033 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 19034 | runpath_var='LD_RUN_PATH' |
| 19035 | |
| 19036 | case $cc_basename in |
| 19037 | CC*) |
| 19038 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19039 | 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] | 19040 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 19041 | '"$old_archive_cmds_CXX" |
| 19042 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 19043 | '"$reload_cmds_CXX" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19044 | ;; |
| 19045 | *) |
| 19046 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19047 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 19048 | ;; |
| 19049 | esac |
| 19050 | ;; |
| 19051 | |
| 19052 | tandem*) |
| 19053 | case $cc_basename in |
| 19054 | NCC*) |
| 19055 | # NonStop-UX NCC 3.20 |
| 19056 | # FIXME: insert proper C++ library support |
| 19057 | ld_shlibs_CXX=no |
| 19058 | ;; |
| 19059 | *) |
| 19060 | # FIXME: insert proper C++ library support |
| 19061 | ld_shlibs_CXX=no |
| 19062 | ;; |
| 19063 | esac |
| 19064 | ;; |
| 19065 | |
| 19066 | vxworks*) |
| 19067 | # FIXME: insert proper C++ library support |
| 19068 | ld_shlibs_CXX=no |
| 19069 | ;; |
| 19070 | |
| 19071 | *) |
| 19072 | # FIXME: insert proper C++ library support |
| 19073 | ld_shlibs_CXX=no |
| 19074 | ;; |
| 19075 | esac |
| 19076 | |
| 19077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 19078 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 19079 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19080 | |
| 19081 | GCC_CXX="$GXX" |
| 19082 | LD_CXX="$LD" |
| 19083 | |
| 19084 | ## CAVEAT EMPTOR: |
| 19085 | ## There is no encapsulation within the following macros, do not change |
| 19086 | ## the running order or otherwise move them around unless you know exactly |
| 19087 | ## what you are doing... |
| 19088 | # Dependencies to place before and after the object being linked: |
| 19089 | predep_objects_CXX= |
| 19090 | postdep_objects_CXX= |
| 19091 | predeps_CXX= |
| 19092 | postdeps_CXX= |
| 19093 | compiler_lib_search_path_CXX= |
| 19094 | |
| 19095 | cat > conftest.$ac_ext <<_LT_EOF |
| 19096 | class Foo |
| 19097 | { |
| 19098 | public: |
| 19099 | Foo (void) { a = 0; } |
| 19100 | private: |
| 19101 | int a; |
| 19102 | }; |
| 19103 | _LT_EOF |
| 19104 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19105 | |
| 19106 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 19107 | case "$CC $CFLAGS " in #( |
| 19108 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 19109 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19110 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19111 | esac |
| 19112 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 19114 | (eval $ac_compile) 2>&5 |
| 19115 | ac_status=$? |
| 19116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19117 | test $ac_status = 0; }; then |
| 19118 | # Parse the compiler output and extract the necessary |
| 19119 | # objects, libraries and library flags. |
| 19120 | |
| 19121 | # Sentinel used to keep track of whether or not we are before |
| 19122 | # the conftest object file. |
| 19123 | pre_test_object_deps_done=no |
| 19124 | |
| 19125 | for p in `eval "$output_verbose_link_cmd"`; do |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19126 | case ${prev}${p} in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19127 | |
| 19128 | -L* | -R* | -l*) |
| 19129 | # Some compilers place space between "-{L,R}" and the path. |
| 19130 | # Remove the space. |
| 19131 | if test $p = "-L" || |
| 19132 | test $p = "-R"; then |
| 19133 | prev=$p |
| 19134 | continue |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19135 | fi |
| 19136 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19137 | # Expand the sysroot to ease extracting the directories later. |
| 19138 | if test -z "$prev"; then |
| 19139 | case $p in |
| 19140 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 19141 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 19142 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 19143 | esac |
| 19144 | fi |
| 19145 | case $p in |
| 19146 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 19147 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19148 | if test "$pre_test_object_deps_done" = no; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19149 | case ${prev} in |
| 19150 | -L | -R) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19151 | # Internal compiler library paths should come after those |
| 19152 | # provided the user. The postdeps already come after the |
| 19153 | # user supplied libs so there is no need to process them. |
| 19154 | if test -z "$compiler_lib_search_path_CXX"; then |
| 19155 | compiler_lib_search_path_CXX="${prev}${p}" |
| 19156 | else |
| 19157 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 19158 | fi |
| 19159 | ;; |
| 19160 | # The "-l" case would never come before the object being |
| 19161 | # linked, so don't bother handling this case. |
| 19162 | esac |
| 19163 | else |
| 19164 | if test -z "$postdeps_CXX"; then |
| 19165 | postdeps_CXX="${prev}${p}" |
| 19166 | else |
| 19167 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 19168 | fi |
| 19169 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19170 | prev= |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19171 | ;; |
| 19172 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19173 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19174 | *.$objext) |
| 19175 | # This assumes that the test object file only shows up |
| 19176 | # once in the compiler output. |
| 19177 | if test "$p" = "conftest.$objext"; then |
| 19178 | pre_test_object_deps_done=yes |
| 19179 | continue |
| 19180 | fi |
| 19181 | |
| 19182 | if test "$pre_test_object_deps_done" = no; then |
| 19183 | if test -z "$predep_objects_CXX"; then |
| 19184 | predep_objects_CXX="$p" |
| 19185 | else |
| 19186 | predep_objects_CXX="$predep_objects_CXX $p" |
| 19187 | fi |
| 19188 | else |
| 19189 | if test -z "$postdep_objects_CXX"; then |
| 19190 | postdep_objects_CXX="$p" |
| 19191 | else |
| 19192 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 19193 | fi |
| 19194 | fi |
| 19195 | ;; |
| 19196 | |
| 19197 | *) ;; # Ignore the rest. |
| 19198 | |
| 19199 | esac |
| 19200 | done |
| 19201 | |
| 19202 | # Clean up. |
| 19203 | rm -f a.out a.exe |
| 19204 | else |
| 19205 | echo "libtool.m4: error: problem compiling CXX test program" |
| 19206 | fi |
| 19207 | |
| 19208 | $RM -f confest.$objext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19209 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19210 | |
| 19211 | # PORTME: override above test on systems where it is broken |
| 19212 | case $host_os in |
| 19213 | interix[3-9]*) |
| 19214 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 19215 | # hack all around it, let's just trust "g++" to DTRT. |
| 19216 | predep_objects_CXX= |
| 19217 | postdep_objects_CXX= |
| 19218 | postdeps_CXX= |
| 19219 | ;; |
| 19220 | |
| 19221 | linux*) |
| 19222 | case `$CC -V 2>&1 | sed 5q` in |
| 19223 | *Sun\ C*) |
| 19224 | # Sun C++ 5.9 |
| 19225 | |
| 19226 | # The more standards-conforming stlport4 library is |
| 19227 | # incompatible with the Cstd library. Avoid specifying |
| 19228 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 19229 | # -library=stlport4 depends on it. |
| 19230 | case " $CXX $CXXFLAGS " in |
| 19231 | *" -library=stlport4 "*) |
| 19232 | solaris_use_stlport4=yes |
| 19233 | ;; |
| 19234 | esac |
| 19235 | |
| 19236 | if test "$solaris_use_stlport4" != yes; then |
| 19237 | postdeps_CXX='-library=Cstd -library=Crun' |
| 19238 | fi |
| 19239 | ;; |
| 19240 | esac |
| 19241 | ;; |
| 19242 | |
| 19243 | solaris*) |
| 19244 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19245 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19246 | # The more standards-conforming stlport4 library is |
| 19247 | # incompatible with the Cstd library. Avoid specifying |
| 19248 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 19249 | # -library=stlport4 depends on it. |
| 19250 | case " $CXX $CXXFLAGS " in |
| 19251 | *" -library=stlport4 "*) |
| 19252 | solaris_use_stlport4=yes |
| 19253 | ;; |
| 19254 | esac |
| 19255 | |
| 19256 | # Adding this requires a known-good setup of shared libraries for |
| 19257 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 19258 | # archive will be linked into the output, leading to subtle bugs. |
| 19259 | if test "$solaris_use_stlport4" != yes; then |
| 19260 | postdeps_CXX='-library=Cstd -library=Crun' |
| 19261 | fi |
| 19262 | ;; |
| 19263 | esac |
| 19264 | ;; |
| 19265 | esac |
| 19266 | |
| 19267 | |
| 19268 | case " $postdeps_CXX " in |
| 19269 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 19270 | esac |
| 19271 | compiler_lib_search_dirs_CXX= |
| 19272 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 19273 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 19274 | fi |
| 19275 | |
| 19276 | |
| 19277 | |
| 19278 | |
| 19279 | |
| 19280 | |
| 19281 | |
| 19282 | |
| 19283 | |
| 19284 | |
| 19285 | |
| 19286 | |
| 19287 | |
| 19288 | |
| 19289 | |
| 19290 | |
| 19291 | |
| 19292 | |
| 19293 | |
| 19294 | |
| 19295 | |
| 19296 | |
| 19297 | |
| 19298 | |
| 19299 | |
| 19300 | |
| 19301 | |
| 19302 | |
| 19303 | |
| 19304 | |
| 19305 | |
| 19306 | lt_prog_compiler_wl_CXX= |
| 19307 | lt_prog_compiler_pic_CXX= |
| 19308 | lt_prog_compiler_static_CXX= |
| 19309 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19310 | |
| 19311 | # C++ specific cases for pic, static, wl, etc. |
| 19312 | if test "$GXX" = yes; then |
| 19313 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19314 | lt_prog_compiler_static_CXX='-static' |
| 19315 | |
| 19316 | case $host_os in |
| 19317 | aix*) |
| 19318 | # All AIX code is PIC. |
| 19319 | if test "$host_cpu" = ia64; then |
| 19320 | # AIX 5 now supports IA64 processor |
| 19321 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19322 | fi |
| 19323 | ;; |
| 19324 | |
| 19325 | amigaos*) |
| 19326 | case $host_cpu in |
| 19327 | powerpc) |
| 19328 | # see comment about AmigaOS4 .so support |
| 19329 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19330 | ;; |
| 19331 | m68k) |
| 19332 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 19333 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 19334 | # like `-m68040'. |
| 19335 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 19336 | ;; |
| 19337 | esac |
| 19338 | ;; |
| 19339 | |
| 19340 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 19341 | # PIC is the default for these OSes. |
| 19342 | ;; |
| 19343 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 19344 | # This hack is so that the source file can tell whether it is being |
| 19345 | # built for inclusion in a dll (and should export symbols for example). |
| 19346 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 19347 | # (--disable-auto-import) libraries |
| 19348 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19349 | ;; |
| 19350 | darwin* | rhapsody*) |
| 19351 | # PIC is the default on this platform |
| 19352 | # Common symbols not allowed in MH_DYLIB files |
| 19353 | lt_prog_compiler_pic_CXX='-fno-common' |
| 19354 | ;; |
| 19355 | *djgpp*) |
| 19356 | # DJGPP does not support shared libraries at all |
| 19357 | lt_prog_compiler_pic_CXX= |
| 19358 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19359 | haiku*) |
| 19360 | # PIC is the default for Haiku. |
| 19361 | # The "-static" flag exists, but is broken. |
| 19362 | lt_prog_compiler_static_CXX= |
| 19363 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19364 | interix[3-9]*) |
| 19365 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 19366 | # Instead, we relocate shared libraries at runtime. |
| 19367 | ;; |
| 19368 | sysv4*MP*) |
| 19369 | if test -d /usr/nec; then |
| 19370 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 19371 | fi |
| 19372 | ;; |
| 19373 | hpux*) |
| 19374 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 19375 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 19376 | # sets the default TLS model and affects inlining. |
| 19377 | case $host_cpu in |
| 19378 | hppa*64*) |
| 19379 | ;; |
| 19380 | *) |
| 19381 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19382 | ;; |
| 19383 | esac |
| 19384 | ;; |
| 19385 | *qnx* | *nto*) |
| 19386 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 19387 | # it will coredump. |
| 19388 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 19389 | ;; |
| 19390 | *) |
| 19391 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19392 | ;; |
| 19393 | esac |
| 19394 | else |
| 19395 | case $host_os in |
| 19396 | aix[4-9]*) |
| 19397 | # All AIX code is PIC. |
| 19398 | if test "$host_cpu" = ia64; then |
| 19399 | # AIX 5 now supports IA64 processor |
| 19400 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19401 | else |
| 19402 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 19403 | fi |
| 19404 | ;; |
| 19405 | chorus*) |
| 19406 | case $cc_basename in |
| 19407 | cxch68*) |
| 19408 | # Green Hills C++ Compiler |
| 19409 | # _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" |
| 19410 | ;; |
| 19411 | esac |
| 19412 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19413 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 19414 | # This hack is so that the source file can tell whether it is being |
| 19415 | # built for inclusion in a dll (and should export symbols for example). |
| 19416 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 19417 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19418 | dgux*) |
| 19419 | case $cc_basename in |
| 19420 | ec++*) |
| 19421 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19422 | ;; |
| 19423 | ghcx*) |
| 19424 | # Green Hills C++ Compiler |
| 19425 | lt_prog_compiler_pic_CXX='-pic' |
| 19426 | ;; |
| 19427 | *) |
| 19428 | ;; |
| 19429 | esac |
| 19430 | ;; |
| 19431 | freebsd* | dragonfly*) |
| 19432 | # FreeBSD uses GNU C++ |
| 19433 | ;; |
| 19434 | hpux9* | hpux10* | hpux11*) |
| 19435 | case $cc_basename in |
| 19436 | CC*) |
| 19437 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19438 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19439 | if test "$host_cpu" != ia64; then |
| 19440 | lt_prog_compiler_pic_CXX='+Z' |
| 19441 | fi |
| 19442 | ;; |
| 19443 | aCC*) |
| 19444 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19445 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 19446 | case $host_cpu in |
| 19447 | hppa*64*|ia64*) |
| 19448 | # +Z the default |
| 19449 | ;; |
| 19450 | *) |
| 19451 | lt_prog_compiler_pic_CXX='+Z' |
| 19452 | ;; |
| 19453 | esac |
| 19454 | ;; |
| 19455 | *) |
| 19456 | ;; |
| 19457 | esac |
| 19458 | ;; |
| 19459 | interix*) |
| 19460 | # This is c89, which is MS Visual C++ (no shared libs) |
| 19461 | # Anyone wants to do a port? |
| 19462 | ;; |
| 19463 | irix5* | irix6* | nonstopux*) |
| 19464 | case $cc_basename in |
| 19465 | CC*) |
| 19466 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19467 | lt_prog_compiler_static_CXX='-non_shared' |
| 19468 | # CC pic flag -KPIC is the default. |
| 19469 | ;; |
| 19470 | *) |
| 19471 | ;; |
| 19472 | esac |
| 19473 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19474 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19475 | case $cc_basename in |
| 19476 | KCC*) |
| 19477 | # KAI C++ Compiler |
| 19478 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19479 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19480 | ;; |
| 19481 | ecpc* ) |
| 19482 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 19483 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19484 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19485 | lt_prog_compiler_static_CXX='-static' |
| 19486 | ;; |
| 19487 | icpc* ) |
| 19488 | # Intel C++, used to be incompatible with GCC. |
| 19489 | # ICC 10 doesn't accept -KPIC any more. |
| 19490 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19491 | lt_prog_compiler_pic_CXX='-fPIC' |
| 19492 | lt_prog_compiler_static_CXX='-static' |
| 19493 | ;; |
| 19494 | pgCC* | pgcpp*) |
| 19495 | # Portland Group C++ compiler |
| 19496 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19497 | lt_prog_compiler_pic_CXX='-fpic' |
| 19498 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19499 | ;; |
| 19500 | cxx*) |
| 19501 | # Compaq C++ |
| 19502 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19503 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19504 | lt_prog_compiler_pic_CXX= |
| 19505 | lt_prog_compiler_static_CXX='-non_shared' |
| 19506 | ;; |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19507 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 19508 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19509 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19510 | lt_prog_compiler_pic_CXX='-qpic' |
| 19511 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 19512 | ;; |
| 19513 | *) |
| 19514 | case `$CC -V 2>&1 | sed 5q` in |
| 19515 | *Sun\ C*) |
| 19516 | # Sun C++ 5.9 |
| 19517 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19518 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19519 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19520 | ;; |
| 19521 | esac |
| 19522 | ;; |
| 19523 | esac |
| 19524 | ;; |
| 19525 | lynxos*) |
| 19526 | ;; |
| 19527 | m88k*) |
| 19528 | ;; |
| 19529 | mvs*) |
| 19530 | case $cc_basename in |
| 19531 | cxx*) |
| 19532 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 19533 | ;; |
| 19534 | *) |
| 19535 | ;; |
| 19536 | esac |
| 19537 | ;; |
| 19538 | netbsd*) |
| 19539 | ;; |
| 19540 | *qnx* | *nto*) |
| 19541 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 19542 | # it will coredump. |
| 19543 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 19544 | ;; |
| 19545 | osf3* | osf4* | osf5*) |
| 19546 | case $cc_basename in |
| 19547 | KCC*) |
| 19548 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 19549 | ;; |
| 19550 | RCC*) |
| 19551 | # Rational C++ 2.4.1 |
| 19552 | lt_prog_compiler_pic_CXX='-pic' |
| 19553 | ;; |
| 19554 | cxx*) |
| 19555 | # Digital/Compaq C++ |
| 19556 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19557 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 19558 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 19559 | lt_prog_compiler_pic_CXX= |
| 19560 | lt_prog_compiler_static_CXX='-non_shared' |
| 19561 | ;; |
| 19562 | *) |
| 19563 | ;; |
| 19564 | esac |
| 19565 | ;; |
| 19566 | psos*) |
| 19567 | ;; |
| 19568 | solaris*) |
| 19569 | case $cc_basename in |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19570 | CC* | sunCC*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19571 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 19572 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19573 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19574 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 19575 | ;; |
| 19576 | gcx*) |
| 19577 | # Green Hills C++ Compiler |
| 19578 | lt_prog_compiler_pic_CXX='-PIC' |
| 19579 | ;; |
| 19580 | *) |
| 19581 | ;; |
| 19582 | esac |
| 19583 | ;; |
| 19584 | sunos4*) |
| 19585 | case $cc_basename in |
| 19586 | CC*) |
| 19587 | # Sun C++ 4.x |
| 19588 | lt_prog_compiler_pic_CXX='-pic' |
| 19589 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19590 | ;; |
| 19591 | lcc*) |
| 19592 | # Lucid |
| 19593 | lt_prog_compiler_pic_CXX='-pic' |
| 19594 | ;; |
| 19595 | *) |
| 19596 | ;; |
| 19597 | esac |
| 19598 | ;; |
| 19599 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 19600 | case $cc_basename in |
| 19601 | CC*) |
| 19602 | lt_prog_compiler_wl_CXX='-Wl,' |
| 19603 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19604 | lt_prog_compiler_static_CXX='-Bstatic' |
| 19605 | ;; |
| 19606 | esac |
| 19607 | ;; |
| 19608 | tandem*) |
| 19609 | case $cc_basename in |
| 19610 | NCC*) |
| 19611 | # NonStop-UX NCC 3.20 |
| 19612 | lt_prog_compiler_pic_CXX='-KPIC' |
| 19613 | ;; |
| 19614 | *) |
| 19615 | ;; |
| 19616 | esac |
| 19617 | ;; |
| 19618 | vxworks*) |
| 19619 | ;; |
| 19620 | *) |
| 19621 | lt_prog_compiler_can_build_shared_CXX=no |
| 19622 | ;; |
| 19623 | esac |
| 19624 | fi |
| 19625 | |
| 19626 | case $host_os in |
| 19627 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 19628 | *djgpp*) |
| 19629 | lt_prog_compiler_pic_CXX= |
| 19630 | ;; |
| 19631 | *) |
| 19632 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 19633 | ;; |
| 19634 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19635 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 19637 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 19638 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 19639 | $as_echo_n "(cached) " >&6 |
| 19640 | else |
| 19641 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 19642 | fi |
| 19643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 19644 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 19645 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19646 | |
| 19647 | # |
| 19648 | # Check to make sure the PIC flag actually works. |
| 19649 | # |
| 19650 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 19651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 19652 | $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] | 19653 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19654 | $as_echo_n "(cached) " >&6 |
| 19655 | else |
| 19656 | lt_cv_prog_compiler_pic_works_CXX=no |
| 19657 | ac_outfile=conftest.$ac_objext |
| 19658 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19659 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 19660 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19661 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19662 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19663 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19664 | # The option is referenced via a variable to avoid confusing sed. |
| 19665 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19666 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 19667 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19668 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19669 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19670 | (eval "$lt_compile" 2>conftest.err) |
| 19671 | ac_status=$? |
| 19672 | cat conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19674 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 19675 | # The compiler can only warn and ignore the option if not recognized |
| 19676 | # So say no if there are warnings other than the usual output. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19677 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19678 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19679 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 19680 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 19681 | fi |
| 19682 | fi |
| 19683 | $RM conftest* |
| 19684 | |
| 19685 | fi |
| 19686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 19687 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 19688 | |
| 19689 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 19690 | case $lt_prog_compiler_pic_CXX in |
| 19691 | "" | " "*) ;; |
| 19692 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 19693 | esac |
| 19694 | else |
| 19695 | lt_prog_compiler_pic_CXX= |
| 19696 | lt_prog_compiler_can_build_shared_CXX=no |
| 19697 | fi |
| 19698 | |
| 19699 | fi |
| 19700 | |
| 19701 | |
| 19702 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19703 | |
| 19704 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19705 | # |
| 19706 | # Check to make sure the static flag actually works. |
| 19707 | # |
| 19708 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 19709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 19710 | $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] | 19711 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19712 | $as_echo_n "(cached) " >&6 |
| 19713 | else |
| 19714 | lt_cv_prog_compiler_static_works_CXX=no |
| 19715 | save_LDFLAGS="$LDFLAGS" |
| 19716 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 19717 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 19718 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 19719 | # The linker can only warn and ignore the option if not recognized |
| 19720 | # So say no if there are warnings |
| 19721 | if test -s conftest.err; then |
| 19722 | # Append any errors to the config.log. |
| 19723 | cat conftest.err 1>&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19724 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19725 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 19726 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 19727 | lt_cv_prog_compiler_static_works_CXX=yes |
| 19728 | fi |
| 19729 | else |
| 19730 | lt_cv_prog_compiler_static_works_CXX=yes |
| 19731 | fi |
| 19732 | fi |
| 19733 | $RM -r conftest* |
| 19734 | LDFLAGS="$save_LDFLAGS" |
| 19735 | |
| 19736 | fi |
| 19737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 19738 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 19739 | |
| 19740 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 19741 | : |
| 19742 | else |
| 19743 | lt_prog_compiler_static_CXX= |
| 19744 | fi |
| 19745 | |
| 19746 | |
| 19747 | |
| 19748 | |
| 19749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19750 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19751 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19752 | $as_echo_n "(cached) " >&6 |
| 19753 | else |
| 19754 | lt_cv_prog_compiler_c_o_CXX=no |
| 19755 | $RM -r conftest 2>/dev/null |
| 19756 | mkdir conftest |
| 19757 | cd conftest |
| 19758 | mkdir out |
| 19759 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19760 | |
| 19761 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19762 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19763 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19764 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19765 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19766 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19767 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 19768 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19769 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19770 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19771 | (eval "$lt_compile" 2>out/conftest.err) |
| 19772 | ac_status=$? |
| 19773 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19775 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19776 | then |
| 19777 | # The compiler can only warn and ignore the option if not recognized |
| 19778 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19779 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19780 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19781 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 19782 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19783 | fi |
| 19784 | fi |
| 19785 | chmod u+w . 2>&5 |
| 19786 | $RM conftest* |
| 19787 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19788 | # template instantiation |
| 19789 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 19790 | $RM out/* && rmdir out |
| 19791 | cd .. |
| 19792 | $RM -r conftest |
| 19793 | $RM conftest* |
| 19794 | |
| 19795 | fi |
| 19796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19797 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 19798 | |
| 19799 | |
| 19800 | |
| 19801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 19802 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19803 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19804 | $as_echo_n "(cached) " >&6 |
| 19805 | else |
| 19806 | lt_cv_prog_compiler_c_o_CXX=no |
| 19807 | $RM -r conftest 2>/dev/null |
| 19808 | mkdir conftest |
| 19809 | cd conftest |
| 19810 | mkdir out |
| 19811 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 19812 | |
| 19813 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 19814 | # Insert the option either (1) after the last *FLAGS variable, or |
| 19815 | # (2) before a word containing "conftest.", or (3) at the end. |
| 19816 | # Note that $ac_compile itself does not contain backslashes and begins |
| 19817 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 19818 | lt_compile=`echo "$ac_compile" | $SED \ |
| 19819 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 19820 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 19821 | -e 's:$: $lt_compiler_flag:'` |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19822 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19823 | (eval "$lt_compile" 2>out/conftest.err) |
| 19824 | ac_status=$? |
| 19825 | cat out/conftest.err >&5 |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19827 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 19828 | then |
| 19829 | # The compiler can only warn and ignore the option if not recognized |
| 19830 | # So say no if there are warnings |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19831 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19832 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 19833 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 19834 | lt_cv_prog_compiler_c_o_CXX=yes |
| 19835 | fi |
| 19836 | fi |
| 19837 | chmod u+w . 2>&5 |
| 19838 | $RM conftest* |
| 19839 | # SGI C++ compiler will create directory out/ii_files/ for |
| 19840 | # template instantiation |
| 19841 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 19842 | $RM out/* && rmdir out |
| 19843 | cd .. |
| 19844 | $RM -r conftest |
| 19845 | $RM conftest* |
| 19846 | |
| 19847 | fi |
| 19848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 19849 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 19850 | |
| 19851 | |
| 19852 | |
| 19853 | |
| 19854 | hard_links="nottested" |
| 19855 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 19856 | # do not overwrite the value of need_locks provided by the user |
| 19857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 19858 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 19859 | hard_links=yes |
| 19860 | $RM conftest* |
| 19861 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19862 | touch conftest.a |
| 19863 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 19864 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 19865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 19866 | $as_echo "$hard_links" >&6; } |
| 19867 | if test "$hard_links" = no; then |
| 19868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 19869 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 19870 | need_locks=warn |
| 19871 | fi |
| 19872 | else |
| 19873 | need_locks=no |
| 19874 | fi |
| 19875 | |
| 19876 | |
| 19877 | |
| 19878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 19879 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 19880 | |
| 19881 | 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] | 19882 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19883 | case $host_os in |
| 19884 | aix[4-9]*) |
| 19885 | # If we're using GNU nm, then we don't want the "-C" option. |
| 19886 | # -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] | 19887 | # Also, AIX nm treats weak defined symbols like other global defined |
| 19888 | # symbols, whereas GNU nm marks them as "W". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19889 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19890 | 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] | 19891 | else |
| 19892 | 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' |
| 19893 | fi |
| 19894 | ;; |
| 19895 | pw32*) |
| 19896 | export_symbols_cmds_CXX="$ltdll_cmds" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19897 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19898 | cygwin* | mingw* | cegcc*) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19899 | case $cc_basename in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 19900 | cl*) |
| 19901 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 19902 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19903 | *) |
| 19904 | 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' |
| 19905 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 19906 | ;; |
| 19907 | esac |
| 19908 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19909 | *) |
| 19910 | 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] | 19911 | ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19912 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19913 | |
| 19914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 19915 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 19916 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 19917 | |
| 19918 | with_gnu_ld_CXX=$with_gnu_ld |
| 19919 | |
| 19920 | |
| 19921 | |
| 19922 | |
| 19923 | |
| 19924 | |
| 19925 | # |
| 19926 | # Do we need to explicitly link libc? |
| 19927 | # |
| 19928 | case "x$archive_cmds_need_lc_CXX" in |
| 19929 | x|xyes) |
| 19930 | # Assume -lc should be added |
| 19931 | archive_cmds_need_lc_CXX=yes |
| 19932 | |
| 19933 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 19934 | case $archive_cmds_CXX in |
| 19935 | *'~'*) |
| 19936 | # FIXME: we may have to deal with multi-command sequences. |
| 19937 | ;; |
| 19938 | '$CC '*) |
| 19939 | # Test whether the compiler implicitly links with -lc since on some |
| 19940 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 19941 | # to ld, don't add -lc before -lgcc. |
| 19942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 19943 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 19944 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19945 | $as_echo_n "(cached) " >&6 |
| 19946 | else |
| 19947 | $RM conftest* |
| 19948 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19949 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19950 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19951 | (eval $ac_compile) 2>&5 |
| 19952 | ac_status=$? |
| 19953 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19954 | test $ac_status = 0; } 2>conftest.err; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19955 | soname=conftest |
| 19956 | lib=conftest |
| 19957 | libobjs=conftest.$ac_objext |
| 19958 | deplibs= |
| 19959 | wl=$lt_prog_compiler_wl_CXX |
| 19960 | pic_flag=$lt_prog_compiler_pic_CXX |
| 19961 | compiler_flags=-v |
| 19962 | linker_flags=-v |
| 19963 | verstring= |
| 19964 | output_objdir=. |
| 19965 | libname=conftest |
| 19966 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 19967 | allow_undefined_flag_CXX= |
| 19968 | 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] | 19969 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 19970 | ac_status=$? |
| 19971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 19972 | test $ac_status = 0; } |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 19973 | then |
| 19974 | lt_cv_archive_cmds_need_lc_CXX=no |
| 19975 | else |
| 19976 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 19977 | fi |
| 19978 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 19979 | else |
| 19980 | cat conftest.err 1>&5 |
| 19981 | fi |
| 19982 | $RM conftest* |
| 19983 | |
| 19984 | fi |
| 19985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 19986 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 19987 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 19988 | ;; |
| 19989 | esac |
| 19990 | fi |
| 19991 | ;; |
| 19992 | esac |
| 19993 | |
| 19994 | |
| 19995 | |
| 19996 | |
| 19997 | |
| 19998 | |
| 19999 | |
| 20000 | |
| 20001 | |
| 20002 | |
| 20003 | |
| 20004 | |
| 20005 | |
| 20006 | |
| 20007 | |
| 20008 | |
| 20009 | |
| 20010 | |
| 20011 | |
| 20012 | |
| 20013 | |
| 20014 | |
| 20015 | |
| 20016 | |
| 20017 | |
| 20018 | |
| 20019 | |
| 20020 | |
| 20021 | |
| 20022 | |
| 20023 | |
| 20024 | |
| 20025 | |
| 20026 | |
| 20027 | |
| 20028 | |
| 20029 | |
| 20030 | |
| 20031 | |
| 20032 | |
| 20033 | |
| 20034 | |
| 20035 | |
| 20036 | |
| 20037 | |
| 20038 | |
| 20039 | |
| 20040 | |
| 20041 | |
| 20042 | |
| 20043 | |
| 20044 | |
| 20045 | |
| 20046 | |
| 20047 | |
| 20048 | |
| 20049 | |
| 20050 | |
| 20051 | |
| 20052 | |
| 20053 | |
| 20054 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 20056 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 20057 | |
| 20058 | library_names_spec= |
| 20059 | libname_spec='lib$name' |
| 20060 | soname_spec= |
| 20061 | shrext_cmds=".so" |
| 20062 | postinstall_cmds= |
| 20063 | postuninstall_cmds= |
| 20064 | finish_cmds= |
| 20065 | finish_eval= |
| 20066 | shlibpath_var= |
| 20067 | shlibpath_overrides_runpath=unknown |
| 20068 | version_type=none |
| 20069 | dynamic_linker="$host_os ld.so" |
| 20070 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 20071 | need_lib_prefix=unknown |
| 20072 | hardcode_into_libs=no |
| 20073 | |
| 20074 | # when you set need_version to no, make sure it does not cause -set_version |
| 20075 | # flags to be left without arguments |
| 20076 | need_version=unknown |
| 20077 | |
| 20078 | case $host_os in |
| 20079 | aix3*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20080 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20081 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 20082 | shlibpath_var=LIBPATH |
| 20083 | |
| 20084 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 20085 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20086 | ;; |
| 20087 | |
| 20088 | aix[4-9]*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20089 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20090 | need_lib_prefix=no |
| 20091 | need_version=no |
| 20092 | hardcode_into_libs=yes |
| 20093 | if test "$host_cpu" = ia64; then |
| 20094 | # AIX 5 supports IA64 |
| 20095 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 20096 | shlibpath_var=LD_LIBRARY_PATH |
| 20097 | else |
| 20098 | # With GCC up to 2.95.x, collect2 would create an import file |
| 20099 | # for dependence libraries. The import file would start with |
| 20100 | # the line `#! .'. This would cause the generated library to |
| 20101 | # depend on `.', always an invalid library. This was fixed in |
| 20102 | # development snapshots of GCC prior to 3.0. |
| 20103 | case $host_os in |
| 20104 | aix4 | aix4.[01] | aix4.[01].*) |
| 20105 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 20106 | echo ' yes ' |
| 20107 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 20108 | : |
| 20109 | else |
| 20110 | can_build_shared=no |
| 20111 | fi |
| 20112 | ;; |
| 20113 | esac |
| 20114 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 20115 | # soname into executable. Probably we can add versioning support to |
| 20116 | # collect2, so additional links can be useful in future. |
| 20117 | if test "$aix_use_runtimelinking" = yes; then |
| 20118 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 20119 | # instead of lib<name>.a to let people know that these are not |
| 20120 | # typical AIX shared libraries. |
| 20121 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20122 | else |
| 20123 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 20124 | # and later when we are not doing run time linking. |
| 20125 | library_names_spec='${libname}${release}.a $libname.a' |
| 20126 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20127 | fi |
| 20128 | shlibpath_var=LIBPATH |
| 20129 | fi |
| 20130 | ;; |
| 20131 | |
| 20132 | amigaos*) |
| 20133 | case $host_cpu in |
| 20134 | powerpc) |
| 20135 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 20136 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 20137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20138 | ;; |
| 20139 | m68k) |
| 20140 | library_names_spec='$libname.ixlibrary $libname.a' |
| 20141 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20142 | 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] | 20143 | ;; |
| 20144 | esac |
| 20145 | ;; |
| 20146 | |
| 20147 | beos*) |
| 20148 | library_names_spec='${libname}${shared_ext}' |
| 20149 | dynamic_linker="$host_os ld.so" |
| 20150 | shlibpath_var=LIBRARY_PATH |
| 20151 | ;; |
| 20152 | |
| 20153 | bsdi[45]*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20154 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20155 | need_version=no |
| 20156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20158 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 20159 | shlibpath_var=LD_LIBRARY_PATH |
| 20160 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 20161 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 20162 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 20163 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 20164 | # libtool to hard-code these into programs |
| 20165 | ;; |
| 20166 | |
| 20167 | cygwin* | mingw* | pw32* | cegcc*) |
| 20168 | version_type=windows |
| 20169 | shrext_cmds=".dll" |
| 20170 | need_version=no |
| 20171 | need_lib_prefix=no |
| 20172 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20173 | case $GCC,$cc_basename in |
| 20174 | yes,*) |
| 20175 | # gcc |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20176 | library_names_spec='$libname.dll.a' |
| 20177 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 20178 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20179 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 20180 | dldir=$destdir/`dirname \$dlpath`~ |
| 20181 | test -d \$dldir || mkdir -p \$dldir~ |
| 20182 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 20183 | chmod a+x \$dldir/$dlname~ |
| 20184 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 20185 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 20186 | fi' |
| 20187 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20188 | dlpath=$dir/\$dldll~ |
| 20189 | $RM \$dlpath' |
| 20190 | shlibpath_overrides_runpath=yes |
| 20191 | |
| 20192 | case $host_os in |
| 20193 | cygwin*) |
| 20194 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 20195 | 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] | 20196 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20197 | ;; |
| 20198 | mingw* | cegcc*) |
| 20199 | # MinGW DLLs use traditional 'lib' prefix |
| 20200 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20201 | ;; |
| 20202 | pw32*) |
| 20203 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 20204 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20205 | ;; |
| 20206 | esac |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20207 | dynamic_linker='Win32 ld.exe' |
| 20208 | ;; |
| 20209 | |
| 20210 | *,cl*) |
| 20211 | # Native MSVC |
| 20212 | libname_spec='$name' |
| 20213 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 20214 | library_names_spec='${libname}.dll.lib' |
| 20215 | |
| 20216 | case $build_os in |
| 20217 | mingw*) |
| 20218 | sys_lib_search_path_spec= |
| 20219 | lt_save_ifs=$IFS |
| 20220 | IFS=';' |
| 20221 | for lt_path in $LIB |
| 20222 | do |
| 20223 | IFS=$lt_save_ifs |
| 20224 | # Let DOS variable expansion print the short 8.3 style file name. |
| 20225 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 20226 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 20227 | done |
| 20228 | IFS=$lt_save_ifs |
| 20229 | # Convert to MSYS style. |
| 20230 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 20231 | ;; |
| 20232 | cygwin*) |
| 20233 | # Convert to unix form, then to dos form, then back to unix form |
| 20234 | # but this time dos style (no spaces!) so that the unix form looks |
| 20235 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 20236 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 20237 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 20238 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20239 | ;; |
| 20240 | *) |
| 20241 | sys_lib_search_path_spec="$LIB" |
| 20242 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 20243 | # It is most probably a Windows format PATH. |
| 20244 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 20245 | else |
| 20246 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 20247 | fi |
| 20248 | # FIXME: find the short name or the path components, as spaces are |
| 20249 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 20250 | ;; |
| 20251 | esac |
| 20252 | |
| 20253 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 20254 | postinstall_cmds='base_file=`basename \${file}`~ |
| 20255 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 20256 | dldir=$destdir/`dirname \$dlpath`~ |
| 20257 | test -d \$dldir || mkdir -p \$dldir~ |
| 20258 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 20259 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 20260 | dlpath=$dir/\$dldll~ |
| 20261 | $RM \$dlpath' |
| 20262 | shlibpath_overrides_runpath=yes |
| 20263 | dynamic_linker='Win32 link.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20264 | ;; |
| 20265 | |
| 20266 | *) |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20267 | # Assume MSVC wrapper |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20268 | 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] | 20269 | dynamic_linker='Win32 ld.exe' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20270 | ;; |
| 20271 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20272 | # FIXME: first we should search . and the directory the executable is in |
| 20273 | shlibpath_var=PATH |
| 20274 | ;; |
| 20275 | |
| 20276 | darwin* | rhapsody*) |
| 20277 | dynamic_linker="$host_os dyld" |
| 20278 | version_type=darwin |
| 20279 | need_lib_prefix=no |
| 20280 | need_version=no |
| 20281 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 20282 | soname_spec='${libname}${release}${major}$shared_ext' |
| 20283 | shlibpath_overrides_runpath=yes |
| 20284 | shlibpath_var=DYLD_LIBRARY_PATH |
| 20285 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 20286 | |
| 20287 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 20288 | ;; |
| 20289 | |
| 20290 | dgux*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20291 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20292 | need_lib_prefix=no |
| 20293 | need_version=no |
| 20294 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 20295 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20296 | shlibpath_var=LD_LIBRARY_PATH |
| 20297 | ;; |
| 20298 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20299 | freebsd* | dragonfly*) |
| 20300 | # DragonFly does not have aout. When/if they implement a new |
| 20301 | # versioning mechanism, adjust this. |
| 20302 | if test -x /usr/bin/objformat; then |
| 20303 | objformat=`/usr/bin/objformat` |
| 20304 | else |
| 20305 | case $host_os in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20306 | freebsd[23].*) objformat=aout ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20307 | *) objformat=elf ;; |
| 20308 | esac |
| 20309 | fi |
| 20310 | version_type=freebsd-$objformat |
| 20311 | case $version_type in |
| 20312 | freebsd-elf*) |
| 20313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20314 | need_version=no |
| 20315 | need_lib_prefix=no |
| 20316 | ;; |
| 20317 | freebsd-*) |
| 20318 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 20319 | need_version=yes |
| 20320 | ;; |
| 20321 | esac |
| 20322 | shlibpath_var=LD_LIBRARY_PATH |
| 20323 | case $host_os in |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20324 | freebsd2.*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20325 | shlibpath_overrides_runpath=yes |
| 20326 | ;; |
| 20327 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 20328 | shlibpath_overrides_runpath=yes |
| 20329 | hardcode_into_libs=yes |
| 20330 | ;; |
| 20331 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 20332 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 20333 | shlibpath_overrides_runpath=no |
| 20334 | hardcode_into_libs=yes |
| 20335 | ;; |
| 20336 | *) # from 4.6 on, and DragonFly |
| 20337 | shlibpath_overrides_runpath=yes |
| 20338 | hardcode_into_libs=yes |
| 20339 | ;; |
| 20340 | esac |
| 20341 | ;; |
| 20342 | |
| 20343 | gnu*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20344 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20345 | need_lib_prefix=no |
| 20346 | need_version=no |
| 20347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20348 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20349 | shlibpath_var=LD_LIBRARY_PATH |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20350 | shlibpath_overrides_runpath=no |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20351 | hardcode_into_libs=yes |
| 20352 | ;; |
| 20353 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20354 | haiku*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20355 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20356 | need_lib_prefix=no |
| 20357 | need_version=no |
| 20358 | dynamic_linker="$host_os runtime_loader" |
| 20359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 20360 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20361 | shlibpath_var=LIBRARY_PATH |
| 20362 | shlibpath_overrides_runpath=yes |
| 20363 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 20364 | hardcode_into_libs=yes |
| 20365 | ;; |
| 20366 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20367 | hpux9* | hpux10* | hpux11*) |
| 20368 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 20369 | # link against other versions. |
| 20370 | version_type=sunos |
| 20371 | need_lib_prefix=no |
| 20372 | need_version=no |
| 20373 | case $host_cpu in |
| 20374 | ia64*) |
| 20375 | shrext_cmds='.so' |
| 20376 | hardcode_into_libs=yes |
| 20377 | dynamic_linker="$host_os dld.so" |
| 20378 | shlibpath_var=LD_LIBRARY_PATH |
| 20379 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20380 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20381 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20382 | if test "X$HPUX_IA64_MODE" = X32; then |
| 20383 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 20384 | else |
| 20385 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 20386 | fi |
| 20387 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20388 | ;; |
| 20389 | hppa*64*) |
| 20390 | shrext_cmds='.sl' |
| 20391 | hardcode_into_libs=yes |
| 20392 | dynamic_linker="$host_os dld.sl" |
| 20393 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 20394 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 20395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20396 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20397 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 20398 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 20399 | ;; |
| 20400 | *) |
| 20401 | shrext_cmds='.sl' |
| 20402 | dynamic_linker="$host_os dld.sl" |
| 20403 | shlibpath_var=SHLIB_PATH |
| 20404 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 20405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20406 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20407 | ;; |
| 20408 | esac |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20409 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20410 | postinstall_cmds='chmod 555 $lib' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20411 | # or fails outright, so override atomically: |
| 20412 | install_override_mode=555 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20413 | ;; |
| 20414 | |
| 20415 | interix[3-9]*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20416 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20417 | need_lib_prefix=no |
| 20418 | need_version=no |
| 20419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20421 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 20422 | shlibpath_var=LD_LIBRARY_PATH |
| 20423 | shlibpath_overrides_runpath=no |
| 20424 | hardcode_into_libs=yes |
| 20425 | ;; |
| 20426 | |
| 20427 | irix5* | irix6* | nonstopux*) |
| 20428 | case $host_os in |
| 20429 | nonstopux*) version_type=nonstopux ;; |
| 20430 | *) |
| 20431 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20432 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20433 | else |
| 20434 | version_type=irix |
| 20435 | fi ;; |
| 20436 | esac |
| 20437 | need_lib_prefix=no |
| 20438 | need_version=no |
| 20439 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20441 | case $host_os in |
| 20442 | irix5* | nonstopux*) |
| 20443 | libsuff= shlibsuff= |
| 20444 | ;; |
| 20445 | *) |
| 20446 | case $LD in # libtool.m4 will add one of these switches to LD |
| 20447 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 20448 | libsuff= shlibsuff= libmagic=32-bit;; |
| 20449 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 20450 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 20451 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 20452 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 20453 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 20454 | esac |
| 20455 | ;; |
| 20456 | esac |
| 20457 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 20458 | shlibpath_overrides_runpath=no |
| 20459 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 20460 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 20461 | hardcode_into_libs=yes |
| 20462 | ;; |
| 20463 | |
| 20464 | # No shared lib support for Linux oldld, aout, or coff. |
| 20465 | linux*oldld* | linux*aout* | linux*coff*) |
| 20466 | dynamic_linker=no |
| 20467 | ;; |
| 20468 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20469 | # This must be glibc/ELF. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20470 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20471 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20472 | need_lib_prefix=no |
| 20473 | need_version=no |
| 20474 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20475 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20476 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 20477 | shlibpath_var=LD_LIBRARY_PATH |
| 20478 | shlibpath_overrides_runpath=no |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20479 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20480 | # Some binutils ld are patched to set DT_RUNPATH |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20481 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20482 | $as_echo_n "(cached) " >&6 |
| 20483 | else |
| 20484 | lt_cv_shlibpath_overrides_runpath=no |
| 20485 | save_LDFLAGS=$LDFLAGS |
| 20486 | save_libdir=$libdir |
| 20487 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 20488 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 20489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20490 | /* end confdefs.h. */ |
| 20491 | |
| 20492 | int |
| 20493 | main () |
| 20494 | { |
| 20495 | |
| 20496 | ; |
| 20497 | return 0; |
| 20498 | } |
| 20499 | _ACEOF |
| 20500 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 20501 | 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] | 20502 | lt_cv_shlibpath_overrides_runpath=yes |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20503 | fi |
| 20504 | fi |
| 20505 | rm -f core conftest.err conftest.$ac_objext \ |
| 20506 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20507 | LDFLAGS=$save_LDFLAGS |
| 20508 | libdir=$save_libdir |
| 20509 | |
| 20510 | fi |
| 20511 | |
| 20512 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20513 | |
| 20514 | # This implies no fast_install, which is unacceptable. |
| 20515 | # Some rework will be needed to allow for fast_install |
| 20516 | # before this can be enabled. |
| 20517 | hardcode_into_libs=yes |
| 20518 | |
| 20519 | # Add ABI-specific directories to the system library path. |
| 20520 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
| 20521 | |
| 20522 | # Append ld.so.conf contents to the search path |
| 20523 | if test -f /etc/ld.so.conf; then |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20524 | 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] | 20525 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20526 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20527 | fi |
| 20528 | |
| 20529 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 20530 | # powerpc, because MkLinux only supported shared libraries with the |
| 20531 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 20532 | # most powerpc-linux boxes support dynamic linking these days and |
| 20533 | # people can always --disable-shared, the test was removed, and we |
| 20534 | # assume the GNU/Linux dynamic linker is in use. |
| 20535 | dynamic_linker='GNU/Linux ld.so' |
| 20536 | ;; |
| 20537 | |
| 20538 | netbsd*) |
| 20539 | version_type=sunos |
| 20540 | need_lib_prefix=no |
| 20541 | need_version=no |
| 20542 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 20543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20544 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20545 | dynamic_linker='NetBSD (a.out) ld.so' |
| 20546 | else |
| 20547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 20548 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20549 | dynamic_linker='NetBSD ld.elf_so' |
| 20550 | fi |
| 20551 | shlibpath_var=LD_LIBRARY_PATH |
| 20552 | shlibpath_overrides_runpath=yes |
| 20553 | hardcode_into_libs=yes |
| 20554 | ;; |
| 20555 | |
| 20556 | newsos6) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20557 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20558 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20559 | shlibpath_var=LD_LIBRARY_PATH |
| 20560 | shlibpath_overrides_runpath=yes |
| 20561 | ;; |
| 20562 | |
| 20563 | *nto* | *qnx*) |
| 20564 | version_type=qnx |
| 20565 | need_lib_prefix=no |
| 20566 | need_version=no |
| 20567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20568 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20569 | shlibpath_var=LD_LIBRARY_PATH |
| 20570 | shlibpath_overrides_runpath=no |
| 20571 | hardcode_into_libs=yes |
| 20572 | dynamic_linker='ldqnx.so' |
| 20573 | ;; |
| 20574 | |
| 20575 | openbsd*) |
| 20576 | version_type=sunos |
| 20577 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 20578 | need_lib_prefix=no |
| 20579 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 20580 | case $host_os in |
| 20581 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 20582 | *) need_version=no ;; |
| 20583 | esac |
| 20584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20585 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 20586 | shlibpath_var=LD_LIBRARY_PATH |
| 20587 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 20588 | case $host_os in |
| 20589 | openbsd2.[89] | openbsd2.[89].*) |
| 20590 | shlibpath_overrides_runpath=no |
| 20591 | ;; |
| 20592 | *) |
| 20593 | shlibpath_overrides_runpath=yes |
| 20594 | ;; |
| 20595 | esac |
| 20596 | else |
| 20597 | shlibpath_overrides_runpath=yes |
| 20598 | fi |
| 20599 | ;; |
| 20600 | |
| 20601 | os2*) |
| 20602 | libname_spec='$name' |
| 20603 | shrext_cmds=".dll" |
| 20604 | need_lib_prefix=no |
| 20605 | library_names_spec='$libname${shared_ext} $libname.a' |
| 20606 | dynamic_linker='OS/2 ld.exe' |
| 20607 | shlibpath_var=LIBPATH |
| 20608 | ;; |
| 20609 | |
| 20610 | osf3* | osf4* | osf5*) |
| 20611 | version_type=osf |
| 20612 | need_lib_prefix=no |
| 20613 | need_version=no |
| 20614 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20616 | shlibpath_var=LD_LIBRARY_PATH |
| 20617 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 20618 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 20619 | ;; |
| 20620 | |
| 20621 | rdos*) |
| 20622 | dynamic_linker=no |
| 20623 | ;; |
| 20624 | |
| 20625 | solaris*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20626 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20627 | need_lib_prefix=no |
| 20628 | need_version=no |
| 20629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20630 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20631 | shlibpath_var=LD_LIBRARY_PATH |
| 20632 | shlibpath_overrides_runpath=yes |
| 20633 | hardcode_into_libs=yes |
| 20634 | # ldd complains unless libraries are executable |
| 20635 | postinstall_cmds='chmod +x $lib' |
| 20636 | ;; |
| 20637 | |
| 20638 | sunos4*) |
| 20639 | version_type=sunos |
| 20640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 20641 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 20642 | shlibpath_var=LD_LIBRARY_PATH |
| 20643 | shlibpath_overrides_runpath=yes |
| 20644 | if test "$with_gnu_ld" = yes; then |
| 20645 | need_lib_prefix=no |
| 20646 | fi |
| 20647 | need_version=yes |
| 20648 | ;; |
| 20649 | |
| 20650 | sysv4 | sysv4.3*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20651 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20653 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20654 | shlibpath_var=LD_LIBRARY_PATH |
| 20655 | case $host_vendor in |
| 20656 | sni) |
| 20657 | shlibpath_overrides_runpath=no |
| 20658 | need_lib_prefix=no |
| 20659 | runpath_var=LD_RUN_PATH |
| 20660 | ;; |
| 20661 | siemens) |
| 20662 | need_lib_prefix=no |
| 20663 | ;; |
| 20664 | motorola) |
| 20665 | need_lib_prefix=no |
| 20666 | need_version=no |
| 20667 | shlibpath_overrides_runpath=no |
| 20668 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 20669 | ;; |
| 20670 | esac |
| 20671 | ;; |
| 20672 | |
| 20673 | sysv4*MP*) |
| 20674 | if test -d /usr/nec ;then |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20675 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20676 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 20677 | soname_spec='$libname${shared_ext}.$major' |
| 20678 | shlibpath_var=LD_LIBRARY_PATH |
| 20679 | fi |
| 20680 | ;; |
| 20681 | |
| 20682 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 20683 | version_type=freebsd-elf |
| 20684 | need_lib_prefix=no |
| 20685 | need_version=no |
| 20686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 20687 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20688 | shlibpath_var=LD_LIBRARY_PATH |
| 20689 | shlibpath_overrides_runpath=yes |
| 20690 | hardcode_into_libs=yes |
| 20691 | if test "$with_gnu_ld" = yes; then |
| 20692 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 20693 | else |
| 20694 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 20695 | case $host_os in |
| 20696 | sco3.2v5*) |
| 20697 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 20698 | ;; |
| 20699 | esac |
| 20700 | fi |
| 20701 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 20702 | ;; |
| 20703 | |
| 20704 | tpf*) |
| 20705 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20706 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20707 | need_lib_prefix=no |
| 20708 | need_version=no |
| 20709 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20710 | shlibpath_var=LD_LIBRARY_PATH |
| 20711 | shlibpath_overrides_runpath=no |
| 20712 | hardcode_into_libs=yes |
| 20713 | ;; |
| 20714 | |
| 20715 | uts4*) |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20716 | version_type=linux # correct to gnu/linux during the next big refactor |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 20718 | soname_spec='${libname}${release}${shared_ext}$major' |
| 20719 | shlibpath_var=LD_LIBRARY_PATH |
| 20720 | ;; |
| 20721 | |
| 20722 | *) |
| 20723 | dynamic_linker=no |
| 20724 | ;; |
| 20725 | esac |
| 20726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 20727 | $as_echo "$dynamic_linker" >&6; } |
| 20728 | test "$dynamic_linker" = no && can_build_shared=no |
| 20729 | |
| 20730 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 20731 | if test "$GCC" = yes; then |
| 20732 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 20733 | fi |
| 20734 | |
| 20735 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 20736 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 20737 | fi |
| 20738 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 20739 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 20740 | fi |
| 20741 | |
| 20742 | |
| 20743 | |
| 20744 | |
| 20745 | |
| 20746 | |
| 20747 | |
| 20748 | |
| 20749 | |
| 20750 | |
| 20751 | |
| 20752 | |
| 20753 | |
| 20754 | |
| 20755 | |
| 20756 | |
| 20757 | |
| 20758 | |
| 20759 | |
| 20760 | |
| 20761 | |
| 20762 | |
| 20763 | |
| 20764 | |
| 20765 | |
| 20766 | |
| 20767 | |
| 20768 | |
| 20769 | |
| 20770 | |
| 20771 | |
| 20772 | |
| 20773 | |
| 20774 | |
| 20775 | |
| 20776 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 20777 | |
| 20778 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 20780 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 20781 | hardcode_action_CXX= |
| 20782 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 20783 | test -n "$runpath_var_CXX" || |
| 20784 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 20785 | |
| 20786 | # We can hardcode non-existent directories. |
| 20787 | if test "$hardcode_direct_CXX" != no && |
| 20788 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 20789 | # have to relink, otherwise we might link with an installed library |
| 20790 | # when we should be linking with a yet-to-be-installed one |
| 20791 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 20792 | test "$hardcode_minus_L_CXX" != no; then |
| 20793 | # Linking always hardcodes the temporary library directory. |
| 20794 | hardcode_action_CXX=relink |
| 20795 | else |
| 20796 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 20797 | hardcode_action_CXX=immediate |
| 20798 | fi |
| 20799 | else |
| 20800 | # We cannot hardcode anything, or else we can only hardcode existing |
| 20801 | # directories. |
| 20802 | hardcode_action_CXX=unsupported |
| 20803 | fi |
| 20804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 20805 | $as_echo "$hardcode_action_CXX" >&6; } |
| 20806 | |
| 20807 | if test "$hardcode_action_CXX" = relink || |
| 20808 | test "$inherit_rpath_CXX" = yes; then |
| 20809 | # Fast installation is not supported |
| 20810 | enable_fast_install=no |
| 20811 | elif test "$shlibpath_overrides_runpath" = yes || |
| 20812 | test "$enable_shared" = no; then |
| 20813 | # Fast installation is not necessary |
| 20814 | enable_fast_install=needless |
| 20815 | fi |
| 20816 | |
| 20817 | |
| 20818 | |
| 20819 | |
| 20820 | |
| 20821 | |
| 20822 | |
| 20823 | fi # test -n "$compiler" |
| 20824 | |
| 20825 | CC=$lt_save_CC |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 20826 | CFLAGS=$lt_save_CFLAGS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20827 | LDCXX=$LD |
| 20828 | LD=$lt_save_LD |
| 20829 | GCC=$lt_save_GCC |
| 20830 | with_gnu_ld=$lt_save_with_gnu_ld |
| 20831 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 20832 | lt_cv_path_LD=$lt_save_path_LD |
| 20833 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 20834 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 20835 | fi # test "$_lt_caught_CXX_error" != yes |
| 20836 | |
| 20837 | ac_ext=c |
| 20838 | ac_cpp='$CPP $CPPFLAGS' |
| 20839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20842 | |
| 20843 | |
| 20844 | |
| 20845 | |
| 20846 | |
| 20847 | |
| 20848 | |
| 20849 | |
| 20850 | |
| 20851 | |
| 20852 | |
| 20853 | |
| 20854 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 20855 | |
| 20856 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20857 | ac_config_commands="$ac_config_commands libtool" |
| 20858 | |
| 20859 | |
| 20860 | |
| 20861 | |
| 20862 | # Only expand once: |
| 20863 | |
| 20864 | |
| 20865 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20866 | |
| 20867 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20868 | # Check to see if building shared libraries |
| 20869 | libtool_build_shared_libs='no' |
| 20870 | if test "$enable_shared" = 'yes'; then |
| 20871 | libtool_build_shared_libs='yes' |
| 20872 | fi |
| 20873 | |
| 20874 | # Check to see if building static libraries |
| 20875 | libtool_build_static_libs='no' |
| 20876 | if test "$enable_static" = 'yes'; then |
| 20877 | libtool_build_static_libs='yes' |
| 20878 | fi |
| 20879 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20880 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 20881 | WITH_SHARED_LIBS_TRUE= |
| 20882 | WITH_SHARED_LIBS_FALSE='#' |
| 20883 | else |
| 20884 | WITH_SHARED_LIBS_TRUE='#' |
| 20885 | WITH_SHARED_LIBS_FALSE= |
| 20886 | fi |
| 20887 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20888 | # |
| 20889 | # Enable support for building loadable modules |
| 20890 | # |
| cristy | af4cbf3 | 2012-10-16 23:47:41 +0000 | [diff] [blame] | 20891 | build_modules='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20892 | |
| 20893 | # Check whether --with-modules was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20894 | if test "${with_modules+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20895 | withval=$with_modules; with_modules=$withval |
| 20896 | else |
| cristy | 5a1cefd | 2010-01-06 20:42:35 +0000 | [diff] [blame] | 20897 | with_modules='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20898 | fi |
| 20899 | |
| 20900 | |
| 20901 | # Only allow building loadable modules if we are building shared libraries |
| 20902 | if test "$with_modules" != 'no' ; then |
| 20903 | if test "$libtool_build_shared_libs" = 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20904 | { $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] | 20905 | $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;} |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 20906 | build_modules='no' |
| 20907 | else |
| 20908 | build_modules='yes' |
| 20909 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20910 | fi |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 20911 | if test "$build_modules" != 'no' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20912 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20913 | $as_echo "#define BUILD_MODULES 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20914 | |
| cristy | fa16118 | 2012-12-19 15:45:28 +0000 | [diff] [blame] | 20915 | MAGICK_FEATURES="$MAGICK_FEATURES Modules" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20916 | fi |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 20917 | if test "$build_modules" != 'no'; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 20918 | WITH_MODULES_TRUE= |
| 20919 | WITH_MODULES_FALSE='#' |
| 20920 | else |
| 20921 | WITH_MODULES_TRUE='#' |
| 20922 | WITH_MODULES_FALSE= |
| 20923 | fi |
| 20924 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20925 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20926 | # Enable build using delegate libraries built in subdirectories rather than installed |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 20927 | # 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] | 20928 | # Check whether --enable-delegate-build was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20929 | if test "${enable_delegate_build+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20930 | enableval=$enable_delegate_build; enable_delegate_build=$enableval |
| 20931 | else |
| 20932 | enable_delegate_build='no' |
| 20933 | fi |
| 20934 | |
| 20935 | |
| 20936 | # Check whether --enable-deprecated was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20937 | if test "${enable_deprecated+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20938 | enableval=$enable_deprecated; enable_deprecated=$enableval |
| 20939 | else |
| 20940 | enable_deprecated='no' |
| 20941 | fi |
| 20942 | |
| 20943 | |
| 20944 | if test "$enable_deprecated" = 'yes'; then |
| 20945 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20946 | $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20947 | |
| 20948 | else |
| 20949 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated " |
| 20950 | fi |
| 20951 | |
| 20952 | # Build a version of ImageMagick which operates uninstalled. |
| 20953 | # Used to build distributions located via MAGICK_HOME / executable path |
| 20954 | # Check whether --enable-installed was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20955 | if test "${enable_installed+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20956 | enableval=$enable_installed; enable_installed=$enableval |
| 20957 | else |
| 20958 | enable_installed='yes' |
| 20959 | fi |
| 20960 | |
| 20961 | |
| 20962 | if test "$enable_installed" = 'yes'; then |
| 20963 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20964 | $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20965 | |
| 20966 | else |
| 20967 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed " |
| 20968 | fi |
| 20969 | |
| 20970 | # Permit enciphering and deciphering image pixels. |
| 20971 | # Check whether --enable-cipher was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20972 | if test "${enable_cipher+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20973 | enableval=$enable_cipher; enable_cipher=$enableval |
| 20974 | else |
| 20975 | enable_cipher='yes' |
| 20976 | fi |
| 20977 | |
| 20978 | |
| 20979 | if test "$enable_cipher" = 'yes'; then |
| 20980 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 20981 | $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20982 | |
| 20983 | fi |
| 20984 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 20985 | # Build a zero-configuration version of ImageMagick. |
| 20986 | # Check whether --enable-zero-configuration was given. |
| 20987 | if test "${enable_zero_configuration+set}" = set; then : |
| 20988 | enableval=$enable_zero_configuration; enable_zero_configuration=$enableval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20989 | else |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 20990 | enable_zero_configuration='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20991 | fi |
| 20992 | |
| 20993 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 20994 | if test "$enable_zero_configuration" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20995 | |
| cristy | 6e3607c | 2011-09-13 13:59:17 +0000 | [diff] [blame] | 20996 | $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20997 | |
| cristy | 81af570 | 2011-09-13 14:20:58 +0000 | [diff] [blame] | 20998 | MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 20999 | fi |
| 21000 | |
| 21001 | # Build a high dynamic range version of ImageMagick. |
| 21002 | # Check whether --enable-hdri was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21003 | if test "${enable_hdri+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21004 | enableval=$enable_hdri; enable_hdri=$enableval |
| 21005 | else |
| cristy | 191c0b7 | 2012-08-12 16:29:52 +0000 | [diff] [blame] | 21006 | enable_hdri='yes' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21007 | fi |
| 21008 | |
| 21009 | |
| 21010 | MAGICK_HDRI="" |
| 21011 | if test "$enable_hdri" = 'yes'; then |
| 21012 | MAGICK_HDRI="HDRI" |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 21013 | magick_hdri_enable='1'; |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 21014 | MAGICK_FEATURES="HDRI $MAGICK_FEATURES" |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 21015 | else |
| 21016 | magick_hdri_enable='0' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21017 | fi |
| 21018 | |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 21019 | cat >>confdefs.h <<_ACEOF |
| 21020 | #define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable |
| 21021 | _ACEOF |
| 21022 | |
| 21023 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" |
| 21024 | CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" |
| cristy | 7206238 | 2012-12-31 16:49:52 +0000 | [diff] [blame] | 21025 | CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable" |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 21026 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21027 | # Build a version of ImageMagick with assert statements. |
| 21028 | # Check whether --enable-assert was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21029 | if test "${enable_assert+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21030 | enableval=$enable_assert; enable_assert=$enableval |
| 21031 | else |
| 21032 | enable_assert='yes' |
| 21033 | fi |
| 21034 | |
| 21035 | |
| 21036 | if test "$enable_assert" = 'no'; then |
| 21037 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21038 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21039 | |
| 21040 | fi |
| 21041 | |
| cristy | a448bd2 | 2011-10-14 12:38:13 +0000 | [diff] [blame] | 21042 | # Don't emit "rebuild rules" for configure, Makefile.ins, etc. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 21043 | |
| 21044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 21045 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 21046 | # Check whether --enable-maintainer-mode was given. |
| 21047 | if test "${enable_maintainer_mode+set}" = set; then : |
| 21048 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 21049 | else |
| 21050 | USE_MAINTAINER_MODE=no |
| 21051 | fi |
| 21052 | |
| 21053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 21054 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 21055 | if test $USE_MAINTAINER_MODE = yes; then |
| 21056 | MAINTAINER_MODE_TRUE= |
| 21057 | MAINTAINER_MODE_FALSE='#' |
| 21058 | else |
| 21059 | MAINTAINER_MODE_TRUE='#' |
| 21060 | MAINTAINER_MODE_FALSE= |
| 21061 | fi |
| 21062 | |
| 21063 | MAINT=$MAINTAINER_MODE_TRUE |
| 21064 | |
| 21065 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21066 | |
| cristy | 944e51f | 2013-04-16 18:45:02 +0000 | [diff] [blame] | 21067 | # Enable hugepages support |
| 21068 | # Check whether --enable-hugepages was given. |
| 21069 | if test "${enable_hugepages+set}" = set; then : |
| 21070 | enableval=$enable_hugepages; enable_hugepages=$enableval |
| 21071 | else |
| 21072 | enable_hugepages='no' |
| 21073 | fi |
| 21074 | |
| 21075 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21076 | # Enable ccmalloc memory debugging support |
| 21077 | # Check whether --enable-ccmalloc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21078 | if test "${enable_ccmalloc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21079 | enableval=$enable_ccmalloc; enable_ccmalloc=$enableval |
| 21080 | else |
| 21081 | enable_ccmalloc='no' |
| 21082 | fi |
| 21083 | |
| 21084 | |
| 21085 | # Enable Electric Fence memory debugging support |
| 21086 | # Check whether --enable-efence was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21087 | if test "${enable_efence+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21088 | enableval=$enable_efence; enable_efence=$enableval |
| 21089 | else |
| 21090 | enable_efence='no' |
| 21091 | fi |
| 21092 | |
| 21093 | |
| 21094 | # Enable prof-based profiling support |
| 21095 | # Check whether --enable-prof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21096 | if test "${enable_prof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21097 | enableval=$enable_prof; enable_prof=$enableval |
| 21098 | else |
| 21099 | enable_prof='no' |
| 21100 | fi |
| 21101 | |
| 21102 | |
| 21103 | # Enable gprof-based profiling support |
| 21104 | # Check whether --enable-gprof was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21105 | if test "${enable_gprof+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21106 | enableval=$enable_gprof; enable_gprof=$enableval |
| 21107 | else |
| 21108 | enable_gprof='no' |
| 21109 | fi |
| 21110 | |
| 21111 | |
| 21112 | # Enable gcov-based profiling support |
| 21113 | # Check whether --enable-gcov was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21114 | if test "${enable_gcov+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21115 | enableval=$enable_gcov; enable_gcov=$enableval |
| 21116 | else |
| 21117 | enable_gcov='no' |
| 21118 | fi |
| 21119 | |
| 21120 | |
| 21121 | enable_profiling='no' |
| 21122 | if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then |
| 21123 | enable_profiling='yes' |
| 21124 | if test "$libtool_build_shared_libs" = 'yes'; then |
| 21125 | echo "Warning: Can not profile code using shared libraries" |
| 21126 | fi |
| 21127 | fi |
| 21128 | |
| 21129 | # Magick API method prefix |
| 21130 | |
| 21131 | # Check whether --with-method-prefix was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21132 | if test "${with_method_prefix+set}" = set; then : |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 21133 | withval=$with_method_prefix; with_method_prefix=$withval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21134 | else |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 21135 | with_method_prefix='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21136 | fi |
| 21137 | |
| 21138 | |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 21139 | if test "$with_method_prefix" != 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21140 | |
| 21141 | cat >>confdefs.h <<_ACEOF |
| 21142 | #define NAMESPACE_PREFIX $with_method_prefix |
| 21143 | _ACEOF |
| 21144 | |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 21145 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21146 | fi |
| 21147 | |
| cristy | 71d8c20 | 2012-03-20 17:05:01 +0000 | [diff] [blame] | 21148 | # Enable legacy support (default no) |
| 21149 | # Check whether --enable-legacy-support was given. |
| 21150 | if test "${enable_legacy_support+set}" = set; then : |
| 21151 | enableval=$enable_legacy_support; with_legacy_support=$enableval |
| 21152 | else |
| 21153 | with_legacy_support='no' |
| 21154 | fi |
| 21155 | |
| 21156 | if test "$with_legacy_support" != 'no'; then |
| 21157 | LEGACY_SUPPORT_TRUE= |
| 21158 | LEGACY_SUPPORT_FALSE='#' |
| 21159 | else |
| 21160 | LEGACY_SUPPORT_TRUE='#' |
| 21161 | LEGACY_SUPPORT_FALSE= |
| 21162 | fi |
| 21163 | |
| 21164 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21165 | # Number of bits in a Quantum |
| 21166 | |
| 21167 | # Check whether --with-quantum-depth was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21168 | if test "${with_quantum_depth+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21169 | withval=$with_quantum_depth; with_quantum_depth=$withval |
| 21170 | else |
| 21171 | with_quantum_depth=16 |
| 21172 | fi |
| 21173 | |
| 21174 | |
| 21175 | if test "$with_quantum_depth" != '8'; then |
| 21176 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth " |
| 21177 | fi |
| 21178 | |
| 21179 | case "${with_quantum_depth}" in |
| 21180 | 8 ) ;; |
| 21181 | 16 ) ;; |
| 21182 | 32 ) ;; |
| 21183 | 64 ) ;; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21184 | * ) 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] | 21185 | esac |
| 21186 | QUANTUM_DEPTH="$with_quantum_depth" |
| 21187 | |
| 21188 | cat >>confdefs.h <<_ACEOF |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 21189 | #define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21190 | _ACEOF |
| 21191 | |
| cristy | a371edf | 2013-02-06 13:42:17 +0000 | [diff] [blame] | 21192 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 21193 | CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" |
| cristy | 7206238 | 2012-12-31 16:49:52 +0000 | [diff] [blame] | 21194 | CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21195 | |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 21196 | # define a lib suffix for abi purpose |
| cristy | 7a26abd | 2012-12-03 00:18:59 +0000 | [diff] [blame] | 21197 | MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}" |
| cristy | e386d19 | 2012-12-01 21:05:20 +0000 | [diff] [blame] | 21198 | if test "$enable_hdri" = 'yes'; then |
| cristy | 7a26abd | 2012-12-03 00:18:59 +0000 | [diff] [blame] | 21199 | MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}" |
| cristy | e386d19 | 2012-12-01 21:05:20 +0000 | [diff] [blame] | 21200 | fi |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 21201 | |
| 21202 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21203 | # Set pixel cache threshold |
| 21204 | |
| 21205 | # Check whether --with-cache was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21206 | if test "${with_cache+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21207 | withval=$with_cache; with_cache=$withval |
| 21208 | else |
| 21209 | with_cache='' |
| 21210 | fi |
| 21211 | |
| 21212 | |
| 21213 | if test "$with_cache" != ''; then |
| 21214 | |
| 21215 | cat >>confdefs.h <<_ACEOF |
| 21216 | #define PixelCacheThreshold $with_cache |
| 21217 | _ACEOF |
| 21218 | |
| 21219 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache " |
| 21220 | fi |
| 21221 | |
| 21222 | # Disable/Enable support for full delegate paths |
| 21223 | |
| 21224 | # Check whether --with-frozenpaths was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21225 | if test "${with_frozenpaths+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21226 | withval=$with_frozenpaths; with_frozenpaths=$withval |
| 21227 | else |
| 21228 | with_frozenpaths='no' |
| 21229 | fi |
| 21230 | |
| 21231 | |
| 21232 | # Enable build/install of Magick++ |
| 21233 | |
| 21234 | # Check whether --with-magick-plus-plus was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21235 | if test "${with_magick_plus_plus+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21236 | withval=$with_magick_plus_plus; with_magick_plus_plus=$withval |
| 21237 | else |
| 21238 | with_magick_plus_plus='yes' |
| 21239 | fi |
| 21240 | |
| 21241 | |
| cristy | 3a75f06 | 2012-09-08 23:29:40 +0000 | [diff] [blame] | 21242 | # Encode the this name into the shared library. |
| 21243 | |
| 21244 | # Check whether --with-package-release-name was given. |
| 21245 | if test "${with_package_release_name+set}" = set; then : |
| 21246 | withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval" |
| 21247 | fi |
| 21248 | |
| 21249 | |
| 21250 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21251 | # Disable build/install of PerlMagick. |
| 21252 | |
| 21253 | # Check whether --with-perl was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21254 | if test "${with_perl+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21255 | withval=$with_perl; with_perl=$withval |
| 21256 | else |
| cristy | b5f4e2f | 2010-04-25 00:49:11 +0000 | [diff] [blame] | 21257 | with_perl='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21258 | fi |
| 21259 | |
| 21260 | |
| 21261 | # Options to pass when configuring PerlMagick |
| 21262 | |
| 21263 | # Check whether --with-perl-options was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21264 | if test "${with_perl_options+set}" = set; then : |
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 21265 | withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21266 | fi |
| 21267 | |
| 21268 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21269 | |
| 21270 | # Enable umem, object-caching memory allocation library. |
| 21271 | |
| 21272 | # Check whether --with-umem was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21273 | if test "${with_umem+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21274 | withval=$with_umem; with_umem=$withval |
| 21275 | else |
| 21276 | with_umem='no' |
| 21277 | fi |
| 21278 | |
| 21279 | if test "$with_umem" != 'yes' ; then |
| 21280 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem " |
| 21281 | fi |
| 21282 | |
| 21283 | # |
| 21284 | # Specify path to shared libstdc++ if not in normal location |
| 21285 | # |
| 21286 | |
| 21287 | # Check whether --with-libstdc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21288 | if test "${with_libstdc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21289 | withval=$with_libstdc; with_libstdc=$withval |
| 21290 | else |
| 21291 | with_libstdc='' |
| 21292 | fi |
| 21293 | |
| 21294 | |
| 21295 | if test "$with_libstdc" != ''; then |
| 21296 | if test -d "$with_libstdc"; then |
| 21297 | LIBSTDCLDFLAGS="-L$with_libstdc" |
| 21298 | fi |
| 21299 | fi |
| 21300 | |
| 21301 | |
| 21302 | # Does gcc required -traditional? |
| 21303 | if test $ac_cv_c_compiler_gnu = yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21305 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21306 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21307 | $as_echo_n "(cached) " >&6 |
| 21308 | else |
| 21309 | ac_pattern="Autoconf.*'x'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21311 | /* end confdefs.h. */ |
| 21312 | #include <sgtty.h> |
| 21313 | Autoconf TIOCGETP |
| 21314 | _ACEOF |
| 21315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21316 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21317 | ac_cv_prog_gcc_traditional=yes |
| 21318 | else |
| 21319 | ac_cv_prog_gcc_traditional=no |
| 21320 | fi |
| 21321 | rm -f conftest* |
| 21322 | |
| 21323 | |
| 21324 | if test $ac_cv_prog_gcc_traditional = no; then |
| 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 <termio.h> |
| 21328 | Autoconf TCGETA |
| 21329 | _ACEOF |
| 21330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21331 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21332 | ac_cv_prog_gcc_traditional=yes |
| 21333 | fi |
| 21334 | rm -f conftest* |
| 21335 | |
| 21336 | fi |
| 21337 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21338 | { $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] | 21339 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
| 21340 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 21341 | CC="$CC -traditional" |
| 21342 | fi |
| 21343 | fi |
| 21344 | |
| 21345 | |
| 21346 | ######## |
| 21347 | # |
| 21348 | # Set defines required to build DLLs and modules using MinGW |
| 21349 | # |
| 21350 | ######## |
| 21351 | # These options are set for multi-thread DLL module build |
| 21352 | # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_ |
| 21353 | # module: _DLL |
| 21354 | # executable/Magick++: _DLL _MAGICKMOD_ |
| 21355 | MODULE_EXTRA_CPPFLAGS='' |
| 21356 | LIBRARY_EXTRA_CPPFLAGS='' |
| 21357 | if test "${native_win32_build}" = 'yes'; then |
| 21358 | if test "${libtool_build_shared_libs}" = 'yes'; then |
| 21359 | CPPFLAGS="$CPPFLAGS -D_DLL" |
| 21360 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL" |
| 21361 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL" |
| 21362 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 21363 | if test "$build_modules" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21364 | LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_" |
| 21365 | else |
| 21366 | MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_" |
| 21367 | fi |
| 21368 | else |
| 21369 | CPPFLAGS="$CPPFLAGS -D_LIB" |
| 21370 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB" |
| 21371 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB" |
| 21372 | fi |
| 21373 | if test "$with_threads" = 'yes'; then |
| 21374 | CPPFLAGS="$CPPFLAGS -D_MT" |
| 21375 | MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT" |
| 21376 | MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT" |
| 21377 | fi |
| 21378 | fi |
| 21379 | |
| 21380 | |
| 21381 | |
| 21382 | # Check standard headers |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21383 | { $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] | 21384 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21385 | if ${ac_cv_header_stdc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21386 | $as_echo_n "(cached) " >&6 |
| 21387 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21388 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21389 | /* end confdefs.h. */ |
| 21390 | #include <stdlib.h> |
| 21391 | #include <stdarg.h> |
| 21392 | #include <string.h> |
| 21393 | #include <float.h> |
| 21394 | |
| 21395 | int |
| 21396 | main () |
| 21397 | { |
| 21398 | |
| 21399 | ; |
| 21400 | return 0; |
| 21401 | } |
| 21402 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21403 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21404 | ac_cv_header_stdc=yes |
| 21405 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21406 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21407 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21409 | |
| 21410 | if test $ac_cv_header_stdc = yes; then |
| 21411 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21413 | /* end confdefs.h. */ |
| 21414 | #include <string.h> |
| 21415 | |
| 21416 | _ACEOF |
| 21417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21418 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 21419 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21420 | else |
| 21421 | ac_cv_header_stdc=no |
| 21422 | fi |
| 21423 | rm -f conftest* |
| 21424 | |
| 21425 | fi |
| 21426 | |
| 21427 | if test $ac_cv_header_stdc = yes; then |
| 21428 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21430 | /* end confdefs.h. */ |
| 21431 | #include <stdlib.h> |
| 21432 | |
| 21433 | _ACEOF |
| 21434 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21435 | $EGREP "free" >/dev/null 2>&1; then : |
| 21436 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21437 | else |
| 21438 | ac_cv_header_stdc=no |
| 21439 | fi |
| 21440 | rm -f conftest* |
| 21441 | |
| 21442 | fi |
| 21443 | |
| 21444 | if test $ac_cv_header_stdc = yes; then |
| 21445 | # /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] | 21446 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21447 | : |
| 21448 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21450 | /* end confdefs.h. */ |
| 21451 | #include <ctype.h> |
| 21452 | #include <stdlib.h> |
| 21453 | #if ((' ' & 0x0FF) == 0x020) |
| 21454 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 21455 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 21456 | #else |
| 21457 | # define ISLOWER(c) \ |
| 21458 | (('a' <= (c) && (c) <= 'i') \ |
| 21459 | || ('j' <= (c) && (c) <= 'r') \ |
| 21460 | || ('s' <= (c) && (c) <= 'z')) |
| 21461 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 21462 | #endif |
| 21463 | |
| 21464 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 21465 | int |
| 21466 | main () |
| 21467 | { |
| 21468 | int i; |
| 21469 | for (i = 0; i < 256; i++) |
| 21470 | if (XOR (islower (i), ISLOWER (i)) |
| 21471 | || toupper (i) != TOUPPER (i)) |
| 21472 | return 2; |
| 21473 | return 0; |
| 21474 | } |
| 21475 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21476 | if ac_fn_c_try_run "$LINENO"; then : |
| 21477 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21478 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21479 | ac_cv_header_stdc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21480 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21481 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21482 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21483 | fi |
| 21484 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21485 | fi |
| 21486 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21488 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 21489 | if test $ac_cv_header_stdc = yes; then |
| 21490 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21491 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21492 | |
| 21493 | fi |
| 21494 | |
| 21495 | if ! test x"$ac_cv_header_stdc" = x"yes"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21496 | { $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] | 21497 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21498 | headers and rerun this script." >&5 |
| 21499 | $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C |
| 21500 | header files. Compilation cannot proceed. Please install the ANSI C |
| 21501 | headers and rerun this script." >&2;}; |
| 21502 | fi |
| cristy | a0b81c3 | 2010-01-22 02:54:33 +0000 | [diff] [blame] | 21503 | |
| 21504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5 |
| 21505 | $as_echo_n "checking whether to enable assertions... " >&6; } |
| 21506 | # Check whether --enable-assert was given. |
| 21507 | if test "${enable_assert+set}" = set; then : |
| 21508 | enableval=$enable_assert; ac_enable_assert=$enableval |
| 21509 | if test "x$enableval" = xno; then : |
| 21510 | |
| 21511 | $as_echo "#define NDEBUG 1" >>confdefs.h |
| 21512 | |
| 21513 | elif test "x$enableval" != xyes; then : |
| 21514 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5 |
| 21515 | $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;} |
| 21516 | ac_enable_assert=yes |
| 21517 | fi |
| 21518 | else |
| 21519 | ac_enable_assert=yes |
| 21520 | fi |
| 21521 | |
| 21522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5 |
| 21523 | $as_echo "$ac_enable_assert" >&6; } |
| 21524 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21525 | ac_header_dirent=no |
| 21526 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 21527 | 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] | 21528 | { $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] | 21529 | $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21530 | if eval \${$as_ac_Header+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21531 | $as_echo_n "(cached) " >&6 |
| 21532 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21534 | /* end confdefs.h. */ |
| 21535 | #include <sys/types.h> |
| 21536 | #include <$ac_hdr> |
| 21537 | |
| 21538 | int |
| 21539 | main () |
| 21540 | { |
| 21541 | if ((DIR *) 0) |
| 21542 | return 0; |
| 21543 | ; |
| 21544 | return 0; |
| 21545 | } |
| 21546 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21547 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21548 | eval "$as_ac_Header=yes" |
| 21549 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21550 | eval "$as_ac_Header=no" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21551 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21553 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21554 | eval ac_res=\$$as_ac_Header |
| 21555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21556 | $as_echo "$ac_res" >&6; } |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 21557 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21558 | cat >>confdefs.h <<_ACEOF |
| 21559 | #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 21560 | _ACEOF |
| 21561 | |
| 21562 | ac_header_dirent=$ac_hdr; break |
| 21563 | fi |
| 21564 | |
| 21565 | done |
| 21566 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 21567 | if test $ac_header_dirent = dirent.h; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21569 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21570 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21571 | $as_echo_n "(cached) " >&6 |
| 21572 | else |
| 21573 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21575 | /* end confdefs.h. */ |
| 21576 | |
| 21577 | /* Override any GCC internal prototype to avoid an error. |
| 21578 | Use char because int might match the return type of a GCC |
| 21579 | builtin and then its argument prototype would still apply. */ |
| 21580 | #ifdef __cplusplus |
| 21581 | extern "C" |
| 21582 | #endif |
| 21583 | char opendir (); |
| 21584 | int |
| 21585 | main () |
| 21586 | { |
| 21587 | return opendir (); |
| 21588 | ; |
| 21589 | return 0; |
| 21590 | } |
| 21591 | _ACEOF |
| 21592 | for ac_lib in '' dir; do |
| 21593 | if test -z "$ac_lib"; then |
| 21594 | ac_res="none required" |
| 21595 | else |
| 21596 | ac_res=-l$ac_lib |
| 21597 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21598 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21599 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21600 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21601 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21602 | rm -f core conftest.err conftest.$ac_objext \ |
| 21603 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21604 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21605 | break |
| 21606 | fi |
| 21607 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21608 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21609 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21610 | else |
| 21611 | ac_cv_search_opendir=no |
| 21612 | fi |
| 21613 | rm conftest.$ac_ext |
| 21614 | LIBS=$ac_func_search_save_LIBS |
| 21615 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21617 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21618 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21619 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21620 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21621 | |
| 21622 | fi |
| 21623 | |
| 21624 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21626 | $as_echo_n "checking for library containing opendir... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21627 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21628 | $as_echo_n "(cached) " >&6 |
| 21629 | else |
| 21630 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21632 | /* end confdefs.h. */ |
| 21633 | |
| 21634 | /* Override any GCC internal prototype to avoid an error. |
| 21635 | Use char because int might match the return type of a GCC |
| 21636 | builtin and then its argument prototype would still apply. */ |
| 21637 | #ifdef __cplusplus |
| 21638 | extern "C" |
| 21639 | #endif |
| 21640 | char opendir (); |
| 21641 | int |
| 21642 | main () |
| 21643 | { |
| 21644 | return opendir (); |
| 21645 | ; |
| 21646 | return 0; |
| 21647 | } |
| 21648 | _ACEOF |
| 21649 | for ac_lib in '' x; do |
| 21650 | if test -z "$ac_lib"; then |
| 21651 | ac_res="none required" |
| 21652 | else |
| 21653 | ac_res=-l$ac_lib |
| 21654 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 21655 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21656 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21657 | ac_cv_search_opendir=$ac_res |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21658 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21659 | rm -f core conftest.err conftest.$ac_objext \ |
| 21660 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21661 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21662 | break |
| 21663 | fi |
| 21664 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21665 | if ${ac_cv_search_opendir+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21666 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21667 | else |
| 21668 | ac_cv_search_opendir=no |
| 21669 | fi |
| 21670 | rm conftest.$ac_ext |
| 21671 | LIBS=$ac_func_search_save_LIBS |
| 21672 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21674 | $as_echo "$ac_cv_search_opendir" >&6; } |
| 21675 | ac_res=$ac_cv_search_opendir |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21676 | if test "$ac_res" != no; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21677 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 21678 | |
| 21679 | fi |
| 21680 | |
| 21681 | fi |
| 21682 | |
| 21683 | |
| 21684 | # Check additional headers |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 21685 | for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21686 | do : |
| 21687 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 21688 | 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] | 21689 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21690 | cat >>confdefs.h <<_ACEOF |
| 21691 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 21692 | _ACEOF |
| 21693 | |
| 21694 | fi |
| 21695 | |
| 21696 | done |
| 21697 | |
| 21698 | |
| 21699 | ######## |
| 21700 | # |
| 21701 | # Checks for typedefs, structures, and compiler characteristics. |
| 21702 | # |
| 21703 | ######## |
| 21704 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21705 | { $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] | 21706 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21707 | if ${ac_cv_header_stdbool_h+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21708 | $as_echo_n "(cached) " >&6 |
| 21709 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21711 | /* end confdefs.h. */ |
| 21712 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 21713 | #include <stdbool.h> |
| 21714 | #ifndef bool |
| 21715 | "error: bool is not defined" |
| 21716 | #endif |
| 21717 | #ifndef false |
| 21718 | "error: false is not defined" |
| 21719 | #endif |
| 21720 | #if false |
| 21721 | "error: false is not 0" |
| 21722 | #endif |
| 21723 | #ifndef true |
| 21724 | "error: true is not defined" |
| 21725 | #endif |
| 21726 | #if true != 1 |
| 21727 | "error: true is not 1" |
| 21728 | #endif |
| 21729 | #ifndef __bool_true_false_are_defined |
| 21730 | "error: __bool_true_false_are_defined is not defined" |
| 21731 | #endif |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21732 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 21733 | struct s { _Bool s: 1; _Bool t; } s; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21734 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 21735 | char a[true == 1 ? 1 : -1]; |
| 21736 | char b[false == 0 ? 1 : -1]; |
| 21737 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 21738 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 21739 | /* See body of main program for 'e'. */ |
| 21740 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 21741 | char g[true]; |
| 21742 | char h[sizeof (_Bool)]; |
| 21743 | char i[sizeof s.t]; |
| 21744 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 21745 | /* The following fails for |
| 21746 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 21747 | _Bool n[m]; |
| 21748 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 21749 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 21750 | /* Catch a bug in an HP-UX C compiler. See |
| 21751 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 21752 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 21753 | */ |
| 21754 | _Bool q = true; |
| 21755 | _Bool *pq = &q; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21756 | |
| 21757 | int |
| 21758 | main () |
| 21759 | { |
| 21760 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 21761 | bool e = &s; |
| 21762 | *pq |= q; |
| 21763 | *pq |= ! q; |
| 21764 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 21765 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 21766 | + !m + !n + !o + !p + !q + !pq); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21767 | |
| 21768 | ; |
| 21769 | return 0; |
| 21770 | } |
| 21771 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21772 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21773 | ac_cv_header_stdbool_h=yes |
| 21774 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21775 | ac_cv_header_stdbool_h=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21776 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21777 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21778 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21779 | { $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] | 21780 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 21781 | 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] | 21782 | if test "x$ac_cv_type__Bool" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21783 | |
| 21784 | cat >>confdefs.h <<_ACEOF |
| 21785 | #define HAVE__BOOL 1 |
| 21786 | _ACEOF |
| 21787 | |
| 21788 | |
| 21789 | fi |
| 21790 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 21791 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21792 | if test $ac_cv_header_stdbool_h = yes; then |
| 21793 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21794 | $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21795 | |
| 21796 | fi |
| 21797 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21799 | $as_echo_n "checking for working volatile... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21800 | if ${ac_cv_c_volatile+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21801 | $as_echo_n "(cached) " >&6 |
| 21802 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21804 | /* end confdefs.h. */ |
| 21805 | |
| 21806 | int |
| 21807 | main () |
| 21808 | { |
| 21809 | |
| 21810 | volatile int x; |
| 21811 | int * volatile y = (int *) 0; |
| 21812 | return !x && !y; |
| 21813 | ; |
| 21814 | return 0; |
| 21815 | } |
| 21816 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21817 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21818 | ac_cv_c_volatile=yes |
| 21819 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21820 | ac_cv_c_volatile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21821 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21823 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21825 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 21826 | if test $ac_cv_c_volatile = no; then |
| 21827 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21828 | $as_echo "#define volatile /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21829 | |
| 21830 | fi |
| 21831 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21833 | $as_echo_n "checking for preprocessor stringizing operator... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21834 | if ${ac_cv_c_stringize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21835 | $as_echo_n "(cached) " >&6 |
| 21836 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21838 | /* end confdefs.h. */ |
| 21839 | #define x(y) #y |
| 21840 | |
| 21841 | char *s = x(teststring); |
| 21842 | _ACEOF |
| 21843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21844 | $EGREP "#teststring" >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21845 | ac_cv_c_stringize=no |
| 21846 | else |
| 21847 | ac_cv_c_stringize=yes |
| 21848 | fi |
| 21849 | rm -f conftest* |
| 21850 | |
| 21851 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21853 | $as_echo "$ac_cv_c_stringize" >&6; } |
| 21854 | if test $ac_cv_c_stringize = yes; then |
| 21855 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21856 | $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21857 | |
| 21858 | fi |
| 21859 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21860 | { $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] | 21861 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21862 | if ${ac_cv_header_stat_broken+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21863 | $as_echo_n "(cached) " >&6 |
| 21864 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21866 | /* end confdefs.h. */ |
| 21867 | #include <sys/types.h> |
| 21868 | #include <sys/stat.h> |
| 21869 | |
| 21870 | #if defined S_ISBLK && defined S_IFDIR |
| 21871 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 21872 | #endif |
| 21873 | |
| 21874 | #if defined S_ISBLK && defined S_IFCHR |
| 21875 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 21876 | #endif |
| 21877 | |
| 21878 | #if defined S_ISLNK && defined S_IFREG |
| 21879 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 21880 | #endif |
| 21881 | |
| 21882 | #if defined S_ISSOCK && defined S_IFREG |
| 21883 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 21884 | #endif |
| 21885 | |
| 21886 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21887 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21888 | ac_cv_header_stat_broken=no |
| 21889 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21890 | ac_cv_header_stat_broken=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21891 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21893 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21894 | { $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] | 21895 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 21896 | if test $ac_cv_header_stat_broken = yes; then |
| 21897 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21898 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21899 | |
| 21900 | fi |
| 21901 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21902 | { $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] | 21903 | $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] | 21904 | if ${ac_cv_header_time+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21905 | $as_echo_n "(cached) " >&6 |
| 21906 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21908 | /* end confdefs.h. */ |
| 21909 | #include <sys/types.h> |
| 21910 | #include <sys/time.h> |
| 21911 | #include <time.h> |
| 21912 | |
| 21913 | int |
| 21914 | main () |
| 21915 | { |
| 21916 | if ((struct tm *) 0) |
| 21917 | return 0; |
| 21918 | ; |
| 21919 | return 0; |
| 21920 | } |
| 21921 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21922 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21923 | ac_cv_header_time=yes |
| 21924 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21925 | ac_cv_header_time=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21926 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21927 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21928 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21930 | $as_echo "$ac_cv_header_time" >&6; } |
| 21931 | if test $ac_cv_header_time = yes; then |
| 21932 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21933 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21934 | |
| 21935 | fi |
| 21936 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21937 | { $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] | 21938 | $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] | 21939 | if ${ac_cv_struct_tm+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21940 | $as_echo_n "(cached) " >&6 |
| 21941 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21943 | /* end confdefs.h. */ |
| 21944 | #include <sys/types.h> |
| 21945 | #include <time.h> |
| 21946 | |
| 21947 | int |
| 21948 | main () |
| 21949 | { |
| 21950 | struct tm tm; |
| 21951 | int *p = &tm.tm_sec; |
| 21952 | return !p; |
| 21953 | ; |
| 21954 | return 0; |
| 21955 | } |
| 21956 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21957 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21958 | ac_cv_struct_tm=time.h |
| 21959 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21960 | ac_cv_struct_tm=sys/time.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21961 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21963 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21965 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 21966 | if test $ac_cv_struct_tm = sys/time.h; then |
| 21967 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 21968 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21969 | |
| 21970 | fi |
| 21971 | |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21972 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 21973 | #include <$ac_cv_struct_tm> |
| 21974 | |
| 21975 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21976 | if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21977 | |
| 21978 | cat >>confdefs.h <<_ACEOF |
| 21979 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 21980 | _ACEOF |
| 21981 | |
| 21982 | |
| 21983 | fi |
| 21984 | |
| 21985 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 21986 | |
| 21987 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 21988 | |
| 21989 | else |
| 21990 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 21991 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 21992 | if test "x$ac_cv_have_decl_tzname" = xyes; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 21993 | ac_have_decl=1 |
| 21994 | else |
| 21995 | ac_have_decl=0 |
| 21996 | fi |
| 21997 | |
| 21998 | cat >>confdefs.h <<_ACEOF |
| 21999 | #define HAVE_DECL_TZNAME $ac_have_decl |
| 22000 | _ACEOF |
| 22001 | |
| 22002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 22003 | $as_echo_n "checking for tzname... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22004 | if ${ac_cv_var_tzname+:} false; then : |
| cristy | 92703d8 | 2010-04-26 00:18:18 +0000 | [diff] [blame] | 22005 | $as_echo_n "(cached) " >&6 |
| 22006 | else |
| 22007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22008 | /* end confdefs.h. */ |
| 22009 | #include <time.h> |
| 22010 | #if !HAVE_DECL_TZNAME |
| 22011 | extern char *tzname[]; |
| 22012 | #endif |
| 22013 | |
| 22014 | int |
| 22015 | main () |
| 22016 | { |
| 22017 | return tzname[0][0]; |
| 22018 | ; |
| 22019 | return 0; |
| 22020 | } |
| 22021 | _ACEOF |
| 22022 | if ac_fn_c_try_link "$LINENO"; then : |
| 22023 | ac_cv_var_tzname=yes |
| 22024 | else |
| 22025 | ac_cv_var_tzname=no |
| 22026 | fi |
| 22027 | rm -f core conftest.err conftest.$ac_objext \ |
| 22028 | conftest$ac_exeext conftest.$ac_ext |
| 22029 | fi |
| 22030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 22031 | $as_echo "$ac_cv_var_tzname" >&6; } |
| 22032 | if test $ac_cv_var_tzname = yes; then |
| 22033 | |
| 22034 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
| 22035 | |
| 22036 | fi |
| 22037 | fi |
| 22038 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22039 | { $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] | 22040 | $as_echo_n "checking whether #! works in shell scripts... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22041 | if ${ac_cv_sys_interpreter+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22042 | $as_echo_n "(cached) " >&6 |
| 22043 | else |
| 22044 | echo '#! /bin/cat |
| 22045 | exit 69 |
| 22046 | ' >conftest |
| 22047 | chmod u+x conftest |
| 22048 | (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1) |
| 22049 | if test $? -ne 69; then |
| 22050 | ac_cv_sys_interpreter=yes |
| 22051 | else |
| 22052 | ac_cv_sys_interpreter=no |
| 22053 | fi |
| 22054 | rm -f conftest |
| 22055 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22057 | $as_echo "$ac_cv_sys_interpreter" >&6; } |
| 22058 | interpval=$ac_cv_sys_interpreter |
| 22059 | |
| 22060 | |
| cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 22061 | # |
| 22062 | # Checks for language qualifiers and semantics. |
| 22063 | # |
| 22064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 22065 | $as_echo_n "checking whether char is unsigned... " >&6; } |
| 22066 | if ${ac_cv_c_char_unsigned+:} false; then : |
| 22067 | $as_echo_n "(cached) " >&6 |
| 22068 | else |
| 22069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22070 | /* end confdefs.h. */ |
| 22071 | $ac_includes_default |
| 22072 | int |
| 22073 | main () |
| 22074 | { |
| 22075 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 22076 | test_array [0] = 0; |
| 22077 | return test_array [0]; |
| 22078 | |
| 22079 | ; |
| 22080 | return 0; |
| 22081 | } |
| 22082 | _ACEOF |
| 22083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22084 | ac_cv_c_char_unsigned=no |
| 22085 | else |
| 22086 | ac_cv_c_char_unsigned=yes |
| 22087 | fi |
| 22088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22089 | fi |
| 22090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 22091 | $as_echo "$ac_cv_c_char_unsigned" >&6; } |
| 22092 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 22093 | $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| 22094 | |
| 22095 | fi |
| 22096 | |
| 22097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 22098 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
| 22099 | if ${ac_cv_c_const+:} false; then : |
| 22100 | $as_echo_n "(cached) " >&6 |
| 22101 | else |
| 22102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22103 | /* end confdefs.h. */ |
| 22104 | |
| 22105 | int |
| 22106 | main () |
| 22107 | { |
| 22108 | |
| 22109 | #ifndef __cplusplus |
| 22110 | /* Ultrix mips cc rejects this sort of thing. */ |
| 22111 | typedef int charset[2]; |
| 22112 | const charset cs = { 0, 0 }; |
| 22113 | /* SunOS 4.1.1 cc rejects this. */ |
| 22114 | char const *const *pcpcc; |
| 22115 | char **ppc; |
| 22116 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 22117 | struct point {int x, y;}; |
| 22118 | static struct point const zero = {0,0}; |
| 22119 | /* AIX XL C 1.02.0.0 rejects this. |
| 22120 | It does not let you subtract one const X* pointer from another in |
| 22121 | an arm of an if-expression whose if-part is not a constant |
| 22122 | expression */ |
| 22123 | const char *g = "string"; |
| 22124 | pcpcc = &g + (g ? g-g : 0); |
| 22125 | /* HPUX 7.0 cc rejects these. */ |
| 22126 | ++pcpcc; |
| 22127 | ppc = (char**) pcpcc; |
| 22128 | pcpcc = (char const *const *) ppc; |
| 22129 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 22130 | char tx; |
| 22131 | char *t = &tx; |
| 22132 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 22133 | |
| 22134 | *t++ = 0; |
| 22135 | if (s) return 0; |
| 22136 | } |
| 22137 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 22138 | int x[] = {25, 17}; |
| 22139 | const int *foo = &x[0]; |
| 22140 | ++foo; |
| 22141 | } |
| 22142 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 22143 | typedef const int *iptr; |
| 22144 | iptr p = 0; |
| 22145 | ++p; |
| 22146 | } |
| 22147 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
| 22148 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 22149 | struct s { int j; const int *ap[3]; } bx; |
| 22150 | struct s *b = &bx; b->j = 5; |
| 22151 | } |
| 22152 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 22153 | const int foo = 10; |
| 22154 | if (!foo) return 0; |
| 22155 | } |
| 22156 | return !cs[0] && !zero.x; |
| 22157 | #endif |
| 22158 | |
| 22159 | ; |
| 22160 | return 0; |
| 22161 | } |
| 22162 | _ACEOF |
| 22163 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22164 | ac_cv_c_const=yes |
| 22165 | else |
| 22166 | ac_cv_c_const=no |
| 22167 | fi |
| 22168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22169 | fi |
| 22170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 22171 | $as_echo "$ac_cv_c_const" >&6; } |
| 22172 | if test $ac_cv_c_const = no; then |
| 22173 | |
| 22174 | $as_echo "#define const /**/" >>confdefs.h |
| 22175 | |
| 22176 | fi |
| 22177 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22179 | $as_echo_n "checking for inline... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22180 | if ${ac_cv_c_inline+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22181 | $as_echo_n "(cached) " >&6 |
| 22182 | else |
| 22183 | ac_cv_c_inline=no |
| 22184 | for ac_kw in inline __inline__ __inline; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22186 | /* end confdefs.h. */ |
| 22187 | #ifndef __cplusplus |
| 22188 | typedef int foo_t; |
| 22189 | static $ac_kw foo_t static_foo () {return 0; } |
| 22190 | $ac_kw foo_t foo () {return 0; } |
| 22191 | #endif |
| 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 | ac_cv_c_inline=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22196 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22197 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22198 | test "$ac_cv_c_inline" != no && break |
| 22199 | done |
| 22200 | |
| 22201 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22203 | $as_echo "$ac_cv_c_inline" >&6; } |
| 22204 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22205 | case $ac_cv_c_inline in |
| 22206 | inline | yes) ;; |
| 22207 | *) |
| 22208 | case $ac_cv_c_inline in |
| 22209 | no) ac_val=;; |
| 22210 | *) ac_val=$ac_cv_c_inline;; |
| 22211 | esac |
| 22212 | cat >>confdefs.h <<_ACEOF |
| 22213 | #ifndef __cplusplus |
| 22214 | #define inline $ac_val |
| 22215 | #endif |
| 22216 | _ACEOF |
| 22217 | ;; |
| 22218 | esac |
| 22219 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22220 | { $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] | 22221 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22222 | if ${ac_cv_c_restrict+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22223 | $as_echo_n "(cached) " >&6 |
| 22224 | else |
| 22225 | ac_cv_c_restrict=no |
| 22226 | # The order here caters to the fact that C++ does not require restrict. |
| 22227 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22229 | /* end confdefs.h. */ |
| 22230 | typedef int * int_ptr; |
| 22231 | int foo (int_ptr $ac_kw ip) { |
| 22232 | return ip[0]; |
| 22233 | } |
| 22234 | int |
| 22235 | main () |
| 22236 | { |
| 22237 | int s[1]; |
| 22238 | int * $ac_kw t = s; |
| 22239 | t[0] = 0; |
| 22240 | return foo(t) |
| 22241 | ; |
| 22242 | return 0; |
| 22243 | } |
| 22244 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22245 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22246 | ac_cv_c_restrict=$ac_kw |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22247 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22249 | test "$ac_cv_c_restrict" != no && break |
| 22250 | done |
| 22251 | |
| 22252 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22254 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 22255 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22256 | case $ac_cv_c_restrict in |
| 22257 | restrict) ;; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22258 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22259 | ;; |
| 22260 | *) cat >>confdefs.h <<_ACEOF |
| 22261 | #define restrict $ac_cv_c_restrict |
| 22262 | _ACEOF |
| 22263 | ;; |
| 22264 | esac |
| 22265 | |
| cristy | e80f9cb | 2013-01-09 01:09:31 +0000 | [diff] [blame] | 22266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 22267 | $as_echo_n "checking for working volatile... " >&6; } |
| 22268 | if ${ac_cv_c_volatile+:} false; then : |
| 22269 | $as_echo_n "(cached) " >&6 |
| 22270 | else |
| 22271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22272 | /* end confdefs.h. */ |
| 22273 | |
| 22274 | int |
| 22275 | main () |
| 22276 | { |
| 22277 | |
| 22278 | volatile int x; |
| 22279 | int * volatile y = (int *) 0; |
| 22280 | return !x && !y; |
| 22281 | ; |
| 22282 | return 0; |
| 22283 | } |
| 22284 | _ACEOF |
| 22285 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22286 | ac_cv_c_volatile=yes |
| 22287 | else |
| 22288 | ac_cv_c_volatile=no |
| 22289 | fi |
| 22290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22291 | fi |
| 22292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| 22293 | $as_echo "$ac_cv_c_volatile" >&6; } |
| 22294 | if test $ac_cv_c_volatile = no; then |
| 22295 | |
| 22296 | $as_echo "#define volatile /**/" >>confdefs.h |
| 22297 | |
| 22298 | fi |
| 22299 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22300 | |
| 22301 | # If words are stored with the most significant byte first (like |
| 22302 | # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22303 | { $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] | 22304 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 22305 | if ${ac_cv_c_bigendian+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22306 | $as_echo_n "(cached) " >&6 |
| 22307 | else |
| 22308 | ac_cv_c_bigendian=unknown |
| 22309 | # See if we're dealing with a universal compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22311 | /* end confdefs.h. */ |
| 22312 | #ifndef __APPLE_CC__ |
| 22313 | not a universal capable compiler |
| 22314 | #endif |
| 22315 | typedef int dummy; |
| 22316 | |
| 22317 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22318 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22319 | |
| 22320 | # Check for potential -arch flags. It is not universal unless |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22321 | # there are at least two -arch flags with different values. |
| 22322 | ac_arch= |
| 22323 | ac_prev= |
| 22324 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 22325 | if test -n "$ac_prev"; then |
| 22326 | case $ac_word in |
| 22327 | i?86 | x86_64 | ppc | ppc64) |
| 22328 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 22329 | ac_arch=$ac_word |
| 22330 | else |
| 22331 | ac_cv_c_bigendian=universal |
| 22332 | break |
| 22333 | fi |
| 22334 | ;; |
| 22335 | esac |
| 22336 | ac_prev= |
| 22337 | elif test "x$ac_word" = "x-arch"; then |
| 22338 | ac_prev=arch |
| 22339 | fi |
| 22340 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22341 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22343 | if test $ac_cv_c_bigendian = unknown; then |
| 22344 | # See if sys/param.h defines the BYTE_ORDER macro. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22346 | /* end confdefs.h. */ |
| 22347 | #include <sys/types.h> |
| 22348 | #include <sys/param.h> |
| 22349 | |
| 22350 | int |
| 22351 | main () |
| 22352 | { |
| 22353 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 22354 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 22355 | && LITTLE_ENDIAN) |
| 22356 | bogus endian macros |
| 22357 | #endif |
| 22358 | |
| 22359 | ; |
| 22360 | return 0; |
| 22361 | } |
| 22362 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22363 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22364 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22366 | /* end confdefs.h. */ |
| 22367 | #include <sys/types.h> |
| 22368 | #include <sys/param.h> |
| 22369 | |
| 22370 | int |
| 22371 | main () |
| 22372 | { |
| 22373 | #if BYTE_ORDER != BIG_ENDIAN |
| 22374 | not big endian |
| 22375 | #endif |
| 22376 | |
| 22377 | ; |
| 22378 | return 0; |
| 22379 | } |
| 22380 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22381 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22382 | ac_cv_c_bigendian=yes |
| 22383 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22384 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22385 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22387 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22389 | fi |
| 22390 | if test $ac_cv_c_bigendian = unknown; then |
| 22391 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22393 | /* end confdefs.h. */ |
| 22394 | #include <limits.h> |
| 22395 | |
| 22396 | int |
| 22397 | main () |
| 22398 | { |
| 22399 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 22400 | bogus endian macros |
| 22401 | #endif |
| 22402 | |
| 22403 | ; |
| 22404 | return 0; |
| 22405 | } |
| 22406 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22407 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22408 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22409 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22410 | /* end confdefs.h. */ |
| 22411 | #include <limits.h> |
| 22412 | |
| 22413 | int |
| 22414 | main () |
| 22415 | { |
| 22416 | #ifndef _BIG_ENDIAN |
| 22417 | not big endian |
| 22418 | #endif |
| 22419 | |
| 22420 | ; |
| 22421 | return 0; |
| 22422 | } |
| 22423 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22424 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22425 | ac_cv_c_bigendian=yes |
| 22426 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22427 | ac_cv_c_bigendian=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22428 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22430 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22432 | fi |
| 22433 | if test $ac_cv_c_bigendian = unknown; then |
| 22434 | # Compile a test program. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22435 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22436 | # Try to guess by grepping values from an object file. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22438 | /* end confdefs.h. */ |
| 22439 | short int ascii_mm[] = |
| 22440 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 22441 | short int ascii_ii[] = |
| 22442 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 22443 | int use_ascii (int i) { |
| 22444 | return ascii_mm[i] + ascii_ii[i]; |
| 22445 | } |
| 22446 | short int ebcdic_ii[] = |
| 22447 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 22448 | short int ebcdic_mm[] = |
| 22449 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 22450 | int use_ebcdic (int i) { |
| 22451 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 22452 | } |
| 22453 | extern int foo; |
| 22454 | |
| 22455 | int |
| 22456 | main () |
| 22457 | { |
| 22458 | return use_ascii (foo) == use_ebcdic (foo); |
| 22459 | ; |
| 22460 | return 0; |
| 22461 | } |
| 22462 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22463 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22464 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 22465 | ac_cv_c_bigendian=yes |
| 22466 | fi |
| 22467 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 22468 | if test "$ac_cv_c_bigendian" = unknown; then |
| 22469 | ac_cv_c_bigendian=no |
| 22470 | else |
| 22471 | # finding both strings is unlikely to happen, but who knows? |
| 22472 | ac_cv_c_bigendian=unknown |
| 22473 | fi |
| 22474 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22475 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22477 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22479 | /* end confdefs.h. */ |
| 22480 | $ac_includes_default |
| 22481 | int |
| 22482 | main () |
| 22483 | { |
| 22484 | |
| 22485 | /* Are we little or big endian? From Harbison&Steele. */ |
| 22486 | union |
| 22487 | { |
| 22488 | long int l; |
| 22489 | char c[sizeof (long int)]; |
| 22490 | } u; |
| 22491 | u.l = 1; |
| 22492 | return u.c[sizeof (long int) - 1] == 1; |
| 22493 | |
| 22494 | ; |
| 22495 | return 0; |
| 22496 | } |
| 22497 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22498 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22499 | ac_cv_c_bigendian=no |
| 22500 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22501 | ac_cv_c_bigendian=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22502 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22503 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22504 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22505 | fi |
| 22506 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22507 | fi |
| 22508 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22510 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 22511 | case $ac_cv_c_bigendian in #( |
| 22512 | yes) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22513 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22514 | ;; #( |
| 22515 | no) |
| 22516 | ;; #( |
| 22517 | universal) |
| 22518 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22519 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22520 | |
| 22521 | ;; #( |
| 22522 | *) |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 22523 | as_fn_error $? "unknown endianness |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22524 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22525 | esac |
| 22526 | |
| 22527 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22528 | # Define to a suitable type, if standard headers do not define it. |
| 22529 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 22530 | case $ac_cv_c_int8_t in #( |
| 22531 | no|yes) ;; #( |
| 22532 | *) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22533 | |
| 22534 | cat >>confdefs.h <<_ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22535 | #define int8_t $ac_cv_c_int8_t |
| 22536 | _ACEOF |
| 22537 | ;; |
| 22538 | esac |
| 22539 | |
| 22540 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 22541 | case $ac_cv_c_int16_t in #( |
| 22542 | no|yes) ;; #( |
| 22543 | *) |
| 22544 | |
| 22545 | cat >>confdefs.h <<_ACEOF |
| 22546 | #define int16_t $ac_cv_c_int16_t |
| 22547 | _ACEOF |
| 22548 | ;; |
| 22549 | esac |
| 22550 | |
| 22551 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 22552 | case $ac_cv_c_int32_t in #( |
| 22553 | no|yes) ;; #( |
| 22554 | *) |
| 22555 | |
| 22556 | cat >>confdefs.h <<_ACEOF |
| 22557 | #define int32_t $ac_cv_c_int32_t |
| 22558 | _ACEOF |
| 22559 | ;; |
| 22560 | esac |
| 22561 | |
| 22562 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 22563 | case $ac_cv_c_int64_t in #( |
| 22564 | no|yes) ;; #( |
| 22565 | *) |
| 22566 | |
| 22567 | cat >>confdefs.h <<_ACEOF |
| 22568 | #define int64_t $ac_cv_c_int64_t |
| 22569 | _ACEOF |
| 22570 | ;; |
| 22571 | esac |
| 22572 | |
| 22573 | |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 22575 | $as_echo_n "checking for long long int... " >&6; } |
| 22576 | if ${ac_cv_type_long_long_int+:} false; then : |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22577 | $as_echo_n "(cached) " >&6 |
| 22578 | else |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22580 | /* end confdefs.h. */ |
| 22581 | |
| 22582 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 22583 | implementations with broken preprocessors. Perhaps this can |
| 22584 | be revisited in 2012. In the meantime, code should not expect |
| 22585 | #if to work with literals wider than 32 bits. */ |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22586 | /* Test literals. */ |
| 22587 | long long int ll = 9223372036854775807ll; |
| 22588 | long long int nll = -9223372036854775807LL; |
| 22589 | unsigned long long int ull = 18446744073709551615ULL; |
| 22590 | /* Test constant expressions. */ |
| 22591 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 22592 | ? 1 : -1)]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22593 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 22594 | ? 1 : -1)]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22595 | int i = 63; |
| 22596 | int |
| 22597 | main () |
| 22598 | { |
| 22599 | /* Test availability of runtime routines for shift and division. */ |
| 22600 | long long int llmax = 9223372036854775807ll; |
| 22601 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22602 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 22603 | | (llmax / ll) | (llmax % ll) |
| 22604 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22605 | | (ullmax / ull) | (ullmax % ull)); |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22606 | ; |
| 22607 | return 0; |
| 22608 | } |
| 22609 | |
| 22610 | _ACEOF |
| 22611 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22612 | if test "$cross_compiling" = yes; then : |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22613 | ac_cv_type_long_long_int=yes |
| 22614 | else |
| 22615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22616 | /* end confdefs.h. */ |
| 22617 | #include <limits.h> |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22618 | #ifndef LLONG_MAX |
| 22619 | # define HALF \ |
| 22620 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 22621 | # define LLONG_MAX (HALF - 1 + HALF) |
| 22622 | #endif |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22623 | int |
| 22624 | main () |
| 22625 | { |
| 22626 | long long int n = 1; |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22627 | int i; |
| 22628 | for (i = 0; ; i++) |
| 22629 | { |
| 22630 | long long int m = n << i; |
| 22631 | if (m >> i != n) |
| 22632 | return 1; |
| 22633 | if (LLONG_MAX / 2 < m) |
| 22634 | break; |
| 22635 | } |
| 22636 | return 0; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22637 | ; |
| 22638 | return 0; |
| 22639 | } |
| 22640 | _ACEOF |
| 22641 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22642 | ac_cv_type_long_long_int=yes |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22643 | else |
| 22644 | ac_cv_type_long_long_int=no |
| 22645 | fi |
| 22646 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22647 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22648 | fi |
| 22649 | |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22650 | else |
| 22651 | ac_cv_type_long_long_int=no |
| 22652 | fi |
| 22653 | rm -f core conftest.err conftest.$ac_objext \ |
| 22654 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22655 | fi |
| 22656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 22657 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 22658 | if test $ac_cv_type_long_long_int = yes; then |
| 22659 | |
| 22660 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 22661 | |
| 22662 | fi |
| 22663 | |
| 22664 | |
| 22665 | |
| 22666 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" |
| 22667 | if test "x$ac_cv_type_intmax_t" = xyes; then : |
| 22668 | |
| 22669 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
| 22670 | |
| 22671 | else |
| 22672 | test $ac_cv_type_long_long_int = yes \ |
| 22673 | && ac_type='long long int' \ |
| 22674 | || ac_type='long int' |
| 22675 | |
| 22676 | cat >>confdefs.h <<_ACEOF |
| 22677 | #define intmax_t $ac_type |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22678 | _ACEOF |
| 22679 | |
| 22680 | fi |
| 22681 | |
| 22682 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22683 | |
| 22684 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 22685 | if test "x$ac_cv_type_intptr_t" = xyes; then : |
| 22686 | |
| 22687 | $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22688 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22689 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22690 | for ac_type in 'int' 'long int' 'long long int'; do |
| 22691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22692 | /* end confdefs.h. */ |
| 22693 | $ac_includes_default |
| 22694 | int |
| 22695 | main () |
| 22696 | { |
| 22697 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 22698 | test_array [0] = 0; |
| 22699 | return test_array [0]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22700 | |
| 22701 | ; |
| 22702 | return 0; |
| 22703 | } |
| 22704 | _ACEOF |
| 22705 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22706 | |
| 22707 | cat >>confdefs.h <<_ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22708 | #define intptr_t $ac_type |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22709 | _ACEOF |
| 22710 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22711 | ac_type= |
| 22712 | fi |
| 22713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22714 | test -z "$ac_type" && break |
| 22715 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22716 | fi |
| 22717 | |
| 22718 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22719 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
| 22721 | $as_echo_n "checking for long double... " >&6; } |
| 22722 | if ${ac_cv_type_long_double+:} false; then : |
| 22723 | $as_echo_n "(cached) " >&6 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22724 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22725 | if test "$GCC" = yes; then |
| 22726 | ac_cv_type_long_double=yes |
| 22727 | else |
| 22728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22729 | /* end confdefs.h. */ |
| 22730 | /* The Stardent Vistra knows sizeof (long double), but does |
| 22731 | not support it. */ |
| 22732 | long double foo = 0.0L; |
| 22733 | int |
| 22734 | main () |
| 22735 | { |
| 22736 | static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 22737 | sizeof (double) <= sizeof (long double))]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 22738 | test_array [0] = 0; |
| 22739 | return test_array [0]; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22740 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22741 | ; |
| 22742 | return 0; |
| 22743 | } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22744 | _ACEOF |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22745 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22746 | ac_cv_type_long_double=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22747 | else |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22748 | ac_cv_type_long_double=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22749 | fi |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22751 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22752 | fi |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 |
| 22754 | $as_echo "$ac_cv_type_long_double" >&6; } |
| 22755 | if test $ac_cv_type_long_double = yes; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22756 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22757 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22758 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22759 | fi |
| 22760 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22761 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22762 | { $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] | 22763 | $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] | 22764 | if ${ac_cv_type_long_double_wider+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22765 | $as_echo_n "(cached) " >&6 |
| 22766 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22768 | /* end confdefs.h. */ |
| 22769 | #include <float.h> |
| 22770 | long double const a[] = |
| 22771 | { |
| 22772 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, |
| 22773 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON |
| 22774 | }; |
| 22775 | long double |
| 22776 | f (long double x) |
| 22777 | { |
| 22778 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] |
| 22779 | + (x ? f (x) : 'c')); |
| 22780 | } |
| 22781 | |
| 22782 | int |
| 22783 | main () |
| 22784 | { |
| 22785 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) |
| 22786 | + (DBL_MANT_DIG < LDBL_MANT_DIG) |
| 22787 | - (LDBL_MAX_EXP < DBL_MAX_EXP) |
| 22788 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) |
| 22789 | && (int) LDBL_EPSILON == 0 |
| 22790 | )]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 22791 | test_array [0] = 0; |
| 22792 | return test_array [0]; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22793 | |
| 22794 | ; |
| 22795 | return 0; |
| 22796 | } |
| 22797 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22798 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22799 | ac_cv_type_long_double_wider=yes |
| 22800 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22801 | ac_cv_type_long_double_wider=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22802 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22804 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22805 | { $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] | 22806 | $as_echo "$ac_cv_type_long_double_wider" >&6; } |
| 22807 | if test $ac_cv_type_long_double_wider = yes; then |
| 22808 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 22809 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 22810 | |
| 22811 | fi |
| 22812 | |
| 22813 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 22815 | $as_echo_n "checking for long long int... " >&6; } |
| 22816 | if ${ac_cv_type_long_long_int+:} false; then : |
| 22817 | $as_echo_n "(cached) " >&6 |
| 22818 | else |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22820 | /* end confdefs.h. */ |
| 22821 | |
| 22822 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 22823 | implementations with broken preprocessors. Perhaps this can |
| 22824 | be revisited in 2012. In the meantime, code should not expect |
| 22825 | #if to work with literals wider than 32 bits. */ |
| 22826 | /* Test literals. */ |
| 22827 | long long int ll = 9223372036854775807ll; |
| 22828 | long long int nll = -9223372036854775807LL; |
| 22829 | unsigned long long int ull = 18446744073709551615ULL; |
| 22830 | /* Test constant expressions. */ |
| 22831 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 22832 | ? 1 : -1)]; |
| 22833 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 22834 | ? 1 : -1)]; |
| 22835 | int i = 63; |
| 22836 | int |
| 22837 | main () |
| 22838 | { |
| 22839 | /* Test availability of runtime routines for shift and division. */ |
| 22840 | long long int llmax = 9223372036854775807ll; |
| 22841 | unsigned long long int ullmax = 18446744073709551615ull; |
| 22842 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 22843 | | (llmax / ll) | (llmax % ll) |
| 22844 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 22845 | | (ullmax / ull) | (ullmax % ull)); |
| 22846 | ; |
| 22847 | return 0; |
| 22848 | } |
| 22849 | |
| 22850 | _ACEOF |
| 22851 | if ac_fn_c_try_link "$LINENO"; then : |
| 22852 | if test "$cross_compiling" = yes; then : |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22853 | ac_cv_type_long_long_int=yes |
| 22854 | else |
| 22855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22856 | /* end confdefs.h. */ |
| 22857 | #include <limits.h> |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22858 | #ifndef LLONG_MAX |
| 22859 | # define HALF \ |
| 22860 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 22861 | # define LLONG_MAX (HALF - 1 + HALF) |
| 22862 | #endif |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22863 | int |
| 22864 | main () |
| 22865 | { |
| 22866 | long long int n = 1; |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22867 | int i; |
| 22868 | for (i = 0; ; i++) |
| 22869 | { |
| 22870 | long long int m = n << i; |
| 22871 | if (m >> i != n) |
| 22872 | return 1; |
| 22873 | if (LLONG_MAX / 2 < m) |
| 22874 | break; |
| 22875 | } |
| 22876 | return 0; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22877 | ; |
| 22878 | return 0; |
| 22879 | } |
| 22880 | _ACEOF |
| 22881 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22882 | ac_cv_type_long_long_int=yes |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22883 | else |
| 22884 | ac_cv_type_long_long_int=no |
| 22885 | fi |
| 22886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22887 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22888 | fi |
| 22889 | |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 22890 | else |
| 22891 | ac_cv_type_long_long_int=no |
| 22892 | fi |
| 22893 | rm -f core conftest.err conftest.$ac_objext \ |
| 22894 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 22895 | fi |
| 22896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 22897 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 22898 | if test $ac_cv_type_long_long_int = yes; then |
| 22899 | |
| 22900 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 22901 | |
| 22902 | fi |
| 22903 | |
| 22904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 22905 | $as_echo_n "checking for mbstate_t... " >&6; } |
| 22906 | if ${ac_cv_type_mbstate_t+:} false; then : |
| 22907 | $as_echo_n "(cached) " >&6 |
| 22908 | else |
| 22909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22910 | /* end confdefs.h. */ |
| 22911 | $ac_includes_default |
| 22912 | # include <wchar.h> |
| 22913 | int |
| 22914 | main () |
| 22915 | { |
| 22916 | mbstate_t x; return sizeof x; |
| 22917 | ; |
| 22918 | return 0; |
| 22919 | } |
| 22920 | _ACEOF |
| 22921 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22922 | ac_cv_type_mbstate_t=yes |
| 22923 | else |
| 22924 | ac_cv_type_mbstate_t=no |
| 22925 | fi |
| 22926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22927 | fi |
| 22928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 22929 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 22930 | if test $ac_cv_type_mbstate_t = yes; then |
| 22931 | |
| 22932 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 22933 | |
| 22934 | else |
| 22935 | |
| 22936 | $as_echo "#define mbstate_t int" >>confdefs.h |
| 22937 | |
| 22938 | fi |
| 22939 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 22940 | if test "x$ac_cv_type_mode_t" = xyes; then : |
| 22941 | |
| 22942 | else |
| 22943 | |
| 22944 | cat >>confdefs.h <<_ACEOF |
| 22945 | #define mode_t int |
| 22946 | _ACEOF |
| 22947 | |
| 22948 | fi |
| 22949 | |
| 22950 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 22951 | if test "x$ac_cv_type_off_t" = xyes; then : |
| 22952 | |
| 22953 | else |
| 22954 | |
| 22955 | cat >>confdefs.h <<_ACEOF |
| 22956 | #define off_t long int |
| 22957 | _ACEOF |
| 22958 | |
| 22959 | fi |
| 22960 | |
| 22961 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 22962 | if test "x$ac_cv_type_pid_t" = xyes; then : |
| 22963 | |
| 22964 | else |
| 22965 | |
| 22966 | cat >>confdefs.h <<_ACEOF |
| 22967 | #define pid_t int |
| 22968 | _ACEOF |
| 22969 | |
| 22970 | fi |
| 22971 | |
| 22972 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 22973 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 22974 | |
| 22975 | else |
| 22976 | |
| 22977 | cat >>confdefs.h <<_ACEOF |
| 22978 | #define size_t unsigned int |
| 22979 | _ACEOF |
| 22980 | |
| 22981 | fi |
| 22982 | |
| 22983 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
| 22984 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
| 22985 | |
| 22986 | else |
| 22987 | |
| 22988 | cat >>confdefs.h <<_ACEOF |
| 22989 | #define ssize_t int |
| 22990 | _ACEOF |
| 22991 | |
| 22992 | fi |
| 22993 | |
| 22994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 22995 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
| 22996 | if ${ac_cv_type_uid_t+:} false; then : |
| 22997 | $as_echo_n "(cached) " >&6 |
| 22998 | else |
| 22999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23000 | /* end confdefs.h. */ |
| 23001 | #include <sys/types.h> |
| 23002 | |
| 23003 | _ACEOF |
| 23004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 23005 | $EGREP "uid_t" >/dev/null 2>&1; then : |
| 23006 | ac_cv_type_uid_t=yes |
| 23007 | else |
| 23008 | ac_cv_type_uid_t=no |
| 23009 | fi |
| 23010 | rm -f conftest* |
| 23011 | |
| 23012 | fi |
| 23013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 23014 | $as_echo "$ac_cv_type_uid_t" >&6; } |
| 23015 | if test $ac_cv_type_uid_t = no; then |
| 23016 | |
| 23017 | $as_echo "#define uid_t int" >>confdefs.h |
| 23018 | |
| 23019 | |
| 23020 | $as_echo "#define gid_t int" >>confdefs.h |
| 23021 | |
| 23022 | fi |
| 23023 | |
| 23024 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 23025 | case $ac_cv_c_uint8_t in #( |
| 23026 | no|yes) ;; #( |
| 23027 | *) |
| 23028 | |
| 23029 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 23030 | |
| 23031 | |
| 23032 | cat >>confdefs.h <<_ACEOF |
| 23033 | #define uint8_t $ac_cv_c_uint8_t |
| 23034 | _ACEOF |
| 23035 | ;; |
| 23036 | esac |
| 23037 | |
| 23038 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 23039 | case $ac_cv_c_uint16_t in #( |
| 23040 | no|yes) ;; #( |
| 23041 | *) |
| 23042 | |
| 23043 | |
| 23044 | cat >>confdefs.h <<_ACEOF |
| 23045 | #define uint16_t $ac_cv_c_uint16_t |
| 23046 | _ACEOF |
| 23047 | ;; |
| 23048 | esac |
| 23049 | |
| 23050 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 23051 | case $ac_cv_c_uint32_t in #( |
| 23052 | no|yes) ;; #( |
| 23053 | *) |
| 23054 | |
| 23055 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 23056 | |
| 23057 | |
| 23058 | cat >>confdefs.h <<_ACEOF |
| 23059 | #define uint32_t $ac_cv_c_uint32_t |
| 23060 | _ACEOF |
| 23061 | ;; |
| 23062 | esac |
| 23063 | |
| 23064 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 23065 | case $ac_cv_c_uint64_t in #( |
| 23066 | no|yes) ;; #( |
| 23067 | *) |
| 23068 | |
| 23069 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
| 23070 | |
| 23071 | |
| 23072 | cat >>confdefs.h <<_ACEOF |
| 23073 | #define uint64_t $ac_cv_c_uint64_t |
| 23074 | _ACEOF |
| 23075 | ;; |
| 23076 | esac |
| 23077 | |
| 23078 | |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 23079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 23080 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 23081 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 23082 | $as_echo_n "(cached) " >&6 |
| 23083 | else |
| 23084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23085 | /* end confdefs.h. */ |
| 23086 | |
| 23087 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 23088 | implementations with broken preprocessors. Perhaps this can |
| 23089 | be revisited in 2012. In the meantime, code should not expect |
| 23090 | #if to work with literals wider than 32 bits. */ |
| 23091 | /* Test literals. */ |
| 23092 | long long int ll = 9223372036854775807ll; |
| 23093 | long long int nll = -9223372036854775807LL; |
| 23094 | unsigned long long int ull = 18446744073709551615ULL; |
| 23095 | /* Test constant expressions. */ |
| 23096 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 23097 | ? 1 : -1)]; |
| 23098 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 23099 | ? 1 : -1)]; |
| 23100 | int i = 63; |
| 23101 | int |
| 23102 | main () |
| 23103 | { |
| 23104 | /* Test availability of runtime routines for shift and division. */ |
| 23105 | long long int llmax = 9223372036854775807ll; |
| 23106 | unsigned long long int ullmax = 18446744073709551615ull; |
| 23107 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 23108 | | (llmax / ll) | (llmax % ll) |
| 23109 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 23110 | | (ullmax / ull) | (ullmax % ull)); |
| 23111 | ; |
| 23112 | return 0; |
| 23113 | } |
| 23114 | |
| 23115 | _ACEOF |
| 23116 | if ac_fn_c_try_link "$LINENO"; then : |
| 23117 | ac_cv_type_unsigned_long_long_int=yes |
| 23118 | else |
| 23119 | ac_cv_type_unsigned_long_long_int=no |
| 23120 | fi |
| 23121 | rm -f core conftest.err conftest.$ac_objext \ |
| 23122 | conftest$ac_exeext conftest.$ac_ext |
| 23123 | fi |
| 23124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 23125 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 23126 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 23127 | |
| 23128 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 23129 | |
| 23130 | fi |
| 23131 | |
| 23132 | |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23133 | |
| 23134 | ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" |
| 23135 | if test "x$ac_cv_type_uintmax_t" = xyes; then : |
| 23136 | |
| 23137 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
| 23138 | |
| 23139 | else |
| 23140 | test $ac_cv_type_unsigned_long_long_int = yes \ |
| 23141 | && ac_type='unsigned long long int' \ |
| 23142 | || ac_type='unsigned long int' |
| 23143 | |
| 23144 | cat >>confdefs.h <<_ACEOF |
| 23145 | #define uintmax_t $ac_type |
| 23146 | _ACEOF |
| 23147 | |
| 23148 | fi |
| 23149 | |
| 23150 | |
| 23151 | |
| 23152 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 23153 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
| 23154 | |
| 23155 | $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h |
| 23156 | |
| 23157 | else |
| 23158 | for ac_type in 'unsigned int' 'unsigned long int' \ |
| 23159 | 'unsigned long long int'; do |
| 23160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23161 | /* end confdefs.h. */ |
| 23162 | $ac_includes_default |
| 23163 | int |
| 23164 | main () |
| 23165 | { |
| 23166 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 23167 | test_array [0] = 0; |
| 23168 | return test_array [0]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23169 | |
| 23170 | ; |
| 23171 | return 0; |
| 23172 | } |
| 23173 | _ACEOF |
| 23174 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23175 | |
| 23176 | cat >>confdefs.h <<_ACEOF |
| 23177 | #define uintptr_t $ac_type |
| 23178 | _ACEOF |
| 23179 | |
| 23180 | ac_type= |
| 23181 | fi |
| 23182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23183 | test -z "$ac_type" && break |
| 23184 | done |
| 23185 | fi |
| 23186 | |
| 23187 | |
| 23188 | |
| 23189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 23190 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 23191 | if ${ac_cv_type_unsigned_long_long_int+:} false; then : |
| 23192 | $as_echo_n "(cached) " >&6 |
| 23193 | else |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 23194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23195 | /* end confdefs.h. */ |
| 23196 | |
| 23197 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 23198 | implementations with broken preprocessors. Perhaps this can |
| 23199 | be revisited in 2012. In the meantime, code should not expect |
| 23200 | #if to work with literals wider than 32 bits. */ |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23201 | /* Test literals. */ |
| 23202 | long long int ll = 9223372036854775807ll; |
| 23203 | long long int nll = -9223372036854775807LL; |
| 23204 | unsigned long long int ull = 18446744073709551615ULL; |
| 23205 | /* Test constant expressions. */ |
| 23206 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 23207 | ? 1 : -1)]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23208 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 23209 | ? 1 : -1)]; |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23210 | int i = 63; |
| 23211 | int |
| 23212 | main () |
| 23213 | { |
| 23214 | /* Test availability of runtime routines for shift and division. */ |
| 23215 | long long int llmax = 9223372036854775807ll; |
| 23216 | unsigned long long int ullmax = 18446744073709551615ull; |
| 23217 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 23218 | | (llmax / ll) | (llmax % ll) |
| 23219 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 23220 | | (ullmax / ull) | (ullmax % ull)); |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23221 | ; |
| 23222 | return 0; |
| 23223 | } |
| 23224 | |
| 23225 | _ACEOF |
| 23226 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7d34266 | 2013-05-19 11:07:59 +0000 | [diff] [blame] | 23227 | ac_cv_type_unsigned_long_long_int=yes |
| cristy | 501c804 | 2011-05-26 17:46:28 +0000 | [diff] [blame] | 23228 | else |
| 23229 | ac_cv_type_unsigned_long_long_int=no |
| 23230 | fi |
| 23231 | rm -f core conftest.err conftest.$ac_objext \ |
| 23232 | conftest$ac_exeext conftest.$ac_ext |
| 23233 | fi |
| 23234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 23235 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 23236 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 23237 | |
| 23238 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 23239 | |
| 23240 | fi |
| 23241 | |
| 23242 | |
| cristy | fec3182 | 2013-05-23 12:32:12 +0000 | [diff] [blame^] | 23243 | # Float_t and double_t are intended to be the the most efficient type. |
| 23244 | ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h> |
| 23245 | " |
| 23246 | if test "x$ac_cv_type_float_t" = xyes; then : |
| 23247 | |
| 23248 | cat >>confdefs.h <<_ACEOF |
| 23249 | #define HAVE_FLOAT_T 1 |
| 23250 | _ACEOF |
| 23251 | |
| 23252 | |
| 23253 | fi |
| 23254 | |
| 23255 | ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h> |
| 23256 | " |
| 23257 | if test "x$ac_cv_type_double_t" = xyes; then : |
| 23258 | |
| 23259 | cat >>confdefs.h <<_ACEOF |
| 23260 | #define HAVE_DOUBLE_T 1 |
| 23261 | _ACEOF |
| 23262 | |
| 23263 | |
| 23264 | fi |
| 23265 | |
| 23266 | # The cast to long int works around a bug in the HP C Compiler |
| 23267 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23268 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23269 | # This bug is HP SR number 8606223364. |
| 23270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5 |
| 23271 | $as_echo_n "checking size of float_t... " >&6; } |
| 23272 | if ${ac_cv_sizeof_float_t+:} false; then : |
| 23273 | $as_echo_n "(cached) " >&6 |
| 23274 | else |
| 23275 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h> |
| 23276 | "; then : |
| 23277 | |
| 23278 | else |
| 23279 | if test "$ac_cv_type_float_t" = yes; then |
| 23280 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23281 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23282 | as_fn_error 77 "cannot compute sizeof (float_t) |
| 23283 | See \`config.log' for more details" "$LINENO" 5; } |
| 23284 | else |
| 23285 | ac_cv_sizeof_float_t=0 |
| 23286 | fi |
| 23287 | fi |
| 23288 | |
| 23289 | fi |
| 23290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5 |
| 23291 | $as_echo "$ac_cv_sizeof_float_t" >&6; } |
| 23292 | |
| 23293 | |
| 23294 | |
| 23295 | cat >>confdefs.h <<_ACEOF |
| 23296 | #define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t |
| 23297 | _ACEOF |
| 23298 | |
| 23299 | |
| 23300 | # The cast to long int works around a bug in the HP C Compiler |
| 23301 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23302 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23303 | # This bug is HP SR number 8606223364. |
| 23304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5 |
| 23305 | $as_echo_n "checking size of double_t... " >&6; } |
| 23306 | if ${ac_cv_sizeof_double_t+:} false; then : |
| 23307 | $as_echo_n "(cached) " >&6 |
| 23308 | else |
| 23309 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h> |
| 23310 | "; then : |
| 23311 | |
| 23312 | else |
| 23313 | if test "$ac_cv_type_double_t" = yes; then |
| 23314 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23315 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23316 | as_fn_error 77 "cannot compute sizeof (double_t) |
| 23317 | See \`config.log' for more details" "$LINENO" 5; } |
| 23318 | else |
| 23319 | ac_cv_sizeof_double_t=0 |
| 23320 | fi |
| 23321 | fi |
| 23322 | |
| 23323 | fi |
| 23324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5 |
| 23325 | $as_echo "$ac_cv_sizeof_double_t" >&6; } |
| 23326 | |
| 23327 | |
| 23328 | |
| 23329 | cat >>confdefs.h <<_ACEOF |
| 23330 | #define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t |
| 23331 | _ACEOF |
| 23332 | |
| 23333 | |
| 23334 | |
| cristy | 9b86f20 | 2012-11-28 21:55:35 +0000 | [diff] [blame] | 23335 | # Get size of float, double and long double for comparaison. |
| 23336 | # The cast to long int works around a bug in the HP C Compiler |
| 23337 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23338 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23339 | # This bug is HP SR number 8606223364. |
| 23340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 23341 | $as_echo_n "checking size of float... " >&6; } |
| 23342 | if ${ac_cv_sizeof_float+:} false; then : |
| 23343 | $as_echo_n "(cached) " >&6 |
| 23344 | else |
| 23345 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : |
| 23346 | |
| 23347 | else |
| 23348 | if test "$ac_cv_type_float" = yes; then |
| 23349 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23350 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23351 | as_fn_error 77 "cannot compute sizeof (float) |
| 23352 | See \`config.log' for more details" "$LINENO" 5; } |
| 23353 | else |
| 23354 | ac_cv_sizeof_float=0 |
| 23355 | fi |
| 23356 | fi |
| 23357 | |
| 23358 | fi |
| 23359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 23360 | $as_echo "$ac_cv_sizeof_float" >&6; } |
| 23361 | |
| 23362 | |
| 23363 | |
| 23364 | cat >>confdefs.h <<_ACEOF |
| 23365 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
| 23366 | _ACEOF |
| 23367 | |
| 23368 | |
| 23369 | # The cast to long int works around a bug in the HP C Compiler |
| 23370 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23371 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23372 | # This bug is HP SR number 8606223364. |
| 23373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 23374 | $as_echo_n "checking size of double... " >&6; } |
| 23375 | if ${ac_cv_sizeof_double+:} false; then : |
| 23376 | $as_echo_n "(cached) " >&6 |
| 23377 | else |
| 23378 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : |
| 23379 | |
| 23380 | else |
| 23381 | if test "$ac_cv_type_double" = yes; then |
| 23382 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23383 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23384 | as_fn_error 77 "cannot compute sizeof (double) |
| 23385 | See \`config.log' for more details" "$LINENO" 5; } |
| 23386 | else |
| 23387 | ac_cv_sizeof_double=0 |
| 23388 | fi |
| 23389 | fi |
| 23390 | |
| 23391 | fi |
| 23392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 23393 | $as_echo "$ac_cv_sizeof_double" >&6; } |
| 23394 | |
| 23395 | |
| 23396 | |
| 23397 | cat >>confdefs.h <<_ACEOF |
| 23398 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
| 23399 | _ACEOF |
| 23400 | |
| 23401 | |
| cristy | fec3182 | 2013-05-23 12:32:12 +0000 | [diff] [blame^] | 23402 | # The cast to long int works around a bug in the HP C Compiler |
| 23403 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23404 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23405 | # This bug is HP SR number 8606223364. |
| 23406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 |
| 23407 | $as_echo_n "checking size of long double... " >&6; } |
| 23408 | if ${ac_cv_sizeof_long_double+:} false; then : |
| 23409 | $as_echo_n "(cached) " >&6 |
| 23410 | else |
| 23411 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : |
| 23412 | |
| 23413 | else |
| 23414 | if test "$ac_cv_type_long_double" = yes; then |
| 23415 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23416 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23417 | as_fn_error 77 "cannot compute sizeof (long double) |
| 23418 | See \`config.log' for more details" "$LINENO" 5; } |
| 23419 | else |
| 23420 | ac_cv_sizeof_long_double=0 |
| 23421 | fi |
| 23422 | fi |
| 23423 | |
| 23424 | fi |
| 23425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 |
| 23426 | $as_echo "$ac_cv_sizeof_long_double" >&6; } |
| 23427 | |
| 23428 | |
| 23429 | |
| 23430 | cat >>confdefs.h <<_ACEOF |
| 23431 | #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double |
| 23432 | _ACEOF |
| 23433 | |
| 23434 | |
| cristy | f0cf9a2 | 2012-10-24 12:05:01 +0000 | [diff] [blame] | 23435 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23436 | # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT |
| 23437 | # The cast to long int works around a bug in the HP C Compiler |
| 23438 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23439 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23440 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23442 | $as_echo_n "checking size of signed short... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23443 | if ${ac_cv_sizeof_signed_short+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23444 | $as_echo_n "(cached) " >&6 |
| 23445 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23446 | 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] | 23447 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23448 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23449 | if test "$ac_cv_type_signed_short" = yes; then |
| 23450 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23451 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23452 | as_fn_error 77 "cannot compute sizeof (signed short) |
| 23453 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23454 | else |
| 23455 | ac_cv_sizeof_signed_short=0 |
| 23456 | fi |
| 23457 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23458 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23459 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23460 | { $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] | 23461 | $as_echo "$ac_cv_sizeof_signed_short" >&6; } |
| 23462 | |
| 23463 | |
| 23464 | |
| 23465 | cat >>confdefs.h <<_ACEOF |
| 23466 | #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short |
| 23467 | _ACEOF |
| 23468 | |
| 23469 | |
| 23470 | |
| 23471 | # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT |
| 23472 | # The cast to long int works around a bug in the HP C Compiler |
| 23473 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23474 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23475 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23477 | $as_echo_n "checking size of unsigned short... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23478 | if ${ac_cv_sizeof_unsigned_short+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23479 | $as_echo_n "(cached) " >&6 |
| 23480 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23481 | 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] | 23482 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23483 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23484 | if test "$ac_cv_type_unsigned_short" = yes; then |
| 23485 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23486 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23487 | as_fn_error 77 "cannot compute sizeof (unsigned short) |
| 23488 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23489 | else |
| 23490 | ac_cv_sizeof_unsigned_short=0 |
| 23491 | fi |
| 23492 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23493 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23494 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23495 | { $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] | 23496 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } |
| 23497 | |
| 23498 | |
| 23499 | |
| 23500 | cat >>confdefs.h <<_ACEOF |
| 23501 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short |
| 23502 | _ACEOF |
| 23503 | |
| 23504 | |
| 23505 | |
| 23506 | # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT |
| 23507 | # The cast to long int works around a bug in the HP C Compiler |
| 23508 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23509 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23510 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23512 | $as_echo_n "checking size of signed int... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23513 | if ${ac_cv_sizeof_signed_int+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23514 | $as_echo_n "(cached) " >&6 |
| 23515 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23516 | 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] | 23517 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23518 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23519 | if test "$ac_cv_type_signed_int" = yes; then |
| 23520 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23521 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23522 | as_fn_error 77 "cannot compute sizeof (signed int) |
| 23523 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23524 | else |
| 23525 | ac_cv_sizeof_signed_int=0 |
| 23526 | fi |
| 23527 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23528 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23529 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23530 | { $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] | 23531 | $as_echo "$ac_cv_sizeof_signed_int" >&6; } |
| 23532 | |
| 23533 | |
| 23534 | |
| 23535 | cat >>confdefs.h <<_ACEOF |
| 23536 | #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int |
| 23537 | _ACEOF |
| 23538 | |
| 23539 | |
| 23540 | |
| 23541 | # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT |
| 23542 | # The cast to long int works around a bug in the HP C Compiler |
| 23543 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23544 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23545 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23547 | $as_echo_n "checking size of unsigned int... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23548 | if ${ac_cv_sizeof_unsigned_int+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23549 | $as_echo_n "(cached) " >&6 |
| 23550 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23551 | 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] | 23552 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23553 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23554 | if test "$ac_cv_type_unsigned_int" = yes; then |
| 23555 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23556 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23557 | as_fn_error 77 "cannot compute sizeof (unsigned int) |
| 23558 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23559 | else |
| 23560 | ac_cv_sizeof_unsigned_int=0 |
| 23561 | fi |
| 23562 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23563 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23564 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23565 | { $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] | 23566 | $as_echo "$ac_cv_sizeof_unsigned_int" >&6; } |
| 23567 | |
| 23568 | |
| 23569 | |
| 23570 | cat >>confdefs.h <<_ACEOF |
| 23571 | #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int |
| 23572 | _ACEOF |
| 23573 | |
| 23574 | |
| 23575 | |
| 23576 | # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG |
| 23577 | # The cast to long int works around a bug in the HP C Compiler |
| 23578 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23579 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23580 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23582 | $as_echo_n "checking size of signed long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23583 | if ${ac_cv_sizeof_signed_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23584 | $as_echo_n "(cached) " >&6 |
| 23585 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23586 | 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] | 23587 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23588 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23589 | if test "$ac_cv_type_signed_long" = yes; then |
| 23590 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23591 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23592 | as_fn_error 77 "cannot compute sizeof (signed long) |
| 23593 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23594 | else |
| 23595 | ac_cv_sizeof_signed_long=0 |
| 23596 | fi |
| 23597 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23598 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23599 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23600 | { $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] | 23601 | $as_echo "$ac_cv_sizeof_signed_long" >&6; } |
| 23602 | |
| 23603 | |
| 23604 | |
| 23605 | cat >>confdefs.h <<_ACEOF |
| 23606 | #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long |
| 23607 | _ACEOF |
| 23608 | |
| 23609 | |
| 23610 | |
| 23611 | # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG |
| 23612 | # The cast to long int works around a bug in the HP C Compiler |
| 23613 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23614 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23615 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23617 | $as_echo_n "checking size of unsigned long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23618 | if ${ac_cv_sizeof_unsigned_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23619 | $as_echo_n "(cached) " >&6 |
| 23620 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23621 | 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] | 23622 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23623 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23624 | if test "$ac_cv_type_unsigned_long" = yes; then |
| 23625 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23627 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
| 23628 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23629 | else |
| 23630 | ac_cv_sizeof_unsigned_long=0 |
| 23631 | fi |
| 23632 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23633 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23634 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23635 | { $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] | 23636 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } |
| 23637 | |
| 23638 | |
| 23639 | |
| 23640 | cat >>confdefs.h <<_ACEOF |
| 23641 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long |
| 23642 | _ACEOF |
| 23643 | |
| 23644 | |
| 23645 | |
| 23646 | # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If |
| 23647 | # 'signed long long' is not supported then the value defined is zero. |
| 23648 | # The cast to long int works around a bug in the HP C Compiler |
| 23649 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23650 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23651 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23652 | { $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] | 23653 | $as_echo_n "checking size of signed long long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23654 | if ${ac_cv_sizeof_signed_long_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23655 | $as_echo_n "(cached) " >&6 |
| 23656 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23657 | 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] | 23658 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23659 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23660 | if test "$ac_cv_type_signed_long_long" = yes; then |
| 23661 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23662 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23663 | as_fn_error 77 "cannot compute sizeof (signed long long) |
| 23664 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23665 | else |
| 23666 | ac_cv_sizeof_signed_long_long=0 |
| 23667 | fi |
| 23668 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23669 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23670 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23671 | { $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] | 23672 | $as_echo "$ac_cv_sizeof_signed_long_long" >&6; } |
| 23673 | |
| 23674 | |
| 23675 | |
| 23676 | cat >>confdefs.h <<_ACEOF |
| 23677 | #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long |
| 23678 | _ACEOF |
| 23679 | |
| 23680 | |
| 23681 | |
| 23682 | # Obtain size of a 'unsigned long long' and define as |
| 23683 | # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not |
| 23684 | # supported then the value defined is zero. |
| 23685 | # The cast to long int works around a bug in the HP C Compiler |
| 23686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23688 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23689 | { $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] | 23690 | $as_echo_n "checking size of unsigned long long... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23691 | if ${ac_cv_sizeof_unsigned_long_long+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23692 | $as_echo_n "(cached) " >&6 |
| 23693 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23694 | 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] | 23695 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23696 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23697 | if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 23698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23700 | as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 23701 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23702 | else |
| 23703 | ac_cv_sizeof_unsigned_long_long=0 |
| 23704 | fi |
| 23705 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23706 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23707 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23708 | { $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] | 23709 | $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 23710 | |
| 23711 | |
| 23712 | |
| 23713 | cat >>confdefs.h <<_ACEOF |
| 23714 | #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long |
| 23715 | _ACEOF |
| 23716 | |
| 23717 | |
| 23718 | |
| cristy | fec3182 | 2013-05-23 12:32:12 +0000 | [diff] [blame^] | 23719 | # Obtain size of off_t and define as SIZEOF_OFF_T |
| 23720 | # The cast to long int works around a bug in the HP C Compiler |
| 23721 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23722 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23723 | # This bug is HP SR number 8606223364. |
| 23724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 23725 | $as_echo_n "checking size of off_t... " >&6; } |
| 23726 | if ${ac_cv_sizeof_off_t+:} false; then : |
| 23727 | $as_echo_n "(cached) " >&6 |
| 23728 | else |
| 23729 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
| 23730 | |
| 23731 | else |
| 23732 | if test "$ac_cv_type_off_t" = yes; then |
| 23733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23735 | as_fn_error 77 "cannot compute sizeof (off_t) |
| 23736 | See \`config.log' for more details" "$LINENO" 5; } |
| 23737 | else |
| 23738 | ac_cv_sizeof_off_t=0 |
| 23739 | fi |
| 23740 | fi |
| 23741 | |
| 23742 | fi |
| 23743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 23744 | $as_echo "$ac_cv_sizeof_off_t" >&6; } |
| 23745 | |
| 23746 | |
| 23747 | |
| 23748 | cat >>confdefs.h <<_ACEOF |
| 23749 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
| 23750 | _ACEOF |
| 23751 | |
| 23752 | |
| 23753 | |
| 23754 | # Obtain size of size_t and define as SIZEOF_SIZE_T |
| 23755 | # The cast to long int works around a bug in the HP C Compiler |
| 23756 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23757 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23758 | # This bug is HP SR number 8606223364. |
| 23759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 23760 | $as_echo_n "checking size of size_t... " >&6; } |
| 23761 | if ${ac_cv_sizeof_size_t+:} false; then : |
| 23762 | $as_echo_n "(cached) " >&6 |
| 23763 | else |
| 23764 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : |
| 23765 | |
| 23766 | else |
| 23767 | if test "$ac_cv_type_size_t" = yes; then |
| 23768 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23769 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23770 | as_fn_error 77 "cannot compute sizeof (size_t) |
| 23771 | See \`config.log' for more details" "$LINENO" 5; } |
| 23772 | else |
| 23773 | ac_cv_sizeof_size_t=0 |
| 23774 | fi |
| 23775 | fi |
| 23776 | |
| 23777 | fi |
| 23778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 23779 | $as_echo "$ac_cv_sizeof_size_t" >&6; } |
| 23780 | |
| 23781 | |
| 23782 | |
| 23783 | cat >>confdefs.h <<_ACEOF |
| 23784 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t |
| 23785 | _ACEOF |
| 23786 | |
| 23787 | |
| 23788 | |
| 23789 | # Obtain size of ssize_t and define as SIZEOF_SSIZE_T |
| 23790 | # The cast to long int works around a bug in the HP C Compiler |
| 23791 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23792 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23793 | # This bug is HP SR number 8606223364. |
| 23794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
| 23795 | $as_echo_n "checking size of ssize_t... " >&6; } |
| 23796 | if ${ac_cv_sizeof_ssize_t+:} false; then : |
| 23797 | $as_echo_n "(cached) " >&6 |
| 23798 | else |
| 23799 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then : |
| 23800 | |
| 23801 | else |
| 23802 | if test "$ac_cv_type_ssize_t" = yes; then |
| 23803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23805 | as_fn_error 77 "cannot compute sizeof (ssize_t) |
| 23806 | See \`config.log' for more details" "$LINENO" 5; } |
| 23807 | else |
| 23808 | ac_cv_sizeof_ssize_t=0 |
| 23809 | fi |
| 23810 | fi |
| 23811 | |
| 23812 | fi |
| 23813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
| 23814 | $as_echo "$ac_cv_sizeof_ssize_t" >&6; } |
| 23815 | |
| 23816 | |
| 23817 | |
| 23818 | cat >>confdefs.h <<_ACEOF |
| 23819 | #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t |
| 23820 | _ACEOF |
| 23821 | |
| 23822 | |
| 23823 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23824 | # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP |
| 23825 | # The cast to long int works around a bug in the HP C Compiler |
| 23826 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23827 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23828 | # This bug is HP SR number 8606223364. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23830 | $as_echo_n "checking size of unsigned int*... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 23831 | if ${ac_cv_sizeof_unsigned_intp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23832 | $as_echo_n "(cached) " >&6 |
| 23833 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23834 | 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] | 23835 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23836 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23837 | if test "$ac_cv_type_unsigned_intp" = yes; then |
| 23838 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23839 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 23840 | as_fn_error 77 "cannot compute sizeof (unsigned int*) |
| 23841 | See \`config.log' for more details" "$LINENO" 5; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23842 | else |
| 23843 | ac_cv_sizeof_unsigned_intp=0 |
| 23844 | fi |
| 23845 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23846 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23847 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23848 | { $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] | 23849 | $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; } |
| 23850 | |
| 23851 | |
| 23852 | |
| 23853 | cat >>confdefs.h <<_ACEOF |
| 23854 | #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp |
| 23855 | _ACEOF |
| 23856 | |
| 23857 | |
| 23858 | |
| 23859 | # |
| 23860 | # Compute sized types for current CPU and compiler options. |
| 23861 | # |
| 23862 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23863 | { $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] | 23864 | $as_echo_n "checking for signed 8-bit type... " >&6; } |
| 23865 | INT8_T='signed char' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5 |
| 23867 | $as_echo "$INT8_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23868 | |
| 23869 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23870 | { $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] | 23871 | $as_echo_n "checking for unsigned 8-bit type... " >&6; } |
| 23872 | UINT8_T='unsigned char' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5 |
| 23874 | $as_echo "$UINT8_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23875 | |
| 23876 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23877 | { $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] | 23878 | $as_echo_n "checking for signed 16-bit type... " >&6; } |
| 23879 | INT16_T='signed short' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5 |
| 23881 | $as_echo "$INT16_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23882 | |
| 23883 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23884 | { $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] | 23885 | $as_echo_n "checking for unsigned 16-bit type... " >&6; } |
| 23886 | UINT16_T='unsigned short' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5 |
| 23888 | $as_echo "$UINT16_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23889 | |
| 23890 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23891 | { $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] | 23892 | $as_echo_n "checking for signed 32-bit type... " >&6; } |
| 23893 | INT32_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23894 | INT32_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23895 | if test $ac_cv_sizeof_signed_int -eq 4; then |
| 23896 | INT32_T='signed int' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23897 | INT32_F='""' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23898 | elif test $ac_cv_sizeof_signed_long -eq 4; then |
| 23899 | INT32_T='signed long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23900 | INT32_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23901 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5 |
| 23903 | $as_echo "$INT32_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23904 | |
| 23905 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23906 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23907 | { $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] | 23908 | $as_echo_n "checking for unsigned 32-bit type... " >&6; } |
| 23909 | UINT32_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23910 | UINT32_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23911 | if test $ac_cv_sizeof_unsigned_int -eq 4; then |
| 23912 | UINT32_T='unsigned int' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23913 | UINT32_F='""' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23914 | elif test $ac_cv_sizeof_unsigned_long -eq 4; then |
| 23915 | UINT32_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23916 | UINT32_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23917 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5 |
| 23919 | $as_echo "$UINT32_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23920 | |
| 23921 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23922 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23923 | { $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] | 23924 | $as_echo_n "checking for signed 64-bit type... " >&6; } |
| 23925 | INT64_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23926 | INT64_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23927 | if test $ac_cv_sizeof_signed_long -eq 8; then |
| 23928 | INT64_T='signed long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23929 | INT64_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23930 | elif test $ac_cv_sizeof_signed_long_long -eq 8; then |
| 23931 | INT64_T='signed long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23932 | INT64_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23933 | fi |
| cristy | 3a99dcf | 2011-12-17 01:29:40 +0000 | [diff] [blame] | 23934 | case "${host_os}" in |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23935 | mingw* ) |
| 23936 | INT64_F='"I64"' |
| 23937 | ;; |
| 23938 | esac |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5 |
| 23940 | $as_echo "$INT64_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23941 | |
| 23942 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23943 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23944 | { $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] | 23945 | $as_echo_n "checking for unsigned 64-bit type... " >&6; } |
| 23946 | UINT64_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23947 | UINT64_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23948 | if test $ac_cv_sizeof_unsigned_long -eq 8; then |
| 23949 | UINT64_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23950 | UINT64_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23951 | elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then |
| 23952 | UINT64_T='unsigned long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23953 | UINT64_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23954 | fi |
| cristy | 3a99dcf | 2011-12-17 01:29:40 +0000 | [diff] [blame] | 23955 | case "${host_os}" in |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23956 | mingw* ) |
| 23957 | UINT64_F='"I64"' |
| 23958 | ;; |
| 23959 | esac |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5 |
| 23961 | $as_echo "$UINT64_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23962 | |
| 23963 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23964 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23966 | $as_echo_n "checking for unsigned maximum type... " >&6; } |
| 23967 | UINTMAX_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23968 | UINTMAX_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23969 | if test "$UINT64_T" != 'none'; then |
| 23970 | UINTMAX_T=$UINT64_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23971 | UINTMAX_F=$UINT64_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23972 | elif test "$UINT32_T" != 'none'; then |
| 23973 | UINTMAX_T=$UINT32_T |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23974 | UINTMAX_F=$UINT32_F |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23975 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5 |
| 23977 | $as_echo "$UINTMAX_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23978 | |
| 23979 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23980 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23982 | $as_echo_n "checking for pointer difference type... " >&6; } |
| 23983 | UINTPTR_T='none' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23984 | UINTPTR_F='none' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23985 | if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 23986 | UINTPTR_T='unsigned long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23987 | UINTPTR_F='"l"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23988 | elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then |
| 23989 | UINTPTR_T='unsigned long long' |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23990 | UINTPTR_F='"ll"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23991 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 23992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5 |
| 23993 | $as_echo "$UINTPTR_T" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23994 | |
| 23995 | |
| cristy | 6d5e20f | 2011-04-25 13:48:54 +0000 | [diff] [blame] | 23996 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23997 | { $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] | 23998 | $as_echo_n "checking whether our compiler supports __func__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 23999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24000 | /* end confdefs.h. */ |
| 24001 | |
| 24002 | int |
| 24003 | main () |
| 24004 | { |
| 24005 | { const char *func = __func__; return(func != 0 ? 0 : 1); } |
| 24006 | ; |
| 24007 | return 0; |
| 24008 | } |
| 24009 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24010 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 24011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 24012 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24013 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 24014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24015 | $as_echo "no" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24016 | { $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] | 24017 | $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24019 | /* end confdefs.h. */ |
| 24020 | |
| 24021 | int |
| 24022 | main () |
| 24023 | { |
| 24024 | { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); } |
| 24025 | ; |
| 24026 | return 0; |
| 24027 | } |
| 24028 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24029 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 24030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 24031 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24032 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24033 | $as_echo "#define __func__ __FUNCTION__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24034 | |
| 24035 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 24036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 24037 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24038 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24039 | $as_echo "#define __func__ __FILE__" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24040 | |
| 24041 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24043 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24045 | |
| 24046 | ######## |
| 24047 | # |
| 24048 | # Check for functions |
| 24049 | # |
| 24050 | ######## |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24051 | for ac_header in stdlib.h unistd.h |
| 24052 | do : |
| 24053 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24054 | 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] | 24055 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24056 | cat >>confdefs.h <<_ACEOF |
| 24057 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24058 | _ACEOF |
| 24059 | |
| 24060 | fi |
| 24061 | |
| 24062 | done |
| 24063 | |
| 24064 | for ac_func in getpagesize |
| 24065 | do : |
| 24066 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24067 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24068 | cat >>confdefs.h <<_ACEOF |
| 24069 | #define HAVE_GETPAGESIZE 1 |
| 24070 | _ACEOF |
| 24071 | |
| 24072 | fi |
| 24073 | done |
| 24074 | |
| 24075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5 |
| 24076 | $as_echo_n "checking for working mmap file i/o... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24077 | if ${magick_cv_func_mmap_fileio+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 24078 | $as_echo_n "(cached) " >&6 |
| 24079 | else |
| 24080 | if test "$cross_compiling" = yes; then : |
| 24081 | magick_cv_func_mmap_fileio=no |
| 24082 | else |
| 24083 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24084 | /* end confdefs.h. */ |
| 24085 | $ac_includes_default |
| 24086 | /* malloc might have been renamed as rpl_malloc. */ |
| 24087 | #undef malloc |
| 24088 | |
| 24089 | /* |
| 24090 | This test is derived from GNU Autoconf's similar macro. |
| 24091 | The purpose of this test is to verify that files may be memory |
| 24092 | mapped, and that memory mapping and file I/O are coherent. |
| 24093 | |
| 24094 | The test creates a test file, memory maps the file, updates |
| 24095 | the file using the memory map, and then reads the file using |
| 24096 | file I/O to verify that the file contains the updates. |
| 24097 | */ |
| 24098 | |
| 24099 | #include <fcntl.h> |
| 24100 | #include <sys/mman.h> |
| 24101 | |
| 24102 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 24103 | char *malloc (); |
| 24104 | #endif |
| 24105 | |
| 24106 | /* This mess was copied from the GNU getpagesize.h. */ |
| 24107 | #if !HAVE_GETPAGESIZE |
| 24108 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 24109 | # if !HAVE_SYS_PARAM_H |
| 24110 | # define HAVE_SYS_PARAM_H 1 |
| 24111 | # endif |
| 24112 | |
| 24113 | # ifdef _SC_PAGESIZE |
| 24114 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 24115 | # else /* no _SC_PAGESIZE */ |
| 24116 | # if HAVE_SYS_PARAM_H |
| 24117 | # include <sys/param.h> |
| 24118 | # ifdef EXEC_PAGESIZE |
| 24119 | # define getpagesize() EXEC_PAGESIZE |
| 24120 | # else /* no EXEC_PAGESIZE */ |
| 24121 | # ifdef NBPG |
| 24122 | # define getpagesize() NBPG * CLSIZE |
| 24123 | # ifndef CLSIZE |
| 24124 | # define CLSIZE 1 |
| 24125 | # endif /* no CLSIZE */ |
| 24126 | # else /* no NBPG */ |
| 24127 | # ifdef NBPC |
| 24128 | # define getpagesize() NBPC |
| 24129 | # else /* no NBPC */ |
| 24130 | # ifdef PAGESIZE |
| 24131 | # define getpagesize() PAGESIZE |
| 24132 | # endif /* PAGESIZE */ |
| 24133 | # endif /* no NBPC */ |
| 24134 | # endif /* no NBPG */ |
| 24135 | # endif /* no EXEC_PAGESIZE */ |
| 24136 | # else /* no HAVE_SYS_PARAM_H */ |
| 24137 | # define getpagesize() 8192 /* punt totally */ |
| 24138 | # endif /* no HAVE_SYS_PARAM_H */ |
| 24139 | # endif /* no _SC_PAGESIZE */ |
| 24140 | |
| 24141 | #endif /* no HAVE_GETPAGESIZE */ |
| 24142 | |
| 24143 | int |
| 24144 | main () |
| 24145 | { |
| 24146 | char *data, *data2, *data3; |
| 24147 | int i, pagesize; |
| 24148 | int fd; |
| 24149 | |
| 24150 | pagesize = getpagesize (); |
| 24151 | |
| 24152 | /* First, make a file with some known garbage in it. */ |
| 24153 | data = (char *) malloc (pagesize); |
| 24154 | if (!data) |
| 24155 | exit (1); |
| 24156 | for (i = 0; i < pagesize; ++i) |
| 24157 | *(data + i) = rand (); |
| 24158 | umask (0); |
| 24159 | fd = creat ("conftest.mmap", 0600); |
| 24160 | if (fd < 0) |
| 24161 | exit (1); |
| 24162 | if (write (fd, data, pagesize) != pagesize) |
| 24163 | exit (1); |
| 24164 | close (fd); |
| 24165 | |
| 24166 | /* Mmap the file as read/write/shared and verify that we see the |
| 24167 | same garbage. */ |
| 24168 | fd = open ("conftest.mmap", O_RDWR); |
| 24169 | if (fd < 0) |
| 24170 | exit (1); |
| 24171 | data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L); |
| 24172 | if (data2 == 0) |
| 24173 | exit (1); |
| 24174 | for (i = 0; i < pagesize; ++i) |
| 24175 | if (*(data + i) != *(data2 + i)) |
| 24176 | exit (1); |
| 24177 | |
| 24178 | /* Finally, make sure that changes to the mapped area |
| 24179 | percolate back to the file as seen by read(). */ |
| 24180 | for (i = 0; i < pagesize; ++i) |
| 24181 | *(data2 + i) = *(data2 + i) + 1; |
| 24182 | data3 = (char *) malloc (pagesize); |
| 24183 | if (!data3) |
| 24184 | exit (1); |
| 24185 | if (read (fd, data3, pagesize) != pagesize) |
| 24186 | exit (1); |
| 24187 | for (i = 0; i < pagesize; ++i) |
| 24188 | if (*(data2 + i) != *(data3 + i)) |
| 24189 | exit (1); |
| 24190 | close (fd); |
| 24191 | exit (0); |
| 24192 | } |
| 24193 | _ACEOF |
| 24194 | if ac_fn_c_try_run "$LINENO"; then : |
| 24195 | magick_cv_func_mmap_fileio=yes |
| 24196 | else |
| 24197 | magick_cv_func_mmap_fileio=no |
| 24198 | fi |
| 24199 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24200 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24201 | fi |
| 24202 | |
| 24203 | fi |
| 24204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5 |
| 24205 | $as_echo "$magick_cv_func_mmap_fileio" >&6; } |
| 24206 | if test $magick_cv_func_mmap_fileio = yes; then |
| 24207 | |
| 24208 | $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h |
| 24209 | |
| 24210 | fi |
| 24211 | rm -f conftest.mmap |
| 24212 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24214 | $as_echo_n "checking whether closedir returns void... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24215 | if ${ac_cv_func_closedir_void+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24216 | $as_echo_n "(cached) " >&6 |
| 24217 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24218 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24219 | ac_cv_func_closedir_void=yes |
| 24220 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24222 | /* end confdefs.h. */ |
| 24223 | $ac_includes_default |
| 24224 | #include <$ac_header_dirent> |
| 24225 | #ifndef __cplusplus |
| 24226 | int closedir (); |
| 24227 | #endif |
| 24228 | |
| 24229 | int |
| 24230 | main () |
| 24231 | { |
| 24232 | return closedir (opendir (".")) != 0; |
| 24233 | ; |
| 24234 | return 0; |
| 24235 | } |
| 24236 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24237 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24238 | ac_cv_func_closedir_void=no |
| 24239 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24240 | ac_cv_func_closedir_void=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24241 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24242 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24243 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24244 | fi |
| 24245 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24246 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24247 | { $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] | 24248 | $as_echo "$ac_cv_func_closedir_void" >&6; } |
| 24249 | if test $ac_cv_func_closedir_void = yes; then |
| 24250 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24251 | $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24252 | |
| 24253 | fi |
| 24254 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24255 | |
| 24256 | |
| 24257 | |
| 24258 | for ac_header in $ac_header_list |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24259 | do : |
| 24260 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24261 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 24262 | " |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24263 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24264 | cat >>confdefs.h <<_ACEOF |
| 24265 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24266 | _ACEOF |
| 24267 | |
| 24268 | fi |
| 24269 | |
| 24270 | done |
| 24271 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24272 | |
| 24273 | |
| 24274 | |
| 24275 | |
| 24276 | |
| 24277 | |
| 24278 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24279 | for ac_func in getpagesize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24280 | do : |
| 24281 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24282 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24283 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24284 | #define HAVE_GETPAGESIZE 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24285 | _ACEOF |
| 24286 | |
| 24287 | fi |
| 24288 | done |
| 24289 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24291 | $as_echo_n "checking for working mmap... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24292 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24293 | $as_echo_n "(cached) " >&6 |
| 24294 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24295 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24296 | ac_cv_func_mmap_fixed_mapped=no |
| 24297 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24299 | /* end confdefs.h. */ |
| 24300 | $ac_includes_default |
| 24301 | /* malloc might have been renamed as rpl_malloc. */ |
| 24302 | #undef malloc |
| 24303 | |
| 24304 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 24305 | Here is a matrix of mmap possibilities: |
| 24306 | mmap private not fixed |
| 24307 | mmap private fixed at somewhere currently unmapped |
| 24308 | mmap private fixed at somewhere already mapped |
| 24309 | mmap shared not fixed |
| 24310 | mmap shared fixed at somewhere currently unmapped |
| 24311 | mmap shared fixed at somewhere already mapped |
| 24312 | For private mappings, we should verify that changes cannot be read() |
| 24313 | back from the file, nor mmap's back from the file at a different |
| 24314 | address. (There have been systems where private was not correctly |
| 24315 | implemented like the infamous i386 svr4.0, and systems where the |
| 24316 | VM page cache was not coherent with the file system buffer cache |
| 24317 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 24318 | For shared mappings, we should conversely verify that changes get |
| 24319 | propagated back to all the places they're supposed to be. |
| 24320 | |
| 24321 | Grep wants private fixed already mapped. |
| 24322 | The main things grep needs to know about mmap are: |
| 24323 | * does it exist and is it safe to write into the mmap'd area |
| 24324 | * how to use it (BSD variants) */ |
| 24325 | |
| 24326 | #include <fcntl.h> |
| 24327 | #include <sys/mman.h> |
| 24328 | |
| 24329 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 24330 | char *malloc (); |
| 24331 | #endif |
| 24332 | |
| 24333 | /* This mess was copied from the GNU getpagesize.h. */ |
| 24334 | #ifndef HAVE_GETPAGESIZE |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24335 | # ifdef _SC_PAGESIZE |
| 24336 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 24337 | # else /* no _SC_PAGESIZE */ |
| 24338 | # ifdef HAVE_SYS_PARAM_H |
| 24339 | # include <sys/param.h> |
| 24340 | # ifdef EXEC_PAGESIZE |
| 24341 | # define getpagesize() EXEC_PAGESIZE |
| 24342 | # else /* no EXEC_PAGESIZE */ |
| 24343 | # ifdef NBPG |
| 24344 | # define getpagesize() NBPG * CLSIZE |
| 24345 | # ifndef CLSIZE |
| 24346 | # define CLSIZE 1 |
| 24347 | # endif /* no CLSIZE */ |
| 24348 | # else /* no NBPG */ |
| 24349 | # ifdef NBPC |
| 24350 | # define getpagesize() NBPC |
| 24351 | # else /* no NBPC */ |
| 24352 | # ifdef PAGESIZE |
| 24353 | # define getpagesize() PAGESIZE |
| 24354 | # endif /* PAGESIZE */ |
| 24355 | # endif /* no NBPC */ |
| 24356 | # endif /* no NBPG */ |
| 24357 | # endif /* no EXEC_PAGESIZE */ |
| 24358 | # else /* no HAVE_SYS_PARAM_H */ |
| 24359 | # define getpagesize() 8192 /* punt totally */ |
| 24360 | # endif /* no HAVE_SYS_PARAM_H */ |
| 24361 | # endif /* no _SC_PAGESIZE */ |
| 24362 | |
| 24363 | #endif /* no HAVE_GETPAGESIZE */ |
| 24364 | |
| 24365 | int |
| 24366 | main () |
| 24367 | { |
| 24368 | char *data, *data2, *data3; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24369 | const char *cdata2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24370 | int i, pagesize; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24371 | int fd, fd2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24372 | |
| 24373 | pagesize = getpagesize (); |
| 24374 | |
| 24375 | /* First, make a file with some known garbage in it. */ |
| 24376 | data = (char *) malloc (pagesize); |
| 24377 | if (!data) |
| 24378 | return 1; |
| 24379 | for (i = 0; i < pagesize; ++i) |
| 24380 | *(data + i) = rand (); |
| 24381 | umask (0); |
| 24382 | fd = creat ("conftest.mmap", 0600); |
| 24383 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24384 | return 2; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24385 | if (write (fd, data, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24386 | return 3; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24387 | close (fd); |
| 24388 | |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24389 | /* Next, check that the tail of a page is zero-filled. File must have |
| 24390 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 24391 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 24392 | if (fd2 < 0) |
| 24393 | return 4; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24394 | cdata2 = ""; |
| 24395 | if (write (fd2, cdata2, 1) != 1) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24396 | return 5; |
| cristy | c54f5d4 | 2009-11-27 21:36:31 +0000 | [diff] [blame] | 24397 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24398 | if (data2 == MAP_FAILED) |
| 24399 | return 6; |
| 24400 | for (i = 0; i < pagesize; ++i) |
| 24401 | if (*(data2 + i)) |
| 24402 | return 7; |
| 24403 | close (fd2); |
| 24404 | if (munmap (data2, pagesize)) |
| 24405 | return 8; |
| 24406 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24407 | /* Next, try to mmap the file at a fixed address which already has |
| 24408 | something else allocated at it. If we can, also make sure that |
| 24409 | we see the same garbage. */ |
| 24410 | fd = open ("conftest.mmap", O_RDWR); |
| 24411 | if (fd < 0) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24412 | return 9; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24413 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 24414 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24415 | return 10; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24416 | for (i = 0; i < pagesize; ++i) |
| 24417 | if (*(data + i) != *(data2 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24418 | return 11; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24419 | |
| 24420 | /* Finally, make sure that changes to the mapped area do not |
| 24421 | percolate back to the file as seen by read(). (This is a bug on |
| 24422 | some variants of i386 svr4.0.) */ |
| 24423 | for (i = 0; i < pagesize; ++i) |
| 24424 | *(data2 + i) = *(data2 + i) + 1; |
| 24425 | data3 = (char *) malloc (pagesize); |
| 24426 | if (!data3) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24427 | return 12; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24428 | if (read (fd, data3, pagesize) != pagesize) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24429 | return 13; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24430 | for (i = 0; i < pagesize; ++i) |
| 24431 | if (*(data + i) != *(data3 + i)) |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24432 | return 14; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24433 | close (fd); |
| 24434 | return 0; |
| 24435 | } |
| 24436 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24437 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24438 | ac_cv_func_mmap_fixed_mapped=yes |
| 24439 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24440 | ac_cv_func_mmap_fixed_mapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24441 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24443 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24444 | fi |
| 24445 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24446 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24447 | { $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] | 24448 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 24449 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 24450 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24451 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24452 | |
| 24453 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 24454 | rm -f conftest.mmap conftest.txt |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24455 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24456 | for ac_header in vfork.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24457 | do : |
| 24458 | 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] | 24459 | if test "x$ac_cv_header_vfork_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24460 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24461 | #define HAVE_VFORK_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24462 | _ACEOF |
| 24463 | |
| 24464 | fi |
| 24465 | |
| 24466 | done |
| 24467 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24468 | for ac_func in fork vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24469 | do : |
| 24470 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 24471 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 24472 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24473 | cat >>confdefs.h <<_ACEOF |
| 24474 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 24475 | _ACEOF |
| 24476 | |
| 24477 | fi |
| 24478 | done |
| 24479 | |
| 24480 | if test "x$ac_cv_func_fork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24482 | $as_echo_n "checking for working fork... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24483 | if ${ac_cv_func_fork_works+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24484 | $as_echo_n "(cached) " >&6 |
| 24485 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24486 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24487 | ac_cv_func_fork_works=cross |
| 24488 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24490 | /* end confdefs.h. */ |
| 24491 | $ac_includes_default |
| 24492 | int |
| 24493 | main () |
| 24494 | { |
| 24495 | |
| 24496 | /* By Ruediger Kuhlmann. */ |
| 24497 | return fork () < 0; |
| 24498 | |
| 24499 | ; |
| 24500 | return 0; |
| 24501 | } |
| 24502 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24503 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24504 | ac_cv_func_fork_works=yes |
| 24505 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24506 | ac_cv_func_fork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24507 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24508 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24509 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24510 | fi |
| 24511 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24512 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24513 | { $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] | 24514 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 24515 | |
| 24516 | else |
| 24517 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 24518 | fi |
| 24519 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 24520 | case $host in |
| 24521 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 24522 | # Override, as these systems have only a dummy fork() stub |
| 24523 | ac_cv_func_fork_works=no |
| 24524 | ;; |
| 24525 | *) |
| 24526 | ac_cv_func_fork_works=yes |
| 24527 | ;; |
| 24528 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24529 | { $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] | 24530 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 24531 | fi |
| 24532 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 24533 | if test "x$ac_cv_func_vfork" = xyes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24535 | $as_echo_n "checking for working vfork... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24536 | if ${ac_cv_func_vfork_works+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24537 | $as_echo_n "(cached) " >&6 |
| 24538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24539 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24540 | ac_cv_func_vfork_works=cross |
| 24541 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24543 | /* end confdefs.h. */ |
| 24544 | /* Thanks to Paul Eggert for this test. */ |
| 24545 | $ac_includes_default |
| 24546 | #include <sys/wait.h> |
| 24547 | #ifdef HAVE_VFORK_H |
| 24548 | # include <vfork.h> |
| 24549 | #endif |
| 24550 | /* On some sparc systems, changes by the child to local and incoming |
| 24551 | argument registers are propagated back to the parent. The compiler |
| 24552 | is told about this with #include <vfork.h>, but some compilers |
| 24553 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 24554 | static variable whose address is put into a register that is |
| 24555 | clobbered by the vfork. */ |
| 24556 | static void |
| 24557 | #ifdef __cplusplus |
| 24558 | sparc_address_test (int arg) |
| 24559 | # else |
| 24560 | sparc_address_test (arg) int arg; |
| 24561 | #endif |
| 24562 | { |
| 24563 | static pid_t child; |
| 24564 | if (!child) { |
| 24565 | child = vfork (); |
| 24566 | if (child < 0) { |
| 24567 | perror ("vfork"); |
| 24568 | _exit(2); |
| 24569 | } |
| 24570 | if (!child) { |
| 24571 | arg = getpid(); |
| 24572 | write(-1, "", 0); |
| 24573 | _exit (arg); |
| 24574 | } |
| 24575 | } |
| 24576 | } |
| 24577 | |
| 24578 | int |
| 24579 | main () |
| 24580 | { |
| 24581 | pid_t parent = getpid (); |
| 24582 | pid_t child; |
| 24583 | |
| 24584 | sparc_address_test (0); |
| 24585 | |
| 24586 | child = vfork (); |
| 24587 | |
| 24588 | if (child == 0) { |
| 24589 | /* Here is another test for sparc vfork register problems. This |
| 24590 | test uses lots of local variables, at least as many local |
| 24591 | variables as main has allocated so far including compiler |
| 24592 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 24593 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 24594 | reuse the register of parent for one of the local variables, |
| 24595 | since it will think that parent can't possibly be used any more |
| 24596 | in this routine. Assigning to the local variable will thus |
| 24597 | munge parent in the parent process. */ |
| 24598 | pid_t |
| 24599 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 24600 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 24601 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 24602 | use the same hardware register for all 8 local variables. */ |
| 24603 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 24604 | || p != p5 || p != p6 || p != p7) |
| 24605 | _exit(1); |
| 24606 | |
| 24607 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 24608 | from child file descriptors. If the child closes a descriptor |
| 24609 | before it execs or exits, this munges the parent's descriptor |
| 24610 | as well. Test for this by closing stdout in the child. */ |
| 24611 | _exit(close(fileno(stdout)) != 0); |
| 24612 | } else { |
| 24613 | int status; |
| 24614 | struct stat st; |
| 24615 | |
| 24616 | while (wait(&status) != child) |
| 24617 | ; |
| 24618 | return ( |
| 24619 | /* Was there some problem with vforking? */ |
| 24620 | child < 0 |
| 24621 | |
| 24622 | /* Did the child fail? (This shouldn't happen.) */ |
| 24623 | || status |
| 24624 | |
| 24625 | /* Did the vfork/compiler bug occur? */ |
| 24626 | || parent != getpid() |
| 24627 | |
| 24628 | /* Did the file descriptor bug occur? */ |
| 24629 | || fstat(fileno(stdout), &st) != 0 |
| 24630 | ); |
| 24631 | } |
| 24632 | } |
| 24633 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24634 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24635 | ac_cv_func_vfork_works=yes |
| 24636 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24637 | ac_cv_func_vfork_works=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24638 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24640 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24641 | fi |
| 24642 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24643 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24644 | { $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] | 24645 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 24646 | |
| 24647 | fi; |
| 24648 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 24649 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24650 | { $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] | 24651 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 24652 | fi |
| 24653 | |
| 24654 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 24655 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24656 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24657 | |
| 24658 | else |
| 24659 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24660 | $as_echo "#define vfork fork" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24661 | |
| 24662 | fi |
| 24663 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 24664 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24665 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24666 | |
| 24667 | fi |
| 24668 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24670 | $as_echo_n "checking for working memcmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24671 | if ${ac_cv_func_memcmp_working+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24672 | $as_echo_n "(cached) " >&6 |
| 24673 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24674 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24675 | ac_cv_func_memcmp_working=no |
| 24676 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24678 | /* end confdefs.h. */ |
| 24679 | $ac_includes_default |
| 24680 | int |
| 24681 | main () |
| 24682 | { |
| 24683 | |
| 24684 | /* Some versions of memcmp are not 8-bit clean. */ |
| 24685 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 24686 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 24687 | return 1; |
| 24688 | |
| 24689 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 24690 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 24691 | William Lewis provided this test program. */ |
| 24692 | { |
| 24693 | char foo[21]; |
| 24694 | char bar[21]; |
| 24695 | int i; |
| 24696 | for (i = 0; i < 4; i++) |
| 24697 | { |
| 24698 | char *a = foo + i; |
| 24699 | char *b = bar + i; |
| 24700 | strcpy (a, "--------01111111"); |
| 24701 | strcpy (b, "--------10000000"); |
| 24702 | if (memcmp (a, b, 16) >= 0) |
| 24703 | return 1; |
| 24704 | } |
| 24705 | return 0; |
| 24706 | } |
| 24707 | |
| 24708 | ; |
| 24709 | return 0; |
| 24710 | } |
| 24711 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24712 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24713 | ac_cv_func_memcmp_working=yes |
| 24714 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24715 | ac_cv_func_memcmp_working=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24716 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24717 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24718 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24719 | fi |
| 24720 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24721 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24722 | { $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] | 24723 | $as_echo "$ac_cv_func_memcmp_working" >&6; } |
| 24724 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 24725 | *" memcmp.$ac_objext "* ) ;; |
| 24726 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 24727 | ;; |
| 24728 | esac |
| 24729 | |
| 24730 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24731 | for ac_header in sys/select.h sys/socket.h |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24732 | do : |
| 24733 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 24734 | 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] | 24735 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24736 | cat >>confdefs.h <<_ACEOF |
| 24737 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 24738 | _ACEOF |
| 24739 | |
| 24740 | fi |
| 24741 | |
| 24742 | done |
| 24743 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24744 | { $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] | 24745 | $as_echo_n "checking types of arguments for select... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24746 | if ${ac_cv_func_select_args+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24747 | $as_echo_n "(cached) " >&6 |
| 24748 | else |
| 24749 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
| 24750 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
| 24751 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24753 | /* end confdefs.h. */ |
| 24754 | $ac_includes_default |
| 24755 | #ifdef HAVE_SYS_SELECT_H |
| 24756 | # include <sys/select.h> |
| 24757 | #endif |
| 24758 | #ifdef HAVE_SYS_SOCKET_H |
| 24759 | # include <sys/socket.h> |
| 24760 | #endif |
| 24761 | |
| 24762 | int |
| 24763 | main () |
| 24764 | { |
| 24765 | extern int select ($ac_arg1, |
| 24766 | $ac_arg234, $ac_arg234, $ac_arg234, |
| 24767 | $ac_arg5); |
| 24768 | ; |
| 24769 | return 0; |
| 24770 | } |
| 24771 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24772 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24773 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24774 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24776 | done |
| 24777 | done |
| 24778 | done |
| 24779 | # Provide a safe default value. |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24780 | : "${ac_cv_func_select_args=int,int *,struct timeval *}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24781 | |
| 24782 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24783 | { $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] | 24784 | $as_echo "$ac_cv_func_select_args" >&6; } |
| 24785 | ac_save_IFS=$IFS; IFS=',' |
| 24786 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
| 24787 | IFS=$ac_save_IFS |
| 24788 | shift |
| 24789 | |
| 24790 | cat >>confdefs.h <<_ACEOF |
| 24791 | #define SELECT_TYPE_ARG1 $1 |
| 24792 | _ACEOF |
| 24793 | |
| 24794 | |
| 24795 | cat >>confdefs.h <<_ACEOF |
| 24796 | #define SELECT_TYPE_ARG234 ($2) |
| 24797 | _ACEOF |
| 24798 | |
| 24799 | |
| 24800 | cat >>confdefs.h <<_ACEOF |
| 24801 | #define SELECT_TYPE_ARG5 ($3) |
| 24802 | _ACEOF |
| 24803 | |
| 24804 | rm -f conftest* |
| 24805 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24806 | if ${ac_cv_func_setvbuf_reversed+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24807 | $as_echo_n "(cached) " >&6 |
| 24808 | else |
| 24809 | ac_cv_func_setvbuf_reversed=no |
| 24810 | fi |
| 24811 | |
| 24812 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24813 | { $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] | 24814 | $as_echo_n "checking return type of signal handlers... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24815 | if ${ac_cv_type_signal+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24816 | $as_echo_n "(cached) " >&6 |
| 24817 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24819 | /* end confdefs.h. */ |
| 24820 | #include <sys/types.h> |
| 24821 | #include <signal.h> |
| 24822 | |
| 24823 | int |
| 24824 | main () |
| 24825 | { |
| 24826 | return *(signal (0, 0)) (0) == 1; |
| 24827 | ; |
| 24828 | return 0; |
| 24829 | } |
| 24830 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24831 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24832 | ac_cv_type_signal=int |
| 24833 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24834 | ac_cv_type_signal=void |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24835 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24837 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24839 | $as_echo "$ac_cv_type_signal" >&6; } |
| 24840 | |
| 24841 | cat >>confdefs.h <<_ACEOF |
| 24842 | #define RETSIGTYPE $ac_cv_type_signal |
| 24843 | _ACEOF |
| 24844 | |
| 24845 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24847 | $as_echo_n "checking for working strtod... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24848 | if ${ac_cv_func_strtod+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24849 | $as_echo_n "(cached) " >&6 |
| 24850 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24851 | if test "$cross_compiling" = yes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24852 | ac_cv_func_strtod=no |
| 24853 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24855 | /* end confdefs.h. */ |
| 24856 | |
| 24857 | $ac_includes_default |
| 24858 | #ifndef strtod |
| 24859 | double strtod (); |
| 24860 | #endif |
| 24861 | int |
| 24862 | main() |
| 24863 | { |
| 24864 | { |
| 24865 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ |
| 24866 | char *string = " +69"; |
| 24867 | char *term; |
| 24868 | double value; |
| 24869 | value = strtod (string, &term); |
| 24870 | if (value != 69 || term != (string + 4)) |
| 24871 | return 1; |
| 24872 | } |
| 24873 | |
| 24874 | { |
| 24875 | /* Under Solaris 2.4, strtod returns the wrong value for the |
| 24876 | terminating character under some conditions. */ |
| 24877 | char *string = "NaN"; |
| 24878 | char *term; |
| 24879 | strtod (string, &term); |
| 24880 | if (term != string && *(term - 1) == 0) |
| 24881 | return 1; |
| 24882 | } |
| 24883 | return 0; |
| 24884 | } |
| 24885 | |
| 24886 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24887 | if ac_fn_c_try_run "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24888 | ac_cv_func_strtod=yes |
| 24889 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24890 | ac_cv_func_strtod=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24891 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24892 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24893 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24894 | fi |
| 24895 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24896 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24898 | $as_echo "$ac_cv_func_strtod" >&6; } |
| 24899 | if test $ac_cv_func_strtod = no; then |
| 24900 | case " $LIBOBJS " in |
| 24901 | *" strtod.$ac_objext "* ) ;; |
| 24902 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" |
| 24903 | ;; |
| 24904 | esac |
| 24905 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24906 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24907 | if test "x$ac_cv_func_pow" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24908 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24909 | fi |
| 24910 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24911 | if test $ac_cv_func_pow = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24913 | $as_echo_n "checking for pow in -lm... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24914 | if ${ac_cv_lib_m_pow+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24915 | $as_echo_n "(cached) " >&6 |
| 24916 | else |
| 24917 | ac_check_lib_save_LIBS=$LIBS |
| 24918 | LIBS="-lm $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24920 | /* end confdefs.h. */ |
| 24921 | |
| 24922 | /* Override any GCC internal prototype to avoid an error. |
| 24923 | Use char because int might match the return type of a GCC |
| 24924 | builtin and then its argument prototype would still apply. */ |
| 24925 | #ifdef __cplusplus |
| 24926 | extern "C" |
| 24927 | #endif |
| 24928 | char pow (); |
| 24929 | int |
| 24930 | main () |
| 24931 | { |
| 24932 | return pow (); |
| 24933 | ; |
| 24934 | return 0; |
| 24935 | } |
| 24936 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24937 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24938 | ac_cv_lib_m_pow=yes |
| 24939 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24940 | ac_cv_lib_m_pow=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24941 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24942 | rm -f core conftest.err conftest.$ac_objext \ |
| 24943 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24944 | LIBS=$ac_check_lib_save_LIBS |
| 24945 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24946 | { $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] | 24947 | $as_echo "$ac_cv_lib_m_pow" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 24948 | if test "x$ac_cv_lib_m_pow" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 24949 | POW_LIB=-lm |
| 24950 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 24951 | { $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] | 24952 | $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} |
| 24953 | fi |
| 24954 | |
| 24955 | fi |
| 24956 | |
| 24957 | fi |
| 24958 | |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 24959 | ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" |
| 24960 | if test "x$ac_cv_have_decl_strerror_r" = xyes; then : |
| 24961 | ac_have_decl=1 |
| 24962 | else |
| 24963 | ac_have_decl=0 |
| 24964 | fi |
| 24965 | |
| 24966 | cat >>confdefs.h <<_ACEOF |
| 24967 | #define HAVE_DECL_STRERROR_R $ac_have_decl |
| 24968 | _ACEOF |
| 24969 | |
| 24970 | for ac_func in strerror_r |
| 24971 | do : |
| 24972 | ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" |
| 24973 | if test "x$ac_cv_func_strerror_r" = xyes; then : |
| 24974 | cat >>confdefs.h <<_ACEOF |
| 24975 | #define HAVE_STRERROR_R 1 |
| 24976 | _ACEOF |
| 24977 | |
| 24978 | fi |
| 24979 | done |
| 24980 | |
| 24981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 |
| 24982 | $as_echo_n "checking whether strerror_r returns char *... " >&6; } |
| 24983 | if ${ac_cv_func_strerror_r_char_p+:} false; then : |
| 24984 | $as_echo_n "(cached) " >&6 |
| 24985 | else |
| 24986 | |
| 24987 | ac_cv_func_strerror_r_char_p=no |
| 24988 | if test $ac_cv_have_decl_strerror_r = yes; then |
| 24989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24990 | /* end confdefs.h. */ |
| 24991 | $ac_includes_default |
| 24992 | int |
| 24993 | main () |
| 24994 | { |
| 24995 | |
| 24996 | char buf[100]; |
| 24997 | char x = *strerror_r (0, buf, sizeof buf); |
| 24998 | char *p = strerror_r (0, buf, sizeof buf); |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame] | 24999 | return !p || x; |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 25000 | |
| 25001 | ; |
| 25002 | return 0; |
| 25003 | } |
| 25004 | _ACEOF |
| 25005 | if ac_fn_c_try_compile "$LINENO"; then : |
| 25006 | ac_cv_func_strerror_r_char_p=yes |
| 25007 | fi |
| 25008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25009 | else |
| 25010 | # strerror_r is not declared. Choose between |
| 25011 | # systems that have relatively inaccessible declarations for the |
| 25012 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the |
| 25013 | # former has a strerror_r that returns char*, while the latter |
| 25014 | # has a strerror_r that returns `int'. |
| 25015 | # This test should segfault on the DEC system. |
| 25016 | if test "$cross_compiling" = yes; then : |
| 25017 | : |
| 25018 | else |
| 25019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25020 | /* end confdefs.h. */ |
| 25021 | $ac_includes_default |
| 25022 | extern char *strerror_r (); |
| 25023 | int |
| 25024 | main () |
| 25025 | { |
| 25026 | char buf[100]; |
| 25027 | char x = *strerror_r (0, buf, sizeof buf); |
| cristy | c6e9179 | 2011-10-13 18:39:26 +0000 | [diff] [blame] | 25028 | return ! isalpha (x); |
| cristy | 7d4a1d6 | 2011-10-13 15:54:12 +0000 | [diff] [blame] | 25029 | ; |
| 25030 | return 0; |
| 25031 | } |
| 25032 | _ACEOF |
| 25033 | if ac_fn_c_try_run "$LINENO"; then : |
| 25034 | ac_cv_func_strerror_r_char_p=yes |
| 25035 | fi |
| 25036 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25037 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25038 | fi |
| 25039 | |
| 25040 | fi |
| 25041 | |
| 25042 | fi |
| 25043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 |
| 25044 | $as_echo "$ac_cv_func_strerror_r_char_p" >&6; } |
| 25045 | if test $ac_cv_func_strerror_r_char_p = yes; then |
| 25046 | |
| 25047 | $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h |
| 25048 | |
| 25049 | fi |
| 25050 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25051 | for ac_func in vprintf |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25052 | do : |
| 25053 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25054 | if test "x$ac_cv_func_vprintf" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25055 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25056 | #define HAVE_VPRINTF 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25057 | _ACEOF |
| 25058 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25059 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25060 | if test "x$ac_cv_func__doprnt" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25061 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25062 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25063 | |
| 25064 | fi |
| 25065 | |
| 25066 | fi |
| 25067 | done |
| 25068 | |
| 25069 | |
| 25070 | |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 25071 | # |
| 25072 | # Find math library |
| 25073 | # |
| 25074 | MATH_LIBS='' |
| 25075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 25076 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25077 | if ${ac_cv_lib_m_sqrt+:} false; then : |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 25078 | $as_echo_n "(cached) " >&6 |
| 25079 | else |
| 25080 | ac_check_lib_save_LIBS=$LIBS |
| 25081 | LIBS="-lm $LIBS" |
| 25082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25083 | /* end confdefs.h. */ |
| 25084 | |
| 25085 | /* Override any GCC internal prototype to avoid an error. |
| 25086 | Use char because int might match the return type of a GCC |
| 25087 | builtin and then its argument prototype would still apply. */ |
| 25088 | #ifdef __cplusplus |
| 25089 | extern "C" |
| 25090 | #endif |
| 25091 | char sqrt (); |
| 25092 | int |
| 25093 | main () |
| 25094 | { |
| 25095 | return sqrt (); |
| 25096 | ; |
| 25097 | return 0; |
| 25098 | } |
| 25099 | _ACEOF |
| 25100 | if ac_fn_c_try_link "$LINENO"; then : |
| 25101 | ac_cv_lib_m_sqrt=yes |
| 25102 | else |
| 25103 | ac_cv_lib_m_sqrt=no |
| 25104 | fi |
| 25105 | rm -f core conftest.err conftest.$ac_objext \ |
| 25106 | conftest$ac_exeext conftest.$ac_ext |
| 25107 | LIBS=$ac_check_lib_save_LIBS |
| 25108 | fi |
| 25109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 25110 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25111 | if test "x$ac_cv_lib_m_sqrt" = xyes; then : |
| cristy | 161b926 | 2010-03-20 19:34:32 +0000 | [diff] [blame] | 25112 | MATH_LIBS="-lm" |
| 25113 | fi |
| 25114 | |
| 25115 | LIBS="$MATH_LIBS $LIBS" |
| 25116 | |
| 25117 | |
| cristy | 8557216 | 2013-01-04 19:19:32 +0000 | [diff] [blame] | 25118 | # |
| 25119 | # Find socket library |
| 25120 | # |
| cristy | 8a5d7f4 | 2013-01-06 15:24:33 +0000 | [diff] [blame] | 25121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 25122 | $as_echo_n "checking for library containing gethostbyname... " >&6; } |
| 25123 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 25124 | $as_echo_n "(cached) " >&6 |
| 25125 | else |
| 25126 | ac_func_search_save_LIBS=$LIBS |
| 25127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25128 | /* end confdefs.h. */ |
| 25129 | |
| 25130 | /* Override any GCC internal prototype to avoid an error. |
| 25131 | Use char because int might match the return type of a GCC |
| 25132 | builtin and then its argument prototype would still apply. */ |
| 25133 | #ifdef __cplusplus |
| 25134 | extern "C" |
| 25135 | #endif |
| 25136 | char gethostbyname (); |
| 25137 | int |
| 25138 | main () |
| 25139 | { |
| 25140 | return gethostbyname (); |
| 25141 | ; |
| 25142 | return 0; |
| 25143 | } |
| 25144 | _ACEOF |
| 25145 | for ac_lib in '' resolv nsl; do |
| 25146 | if test -z "$ac_lib"; then |
| 25147 | ac_res="none required" |
| 25148 | else |
| 25149 | ac_res=-l$ac_lib |
| 25150 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25151 | fi |
| 25152 | if ac_fn_c_try_link "$LINENO"; then : |
| 25153 | ac_cv_search_gethostbyname=$ac_res |
| 25154 | fi |
| 25155 | rm -f core conftest.err conftest.$ac_objext \ |
| 25156 | conftest$ac_exeext |
| 25157 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 25158 | break |
| 25159 | fi |
| 25160 | done |
| 25161 | if ${ac_cv_search_gethostbyname+:} false; then : |
| 25162 | |
| 25163 | else |
| 25164 | ac_cv_search_gethostbyname=no |
| 25165 | fi |
| 25166 | rm conftest.$ac_ext |
| 25167 | LIBS=$ac_func_search_save_LIBS |
| 25168 | fi |
| 25169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 25170 | $as_echo "$ac_cv_search_gethostbyname" >&6; } |
| 25171 | ac_res=$ac_cv_search_gethostbyname |
| 25172 | if test "$ac_res" != no; then : |
| 25173 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 25174 | |
| 25175 | fi |
| 25176 | |
| cristy | 8557216 | 2013-01-04 19:19:32 +0000 | [diff] [blame] | 25177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
| 25178 | $as_echo_n "checking for library containing socket... " >&6; } |
| 25179 | if ${ac_cv_search_socket+:} false; then : |
| 25180 | $as_echo_n "(cached) " >&6 |
| 25181 | else |
| 25182 | ac_func_search_save_LIBS=$LIBS |
| 25183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25184 | /* end confdefs.h. */ |
| 25185 | |
| 25186 | /* Override any GCC internal prototype to avoid an error. |
| 25187 | Use char because int might match the return type of a GCC |
| 25188 | builtin and then its argument prototype would still apply. */ |
| 25189 | #ifdef __cplusplus |
| 25190 | extern "C" |
| 25191 | #endif |
| 25192 | char socket (); |
| 25193 | int |
| 25194 | main () |
| 25195 | { |
| 25196 | return socket (); |
| 25197 | ; |
| 25198 | return 0; |
| 25199 | } |
| 25200 | _ACEOF |
| 25201 | for ac_lib in '' socket; do |
| 25202 | if test -z "$ac_lib"; then |
| 25203 | ac_res="none required" |
| 25204 | else |
| 25205 | ac_res=-l$ac_lib |
| 25206 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25207 | fi |
| 25208 | if ac_fn_c_try_link "$LINENO"; then : |
| 25209 | ac_cv_search_socket=$ac_res |
| 25210 | fi |
| 25211 | rm -f core conftest.err conftest.$ac_objext \ |
| 25212 | conftest$ac_exeext |
| 25213 | if ${ac_cv_search_socket+:} false; then : |
| 25214 | break |
| 25215 | fi |
| 25216 | done |
| 25217 | if ${ac_cv_search_socket+:} false; then : |
| 25218 | |
| 25219 | else |
| 25220 | ac_cv_search_socket=no |
| 25221 | fi |
| 25222 | rm conftest.$ac_ext |
| 25223 | LIBS=$ac_func_search_save_LIBS |
| 25224 | fi |
| 25225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
| 25226 | $as_echo "$ac_cv_search_socket" >&6; } |
| 25227 | ac_res=$ac_cv_search_socket |
| 25228 | if test "$ac_res" != no; then : |
| 25229 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 25230 | |
| cristy | 8557216 | 2013-01-04 19:19:32 +0000 | [diff] [blame] | 25231 | |
| cristy | 8a5d7f4 | 2013-01-06 15:24:33 +0000 | [diff] [blame] | 25232 | $as_echo "#define HAVE_SOCKET 1" >>confdefs.h |
| cristy | 8557216 | 2013-01-04 19:19:32 +0000 | [diff] [blame] | 25233 | |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 25234 | MAGICK_FEATURES="DPC $MAGICK_FEATURES" |
| cristy | 8557216 | 2013-01-04 19:19:32 +0000 | [diff] [blame] | 25235 | |
| 25236 | fi |
| 25237 | |
| 25238 | |
| 25239 | for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25240 | do : |
| 25241 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 25242 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25243 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25244 | cat >>confdefs.h <<_ACEOF |
| 25245 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 25246 | _ACEOF |
| 25247 | |
| 25248 | fi |
| 25249 | done |
| 25250 | |
| 25251 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25252 | # |
| 25253 | # Check for clock_gettime(). |
| 25254 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25255 | { $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] | 25256 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25257 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25258 | $as_echo_n "(cached) " >&6 |
| 25259 | else |
| 25260 | ac_func_search_save_LIBS=$LIBS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25262 | /* end confdefs.h. */ |
| 25263 | |
| 25264 | /* Override any GCC internal prototype to avoid an error. |
| 25265 | Use char because int might match the return type of a GCC |
| 25266 | builtin and then its argument prototype would still apply. */ |
| 25267 | #ifdef __cplusplus |
| 25268 | extern "C" |
| 25269 | #endif |
| 25270 | char clock_gettime (); |
| 25271 | int |
| 25272 | main () |
| 25273 | { |
| 25274 | return clock_gettime (); |
| 25275 | ; |
| 25276 | return 0; |
| 25277 | } |
| 25278 | _ACEOF |
| 25279 | for ac_lib in '' rt; do |
| 25280 | if test -z "$ac_lib"; then |
| 25281 | ac_res="none required" |
| 25282 | else |
| 25283 | ac_res=-l$ac_lib |
| 25284 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 25285 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25286 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25287 | ac_cv_search_clock_gettime=$ac_res |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25288 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25289 | rm -f core conftest.err conftest.$ac_objext \ |
| 25290 | conftest$ac_exeext |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25291 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25292 | break |
| 25293 | fi |
| 25294 | done |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25295 | if ${ac_cv_search_clock_gettime+:} false; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25296 | |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25297 | else |
| 25298 | ac_cv_search_clock_gettime=no |
| 25299 | fi |
| 25300 | rm conftest.$ac_ext |
| 25301 | LIBS=$ac_func_search_save_LIBS |
| 25302 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25303 | { $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] | 25304 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 25305 | ac_res=$ac_cv_search_clock_gettime |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25306 | if test "$ac_res" != no; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25307 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 25308 | |
| 25309 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25310 | $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25311 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25312 | { $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] | 25313 | $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25315 | /* end confdefs.h. */ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25316 | |
| 25317 | #include <time.h> |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25318 | int |
| 25319 | main () |
| 25320 | { |
| 25321 | clockid_t clockType = CLOCK_REALTIME; |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25322 | ; |
| 25323 | return 0; |
| 25324 | } |
| 25325 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25326 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25327 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 25328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 25329 | $as_echo "yes" >&6; } |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25330 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25331 | $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25332 | |
| 25333 | |
| 25334 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 25335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 25336 | $as_echo "no" >&6; } |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25337 | |
| 25338 | fi |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25340 | |
| 25341 | else |
| 25342 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25343 | for ac_func in gettimeofday ftime |
| 25344 | do : |
| 25345 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 25346 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 25347 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | e43a45e | 2009-09-28 14:49:00 +0000 | [diff] [blame] | 25348 | cat >>confdefs.h <<_ACEOF |
| 25349 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 25350 | _ACEOF |
| 25351 | break |
| 25352 | fi |
| 25353 | done |
| 25354 | |
| 25355 | |
| 25356 | |
| 25357 | fi |
| 25358 | |
| 25359 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25360 | ######## |
| 25361 | # |
| 25362 | # Check for function prototypes |
| 25363 | # |
| 25364 | ######## |
| 25365 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25366 | ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25367 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25368 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25369 | if test "x$ac_cv_have_decl_pread" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25370 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25371 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25372 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25373 | fi |
| 25374 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25375 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25376 | #define HAVE_DECL_PREAD $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25377 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25378 | ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25379 | #include <unistd.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25380 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25381 | if test "x$ac_cv_have_decl_pwrite" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25382 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25383 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25384 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25385 | fi |
| 25386 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25387 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25388 | #define HAVE_DECL_PWRITE $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25389 | _ACEOF |
| 25390 | |
| 25391 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25392 | ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25393 | #include <strings.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25394 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25395 | if test "x$ac_cv_have_decl_strlcpy" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25396 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25397 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25398 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25399 | fi |
| 25400 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25401 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25402 | #define HAVE_DECL_STRLCPY $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25403 | _ACEOF |
| 25404 | |
| 25405 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25406 | ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25407 | #include <stdio.h> |
| 25408 | #include <stdarg.h> |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25409 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25410 | if test "x$ac_cv_have_decl_vsnprintf" = xyes; then : |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25411 | ac_have_decl=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25412 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25413 | ac_have_decl=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25414 | fi |
| 25415 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25416 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25417 | #define HAVE_DECL_VSNPRINTF $ac_have_decl |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25418 | _ACEOF |
| 25419 | |
| 25420 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25421 | ######## |
| 25422 | # |
| 25423 | # C++ Support Tests (For Magick++) |
| 25424 | # |
| 25425 | ######## |
| 25426 | have_magick_plus_plus='no' |
| 25427 | if test "$with_magick_plus_plus" = 'yes'; then |
| 25428 | OLIBS="$LIBS" |
| 25429 | LIBS='' |
| 25430 | ac_ext=cpp |
| 25431 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25435 | |
| 25436 | |
| 25437 | # Full set of headers used... |
| 25438 | # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception |
| 25439 | # functional iomanip iosfwd iostream iterator list string strstream utility |
| 25440 | ac_ext=cpp |
| 25441 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25442 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25443 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25444 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25445 | |
| 25446 | ac_ext=cpp |
| 25447 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25448 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25449 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25450 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25451 | if test -z "$CXX"; then |
| 25452 | if test -n "$CCC"; then |
| 25453 | CXX=$CCC |
| 25454 | else |
| 25455 | if test -n "$ac_tool_prefix"; then |
| 25456 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 25457 | do |
| 25458 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 25459 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25461 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25462 | if ${ac_cv_prog_CXX+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25463 | $as_echo_n "(cached) " >&6 |
| 25464 | else |
| 25465 | if test -n "$CXX"; then |
| 25466 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 25467 | else |
| 25468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25469 | for as_dir in $PATH |
| 25470 | do |
| 25471 | IFS=$as_save_IFS |
| 25472 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25473 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 25474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25475 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25477 | break 2 |
| 25478 | fi |
| 25479 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25480 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25481 | IFS=$as_save_IFS |
| 25482 | |
| 25483 | fi |
| 25484 | fi |
| 25485 | CXX=$ac_cv_prog_CXX |
| 25486 | if test -n "$CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25488 | $as_echo "$CXX" >&6; } |
| 25489 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25491 | $as_echo "no" >&6; } |
| 25492 | fi |
| 25493 | |
| 25494 | |
| 25495 | test -n "$CXX" && break |
| 25496 | done |
| 25497 | fi |
| 25498 | if test -z "$CXX"; then |
| 25499 | ac_ct_CXX=$CXX |
| 25500 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 25501 | do |
| 25502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25503 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25505 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25506 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25507 | $as_echo_n "(cached) " >&6 |
| 25508 | else |
| 25509 | if test -n "$ac_ct_CXX"; then |
| 25510 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 25511 | else |
| 25512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25513 | for as_dir in $PATH |
| 25514 | do |
| 25515 | IFS=$as_save_IFS |
| 25516 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 25518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25519 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25521 | break 2 |
| 25522 | fi |
| 25523 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25524 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25525 | IFS=$as_save_IFS |
| 25526 | |
| 25527 | fi |
| 25528 | fi |
| 25529 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 25530 | if test -n "$ac_ct_CXX"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25532 | $as_echo "$ac_ct_CXX" >&6; } |
| 25533 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25535 | $as_echo "no" >&6; } |
| 25536 | fi |
| 25537 | |
| 25538 | |
| 25539 | test -n "$ac_ct_CXX" && break |
| 25540 | done |
| 25541 | |
| 25542 | if test "x$ac_ct_CXX" = x; then |
| 25543 | CXX="g++" |
| 25544 | else |
| 25545 | case $cross_compiling:$ac_tool_warned in |
| 25546 | yes:) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25547 | { $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] | 25548 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 25549 | ac_tool_warned=yes ;; |
| 25550 | esac |
| 25551 | CXX=$ac_ct_CXX |
| 25552 | fi |
| 25553 | fi |
| 25554 | |
| 25555 | fi |
| 25556 | fi |
| 25557 | # Provide some information about the compiler. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25558 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25559 | set X $ac_compile |
| 25560 | ac_compiler=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25561 | for ac_option in --version -v -V -qversion; do |
| 25562 | { { ac_try="$ac_compiler $ac_option >&5" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25563 | case "(($ac_try" in |
| 25564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 25565 | *) ac_try_echo=$ac_try;; |
| 25566 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 25568 | $as_echo "$ac_try_echo"; } >&5 |
| 25569 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25570 | ac_status=$? |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25571 | if test -s conftest.err; then |
| 25572 | sed '10a\ |
| 25573 | ... rest of stderr output deleted ... |
| 25574 | 10q' conftest.err >conftest.er1 |
| 25575 | cat conftest.er1 >&5 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25576 | fi |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 25577 | rm -f conftest.er1 conftest.err |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 25579 | test $ac_status = 0; } |
| 25580 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25581 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25582 | { $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] | 25583 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25584 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25585 | $as_echo_n "(cached) " >&6 |
| 25586 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25588 | /* end confdefs.h. */ |
| 25589 | |
| 25590 | int |
| 25591 | main () |
| 25592 | { |
| 25593 | #ifndef __GNUC__ |
| 25594 | choke me |
| 25595 | #endif |
| 25596 | |
| 25597 | ; |
| 25598 | return 0; |
| 25599 | } |
| 25600 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25601 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25602 | ac_compiler_gnu=yes |
| 25603 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25604 | ac_compiler_gnu=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25605 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25607 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 25608 | |
| 25609 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25610 | { $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] | 25611 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 25612 | if test $ac_compiler_gnu = yes; then |
| 25613 | GXX=yes |
| 25614 | else |
| 25615 | GXX= |
| 25616 | fi |
| 25617 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 25618 | ac_save_CXXFLAGS=$CXXFLAGS |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25620 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25621 | if ${ac_cv_prog_cxx_g+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25622 | $as_echo_n "(cached) " >&6 |
| 25623 | else |
| 25624 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 25625 | ac_cxx_werror_flag=yes |
| 25626 | ac_cv_prog_cxx_g=no |
| 25627 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25629 | /* end confdefs.h. */ |
| 25630 | |
| 25631 | int |
| 25632 | main () |
| 25633 | { |
| 25634 | |
| 25635 | ; |
| 25636 | return 0; |
| 25637 | } |
| 25638 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25639 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25640 | ac_cv_prog_cxx_g=yes |
| 25641 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25642 | CXXFLAGS="" |
| 25643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25644 | /* end confdefs.h. */ |
| 25645 | |
| 25646 | int |
| 25647 | main () |
| 25648 | { |
| 25649 | |
| 25650 | ; |
| 25651 | return 0; |
| 25652 | } |
| 25653 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25654 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25655 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25656 | else |
| 25657 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25658 | CXXFLAGS="-g" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25660 | /* end confdefs.h. */ |
| 25661 | |
| 25662 | int |
| 25663 | main () |
| 25664 | { |
| 25665 | |
| 25666 | ; |
| 25667 | return 0; |
| 25668 | } |
| 25669 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25670 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25671 | ac_cv_prog_cxx_g=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25672 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25674 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25676 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 25677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25678 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 25679 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 25680 | { $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] | 25681 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 25682 | if test "$ac_test_CXXFLAGS" = set; then |
| 25683 | CXXFLAGS=$ac_save_CXXFLAGS |
| 25684 | elif test $ac_cv_prog_cxx_g = yes; then |
| 25685 | if test "$GXX" = yes; then |
| 25686 | CXXFLAGS="-g -O2" |
| 25687 | else |
| 25688 | CXXFLAGS="-g" |
| 25689 | fi |
| 25690 | else |
| 25691 | if test "$GXX" = yes; then |
| 25692 | CXXFLAGS="-O2" |
| 25693 | else |
| 25694 | CXXFLAGS= |
| 25695 | fi |
| 25696 | fi |
| 25697 | ac_ext=cpp |
| 25698 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25699 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25700 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25701 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25702 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25703 | depcc="$CXX" am_compiler_list= |
| 25704 | |
| 25705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 25706 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25707 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25708 | $as_echo_n "(cached) " >&6 |
| 25709 | else |
| 25710 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 25711 | # We make a subdir and do the tests there. Otherwise we can end up |
| 25712 | # making bogus files that we don't know about and never remove. For |
| 25713 | # instance it was reported that on HP-UX the gcc test will end up |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 25714 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 25715 | # in D". |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 25716 | rm -rf conftest.dir |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25717 | mkdir conftest.dir |
| 25718 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 25719 | # using a relative directory. |
| 25720 | cp "$am_depcomp" conftest.dir |
| 25721 | cd conftest.dir |
| 25722 | # We will build objects and dependencies in a subdirectory because |
| 25723 | # it helps to detect inapplicable dependency modes. For instance |
| 25724 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 25725 | # side effect of compilation, but ICC will put the dependencies in |
| 25726 | # the current directory while Tru64 will put them in the object |
| 25727 | # directory. |
| 25728 | mkdir sub |
| 25729 | |
| 25730 | am_cv_CXX_dependencies_compiler_type=none |
| 25731 | if test "$am_compiler_list" = ""; then |
| 25732 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 25733 | fi |
| 25734 | am__universal=false |
| 25735 | case " $depcc " in #( |
| 25736 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 25737 | esac |
| 25738 | |
| 25739 | for depmode in $am_compiler_list; do |
| 25740 | # Setup a source with many dependencies, because some compilers |
| 25741 | # like to wrap large dependency lists on column 80 (with \), and |
| 25742 | # we should not choose a depcomp mode which is confused by this. |
| 25743 | # |
| 25744 | # We need to recreate these files for each test, as the compiler may |
| 25745 | # overwrite some of them when testing with obscure command lines. |
| 25746 | # This happens at least with the AIX C compiler. |
| 25747 | : > sub/conftest.c |
| 25748 | for i in 1 2 3 4 5 6; do |
| 25749 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 25750 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 25751 | # Solaris 10 /bin/sh. |
| 25752 | echo '/* dummy */' > sub/conftst$i.h |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25753 | done |
| 25754 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 25755 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 25756 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25757 | # mode. It turns out that the SunPro C++ compiler does not properly |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 25758 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 25759 | # versions had trouble with output in subdirs. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25760 | am__obj=sub/conftest.${OBJEXT-o} |
| 25761 | am__minus_obj="-o $am__obj" |
| 25762 | case $depmode in |
| 25763 | gcc) |
| 25764 | # This depmode causes a compiler race in universal mode. |
| 25765 | test "$am__universal" = false || continue |
| 25766 | ;; |
| 25767 | nosideeffect) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 25768 | # After this tag, mechanisms are not by side-effect, so they'll |
| 25769 | # only be used when explicitly requested. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25770 | if test "x$enable_dependency_tracking" = xyes; then |
| 25771 | continue |
| 25772 | else |
| 25773 | break |
| 25774 | fi |
| 25775 | ;; |
| cristy | 7247bba | 2012-02-05 16:37:27 +0000 | [diff] [blame] | 25776 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 25777 | # This compiler won't grok '-c -o', but also, the minuso test has |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25778 | # not run yet. These depmodes are late enough in the game, and |
| 25779 | # so weak that their functioning should not be impacted. |
| 25780 | am__obj=conftest.${OBJEXT-o} |
| 25781 | am__minus_obj= |
| 25782 | ;; |
| 25783 | none) break ;; |
| 25784 | esac |
| 25785 | if depmode=$depmode \ |
| 25786 | source=sub/conftest.c object=$am__obj \ |
| 25787 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 25788 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 25789 | >/dev/null 2>conftest.err && |
| 25790 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 25791 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 25792 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 25793 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 25794 | # icc doesn't choke on unknown options, it will just issue warnings |
| 25795 | # or remarks (even with -Werror). So we grep stderr for any message |
| 25796 | # that says an option was ignored or not supported. |
| 25797 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 25798 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 25799 | # The diagnosis changed in icc 8.0: |
| 25800 | # icc: Command line remark: option '-MP' not supported |
| 25801 | if (grep 'ignoring option' conftest.err || |
| 25802 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 25803 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 25804 | break |
| 25805 | fi |
| 25806 | fi |
| 25807 | done |
| 25808 | |
| 25809 | cd .. |
| 25810 | rm -rf conftest.dir |
| 25811 | else |
| 25812 | am_cv_CXX_dependencies_compiler_type=none |
| 25813 | fi |
| 25814 | |
| 25815 | fi |
| 25816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 25817 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 25818 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 25819 | |
| 25820 | if |
| 25821 | test "x$enable_dependency_tracking" != xno \ |
| 25822 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 25823 | am__fastdepCXX_TRUE= |
| 25824 | am__fastdepCXX_FALSE='#' |
| 25825 | else |
| 25826 | am__fastdepCXX_TRUE='#' |
| 25827 | am__fastdepCXX_FALSE= |
| 25828 | fi |
| 25829 | |
| 25830 | |
| 25831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5 |
| 25832 | $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] | 25833 | if ${ax_cv_cxx_bool+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25834 | $as_echo_n "(cached) " >&6 |
| 25835 | else |
| 25836 | |
| 25837 | ac_ext=cpp |
| 25838 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25839 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25840 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25841 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25842 | |
| 25843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25844 | /* end confdefs.h. */ |
| 25845 | |
| 25846 | int f(int x){return 1;} |
| 25847 | int f(char x){return 1;} |
| 25848 | int f(bool x){return 1;} |
| 25849 | |
| 25850 | int |
| 25851 | main () |
| 25852 | { |
| 25853 | bool b = true; return f(b); |
| 25854 | ; |
| 25855 | return 0; |
| 25856 | } |
| 25857 | _ACEOF |
| 25858 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25859 | ax_cv_cxx_bool=yes |
| 25860 | else |
| 25861 | ax_cv_cxx_bool=no |
| 25862 | fi |
| 25863 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25864 | ac_ext=cpp |
| 25865 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25866 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25867 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25868 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25869 | |
| 25870 | |
| 25871 | fi |
| 25872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5 |
| 25873 | $as_echo "$ax_cv_cxx_bool" >&6; } |
| 25874 | if test "$ax_cv_cxx_bool" = yes; then |
| 25875 | |
| 25876 | $as_echo "#define HAVE_BOOL /**/" >>confdefs.h |
| 25877 | |
| 25878 | fi |
| 25879 | |
| 25880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5 |
| 25881 | $as_echo_n "checking whether the compiler implements namespaces... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25882 | if ${ax_cv_cxx_namespaces+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25883 | $as_echo_n "(cached) " >&6 |
| 25884 | else |
| 25885 | |
| 25886 | ac_ext=cpp |
| 25887 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25888 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25889 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25890 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25891 | |
| 25892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25893 | /* end confdefs.h. */ |
| 25894 | namespace Outer { namespace Inner { int i = 0; }} |
| 25895 | int |
| 25896 | main () |
| 25897 | { |
| 25898 | using namespace Outer::Inner; return i; |
| 25899 | ; |
| 25900 | return 0; |
| 25901 | } |
| 25902 | _ACEOF |
| 25903 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25904 | ax_cv_cxx_namespaces=yes |
| 25905 | else |
| 25906 | ax_cv_cxx_namespaces=no |
| 25907 | fi |
| 25908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25909 | ac_ext=cpp |
| 25910 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25911 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25912 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25913 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25914 | |
| 25915 | |
| 25916 | fi |
| 25917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5 |
| 25918 | $as_echo "$ax_cv_cxx_namespaces" >&6; } |
| 25919 | if test "$ax_cv_cxx_namespaces" = yes; then |
| 25920 | |
| 25921 | $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h |
| 25922 | |
| 25923 | fi |
| 25924 | |
| 25925 | |
| 25926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5 |
| 25927 | $as_echo_n "checking if g++ supports namespace std... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25928 | if ${ax_cv_cxx_have_std_namespace+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25929 | $as_echo_n "(cached) " >&6 |
| 25930 | else |
| 25931 | |
| 25932 | ac_ext=cpp |
| 25933 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25934 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25935 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25936 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25937 | |
| 25938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25939 | /* end confdefs.h. */ |
| 25940 | #include <iostream> |
| 25941 | std::istream& is = std::cin; |
| 25942 | int |
| 25943 | main () |
| 25944 | { |
| 25945 | |
| 25946 | ; |
| 25947 | return 0; |
| 25948 | } |
| 25949 | _ACEOF |
| 25950 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 25951 | ax_cv_cxx_have_std_namespace=yes |
| 25952 | else |
| 25953 | ax_cv_cxx_have_std_namespace=no |
| 25954 | fi |
| 25955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 25956 | ac_ext=cpp |
| 25957 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25958 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25959 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25960 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25961 | |
| 25962 | |
| 25963 | fi |
| 25964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5 |
| 25965 | $as_echo "$ax_cv_cxx_have_std_namespace" >&6; } |
| 25966 | if test "$ax_cv_cxx_have_std_namespace" = yes; then |
| 25967 | |
| 25968 | $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h |
| 25969 | |
| 25970 | fi |
| 25971 | |
| 25972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5 |
| 25973 | $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 25974 | if ${ac_cv_cxx_have_std_libs+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 25975 | $as_echo_n "(cached) " >&6 |
| 25976 | else |
| 25977 | |
| 25978 | |
| 25979 | ac_ext=cpp |
| 25980 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 25981 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 25982 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 25983 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 25984 | |
| 25985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25986 | /* end confdefs.h. */ |
| 25987 | #include <iostream> |
| 25988 | #include <map> |
| 25989 | #include <iomanip> |
| 25990 | #include <cmath> |
| 25991 | #ifdef HAVE_NAMESPACES |
| 25992 | using namespace std; |
| 25993 | #endif |
| 25994 | int |
| 25995 | main () |
| 25996 | { |
| 25997 | return 0; |
| 25998 | ; |
| 25999 | return 0; |
| 26000 | } |
| 26001 | _ACEOF |
| 26002 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 26003 | ac_cv_cxx_have_std_libs=yes |
| 26004 | else |
| 26005 | ac_cv_cxx_have_std_libs=no |
| 26006 | fi |
| 26007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 26008 | ac_ext=cpp |
| 26009 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 26010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 26013 | |
| 26014 | |
| 26015 | fi |
| 26016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5 |
| 26017 | $as_echo "$ac_cv_cxx_have_std_libs" >&6; } |
| 26018 | if test "$ac_cv_cxx_have_std_libs" = yes; then |
| 26019 | |
| 26020 | $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h |
| 26021 | |
| 26022 | fi |
| 26023 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26024 | |
| 26025 | OPENMP_CXXFLAGS= |
| 26026 | # Check whether --enable-openmp was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26027 | if test "${enable_openmp+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26028 | enableval=$enable_openmp; |
| 26029 | fi |
| 26030 | |
| 26031 | if test "$enable_openmp" != no; then |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 26032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5 |
| 26033 | $as_echo_n "checking for $CXX option to support OpenMP... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26034 | if ${ac_cv_prog_cxx_openmp+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26035 | $as_echo_n "(cached) " >&6 |
| 26036 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26038 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26039 | |
| 26040 | #ifndef _OPENMP |
| 26041 | choke me |
| 26042 | #endif |
| 26043 | #include <omp.h> |
| 26044 | int main () { return omp_get_num_threads (); } |
| 26045 | |
| 26046 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26047 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26048 | ac_cv_prog_cxx_openmp='none needed' |
| 26049 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26050 | ac_cv_prog_cxx_openmp='unsupported' |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 26051 | for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ |
| 26052 | -Popenmp --openmp; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26053 | ac_save_CXXFLAGS=$CXXFLAGS |
| 26054 | CXXFLAGS="$CXXFLAGS $ac_option" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26056 | /* end confdefs.h. */ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26057 | |
| 26058 | #ifndef _OPENMP |
| 26059 | choke me |
| 26060 | #endif |
| 26061 | #include <omp.h> |
| 26062 | int main () { return omp_get_num_threads (); } |
| 26063 | |
| 26064 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26065 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26066 | ac_cv_prog_cxx_openmp=$ac_option |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26067 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26068 | rm -f core conftest.err conftest.$ac_objext \ |
| 26069 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26070 | CXXFLAGS=$ac_save_CXXFLAGS |
| 26071 | if test "$ac_cv_prog_cxx_openmp" != unsupported; then |
| 26072 | break |
| 26073 | fi |
| 26074 | done |
| 26075 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26076 | rm -f core conftest.err conftest.$ac_objext \ |
| 26077 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26078 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26079 | { $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] | 26080 | $as_echo "$ac_cv_prog_cxx_openmp" >&6; } |
| 26081 | case $ac_cv_prog_cxx_openmp in #( |
| 26082 | "none needed" | unsupported) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26083 | ;; #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26084 | *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26085 | OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26086 | esac |
| 26087 | fi |
| 26088 | |
| 26089 | |
| 26090 | ac_ext=c |
| 26091 | ac_cpp='$CPP $CPPFLAGS' |
| 26092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26095 | |
| 26096 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26097 | { $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] | 26098 | $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; } |
| 26099 | if \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 26100 | test $ax_cv_cxx_bool = 'yes' && \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 26101 | test $ax_cv_cxx_namespaces = 'yes' && \ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26102 | test $ac_cv_cxx_have_std_libs = 'yes' && \ |
| cristy | 964cb7f | 2010-04-25 23:18:00 +0000 | [diff] [blame] | 26103 | test $ax_cv_cxx_have_std_namespace = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26104 | have_magick_plus_plus='yes' |
| 26105 | else |
| 26106 | have_magick_plus_plus='no (failed tests)' |
| 26107 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5 |
| 26109 | $as_echo "$have_magick_plus_plus" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26110 | LIBS="$OLIBS" |
| 26111 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26112 | if test "$have_magick_plus_plus" = 'yes'; then |
| 26113 | WITH_MAGICK_PLUS_PLUS_TRUE= |
| 26114 | WITH_MAGICK_PLUS_PLUS_FALSE='#' |
| 26115 | else |
| 26116 | WITH_MAGICK_PLUS_PLUS_TRUE='#' |
| 26117 | WITH_MAGICK_PLUS_PLUS_FALSE= |
| 26118 | fi |
| 26119 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26120 | |
| 26121 | # Only check for delegate libraries in subdirectories if requested. |
| 26122 | if test "$enable_delegate_build" != 'no'; then |
| 26123 | # Check for delegate sub-directories and add -I & -L options as required. |
| 26124 | # This presumes that delegates are installed as detailed in the ImageMagick |
| 26125 | # README. If delegates are installed in a standard location where the |
| 26126 | # compiler will automatically find them then these options should not be |
| 26127 | # required. |
| 26128 | |
| 26129 | # |
| 26130 | # Most delegates have includes in the same directory as the library, but not all... |
| 26131 | # |
| 26132 | # Includes |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 26133 | 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 webp wmf/include xml/include zlib; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26134 | if test -d "$builddir/$dir"; then |
| 26135 | CPPFLAGS="$CPPFLAGS -I$builddir/$dir" |
| 26136 | else |
| 26137 | if test -d "$srcdirfull/$dir"; then |
| 26138 | CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir" |
| 26139 | fi |
| 26140 | fi |
| 26141 | done |
| 26142 | |
| 26143 | # Libraries |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 26144 | 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 webp wmf/src xml zlib; do |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26145 | if test -d "$builddir/$dir/.libs"; then |
| 26146 | LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs" |
| 26147 | else |
| 26148 | if test -d "$srcdirfull/$dir/.libs"; then |
| 26149 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs" |
| 26150 | fi |
| 26151 | fi |
| 26152 | if test -d "$builddir/$dir"; then |
| 26153 | LDFLAGS="$LDFLAGS -L$builddir/$dir" |
| 26154 | else |
| 26155 | if test -d "$srcdirfull/$dir"; then |
| 26156 | LDFLAGS="$LDFLAGS -L$srcdirfull/$dir" |
| 26157 | fi |
| 26158 | fi |
| 26159 | done |
| 26160 | fi |
| 26161 | |
| 26162 | # Assume that delegate headers reside under same directory as ImageMagick |
| 26163 | # installation prefix. |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 26164 | MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26165 | |
| 26166 | # |
| 26167 | # Find the X11 RGB database |
| 26168 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26170 | $as_echo_n "checking for X11 configure files... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26171 | if ${im_cv_x_configure+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26172 | $as_echo_n "(cached) " >&6 |
| 26173 | else |
| 26174 | # Look for the header file in a standard set of common directories. |
| 26175 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 26176 | for ac_dir in \ |
| 26177 | /lib/usr/lib/X11 \ |
| 26178 | /usr/X11/lib \ |
| 26179 | /usr/X11R4/lib \ |
| 26180 | /usr/X11R5/lib \ |
| 26181 | /usr/X11R6/lib \ |
| 26182 | /usr/X11R7/lib \ |
| 26183 | /usr/X386/lib \ |
| 26184 | /usr/XFree86/lib/X11 \ |
| 26185 | /usr/athena/lib \ |
| 26186 | /usr/lib \ |
| 26187 | /usr/lib/X11 \ |
| 26188 | /usr/lib/X11R4 \ |
| 26189 | /usr/lib/X11R5 \ |
| 26190 | /usr/lib/X11R6 \ |
| 26191 | /usr/lib/X11R7 \ |
| 26192 | /usr/local/X11/lib \ |
| 26193 | /usr/local/X11R4/lib \ |
| 26194 | /usr/local/X11R5/lib \ |
| 26195 | /usr/local/X11R6/lib \ |
| 26196 | /usr/local/lib \ |
| 26197 | /usr/local/lib/X11 \ |
| 26198 | /usr/local/lib/X11R4 \ |
| 26199 | /usr/local/lib/X11R5 \ |
| 26200 | /usr/local/lib/X11R6 \ |
| 26201 | /usr/local/lib/X11R7 \ |
| 26202 | /usr/local/x11r5/lib \ |
| 26203 | /usr/lpp/Xamples/lib \ |
| 26204 | /usr/openwin/lib \ |
| 26205 | /usr/openwin/share/lib \ |
| 26206 | /usr/unsupported/lib \ |
| 26207 | /usr/x386/lib \ |
| 26208 | ; do |
| 26209 | if test -f "$ac_dir/X11/rgb.txt"; then |
| 26210 | im_cv_x_configure="$ac_dir/X11/" |
| 26211 | break |
| 26212 | elif test -f "$ac_dir/rgb.txt"; then |
| 26213 | im_cv_x_configure="$ac_dir/" |
| 26214 | break |
| 26215 | fi |
| 26216 | |
| 26217 | done |
| 26218 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26220 | $as_echo "$im_cv_x_configure" >&6; } |
| 26221 | X11_CONFIGURE_PATH="$im_cv_x_configure" |
| 26222 | case "${build_os}" in |
| 26223 | mingw* ) |
| 26224 | X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1` |
| 26225 | ;; |
| 26226 | esac |
| 26227 | |
| 26228 | cat >>confdefs.h <<_ACEOF |
| 26229 | #define X11_CONFIGURE_PATH "$X11ConfigurePath" |
| 26230 | _ACEOF |
| 26231 | |
| 26232 | |
| 26233 | # |
| 26234 | # Find OpenMP library |
| 26235 | # |
| 26236 | GOMP_LIBS='' |
| 26237 | if test "$enable_openmp" != 'no'; then |
| 26238 | if test "${GCC}" = "yes"; then |
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26239 | # Open64 (passes for GCC but uses different OpenMP implementation) |
| 26240 | if test "x$GOMP_LIBS" = x ; then |
| 26241 | if $CC --version 2>&1 | grep Open64 > /dev/null ; then |
| 26242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5 |
| 26243 | $as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; } |
| 26244 | if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then : |
| 26245 | $as_echo_n "(cached) " >&6 |
| 26246 | else |
| 26247 | ac_check_lib_save_LIBS=$LIBS |
| 26248 | LIBS="-lopenmp $LIBS" |
| 26249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26250 | /* end confdefs.h. */ |
| 26251 | |
| 26252 | /* Override any GCC internal prototype to avoid an error. |
| 26253 | Use char because int might match the return type of a GCC |
| 26254 | builtin and then its argument prototype would still apply. */ |
| 26255 | #ifdef __cplusplus |
| 26256 | extern "C" |
| 26257 | #endif |
| 26258 | char omp_get_num_procs (); |
| 26259 | int |
| 26260 | main () |
| 26261 | { |
| 26262 | return omp_get_num_procs (); |
| 26263 | ; |
| 26264 | return 0; |
| 26265 | } |
| 26266 | _ACEOF |
| 26267 | if ac_fn_c_try_link "$LINENO"; then : |
| 26268 | ac_cv_lib_openmp_omp_get_num_procs=yes |
| 26269 | else |
| 26270 | ac_cv_lib_openmp_omp_get_num_procs=no |
| 26271 | fi |
| 26272 | rm -f core conftest.err conftest.$ac_objext \ |
| 26273 | conftest$ac_exeext conftest.$ac_ext |
| 26274 | LIBS=$ac_check_lib_save_LIBS |
| 26275 | fi |
| 26276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5 |
| 26277 | $as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; } |
| 26278 | if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then : |
| 26279 | GOMP_LIBS="-lopenmp" |
| 26280 | fi |
| 26281 | |
| 26282 | fi |
| 26283 | fi |
| 26284 | # GCC |
| 26285 | if test "x$GOMP_LIBS" = x ; then |
| 26286 | { $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] | 26287 | $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26288 | if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26289 | $as_echo_n "(cached) " >&6 |
| 26290 | else |
| 26291 | ac_check_lib_save_LIBS=$LIBS |
| 26292 | LIBS="-lgomp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26294 | /* end confdefs.h. */ |
| 26295 | |
| 26296 | /* Override any GCC internal prototype to avoid an error. |
| 26297 | Use char because int might match the return type of a GCC |
| 26298 | builtin and then its argument prototype would still apply. */ |
| 26299 | #ifdef __cplusplus |
| 26300 | extern "C" |
| 26301 | #endif |
| 26302 | char GOMP_parallel_start (); |
| 26303 | int |
| 26304 | main () |
| 26305 | { |
| 26306 | return GOMP_parallel_start (); |
| 26307 | ; |
| 26308 | return 0; |
| 26309 | } |
| 26310 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26311 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26312 | ac_cv_lib_gomp_GOMP_parallel_start=yes |
| 26313 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26314 | ac_cv_lib_gomp_GOMP_parallel_start=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26315 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26316 | rm -f core conftest.err conftest.$ac_objext \ |
| 26317 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26318 | LIBS=$ac_check_lib_save_LIBS |
| 26319 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26320 | { $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] | 26321 | $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26322 | if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26323 | GOMP_LIBS="-lgomp" |
| 26324 | fi |
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26325 | |
| 26326 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26327 | else |
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26328 | # Sun CC |
| 26329 | if test "x$GOMP_LIBS" = x ; then |
| 26330 | { $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] | 26331 | $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26332 | if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26333 | $as_echo_n "(cached) " >&6 |
| 26334 | else |
| 26335 | ac_check_lib_save_LIBS=$LIBS |
| 26336 | LIBS="-lmtsk $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26338 | /* end confdefs.h. */ |
| 26339 | |
| 26340 | /* Override any GCC internal prototype to avoid an error. |
| 26341 | Use char because int might match the return type of a GCC |
| 26342 | builtin and then its argument prototype would still apply. */ |
| 26343 | #ifdef __cplusplus |
| 26344 | extern "C" |
| 26345 | #endif |
| 26346 | char sunw_mp_register_warn (); |
| 26347 | int |
| 26348 | main () |
| 26349 | { |
| 26350 | return sunw_mp_register_warn (); |
| 26351 | ; |
| 26352 | return 0; |
| 26353 | } |
| 26354 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26355 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26356 | ac_cv_lib_mtsk_sunw_mp_register_warn=yes |
| 26357 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26358 | ac_cv_lib_mtsk_sunw_mp_register_warn=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26359 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26360 | rm -f core conftest.err conftest.$ac_objext \ |
| 26361 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26362 | LIBS=$ac_check_lib_save_LIBS |
| 26363 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26364 | { $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] | 26365 | $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26366 | if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26367 | GOMP_LIBS="-lmtsk" |
| 26368 | fi |
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26369 | |
| 26370 | fi |
| 26371 | # AIX xlc |
| 26372 | if test "x$GOMP_LIBS" = x ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26374 | $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26375 | if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26376 | $as_echo_n "(cached) " >&6 |
| 26377 | else |
| 26378 | ac_check_lib_save_LIBS=$LIBS |
| 26379 | LIBS="-lxlsmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26381 | /* end confdefs.h. */ |
| 26382 | |
| 26383 | /* Override any GCC internal prototype to avoid an error. |
| 26384 | Use char because int might match the return type of a GCC |
| 26385 | builtin and then its argument prototype would still apply. */ |
| 26386 | #ifdef __cplusplus |
| 26387 | extern "C" |
| 26388 | #endif |
| 26389 | char _xlsmpFlush (); |
| 26390 | int |
| 26391 | main () |
| 26392 | { |
| 26393 | return _xlsmpFlush (); |
| 26394 | ; |
| 26395 | return 0; |
| 26396 | } |
| 26397 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26398 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26399 | ac_cv_lib_xlsmp__xlsmpFlush=yes |
| 26400 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26401 | ac_cv_lib_xlsmp__xlsmpFlush=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26402 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26403 | rm -f core conftest.err conftest.$ac_objext \ |
| 26404 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26405 | LIBS=$ac_check_lib_save_LIBS |
| 26406 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26407 | { $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] | 26408 | $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26409 | if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26410 | GOMP_LIBS="-lxlsmp" |
| 26411 | fi |
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26412 | |
| 26413 | fi |
| 26414 | # SGI IRIX 6.5 MIPSpro C/C++ |
| 26415 | if test "x$GOMP_LIBS" = x ; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26416 | { $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] | 26417 | $as_echo_n "checking for mp_destroy in -lmp... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26418 | if ${ac_cv_lib_mp_mp_destroy+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26419 | $as_echo_n "(cached) " >&6 |
| 26420 | else |
| 26421 | ac_check_lib_save_LIBS=$LIBS |
| 26422 | LIBS="-lmp $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26424 | /* end confdefs.h. */ |
| 26425 | |
| 26426 | /* Override any GCC internal prototype to avoid an error. |
| 26427 | Use char because int might match the return type of a GCC |
| 26428 | builtin and then its argument prototype would still apply. */ |
| 26429 | #ifdef __cplusplus |
| 26430 | extern "C" |
| 26431 | #endif |
| 26432 | char mp_destroy (); |
| 26433 | int |
| 26434 | main () |
| 26435 | { |
| 26436 | return mp_destroy (); |
| 26437 | ; |
| 26438 | return 0; |
| 26439 | } |
| 26440 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26441 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26442 | ac_cv_lib_mp_mp_destroy=yes |
| 26443 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26444 | ac_cv_lib_mp_mp_destroy=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26445 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26446 | rm -f core conftest.err conftest.$ac_objext \ |
| 26447 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26448 | LIBS=$ac_check_lib_save_LIBS |
| 26449 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26450 | { $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] | 26451 | $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26452 | if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26453 | GOMP_LIBS="-lmp" |
| 26454 | fi |
| cristy | 18307f1 | 2011-12-30 01:20:16 +0000 | [diff] [blame] | 26455 | |
| 26456 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26457 | fi |
| 26458 | LIBS="$GOMP_LIBS $LIBS" |
| 26459 | fi |
| 26460 | |
| 26461 | |
| 26462 | # |
| 26463 | # Find Posix threads library |
| 26464 | # |
| 26465 | THREAD_LIBS='' |
| 26466 | if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then |
| 26467 | |
| 26468 | if test "x$PTHREAD_LIBS" = "x"; then |
| 26469 | case "${host_cpu}-${host_os}" in |
| 26470 | *-freebsd*) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26471 | |
| 26472 | |
| 26473 | |
| 26474 | ac_ext=c |
| 26475 | ac_cpp='$CPP $CPPFLAGS' |
| 26476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26479 | |
| 26480 | magick_pthread_lib_ok=no |
| 26481 | |
| 26482 | LIB=-lc_r |
| 26483 | save_LIBS="$LIBS" |
| 26484 | LIBS="$LIBS $LIB" |
| 26485 | |
| 26486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| 26487 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 26488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26489 | /* end confdefs.h. */ |
| 26490 | #include <pthread.h> |
| 26491 | int |
| 26492 | main () |
| 26493 | { |
| 26494 | pthread_t th; |
| 26495 | pthread_join(th, 0); |
| 26496 | pthread_attr_init(0); |
| 26497 | pthread_cleanup_push(0, 0); |
| 26498 | pthread_create(0,0,0,0); |
| 26499 | pthread_cleanup_pop(0); |
| 26500 | ; |
| 26501 | return 0; |
| 26502 | } |
| 26503 | _ACEOF |
| 26504 | if ac_fn_c_try_link "$LINENO"; then : |
| 26505 | magick_pthread_lib_ok=yes |
| 26506 | fi |
| 26507 | rm -f core conftest.err conftest.$ac_objext \ |
| 26508 | conftest$ac_exeext conftest.$ac_ext |
| 26509 | |
| 26510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| 26511 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 26512 | if test "$magick_pthread_lib_ok" = yes |
| 26513 | then |
| 26514 | PTHREAD_LIBS=-lc_r |
| 26515 | : |
| 26516 | else |
| 26517 | |
| 26518 | : |
| 26519 | fi |
| 26520 | |
| 26521 | LIBS="$save_LIBS" |
| 26522 | |
| 26523 | ac_ext=c |
| 26524 | ac_cpp='$CPP $CPPFLAGS' |
| 26525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26528 | |
| 26529 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26530 | esac |
| 26531 | fi |
| 26532 | |
| 26533 | for lib in pthread pthreads; do |
| 26534 | if test "x$PTHREAD_LIBS" = "x"; then |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26535 | |
| 26536 | |
| 26537 | |
| 26538 | ac_ext=c |
| 26539 | ac_cpp='$CPP $CPPFLAGS' |
| 26540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26543 | |
| 26544 | magick_pthread_lib_ok=no |
| 26545 | |
| 26546 | LIB=-l$lib |
| 26547 | save_LIBS="$LIBS" |
| 26548 | LIBS="$LIBS $LIB" |
| 26549 | |
| 26550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5 |
| 26551 | $as_echo_n "checking for the pthreads library $LIB... " >&6; } |
| 26552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26553 | /* end confdefs.h. */ |
| 26554 | #include <pthread.h> |
| 26555 | int |
| 26556 | main () |
| 26557 | { |
| 26558 | pthread_t th; |
| 26559 | pthread_join(th, 0); |
| 26560 | pthread_attr_init(0); |
| 26561 | pthread_cleanup_push(0, 0); |
| 26562 | pthread_create(0,0,0,0); |
| 26563 | pthread_cleanup_pop(0); |
| 26564 | ; |
| 26565 | return 0; |
| 26566 | } |
| 26567 | _ACEOF |
| 26568 | if ac_fn_c_try_link "$LINENO"; then : |
| 26569 | magick_pthread_lib_ok=yes |
| 26570 | fi |
| 26571 | rm -f core conftest.err conftest.$ac_objext \ |
| 26572 | conftest$ac_exeext conftest.$ac_ext |
| 26573 | |
| 26574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5 |
| 26575 | $as_echo "${magick_pthread_lib_ok}" >&6; } |
| 26576 | if test "$magick_pthread_lib_ok" = yes |
| 26577 | then |
| 26578 | PTHREAD_LIBS=-l$lib |
| 26579 | : |
| 26580 | else |
| 26581 | |
| 26582 | : |
| 26583 | fi |
| 26584 | |
| 26585 | LIBS="$save_LIBS" |
| 26586 | |
| 26587 | ac_ext=c |
| 26588 | ac_cpp='$CPP $CPPFLAGS' |
| 26589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 26590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 26591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 26592 | |
| 26593 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26594 | fi |
| 26595 | done |
| 26596 | |
| 26597 | THREAD_LIBS="$PTHREAD_LIBS" |
| 26598 | LIBS="$LIBS $THREAD_LIBS" |
| 26599 | fi |
| 26600 | |
| 26601 | |
| 26602 | # |
| 26603 | # Check for umem. |
| 26604 | # |
| 26605 | have_umem='no' |
| 26606 | UMEM_LIBS='' |
| 26607 | if test "$with_umem" != 'no'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26609 | $as_echo_n "checking for UMEM support ... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 26611 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26612 | failed=0 |
| 26613 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26614 | 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] | 26615 | if test "x$ac_cv_header_umem_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26616 | passed=`expr $passed + 1` |
| 26617 | else |
| 26618 | failed=`expr $failed + 1` |
| 26619 | fi |
| 26620 | |
| 26621 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26622 | { $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] | 26623 | $as_echo_n "checking for umem_alloc in -lumem... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26624 | if ${ac_cv_lib_umem_umem_alloc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26625 | $as_echo_n "(cached) " >&6 |
| 26626 | else |
| 26627 | ac_check_lib_save_LIBS=$LIBS |
| 26628 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26630 | /* end confdefs.h. */ |
| 26631 | |
| 26632 | /* Override any GCC internal prototype to avoid an error. |
| 26633 | Use char because int might match the return type of a GCC |
| 26634 | builtin and then its argument prototype would still apply. */ |
| 26635 | #ifdef __cplusplus |
| 26636 | extern "C" |
| 26637 | #endif |
| 26638 | char umem_alloc (); |
| 26639 | int |
| 26640 | main () |
| 26641 | { |
| 26642 | return umem_alloc (); |
| 26643 | ; |
| 26644 | return 0; |
| 26645 | } |
| 26646 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26647 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26648 | ac_cv_lib_umem_umem_alloc=yes |
| 26649 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26650 | ac_cv_lib_umem_umem_alloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26651 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26652 | rm -f core conftest.err conftest.$ac_objext \ |
| 26653 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26654 | LIBS=$ac_check_lib_save_LIBS |
| 26655 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26656 | { $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] | 26657 | $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26658 | if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26659 | passed=`expr $passed + 1` |
| 26660 | else |
| 26661 | failed=`expr $failed + 1` |
| 26662 | fi |
| 26663 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26664 | { $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] | 26665 | $as_echo_n "checking for umem_free in -lumem... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26666 | if ${ac_cv_lib_umem_umem_free+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26667 | $as_echo_n "(cached) " >&6 |
| 26668 | else |
| 26669 | ac_check_lib_save_LIBS=$LIBS |
| 26670 | LIBS="-lumem $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26672 | /* end confdefs.h. */ |
| 26673 | |
| 26674 | /* Override any GCC internal prototype to avoid an error. |
| 26675 | Use char because int might match the return type of a GCC |
| 26676 | builtin and then its argument prototype would still apply. */ |
| 26677 | #ifdef __cplusplus |
| 26678 | extern "C" |
| 26679 | #endif |
| 26680 | char umem_free (); |
| 26681 | int |
| 26682 | main () |
| 26683 | { |
| 26684 | return umem_free (); |
| 26685 | ; |
| 26686 | return 0; |
| 26687 | } |
| 26688 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26689 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26690 | ac_cv_lib_umem_umem_free=yes |
| 26691 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26692 | ac_cv_lib_umem_umem_free=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26693 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26694 | rm -f core conftest.err conftest.$ac_objext \ |
| 26695 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26696 | LIBS=$ac_check_lib_save_LIBS |
| 26697 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26698 | { $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] | 26699 | $as_echo "$ac_cv_lib_umem_umem_free" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26700 | if test "x$ac_cv_lib_umem_umem_free" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26701 | passed=`expr $passed + 1` |
| 26702 | else |
| 26703 | failed=`expr $failed + 1` |
| 26704 | fi |
| 26705 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26706 | { $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] | 26707 | $as_echo_n "checking if umem memory allocation library is complete... " >&6; } |
| 26708 | if test $passed -gt 0; then |
| 26709 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 26711 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26712 | have_umem='no (failed tests)' |
| 26713 | else |
| 26714 | UMEM_LIBS='-lumem' |
| 26715 | LIBS="$UMEM_LIBS $LIBS" |
| 26716 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26717 | $as_echo "#define HasUMEM 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26718 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26720 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26721 | have_umem='yes' |
| 26722 | fi |
| 26723 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 26725 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26726 | fi |
| 26727 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 26728 | if test "$have_umem" = 'yes'; then |
| 26729 | HasUMEM_TRUE= |
| 26730 | HasUMEM_FALSE='#' |
| 26731 | else |
| 26732 | HasUMEM_TRUE='#' |
| 26733 | HasUMEM_FALSE= |
| 26734 | fi |
| 26735 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26736 | |
| 26737 | |
| 26738 | # |
| 26739 | # Add support for ccmalloc memory debugging library if requested |
| 26740 | # |
| 26741 | have_ccmalloc='no' |
| 26742 | CCMALLOC_LIBS='' |
| 26743 | if test "$enable_ccmalloc" = 'yes'; then |
| 26744 | # Extract the first word of "ccmalloc", so it can be a program name with args. |
| 26745 | set dummy ccmalloc; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26747 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26748 | if ${ac_cv_path_CCMALLOCDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26749 | $as_echo_n "(cached) " >&6 |
| 26750 | else |
| 26751 | case $CCMALLOCDelegate in |
| 26752 | [\\/]* | ?:[\\/]*) |
| 26753 | ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path. |
| 26754 | ;; |
| 26755 | *) |
| 26756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 26757 | for as_dir in $PATH |
| 26758 | do |
| 26759 | IFS=$as_save_IFS |
| 26760 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 26762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26763 | ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26765 | break 2 |
| 26766 | fi |
| 26767 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26768 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26769 | IFS=$as_save_IFS |
| 26770 | |
| 26771 | ;; |
| 26772 | esac |
| 26773 | fi |
| 26774 | CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate |
| 26775 | if test -n "$CCMALLOCDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26777 | $as_echo "$CCMALLOCDelegate" >&6; } |
| 26778 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26780 | $as_echo "no" >&6; } |
| 26781 | fi |
| 26782 | |
| 26783 | |
| 26784 | if test -n "$CCMALLOCDelegate"; then |
| 26785 | eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'` |
| 26786 | OLIBS="$LIBS" |
| 26787 | # Assume that gcc is used with ccmalloc. |
| 26788 | LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26789 | { $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] | 26790 | $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26791 | if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26792 | $as_echo_n "(cached) " >&6 |
| 26793 | else |
| 26794 | ac_check_lib_save_LIBS=$LIBS |
| 26795 | LIBS="-lccmalloc -ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26797 | /* end confdefs.h. */ |
| 26798 | |
| 26799 | /* Override any GCC internal prototype to avoid an error. |
| 26800 | Use char because int might match the return type of a GCC |
| 26801 | builtin and then its argument prototype would still apply. */ |
| 26802 | #ifdef __cplusplus |
| 26803 | extern "C" |
| 26804 | #endif |
| 26805 | char ccmalloc_malloc (); |
| 26806 | int |
| 26807 | main () |
| 26808 | { |
| 26809 | return ccmalloc_malloc (); |
| 26810 | ; |
| 26811 | return 0; |
| 26812 | } |
| 26813 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26814 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26815 | ac_cv_lib_ccmalloc_ccmalloc_malloc=yes |
| 26816 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26817 | ac_cv_lib_ccmalloc_ccmalloc_malloc=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26818 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26819 | rm -f core conftest.err conftest.$ac_objext \ |
| 26820 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26821 | LIBS=$ac_check_lib_save_LIBS |
| 26822 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26823 | { $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] | 26824 | $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26825 | if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26826 | CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl" |
| 26827 | fi |
| 26828 | |
| 26829 | if test -n "$CCMALLOC_LIBS"; then |
| 26830 | LIBS="$OLIBS" |
| 26831 | LIBS="$LIBS $CCMALLOC_LIBS" |
| 26832 | have_ccmalloc='yes' |
| 26833 | else |
| 26834 | LIBS="$OLIBS" |
| 26835 | fi |
| 26836 | fi |
| 26837 | fi |
| 26838 | |
| 26839 | # |
| cristy | 944e51f | 2013-04-16 18:45:02 +0000 | [diff] [blame] | 26840 | # Add support for 'huge pages' if requested |
| 26841 | # |
| 26842 | if test "x$enable_hugepages" != "xno"; then : |
| 26843 | |
| 26844 | |
| 26845 | $as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h |
| 26846 | |
| 26847 | |
| 26848 | fi |
| 26849 | |
| 26850 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26851 | # Add support for efence memory debugging library if requested |
| 26852 | # |
| 26853 | if test "$enable_efence" = 'yes'; then |
| 26854 | EFENCE_LIBS='-lefence' |
| 26855 | LIBS="$EFENCE_LIBS $LIBS" |
| 26856 | fi |
| 26857 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26858 | |
| 26859 | # |
| 26860 | # Check for BZLIB |
| 26861 | # |
| 26862 | |
| 26863 | |
| 26864 | # Check whether --with-bzlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26865 | if test "${with_bzlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26866 | withval=$with_bzlib; with_bzlib=$withval |
| 26867 | else |
| 26868 | with_bzlib='yes' |
| 26869 | fi |
| 26870 | |
| 26871 | |
| 26872 | if test "$with_bzlib" != 'yes'; then |
| 26873 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib " |
| 26874 | fi |
| 26875 | |
| 26876 | have_bzlib='no' |
| 26877 | if test "$with_bzlib" != 'no'; then |
| 26878 | BZLIB_LIBS='' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 26880 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26882 | $as_echo_n "checking for BZLIB... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 26884 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26885 | failed=0 |
| 26886 | passed=0 |
| 26887 | found_libbz=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26888 | 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] | 26889 | if test "x$ac_cv_header_bzlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26890 | passed=`expr $passed + 1` |
| 26891 | else |
| 26892 | failed=`expr $failed + 1` |
| 26893 | fi |
| 26894 | |
| 26895 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26896 | { $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] | 26897 | $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26898 | if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26899 | $as_echo_n "(cached) " >&6 |
| 26900 | else |
| 26901 | ac_check_lib_save_LIBS=$LIBS |
| 26902 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26904 | /* end confdefs.h. */ |
| 26905 | |
| 26906 | /* Override any GCC internal prototype to avoid an error. |
| 26907 | Use char because int might match the return type of a GCC |
| 26908 | builtin and then its argument prototype would still apply. */ |
| 26909 | #ifdef __cplusplus |
| 26910 | extern "C" |
| 26911 | #endif |
| 26912 | char BZ2_bzDecompress (); |
| 26913 | int |
| 26914 | main () |
| 26915 | { |
| 26916 | return BZ2_bzDecompress (); |
| 26917 | ; |
| 26918 | return 0; |
| 26919 | } |
| 26920 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26921 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26922 | ac_cv_lib_bz2_BZ2_bzDecompress=yes |
| 26923 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26924 | ac_cv_lib_bz2_BZ2_bzDecompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26925 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26926 | rm -f core conftest.err conftest.$ac_objext \ |
| 26927 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26928 | LIBS=$ac_check_lib_save_LIBS |
| 26929 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26930 | { $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] | 26931 | $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26932 | if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26933 | found_libbz=`expr $found_libbz + 1` |
| 26934 | fi |
| 26935 | |
| 26936 | if test "$native_win32_build" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26937 | { $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] | 26938 | $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26939 | if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26940 | $as_echo_n "(cached) " >&6 |
| 26941 | else |
| 26942 | ac_check_lib_save_LIBS=$LIBS |
| 26943 | LIBS="-lbz2 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26945 | /* end confdefs.h. */ |
| 26946 | |
| 26947 | /* Override any GCC internal prototype to avoid an error. |
| 26948 | Use char because int might match the return type of a GCC |
| 26949 | builtin and then its argument prototype would still apply. */ |
| 26950 | #ifdef __cplusplus |
| 26951 | extern "C" |
| 26952 | #endif |
| 26953 | char _imp__BZ2_decompress (); |
| 26954 | int |
| 26955 | main () |
| 26956 | { |
| 26957 | return _imp__BZ2_decompress (); |
| 26958 | ; |
| 26959 | return 0; |
| 26960 | } |
| 26961 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26962 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26963 | ac_cv_lib_bz2__imp__BZ2_decompress=yes |
| 26964 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26965 | ac_cv_lib_bz2__imp__BZ2_decompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26966 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26967 | rm -f core conftest.err conftest.$ac_objext \ |
| 26968 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26969 | LIBS=$ac_check_lib_save_LIBS |
| 26970 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26971 | { $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] | 26972 | $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 26973 | if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26974 | found_libbz=`expr $found_libbz + 1` |
| 26975 | fi |
| 26976 | |
| 26977 | fi |
| 26978 | if test $found_libbz -gt 0; then |
| 26979 | passed=`expr $passed + 1` |
| 26980 | else |
| 26981 | failed=`expr $failed + 1` |
| 26982 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26983 | { $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] | 26984 | $as_echo_n "checking if BZLIB package is complete... " >&6; } |
| 26985 | if test $passed -gt 0; then |
| 26986 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 26988 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26989 | have_bzlib='no (failed tests)' |
| 26990 | else |
| 26991 | BZLIB_LIBS='-lbz2' |
| 26992 | LIBS="$BZLIB_LIBS $LIBS" |
| 26993 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 26994 | $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26995 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 26996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 26997 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 26998 | have_bzlib='yes' |
| 26999 | fi |
| 27000 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 27001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 27002 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27003 | fi |
| 27004 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27005 | if test "$have_bzlib" = 'yes'; then |
| 27006 | BZLIB_DELEGATE_TRUE= |
| 27007 | BZLIB_DELEGATE_FALSE='#' |
| 27008 | else |
| 27009 | BZLIB_DELEGATE_TRUE='#' |
| 27010 | BZLIB_DELEGATE_FALSE= |
| 27011 | fi |
| 27012 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27013 | |
| 27014 | |
| 27015 | # |
| 27016 | # Find the X11 include and library directories. |
| 27017 | # |
| 27018 | IPC_LIBS='' |
| 27019 | X11_LIBS='' |
| 27020 | XEXT_LIBS='' |
| 27021 | XT_LIBS='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27023 | $as_echo_n "checking for X... " >&6; } |
| 27024 | |
| 27025 | |
| 27026 | # Check whether --with-x was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27027 | if test "${with_x+set}" = set; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27028 | withval=$with_x; |
| 27029 | fi |
| 27030 | |
| 27031 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 27032 | if test "x$with_x" = xno; then |
| 27033 | # The user explicitly disabled X. |
| 27034 | have_x=disabled |
| 27035 | else |
| 27036 | case $x_includes,$x_libraries in #( |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 27037 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27038 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27039 | $as_echo_n "(cached) " >&6 |
| 27040 | else |
| 27041 | # One or both of the vars are not set, and there is no cached value. |
| 27042 | ac_x_includes=no ac_x_libraries=no |
| 27043 | rm -f -r conftest.dir |
| 27044 | if mkdir conftest.dir; then |
| 27045 | cd conftest.dir |
| 27046 | cat >Imakefile <<'_ACEOF' |
| 27047 | incroot: |
| 27048 | @echo incroot='${INCROOT}' |
| 27049 | usrlibdir: |
| 27050 | @echo usrlibdir='${USRLIBDIR}' |
| 27051 | libdir: |
| 27052 | @echo libdir='${LIBDIR}' |
| 27053 | _ACEOF |
| 27054 | 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] | 27055 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27056 | for ac_var in incroot usrlibdir libdir; do |
| 27057 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 27058 | done |
| 27059 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 27060 | for ac_extension in a so sl dylib la dll; do |
| 27061 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 27062 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 27063 | ac_im_usrlibdir=$ac_im_libdir; break |
| 27064 | fi |
| 27065 | done |
| 27066 | # Screen out bogus values from the imake configuration. They are |
| 27067 | # bogus both because they are the default anyway, and because |
| 27068 | # using them would break gcc on systems where it needs fixed includes. |
| 27069 | case $ac_im_incroot in |
| 27070 | /usr/include) ac_x_includes= ;; |
| 27071 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 27072 | esac |
| 27073 | case $ac_im_usrlibdir in |
| 27074 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 27075 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 27076 | esac |
| 27077 | fi |
| 27078 | cd .. |
| 27079 | rm -f -r conftest.dir |
| 27080 | fi |
| 27081 | |
| 27082 | # Standard set of common directories for X headers. |
| 27083 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 27084 | ac_x_header_dirs=' |
| 27085 | /usr/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27086 | /usr/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27087 | /usr/X11R6/include |
| 27088 | /usr/X11R5/include |
| 27089 | /usr/X11R4/include |
| 27090 | |
| 27091 | /usr/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27092 | /usr/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27093 | /usr/include/X11R6 |
| 27094 | /usr/include/X11R5 |
| 27095 | /usr/include/X11R4 |
| 27096 | |
| 27097 | /usr/local/X11/include |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27098 | /usr/local/X11R7/include |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27099 | /usr/local/X11R6/include |
| 27100 | /usr/local/X11R5/include |
| 27101 | /usr/local/X11R4/include |
| 27102 | |
| 27103 | /usr/local/include/X11 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27104 | /usr/local/include/X11R7 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27105 | /usr/local/include/X11R6 |
| 27106 | /usr/local/include/X11R5 |
| 27107 | /usr/local/include/X11R4 |
| 27108 | |
| 27109 | /usr/X386/include |
| 27110 | /usr/x386/include |
| 27111 | /usr/XFree86/include/X11 |
| 27112 | |
| 27113 | /usr/include |
| 27114 | /usr/local/include |
| 27115 | /usr/unsupported/include |
| 27116 | /usr/athena/include |
| 27117 | /usr/local/x11r5/include |
| 27118 | /usr/lpp/Xamples/include |
| 27119 | |
| 27120 | /usr/openwin/include |
| 27121 | /usr/openwin/share/include' |
| 27122 | |
| 27123 | if test "$ac_x_includes" = no; then |
| 27124 | # Guess where to find include files, by looking for Xlib.h. |
| 27125 | # First, try using that file with no special directory specified. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27127 | /* end confdefs.h. */ |
| 27128 | #include <X11/Xlib.h> |
| 27129 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27130 | if ac_fn_c_try_cpp "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27131 | # We can compile using X headers with no special include directory. |
| 27132 | ac_x_includes= |
| 27133 | else |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27134 | for ac_dir in $ac_x_header_dirs; do |
| 27135 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 27136 | ac_x_includes=$ac_dir |
| 27137 | break |
| 27138 | fi |
| 27139 | done |
| 27140 | fi |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27141 | rm -f conftest.err conftest.i conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27142 | fi # $ac_x_includes = no |
| 27143 | |
| 27144 | if test "$ac_x_libraries" = no; then |
| 27145 | # Check for the libraries. |
| 27146 | # See if we find them without any special options. |
| 27147 | # Don't add to $LIBS permanently. |
| 27148 | ac_save_LIBS=$LIBS |
| 27149 | LIBS="-lX11 $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27151 | /* end confdefs.h. */ |
| 27152 | #include <X11/Xlib.h> |
| 27153 | int |
| 27154 | main () |
| 27155 | { |
| 27156 | XrmInitialize () |
| 27157 | ; |
| 27158 | return 0; |
| 27159 | } |
| 27160 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27161 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27162 | LIBS=$ac_save_LIBS |
| 27163 | # We can link X programs with no special library path. |
| 27164 | ac_x_libraries= |
| 27165 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27166 | LIBS=$ac_save_LIBS |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27167 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 27168 | do |
| 27169 | # Don't even attempt the hair of trying to link an X program! |
| 27170 | for ac_extension in a so sl dylib la dll; do |
| 27171 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 27172 | ac_x_libraries=$ac_dir |
| 27173 | break 2 |
| 27174 | fi |
| 27175 | done |
| 27176 | done |
| 27177 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27178 | rm -f core conftest.err conftest.$ac_objext \ |
| 27179 | conftest$ac_exeext conftest.$ac_ext |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27180 | fi # $ac_x_libraries = no |
| 27181 | |
| 27182 | case $ac_x_includes,$ac_x_libraries in #( |
| 27183 | no,* | *,no | *\'*) |
| 27184 | # Didn't find X, or a directory has "'" in its name. |
| 27185 | ac_cv_have_x="have_x=no";; #( |
| 27186 | *) |
| 27187 | # Record where we found X for the cache. |
| 27188 | ac_cv_have_x="have_x=yes\ |
| 27189 | ac_x_includes='$ac_x_includes'\ |
| 27190 | ac_x_libraries='$ac_x_libraries'" |
| 27191 | esac |
| 27192 | fi |
| 27193 | ;; #( |
| 27194 | *) have_x=yes;; |
| 27195 | esac |
| 27196 | eval "$ac_cv_have_x" |
| 27197 | fi # $with_x != no |
| 27198 | |
| 27199 | if test "$have_x" != yes; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| cristy | c7083c1 | 2009-10-14 03:16:55 +0000 | [diff] [blame] | 27201 | $as_echo "$have_x" >&6; } |
| 27202 | no_x=yes |
| 27203 | else |
| 27204 | # If each of the values was on the command line, it overrides each guess. |
| 27205 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 27206 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 27207 | # Update the cache value to reflect the command line values. |
| 27208 | ac_cv_have_x="have_x=yes\ |
| 27209 | ac_x_includes='$x_includes'\ |
| 27210 | ac_x_libraries='$x_libraries'" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27211 | { $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] | 27212 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 27213 | fi |
| 27214 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27215 | if test "$no_x" = yes; then |
| 27216 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 27217 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27218 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27219 | |
| 27220 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 27221 | else |
| 27222 | if test -n "$x_includes"; then |
| 27223 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 27224 | fi |
| 27225 | |
| 27226 | # It would also be nice to do this for all -L options, not just this one. |
| 27227 | if test -n "$x_libraries"; then |
| 27228 | X_LIBS="$X_LIBS -L$x_libraries" |
| 27229 | # For Solaris; some versions of Sun CC require a space after -R and |
| 27230 | # others require no space. Words are not sufficient . . . . |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27231 | { $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] | 27232 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } |
| 27233 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 27234 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
| 27235 | ac_c_werror_flag=yes |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27237 | /* end confdefs.h. */ |
| 27238 | |
| 27239 | int |
| 27240 | main () |
| 27241 | { |
| 27242 | |
| 27243 | ; |
| 27244 | return 0; |
| 27245 | } |
| 27246 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27247 | if ac_fn_c_try_link "$LINENO"; then : |
| 27248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27249 | $as_echo "no" >&6; } |
| 27250 | X_LIBS="$X_LIBS -R$x_libraries" |
| 27251 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27252 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 27253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27254 | /* end confdefs.h. */ |
| 27255 | |
| 27256 | int |
| 27257 | main () |
| 27258 | { |
| 27259 | |
| 27260 | ; |
| 27261 | return 0; |
| 27262 | } |
| 27263 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27264 | if ac_fn_c_try_link "$LINENO"; then : |
| 27265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27266 | $as_echo "yes" >&6; } |
| 27267 | X_LIBS="$X_LIBS -R $x_libraries" |
| 27268 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27270 | $as_echo "neither works" >&6; } |
| 27271 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27272 | rm -f core conftest.err conftest.$ac_objext \ |
| 27273 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27274 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27275 | rm -f core conftest.err conftest.$ac_objext \ |
| 27276 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27277 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
| 27278 | LIBS=$ac_xsave_LIBS |
| 27279 | fi |
| 27280 | |
| 27281 | # Check for system-dependent libraries X programs must link with. |
| 27282 | # Do this before checking for the system-independent R6 libraries |
| 27283 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 27284 | |
| 27285 | if test "$ISC" = yes; then |
| 27286 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 27287 | else |
| 27288 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 27289 | # libraries were built with DECnet support. And Karl Berry says |
| 27290 | # the Alpha needs dnet_stub (dnet does not exist). |
| 27291 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27293 | /* end confdefs.h. */ |
| 27294 | |
| 27295 | /* Override any GCC internal prototype to avoid an error. |
| 27296 | Use char because int might match the return type of a GCC |
| 27297 | builtin and then its argument prototype would still apply. */ |
| 27298 | #ifdef __cplusplus |
| 27299 | extern "C" |
| 27300 | #endif |
| 27301 | char XOpenDisplay (); |
| 27302 | int |
| 27303 | main () |
| 27304 | { |
| 27305 | return XOpenDisplay (); |
| 27306 | ; |
| 27307 | return 0; |
| 27308 | } |
| 27309 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27310 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27311 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27312 | else |
| 27313 | { $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] | 27314 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27315 | if ${ac_cv_lib_dnet_dnet_ntoa+:} 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="-ldnet $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 dnet_ntoa (); |
| 27330 | int |
| 27331 | main () |
| 27332 | { |
| 27333 | return dnet_ntoa (); |
| 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_dnet_dnet_ntoa=yes |
| 27340 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27341 | ac_cv_lib_dnet_dnet_ntoa=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_dnet_dnet_ntoa" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27348 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27349 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27350 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 27351 | fi |
| 27352 | |
| 27353 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27354 | { $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] | 27355 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27356 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27357 | $as_echo_n "(cached) " >&6 |
| 27358 | else |
| 27359 | ac_check_lib_save_LIBS=$LIBS |
| 27360 | LIBS="-ldnet_stub $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27362 | /* end confdefs.h. */ |
| 27363 | |
| 27364 | /* Override any GCC internal prototype to avoid an error. |
| 27365 | Use char because int might match the return type of a GCC |
| 27366 | builtin and then its argument prototype would still apply. */ |
| 27367 | #ifdef __cplusplus |
| 27368 | extern "C" |
| 27369 | #endif |
| 27370 | char dnet_ntoa (); |
| 27371 | int |
| 27372 | main () |
| 27373 | { |
| 27374 | return dnet_ntoa (); |
| 27375 | ; |
| 27376 | return 0; |
| 27377 | } |
| 27378 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27379 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27380 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 27381 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27382 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27383 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27384 | rm -f core conftest.err conftest.$ac_objext \ |
| 27385 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27386 | LIBS=$ac_check_lib_save_LIBS |
| 27387 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27388 | { $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] | 27389 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27390 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27391 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 27392 | fi |
| 27393 | |
| 27394 | fi |
| 27395 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27396 | rm -f core conftest.err conftest.$ac_objext \ |
| 27397 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27398 | LIBS="$ac_xsave_LIBS" |
| 27399 | |
| 27400 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 27401 | # to get the SysV transport functions. |
| 27402 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 27403 | # needs -lnsl. |
| 27404 | # The nsl library prevents programs from opening the X display |
| 27405 | # on Irix 5.2, according to T.E. Dickey. |
| 27406 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 27407 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27408 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27409 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27410 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27411 | fi |
| 27412 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27413 | if test $ac_cv_func_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27415 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27416 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27417 | $as_echo_n "(cached) " >&6 |
| 27418 | else |
| 27419 | ac_check_lib_save_LIBS=$LIBS |
| 27420 | LIBS="-lnsl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27422 | /* end confdefs.h. */ |
| 27423 | |
| 27424 | /* Override any GCC internal prototype to avoid an error. |
| 27425 | Use char because int might match the return type of a GCC |
| 27426 | builtin and then its argument prototype would still apply. */ |
| 27427 | #ifdef __cplusplus |
| 27428 | extern "C" |
| 27429 | #endif |
| 27430 | char gethostbyname (); |
| 27431 | int |
| 27432 | main () |
| 27433 | { |
| 27434 | return gethostbyname (); |
| 27435 | ; |
| 27436 | return 0; |
| 27437 | } |
| 27438 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27439 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27440 | ac_cv_lib_nsl_gethostbyname=yes |
| 27441 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27442 | ac_cv_lib_nsl_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27443 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27444 | rm -f core conftest.err conftest.$ac_objext \ |
| 27445 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27446 | LIBS=$ac_check_lib_save_LIBS |
| 27447 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27448 | { $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] | 27449 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27450 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27451 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 27452 | fi |
| 27453 | |
| 27454 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27456 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27457 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27458 | $as_echo_n "(cached) " >&6 |
| 27459 | else |
| 27460 | ac_check_lib_save_LIBS=$LIBS |
| 27461 | LIBS="-lbsd $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27463 | /* end confdefs.h. */ |
| 27464 | |
| 27465 | /* Override any GCC internal prototype to avoid an error. |
| 27466 | Use char because int might match the return type of a GCC |
| 27467 | builtin and then its argument prototype would still apply. */ |
| 27468 | #ifdef __cplusplus |
| 27469 | extern "C" |
| 27470 | #endif |
| 27471 | char gethostbyname (); |
| 27472 | int |
| 27473 | main () |
| 27474 | { |
| 27475 | return gethostbyname (); |
| 27476 | ; |
| 27477 | return 0; |
| 27478 | } |
| 27479 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27480 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27481 | ac_cv_lib_bsd_gethostbyname=yes |
| 27482 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27483 | ac_cv_lib_bsd_gethostbyname=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27484 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27485 | rm -f core conftest.err conftest.$ac_objext \ |
| 27486 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27487 | LIBS=$ac_check_lib_save_LIBS |
| 27488 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27489 | { $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] | 27490 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27491 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27492 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 27493 | fi |
| 27494 | |
| 27495 | fi |
| 27496 | fi |
| 27497 | |
| 27498 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 27499 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 27500 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 27501 | # on later versions), says Simon Leinen: it contains gethostby* |
| 27502 | # variants that don't use the name server (or something). -lsocket |
| 27503 | # must be given before -lnsl if both are needed. We assume that |
| 27504 | # if connect needs -lnsl, so does gethostbyname. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27505 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27506 | if test "x$ac_cv_func_connect" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27507 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27508 | fi |
| 27509 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27510 | if test $ac_cv_func_connect = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27512 | $as_echo_n "checking for connect in -lsocket... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27513 | if ${ac_cv_lib_socket_connect+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27514 | $as_echo_n "(cached) " >&6 |
| 27515 | else |
| 27516 | ac_check_lib_save_LIBS=$LIBS |
| 27517 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27519 | /* end confdefs.h. */ |
| 27520 | |
| 27521 | /* Override any GCC internal prototype to avoid an error. |
| 27522 | Use char because int might match the return type of a GCC |
| 27523 | builtin and then its argument prototype would still apply. */ |
| 27524 | #ifdef __cplusplus |
| 27525 | extern "C" |
| 27526 | #endif |
| 27527 | char connect (); |
| 27528 | int |
| 27529 | main () |
| 27530 | { |
| 27531 | return connect (); |
| 27532 | ; |
| 27533 | return 0; |
| 27534 | } |
| 27535 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27536 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27537 | ac_cv_lib_socket_connect=yes |
| 27538 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27539 | ac_cv_lib_socket_connect=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27540 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27541 | rm -f core conftest.err conftest.$ac_objext \ |
| 27542 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27543 | LIBS=$ac_check_lib_save_LIBS |
| 27544 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27545 | { $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] | 27546 | $as_echo "$ac_cv_lib_socket_connect" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27547 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27548 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 27549 | fi |
| 27550 | |
| 27551 | fi |
| 27552 | |
| 27553 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27554 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27555 | if test "x$ac_cv_func_remove" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27556 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27557 | fi |
| 27558 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27559 | if test $ac_cv_func_remove = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27561 | $as_echo_n "checking for remove in -lposix... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27562 | if ${ac_cv_lib_posix_remove+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27563 | $as_echo_n "(cached) " >&6 |
| 27564 | else |
| 27565 | ac_check_lib_save_LIBS=$LIBS |
| 27566 | LIBS="-lposix $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27568 | /* end confdefs.h. */ |
| 27569 | |
| 27570 | /* Override any GCC internal prototype to avoid an error. |
| 27571 | Use char because int might match the return type of a GCC |
| 27572 | builtin and then its argument prototype would still apply. */ |
| 27573 | #ifdef __cplusplus |
| 27574 | extern "C" |
| 27575 | #endif |
| 27576 | char remove (); |
| 27577 | int |
| 27578 | main () |
| 27579 | { |
| 27580 | return remove (); |
| 27581 | ; |
| 27582 | return 0; |
| 27583 | } |
| 27584 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27585 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27586 | ac_cv_lib_posix_remove=yes |
| 27587 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27588 | ac_cv_lib_posix_remove=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27589 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27590 | rm -f core conftest.err conftest.$ac_objext \ |
| 27591 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27592 | LIBS=$ac_check_lib_save_LIBS |
| 27593 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27594 | { $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] | 27595 | $as_echo "$ac_cv_lib_posix_remove" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27596 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27597 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 27598 | fi |
| 27599 | |
| 27600 | fi |
| 27601 | |
| 27602 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27603 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27604 | if test "x$ac_cv_func_shmat" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27605 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27606 | fi |
| 27607 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27608 | if test $ac_cv_func_shmat = no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27610 | $as_echo_n "checking for shmat in -lipc... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27611 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27612 | $as_echo_n "(cached) " >&6 |
| 27613 | else |
| 27614 | ac_check_lib_save_LIBS=$LIBS |
| 27615 | LIBS="-lipc $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27617 | /* end confdefs.h. */ |
| 27618 | |
| 27619 | /* Override any GCC internal prototype to avoid an error. |
| 27620 | Use char because int might match the return type of a GCC |
| 27621 | builtin and then its argument prototype would still apply. */ |
| 27622 | #ifdef __cplusplus |
| 27623 | extern "C" |
| 27624 | #endif |
| 27625 | char shmat (); |
| 27626 | int |
| 27627 | main () |
| 27628 | { |
| 27629 | return shmat (); |
| 27630 | ; |
| 27631 | return 0; |
| 27632 | } |
| 27633 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27634 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27635 | ac_cv_lib_ipc_shmat=yes |
| 27636 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27637 | ac_cv_lib_ipc_shmat=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27638 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27639 | rm -f core conftest.err conftest.$ac_objext \ |
| 27640 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27641 | LIBS=$ac_check_lib_save_LIBS |
| 27642 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27643 | { $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] | 27644 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27645 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27646 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 27647 | fi |
| 27648 | |
| 27649 | fi |
| 27650 | fi |
| 27651 | |
| 27652 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 27653 | ac_save_LDFLAGS=$LDFLAGS |
| 27654 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 27655 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 27656 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 27657 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 27658 | # These have to be linked with before -lX11, unlike the other |
| 27659 | # libraries we check for below, so use a different variable. |
| 27660 | # John Interrante, Karl Berry |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27662 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27663 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27664 | $as_echo_n "(cached) " >&6 |
| 27665 | else |
| 27666 | ac_check_lib_save_LIBS=$LIBS |
| 27667 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27669 | /* end confdefs.h. */ |
| 27670 | |
| 27671 | /* Override any GCC internal prototype to avoid an error. |
| 27672 | Use char because int might match the return type of a GCC |
| 27673 | builtin and then its argument prototype would still apply. */ |
| 27674 | #ifdef __cplusplus |
| 27675 | extern "C" |
| 27676 | #endif |
| 27677 | char IceConnectionNumber (); |
| 27678 | int |
| 27679 | main () |
| 27680 | { |
| 27681 | return IceConnectionNumber (); |
| 27682 | ; |
| 27683 | return 0; |
| 27684 | } |
| 27685 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27686 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27687 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 27688 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27689 | ac_cv_lib_ICE_IceConnectionNumber=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27690 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27691 | rm -f core conftest.err conftest.$ac_objext \ |
| 27692 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27693 | LIBS=$ac_check_lib_save_LIBS |
| 27694 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27695 | { $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] | 27696 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27697 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27698 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 27699 | fi |
| 27700 | |
| 27701 | LDFLAGS=$ac_save_LDFLAGS |
| 27702 | |
| 27703 | fi |
| 27704 | |
| 27705 | if test "$no_x" != 'yes'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 27706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 27707 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27709 | $as_echo_n "checking for X11... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 27710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 27711 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27712 | LDFLAGS="$LDFLAGS $X_LIBS" |
| 27713 | X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" |
| 27714 | LIBS="$X11_LIBS $LIBS" |
| 27715 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 27716 | |
| 27717 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27718 | $as_echo "#define X11_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27719 | |
| 27720 | # |
| 27721 | # Check for X11 shared memory extension |
| 27722 | # |
| 27723 | # shmctl is required to support the shared memory extension |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27724 | ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27725 | if test "x$ac_cv_func_shmctl" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27726 | have_shmctl='yes' |
| 27727 | fi |
| 27728 | |
| 27729 | if test "$have_shmctl" != 'yes'; then |
| 27730 | PERSIST_LIBS=$LIBS |
| 27731 | LIBS="$LIBS -lcygipc" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27733 | /* end confdefs.h. */ |
| 27734 | |
| 27735 | /* Override any GCC internal prototype to avoid an error. |
| 27736 | Use char because int might match the return type of a GCC |
| 27737 | builtin and then its argument prototype would still apply. */ |
| 27738 | #ifdef __cplusplus |
| 27739 | extern "C" |
| 27740 | #endif |
| 27741 | char shmctl (); |
| 27742 | int |
| 27743 | main () |
| 27744 | { |
| 27745 | return shmctl (); |
| 27746 | ; |
| 27747 | return 0; |
| 27748 | } |
| 27749 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27750 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27751 | have_shmctl='yes'; IPC_LIBS='-lcygipc' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27752 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27753 | rm -f core conftest.err conftest.$ac_objext \ |
| 27754 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27755 | LIBS=$PERSIST_LIBS |
| 27756 | fi |
| 27757 | |
| 27758 | if test "$have_shmctl" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27760 | $as_echo_n "checking for XShmAttach in -lXext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27761 | if ${ac_cv_lib_Xext_XShmAttach+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27762 | $as_echo_n "(cached) " >&6 |
| 27763 | else |
| 27764 | ac_check_lib_save_LIBS=$LIBS |
| 27765 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27767 | /* end confdefs.h. */ |
| 27768 | |
| 27769 | /* Override any GCC internal prototype to avoid an error. |
| 27770 | Use char because int might match the return type of a GCC |
| 27771 | builtin and then its argument prototype would still apply. */ |
| 27772 | #ifdef __cplusplus |
| 27773 | extern "C" |
| 27774 | #endif |
| 27775 | char XShmAttach (); |
| 27776 | int |
| 27777 | main () |
| 27778 | { |
| 27779 | return XShmAttach (); |
| 27780 | ; |
| 27781 | return 0; |
| 27782 | } |
| 27783 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27784 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27785 | ac_cv_lib_Xext_XShmAttach=yes |
| 27786 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27787 | ac_cv_lib_Xext_XShmAttach=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27788 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27789 | rm -f core conftest.err conftest.$ac_objext \ |
| 27790 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27791 | LIBS=$ac_check_lib_save_LIBS |
| 27792 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27793 | { $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] | 27794 | $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27795 | if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27796 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27797 | $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27798 | |
| 27799 | fi |
| 27800 | |
| 27801 | fi |
| 27802 | |
| 27803 | # |
| 27804 | # Check for X11 shape extension |
| 27805 | # |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27807 | $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27808 | if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27809 | $as_echo_n "(cached) " >&6 |
| 27810 | else |
| 27811 | ac_check_lib_save_LIBS=$LIBS |
| 27812 | LIBS="-lXext $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27814 | /* end confdefs.h. */ |
| 27815 | |
| 27816 | /* Override any GCC internal prototype to avoid an error. |
| 27817 | Use char because int might match the return type of a GCC |
| 27818 | builtin and then its argument prototype would still apply. */ |
| 27819 | #ifdef __cplusplus |
| 27820 | extern "C" |
| 27821 | #endif |
| 27822 | char XShapeCombineMask (); |
| 27823 | int |
| 27824 | main () |
| 27825 | { |
| 27826 | return XShapeCombineMask (); |
| 27827 | ; |
| 27828 | return 0; |
| 27829 | } |
| 27830 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27831 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27832 | ac_cv_lib_Xext_XShapeCombineMask=yes |
| 27833 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27834 | ac_cv_lib_Xext_XShapeCombineMask=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27835 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27836 | rm -f core conftest.err conftest.$ac_objext \ |
| 27837 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27838 | LIBS=$ac_check_lib_save_LIBS |
| 27839 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27840 | { $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] | 27841 | $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27842 | if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27843 | XEXT_LIBS='-lXext' ; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27844 | $as_echo "#define HAVE_SHAPE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27845 | |
| 27846 | fi |
| 27847 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27849 | $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27850 | if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27851 | $as_echo_n "(cached) " >&6 |
| 27852 | else |
| 27853 | ac_check_lib_save_LIBS=$LIBS |
| 27854 | LIBS="-lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27856 | /* end confdefs.h. */ |
| 27857 | |
| 27858 | /* Override any GCC internal prototype to avoid an error. |
| 27859 | Use char because int might match the return type of a GCC |
| 27860 | builtin and then its argument prototype would still apply. */ |
| 27861 | #ifdef __cplusplus |
| 27862 | extern "C" |
| 27863 | #endif |
| 27864 | char XtSetEventDispatcher (); |
| 27865 | int |
| 27866 | main () |
| 27867 | { |
| 27868 | return XtSetEventDispatcher (); |
| 27869 | ; |
| 27870 | return 0; |
| 27871 | } |
| 27872 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27873 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27874 | ac_cv_lib_Xt_XtSetEventDispatcher=yes |
| 27875 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27876 | ac_cv_lib_Xt_XtSetEventDispatcher=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27877 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27878 | rm -f core conftest.err conftest.$ac_objext \ |
| 27879 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27880 | LIBS=$ac_check_lib_save_LIBS |
| 27881 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27882 | { $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] | 27883 | $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27884 | if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27885 | XT_LIBS='-lXt' |
| 27886 | fi |
| 27887 | |
| 27888 | LIBS="$XEXT_LIBS $XT_LIBS $LIBS" |
| 27889 | fi |
| 27890 | if test "$no_x" != 'yes'; then |
| 27891 | have_x='yes' |
| 27892 | else |
| 27893 | have_x='no' |
| 27894 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 27895 | if test "$have_x" = 'yes'; then |
| 27896 | X11_DELEGATE_TRUE= |
| 27897 | X11_DELEGATE_FALSE='#' |
| 27898 | else |
| 27899 | X11_DELEGATE_TRUE='#' |
| 27900 | X11_DELEGATE_FALSE= |
| 27901 | fi |
| 27902 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27903 | |
| 27904 | |
| 27905 | |
| 27906 | |
| 27907 | # |
| 27908 | # Check for ZLIB |
| 27909 | # |
| 27910 | |
| 27911 | # Check whether --with-zlib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27912 | if test "${with_zlib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27913 | withval=$with_zlib; with_zlib=$withval |
| 27914 | else |
| 27915 | with_zlib='yes' |
| 27916 | fi |
| 27917 | |
| 27918 | |
| 27919 | if test "$with_zlib" != 'yes'; then |
| 27920 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib " |
| 27921 | fi |
| 27922 | |
| 27923 | have_zlib='no' |
| 27924 | ZLIB_LIBS='' |
| 27925 | if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 27926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 27927 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27929 | $as_echo_n "checking for ZLIB... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 27930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 27931 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27932 | ZLIB_LIBS='' |
| 27933 | failed=0 |
| 27934 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27935 | 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] | 27936 | if test "x$ac_cv_header_zconf_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27937 | passed=`expr $passed + 1` |
| 27938 | else |
| 27939 | failed=`expr $failed + 1` |
| 27940 | fi |
| 27941 | |
| 27942 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27943 | 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] | 27944 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27945 | passed=`expr $passed + 1` |
| 27946 | else |
| 27947 | failed=`expr $failed + 1` |
| 27948 | fi |
| 27949 | |
| 27950 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27952 | $as_echo_n "checking for compress in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27953 | if ${ac_cv_lib_z_compress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27954 | $as_echo_n "(cached) " >&6 |
| 27955 | else |
| 27956 | ac_check_lib_save_LIBS=$LIBS |
| 27957 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27959 | /* end confdefs.h. */ |
| 27960 | |
| 27961 | /* Override any GCC internal prototype to avoid an error. |
| 27962 | Use char because int might match the return type of a GCC |
| 27963 | builtin and then its argument prototype would still apply. */ |
| 27964 | #ifdef __cplusplus |
| 27965 | extern "C" |
| 27966 | #endif |
| 27967 | char compress (); |
| 27968 | int |
| 27969 | main () |
| 27970 | { |
| 27971 | return compress (); |
| 27972 | ; |
| 27973 | return 0; |
| 27974 | } |
| 27975 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27976 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27977 | ac_cv_lib_z_compress=yes |
| 27978 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27979 | ac_cv_lib_z_compress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27980 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27981 | rm -f core conftest.err conftest.$ac_objext \ |
| 27982 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27983 | LIBS=$ac_check_lib_save_LIBS |
| 27984 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27985 | { $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] | 27986 | $as_echo "$ac_cv_lib_z_compress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27987 | if test "x$ac_cv_lib_z_compress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27988 | passed=`expr $passed + 1` |
| 27989 | else |
| 27990 | failed=`expr $failed + 1` |
| 27991 | fi |
| 27992 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 27993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27994 | $as_echo_n "checking for uncompress in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 27995 | if ${ac_cv_lib_z_uncompress+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 27996 | $as_echo_n "(cached) " >&6 |
| 27997 | else |
| 27998 | ac_check_lib_save_LIBS=$LIBS |
| 27999 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28001 | /* end confdefs.h. */ |
| 28002 | |
| 28003 | /* Override any GCC internal prototype to avoid an error. |
| 28004 | Use char because int might match the return type of a GCC |
| 28005 | builtin and then its argument prototype would still apply. */ |
| 28006 | #ifdef __cplusplus |
| 28007 | extern "C" |
| 28008 | #endif |
| 28009 | char uncompress (); |
| 28010 | int |
| 28011 | main () |
| 28012 | { |
| 28013 | return uncompress (); |
| 28014 | ; |
| 28015 | return 0; |
| 28016 | } |
| 28017 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28018 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28019 | ac_cv_lib_z_uncompress=yes |
| 28020 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28021 | ac_cv_lib_z_uncompress=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28022 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28023 | rm -f core conftest.err conftest.$ac_objext \ |
| 28024 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28025 | LIBS=$ac_check_lib_save_LIBS |
| 28026 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28027 | { $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] | 28028 | $as_echo "$ac_cv_lib_z_uncompress" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28029 | if test "x$ac_cv_lib_z_uncompress" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28030 | passed=`expr $passed + 1` |
| 28031 | else |
| 28032 | failed=`expr $failed + 1` |
| 28033 | fi |
| 28034 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28036 | $as_echo_n "checking for deflate in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28037 | if ${ac_cv_lib_z_deflate+:} 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="-lz $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 deflate (); |
| 28052 | int |
| 28053 | main () |
| 28054 | { |
| 28055 | return deflate (); |
| 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_z_deflate=yes |
| 28062 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28063 | ac_cv_lib_z_deflate=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_z_deflate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28070 | $as_echo "$ac_cv_lib_z_deflate" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28071 | if test "x$ac_cv_lib_z_deflate" = 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 |
| 28076 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28078 | $as_echo_n "checking for inflate in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28079 | if ${ac_cv_lib_z_inflate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28080 | $as_echo_n "(cached) " >&6 |
| 28081 | else |
| 28082 | ac_check_lib_save_LIBS=$LIBS |
| 28083 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28085 | /* end confdefs.h. */ |
| 28086 | |
| 28087 | /* Override any GCC internal prototype to avoid an error. |
| 28088 | Use char because int might match the return type of a GCC |
| 28089 | builtin and then its argument prototype would still apply. */ |
| 28090 | #ifdef __cplusplus |
| 28091 | extern "C" |
| 28092 | #endif |
| 28093 | char inflate (); |
| 28094 | int |
| 28095 | main () |
| 28096 | { |
| 28097 | return inflate (); |
| 28098 | ; |
| 28099 | return 0; |
| 28100 | } |
| 28101 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28102 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28103 | ac_cv_lib_z_inflate=yes |
| 28104 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28105 | ac_cv_lib_z_inflate=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28106 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28107 | rm -f core conftest.err conftest.$ac_objext \ |
| 28108 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28109 | LIBS=$ac_check_lib_save_LIBS |
| 28110 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28111 | { $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] | 28112 | $as_echo "$ac_cv_lib_z_inflate" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28113 | if test "x$ac_cv_lib_z_inflate" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28114 | passed=`expr $passed + 1` |
| 28115 | else |
| 28116 | failed=`expr $failed + 1` |
| 28117 | fi |
| 28118 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28120 | $as_echo_n "checking for gzseek in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28121 | if ${ac_cv_lib_z_gzseek+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28122 | $as_echo_n "(cached) " >&6 |
| 28123 | else |
| 28124 | ac_check_lib_save_LIBS=$LIBS |
| 28125 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28127 | /* end confdefs.h. */ |
| 28128 | |
| 28129 | /* Override any GCC internal prototype to avoid an error. |
| 28130 | Use char because int might match the return type of a GCC |
| 28131 | builtin and then its argument prototype would still apply. */ |
| 28132 | #ifdef __cplusplus |
| 28133 | extern "C" |
| 28134 | #endif |
| 28135 | char gzseek (); |
| 28136 | int |
| 28137 | main () |
| 28138 | { |
| 28139 | return gzseek (); |
| 28140 | ; |
| 28141 | return 0; |
| 28142 | } |
| 28143 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28144 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28145 | ac_cv_lib_z_gzseek=yes |
| 28146 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28147 | ac_cv_lib_z_gzseek=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28148 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28149 | rm -f core conftest.err conftest.$ac_objext \ |
| 28150 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28151 | LIBS=$ac_check_lib_save_LIBS |
| 28152 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28153 | { $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] | 28154 | $as_echo "$ac_cv_lib_z_gzseek" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28155 | if test "x$ac_cv_lib_z_gzseek" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28156 | passed=`expr $passed + 1` |
| 28157 | else |
| 28158 | failed=`expr $failed + 1` |
| 28159 | fi |
| 28160 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28162 | $as_echo_n "checking for gztell in -lz... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28163 | if ${ac_cv_lib_z_gztell+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28164 | $as_echo_n "(cached) " >&6 |
| 28165 | else |
| 28166 | ac_check_lib_save_LIBS=$LIBS |
| 28167 | LIBS="-lz $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28169 | /* end confdefs.h. */ |
| 28170 | |
| 28171 | /* Override any GCC internal prototype to avoid an error. |
| 28172 | Use char because int might match the return type of a GCC |
| 28173 | builtin and then its argument prototype would still apply. */ |
| 28174 | #ifdef __cplusplus |
| 28175 | extern "C" |
| 28176 | #endif |
| 28177 | char gztell (); |
| 28178 | int |
| 28179 | main () |
| 28180 | { |
| 28181 | return gztell (); |
| 28182 | ; |
| 28183 | return 0; |
| 28184 | } |
| 28185 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28186 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28187 | ac_cv_lib_z_gztell=yes |
| 28188 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28189 | ac_cv_lib_z_gztell=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28190 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28191 | rm -f core conftest.err conftest.$ac_objext \ |
| 28192 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28193 | LIBS=$ac_check_lib_save_LIBS |
| 28194 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28195 | { $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] | 28196 | $as_echo "$ac_cv_lib_z_gztell" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28197 | if test "x$ac_cv_lib_z_gztell" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28198 | passed=`expr $passed + 1` |
| 28199 | else |
| 28200 | failed=`expr $failed + 1` |
| 28201 | fi |
| 28202 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28203 | { $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] | 28204 | $as_echo_n "checking if ZLIB package is complete... " >&6; } |
| 28205 | if test $passed -gt 0; then |
| 28206 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 28208 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28209 | have_zlib='no (failed tests)' |
| 28210 | else |
| 28211 | ZLIB_LIBS='-lz' |
| 28212 | LIBS="$ZLIB_LIBS $LIBS" |
| 28213 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28214 | $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28215 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28217 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28218 | have_zlib='yes' |
| 28219 | fi |
| 28220 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28222 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28223 | fi |
| 28224 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28225 | if test "$have_zlib" = 'yes'; then |
| 28226 | ZLIB_DELEGATE_TRUE= |
| 28227 | ZLIB_DELEGATE_FALSE='#' |
| 28228 | else |
| 28229 | ZLIB_DELEGATE_TRUE='#' |
| 28230 | ZLIB_DELEGATE_FALSE= |
| 28231 | fi |
| 28232 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28233 | |
| 28234 | |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 28235 | # whether modules are built or not. |
| 28236 | with_ltdl='yes' |
| 28237 | have_ltdl='no' |
| 28238 | LTDL_LIBS='' |
| 28239 | if test "$build_modules" != 'no' ; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 28241 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 28242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5 |
| 28243 | $as_echo_n "checking for libltdl... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 28245 | $as_echo "" >&6; } |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 28246 | failed=0 |
| 28247 | passed=0 |
| 28248 | ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default" |
| 28249 | if test "x$ac_cv_header_ltdl_h" = xyes; then : |
| 28250 | passed=`expr $passed + 1` |
| 28251 | else |
| 28252 | failed=`expr $failed + 1` |
| 28253 | fi |
| 28254 | |
| 28255 | |
| 28256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5 |
| 28257 | $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; } |
| 28258 | if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then : |
| 28259 | $as_echo_n "(cached) " >&6 |
| 28260 | else |
| 28261 | ac_check_lib_save_LIBS=$LIBS |
| 28262 | LIBS="-lltdl $LIBS" |
| 28263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28264 | /* end confdefs.h. */ |
| 28265 | |
| 28266 | /* Override any GCC internal prototype to avoid an error. |
| 28267 | Use char because int might match the return type of a GCC |
| 28268 | builtin and then its argument prototype would still apply. */ |
| 28269 | #ifdef __cplusplus |
| 28270 | extern "C" |
| 28271 | #endif |
| 28272 | char lt_dlinit (); |
| 28273 | int |
| 28274 | main () |
| 28275 | { |
| 28276 | return lt_dlinit (); |
| 28277 | ; |
| 28278 | return 0; |
| 28279 | } |
| 28280 | _ACEOF |
| 28281 | if ac_fn_c_try_link "$LINENO"; then : |
| 28282 | ac_cv_lib_ltdl_lt_dlinit=yes |
| 28283 | else |
| 28284 | ac_cv_lib_ltdl_lt_dlinit=no |
| 28285 | fi |
| 28286 | rm -f core conftest.err conftest.$ac_objext \ |
| 28287 | conftest$ac_exeext conftest.$ac_ext |
| 28288 | LIBS=$ac_check_lib_save_LIBS |
| 28289 | fi |
| 28290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5 |
| 28291 | $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; } |
| 28292 | if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then : |
| 28293 | passed=`expr $passed + 1` |
| 28294 | else |
| 28295 | failed=`expr $failed + 1` |
| 28296 | fi |
| 28297 | |
| 28298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5 |
| 28299 | $as_echo_n "checking if libltdl package is complete... " >&6; } |
| 28300 | if test $passed -gt 0 ; then |
| 28301 | if test $failed -gt 0 ; then |
| 28302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 28303 | $as_echo "no -- some components failed test" >&6; } |
| 28304 | have_ltdl='no (failed tests)' |
| 28305 | else |
| 28306 | LTDL_LIBS='-lltdl' |
| 28307 | LIBS="$LTDL_LIBS $LIBS" |
| 28308 | |
| 28309 | $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h |
| 28310 | |
| 28311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28312 | $as_echo "yes" >&6; } |
| 28313 | have_ltdl='yes' |
| 28314 | fi |
| 28315 | else |
| 28316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28317 | $as_echo "no" >&6; } |
| 28318 | fi |
| cristy | af4cbf3 | 2012-10-16 23:47:41 +0000 | [diff] [blame] | 28319 | if test "$have_ltdl" != 'yes' ; then |
| 28320 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 28321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 28322 | as_fn_error 1 "libltdl is required for modules build |
| 28323 | See \`config.log' for more details" "$LINENO" 5; } |
| 28324 | fi |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 28325 | fi |
| 28326 | if test "$have_ltdl" != 'no'; then |
| 28327 | WITH_LTDL_TRUE= |
| 28328 | WITH_LTDL_FALSE='#' |
| 28329 | else |
| 28330 | WITH_LTDL_TRUE='#' |
| 28331 | WITH_LTDL_FALSE= |
| 28332 | fi |
| 28333 | |
| 28334 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28335 | # |
| 28336 | # If profiling, then check for -ldl and dlopen (required for Solaris & gcc) |
| 28337 | # |
| 28338 | LIB_DL='' |
| 28339 | if test "$enable_profiling" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28341 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28342 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28343 | $as_echo_n "(cached) " >&6 |
| 28344 | else |
| 28345 | ac_check_lib_save_LIBS=$LIBS |
| 28346 | LIBS="-ldl $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28348 | /* end confdefs.h. */ |
| 28349 | |
| 28350 | /* Override any GCC internal prototype to avoid an error. |
| 28351 | Use char because int might match the return type of a GCC |
| 28352 | builtin and then its argument prototype would still apply. */ |
| 28353 | #ifdef __cplusplus |
| 28354 | extern "C" |
| 28355 | #endif |
| 28356 | char dlopen (); |
| 28357 | int |
| 28358 | main () |
| 28359 | { |
| 28360 | return dlopen (); |
| 28361 | ; |
| 28362 | return 0; |
| 28363 | } |
| 28364 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28365 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28366 | ac_cv_lib_dl_dlopen=yes |
| 28367 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28368 | ac_cv_lib_dl_dlopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28369 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28370 | rm -f core conftest.err conftest.$ac_objext \ |
| 28371 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28372 | LIBS=$ac_check_lib_save_LIBS |
| 28373 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28374 | { $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] | 28375 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28376 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28377 | LIB_DL='-ldl' |
| 28378 | fi |
| 28379 | |
| 28380 | LIBS="$LIB_DL $LIBS" |
| 28381 | fi |
| 28382 | |
| 28383 | |
| 28384 | |
| 28385 | # |
| 28386 | # Check for Autotrace delegate library. |
| 28387 | # |
| 28388 | |
| 28389 | # Check whether --with-autotrace was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28390 | if test "${with_autotrace+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28391 | withval=$with_autotrace; with_autotrace=$withval |
| 28392 | else |
| 28393 | with_autotrace='no' |
| 28394 | fi |
| 28395 | |
| 28396 | |
| 28397 | if test "$with_autotrace" != 'yes'; then |
| 28398 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace " |
| 28399 | fi |
| 28400 | |
| 28401 | have_autotrace='no' |
| 28402 | AUTOTRACE_CFLAGS="" |
| 28403 | AUTOTRACE_LIBS="" |
| 28404 | AUTOTRACE_PKG="" |
| 28405 | if test "x$with_autotrace" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 28407 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28408 | |
| 28409 | pkg_failed=no |
| 28410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5 |
| 28411 | $as_echo_n "checking for AUTOTRACE... " >&6; } |
| 28412 | |
| 28413 | if test -n "$AUTOTRACE_CFLAGS"; then |
| 28414 | pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS" |
| 28415 | elif test -n "$PKG_CONFIG"; then |
| 28416 | if test -n "$PKG_CONFIG" && \ |
| 28417 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| 28418 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 28419 | ac_status=$? |
| 28420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 28421 | test $ac_status = 0; }; then |
| 28422 | pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null` |
| 28423 | else |
| 28424 | pkg_failed=yes |
| 28425 | fi |
| 28426 | else |
| 28427 | pkg_failed=untried |
| 28428 | fi |
| 28429 | if test -n "$AUTOTRACE_LIBS"; then |
| 28430 | pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS" |
| 28431 | elif test -n "$PKG_CONFIG"; then |
| 28432 | if test -n "$PKG_CONFIG" && \ |
| 28433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5 |
| 28434 | ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5 |
| 28435 | ac_status=$? |
| 28436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 28437 | test $ac_status = 0; }; then |
| 28438 | pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null` |
| 28439 | else |
| 28440 | pkg_failed=yes |
| 28441 | fi |
| 28442 | else |
| 28443 | pkg_failed=untried |
| 28444 | fi |
| 28445 | |
| 28446 | |
| 28447 | |
| 28448 | if test $pkg_failed = yes; then |
| 28449 | |
| 28450 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 28451 | _pkg_short_errors_supported=yes |
| 28452 | else |
| 28453 | _pkg_short_errors_supported=no |
| 28454 | fi |
| 28455 | if test $_pkg_short_errors_supported = yes; then |
| 28456 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1` |
| 28457 | else |
| 28458 | AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1` |
| 28459 | fi |
| 28460 | # Put the nasty error message in config.log where it belongs |
| 28461 | echo "$AUTOTRACE_PKG_ERRORS" >&5 |
| 28462 | |
| 28463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28464 | $as_echo "no" >&6; } |
| 28465 | have_autotrace=no |
| 28466 | elif test $pkg_failed = untried; then |
| 28467 | have_autotrace=no |
| 28468 | else |
| 28469 | AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS |
| 28470 | AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS |
| 28471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28472 | $as_echo "yes" >&6; } |
| 28473 | have_autotrace=yes |
| 28474 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 28476 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28477 | fi |
| 28478 | |
| 28479 | if test "$have_autotrace" = 'yes'; then |
| 28480 | failed=0 |
| 28481 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28482 | $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28483 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 28484 | if test "$build_modules" = 'no'; then |
| cristy | fa16118 | 2012-12-19 15:45:28 +0000 | [diff] [blame] | 28485 | CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28486 | fi |
| 28487 | fi |
| 28488 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28489 | if test "$have_autotrace" = 'yes'; then |
| 28490 | AUTOTRACE_DELEGATE_TRUE= |
| 28491 | AUTOTRACE_DELEGATE_FALSE='#' |
| 28492 | else |
| 28493 | AUTOTRACE_DELEGATE_TRUE='#' |
| 28494 | AUTOTRACE_DELEGATE_FALSE= |
| 28495 | fi |
| 28496 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28497 | |
| 28498 | |
| 28499 | |
| 28500 | |
| 28501 | # |
| 28502 | # Check for Display Postscript delegate library. |
| 28503 | # |
| 28504 | |
| 28505 | # Check whether --with-dps was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28506 | if test "${with_dps+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28507 | withval=$with_dps; with_dps=$withval |
| 28508 | else |
| 28509 | with_dps='yes' |
| 28510 | fi |
| 28511 | |
| 28512 | |
| 28513 | if test "$with_dps" != 'yes'; then |
| 28514 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps " |
| 28515 | fi |
| 28516 | |
| 28517 | have_dps='no' |
| 28518 | DPS_LIBS='' |
| 28519 | if test "$with_dps" != 'no' && test "$with_x" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 28521 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28523 | $as_echo_n "checking for DPS... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 28525 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28526 | failed=0 |
| 28527 | passed=0 |
| 28528 | PERSIST_CPPFLAGS="$CPPFLAGS" |
| 28529 | CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28530 | 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] | 28531 | if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28532 | passed=`expr $passed + 1` |
| 28533 | else |
| 28534 | failed=`expr $failed + 1` |
| 28535 | fi |
| 28536 | |
| 28537 | |
| 28538 | # DPS issues: |
| 28539 | # XFree86-4.x needs -lXt to provide XtMalloc for -ldps. |
| 28540 | # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build. |
| 28541 | # Adobe DPS (as delivered on Solaris) doesn't require -lXt. |
| 28542 | # ImageMagick itself doesn't use -lXt. |
| 28543 | have_libdps='no' |
| 28544 | LIBDPS_XT='' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28546 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28547 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28548 | $as_echo_n "(cached) " >&6 |
| 28549 | else |
| 28550 | ac_check_lib_save_LIBS=$LIBS |
| 28551 | LIBS="-ldps $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28553 | /* end confdefs.h. */ |
| 28554 | |
| 28555 | /* Override any GCC internal prototype to avoid an error. |
| 28556 | Use char because int might match the return type of a GCC |
| 28557 | builtin and then its argument prototype would still apply. */ |
| 28558 | #ifdef __cplusplus |
| 28559 | extern "C" |
| 28560 | #endif |
| 28561 | char DPSInitialize (); |
| 28562 | int |
| 28563 | main () |
| 28564 | { |
| 28565 | return DPSInitialize (); |
| 28566 | ; |
| 28567 | return 0; |
| 28568 | } |
| 28569 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28570 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28571 | ac_cv_lib_dps_DPSInitialize=yes |
| 28572 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28573 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28574 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28575 | rm -f core conftest.err conftest.$ac_objext \ |
| 28576 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28577 | LIBS=$ac_check_lib_save_LIBS |
| 28578 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28579 | { $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] | 28580 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28581 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28582 | have_libdps='yes' |
| 28583 | else |
| 28584 | have_libdps='no' |
| 28585 | fi |
| 28586 | |
| 28587 | if test "$have_libdps" != 'yes'; then |
| 28588 | # Unset cache variable so we can try again. |
| 28589 | unset ac_cv_lib_dps_DPSInitialize |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28591 | $as_echo_n "checking for DPSInitialize in -ldps... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28592 | if ${ac_cv_lib_dps_DPSInitialize+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28593 | $as_echo_n "(cached) " >&6 |
| 28594 | else |
| 28595 | ac_check_lib_save_LIBS=$LIBS |
| 28596 | LIBS="-ldps -lXt $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28598 | /* end confdefs.h. */ |
| 28599 | |
| 28600 | /* Override any GCC internal prototype to avoid an error. |
| 28601 | Use char because int might match the return type of a GCC |
| 28602 | builtin and then its argument prototype would still apply. */ |
| 28603 | #ifdef __cplusplus |
| 28604 | extern "C" |
| 28605 | #endif |
| 28606 | char DPSInitialize (); |
| 28607 | int |
| 28608 | main () |
| 28609 | { |
| 28610 | return DPSInitialize (); |
| 28611 | ; |
| 28612 | return 0; |
| 28613 | } |
| 28614 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28615 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28616 | ac_cv_lib_dps_DPSInitialize=yes |
| 28617 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28618 | ac_cv_lib_dps_DPSInitialize=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28619 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28620 | rm -f core conftest.err conftest.$ac_objext \ |
| 28621 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28622 | LIBS=$ac_check_lib_save_LIBS |
| 28623 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28624 | { $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] | 28625 | $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28626 | if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28627 | have_libdps='yes' |
| 28628 | else |
| 28629 | have_libdps='no' |
| 28630 | fi |
| 28631 | |
| 28632 | if test "$have_libdps" = 'yes'; then |
| 28633 | LIBDPS_XT='-lXt' |
| 28634 | fi |
| 28635 | fi |
| 28636 | if test "$have_libdps" = 'yes'; then |
| 28637 | passed=`expr $passed + 1` |
| 28638 | else |
| 28639 | failed=`expr $failed + 1` |
| 28640 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28642 | $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28643 | if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28644 | $as_echo_n "(cached) " >&6 |
| 28645 | else |
| 28646 | ac_check_lib_save_LIBS=$LIBS |
| 28647 | LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28649 | /* end confdefs.h. */ |
| 28650 | |
| 28651 | /* Override any GCC internal prototype to avoid an error. |
| 28652 | Use char because int might match the return type of a GCC |
| 28653 | builtin and then its argument prototype would still apply. */ |
| 28654 | #ifdef __cplusplus |
| 28655 | extern "C" |
| 28656 | #endif |
| 28657 | char XDPSPixelsPerPoint (); |
| 28658 | int |
| 28659 | main () |
| 28660 | { |
| 28661 | return XDPSPixelsPerPoint (); |
| 28662 | ; |
| 28663 | return 0; |
| 28664 | } |
| 28665 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28666 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28667 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes |
| 28668 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28669 | ac_cv_lib_dpstk_XDPSPixelsPerPoint=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28670 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28671 | rm -f core conftest.err conftest.$ac_objext \ |
| 28672 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28673 | LIBS=$ac_check_lib_save_LIBS |
| 28674 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28675 | { $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] | 28676 | $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28677 | if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28678 | passed=`expr $passed + 1` |
| 28679 | else |
| 28680 | failed=`expr $failed + 1` |
| 28681 | fi |
| 28682 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28683 | { $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] | 28684 | $as_echo_n "checking if DPS package is complete... " >&6; } |
| 28685 | if test $passed -gt 0; then |
| 28686 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 28688 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28689 | have_dps='no (failed tests)' |
| 28690 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 28691 | else |
| 28692 | DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}" |
| 28693 | LIBS="$DPS_LIBS $LIBS" |
| 28694 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28695 | $as_echo "#define DPS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28696 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28698 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28699 | have_dps='yes' |
| 28700 | fi |
| 28701 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28703 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28704 | CPPFLAGS=$PERSIST_CPPFLAGS |
| 28705 | fi |
| 28706 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28707 | if test "$have_dps" = 'yes'; then |
| 28708 | DPS_DELEGATE_TRUE= |
| 28709 | DPS_DELEGATE_FALSE='#' |
| 28710 | else |
| 28711 | DPS_DELEGATE_TRUE='#' |
| 28712 | DPS_DELEGATE_FALSE= |
| 28713 | fi |
| 28714 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28715 | |
| 28716 | |
| 28717 | |
| 28718 | # |
| 28719 | # Check for DJVU delegate library. |
| 28720 | # |
| 28721 | |
| 28722 | # Check whether --with-djvu was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28723 | if test "${with_djvu+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28724 | withval=$with_djvu; with_djvu=$withval |
| 28725 | else |
| 28726 | with_djvu='yes' |
| 28727 | fi |
| 28728 | |
| 28729 | |
| 28730 | if test "$with_djvu" != 'yes'; then |
| 28731 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu " |
| 28732 | fi |
| 28733 | |
| 28734 | have_djvu='no' |
| 28735 | DJVU_LIBS='' |
| 28736 | if test "$with_djvu" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 28738 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28740 | $as_echo_n "checking for DJVU... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 28742 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28743 | failed=0 |
| 28744 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28745 | 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] | 28746 | if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28747 | passed=`expr $passed + 1` |
| 28748 | else |
| 28749 | failed=`expr $failed + 1` |
| 28750 | fi |
| 28751 | |
| 28752 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28753 | { $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] | 28754 | $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28755 | if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28756 | $as_echo_n "(cached) " >&6 |
| 28757 | else |
| 28758 | ac_check_lib_save_LIBS=$LIBS |
| 28759 | LIBS="-ldjvulibre $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28761 | /* end confdefs.h. */ |
| 28762 | |
| 28763 | /* Override any GCC internal prototype to avoid an error. |
| 28764 | Use char because int might match the return type of a GCC |
| 28765 | builtin and then its argument prototype would still apply. */ |
| 28766 | #ifdef __cplusplus |
| 28767 | extern "C" |
| 28768 | #endif |
| 28769 | char ddjvu_context_create (); |
| 28770 | int |
| 28771 | main () |
| 28772 | { |
| 28773 | return ddjvu_context_create (); |
| 28774 | ; |
| 28775 | return 0; |
| 28776 | } |
| 28777 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28778 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28779 | ac_cv_lib_djvulibre_ddjvu_context_create=yes |
| 28780 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28781 | ac_cv_lib_djvulibre_ddjvu_context_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28782 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28783 | rm -f core conftest.err conftest.$ac_objext \ |
| 28784 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28785 | LIBS=$ac_check_lib_save_LIBS |
| 28786 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28787 | { $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] | 28788 | $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28789 | if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28790 | passed=`expr $passed + 1` |
| 28791 | else |
| 28792 | failed=`expr $failed + 1` |
| 28793 | fi |
| 28794 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28795 | { $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] | 28796 | $as_echo_n "checking if DJVU package is complete... " >&6; } |
| 28797 | if test $passed -gt 0; then |
| 28798 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 28800 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28801 | have_djvu='no (failed tests)' |
| 28802 | else |
| 28803 | DJVU_LIBS='-ldjvulibre' |
| 28804 | LIBS="$DJVU_LIBS $LIBS" |
| 28805 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28806 | $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28807 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28809 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28810 | have_djvu='yes' |
| 28811 | fi |
| 28812 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28814 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28815 | fi |
| 28816 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28817 | if test "$have_djvu" = 'yes'; then |
| 28818 | DJVU_DELEGATE_TRUE= |
| 28819 | DJVU_DELEGATE_FALSE='#' |
| 28820 | else |
| 28821 | DJVU_DELEGATE_TRUE='#' |
| 28822 | DJVU_DELEGATE_FALSE= |
| 28823 | fi |
| 28824 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28825 | |
| 28826 | |
| 28827 | |
| 28828 | # |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 28829 | # Set DejaVu font directory. |
| 28830 | # |
| 28831 | |
| 28832 | # Check whether --with-dejavu-font-dir was given. |
| 28833 | if test "${with_dejavu_font_dir+set}" = set; then : |
| 28834 | withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval |
| 28835 | else |
| 28836 | with_dejavu_font_dir='default' |
| 28837 | fi |
| 28838 | |
| 28839 | |
| 28840 | if test "$with_dejavu_font_dir" != 'default'; then |
| 28841 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir " |
| 28842 | fi |
| 28843 | |
| 28844 | |
| 28845 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28846 | # Check for FFTW delegate library. |
| 28847 | # |
| 28848 | |
| 28849 | # Check whether --with-fftw was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28850 | if test "${with_fftw+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28851 | withval=$with_fftw; with_fftw=$withval |
| 28852 | else |
| 28853 | with_fftw='yes' |
| 28854 | fi |
| 28855 | |
| 28856 | |
| 28857 | if test "$with_fftw" != 'yes'; then |
| 28858 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw " |
| 28859 | fi |
| 28860 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28861 | have_fftw='no' |
| 28862 | FFTW_LIBS='' |
| 28863 | if test "$with_fftw" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 28865 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5 |
| 28867 | $as_echo_n "checking for FFTW... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 28869 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28870 | failed=0 |
| 28871 | passed=0 |
| 28872 | ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" |
| 28873 | if test "x$ac_cv_header_fftw3_h" = xyes; then : |
| 28874 | passed=`expr $passed + 1` |
| 28875 | else |
| 28876 | failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28877 | fi |
| 28878 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28879 | |
| 28880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 |
| 28881 | $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } |
| 28882 | if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : |
| 28883 | $as_echo_n "(cached) " >&6 |
| 28884 | else |
| 28885 | ac_check_lib_save_LIBS=$LIBS |
| 28886 | LIBS="-lfftw3 $LIBS" |
| 28887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28888 | /* end confdefs.h. */ |
| 28889 | |
| 28890 | /* Override any GCC internal prototype to avoid an error. |
| 28891 | Use char because int might match the return type of a GCC |
| 28892 | builtin and then its argument prototype would still apply. */ |
| 28893 | #ifdef __cplusplus |
| 28894 | extern "C" |
| 28895 | #endif |
| 28896 | char fftw_execute (); |
| 28897 | int |
| 28898 | main () |
| 28899 | { |
| 28900 | return fftw_execute (); |
| 28901 | ; |
| 28902 | return 0; |
| 28903 | } |
| 28904 | _ACEOF |
| 28905 | if ac_fn_c_try_link "$LINENO"; then : |
| 28906 | ac_cv_lib_fftw3_fftw_execute=yes |
| 28907 | else |
| 28908 | ac_cv_lib_fftw3_fftw_execute=no |
| 28909 | fi |
| 28910 | rm -f core conftest.err conftest.$ac_objext \ |
| 28911 | conftest$ac_exeext conftest.$ac_ext |
| 28912 | LIBS=$ac_check_lib_save_LIBS |
| 28913 | fi |
| 28914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 |
| 28915 | $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } |
| 28916 | if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : |
| 28917 | passed=`expr $passed + 1` |
| 28918 | else |
| 28919 | failed=`expr $failed + 1` |
| 28920 | fi |
| 28921 | |
| 28922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5 |
| 28923 | $as_echo_n "checking if FFTW package is complete... " >&6; } |
| 28924 | if test $passed -gt 0; then |
| 28925 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 28927 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28928 | have_fftw='no (failed tests)' |
| 28929 | else |
| 28930 | FFTW_LIBS='-lfftw3' |
| 28931 | LIBS="$FFTW_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28932 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28933 | $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28934 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 28936 | $as_echo "yes" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 28937 | have_fftw='yes' |
| 28938 | fi |
| 28939 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 28941 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28942 | fi |
| 28943 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 28944 | if test "$have_fftw" = 'yes'; then |
| 28945 | FFTW_DELEGATE_TRUE= |
| 28946 | FFTW_DELEGATE_FALSE='#' |
| 28947 | else |
| 28948 | FFTW_DELEGATE_TRUE='#' |
| 28949 | FFTW_DELEGATE_FALSE= |
| 28950 | fi |
| 28951 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28952 | |
| 28953 | |
| 28954 | |
| 28955 | # |
| 28956 | # Check for FlashPIX delegate library. |
| 28957 | # |
| 28958 | |
| 28959 | # Check whether --with-fpx was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28960 | if test "${with_fpx+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28961 | withval=$with_fpx; with_fpx=$withval |
| 28962 | else |
| 28963 | with_fpx='yes' |
| 28964 | fi |
| 28965 | |
| 28966 | |
| 28967 | if test "$with_fpx" != 'yes'; then |
| 28968 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx " |
| 28969 | fi |
| 28970 | |
| 28971 | have_fpx='no' |
| 28972 | FPX_LIBS='' |
| 28973 | if test "$with_fpx" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 28975 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28977 | $as_echo_n "checking for FlashPIX... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 28978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 28979 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28980 | failed=0 |
| 28981 | passed=0 |
| 28982 | ac_ext=cpp |
| 28983 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 28984 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 28985 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 28986 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 28987 | |
| 28988 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28989 | 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] | 28990 | if test "x$ac_cv_header_fpxlib_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 28991 | passed=`expr $passed + 1` |
| 28992 | else |
| 28993 | failed=`expr $failed + 1` |
| 28994 | fi |
| 28995 | |
| 28996 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 28997 | { $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] | 28998 | $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 28999 | if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29000 | $as_echo_n "(cached) " >&6 |
| 29001 | else |
| 29002 | ac_check_lib_save_LIBS=$LIBS |
| 29003 | LIBS="-lfpx $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29005 | /* end confdefs.h. */ |
| 29006 | |
| 29007 | /* Override any GCC internal prototype to avoid an error. |
| 29008 | Use char because int might match the return type of a GCC |
| 29009 | builtin and then its argument prototype would still apply. */ |
| 29010 | #ifdef __cplusplus |
| 29011 | extern "C" |
| 29012 | #endif |
| 29013 | char FPX_OpenImageByFilename (); |
| 29014 | int |
| 29015 | main () |
| 29016 | { |
| 29017 | return FPX_OpenImageByFilename (); |
| 29018 | ; |
| 29019 | return 0; |
| 29020 | } |
| 29021 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29022 | if ac_fn_cxx_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29023 | ac_cv_lib_fpx_FPX_OpenImageByFilename=yes |
| 29024 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29025 | ac_cv_lib_fpx_FPX_OpenImageByFilename=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29026 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29027 | rm -f core conftest.err conftest.$ac_objext \ |
| 29028 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29029 | LIBS=$ac_check_lib_save_LIBS |
| 29030 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29031 | { $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] | 29032 | $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29033 | if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29034 | passed=`expr $passed + 1` |
| 29035 | else |
| 29036 | failed=`expr $failed + 1` |
| 29037 | fi |
| 29038 | |
| 29039 | ac_ext=c |
| 29040 | ac_cpp='$CPP $CPPFLAGS' |
| 29041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 29042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 29043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 29044 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29045 | { $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] | 29046 | $as_echo_n "checking if FlashPIX package is complete... " >&6; } |
| 29047 | if test $passed -gt 0; then |
| 29048 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 29050 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29051 | have_fpx='no (failed tests)' |
| 29052 | else |
| 29053 | FPX_LIBS='-lfpx' |
| 29054 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29055 | $as_echo "#define FPX_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29056 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29058 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29059 | have_fpx='yes' |
| 29060 | PERLMAINCC="$CXX" |
| 29061 | fi |
| 29062 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29064 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29065 | fi |
| 29066 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29067 | if test "$have_fpx" = 'yes'; then |
| 29068 | FPX_DELEGATE_TRUE= |
| 29069 | FPX_DELEGATE_FALSE='#' |
| 29070 | else |
| 29071 | FPX_DELEGATE_TRUE='#' |
| 29072 | FPX_DELEGATE_FALSE= |
| 29073 | fi |
| 29074 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29075 | |
| 29076 | |
| 29077 | |
| 29078 | # |
| 29079 | # Check for fontconfig delegate library. |
| 29080 | # |
| 29081 | |
| 29082 | # Check whether --with-fontconfig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29083 | if test "${with_fontconfig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29084 | withval=$with_fontconfig; with_fontconfig=$withval |
| 29085 | else |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 29086 | with_fontconfig='yes' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29087 | fi |
| 29088 | |
| 29089 | |
| 29090 | if test "$with_fontconfig" != 'yes'; then |
| 29091 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig " |
| 29092 | fi |
| 29093 | |
| 29094 | have_fontconfig='no' |
| 29095 | FONTCONFIG_CFLAGS="" |
| 29096 | FONTCONFIG_LIBS="" |
| 29097 | FONTCONFIG_PKG="" |
| 29098 | if test "x$with_fontconfig" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29100 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29101 | |
| 29102 | pkg_failed=no |
| 29103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5 |
| 29104 | $as_echo_n "checking for FONTCONFIG... " >&6; } |
| 29105 | |
| 29106 | if test -n "$FONTCONFIG_CFLAGS"; then |
| 29107 | pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" |
| 29108 | elif test -n "$PKG_CONFIG"; then |
| 29109 | if test -n "$PKG_CONFIG" && \ |
| 29110 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| 29111 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 29112 | ac_status=$? |
| 29113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29114 | test $ac_status = 0; }; then |
| 29115 | pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null` |
| 29116 | else |
| 29117 | pkg_failed=yes |
| 29118 | fi |
| 29119 | else |
| 29120 | pkg_failed=untried |
| 29121 | fi |
| 29122 | if test -n "$FONTCONFIG_LIBS"; then |
| 29123 | pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" |
| 29124 | elif test -n "$PKG_CONFIG"; then |
| 29125 | if test -n "$PKG_CONFIG" && \ |
| 29126 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5 |
| 29127 | ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5 |
| 29128 | ac_status=$? |
| 29129 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29130 | test $ac_status = 0; }; then |
| 29131 | pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null` |
| 29132 | else |
| 29133 | pkg_failed=yes |
| 29134 | fi |
| 29135 | else |
| 29136 | pkg_failed=untried |
| 29137 | fi |
| 29138 | |
| 29139 | |
| 29140 | |
| 29141 | if test $pkg_failed = yes; then |
| 29142 | |
| 29143 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29144 | _pkg_short_errors_supported=yes |
| 29145 | else |
| 29146 | _pkg_short_errors_supported=no |
| 29147 | fi |
| 29148 | if test $_pkg_short_errors_supported = yes; then |
| 29149 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 29150 | else |
| 29151 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1` |
| 29152 | fi |
| 29153 | # Put the nasty error message in config.log where it belongs |
| 29154 | echo "$FONTCONFIG_PKG_ERRORS" >&5 |
| 29155 | |
| 29156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29157 | $as_echo "no" >&6; } |
| 29158 | have_fontconfig=no |
| 29159 | elif test $pkg_failed = untried; then |
| 29160 | have_fontconfig=no |
| 29161 | else |
| 29162 | FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS |
| 29163 | FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS |
| 29164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29165 | $as_echo "yes" >&6; } |
| 29166 | have_fontconfig=yes |
| 29167 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29169 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29170 | fi |
| 29171 | |
| 29172 | if test "$have_fontconfig" = 'yes'; then |
| 29173 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29174 | $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29175 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 29176 | if test "$build_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29177 | CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS" |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 29178 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29179 | fi |
| 29180 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29181 | if test "$have_fontconfig" = 'yes'; then |
| 29182 | FONTCONFIG_DELEGATE_TRUE= |
| 29183 | FONTCONFIG_DELEGATE_FALSE='#' |
| 29184 | else |
| 29185 | FONTCONFIG_DELEGATE_TRUE='#' |
| 29186 | FONTCONFIG_DELEGATE_FALSE= |
| 29187 | fi |
| 29188 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29189 | |
| 29190 | |
| 29191 | |
| 29192 | |
| 29193 | # |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29194 | # Check for the Freetype delegate library. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29195 | # |
| 29196 | |
| 29197 | # Check whether --with-freetype was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29198 | if test "${with_freetype+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29199 | withval=$with_freetype; with_freetype=$withval |
| 29200 | else |
| 29201 | with_freetype='yes' |
| 29202 | fi |
| 29203 | |
| 29204 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29205 | if test "$with_freetype" != 'yes'; then |
| 29206 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype " |
| 29207 | fi |
| 29208 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 29209 | have_freetype='no' |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29210 | FREETYPE_CFLAGS="" |
| 29211 | FREETYPE_LIBS="" |
| 29212 | FREETYPE_PKG="" |
| 29213 | if test "x$with_freetype" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29215 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29216 | |
| 29217 | pkg_failed=no |
| 29218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 |
| 29219 | $as_echo_n "checking for FREETYPE... " >&6; } |
| 29220 | |
| 29221 | if test -n "$FREETYPE_CFLAGS"; then |
| 29222 | pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" |
| 29223 | elif test -n "$PKG_CONFIG"; then |
| 29224 | if test -n "$PKG_CONFIG" && \ |
| 29225 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 |
| 29226 | ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 |
| 29227 | ac_status=$? |
| 29228 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29229 | test $ac_status = 0; }; then |
| 29230 | pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` |
| 29231 | else |
| 29232 | pkg_failed=yes |
| 29233 | fi |
| 29234 | else |
| 29235 | pkg_failed=untried |
| 29236 | fi |
| 29237 | if test -n "$FREETYPE_LIBS"; then |
| 29238 | pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" |
| 29239 | elif test -n "$PKG_CONFIG"; then |
| 29240 | if test -n "$PKG_CONFIG" && \ |
| 29241 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 |
| 29242 | ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 |
| 29243 | ac_status=$? |
| 29244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29245 | test $ac_status = 0; }; then |
| 29246 | pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` |
| 29247 | else |
| 29248 | pkg_failed=yes |
| 29249 | fi |
| 29250 | else |
| 29251 | pkg_failed=untried |
| 29252 | fi |
| 29253 | |
| 29254 | |
| 29255 | |
| 29256 | if test $pkg_failed = yes; then |
| 29257 | |
| 29258 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29259 | _pkg_short_errors_supported=yes |
| 29260 | else |
| 29261 | _pkg_short_errors_supported=no |
| 29262 | fi |
| 29263 | if test $_pkg_short_errors_supported = yes; then |
| 29264 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` |
| 29265 | else |
| 29266 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` |
| 29267 | fi |
| 29268 | # Put the nasty error message in config.log where it belongs |
| 29269 | echo "$FREETYPE_PKG_ERRORS" >&5 |
| 29270 | |
| 29271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29272 | $as_echo "no" >&6; } |
| 29273 | have_freetype=no |
| 29274 | elif test $pkg_failed = untried; then |
| 29275 | have_freetype=no |
| 29276 | else |
| 29277 | FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS |
| 29278 | FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS |
| 29279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29280 | $as_echo "yes" >&6; } |
| 29281 | have_freetype=yes |
| 29282 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29284 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29285 | fi |
| 29286 | |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29287 | if test "$have_freetype" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29288 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29289 | $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29290 | |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29291 | CFLAGS="$FREETYPE_CFLAGS $CFLAGS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29292 | fi |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29293 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29294 | if test "$have_freetype" = 'yes'; then |
| 29295 | FREETYPE_DELEGATE_TRUE= |
| 29296 | FREETYPE_DELEGATE_FALSE='#' |
| 29297 | else |
| 29298 | FREETYPE_DELEGATE_TRUE='#' |
| 29299 | FREETYPE_DELEGATE_FALSE= |
| 29300 | fi |
| 29301 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29302 | |
| 29303 | |
| 29304 | |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 29305 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29306 | # |
| 29307 | # Check for Ghostscript library or framework. |
| 29308 | # |
| 29309 | # Test for iapi.h & test for gsapi_new_instance in -lgs |
| 29310 | # or -framework Ghostscript |
| 29311 | |
| 29312 | |
| 29313 | # Check whether --with-gslib was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29314 | if test "${with_gslib+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29315 | withval=$with_gslib; with_gslib=$withval |
| 29316 | else |
| 29317 | with_gslib='no' |
| 29318 | fi |
| 29319 | |
| 29320 | |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29321 | gslib_framework='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29322 | if test "$with_gslib" != 'yes'; then |
| 29323 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib " |
| 29324 | fi |
| 29325 | |
| 29326 | have_gslib='no' |
| 29327 | GS_LIBS='' |
| 29328 | if test "$with_gslib" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29330 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29332 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29334 | $as_echo "" >&6; } |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29335 | framework=0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29336 | failed=0 |
| 29337 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29338 | 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] | 29339 | if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29340 | passed=`expr $passed + 1` |
| 29341 | else |
| 29342 | failed=`expr $failed + 1` |
| 29343 | fi |
| 29344 | |
| 29345 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29346 | 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] | 29347 | if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29348 | passed=`expr $passed + 1` |
| 29349 | else |
| 29350 | failed=`expr $failed + 1` |
| 29351 | fi |
| 29352 | |
| 29353 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5 |
| 29355 | $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29356 | if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then : |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29357 | $as_echo_n "(cached) " >&6 |
| 29358 | else |
| 29359 | ac_check_framework_save_LIBS=$LIBS |
| 29360 | LIBS="-framework Ghostscript $LIBS" |
| 29361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29362 | /* end confdefs.h. */ |
| 29363 | |
| 29364 | /* Override any GCC internal prototype to avoid an error. |
| 29365 | Use char because int might match the return type of a GCC |
| 29366 | builtin and then its argument prototype would still apply. */ |
| 29367 | #ifdef __cplusplus |
| 29368 | extern "C" |
| 29369 | #endif |
| 29370 | char gsapi_new_instance (); |
| 29371 | int |
| 29372 | main () |
| 29373 | { |
| 29374 | return gsapi_new_instance (); |
| 29375 | ; |
| 29376 | return 0; |
| 29377 | } |
| 29378 | _ACEOF |
| 29379 | if ac_fn_c_try_link "$LINENO"; then : |
| 29380 | ac_cv_framework_Ghostscript_gsapi_new_instance=yes |
| 29381 | else |
| 29382 | ac_cv_framework_Ghostscript_gsapi_new_instance=no |
| 29383 | fi |
| 29384 | rm -f core conftest.err conftest.$ac_objext \ |
| 29385 | conftest$ac_exeext conftest.$ac_ext |
| 29386 | LIBS=$ac_check_framework_save_LIBS |
| 29387 | fi |
| 29388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5 |
| 29389 | $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; } |
| 29390 | if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then : |
| 29391 | framework=`expr $framework + 1` |
| 29392 | else |
| 29393 | { $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] | 29394 | $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29395 | if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29396 | $as_echo_n "(cached) " >&6 |
| 29397 | else |
| 29398 | ac_check_lib_save_LIBS=$LIBS |
| 29399 | LIBS="-lgs $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29401 | /* end confdefs.h. */ |
| 29402 | |
| 29403 | /* Override any GCC internal prototype to avoid an error. |
| 29404 | Use char because int might match the return type of a GCC |
| 29405 | builtin and then its argument prototype would still apply. */ |
| 29406 | #ifdef __cplusplus |
| 29407 | extern "C" |
| 29408 | #endif |
| 29409 | char gsapi_new_instance (); |
| 29410 | int |
| 29411 | main () |
| 29412 | { |
| 29413 | return gsapi_new_instance (); |
| 29414 | ; |
| 29415 | return 0; |
| 29416 | } |
| 29417 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29418 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29419 | ac_cv_lib_gs_gsapi_new_instance=yes |
| 29420 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29421 | ac_cv_lib_gs_gsapi_new_instance=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29422 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29423 | rm -f core conftest.err conftest.$ac_objext \ |
| 29424 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29425 | LIBS=$ac_check_lib_save_LIBS |
| 29426 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29427 | { $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] | 29428 | $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29429 | if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29430 | passed=`expr $passed + 1` |
| 29431 | else |
| 29432 | failed=`expr $failed + 1` |
| 29433 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29434 | |
| 29435 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29436 | { $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] | 29437 | $as_echo_n "checking if Ghostscript package is complete... " >&6; } |
| 29438 | if test $passed -gt 0; then |
| 29439 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 29441 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29442 | have_gslib='no (failed tests)' |
| 29443 | else |
| 29444 | if test $framework -gt 0; then |
| 29445 | GS_LIBS='-framework Ghostscript' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 29446 | gslib_framework='yes' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5 |
| 29448 | $as_echo "yes, using framework." >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29449 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5 |
| 29451 | $as_echo "yes, using library." >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29452 | GS_LIBS='-lgs' |
| 29453 | fi |
| 29454 | LIBS="$GS_LIBS $LIBS" |
| 29455 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29456 | $as_echo "#define GS_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29457 | |
| 29458 | have_gslib='yes' |
| 29459 | fi |
| 29460 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29462 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29463 | fi |
| 29464 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29465 | if test "$have_gslib" = 'yes'; then |
| 29466 | GS_DELEGATE_TRUE= |
| 29467 | GS_DELEGATE_FALSE='#' |
| 29468 | else |
| 29469 | GS_DELEGATE_TRUE='#' |
| 29470 | GS_DELEGATE_FALSE= |
| 29471 | fi |
| 29472 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29473 | |
| 29474 | |
| 29475 | # Set default font search path |
| 29476 | |
| 29477 | # Check whether --with-fontpath was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29478 | if test "${with_fontpath+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29479 | withval=$with_fontpath; with_fontpath=$withval |
| 29480 | else |
| 29481 | with_fontpath='' |
| 29482 | fi |
| 29483 | |
| 29484 | |
| 29485 | if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then |
| 29486 | with_fontpath='' |
| 29487 | else |
| 29488 | |
| 29489 | cat >>confdefs.h <<_ACEOF |
| 29490 | #define MAGICK_FONT_PATH "$with_fontpath" |
| 29491 | _ACEOF |
| 29492 | |
| 29493 | fi |
| 29494 | if test "$with_fontpath=" != ''; then |
| 29495 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath " |
| 29496 | fi |
| 29497 | |
| 29498 | # Set Ghostscript font directory |
| 29499 | |
| 29500 | # Check whether --with-gs-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29501 | if test "${with_gs_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29502 | withval=$with_gs_font_dir; with_gs_font_dir=$withval |
| 29503 | else |
| 29504 | with_gs_font_dir='default' |
| 29505 | fi |
| 29506 | |
| 29507 | |
| 29508 | if test "$with_gs_font_dir" != 'default'; then |
| 29509 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir " |
| 29510 | fi |
| 29511 | |
| 29512 | |
| 29513 | # |
| 29514 | # Check for GVC delegate library. |
| 29515 | # |
| 29516 | |
| 29517 | # Check whether --with-gvc was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29518 | if test "${with_gvc+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29519 | withval=$with_gvc; with_gvc=$withval |
| 29520 | else |
| cristy | 1b70dc8 | 2012-07-01 23:15:05 +0000 | [diff] [blame] | 29521 | with_gvc='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29522 | fi |
| 29523 | |
| 29524 | |
| 29525 | if test "$with_gvc" != 'yes'; then |
| 29526 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc " |
| 29527 | fi |
| 29528 | |
| 29529 | GVC_PKG="" |
| 29530 | if test "x$with_gvc" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29532 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29533 | |
| 29534 | pkg_failed=no |
| 29535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5 |
| 29536 | $as_echo_n "checking for GVC... " >&6; } |
| 29537 | |
| 29538 | if test -n "$GVC_CFLAGS"; then |
| 29539 | pkg_cv_GVC_CFLAGS="$GVC_CFLAGS" |
| 29540 | elif test -n "$PKG_CONFIG"; then |
| 29541 | if test -n "$PKG_CONFIG" && \ |
| 29542 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| 29543 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 29544 | ac_status=$? |
| 29545 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29546 | test $ac_status = 0; }; then |
| 29547 | pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null` |
| 29548 | else |
| 29549 | pkg_failed=yes |
| 29550 | fi |
| 29551 | else |
| 29552 | pkg_failed=untried |
| 29553 | fi |
| 29554 | if test -n "$GVC_LIBS"; then |
| 29555 | pkg_cv_GVC_LIBS="$GVC_LIBS" |
| 29556 | elif test -n "$PKG_CONFIG"; then |
| 29557 | if test -n "$PKG_CONFIG" && \ |
| 29558 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5 |
| 29559 | ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5 |
| 29560 | ac_status=$? |
| 29561 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 29562 | test $ac_status = 0; }; then |
| 29563 | pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null` |
| 29564 | else |
| 29565 | pkg_failed=yes |
| 29566 | fi |
| 29567 | else |
| 29568 | pkg_failed=untried |
| 29569 | fi |
| 29570 | |
| 29571 | |
| 29572 | |
| 29573 | if test $pkg_failed = yes; then |
| 29574 | |
| 29575 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 29576 | _pkg_short_errors_supported=yes |
| 29577 | else |
| 29578 | _pkg_short_errors_supported=no |
| 29579 | fi |
| 29580 | if test $_pkg_short_errors_supported = yes; then |
| 29581 | GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1` |
| 29582 | else |
| 29583 | GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1` |
| 29584 | fi |
| 29585 | # Put the nasty error message in config.log where it belongs |
| 29586 | echo "$GVC_PKG_ERRORS" >&5 |
| 29587 | |
| 29588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29589 | $as_echo "no" >&6; } |
| 29590 | have_gvc=no |
| 29591 | elif test $pkg_failed = untried; then |
| 29592 | have_gvc=no |
| 29593 | else |
| 29594 | GVC_CFLAGS=$pkg_cv_GVC_CFLAGS |
| 29595 | GVC_LIBS=$pkg_cv_GVC_LIBS |
| 29596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29597 | $as_echo "yes" >&6; } |
| 29598 | have_gvc=yes |
| 29599 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29601 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29602 | fi |
| 29603 | |
| 29604 | if test "$have_gvc" = 'yes'; then |
| 29605 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29606 | $as_echo "#define GVC_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29607 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 29608 | if test "$build_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29609 | CPPFLAGS="$GVC_CFLAGS $CPPFLAGS" |
| 29610 | fi |
| 29611 | fi |
| 29612 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29613 | if test "$have_gvc" = 'yes'; then |
| 29614 | GVC_DELEGATE_TRUE= |
| 29615 | GVC_DELEGATE_FALSE='#' |
| 29616 | else |
| 29617 | GVC_DELEGATE_TRUE='#' |
| 29618 | GVC_DELEGATE_FALSE= |
| 29619 | fi |
| 29620 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29621 | |
| 29622 | |
| 29623 | |
| 29624 | |
| 29625 | # |
| 29626 | # Check for JBIG delegate library. |
| 29627 | # |
| 29628 | |
| 29629 | |
| 29630 | # Check whether --with-jbig was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29631 | if test "${with_jbig+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29632 | withval=$with_jbig; with_jbig=$withval |
| 29633 | else |
| 29634 | with_jbig='yes' |
| 29635 | fi |
| 29636 | |
| 29637 | |
| 29638 | have_jbig='no' |
| 29639 | JBIG_LIBS='' |
| 29640 | if test "$with_jbig" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29642 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29644 | $as_echo_n "checking for JBIG... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29646 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29647 | failed=0 |
| 29648 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29649 | 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] | 29650 | if test "x$ac_cv_header_jbig_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29651 | passed=`expr $passed + 1` |
| 29652 | else |
| 29653 | failed=`expr $failed + 1` |
| 29654 | fi |
| 29655 | |
| 29656 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29657 | { $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] | 29658 | $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29659 | if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29660 | $as_echo_n "(cached) " >&6 |
| 29661 | else |
| 29662 | ac_check_lib_save_LIBS=$LIBS |
| 29663 | LIBS="-ljbig $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29665 | /* end confdefs.h. */ |
| 29666 | |
| 29667 | /* Override any GCC internal prototype to avoid an error. |
| 29668 | Use char because int might match the return type of a GCC |
| 29669 | builtin and then its argument prototype would still apply. */ |
| 29670 | #ifdef __cplusplus |
| 29671 | extern "C" |
| 29672 | #endif |
| 29673 | char jbg_dec_init (); |
| 29674 | int |
| 29675 | main () |
| 29676 | { |
| 29677 | return jbg_dec_init (); |
| 29678 | ; |
| 29679 | return 0; |
| 29680 | } |
| 29681 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29682 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29683 | ac_cv_lib_jbig_jbg_dec_init=yes |
| 29684 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29685 | ac_cv_lib_jbig_jbg_dec_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29686 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29687 | rm -f core conftest.err conftest.$ac_objext \ |
| 29688 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29689 | LIBS=$ac_check_lib_save_LIBS |
| 29690 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29691 | { $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] | 29692 | $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29693 | if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29694 | passed=`expr $passed + 1` |
| 29695 | else |
| 29696 | failed=`expr $failed + 1` |
| 29697 | fi |
| 29698 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29699 | { $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] | 29700 | $as_echo_n "checking if JBIG package is complete... " >&6; } |
| 29701 | if test $passed -gt 0; then |
| 29702 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 29704 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29705 | have_jbig='no (failed tests)' |
| 29706 | else |
| 29707 | JBIG_LIBS='-ljbig' |
| 29708 | LIBS="$JBIG_LIBS $LIBS" |
| 29709 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29710 | $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29711 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29713 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29714 | have_jbig='yes' |
| 29715 | fi |
| 29716 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29718 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29719 | fi |
| 29720 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29721 | if test "$have_jbig" = 'yes'; then |
| 29722 | JBIG_DELEGATE_TRUE= |
| 29723 | JBIG_DELEGATE_FALSE='#' |
| 29724 | else |
| 29725 | JBIG_DELEGATE_TRUE='#' |
| 29726 | JBIG_DELEGATE_FALSE= |
| 29727 | fi |
| 29728 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29729 | |
| 29730 | |
| 29731 | |
| 29732 | # |
| 29733 | # Check for JPEG delegate library. |
| 29734 | # |
| 29735 | |
| 29736 | # Check whether --with-jpeg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29737 | if test "${with_jpeg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29738 | withval=$with_jpeg; with_jpeg=$withval |
| 29739 | else |
| 29740 | with_jpeg='yes' |
| 29741 | fi |
| 29742 | |
| 29743 | |
| 29744 | if test "$with_jpeg" != 'yes'; then |
| 29745 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg " |
| 29746 | fi |
| 29747 | |
| 29748 | have_jpeg='no' |
| 29749 | JPEG_LIBS='' |
| 29750 | if test "$with_jpeg" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29752 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29754 | $as_echo_n "checking for JPEG... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29756 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29757 | failed=0 |
| 29758 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29759 | 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] | 29760 | if test "x$ac_cv_header_jconfig_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29761 | passed=`expr $passed + 1` |
| 29762 | else |
| 29763 | failed=`expr $failed + 1` |
| 29764 | fi |
| 29765 | |
| 29766 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29767 | 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] | 29768 | if test "x$ac_cv_header_jerror_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29769 | passed=`expr $passed + 1` |
| 29770 | else |
| 29771 | failed=`expr $failed + 1` |
| 29772 | fi |
| 29773 | |
| 29774 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29775 | 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] | 29776 | if test "x$ac_cv_header_jmorecfg_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29777 | passed=`expr $passed + 1` |
| 29778 | else |
| 29779 | failed=`expr $failed + 1` |
| 29780 | fi |
| 29781 | |
| 29782 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29783 | 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] | 29784 | if test "x$ac_cv_header_jpeglib_h" = 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 | |
| 29790 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29791 | { $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] | 29792 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29793 | if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29794 | $as_echo_n "(cached) " >&6 |
| 29795 | else |
| 29796 | ac_check_lib_save_LIBS=$LIBS |
| 29797 | LIBS="-ljpeg $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29799 | /* end confdefs.h. */ |
| 29800 | |
| 29801 | /* Override any GCC internal prototype to avoid an error. |
| 29802 | Use char because int might match the return type of a GCC |
| 29803 | builtin and then its argument prototype would still apply. */ |
| 29804 | #ifdef __cplusplus |
| 29805 | extern "C" |
| 29806 | #endif |
| 29807 | char jpeg_read_header (); |
| 29808 | int |
| 29809 | main () |
| 29810 | { |
| 29811 | return jpeg_read_header (); |
| 29812 | ; |
| 29813 | return 0; |
| 29814 | } |
| 29815 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29816 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29817 | ac_cv_lib_jpeg_jpeg_read_header=yes |
| 29818 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29819 | ac_cv_lib_jpeg_jpeg_read_header=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29820 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29821 | rm -f core conftest.err conftest.$ac_objext \ |
| 29822 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29823 | LIBS=$ac_check_lib_save_LIBS |
| 29824 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29825 | { $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] | 29826 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29827 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29828 | passed=`expr $passed + 1` |
| 29829 | else |
| 29830 | failed=`expr $failed + 1` |
| 29831 | fi |
| 29832 | |
| 29833 | |
| 29834 | # Test for compatible JPEG library |
| 29835 | if test "$ac_cv_jpeg_version_ok" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29836 | { $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] | 29837 | $as_echo_n "checking for JPEG library is version 6b or later... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29838 | if ${ac_cv_jpeg_version_ok+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29839 | $as_echo_n "(cached) " >&6 |
| 29840 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29841 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29842 | /* end confdefs.h. */ |
| 29843 | #include <stdio.h> |
| 29844 | #include <stdlib.h> |
| 29845 | #include <jpeglib.h> |
| 29846 | |
| 29847 | int |
| 29848 | main () |
| 29849 | { |
| 29850 | |
| 29851 | #if JPEG_LIB_VERSION < 62 |
| 29852 | #error IJG JPEG library must be version 6b or newer! |
| 29853 | #endif |
| 29854 | return 0; |
| 29855 | |
| 29856 | ; |
| 29857 | return 0; |
| 29858 | } |
| 29859 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29860 | if ac_fn_c_try_compile "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29861 | ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1` |
| 29862 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29863 | ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29864 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 29866 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29867 | { $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] | 29868 | $as_echo "$ac_cv_jpeg_version_ok" >&6; } |
| 29869 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29870 | { $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] | 29871 | $as_echo_n "checking if JPEG package is complete... " >&6; } |
| 29872 | if test $passed -gt 0; then |
| 29873 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 29875 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29876 | have_jpeg='no (failed tests)' |
| 29877 | else |
| 29878 | JPEG_LIBS='-ljpeg' |
| 29879 | LIBS="$JPEG_LIBS $LIBS" |
| 29880 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29881 | $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29882 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29884 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29885 | have_jpeg='yes' |
| 29886 | fi |
| 29887 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29889 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29890 | fi |
| 29891 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 29892 | if test "$have_jpeg" = 'yes'; then |
| 29893 | JPEG_DELEGATE_TRUE= |
| 29894 | JPEG_DELEGATE_FALSE='#' |
| 29895 | else |
| 29896 | JPEG_DELEGATE_TRUE='#' |
| 29897 | JPEG_DELEGATE_FALSE= |
| 29898 | fi |
| 29899 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29900 | |
| 29901 | |
| 29902 | |
| 29903 | # |
| 29904 | # Check for JPEG Version 2 delegate library. |
| 29905 | # |
| 29906 | |
| 29907 | # Check whether --with-jp2 was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29908 | if test "${with_jp2+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29909 | withval=$with_jp2; with_jp2=$withval |
| 29910 | else |
| 29911 | with_jp2='yes' |
| 29912 | fi |
| 29913 | |
| 29914 | |
| 29915 | if test "$with_jp2" != 'yes'; then |
| 29916 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 " |
| 29917 | fi |
| 29918 | |
| 29919 | have_jp2='no' |
| 29920 | JP2_LIBS='' |
| 29921 | if test "$with_jp2" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 29923 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29925 | $as_echo_n "checking for JPEG Version 2... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 29927 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29928 | failed=0 |
| 29929 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29930 | 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] | 29931 | if test "x$ac_cv_header_jasper_jasper_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29932 | passed=`expr $passed + 1` |
| 29933 | else |
| 29934 | failed=`expr $failed + 1` |
| 29935 | fi |
| 29936 | |
| 29937 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29938 | { $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] | 29939 | $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29940 | if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29941 | $as_echo_n "(cached) " >&6 |
| 29942 | else |
| 29943 | ac_check_lib_save_LIBS=$LIBS |
| 29944 | LIBS="-ljasper $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29946 | /* end confdefs.h. */ |
| 29947 | |
| 29948 | /* Override any GCC internal prototype to avoid an error. |
| 29949 | Use char because int might match the return type of a GCC |
| 29950 | builtin and then its argument prototype would still apply. */ |
| 29951 | #ifdef __cplusplus |
| 29952 | extern "C" |
| 29953 | #endif |
| 29954 | char jas_stream_fopen (); |
| 29955 | int |
| 29956 | main () |
| 29957 | { |
| 29958 | return jas_stream_fopen (); |
| 29959 | ; |
| 29960 | return 0; |
| 29961 | } |
| 29962 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29963 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29964 | ac_cv_lib_jasper_jas_stream_fopen=yes |
| 29965 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29966 | ac_cv_lib_jasper_jas_stream_fopen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29967 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29968 | rm -f core conftest.err conftest.$ac_objext \ |
| 29969 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29970 | LIBS=$ac_check_lib_save_LIBS |
| 29971 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29972 | { $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] | 29973 | $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 29974 | if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29975 | passed=`expr $passed + 1` |
| 29976 | else |
| 29977 | failed=`expr $failed + 1` |
| 29978 | fi |
| 29979 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29980 | { $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] | 29981 | $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; } |
| 29982 | if test $passed -gt 0; then |
| 29983 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 29985 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29986 | have_jp2='no (failed tests)' |
| 29987 | else |
| 29988 | JP2_LIBS='-ljasper' |
| 29989 | LIBS="$JP2_LIBS $LIBS" |
| 29990 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 29991 | $as_echo "#define JP2_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29992 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 29994 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 29995 | have_jp2='yes' |
| 29996 | fi |
| 29997 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 29998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 29999 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30000 | fi |
| 30001 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30002 | if test "$have_jp2" = 'yes'; then |
| 30003 | JP2_DELEGATE_TRUE= |
| 30004 | JP2_DELEGATE_FALSE='#' |
| 30005 | else |
| 30006 | JP2_DELEGATE_TRUE='#' |
| 30007 | JP2_DELEGATE_FALSE= |
| 30008 | fi |
| 30009 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30010 | |
| 30011 | |
| 30012 | |
| 30013 | # |
| 30014 | # Check for LCMS delegate library. |
| 30015 | # |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30016 | # Disable LCMS. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30017 | |
| 30018 | # Check whether --with-lcms was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30019 | if test "${with_lcms+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30020 | withval=$with_lcms; with_lcms=$withval |
| 30021 | else |
| 30022 | with_lcms='yes' |
| 30023 | fi |
| 30024 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30025 | if test "$with_lcms" != 'yes' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30026 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms " |
| 30027 | fi |
| 30028 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30029 | # Disable LCMS2. |
| 30030 | |
| 30031 | # Check whether --with-lcms2 was given. |
| 30032 | if test "${with_lcms2+set}" = set; then : |
| 30033 | withval=$with_lcms2; with_lcms2=$withval |
| 30034 | else |
| 30035 | with_lcms2='yes' |
| 30036 | fi |
| 30037 | |
| 30038 | if test "$with_lcms2" != 'yes' ; then |
| 30039 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 " |
| 30040 | fi |
| 30041 | |
| 30042 | have_lcms2='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30043 | LCMS_LIBS='' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30044 | if test "$with_lcms2" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30046 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5 |
| 30048 | $as_echo_n "checking for LCMS v2... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30050 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30051 | failed=0 |
| 30052 | passed=0 |
| 30053 | have_lcms_header='no' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30054 | |
| 30055 | # Check for <lcms2.h> |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30056 | 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] | 30057 | if test "x$ac_cv_header_lcms2_h" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30058 | have_lcms_header='yes' |
| 30059 | fi |
| 30060 | |
| 30061 | |
| 30062 | if test "$have_lcms_header" = 'yes'; then |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30063 | |
| 30064 | $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h |
| 30065 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30066 | passed=`expr $passed + 1` |
| 30067 | fi |
| 30068 | |
| 30069 | # Check for <lcms2/lcms2.h) |
| 30070 | if test "$have_lcms_header" != 'yes'; then |
| 30071 | 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] | 30072 | if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30073 | have_lcms_header='yes' |
| 30074 | fi |
| 30075 | |
| 30076 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30077 | if test "$have_lcms_header" = 'yes'; then |
| 30078 | passed=`expr $passed + 1` |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30079 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30080 | $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30081 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30082 | fi |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30083 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30084 | |
| 30085 | # Failed to find lcms header? |
| 30086 | if test "$have_lcms_header" != 'yes'; then |
| 30087 | failed=`expr $failed + 1` |
| 30088 | fi |
| 30089 | |
| 30090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5 |
| 30091 | $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30092 | if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30093 | $as_echo_n "(cached) " >&6 |
| 30094 | else |
| 30095 | ac_check_lib_save_LIBS=$LIBS |
| 30096 | LIBS="-llcms2 $LIBS" |
| 30097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30098 | /* end confdefs.h. */ |
| 30099 | |
| 30100 | /* Override any GCC internal prototype to avoid an error. |
| 30101 | Use char because int might match the return type of a GCC |
| 30102 | builtin and then its argument prototype would still apply. */ |
| 30103 | #ifdef __cplusplus |
| 30104 | extern "C" |
| 30105 | #endif |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30106 | char cmsSetLogErrorHandler (); |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30107 | int |
| 30108 | main () |
| 30109 | { |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30110 | return cmsSetLogErrorHandler (); |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30111 | ; |
| 30112 | return 0; |
| 30113 | } |
| 30114 | _ACEOF |
| 30115 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30116 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30117 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30118 | ac_cv_lib_lcms2_cmsSetLogErrorHandler=no |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30119 | fi |
| 30120 | rm -f core conftest.err conftest.$ac_objext \ |
| 30121 | conftest$ac_exeext conftest.$ac_ext |
| 30122 | LIBS=$ac_check_lib_save_LIBS |
| 30123 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5 |
| 30125 | $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30126 | if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then : |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30127 | passed=`expr $passed + 1` |
| 30128 | else |
| 30129 | failed=`expr $failed + 1` |
| 30130 | fi |
| 30131 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5 |
| 30133 | $as_echo_n "checking if LCMS v2 package is complete... " >&6; } |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30134 | if test $passed -gt 0; then |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30135 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 30137 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30138 | have_lcms2='no (failed tests)' |
| 30139 | else |
| 30140 | LCMS_LIBS='-llcms2' |
| 30141 | LIBS="$LCMS_LIBS $LIBS" |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30143 | $as_echo "yes" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30144 | have_lcms2='yes' |
| 30145 | fi |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30146 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30148 | $as_echo "no" >&6; } |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30149 | fi |
| 30150 | fi |
| 30151 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30152 | # |
| 30153 | # Check for LCMS v1 (1.11 or later) |
| 30154 | # |
| 30155 | if test $have_lcms2 = 'yes'; then |
| 30156 | with_lcms='no' |
| 30157 | fi |
| 30158 | |
| 30159 | have_lcms='no' |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30160 | if test "$with_lcms" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30162 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5 |
| 30164 | $as_echo_n "checking for LCMS v1.1X... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30166 | $as_echo "" >&6; } |
| cristy | d09bcf9 | 2010-03-25 03:04:45 +0000 | [diff] [blame] | 30167 | failed=0 |
| 30168 | passed=0 |
| 30169 | have_lcms_header='no' |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30170 | |
| 30171 | # Check for <lcms.h> |
| 30172 | if test "$have_lcms_header" != 'yes'; then |
| 30173 | 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] | 30174 | if test "x$ac_cv_header_lcms_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30175 | have_lcms_header='yes' |
| 30176 | fi |
| 30177 | |
| 30178 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30179 | if test "$have_lcms_header" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30180 | passed=`expr $passed + 1` |
| 30181 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30182 | $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30183 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30184 | fi |
| 30185 | fi |
| 30186 | |
| 30187 | # Check for <lcms/lcms.h> |
| 30188 | if test "$have_lcms_header" != 'yes'; then |
| 30189 | 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] | 30190 | if test "x$ac_cv_header_lcms_lcms_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30191 | have_lcms_header='yes' |
| 30192 | fi |
| 30193 | |
| 30194 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30195 | if test "$have_lcms_header" = 'yes'; then |
| 30196 | passed=`expr $passed + 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30197 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30198 | $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30199 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30200 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30201 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30202 | |
| 30203 | # Failed to find lcms header? |
| 30204 | if test "$have_lcms_header" != 'yes'; then |
| 30205 | failed=`expr $failed + 1` |
| 30206 | fi |
| 30207 | |
| 30208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5 |
| 30209 | $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30210 | if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30211 | $as_echo_n "(cached) " >&6 |
| 30212 | else |
| 30213 | ac_check_lib_save_LIBS=$LIBS |
| 30214 | LIBS="-llcms $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30216 | /* end confdefs.h. */ |
| 30217 | |
| 30218 | /* Override any GCC internal prototype to avoid an error. |
| 30219 | Use char because int might match the return type of a GCC |
| 30220 | builtin and then its argument prototype would still apply. */ |
| 30221 | #ifdef __cplusplus |
| 30222 | extern "C" |
| 30223 | #endif |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30224 | char cmsSetErrorHandler (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30225 | int |
| 30226 | main () |
| 30227 | { |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30228 | return cmsSetErrorHandler (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30229 | ; |
| 30230 | return 0; |
| 30231 | } |
| 30232 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30233 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30234 | ac_cv_lib_lcms_cmsSetErrorHandler=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30235 | else |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30236 | ac_cv_lib_lcms_cmsSetErrorHandler=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30237 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30238 | rm -f core conftest.err conftest.$ac_objext \ |
| 30239 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30240 | LIBS=$ac_check_lib_save_LIBS |
| 30241 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5 |
| 30243 | $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 30244 | if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30245 | passed=`expr $passed + 1` |
| 30246 | else |
| 30247 | failed=`expr $failed + 1` |
| 30248 | fi |
| 30249 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30250 | { $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] | 30251 | $as_echo_n "checking if LCMS package is complete... " >&6; } |
| 30252 | if test $passed -gt 0; then |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30253 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 30255 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30256 | have_lcms='no (failed tests)' |
| 30257 | else |
| 30258 | LCMS_LIBS='-llcms' |
| 30259 | LIBS="$LCMS_LIBS $LIBS" |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30261 | $as_echo "yes" >&6; } |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30262 | have_lcms='yes' |
| 30263 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30264 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30266 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30267 | fi |
| 30268 | fi |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30269 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30270 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 30271 | LCMS_DELEGATE_TRUE= |
| 30272 | LCMS_DELEGATE_FALSE='#' |
| 30273 | else |
| 30274 | LCMS_DELEGATE_TRUE='#' |
| 30275 | LCMS_DELEGATE_FALSE= |
| 30276 | fi |
| 30277 | |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 30278 | if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then |
| 30279 | |
| 30280 | $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h |
| 30281 | |
| 30282 | fi |
| 30283 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30284 | |
| 30285 | |
| 30286 | |
| 30287 | # |
| 30288 | # Check for the LQR (Liquid Rescale) delegate library. |
| 30289 | # |
| 30290 | |
| 30291 | # Check whether --with-lqr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30292 | if test "${with_lqr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30293 | withval=$with_lqr; with_lqr=$withval |
| 30294 | else |
| 30295 | with_lqr='yes' |
| 30296 | fi |
| 30297 | |
| 30298 | |
| 30299 | if test "$with_lqr" != 'yes'; then |
| 30300 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr " |
| 30301 | fi |
| 30302 | |
| 30303 | have_lqr='no' |
| 30304 | LQR_CFLAGS="" |
| 30305 | LQR_LIBS="" |
| 30306 | LQR_PKG="" |
| 30307 | if test "x$with_lqr" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30309 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30310 | |
| 30311 | pkg_failed=no |
| 30312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5 |
| 30313 | $as_echo_n "checking for LQR... " >&6; } |
| 30314 | |
| 30315 | if test -n "$LQR_CFLAGS"; then |
| 30316 | pkg_cv_LQR_CFLAGS="$LQR_CFLAGS" |
| 30317 | elif test -n "$PKG_CONFIG"; then |
| 30318 | if test -n "$PKG_CONFIG" && \ |
| 30319 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| 30320 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 30321 | ac_status=$? |
| 30322 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30323 | test $ac_status = 0; }; then |
| 30324 | pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null` |
| 30325 | else |
| 30326 | pkg_failed=yes |
| 30327 | fi |
| 30328 | else |
| 30329 | pkg_failed=untried |
| 30330 | fi |
| 30331 | if test -n "$LQR_LIBS"; then |
| 30332 | pkg_cv_LQR_LIBS="$LQR_LIBS" |
| 30333 | elif test -n "$PKG_CONFIG"; then |
| 30334 | if test -n "$PKG_CONFIG" && \ |
| 30335 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5 |
| 30336 | ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5 |
| 30337 | ac_status=$? |
| 30338 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30339 | test $ac_status = 0; }; then |
| 30340 | pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null` |
| 30341 | else |
| 30342 | pkg_failed=yes |
| 30343 | fi |
| 30344 | else |
| 30345 | pkg_failed=untried |
| 30346 | fi |
| 30347 | |
| 30348 | |
| 30349 | |
| 30350 | if test $pkg_failed = yes; then |
| 30351 | |
| 30352 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30353 | _pkg_short_errors_supported=yes |
| 30354 | else |
| 30355 | _pkg_short_errors_supported=no |
| 30356 | fi |
| 30357 | if test $_pkg_short_errors_supported = yes; then |
| 30358 | LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 30359 | else |
| 30360 | LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1` |
| 30361 | fi |
| 30362 | # Put the nasty error message in config.log where it belongs |
| 30363 | echo "$LQR_PKG_ERRORS" >&5 |
| 30364 | |
| 30365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30366 | $as_echo "no" >&6; } |
| 30367 | have_lqr=no |
| 30368 | elif test $pkg_failed = untried; then |
| 30369 | have_lqr=no |
| 30370 | else |
| 30371 | LQR_CFLAGS=$pkg_cv_LQR_CFLAGS |
| 30372 | LQR_LIBS=$pkg_cv_LQR_LIBS |
| 30373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30374 | $as_echo "yes" >&6; } |
| 30375 | have_lqr=yes |
| 30376 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30378 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30379 | fi |
| 30380 | |
| 30381 | if test "$have_lqr" = 'yes'; then |
| 30382 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30383 | $as_echo "#define LQR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30384 | |
| 30385 | CFLAGS="$LQR_CFLAGS $CFLAGS" |
| 30386 | fi |
| 30387 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30388 | if test "$have_lqr" = 'yes'; then |
| 30389 | LQR_DELEGATE_TRUE= |
| 30390 | LQR_DELEGATE_FALSE='#' |
| 30391 | else |
| 30392 | LQR_DELEGATE_TRUE='#' |
| 30393 | LQR_DELEGATE_FALSE= |
| 30394 | fi |
| 30395 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30396 | |
| 30397 | |
| 30398 | |
| 30399 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30400 | # Disable LZMA (lzma library) |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30401 | |
| 30402 | # Check whether --with-lzma was given. |
| 30403 | if test "${with_lzma+set}" = set; then : |
| 30404 | withval=$with_lzma; with_lzma=$withval |
| 30405 | else |
| 30406 | with_lzma='yes' |
| 30407 | fi |
| 30408 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30409 | if test "$with_lzma" != 'yes' ; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30410 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma " |
| 30411 | fi |
| 30412 | |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30413 | LZMA_PKG="" |
| 30414 | if test "x$with_lzma" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30416 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30417 | |
| 30418 | pkg_failed=no |
| 30419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5 |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30420 | $as_echo_n "checking for LZMA... " >&6; } |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30421 | |
| 30422 | if test -n "$LZMA_CFLAGS"; then |
| 30423 | pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS" |
| 30424 | elif test -n "$PKG_CONFIG"; then |
| 30425 | if test -n "$PKG_CONFIG" && \ |
| 30426 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 |
| 30427 | ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 |
| 30428 | ac_status=$? |
| 30429 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30430 | test $ac_status = 0; }; then |
| 30431 | pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null` |
| 30432 | else |
| 30433 | pkg_failed=yes |
| 30434 | fi |
| 30435 | else |
| 30436 | pkg_failed=untried |
| 30437 | fi |
| 30438 | if test -n "$LZMA_LIBS"; then |
| 30439 | pkg_cv_LZMA_LIBS="$LZMA_LIBS" |
| 30440 | elif test -n "$PKG_CONFIG"; then |
| 30441 | if test -n "$PKG_CONFIG" && \ |
| 30442 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5 |
| 30443 | ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5 |
| 30444 | ac_status=$? |
| 30445 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30446 | test $ac_status = 0; }; then |
| 30447 | pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null` |
| 30448 | else |
| 30449 | pkg_failed=yes |
| 30450 | fi |
| 30451 | else |
| 30452 | pkg_failed=untried |
| 30453 | fi |
| 30454 | |
| 30455 | |
| 30456 | |
| 30457 | if test $pkg_failed = yes; then |
| 30458 | |
| 30459 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30460 | _pkg_short_errors_supported=yes |
| 30461 | else |
| 30462 | _pkg_short_errors_supported=no |
| 30463 | fi |
| 30464 | if test $_pkg_short_errors_supported = yes; then |
| 30465 | LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1` |
| 30466 | else |
| 30467 | LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1` |
| 30468 | fi |
| 30469 | # Put the nasty error message in config.log where it belongs |
| 30470 | echo "$LZMA_PKG_ERRORS" >&5 |
| 30471 | |
| 30472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30473 | $as_echo "no" >&6; } |
| 30474 | have_lzma=no |
| 30475 | elif test $pkg_failed = untried; then |
| 30476 | have_lzma=no |
| 30477 | else |
| 30478 | LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS |
| 30479 | LZMA_LIBS=$pkg_cv_LZMA_LIBS |
| 30480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30481 | $as_echo "yes" >&6; } |
| 30482 | have_lzma=yes |
| 30483 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30485 | $as_echo "" >&6; } |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30486 | fi |
| 30487 | |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30488 | if test "$have_lzma" = 'yes'; then |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30489 | |
| 30490 | $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h |
| 30491 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 30492 | if test "$build_modules" = 'no'; then |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30493 | CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS" |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30494 | fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30495 | fi |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30496 | |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 30497 | if test "$have_lzma" = 'yes'; then |
| 30498 | LZMA_DELEGATE_TRUE= |
| 30499 | LZMA_DELEGATE_FALSE='#' |
| 30500 | else |
| 30501 | LZMA_DELEGATE_TRUE='#' |
| 30502 | LZMA_DELEGATE_FALSE= |
| 30503 | fi |
| 30504 | |
| 30505 | |
| 30506 | |
| 30507 | |
| cristy | b94e500 | 2011-11-14 13:20:10 +0000 | [diff] [blame] | 30508 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30509 | # |
| 30510 | # Check for the OpenEXR delegate library. |
| 30511 | # |
| 30512 | |
| 30513 | # Check whether --with-openexr was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30514 | if test "${with_openexr+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30515 | withval=$with_openexr; with_openexr=$withval |
| 30516 | else |
| 30517 | with_openexr='yes' |
| 30518 | fi |
| 30519 | |
| 30520 | |
| 30521 | if test "$with_openexr" != 'yes'; then |
| 30522 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr " |
| 30523 | fi |
| 30524 | |
| 30525 | have_openexr='no' |
| 30526 | OPENEXR_CFLAGS="" |
| 30527 | OPENEXR_LIBS="" |
| 30528 | OPENEXR_PKG="" |
| 30529 | if test "x$with_openexr" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30531 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30532 | |
| 30533 | pkg_failed=no |
| 30534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5 |
| 30535 | $as_echo_n "checking for OPENEXR... " >&6; } |
| 30536 | |
| 30537 | if test -n "$OPENEXR_CFLAGS"; then |
| 30538 | pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS" |
| 30539 | elif test -n "$PKG_CONFIG"; then |
| 30540 | if test -n "$PKG_CONFIG" && \ |
| 30541 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| 30542 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 30543 | ac_status=$? |
| 30544 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30545 | test $ac_status = 0; }; then |
| 30546 | pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null` |
| 30547 | else |
| 30548 | pkg_failed=yes |
| 30549 | fi |
| 30550 | else |
| 30551 | pkg_failed=untried |
| 30552 | fi |
| 30553 | if test -n "$OPENEXR_LIBS"; then |
| 30554 | pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS" |
| 30555 | elif test -n "$PKG_CONFIG"; then |
| 30556 | if test -n "$PKG_CONFIG" && \ |
| 30557 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5 |
| 30558 | ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5 |
| 30559 | ac_status=$? |
| 30560 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30561 | test $ac_status = 0; }; then |
| 30562 | pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null` |
| 30563 | else |
| 30564 | pkg_failed=yes |
| 30565 | fi |
| 30566 | else |
| 30567 | pkg_failed=untried |
| 30568 | fi |
| 30569 | |
| 30570 | |
| 30571 | |
| 30572 | if test $pkg_failed = yes; then |
| 30573 | |
| 30574 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30575 | _pkg_short_errors_supported=yes |
| 30576 | else |
| 30577 | _pkg_short_errors_supported=no |
| 30578 | fi |
| 30579 | if test $_pkg_short_errors_supported = yes; then |
| 30580 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 30581 | else |
| 30582 | OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1` |
| 30583 | fi |
| 30584 | # Put the nasty error message in config.log where it belongs |
| 30585 | echo "$OPENEXR_PKG_ERRORS" >&5 |
| 30586 | |
| 30587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30588 | $as_echo "no" >&6; } |
| 30589 | have_openexr=no |
| 30590 | elif test $pkg_failed = untried; then |
| 30591 | have_openexr=no |
| 30592 | else |
| 30593 | OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS |
| 30594 | OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS |
| 30595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30596 | $as_echo "yes" >&6; } |
| 30597 | have_openexr=yes |
| 30598 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30600 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30601 | fi |
| 30602 | |
| 30603 | if test "$have_openexr" = 'yes'; then |
| 30604 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30605 | $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30606 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 30607 | if test "$build_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30608 | CFLAGS="$OPENEXR_CFLAGS $CFLAGS" |
| 30609 | fi |
| 30610 | fi |
| 30611 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 30612 | if test "$have_openexr" = 'yes'; then |
| 30613 | OPENEXR_DELEGATE_TRUE= |
| 30614 | OPENEXR_DELEGATE_FALSE='#' |
| 30615 | else |
| 30616 | OPENEXR_DELEGATE_TRUE='#' |
| 30617 | OPENEXR_DELEGATE_FALSE= |
| 30618 | fi |
| 30619 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30620 | |
| 30621 | |
| 30622 | |
| 30623 | |
| 30624 | # |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30625 | # Check for PANGO delegate library. |
| 30626 | # |
| 30627 | |
| 30628 | # Check whether --with-pango was given. |
| 30629 | if test "${with_pango+set}" = set; then : |
| 30630 | withval=$with_pango; with_pango=$withval |
| 30631 | else |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 30632 | with_pango='yes' |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30633 | fi |
| 30634 | |
| 30635 | |
| 30636 | if test "$with_pango" != 'yes'; then |
| 30637 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango " |
| 30638 | fi |
| 30639 | |
| 30640 | have_pango='no' |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30641 | have_pangocairo='no' |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30642 | PANGO_CFLAGS="" |
| 30643 | PANGO_LIBS="" |
| 30644 | PANGO_PKG="" |
| 30645 | if test "x$with_pango" = "xyes"; then |
| 30646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30647 | $as_echo "-------------------------------------------------------------" >&6; } |
| 30648 | |
| 30649 | pkg_failed=no |
| 30650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 |
| 30651 | $as_echo_n "checking for PANGO... " >&6; } |
| 30652 | |
| 30653 | if test -n "$PANGO_CFLAGS"; then |
| 30654 | pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" |
| 30655 | elif test -n "$PKG_CONFIG"; then |
| 30656 | if test -n "$PKG_CONFIG" && \ |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30657 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 |
| 30658 | ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30659 | ac_status=$? |
| 30660 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30661 | test $ac_status = 0; }; then |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30662 | pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30663 | else |
| 30664 | pkg_failed=yes |
| 30665 | fi |
| 30666 | else |
| 30667 | pkg_failed=untried |
| 30668 | fi |
| 30669 | if test -n "$PANGO_LIBS"; then |
| 30670 | pkg_cv_PANGO_LIBS="$PANGO_LIBS" |
| 30671 | elif test -n "$PKG_CONFIG"; then |
| 30672 | if test -n "$PKG_CONFIG" && \ |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30673 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5 |
| 30674 | ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5 |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30675 | ac_status=$? |
| 30676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30677 | test $ac_status = 0; }; then |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30678 | pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30679 | else |
| 30680 | pkg_failed=yes |
| 30681 | fi |
| 30682 | else |
| 30683 | pkg_failed=untried |
| 30684 | fi |
| 30685 | |
| 30686 | |
| 30687 | |
| 30688 | if test $pkg_failed = yes; then |
| 30689 | |
| 30690 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30691 | _pkg_short_errors_supported=yes |
| 30692 | else |
| 30693 | _pkg_short_errors_supported=no |
| 30694 | fi |
| 30695 | if test $_pkg_short_errors_supported = yes; then |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30696 | PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30697 | else |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30698 | PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1` |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30699 | fi |
| 30700 | # Put the nasty error message in config.log where it belongs |
| 30701 | echo "$PANGO_PKG_ERRORS" >&5 |
| 30702 | |
| 30703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30704 | $as_echo "no" >&6; } |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30705 | have_pangocairo=no |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30706 | elif test $pkg_failed = untried; then |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30707 | have_pangocairo=no |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30708 | else |
| 30709 | PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS |
| 30710 | PANGO_LIBS=$pkg_cv_PANGO_LIBS |
| 30711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30712 | $as_echo "yes" >&6; } |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30713 | have_pangocairo=yes |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30714 | fi |
| 30715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30716 | $as_echo "" >&6; } |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30717 | |
| 30718 | pkg_failed=no |
| 30719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5 |
| 30720 | $as_echo_n "checking for PANGO... " >&6; } |
| 30721 | |
| 30722 | if test -n "$PANGO_CFLAGS"; then |
| 30723 | pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS" |
| 30724 | elif test -n "$PKG_CONFIG"; then |
| 30725 | if test -n "$PKG_CONFIG" && \ |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30726 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 |
| 30727 | ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30728 | ac_status=$? |
| 30729 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30730 | test $ac_status = 0; }; then |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30731 | pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30732 | else |
| 30733 | pkg_failed=yes |
| 30734 | fi |
| 30735 | else |
| 30736 | pkg_failed=untried |
| 30737 | fi |
| 30738 | if test -n "$PANGO_LIBS"; then |
| 30739 | pkg_cv_PANGO_LIBS="$PANGO_LIBS" |
| 30740 | elif test -n "$PKG_CONFIG"; then |
| 30741 | if test -n "$PKG_CONFIG" && \ |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30742 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5 |
| 30743 | ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5 |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30744 | ac_status=$? |
| 30745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 30746 | test $ac_status = 0; }; then |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30747 | pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30748 | else |
| 30749 | pkg_failed=yes |
| 30750 | fi |
| 30751 | else |
| 30752 | pkg_failed=untried |
| 30753 | fi |
| 30754 | |
| 30755 | |
| 30756 | |
| 30757 | if test $pkg_failed = yes; then |
| 30758 | |
| 30759 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 30760 | _pkg_short_errors_supported=yes |
| 30761 | else |
| 30762 | _pkg_short_errors_supported=no |
| 30763 | fi |
| 30764 | if test $_pkg_short_errors_supported = yes; then |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30765 | PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30766 | else |
| cristy | 2542fc6 | 2011-12-06 17:50:25 +0000 | [diff] [blame] | 30767 | PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1` |
| cristy | 7dc48ed | 2011-10-28 14:11:43 +0000 | [diff] [blame] | 30768 | fi |
| 30769 | # Put the nasty error message in config.log where it belongs |
| 30770 | echo "$PANGO_PKG_ERRORS" >&5 |
| 30771 | |
| 30772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30773 | $as_echo "no" >&6; } |
| 30774 | have_pango=no |
| 30775 | elif test $pkg_failed = untried; then |
| 30776 | have_pango=no |
| 30777 | else |
| 30778 | PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS |
| 30779 | PANGO_LIBS=$pkg_cv_PANGO_LIBS |
| 30780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30781 | $as_echo "yes" >&6; } |
| 30782 | have_pango=yes |
| 30783 | fi |
| 30784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30785 | $as_echo "" >&6; } |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30786 | fi |
| 30787 | |
| 30788 | if test "$have_pango" = 'yes'; then |
| 30789 | |
| 30790 | $as_echo "#define PANGO_DELEGATE 1" >>confdefs.h |
| 30791 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 30792 | if test "$build_modules" = 'no'; then |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30793 | CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS" |
| 30794 | fi |
| 30795 | fi |
| 30796 | |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30797 | if test "$have_pangocairo" = 'yes'; then |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30798 | |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30799 | $as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30800 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 30801 | if test "$build_modules" = 'no'; then |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30802 | CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS" |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30803 | fi |
| 30804 | fi |
| 30805 | |
| 30806 | if test "$have_pango" = 'yes'; then |
| 30807 | PANGO_DELEGATE_TRUE= |
| 30808 | PANGO_DELEGATE_FALSE='#' |
| 30809 | else |
| 30810 | PANGO_DELEGATE_TRUE='#' |
| 30811 | PANGO_DELEGATE_FALSE= |
| 30812 | fi |
| 30813 | |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30814 | if test "$have_pangocairo" = 'yes'; then |
| 30815 | PANGOCAIRO_DELEGATE_TRUE= |
| 30816 | PANGOCAIRO_DELEGATE_FALSE='#' |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30817 | else |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 30818 | PANGOCAIRO_DELEGATE_TRUE='#' |
| 30819 | PANGOCAIRO_DELEGATE_FALSE= |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 30820 | fi |
| 30821 | |
| 30822 | |
| 30823 | |
| 30824 | |
| 30825 | |
| 30826 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30827 | # Check for PNG delegate library. |
| 30828 | # |
| 30829 | |
| 30830 | # Check whether --with-png was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 30831 | if test "${with_png+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30832 | withval=$with_png; with_png=$withval |
| 30833 | else |
| 30834 | with_png='yes' |
| 30835 | fi |
| 30836 | |
| 30837 | |
| 30838 | if test "$with_png" != 'yes'; then |
| 30839 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png " |
| 30840 | fi |
| 30841 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30842 | have_png='no' |
| 30843 | PNG_LIBS='' |
| 30844 | |
| 30845 | if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 30847 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5 |
| 30849 | $as_echo_n "checking for PNG support ... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 30851 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30852 | failed=0 |
| 30853 | passed=0 |
| 30854 | ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" |
| 30855 | if test "x$ac_cv_header_png_h" = xyes; then : |
| 30856 | passed=`expr $passed + 1` |
| 30857 | else |
| 30858 | failed=`expr $failed + 1` |
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 30859 | fi |
| 30860 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30861 | |
| 30862 | |
| 30863 | if test $passed -gt 0; then |
| glennrp | 3fc1c21 | 2013-01-10 01:52:32 +0000 | [diff] [blame] | 30864 | for var in 7 6 5 4 2 '' ; do |
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30865 | if test "$have_png" = 'no' ; then |
| 30866 | if test "x${var}" = 'x' ; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30867 | pnglib='png' |
| 30868 | else |
| 30869 | pnglib="png1${var}" |
| 30870 | fi |
| 30871 | |
| 30872 | # Test for compatible LIBPNG library |
| 30873 | failed=0 |
| 30874 | passed=0 |
| cristy | 0615f0e | 2011-10-12 11:36:46 +0000 | [diff] [blame] | 30875 | if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30876 | if test "${pnglib}" != 'png' ; then |
| 30877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5 |
| 30878 | $as_echo_n "checking for LIBPNG1${var} support ... " >&6; } |
| 30879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30880 | /* end confdefs.h. */ |
| 30881 | #include <stdio.h> |
| 30882 | #include <stdlib.h> |
| 30883 | #include <png.h> |
| 30884 | |
| 30885 | int |
| 30886 | main () |
| 30887 | { |
| 30888 | |
| 30889 | #if PNG_LIBPNG_VER_MINOR != ${var} |
| 30890 | #error LIBPNG library must be version 1${var}! |
| 30891 | Kaboom, Kaboom |
| 30892 | #endif |
| 30893 | return 0; |
| 30894 | |
| 30895 | ; |
| 30896 | return 0; |
| 30897 | } |
| 30898 | _ACEOF |
| 30899 | if ac_fn_c_try_compile "$LINENO"; then : |
| 30900 | ac_cv_libpng_ok='yes' |
| 30901 | else |
| 30902 | ac_cv_libpng_ok='no' |
| 30903 | fi |
| 30904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 30905 | if test "$ac_cv_libpng_ok" = 'yes' ; then |
| 30906 | passed=`expr $passed + 1` |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30908 | $as_echo "yes" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30909 | else |
| 30910 | failed=`expr $failed + 1` |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30912 | $as_echo "no" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30913 | fi |
| 30914 | else |
| 30915 | passed=`expr $passed + 1` |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 30916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30917 | $as_echo "yes" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 30918 | fi |
| 30919 | fi |
| 30920 | |
| 30921 | if test $passed -gt 0 -a $failed -le 0; then |
| cristy | 03f187e | 2013-01-24 00:22:19 +0000 | [diff] [blame] | 30922 | if test "1${var}" = '17' ; then |
| 30923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng17" >&5 |
| 30924 | $as_echo_n "checking for png_get_io_ptr in -lpng17... " >&6; } |
| 30925 | if ${ac_cv_lib_png17_png_get_io_ptr+:} false; then : |
| 30926 | $as_echo_n "(cached) " >&6 |
| 30927 | else |
| 30928 | ac_check_lib_save_LIBS=$LIBS |
| 30929 | LIBS="-lpng17 $LIBS" |
| 30930 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30931 | /* end confdefs.h. */ |
| 30932 | |
| 30933 | /* Override any GCC internal prototype to avoid an error. |
| 30934 | Use char because int might match the return type of a GCC |
| 30935 | builtin and then its argument prototype would still apply. */ |
| 30936 | #ifdef __cplusplus |
| 30937 | extern "C" |
| 30938 | #endif |
| 30939 | char png_get_io_ptr (); |
| 30940 | int |
| 30941 | main () |
| 30942 | { |
| 30943 | return png_get_io_ptr (); |
| 30944 | ; |
| 30945 | return 0; |
| 30946 | } |
| 30947 | _ACEOF |
| 30948 | if ac_fn_c_try_link "$LINENO"; then : |
| 30949 | ac_cv_lib_png17_png_get_io_ptr=yes |
| 30950 | else |
| 30951 | ac_cv_lib_png17_png_get_io_ptr=no |
| 30952 | fi |
| 30953 | rm -f core conftest.err conftest.$ac_objext \ |
| 30954 | conftest$ac_exeext conftest.$ac_ext |
| 30955 | LIBS=$ac_check_lib_save_LIBS |
| 30956 | fi |
| 30957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_get_io_ptr" >&5 |
| 30958 | $as_echo "$ac_cv_lib_png17_png_get_io_ptr" >&6; } |
| 30959 | if test "x$ac_cv_lib_png17_png_get_io_ptr" = xyes; then : |
| 30960 | passed=`expr $passed + 1` |
| 30961 | else |
| 30962 | failed=`expr $failed + 1` |
| 30963 | fi |
| 30964 | |
| 30965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng17" >&5 |
| 30966 | $as_echo_n "checking for png_longjmp in -lpng17... " >&6; } |
| 30967 | if ${ac_cv_lib_png17_png_longjmp+:} false; then : |
| 30968 | $as_echo_n "(cached) " >&6 |
| 30969 | else |
| 30970 | ac_check_lib_save_LIBS=$LIBS |
| 30971 | LIBS="-lpng17 $LIBS" |
| 30972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30973 | /* end confdefs.h. */ |
| 30974 | |
| 30975 | /* Override any GCC internal prototype to avoid an error. |
| 30976 | Use char because int might match the return type of a GCC |
| 30977 | builtin and then its argument prototype would still apply. */ |
| 30978 | #ifdef __cplusplus |
| 30979 | extern "C" |
| 30980 | #endif |
| 30981 | char png_longjmp (); |
| 30982 | int |
| 30983 | main () |
| 30984 | { |
| 30985 | return png_longjmp (); |
| 30986 | ; |
| 30987 | return 0; |
| 30988 | } |
| 30989 | _ACEOF |
| 30990 | if ac_fn_c_try_link "$LINENO"; then : |
| 30991 | ac_cv_lib_png17_png_longjmp=yes |
| 30992 | else |
| 30993 | ac_cv_lib_png17_png_longjmp=no |
| 30994 | fi |
| 30995 | rm -f core conftest.err conftest.$ac_objext \ |
| 30996 | conftest$ac_exeext conftest.$ac_ext |
| 30997 | LIBS=$ac_check_lib_save_LIBS |
| 30998 | fi |
| 30999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png17_png_longjmp" >&5 |
| 31000 | $as_echo "$ac_cv_lib_png17_png_longjmp" >&6; } |
| 31001 | if test "x$ac_cv_lib_png17_png_longjmp" = xyes; then : |
| 31002 | passed=`expr $passed + 1` |
| 31003 | else |
| 31004 | failed=`expr $failed + 1` |
| 31005 | fi |
| 31006 | |
| 31007 | fi |
| 31008 | if test "1${var}" = '16' ; then |
| 31009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng16" >&5 |
| 31010 | $as_echo_n "checking for png_get_io_ptr in -lpng16... " >&6; } |
| 31011 | if ${ac_cv_lib_png16_png_get_io_ptr+:} false; then : |
| 31012 | $as_echo_n "(cached) " >&6 |
| 31013 | else |
| 31014 | ac_check_lib_save_LIBS=$LIBS |
| 31015 | LIBS="-lpng16 $LIBS" |
| 31016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31017 | /* end confdefs.h. */ |
| 31018 | |
| 31019 | /* Override any GCC internal prototype to avoid an error. |
| 31020 | Use char because int might match the return type of a GCC |
| 31021 | builtin and then its argument prototype would still apply. */ |
| 31022 | #ifdef __cplusplus |
| 31023 | extern "C" |
| 31024 | #endif |
| 31025 | char png_get_io_ptr (); |
| 31026 | int |
| 31027 | main () |
| 31028 | { |
| 31029 | return png_get_io_ptr (); |
| 31030 | ; |
| 31031 | return 0; |
| 31032 | } |
| 31033 | _ACEOF |
| 31034 | if ac_fn_c_try_link "$LINENO"; then : |
| 31035 | ac_cv_lib_png16_png_get_io_ptr=yes |
| 31036 | else |
| 31037 | ac_cv_lib_png16_png_get_io_ptr=no |
| 31038 | fi |
| 31039 | rm -f core conftest.err conftest.$ac_objext \ |
| 31040 | conftest$ac_exeext conftest.$ac_ext |
| 31041 | LIBS=$ac_check_lib_save_LIBS |
| 31042 | fi |
| 31043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_get_io_ptr" >&5 |
| 31044 | $as_echo "$ac_cv_lib_png16_png_get_io_ptr" >&6; } |
| 31045 | if test "x$ac_cv_lib_png16_png_get_io_ptr" = xyes; then : |
| 31046 | passed=`expr $passed + 1` |
| 31047 | else |
| 31048 | failed=`expr $failed + 1` |
| 31049 | fi |
| 31050 | |
| 31051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng16" >&5 |
| 31052 | $as_echo_n "checking for png_longjmp in -lpng16... " >&6; } |
| 31053 | if ${ac_cv_lib_png16_png_longjmp+:} false; then : |
| 31054 | $as_echo_n "(cached) " >&6 |
| 31055 | else |
| 31056 | ac_check_lib_save_LIBS=$LIBS |
| 31057 | LIBS="-lpng16 $LIBS" |
| 31058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31059 | /* end confdefs.h. */ |
| 31060 | |
| 31061 | /* Override any GCC internal prototype to avoid an error. |
| 31062 | Use char because int might match the return type of a GCC |
| 31063 | builtin and then its argument prototype would still apply. */ |
| 31064 | #ifdef __cplusplus |
| 31065 | extern "C" |
| 31066 | #endif |
| 31067 | char png_longjmp (); |
| 31068 | int |
| 31069 | main () |
| 31070 | { |
| 31071 | return png_longjmp (); |
| 31072 | ; |
| 31073 | return 0; |
| 31074 | } |
| 31075 | _ACEOF |
| 31076 | if ac_fn_c_try_link "$LINENO"; then : |
| 31077 | ac_cv_lib_png16_png_longjmp=yes |
| 31078 | else |
| 31079 | ac_cv_lib_png16_png_longjmp=no |
| 31080 | fi |
| 31081 | rm -f core conftest.err conftest.$ac_objext \ |
| 31082 | conftest$ac_exeext conftest.$ac_ext |
| 31083 | LIBS=$ac_check_lib_save_LIBS |
| 31084 | fi |
| 31085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png16_png_longjmp" >&5 |
| 31086 | $as_echo "$ac_cv_lib_png16_png_longjmp" >&6; } |
| 31087 | if test "x$ac_cv_lib_png16_png_longjmp" = xyes; then : |
| 31088 | passed=`expr $passed + 1` |
| 31089 | else |
| 31090 | failed=`expr $failed + 1` |
| 31091 | fi |
| 31092 | |
| 31093 | fi |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31094 | if test "1${var}" = '15' ; then |
| 31095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5 |
| 31096 | $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; } |
| 31097 | if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then : |
| 31098 | $as_echo_n "(cached) " >&6 |
| 31099 | else |
| 31100 | ac_check_lib_save_LIBS=$LIBS |
| 31101 | LIBS="-lpng15 $LIBS" |
| 31102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31103 | /* end confdefs.h. */ |
| 31104 | |
| 31105 | /* Override any GCC internal prototype to avoid an error. |
| 31106 | Use char because int might match the return type of a GCC |
| 31107 | builtin and then its argument prototype would still apply. */ |
| 31108 | #ifdef __cplusplus |
| 31109 | extern "C" |
| 31110 | #endif |
| 31111 | char png_get_io_ptr (); |
| 31112 | int |
| 31113 | main () |
| 31114 | { |
| 31115 | return png_get_io_ptr (); |
| 31116 | ; |
| 31117 | return 0; |
| 31118 | } |
| 31119 | _ACEOF |
| 31120 | if ac_fn_c_try_link "$LINENO"; then : |
| 31121 | ac_cv_lib_png15_png_get_io_ptr=yes |
| 31122 | else |
| 31123 | ac_cv_lib_png15_png_get_io_ptr=no |
| 31124 | fi |
| 31125 | rm -f core conftest.err conftest.$ac_objext \ |
| 31126 | conftest$ac_exeext conftest.$ac_ext |
| 31127 | LIBS=$ac_check_lib_save_LIBS |
| 31128 | fi |
| 31129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5 |
| 31130 | $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; } |
| 31131 | if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then : |
| 31132 | passed=`expr $passed + 1` |
| 31133 | else |
| 31134 | failed=`expr $failed + 1` |
| 31135 | fi |
| 31136 | |
| 31137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5 |
| 31138 | $as_echo_n "checking for png_longjmp in -lpng15... " >&6; } |
| 31139 | if ${ac_cv_lib_png15_png_longjmp+:} false; then : |
| 31140 | $as_echo_n "(cached) " >&6 |
| 31141 | else |
| 31142 | ac_check_lib_save_LIBS=$LIBS |
| 31143 | LIBS="-lpng15 $LIBS" |
| 31144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31145 | /* end confdefs.h. */ |
| 31146 | |
| 31147 | /* Override any GCC internal prototype to avoid an error. |
| 31148 | Use char because int might match the return type of a GCC |
| 31149 | builtin and then its argument prototype would still apply. */ |
| 31150 | #ifdef __cplusplus |
| 31151 | extern "C" |
| 31152 | #endif |
| 31153 | char png_longjmp (); |
| 31154 | int |
| 31155 | main () |
| 31156 | { |
| 31157 | return png_longjmp (); |
| 31158 | ; |
| 31159 | return 0; |
| 31160 | } |
| 31161 | _ACEOF |
| 31162 | if ac_fn_c_try_link "$LINENO"; then : |
| 31163 | ac_cv_lib_png15_png_longjmp=yes |
| 31164 | else |
| 31165 | ac_cv_lib_png15_png_longjmp=no |
| 31166 | fi |
| 31167 | rm -f core conftest.err conftest.$ac_objext \ |
| 31168 | conftest$ac_exeext conftest.$ac_ext |
| 31169 | LIBS=$ac_check_lib_save_LIBS |
| 31170 | fi |
| 31171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5 |
| 31172 | $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; } |
| 31173 | if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then : |
| 31174 | passed=`expr $passed + 1` |
| 31175 | else |
| 31176 | failed=`expr $failed + 1` |
| 31177 | fi |
| 31178 | |
| 31179 | fi |
| 31180 | if test "1${var}" = '14' ; then |
| 31181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5 |
| 31182 | $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; } |
| 31183 | if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then : |
| 31184 | $as_echo_n "(cached) " >&6 |
| 31185 | else |
| 31186 | ac_check_lib_save_LIBS=$LIBS |
| 31187 | LIBS="-lpng14 $LIBS" |
| 31188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31189 | /* end confdefs.h. */ |
| 31190 | |
| 31191 | /* Override any GCC internal prototype to avoid an error. |
| 31192 | Use char because int might match the return type of a GCC |
| 31193 | builtin and then its argument prototype would still apply. */ |
| 31194 | #ifdef __cplusplus |
| 31195 | extern "C" |
| 31196 | #endif |
| 31197 | char png_get_io_ptr (); |
| 31198 | int |
| 31199 | main () |
| 31200 | { |
| 31201 | return png_get_io_ptr (); |
| 31202 | ; |
| 31203 | return 0; |
| 31204 | } |
| 31205 | _ACEOF |
| 31206 | if ac_fn_c_try_link "$LINENO"; then : |
| 31207 | ac_cv_lib_png14_png_get_io_ptr=yes |
| 31208 | else |
| 31209 | ac_cv_lib_png14_png_get_io_ptr=no |
| 31210 | fi |
| 31211 | rm -f core conftest.err conftest.$ac_objext \ |
| 31212 | conftest$ac_exeext conftest.$ac_ext |
| 31213 | LIBS=$ac_check_lib_save_LIBS |
| 31214 | fi |
| 31215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5 |
| 31216 | $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; } |
| 31217 | if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then : |
| 31218 | passed=`expr $passed + 1` |
| 31219 | else |
| 31220 | failed=`expr $failed + 1` |
| 31221 | fi |
| 31222 | |
| 31223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5 |
| 31224 | $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; } |
| 31225 | if ${ac_cv_lib_png14_png_get_io_state+:} false; then : |
| 31226 | $as_echo_n "(cached) " >&6 |
| 31227 | else |
| 31228 | ac_check_lib_save_LIBS=$LIBS |
| 31229 | LIBS="-lpng14 $LIBS" |
| 31230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31231 | /* end confdefs.h. */ |
| 31232 | |
| 31233 | /* Override any GCC internal prototype to avoid an error. |
| 31234 | Use char because int might match the return type of a GCC |
| 31235 | builtin and then its argument prototype would still apply. */ |
| 31236 | #ifdef __cplusplus |
| 31237 | extern "C" |
| 31238 | #endif |
| 31239 | char png_get_io_state (); |
| 31240 | int |
| 31241 | main () |
| 31242 | { |
| 31243 | return png_get_io_state (); |
| 31244 | ; |
| 31245 | return 0; |
| 31246 | } |
| 31247 | _ACEOF |
| 31248 | if ac_fn_c_try_link "$LINENO"; then : |
| 31249 | ac_cv_lib_png14_png_get_io_state=yes |
| 31250 | else |
| 31251 | ac_cv_lib_png14_png_get_io_state=no |
| 31252 | fi |
| 31253 | rm -f core conftest.err conftest.$ac_objext \ |
| 31254 | conftest$ac_exeext conftest.$ac_ext |
| 31255 | LIBS=$ac_check_lib_save_LIBS |
| 31256 | fi |
| 31257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5 |
| 31258 | $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; } |
| 31259 | if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then : |
| 31260 | passed=`expr $passed + 1` |
| 31261 | else |
| 31262 | failed=`expr $failed + 1` |
| 31263 | fi |
| 31264 | |
| 31265 | fi |
| 31266 | if test "1${var}" = '12' ; then |
| 31267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5 |
| 31268 | $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; } |
| 31269 | if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then : |
| 31270 | $as_echo_n "(cached) " >&6 |
| 31271 | else |
| 31272 | ac_check_lib_save_LIBS=$LIBS |
| 31273 | LIBS="-lpng12 $LIBS" |
| 31274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31275 | /* end confdefs.h. */ |
| 31276 | |
| 31277 | /* Override any GCC internal prototype to avoid an error. |
| 31278 | Use char because int might match the return type of a GCC |
| 31279 | builtin and then its argument prototype would still apply. */ |
| 31280 | #ifdef __cplusplus |
| 31281 | extern "C" |
| 31282 | #endif |
| 31283 | char png_get_io_ptr (); |
| 31284 | int |
| 31285 | main () |
| 31286 | { |
| 31287 | return png_get_io_ptr (); |
| 31288 | ; |
| 31289 | return 0; |
| 31290 | } |
| 31291 | _ACEOF |
| 31292 | if ac_fn_c_try_link "$LINENO"; then : |
| 31293 | ac_cv_lib_png12_png_get_io_ptr=yes |
| 31294 | else |
| 31295 | ac_cv_lib_png12_png_get_io_ptr=no |
| 31296 | fi |
| 31297 | rm -f core conftest.err conftest.$ac_objext \ |
| 31298 | conftest$ac_exeext conftest.$ac_ext |
| 31299 | LIBS=$ac_check_lib_save_LIBS |
| 31300 | fi |
| 31301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5 |
| 31302 | $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; } |
| 31303 | if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then : |
| 31304 | passed=`expr $passed + 1` |
| 31305 | else |
| 31306 | failed=`expr $failed + 1` |
| 31307 | fi |
| 31308 | |
| 31309 | fi |
| 31310 | if test "1${var}" = '1' ; then |
| 31311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5 |
| 31312 | $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; } |
| 31313 | if ${ac_cv_lib_png_png_get_io_ptr+:} false; then : |
| 31314 | $as_echo_n "(cached) " >&6 |
| 31315 | else |
| 31316 | ac_check_lib_save_LIBS=$LIBS |
| 31317 | LIBS="-lpng $LIBS" |
| 31318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31319 | /* end confdefs.h. */ |
| 31320 | |
| 31321 | /* Override any GCC internal prototype to avoid an error. |
| 31322 | Use char because int might match the return type of a GCC |
| 31323 | builtin and then its argument prototype would still apply. */ |
| 31324 | #ifdef __cplusplus |
| 31325 | extern "C" |
| 31326 | #endif |
| 31327 | char png_get_io_ptr (); |
| 31328 | int |
| 31329 | main () |
| 31330 | { |
| 31331 | return png_get_io_ptr (); |
| 31332 | ; |
| 31333 | return 0; |
| 31334 | } |
| 31335 | _ACEOF |
| 31336 | if ac_fn_c_try_link "$LINENO"; then : |
| 31337 | ac_cv_lib_png_png_get_io_ptr=yes |
| 31338 | else |
| 31339 | ac_cv_lib_png_png_get_io_ptr=no |
| 31340 | fi |
| 31341 | rm -f core conftest.err conftest.$ac_objext \ |
| 31342 | conftest$ac_exeext conftest.$ac_ext |
| 31343 | LIBS=$ac_check_lib_save_LIBS |
| 31344 | fi |
| 31345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5 |
| 31346 | $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; } |
| 31347 | if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then : |
| 31348 | passed=`expr $passed + 1` |
| 31349 | else |
| 31350 | failed=`expr $failed + 1` |
| 31351 | fi |
| 31352 | |
| 31353 | fi |
| 31354 | if test $passed -gt 0 -a $failed -le 0 ; then |
| 31355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5 |
| 31356 | $as_echo_n "checking if ${pnglib} package is complete... " >&6; } |
| 31357 | if test $passed -gt 0 ; then |
| 31358 | if test $failed -gt 0 ; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 31360 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31361 | have_png='no (failed tests)' |
| 31362 | else |
| 31363 | PNG_LIBS="-l${pnglib}" |
| 31364 | LIBS="$PNG_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31365 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31366 | $as_echo "#define PNG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31367 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31369 | $as_echo "yes" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 31370 | have_png='yes' |
| 31371 | fi |
| 31372 | fi |
| 31373 | fi |
| 31374 | fi |
| 31375 | fi |
| 31376 | done |
| 31377 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31378 | fi |
| cristy | 6487730 | 2011-08-23 19:10:31 +0000 | [diff] [blame] | 31379 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31380 | if test "$have_png" = 'yes'; then |
| 31381 | PNG_DELEGATE_TRUE= |
| 31382 | PNG_DELEGATE_FALSE='#' |
| 31383 | else |
| 31384 | PNG_DELEGATE_TRUE='#' |
| 31385 | PNG_DELEGATE_FALSE= |
| 31386 | fi |
| 31387 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31388 | |
| cristy | 50d3f5c | 2011-09-10 20:09:06 +0000 | [diff] [blame] | 31389 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31390 | |
| 31391 | |
| 31392 | # |
| 31393 | # Check for RSVG delegate library. |
| 31394 | # |
| 31395 | |
| 31396 | # Check whether --with-rsvg was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31397 | if test "${with_rsvg+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31398 | withval=$with_rsvg; with_rsvg=$withval |
| 31399 | else |
| cristy | 1164d5f | 2012-08-15 00:58:25 +0000 | [diff] [blame] | 31400 | with_rsvg='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31401 | fi |
| 31402 | |
| 31403 | |
| 31404 | if test "$with_rsvg" != 'yes'; then |
| 31405 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg " |
| 31406 | fi |
| 31407 | |
| 31408 | have_rsvg='no' |
| 31409 | have_cairo='no' |
| 31410 | RSVG_CFLAGS="" |
| 31411 | RSVG_LIBS="" |
| 31412 | RSVG_PKG="" |
| 31413 | if test "x$with_rsvg" = "xyes"; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 31415 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31416 | |
| 31417 | pkg_failed=no |
| 31418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5 |
| 31419 | $as_echo_n "checking for RSVG... " >&6; } |
| 31420 | |
| 31421 | if test -n "$RSVG_CFLAGS"; then |
| 31422 | pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS" |
| 31423 | elif test -n "$PKG_CONFIG"; then |
| 31424 | if test -n "$PKG_CONFIG" && \ |
| 31425 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| 31426 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 31427 | ac_status=$? |
| 31428 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 31429 | test $ac_status = 0; }; then |
| 31430 | pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 31431 | else |
| 31432 | pkg_failed=yes |
| 31433 | fi |
| 31434 | else |
| 31435 | pkg_failed=untried |
| 31436 | fi |
| 31437 | if test -n "$RSVG_LIBS"; then |
| 31438 | pkg_cv_RSVG_LIBS="$RSVG_LIBS" |
| 31439 | elif test -n "$PKG_CONFIG"; then |
| 31440 | if test -n "$PKG_CONFIG" && \ |
| 31441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5 |
| 31442 | ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5 |
| 31443 | ac_status=$? |
| 31444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 31445 | test $ac_status = 0; }; then |
| 31446 | pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null` |
| 31447 | else |
| 31448 | pkg_failed=yes |
| 31449 | fi |
| 31450 | else |
| 31451 | pkg_failed=untried |
| 31452 | fi |
| 31453 | |
| 31454 | |
| 31455 | |
| 31456 | if test $pkg_failed = yes; then |
| 31457 | |
| 31458 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 31459 | _pkg_short_errors_supported=yes |
| 31460 | else |
| 31461 | _pkg_short_errors_supported=no |
| 31462 | fi |
| 31463 | if test $_pkg_short_errors_supported = yes; then |
| 31464 | RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 31465 | else |
| 31466 | RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1` |
| 31467 | fi |
| 31468 | # Put the nasty error message in config.log where it belongs |
| 31469 | echo "$RSVG_PKG_ERRORS" >&5 |
| 31470 | |
| 31471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31472 | $as_echo "no" >&6; } |
| 31473 | have_rsvg=no |
| 31474 | elif test $pkg_failed = untried; then |
| 31475 | have_rsvg=no |
| 31476 | else |
| 31477 | RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS |
| 31478 | RSVG_LIBS=$pkg_cv_RSVG_LIBS |
| 31479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31480 | $as_echo "yes" >&6; } |
| 31481 | have_rsvg=yes |
| 31482 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 31484 | $as_echo "" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31485 | |
| 31486 | pkg_failed=no |
| 31487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5 |
| 31488 | $as_echo_n "checking for CAIRO_SVG... " >&6; } |
| 31489 | |
| 31490 | if test -n "$CAIRO_SVG_CFLAGS"; then |
| 31491 | pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS" |
| 31492 | elif test -n "$PKG_CONFIG"; then |
| 31493 | if test -n "$PKG_CONFIG" && \ |
| 31494 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| 31495 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 31496 | ac_status=$? |
| 31497 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 31498 | test $ac_status = 0; }; then |
| 31499 | pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null` |
| 31500 | else |
| 31501 | pkg_failed=yes |
| 31502 | fi |
| 31503 | else |
| 31504 | pkg_failed=untried |
| 31505 | fi |
| 31506 | if test -n "$CAIRO_SVG_LIBS"; then |
| 31507 | pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS" |
| 31508 | elif test -n "$PKG_CONFIG"; then |
| 31509 | if test -n "$PKG_CONFIG" && \ |
| 31510 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5 |
| 31511 | ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5 |
| 31512 | ac_status=$? |
| 31513 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 31514 | test $ac_status = 0; }; then |
| 31515 | pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null` |
| 31516 | else |
| 31517 | pkg_failed=yes |
| 31518 | fi |
| 31519 | else |
| 31520 | pkg_failed=untried |
| 31521 | fi |
| 31522 | |
| 31523 | |
| 31524 | |
| 31525 | if test $pkg_failed = yes; then |
| 31526 | |
| 31527 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 31528 | _pkg_short_errors_supported=yes |
| 31529 | else |
| 31530 | _pkg_short_errors_supported=no |
| 31531 | fi |
| 31532 | if test $_pkg_short_errors_supported = yes; then |
| 31533 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1` |
| 31534 | else |
| 31535 | CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1` |
| 31536 | fi |
| 31537 | # Put the nasty error message in config.log where it belongs |
| 31538 | echo "$CAIRO_SVG_PKG_ERRORS" >&5 |
| 31539 | |
| 31540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31541 | $as_echo "no" >&6; } |
| 31542 | have_cairo=no |
| 31543 | elif test $pkg_failed = untried; then |
| 31544 | have_cairo=no |
| 31545 | else |
| 31546 | CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS |
| 31547 | CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS |
| 31548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31549 | $as_echo "yes" >&6; } |
| 31550 | have_cairo=yes |
| 31551 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 31553 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31554 | fi |
| 31555 | |
| 31556 | if test "$have_rsvg" = 'yes'; then |
| 31557 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31558 | $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31559 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 31560 | if test "$build_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31561 | CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS" |
| 31562 | fi |
| 31563 | fi |
| 31564 | |
| 31565 | if test "$have_cairo" = 'yes'; then |
| 31566 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31567 | $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31568 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 31569 | if test "$build_modules" = 'no'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31570 | CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS" |
| 31571 | fi |
| 31572 | fi |
| 31573 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31574 | if test "$have_rsvg" = 'yes'; then |
| 31575 | RSVG_DELEGATE_TRUE= |
| 31576 | RSVG_DELEGATE_FALSE='#' |
| 31577 | else |
| 31578 | RSVG_DELEGATE_TRUE='#' |
| 31579 | RSVG_DELEGATE_FALSE= |
| 31580 | fi |
| 31581 | |
| 31582 | if test "$have_cairo" = 'yes'; then |
| 31583 | CAIRO_DELEGATE_TRUE= |
| 31584 | CAIRO_DELEGATE_FALSE='#' |
| 31585 | else |
| 31586 | CAIRO_DELEGATE_TRUE='#' |
| 31587 | CAIRO_DELEGATE_FALSE= |
| 31588 | fi |
| 31589 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31590 | |
| 31591 | |
| 31592 | |
| 31593 | |
| 31594 | # |
| 31595 | # Check for TIFF delegate library. |
| 31596 | # |
| 31597 | |
| 31598 | # Check whether --with-tiff was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31599 | if test "${with_tiff+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31600 | withval=$with_tiff; with_tiff=$withval |
| 31601 | else |
| 31602 | with_tiff='yes' |
| 31603 | fi |
| 31604 | |
| 31605 | |
| 31606 | if test "$with_tiff" != 'yes'; then |
| 31607 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff " |
| 31608 | fi |
| 31609 | |
| 31610 | have_tiff='no' |
| 31611 | TIFF_LIBS='' |
| 31612 | if test "$with_tiff" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 31614 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31616 | $as_echo_n "checking for TIFF... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 31618 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31619 | failed=0 |
| 31620 | passed=0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31621 | 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] | 31622 | if test "x$ac_cv_header_tiff_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31623 | passed=`expr $passed + 1` |
| 31624 | else |
| 31625 | failed=`expr $failed + 1` |
| 31626 | fi |
| 31627 | |
| 31628 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31629 | 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] | 31630 | if test "x$ac_cv_header_tiffio_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31631 | passed=`expr $passed + 1` |
| 31632 | else |
| 31633 | failed=`expr $failed + 1` |
| 31634 | fi |
| 31635 | |
| 31636 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31638 | $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31639 | if ${ac_cv_lib_tiff_TIFFOpen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31640 | $as_echo_n "(cached) " >&6 |
| 31641 | else |
| 31642 | ac_check_lib_save_LIBS=$LIBS |
| 31643 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31645 | /* end confdefs.h. */ |
| 31646 | |
| 31647 | /* Override any GCC internal prototype to avoid an error. |
| 31648 | Use char because int might match the return type of a GCC |
| 31649 | builtin and then its argument prototype would still apply. */ |
| 31650 | #ifdef __cplusplus |
| 31651 | extern "C" |
| 31652 | #endif |
| 31653 | char TIFFOpen (); |
| 31654 | int |
| 31655 | main () |
| 31656 | { |
| 31657 | return TIFFOpen (); |
| 31658 | ; |
| 31659 | return 0; |
| 31660 | } |
| 31661 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31662 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31663 | ac_cv_lib_tiff_TIFFOpen=yes |
| 31664 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31665 | ac_cv_lib_tiff_TIFFOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31666 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31667 | rm -f core conftest.err conftest.$ac_objext \ |
| 31668 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31669 | LIBS=$ac_check_lib_save_LIBS |
| 31670 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31671 | { $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] | 31672 | $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31673 | if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31674 | passed=`expr $passed + 1` |
| 31675 | else |
| 31676 | failed=`expr $failed + 1` |
| 31677 | fi |
| 31678 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31680 | $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31681 | if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31682 | $as_echo_n "(cached) " >&6 |
| 31683 | else |
| 31684 | ac_check_lib_save_LIBS=$LIBS |
| 31685 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31687 | /* end confdefs.h. */ |
| 31688 | |
| 31689 | /* Override any GCC internal prototype to avoid an error. |
| 31690 | Use char because int might match the return type of a GCC |
| 31691 | builtin and then its argument prototype would still apply. */ |
| 31692 | #ifdef __cplusplus |
| 31693 | extern "C" |
| 31694 | #endif |
| 31695 | char TIFFClientOpen (); |
| 31696 | int |
| 31697 | main () |
| 31698 | { |
| 31699 | return TIFFClientOpen (); |
| 31700 | ; |
| 31701 | return 0; |
| 31702 | } |
| 31703 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31704 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31705 | ac_cv_lib_tiff_TIFFClientOpen=yes |
| 31706 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31707 | ac_cv_lib_tiff_TIFFClientOpen=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31708 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31709 | rm -f core conftest.err conftest.$ac_objext \ |
| 31710 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31711 | LIBS=$ac_check_lib_save_LIBS |
| 31712 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31713 | { $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] | 31714 | $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31715 | if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31716 | passed=`expr $passed + 1` |
| 31717 | else |
| 31718 | failed=`expr $failed + 1` |
| 31719 | fi |
| 31720 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31722 | $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31723 | if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31724 | $as_echo_n "(cached) " >&6 |
| 31725 | else |
| 31726 | ac_check_lib_save_LIBS=$LIBS |
| 31727 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31728 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31729 | /* end confdefs.h. */ |
| 31730 | |
| 31731 | /* Override any GCC internal prototype to avoid an error. |
| 31732 | Use char because int might match the return type of a GCC |
| 31733 | builtin and then its argument prototype would still apply. */ |
| 31734 | #ifdef __cplusplus |
| 31735 | extern "C" |
| 31736 | #endif |
| 31737 | char TIFFIsByteSwapped (); |
| 31738 | int |
| 31739 | main () |
| 31740 | { |
| 31741 | return TIFFIsByteSwapped (); |
| 31742 | ; |
| 31743 | return 0; |
| 31744 | } |
| 31745 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31746 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31747 | ac_cv_lib_tiff_TIFFIsByteSwapped=yes |
| 31748 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31749 | ac_cv_lib_tiff_TIFFIsByteSwapped=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31750 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31751 | rm -f core conftest.err conftest.$ac_objext \ |
| 31752 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31753 | LIBS=$ac_check_lib_save_LIBS |
| 31754 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31755 | { $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] | 31756 | $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31757 | if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31758 | passed=`expr $passed + 1` |
| 31759 | else |
| 31760 | failed=`expr $failed + 1` |
| 31761 | fi |
| 31762 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31764 | $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31765 | if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31766 | $as_echo_n "(cached) " >&6 |
| 31767 | else |
| 31768 | ac_check_lib_save_LIBS=$LIBS |
| 31769 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31771 | /* end confdefs.h. */ |
| 31772 | |
| 31773 | /* Override any GCC internal prototype to avoid an error. |
| 31774 | Use char because int might match the return type of a GCC |
| 31775 | builtin and then its argument prototype would still apply. */ |
| 31776 | #ifdef __cplusplus |
| 31777 | extern "C" |
| 31778 | #endif |
| 31779 | char TIFFReadRGBATile (); |
| 31780 | int |
| 31781 | main () |
| 31782 | { |
| 31783 | return TIFFReadRGBATile (); |
| 31784 | ; |
| 31785 | return 0; |
| 31786 | } |
| 31787 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31788 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31789 | ac_cv_lib_tiff_TIFFReadRGBATile=yes |
| 31790 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31791 | ac_cv_lib_tiff_TIFFReadRGBATile=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31792 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31793 | rm -f core conftest.err conftest.$ac_objext \ |
| 31794 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31795 | LIBS=$ac_check_lib_save_LIBS |
| 31796 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31797 | { $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] | 31798 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31799 | if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31800 | passed=`expr $passed + 1` |
| 31801 | else |
| 31802 | failed=`expr $failed + 1` |
| 31803 | fi |
| 31804 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31806 | $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31807 | if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31808 | $as_echo_n "(cached) " >&6 |
| 31809 | else |
| 31810 | ac_check_lib_save_LIBS=$LIBS |
| 31811 | LIBS="-ltiff $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31813 | /* end confdefs.h. */ |
| 31814 | |
| 31815 | /* Override any GCC internal prototype to avoid an error. |
| 31816 | Use char because int might match the return type of a GCC |
| 31817 | builtin and then its argument prototype would still apply. */ |
| 31818 | #ifdef __cplusplus |
| 31819 | extern "C" |
| 31820 | #endif |
| 31821 | char TIFFReadRGBAStrip (); |
| 31822 | int |
| 31823 | main () |
| 31824 | { |
| 31825 | return TIFFReadRGBAStrip (); |
| 31826 | ; |
| 31827 | return 0; |
| 31828 | } |
| 31829 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31830 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31831 | ac_cv_lib_tiff_TIFFReadRGBAStrip=yes |
| 31832 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31833 | ac_cv_lib_tiff_TIFFReadRGBAStrip=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31834 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31835 | rm -f core conftest.err conftest.$ac_objext \ |
| 31836 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31837 | LIBS=$ac_check_lib_save_LIBS |
| 31838 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31839 | { $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] | 31840 | $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 31841 | if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31842 | passed=`expr $passed + 1` |
| 31843 | else |
| 31844 | failed=`expr $failed + 1` |
| 31845 | fi |
| 31846 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31847 | { $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] | 31848 | $as_echo_n "checking if TIFF package is complete... " >&6; } |
| 31849 | if test $passed -gt 0; then |
| 31850 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 31852 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31853 | have_tiff='no (failed tests)' |
| 31854 | else |
| 31855 | TIFF_LIBS='-ltiff' |
| 31856 | LIBS="$TIFF_LIBS $LIBS" |
| 31857 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31858 | $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31859 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31861 | $as_echo "yes" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31862 | have_tiff='yes' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31863 | for ac_header in tiffconf.h |
| 31864 | do : |
| 31865 | 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] | 31866 | if test "x$ac_cv_header_tiffconf_h" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31867 | cat >>confdefs.h <<_ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31868 | #define HAVE_TIFFCONF_H 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31869 | _ACEOF |
| 31870 | |
| 31871 | fi |
| 31872 | |
| 31873 | done |
| 31874 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31875 | for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \ |
| cristy | 3f590e5 | 2011-11-14 14:29:44 +0000 | [diff] [blame] | 31876 | TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \ |
| 31877 | TIFFSetTagExtender TIFFSetWarningHandlerExt \ |
| 31878 | TIFFSwabArrayOfTriples |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 31879 | do : |
| 31880 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 31881 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 31882 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31883 | cat >>confdefs.h <<_ACEOF |
| 31884 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 31885 | _ACEOF |
| 31886 | |
| 31887 | fi |
| 31888 | done |
| 31889 | |
| 31890 | fi |
| 31891 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31893 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31894 | fi |
| 31895 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 31896 | if test "$have_tiff" = 'yes'; then |
| 31897 | TIFF_DELEGATE_TRUE= |
| 31898 | TIFF_DELEGATE_FALSE='#' |
| 31899 | else |
| 31900 | TIFF_DELEGATE_TRUE='#' |
| 31901 | TIFF_DELEGATE_FALSE= |
| 31902 | fi |
| 31903 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 31904 | |
| 31905 | |
| 31906 | |
| 31907 | # |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31908 | # Check for WEBP delegate library. |
| 31909 | # |
| 31910 | |
| 31911 | # Check whether --with-webp was given. |
| 31912 | if test "${with_webp+set}" = set; then : |
| 31913 | withval=$with_webp; with_webp=$withval |
| 31914 | else |
| 31915 | with_webp='yes' |
| 31916 | fi |
| 31917 | |
| 31918 | |
| 31919 | if test "$with_webp" != 'yes'; then |
| 31920 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp " |
| 31921 | fi |
| 31922 | |
| 31923 | have_webp='no' |
| 31924 | WEBP_LIBS='' |
| 31925 | if test "$with_webp" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 31927 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5 |
| 31929 | $as_echo_n "checking for WEBP... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 31931 | $as_echo "" >&6; } |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31932 | failed=0 |
| 31933 | passed=0 |
| 31934 | ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default" |
| 31935 | if test "x$ac_cv_header_webp_decode_h" = xyes; then : |
| 31936 | passed=`expr $passed + 1` |
| 31937 | else |
| 31938 | failed=`expr $failed + 1` |
| 31939 | fi |
| 31940 | |
| 31941 | |
| cristy | 6d67031 | 2013-03-22 23:23:01 +0000 | [diff] [blame] | 31942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5 |
| 31943 | $as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; } |
| 31944 | if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then : |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31945 | $as_echo_n "(cached) " >&6 |
| 31946 | else |
| 31947 | ac_check_lib_save_LIBS=$LIBS |
| 31948 | LIBS="-lwebp $LIBS" |
| 31949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31950 | /* end confdefs.h. */ |
| 31951 | |
| 31952 | /* Override any GCC internal prototype to avoid an error. |
| 31953 | Use char because int might match the return type of a GCC |
| 31954 | builtin and then its argument prototype would still apply. */ |
| 31955 | #ifdef __cplusplus |
| 31956 | extern "C" |
| 31957 | #endif |
| cristy | 6d67031 | 2013-03-22 23:23:01 +0000 | [diff] [blame] | 31958 | char WebPPictureInitInternal (); |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31959 | int |
| 31960 | main () |
| 31961 | { |
| cristy | 6d67031 | 2013-03-22 23:23:01 +0000 | [diff] [blame] | 31962 | return WebPPictureInitInternal (); |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31963 | ; |
| 31964 | return 0; |
| 31965 | } |
| 31966 | _ACEOF |
| 31967 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 6d67031 | 2013-03-22 23:23:01 +0000 | [diff] [blame] | 31968 | ac_cv_lib_webp_WebPPictureInitInternal=yes |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31969 | else |
| cristy | 6d67031 | 2013-03-22 23:23:01 +0000 | [diff] [blame] | 31970 | ac_cv_lib_webp_WebPPictureInitInternal=no |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31971 | fi |
| 31972 | rm -f core conftest.err conftest.$ac_objext \ |
| 31973 | conftest$ac_exeext conftest.$ac_ext |
| 31974 | LIBS=$ac_check_lib_save_LIBS |
| 31975 | fi |
| cristy | 6d67031 | 2013-03-22 23:23:01 +0000 | [diff] [blame] | 31976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5 |
| 31977 | $as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; } |
| 31978 | if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then : |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31979 | passed=`expr $passed + 1` |
| 31980 | else |
| 31981 | failed=`expr $failed + 1` |
| 31982 | fi |
| 31983 | |
| 31984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5 |
| 31985 | $as_echo_n "checking if WEBP package is complete... " >&6; } |
| 31986 | if test $passed -gt 0; then |
| 31987 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 31989 | $as_echo "no -- some components failed test" >&6; } |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31990 | have_webp='no (failed tests)' |
| 31991 | else |
| 31992 | WEBP_LIBS='-lwebp' |
| 31993 | LIBS="$WEBP_LIBS $LIBS" |
| 31994 | |
| 31995 | $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h |
| 31996 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 31997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31998 | $as_echo "yes" >&6; } |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 31999 | have_webp='yes' |
| 32000 | fi |
| 32001 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32003 | $as_echo "no" >&6; } |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 32004 | fi |
| 32005 | fi |
| 32006 | if test "$have_webp" = 'yes'; then |
| 32007 | WEBP_DELEGATE_TRUE= |
| 32008 | WEBP_DELEGATE_FALSE='#' |
| 32009 | else |
| 32010 | WEBP_DELEGATE_TRUE='#' |
| 32011 | WEBP_DELEGATE_FALSE= |
| 32012 | fi |
| 32013 | |
| 32014 | |
| 32015 | |
| 32016 | |
| 32017 | # |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32018 | # Set Windows font directory. |
| 32019 | # |
| 32020 | |
| 32021 | # Check whether --with-windows-font-dir was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32022 | if test "${with_windows_font_dir+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32023 | withval=$with_windows_font_dir; with_windows_font_dir=$withval |
| 32024 | else |
| 32025 | with_windows_font_dir='' |
| 32026 | fi |
| 32027 | |
| 32028 | if test "$with_windows_font_dir" != '' ; then |
| 32029 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir " |
| 32030 | fi |
| 32031 | |
| 32032 | |
| 32033 | # |
| 32034 | # Check for WMF delegate library. |
| 32035 | # |
| 32036 | |
| 32037 | # Check whether --with-wmf was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32038 | if test "${with_wmf+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32039 | withval=$with_wmf; with_wmf=$withval |
| 32040 | else |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 32041 | with_wmf='no' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32042 | fi |
| 32043 | |
| 32044 | |
| 32045 | if test "$with_wmf" != 'yes'; then |
| 32046 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf " |
| 32047 | fi |
| 32048 | |
| 32049 | have_wmf='no' |
| 32050 | WMF_LIBS='' |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32051 | WMF_LIBS_DEPS='' |
| 32052 | OLIBS="$LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32053 | if test "$with_wmf" != 'no'; then |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 32055 | $as_echo "-------------------------------------------------------------" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 32056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32057 | $as_echo_n "checking for WMF... " >&6; } |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 32059 | $as_echo "" >&6; } |
| 32060 | have_libwmf='no' |
| 32061 | have_libwmflite='no' |
| 32062 | have_libwmf_ipa_h='no' |
| 32063 | |
| 32064 | ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H |
| 32065 | " |
| 32066 | if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then : |
| 32067 | have_libwmf_ipa_h='yes' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32068 | fi |
| 32069 | |
| 32070 | |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32071 | if test "$have_libwmf_ipa_h" = 'yes'; then |
| 32072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5 |
| 32073 | $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; } |
| 32074 | if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32075 | $as_echo_n "(cached) " >&6 |
| 32076 | else |
| 32077 | ac_check_lib_save_LIBS=$LIBS |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32078 | LIBS="-lwmflite $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32080 | /* end confdefs.h. */ |
| 32081 | |
| 32082 | /* Override any GCC internal prototype to avoid an error. |
| 32083 | Use char because int might match the return type of a GCC |
| 32084 | builtin and then its argument prototype would still apply. */ |
| 32085 | #ifdef __cplusplus |
| 32086 | extern "C" |
| 32087 | #endif |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32088 | char wmf_lite_create (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32089 | int |
| 32090 | main () |
| 32091 | { |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32092 | return wmf_lite_create (); |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32093 | ; |
| 32094 | return 0; |
| 32095 | } |
| 32096 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32097 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32098 | ac_cv_lib_wmflite_wmf_lite_create=yes |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32099 | else |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32100 | ac_cv_lib_wmflite_wmf_lite_create=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32101 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32102 | rm -f core conftest.err conftest.$ac_objext \ |
| 32103 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32104 | LIBS=$ac_check_lib_save_LIBS |
| 32105 | fi |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5 |
| 32107 | $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; } |
| 32108 | if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then : |
| 32109 | have_libwmflite='yes' |
| cristy | 9243a2d | 2011-08-22 17:32:32 +0000 | [diff] [blame] | 32110 | fi |
| 32111 | |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32112 | if test "$have_libwmflite" = 'yes'; then |
| 32113 | |
| 32114 | $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h |
| 32115 | |
| 32116 | WMF_LIBS='-lwmflite' |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 32117 | LIBS="$WMF_LIBS $LIBS" |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32118 | have_wmf='yes' |
| 32119 | else |
| 32120 | WMF_LIBS_DEPS='' |
| 32121 | WMF_CONFIG_LIBS=`libwmf-config --libs` |
| 32122 | for lib in xml2 expat freetype jpeg png z; do |
| 32123 | testlib="-l${lib}" |
| 32124 | echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib" |
| 32125 | done |
| 32126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5 |
| 32127 | $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; } |
| 32128 | if ${ac_cv_lib_wmf_wmf_api_create+:} false; then : |
| 32129 | $as_echo_n "(cached) " >&6 |
| 32130 | else |
| 32131 | ac_check_lib_save_LIBS=$LIBS |
| 32132 | LIBS="-lwmf $WMF_LIBS_DEPS $LIBS" |
| 32133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32134 | /* end confdefs.h. */ |
| 32135 | |
| 32136 | /* Override any GCC internal prototype to avoid an error. |
| 32137 | Use char because int might match the return type of a GCC |
| 32138 | builtin and then its argument prototype would still apply. */ |
| 32139 | #ifdef __cplusplus |
| 32140 | extern "C" |
| 32141 | #endif |
| 32142 | char wmf_api_create (); |
| 32143 | int |
| 32144 | main () |
| 32145 | { |
| 32146 | return wmf_api_create (); |
| 32147 | ; |
| 32148 | return 0; |
| 32149 | } |
| 32150 | _ACEOF |
| 32151 | if ac_fn_c_try_link "$LINENO"; then : |
| 32152 | ac_cv_lib_wmf_wmf_api_create=yes |
| 32153 | else |
| 32154 | ac_cv_lib_wmf_wmf_api_create=no |
| 32155 | fi |
| 32156 | rm -f core conftest.err conftest.$ac_objext \ |
| 32157 | conftest$ac_exeext conftest.$ac_ext |
| 32158 | LIBS=$ac_check_lib_save_LIBS |
| 32159 | fi |
| 32160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5 |
| 32161 | $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; } |
| 32162 | if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then : |
| 32163 | have_libwmf='yes' |
| 32164 | fi |
| 32165 | |
| 32166 | if test "$have_libwmf" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32167 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32168 | $as_echo "#define WMF_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32169 | |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32170 | WMF_LIBS='-lwmf' |
| 32171 | LIBS="$WMF_LIBS $LIBS" |
| 32172 | have_wmf='yes' |
| 32173 | else |
| 32174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 32175 | $as_echo "no -- some components failed test" >&6; } |
| 32176 | have_wmf='no (failed tests)' |
| 32177 | have_wmflite='no (failed tests)' |
| 32178 | LIBS="$OLIBS" |
| 32179 | WMF_LIBS='' |
| 32180 | fi |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 32181 | fi |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32182 | fi |
| 32183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5 |
| 32184 | $as_echo_n "checking if WMF package is complete... " >&6; } |
| 32185 | if test "$have_wmf" = 'yes'; then |
| 32186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32187 | $as_echo "yes" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 32188 | else |
| cristy | 03f7cf9 | 2011-12-15 01:40:41 +0000 | [diff] [blame] | 32189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32190 | $as_echo "no" >&6; } |
| glennrp | 33e524b | 2011-08-24 17:41:57 +0000 | [diff] [blame] | 32191 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32192 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 32193 | if test "$have_wmf" = 'yes'; then |
| 32194 | WMF_DELEGATE_TRUE= |
| 32195 | WMF_DELEGATE_FALSE='#' |
| 32196 | else |
| 32197 | WMF_DELEGATE_TRUE='#' |
| 32198 | WMF_DELEGATE_FALSE= |
| 32199 | fi |
| 32200 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32201 | |
| 32202 | |
| 32203 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32204 | |
| 32205 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32206 | # |
| 32207 | # Check for XML delegate library. |
| 32208 | # |
| 32209 | |
| 32210 | # Check whether --with-xml was given. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32211 | if test "${with_xml+set}" = set; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32212 | withval=$with_xml; with_xml=$withval |
| 32213 | else |
| cristy | fc3d022 | 2012-02-07 15:05:57 +0000 | [diff] [blame] | 32214 | with_xml='yes' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32215 | fi |
| 32216 | |
| 32217 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32218 | if test "$with_xml" != 'yes' ; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32219 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml " |
| 32220 | fi |
| 32221 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32222 | have_xml='no' |
| 32223 | XML_LIBS='' |
| 32224 | if test "$with_xml" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 32226 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5 |
| 32228 | $as_echo_n "checking for XML... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 32230 | $as_echo "" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32231 | PERSIST_LDFLAGS=$LDFLAGS |
| 32232 | PERSIST_CPPFLAGS=$CPPFLAGS |
| 32233 | xml2_config='' |
| 32234 | # Extract the first word of "xml2-config", so it can be a program name with args. |
| 32235 | set dummy xml2-config; ac_word=$2 |
| 32236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 32237 | $as_echo_n "checking for $ac_word... " >&6; } |
| 32238 | if ${ac_cv_path_xml2_config+:} false; then : |
| 32239 | $as_echo_n "(cached) " >&6 |
| 32240 | else |
| 32241 | case $xml2_config in |
| 32242 | [\\/]* | ?:[\\/]*) |
| 32243 | ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path. |
| 32244 | ;; |
| 32245 | *) |
| 32246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32247 | for as_dir in $PATH |
| 32248 | do |
| 32249 | IFS=$as_save_IFS |
| 32250 | test -z "$as_dir" && as_dir=. |
| 32251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32253 | ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext" |
| 32254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 32255 | break 2 |
| 32256 | fi |
| 32257 | done |
| 32258 | done |
| 32259 | IFS=$as_save_IFS |
| 32260 | |
| 32261 | ;; |
| 32262 | esac |
| 32263 | fi |
| 32264 | xml2_config=$ac_cv_path_xml2_config |
| 32265 | if test -n "$xml2_config"; then |
| 32266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5 |
| 32267 | $as_echo "$xml2_config" >&6; } |
| 32268 | else |
| 32269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32270 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32271 | fi |
| 32272 | |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32273 | if test -n "$xml2_config"; then |
| 32274 | # Debian installs libxml headers under /usr/include/libxml2/libxml with |
| 32275 | # the shared library installed under /usr/lib, whereas the package |
| 32276 | # installs itself under $prefix/libxml and $prefix/lib. |
| 32277 | xml2_prefix=`xml2-config --prefix` |
| 32278 | if test -d "${xml2_prefix}/include/libxml2"; then |
| 32279 | CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2" |
| 32280 | fi |
| 32281 | if test "${xml2_prefix}" != '/usr'; then |
| 32282 | LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib" |
| 32283 | fi |
| 32284 | fi |
| 32285 | failed=0 |
| 32286 | passed=0 |
| 32287 | ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default" |
| 32288 | if test "x$ac_cv_header_libxml_parser_h" = xyes; then : |
| 32289 | passed=`expr $passed + 1` |
| 32290 | else |
| 32291 | failed=`expr $failed + 1` |
| 32292 | fi |
| 32293 | |
| 32294 | |
| 32295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5 |
| 32296 | $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; } |
| 32297 | if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then : |
| 32298 | $as_echo_n "(cached) " >&6 |
| 32299 | else |
| 32300 | ac_check_lib_save_LIBS=$LIBS |
| 32301 | LIBS="-lxml2 $LIBS" |
| 32302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32303 | /* end confdefs.h. */ |
| 32304 | |
| 32305 | /* Override any GCC internal prototype to avoid an error. |
| 32306 | Use char because int might match the return type of a GCC |
| 32307 | builtin and then its argument prototype would still apply. */ |
| 32308 | #ifdef __cplusplus |
| 32309 | extern "C" |
| 32310 | #endif |
| 32311 | char xmlSAXVersion (); |
| 32312 | int |
| 32313 | main () |
| 32314 | { |
| 32315 | return xmlSAXVersion (); |
| 32316 | ; |
| 32317 | return 0; |
| 32318 | } |
| 32319 | _ACEOF |
| 32320 | if ac_fn_c_try_link "$LINENO"; then : |
| 32321 | ac_cv_lib_xml2_xmlSAXVersion=yes |
| 32322 | else |
| 32323 | ac_cv_lib_xml2_xmlSAXVersion=no |
| 32324 | fi |
| 32325 | rm -f core conftest.err conftest.$ac_objext \ |
| 32326 | conftest$ac_exeext conftest.$ac_ext |
| 32327 | LIBS=$ac_check_lib_save_LIBS |
| 32328 | fi |
| 32329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5 |
| 32330 | $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; } |
| 32331 | if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then : |
| 32332 | passed=`expr $passed + 1` |
| 32333 | else |
| 32334 | failed=`expr $failed + 1` |
| 32335 | fi |
| 32336 | |
| 32337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5 |
| 32338 | $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; } |
| 32339 | if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then : |
| 32340 | $as_echo_n "(cached) " >&6 |
| 32341 | else |
| 32342 | ac_check_lib_save_LIBS=$LIBS |
| 32343 | LIBS="-lxml2 $LIBS" |
| 32344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32345 | /* end confdefs.h. */ |
| 32346 | |
| 32347 | /* Override any GCC internal prototype to avoid an error. |
| 32348 | Use char because int might match the return type of a GCC |
| 32349 | builtin and then its argument prototype would still apply. */ |
| 32350 | #ifdef __cplusplus |
| 32351 | extern "C" |
| 32352 | #endif |
| 32353 | char xmlParseChunk (); |
| 32354 | int |
| 32355 | main () |
| 32356 | { |
| 32357 | return xmlParseChunk (); |
| 32358 | ; |
| 32359 | return 0; |
| 32360 | } |
| 32361 | _ACEOF |
| 32362 | if ac_fn_c_try_link "$LINENO"; then : |
| 32363 | ac_cv_lib_xml2_xmlParseChunk=yes |
| 32364 | else |
| 32365 | ac_cv_lib_xml2_xmlParseChunk=no |
| 32366 | fi |
| 32367 | rm -f core conftest.err conftest.$ac_objext \ |
| 32368 | conftest$ac_exeext conftest.$ac_ext |
| 32369 | LIBS=$ac_check_lib_save_LIBS |
| 32370 | fi |
| 32371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5 |
| 32372 | $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; } |
| 32373 | if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then : |
| 32374 | passed=`expr $passed + 1` |
| 32375 | else |
| 32376 | failed=`expr $failed + 1` |
| 32377 | fi |
| 32378 | |
| 32379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5 |
| 32380 | $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; } |
| 32381 | if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then : |
| 32382 | $as_echo_n "(cached) " >&6 |
| 32383 | else |
| 32384 | ac_check_lib_save_LIBS=$LIBS |
| 32385 | LIBS="-lxml2 $LIBS" |
| 32386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32387 | /* end confdefs.h. */ |
| 32388 | |
| 32389 | /* Override any GCC internal prototype to avoid an error. |
| 32390 | Use char because int might match the return type of a GCC |
| 32391 | builtin and then its argument prototype would still apply. */ |
| 32392 | #ifdef __cplusplus |
| 32393 | extern "C" |
| 32394 | #endif |
| 32395 | char xmlCreatePushParserCtxt (); |
| 32396 | int |
| 32397 | main () |
| 32398 | { |
| 32399 | return xmlCreatePushParserCtxt (); |
| 32400 | ; |
| 32401 | return 0; |
| 32402 | } |
| 32403 | _ACEOF |
| 32404 | if ac_fn_c_try_link "$LINENO"; then : |
| 32405 | ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes |
| 32406 | else |
| 32407 | ac_cv_lib_xml2_xmlCreatePushParserCtxt=no |
| 32408 | fi |
| 32409 | rm -f core conftest.err conftest.$ac_objext \ |
| 32410 | conftest$ac_exeext conftest.$ac_ext |
| 32411 | LIBS=$ac_check_lib_save_LIBS |
| 32412 | fi |
| 32413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5 |
| 32414 | $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; } |
| 32415 | if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then : |
| 32416 | passed=`expr $passed + 1` |
| 32417 | else |
| 32418 | failed=`expr $failed + 1` |
| 32419 | fi |
| 32420 | |
| 32421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5 |
| 32422 | $as_echo_n "checking if XML package is complete... " >&6; } |
| 32423 | if test $passed -gt 0; then |
| 32424 | if test $failed -gt 0; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5 |
| 32426 | $as_echo "no -- some components failed test" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32427 | have_xml='no (failed tests)' |
| 32428 | LDFLAGS="$PERSIST_LDFLAGS" |
| 32429 | CPPFLAGS="$PERSIST_CPPFLAGS" |
| 32430 | else |
| 32431 | XML_LIBS='-lxml2' |
| 32432 | LIBS="$XML_LIBS $LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32433 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32434 | $as_echo "#define XML_DELEGATE 1" >>confdefs.h |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32435 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32437 | $as_echo "yes" >&6; } |
| cristy | 81beccd | 2011-10-03 18:17:24 +0000 | [diff] [blame] | 32438 | have_xml='yes' |
| 32439 | fi |
| 32440 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32442 | $as_echo "no" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32443 | fi |
| 32444 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 32445 | if test "$have_xml" = 'yes'; then |
| 32446 | XML_DELEGATE_TRUE= |
| 32447 | XML_DELEGATE_FALSE='#' |
| 32448 | else |
| 32449 | XML_DELEGATE_TRUE='#' |
| 32450 | XML_DELEGATE_FALSE= |
| 32451 | fi |
| 32452 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32453 | |
| 32454 | |
| 32455 | |
| 32456 | # Substitute compiler name to build/link PerlMagick |
| 32457 | # |
| 32458 | |
| 32459 | |
| 32460 | # |
| 32461 | # Configure install Paths |
| 32462 | # |
| cristy | 7def36a | 2011-10-28 19:04:41 +0000 | [diff] [blame] | 32463 | |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32464 | # Path to ImageMagick header files |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 32465 | INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 32466 | INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}" |
| 32467 | DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/" |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32468 | case "${build_os}" in |
| 32469 | mingw* ) |
| 32470 | DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1` |
| 32471 | ;; |
| 32472 | esac |
| 32473 | |
| 32474 | cat >>confdefs.h <<_ACEOF |
| 32475 | #define INCLUDE_PATH "$DEFINE_INCLUDE_PATH" |
| 32476 | _ACEOF |
| 32477 | |
| 32478 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32479 | |
| cristy | e52f12f | 2012-12-31 15:32:36 +0000 | [diff] [blame] | 32480 | # Path to ImageMagick header files (arch part) |
| 32481 | INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}" |
| 32482 | DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/" |
| 32483 | case "${build_os}" in |
| 32484 | mingw* ) |
| 32485 | DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1` |
| 32486 | ;; |
| 32487 | esac |
| 32488 | |
| 32489 | cat >>confdefs.h <<_ACEOF |
| 32490 | #define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH" |
| 32491 | _ACEOF |
| 32492 | |
| 32493 | |
| 32494 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32495 | # Subdirectory under lib to place ImageMagick lib files |
| 32496 | LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}" |
| 32497 | |
| 32498 | cat >>confdefs.h <<_ACEOF |
| 32499 | #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH" |
| 32500 | _ACEOF |
| 32501 | |
| 32502 | |
| 32503 | # Path to ImageMagick bin directory |
| 32504 | EXECUTABLE_PATH="${BIN_DIR}" |
| 32505 | DEFINE_EXECUTABLE_PATH="${BIN_DIR}/" |
| 32506 | case "${build_os}" in |
| 32507 | mingw* ) |
| 32508 | DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1` |
| 32509 | ;; |
| 32510 | esac |
| 32511 | |
| 32512 | cat >>confdefs.h <<_ACEOF |
| 32513 | #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH" |
| 32514 | _ACEOF |
| 32515 | |
| 32516 | |
| 32517 | |
| 32518 | # Path to ImageMagick lib |
| 32519 | LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}" |
| 32520 | DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/" |
| 32521 | case "${build_os}" in |
| 32522 | mingw* ) |
| 32523 | DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1` |
| 32524 | ;; |
| 32525 | esac |
| 32526 | |
| 32527 | cat >>confdefs.h <<_ACEOF |
| 32528 | #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH" |
| 32529 | _ACEOF |
| 32530 | |
| 32531 | |
| 32532 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32533 | # |
| cristy | 8d0ff76 | 2013-03-10 20:33:28 +0000 | [diff] [blame] | 32534 | # path to local binaries |
| 32535 | if test "x$LIB_BIN_BASEDIRNAME" = "x"; then |
| 32536 | LIB_BIN_BASEDIRNAME="bin" |
| 32537 | fi |
| 32538 | |
| 32539 | cat >>confdefs.h <<_ACEOF |
| 32540 | #define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME" |
| 32541 | _ACEOF |
| 32542 | |
| 32543 | |
| 32544 | |
| 32545 | if test "x$LIB_BIN_DIR" = "x"; then |
| 32546 | LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} |
| 32547 | fi |
| 32548 | |
| 32549 | |
| 32550 | LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR |
| 32551 | |
| 32552 | LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}" |
| 32553 | |
| 32554 | |
| 32555 | # |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32556 | # path to modules lib |
| 32557 | if test "x$MODULES_BASEDIRNAME" = "x"; then |
| 32558 | MODULES_BASEDIRNAME="modules" |
| 32559 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32560 | |
| 32561 | cat >>confdefs.h <<_ACEOF |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32562 | #define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32563 | _ACEOF |
| 32564 | |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32565 | |
| 32566 | |
| 32567 | if test "x$MODULES_DIRNAME" = "x"; then |
| cristy | 4bdbd34 | 2012-12-03 18:41:18 +0000 | [diff] [blame] | 32568 | MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} |
| 32569 | else |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32570 | |
| 32571 | cat >>confdefs.h <<_ACEOF |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32572 | #define MODULES_DIRNAME "$MODULES_DIRNAME" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32573 | _ACEOF |
| 32574 | |
| cristy | cf4a3c2 | 2012-12-02 21:47:25 +0000 | [diff] [blame] | 32575 | fi |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32576 | |
| 32577 | |
| cristy | 371d481 | 2012-12-01 19:48:10 +0000 | [diff] [blame] | 32578 | MODULES_RELATIVE_PATH="${MODULES_DIRNAME}" |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32579 | |
| 32580 | MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}" |
| 32581 | |
| 32582 | |
| 32583 | # |
| 32584 | # path to coders lib |
| 32585 | if test "x$CODER_DIRNAME" = "x"; then |
| 32586 | CODER_DIRNAME="coders" |
| 32587 | fi |
| 32588 | |
| 32589 | cat >>confdefs.h <<_ACEOF |
| 32590 | #define CODER_DIRNAME "$CODER_DIRNAME" |
| 32591 | _ACEOF |
| 32592 | |
| 32593 | |
| 32594 | |
| cristy | 371d481 | 2012-12-01 19:48:10 +0000 | [diff] [blame] | 32595 | CODER_RELATIVE_PATH="${CODER_DIRNAME}" |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32596 | CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32597 | |
| 32598 | |
| 32599 | # |
| 32600 | # Subdirectory under lib to place ImageMagick filter module files |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32601 | # |
| 32602 | # path to coders lib |
| 32603 | if test "x$FILTER_DIRNAME" = "x"; then |
| 32604 | FILTER_DIRNAME="filters" |
| 32605 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32606 | |
| 32607 | cat >>confdefs.h <<_ACEOF |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32608 | #define FILTER_DIRNAME "$FILTER_DIRNAME" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32609 | _ACEOF |
| 32610 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32611 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32612 | |
| cristy | 371d481 | 2012-12-01 19:48:10 +0000 | [diff] [blame] | 32613 | FILTER_RELATIVE_PATH="${FILTER_DIRNAME}" |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 32614 | FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32615 | |
| 32616 | |
| 32617 | # |
| 32618 | # Path to ImageMagick documentation files |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 32619 | DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" |
| cristy | d55889c | 2011-03-27 00:50:24 +0000 | [diff] [blame] | 32620 | DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}" |
| 32621 | DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32622 | case "${build_os}" in |
| 32623 | mingw* ) |
| 32624 | DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1` |
| 32625 | ;; |
| 32626 | esac |
| 32627 | |
| 32628 | cat >>confdefs.h <<_ACEOF |
| 32629 | #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH" |
| 32630 | _ACEOF |
| 32631 | |
| 32632 | |
| 32633 | |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32634 | # Subdirectory to place architecture-dependent configuration files |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 32635 | CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" |
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 32636 | |
| 32637 | cat >>confdefs.h <<_ACEOF |
| 32638 | #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH" |
| 32639 | _ACEOF |
| 32640 | |
| cristy | 7def36a | 2011-10-28 19:04:41 +0000 | [diff] [blame] | 32641 | CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| cristy | 45dbd32 | 2011-03-27 16:40:38 +0000 | [diff] [blame] | 32642 | DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/" |
| 32643 | case "${build_os}" in |
| 32644 | mingw* ) |
| 32645 | DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1` |
| 32646 | ;; |
| 32647 | esac |
| 32648 | |
| 32649 | cat >>confdefs.h <<_ACEOF |
| 32650 | #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH" |
| 32651 | _ACEOF |
| 32652 | |
| 32653 | |
| 32654 | |
| cristy | 2a11bef | 2011-10-28 18:33:11 +0000 | [diff] [blame] | 32655 | # Subdirectory to place architecture-independent configuration files |
| cristy | bdabdd6 | 2013-03-04 17:43:36 +0000 | [diff] [blame] | 32656 | SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32657 | |
| 32658 | cat >>confdefs.h <<_ACEOF |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32659 | #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32660 | _ACEOF |
| 32661 | |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32662 | SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}" |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32663 | DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32664 | case "${build_os}" in |
| 32665 | mingw* ) |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32666 | DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32667 | ;; |
| 32668 | esac |
| 32669 | |
| 32670 | cat >>confdefs.h <<_ACEOF |
| cristy | 4f82071 | 2011-04-01 12:35:43 +0000 | [diff] [blame] | 32671 | #define SHARE_PATH "$DEFINE_SHARE_PATH" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32672 | _ACEOF |
| 32673 | |
| 32674 | |
| 32675 | |
| cristy | 5437803 | 2012-12-04 15:52:20 +0000 | [diff] [blame] | 32676 | # |
| 32677 | # Subdirectory to place architecture-dependent configuration files. |
| 32678 | if test "x$SHAREARCH_BASEDIRNAME" = "x"; then |
| 32679 | SHAREARCH_BASEDIRNAME="config" |
| 32680 | fi |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32681 | |
| 32682 | cat >>confdefs.h <<_ACEOF |
| cristy | 5437803 | 2012-12-04 15:52:20 +0000 | [diff] [blame] | 32683 | #define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME" |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32684 | _ACEOF |
| 32685 | |
| cristy | 5437803 | 2012-12-04 15:52:20 +0000 | [diff] [blame] | 32686 | |
| 32687 | |
| 32688 | if test "x$SHAREARCH_DIRNAME" = "x"; then |
| 32689 | SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX} |
| 32690 | else |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32691 | |
| 32692 | cat >>confdefs.h <<_ACEOF |
| cristy | 5437803 | 2012-12-04 15:52:20 +0000 | [diff] [blame] | 32693 | #define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME" |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32694 | _ACEOF |
| 32695 | |
| cristy | 5437803 | 2012-12-04 15:52:20 +0000 | [diff] [blame] | 32696 | fi |
| 32697 | |
| 32698 | |
| 32699 | SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}" |
| 32700 | |
| 32701 | SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}" |
| cristy | 670aa3c | 2011-11-03 00:54:00 +0000 | [diff] [blame] | 32702 | |
| 32703 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32704 | # |
| 32705 | # program_transform_name is formed for use in a Makefile, so create a |
| 32706 | # modified version for use in a shell script. |
| 32707 | configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'` |
| 32708 | |
| 32709 | # Default delegate definitions |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 32711 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32713 | $as_echo_n "checking for ImageMagick delegate programs... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 32714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 32715 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32716 | AutotraceDecodeDelegateDefault='autotrace' |
| cristy | 3d7f806 | 2009-09-24 20:45:35 +0000 | [diff] [blame] | 32717 | BlenderDecodeDelegateDefault='blender' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32718 | BZIPDelegateDefault='bzip2' |
| 32719 | BrowseDelegateDefault='xdg-open' |
| 32720 | CGMDecodeDelegateDefault='ralcgm' |
| 32721 | CatDelegateDefault='cat' |
| 32722 | DNGDecodeDelegateDefault='ufraw-batch' |
| 32723 | GVCDecodeDelegateDefault='dot' |
| 32724 | DVIDecodeDelegateDefault='dvips' |
| 32725 | EchoDelegateDefault='echo' |
| 32726 | EditorDelegateDefault='xterm' |
| 32727 | FIGDecodeDelegateDefault='fig2dev' |
| 32728 | ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}` |
| 32729 | DisplayDelegateDefault=`echo display | sed ${configure_transform_name}` |
| 32730 | MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}` |
| 32731 | GnuplotDecodeDelegateDefault='gnuplot' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32732 | HPGLDecodeDelegateDefault='hp2xx' |
| 32733 | HTMLDecodeDelegateDefault='html2ps' |
| 32734 | ILBMDecodeDelegateDefault='ilbmtoppm' |
| 32735 | ILBMEncodeDelegateDefault='ppmtoilbm' |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 32736 | JXRDecodeDelegateDefault='JxrDecApp' |
| 32737 | JXREncodeDelegateDefault='JxrEncApp' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32738 | LPDelegateDefault='lp' |
| 32739 | LPRDelegateDefault='lpr' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32740 | LaunchDelegateDefault='gimp' |
| 32741 | MANDelegateDefault='groff' |
| 32742 | MPEGDecodeDelegateDefault='ffmpeg' |
| 32743 | MPEGEncodeDelegateDefault='ffmpeg' |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 32744 | MrSIDDecodeDelegateDefault='mrsidgeodecode' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32745 | MVDelegateDefault='mv' |
| 32746 | PCLDelegateDefault='pcl6' |
| 32747 | PGPDecodeDelegateDefault='pgpv' |
| 32748 | POVDelegateDefault='povray' |
| 32749 | if test "$native_win32_build" = 'yes'; then |
| 32750 | PSDelegateDefault='gswin32c' |
| cristy | b7931f1 | 2009-09-25 10:22:21 +0000 | [diff] [blame] | 32751 | elif test "$gslib_framework" = 'yes'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32752 | PSDelegateDefault='gsc' |
| 32753 | else |
| 32754 | PSDelegateDefault='gs' |
| 32755 | fi |
| 32756 | RLEEncodeDelegateDefault='rawtorle' |
| 32757 | RMDelegateDefault='rm' |
| cristy | 5281e32 | 2012-02-09 21:12:45 +0000 | [diff] [blame] | 32758 | RSVGDecodeDelegateDefault='rsvg-convert' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32759 | SCANDecodeDelegateDefault='scanimage' |
| cristy | ec6934f | 2012-08-14 18:38:40 +0000 | [diff] [blame] | 32760 | SVGDecodeDelegateDefault='inkscape' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32761 | TXTDelegateDefault='enscript' |
| cristy | 16db5ed | 2010-07-29 13:32:02 +0000 | [diff] [blame] | 32762 | UniconvertorDelegateDefault='uniconvertor' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32763 | WMFDecodeDelegateDefault='wmf2eps' |
| 32764 | WWWDecodeDelegateDefault='curl' |
| 32765 | XPSDelegateDefault='gxps' |
| 32766 | ZipDelegateDefault='gzip' |
| 32767 | |
| 32768 | # Search for delegates |
| 32769 | # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args. |
| 32770 | set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32772 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32773 | if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32774 | $as_echo_n "(cached) " >&6 |
| 32775 | else |
| 32776 | case $AutotraceDecodeDelegate in |
| 32777 | [\\/]* | ?:[\\/]*) |
| 32778 | ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path. |
| 32779 | ;; |
| 32780 | *) |
| 32781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32782 | for as_dir in $PATH |
| 32783 | do |
| 32784 | IFS=$as_save_IFS |
| 32785 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32786 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32788 | ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32790 | break 2 |
| 32791 | fi |
| 32792 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32793 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32794 | IFS=$as_save_IFS |
| 32795 | |
| 32796 | test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault"" |
| 32797 | ;; |
| 32798 | esac |
| 32799 | fi |
| 32800 | AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate |
| 32801 | if test -n "$AutotraceDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32803 | $as_echo "$AutotraceDecodeDelegate" >&6; } |
| 32804 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32806 | $as_echo "no" >&6; } |
| 32807 | fi |
| 32808 | |
| 32809 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32810 | # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args. |
| 32811 | set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32813 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32814 | if ${ac_cv_path_BlenderDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32815 | $as_echo_n "(cached) " >&6 |
| 32816 | else |
| 32817 | case $BlenderDecodeDelegate in |
| 32818 | [\\/]* | ?:[\\/]*) |
| 32819 | ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path. |
| 32820 | ;; |
| 32821 | *) |
| 32822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32823 | for as_dir in $PATH |
| 32824 | do |
| 32825 | IFS=$as_save_IFS |
| 32826 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32827 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32829 | ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32831 | break 2 |
| 32832 | fi |
| 32833 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32834 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32835 | IFS=$as_save_IFS |
| 32836 | |
| 32837 | test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault"" |
| 32838 | ;; |
| 32839 | esac |
| 32840 | fi |
| 32841 | BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate |
| 32842 | if test -n "$BlenderDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32844 | $as_echo "$BlenderDecodeDelegate" >&6; } |
| 32845 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32847 | $as_echo "no" >&6; } |
| 32848 | fi |
| 32849 | |
| 32850 | |
| 32851 | # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args. |
| 32852 | set dummy "$BZIPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32854 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32855 | if ${ac_cv_path_BZIPDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32856 | $as_echo_n "(cached) " >&6 |
| 32857 | else |
| 32858 | case $BZIPDelegate in |
| 32859 | [\\/]* | ?:[\\/]*) |
| 32860 | ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path. |
| 32861 | ;; |
| 32862 | *) |
| 32863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32864 | for as_dir in $PATH |
| 32865 | do |
| 32866 | IFS=$as_save_IFS |
| 32867 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32868 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32870 | ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32872 | break 2 |
| 32873 | fi |
| 32874 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32875 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32876 | IFS=$as_save_IFS |
| 32877 | |
| 32878 | test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault"" |
| 32879 | ;; |
| 32880 | esac |
| 32881 | fi |
| 32882 | BZIPDelegate=$ac_cv_path_BZIPDelegate |
| 32883 | if test -n "$BZIPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32885 | $as_echo "$BZIPDelegate" >&6; } |
| 32886 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32888 | $as_echo "no" >&6; } |
| 32889 | fi |
| 32890 | |
| 32891 | |
| cristy | c59f0e7 | 2012-08-27 12:59:33 +0000 | [diff] [blame] | 32892 | for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx |
| 32893 | do |
| 32894 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 32895 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32897 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32898 | if ${ac_cv_path_BrowseDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32899 | $as_echo_n "(cached) " >&6 |
| 32900 | else |
| 32901 | case $BrowseDelegate in |
| 32902 | [\\/]* | ?:[\\/]*) |
| 32903 | ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path. |
| 32904 | ;; |
| 32905 | *) |
| 32906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32907 | for as_dir in $PATH |
| 32908 | do |
| 32909 | IFS=$as_save_IFS |
| 32910 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32911 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32913 | ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32915 | break 2 |
| 32916 | fi |
| 32917 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32918 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32919 | IFS=$as_save_IFS |
| 32920 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32921 | ;; |
| 32922 | esac |
| 32923 | fi |
| 32924 | BrowseDelegate=$ac_cv_path_BrowseDelegate |
| 32925 | if test -n "$BrowseDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32927 | $as_echo "$BrowseDelegate" >&6; } |
| 32928 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32930 | $as_echo "no" >&6; } |
| 32931 | fi |
| 32932 | |
| 32933 | |
| cristy | c59f0e7 | 2012-08-27 12:59:33 +0000 | [diff] [blame] | 32934 | test -n "$BrowseDelegate" && break |
| 32935 | done |
| 32936 | test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault"" |
| 32937 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32938 | # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args. |
| 32939 | set dummy "$CGMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32941 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32942 | if ${ac_cv_path_CGMDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32943 | $as_echo_n "(cached) " >&6 |
| 32944 | else |
| 32945 | case $CGMDecodeDelegate in |
| 32946 | [\\/]* | ?:[\\/]*) |
| 32947 | ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path. |
| 32948 | ;; |
| 32949 | *) |
| 32950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32951 | for as_dir in $PATH |
| 32952 | do |
| 32953 | IFS=$as_save_IFS |
| 32954 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32955 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32956 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32957 | ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32958 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32959 | break 2 |
| 32960 | fi |
| 32961 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32962 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32963 | IFS=$as_save_IFS |
| 32964 | |
| 32965 | test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault"" |
| 32966 | ;; |
| 32967 | esac |
| 32968 | fi |
| 32969 | CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate |
| 32970 | if test -n "$CGMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32972 | $as_echo "$CGMDecodeDelegate" >&6; } |
| 32973 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32975 | $as_echo "no" >&6; } |
| 32976 | fi |
| 32977 | |
| 32978 | |
| 32979 | # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args. |
| 32980 | set dummy "$CatDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32982 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 32983 | if ${ac_cv_path_CatDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32984 | $as_echo_n "(cached) " >&6 |
| 32985 | else |
| 32986 | case $CatDelegate in |
| 32987 | [\\/]* | ?:[\\/]*) |
| 32988 | ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path. |
| 32989 | ;; |
| 32990 | *) |
| 32991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32992 | for as_dir in $PATH |
| 32993 | do |
| 32994 | IFS=$as_save_IFS |
| 32995 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 32997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32998 | ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 32999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33000 | break 2 |
| 33001 | fi |
| 33002 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33003 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33004 | IFS=$as_save_IFS |
| 33005 | |
| 33006 | test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault"" |
| 33007 | ;; |
| 33008 | esac |
| 33009 | fi |
| 33010 | CatDelegate=$ac_cv_path_CatDelegate |
| 33011 | if test -n "$CatDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33013 | $as_echo "$CatDelegate" >&6; } |
| 33014 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33016 | $as_echo "no" >&6; } |
| 33017 | fi |
| 33018 | |
| 33019 | |
| 33020 | # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args. |
| 33021 | set dummy "$DNGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33023 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33024 | if ${ac_cv_path_DNGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33025 | $as_echo_n "(cached) " >&6 |
| 33026 | else |
| 33027 | case $DNGDecodeDelegate in |
| 33028 | [\\/]* | ?:[\\/]*) |
| 33029 | ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path. |
| 33030 | ;; |
| 33031 | *) |
| 33032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33033 | for as_dir in $PATH |
| 33034 | do |
| 33035 | IFS=$as_save_IFS |
| 33036 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33037 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33039 | ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33041 | break 2 |
| 33042 | fi |
| 33043 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33044 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33045 | IFS=$as_save_IFS |
| 33046 | |
| 33047 | test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault"" |
| 33048 | ;; |
| 33049 | esac |
| 33050 | fi |
| 33051 | DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate |
| 33052 | if test -n "$DNGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33054 | $as_echo "$DNGDecodeDelegate" >&6; } |
| 33055 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33057 | $as_echo "no" >&6; } |
| 33058 | fi |
| 33059 | |
| 33060 | |
| 33061 | # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args. |
| 33062 | set dummy "$GVCDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33064 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33065 | if ${ac_cv_path_GVCDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33066 | $as_echo_n "(cached) " >&6 |
| 33067 | else |
| 33068 | case $GVCDecodeDelegate in |
| 33069 | [\\/]* | ?:[\\/]*) |
| 33070 | ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path. |
| 33071 | ;; |
| 33072 | *) |
| 33073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33074 | for as_dir in $PATH |
| 33075 | do |
| 33076 | IFS=$as_save_IFS |
| 33077 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33078 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33080 | ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33082 | break 2 |
| 33083 | fi |
| 33084 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33085 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33086 | IFS=$as_save_IFS |
| 33087 | |
| 33088 | test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault"" |
| 33089 | ;; |
| 33090 | esac |
| 33091 | fi |
| 33092 | GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate |
| 33093 | if test -n "$GVCDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33095 | $as_echo "$GVCDecodeDelegate" >&6; } |
| 33096 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33098 | $as_echo "no" >&6; } |
| 33099 | fi |
| 33100 | |
| 33101 | |
| 33102 | # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args. |
| 33103 | set dummy "$DVIDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33105 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33106 | if ${ac_cv_path_DVIDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33107 | $as_echo_n "(cached) " >&6 |
| 33108 | else |
| 33109 | case $DVIDecodeDelegate in |
| 33110 | [\\/]* | ?:[\\/]*) |
| 33111 | ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path. |
| 33112 | ;; |
| 33113 | *) |
| 33114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33115 | for as_dir in $PATH |
| 33116 | do |
| 33117 | IFS=$as_save_IFS |
| 33118 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33119 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33120 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33121 | ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33123 | break 2 |
| 33124 | fi |
| 33125 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33126 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33127 | IFS=$as_save_IFS |
| 33128 | |
| 33129 | test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault"" |
| 33130 | ;; |
| 33131 | esac |
| 33132 | fi |
| 33133 | DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate |
| 33134 | if test -n "$DVIDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33136 | $as_echo "$DVIDecodeDelegate" >&6; } |
| 33137 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33139 | $as_echo "no" >&6; } |
| 33140 | fi |
| 33141 | |
| 33142 | |
| 33143 | # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args. |
| 33144 | set dummy "$EchoDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33146 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33147 | if ${ac_cv_path_EchoDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33148 | $as_echo_n "(cached) " >&6 |
| 33149 | else |
| 33150 | case $EchoDelegate in |
| 33151 | [\\/]* | ?:[\\/]*) |
| 33152 | ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path. |
| 33153 | ;; |
| 33154 | *) |
| 33155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33156 | for as_dir in $PATH |
| 33157 | do |
| 33158 | IFS=$as_save_IFS |
| 33159 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33162 | ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33164 | break 2 |
| 33165 | fi |
| 33166 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33167 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33168 | IFS=$as_save_IFS |
| 33169 | |
| 33170 | test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault"" |
| 33171 | ;; |
| 33172 | esac |
| 33173 | fi |
| 33174 | EchoDelegate=$ac_cv_path_EchoDelegate |
| 33175 | if test -n "$EchoDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33177 | $as_echo "$EchoDelegate" >&6; } |
| 33178 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33180 | $as_echo "no" >&6; } |
| 33181 | fi |
| 33182 | |
| 33183 | |
| 33184 | # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args. |
| 33185 | set dummy "$EditorDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33187 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33188 | if ${ac_cv_path_EditorDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33189 | $as_echo_n "(cached) " >&6 |
| 33190 | else |
| 33191 | case $EditorDelegate in |
| 33192 | [\\/]* | ?:[\\/]*) |
| 33193 | ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path. |
| 33194 | ;; |
| 33195 | *) |
| 33196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33197 | for as_dir in $PATH |
| 33198 | do |
| 33199 | IFS=$as_save_IFS |
| 33200 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33201 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33203 | ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33205 | break 2 |
| 33206 | fi |
| 33207 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33208 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33209 | IFS=$as_save_IFS |
| 33210 | |
| 33211 | test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault"" |
| 33212 | ;; |
| 33213 | esac |
| 33214 | fi |
| 33215 | EditorDelegate=$ac_cv_path_EditorDelegate |
| 33216 | if test -n "$EditorDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33218 | $as_echo "$EditorDelegate" >&6; } |
| 33219 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33221 | $as_echo "no" >&6; } |
| 33222 | fi |
| 33223 | |
| 33224 | |
| 33225 | # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args. |
| 33226 | set dummy "$FIGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33228 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33229 | if ${ac_cv_path_FIGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33230 | $as_echo_n "(cached) " >&6 |
| 33231 | else |
| 33232 | case $FIGDecodeDelegate in |
| 33233 | [\\/]* | ?:[\\/]*) |
| 33234 | ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path. |
| 33235 | ;; |
| 33236 | *) |
| 33237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33238 | for as_dir in $PATH |
| 33239 | do |
| 33240 | IFS=$as_save_IFS |
| 33241 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33242 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33243 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33244 | ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33246 | break 2 |
| 33247 | fi |
| 33248 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33249 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33250 | IFS=$as_save_IFS |
| 33251 | |
| 33252 | test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault"" |
| 33253 | ;; |
| 33254 | esac |
| 33255 | fi |
| 33256 | FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate |
| 33257 | if test -n "$FIGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33259 | $as_echo "$FIGDecodeDelegate" >&6; } |
| 33260 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33262 | $as_echo "no" >&6; } |
| 33263 | fi |
| 33264 | |
| 33265 | |
| 33266 | # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args. |
| 33267 | set dummy "$ConvertDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33269 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33270 | if ${ac_cv_path_ConvertDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33271 | $as_echo_n "(cached) " >&6 |
| 33272 | else |
| 33273 | case $ConvertDelegate in |
| 33274 | [\\/]* | ?:[\\/]*) |
| 33275 | ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path. |
| 33276 | ;; |
| 33277 | *) |
| 33278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33279 | for as_dir in $PATH |
| 33280 | do |
| 33281 | IFS=$as_save_IFS |
| 33282 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33283 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33284 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33285 | ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33286 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33287 | break 2 |
| 33288 | fi |
| 33289 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33290 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33291 | IFS=$as_save_IFS |
| 33292 | |
| 33293 | test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault"" |
| 33294 | ;; |
| 33295 | esac |
| 33296 | fi |
| 33297 | ConvertDelegate=$ac_cv_path_ConvertDelegate |
| 33298 | if test -n "$ConvertDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33300 | $as_echo "$ConvertDelegate" >&6; } |
| 33301 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33303 | $as_echo "no" >&6; } |
| 33304 | fi |
| 33305 | |
| 33306 | |
| 33307 | # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args. |
| 33308 | set dummy "$DisplayDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33310 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33311 | if ${ac_cv_path_DisplayDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33312 | $as_echo_n "(cached) " >&6 |
| 33313 | else |
| 33314 | case $DisplayDelegate in |
| 33315 | [\\/]* | ?:[\\/]*) |
| 33316 | ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path. |
| 33317 | ;; |
| 33318 | *) |
| 33319 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33320 | for as_dir in $PATH |
| 33321 | do |
| 33322 | IFS=$as_save_IFS |
| 33323 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33324 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33325 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33326 | ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33327 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33328 | break 2 |
| 33329 | fi |
| 33330 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33331 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33332 | IFS=$as_save_IFS |
| 33333 | |
| 33334 | test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault"" |
| 33335 | ;; |
| 33336 | esac |
| 33337 | fi |
| 33338 | DisplayDelegate=$ac_cv_path_DisplayDelegate |
| 33339 | if test -n "$DisplayDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33341 | $as_echo "$DisplayDelegate" >&6; } |
| 33342 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33344 | $as_echo "no" >&6; } |
| 33345 | fi |
| 33346 | |
| 33347 | |
| 33348 | # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args. |
| 33349 | set dummy "$MogrifyDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33351 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33352 | if ${ac_cv_path_MogrifyDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33353 | $as_echo_n "(cached) " >&6 |
| 33354 | else |
| 33355 | case $MogrifyDelegate in |
| 33356 | [\\/]* | ?:[\\/]*) |
| 33357 | ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path. |
| 33358 | ;; |
| 33359 | *) |
| 33360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33361 | for as_dir in $PATH |
| 33362 | do |
| 33363 | IFS=$as_save_IFS |
| 33364 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33365 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33367 | ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33369 | break 2 |
| 33370 | fi |
| 33371 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33372 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33373 | IFS=$as_save_IFS |
| 33374 | |
| 33375 | test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault"" |
| 33376 | ;; |
| 33377 | esac |
| 33378 | fi |
| 33379 | MogrifyDelegate=$ac_cv_path_MogrifyDelegate |
| 33380 | if test -n "$MogrifyDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33382 | $as_echo "$MogrifyDelegate" >&6; } |
| 33383 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33385 | $as_echo "no" >&6; } |
| 33386 | fi |
| 33387 | |
| 33388 | |
| 33389 | # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args. |
| 33390 | set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33392 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33393 | if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33394 | $as_echo_n "(cached) " >&6 |
| 33395 | else |
| 33396 | case $GnuplotDecodeDelegate in |
| 33397 | [\\/]* | ?:[\\/]*) |
| 33398 | ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path. |
| 33399 | ;; |
| 33400 | *) |
| 33401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33402 | for as_dir in $PATH |
| 33403 | do |
| 33404 | IFS=$as_save_IFS |
| 33405 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33406 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33407 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33408 | ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33410 | break 2 |
| 33411 | fi |
| 33412 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33413 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33414 | IFS=$as_save_IFS |
| 33415 | |
| 33416 | test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault"" |
| 33417 | ;; |
| 33418 | esac |
| 33419 | fi |
| 33420 | GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate |
| 33421 | if test -n "$GnuplotDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33423 | $as_echo "$GnuplotDecodeDelegate" >&6; } |
| 33424 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33426 | $as_echo "no" >&6; } |
| 33427 | fi |
| 33428 | |
| 33429 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33430 | # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args. |
| 33431 | set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33433 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33434 | if ${ac_cv_path_HPGLDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33435 | $as_echo_n "(cached) " >&6 |
| 33436 | else |
| 33437 | case $HPGLDecodeDelegate in |
| 33438 | [\\/]* | ?:[\\/]*) |
| 33439 | ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path. |
| 33440 | ;; |
| 33441 | *) |
| 33442 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33443 | for as_dir in $PATH |
| 33444 | do |
| 33445 | IFS=$as_save_IFS |
| 33446 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33447 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33448 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33449 | ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33450 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33451 | break 2 |
| 33452 | fi |
| 33453 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33454 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33455 | IFS=$as_save_IFS |
| 33456 | |
| 33457 | test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault"" |
| 33458 | ;; |
| 33459 | esac |
| 33460 | fi |
| 33461 | HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate |
| 33462 | if test -n "$HPGLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33464 | $as_echo "$HPGLDecodeDelegate" >&6; } |
| 33465 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33467 | $as_echo "no" >&6; } |
| 33468 | fi |
| 33469 | |
| 33470 | |
| 33471 | # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args. |
| 33472 | set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33474 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33475 | if ${ac_cv_path_HTMLDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33476 | $as_echo_n "(cached) " >&6 |
| 33477 | else |
| 33478 | case $HTMLDecodeDelegate in |
| 33479 | [\\/]* | ?:[\\/]*) |
| 33480 | ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path. |
| 33481 | ;; |
| 33482 | *) |
| 33483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33484 | for as_dir in $PATH |
| 33485 | do |
| 33486 | IFS=$as_save_IFS |
| 33487 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33489 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33490 | ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33492 | break 2 |
| 33493 | fi |
| 33494 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33495 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33496 | IFS=$as_save_IFS |
| 33497 | |
| 33498 | test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault"" |
| 33499 | ;; |
| 33500 | esac |
| 33501 | fi |
| 33502 | HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate |
| 33503 | if test -n "$HTMLDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33505 | $as_echo "$HTMLDecodeDelegate" >&6; } |
| 33506 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33508 | $as_echo "no" >&6; } |
| 33509 | fi |
| 33510 | |
| 33511 | |
| 33512 | # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args. |
| 33513 | set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33515 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33516 | if ${ac_cv_path_ILBMDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33517 | $as_echo_n "(cached) " >&6 |
| 33518 | else |
| 33519 | case $ILBMDecodeDelegate in |
| 33520 | [\\/]* | ?:[\\/]*) |
| 33521 | ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path. |
| 33522 | ;; |
| 33523 | *) |
| 33524 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33525 | for as_dir in $PATH |
| 33526 | do |
| 33527 | IFS=$as_save_IFS |
| 33528 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33529 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33530 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33531 | ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33532 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33533 | break 2 |
| 33534 | fi |
| 33535 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33536 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33537 | IFS=$as_save_IFS |
| 33538 | |
| 33539 | test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault"" |
| 33540 | ;; |
| 33541 | esac |
| 33542 | fi |
| 33543 | ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate |
| 33544 | if test -n "$ILBMDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33546 | $as_echo "$ILBMDecodeDelegate" >&6; } |
| 33547 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33549 | $as_echo "no" >&6; } |
| 33550 | fi |
| 33551 | |
| 33552 | |
| 33553 | # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args. |
| 33554 | set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33556 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33557 | if ${ac_cv_path_ILBMEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33558 | $as_echo_n "(cached) " >&6 |
| 33559 | else |
| 33560 | case $ILBMEncodeDelegate in |
| 33561 | [\\/]* | ?:[\\/]*) |
| 33562 | ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path. |
| 33563 | ;; |
| 33564 | *) |
| 33565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33566 | for as_dir in $PATH |
| 33567 | do |
| 33568 | IFS=$as_save_IFS |
| 33569 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33570 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33571 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33572 | ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33574 | break 2 |
| 33575 | fi |
| 33576 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33577 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33578 | IFS=$as_save_IFS |
| 33579 | |
| 33580 | test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault"" |
| 33581 | ;; |
| 33582 | esac |
| 33583 | fi |
| 33584 | ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate |
| 33585 | if test -n "$ILBMEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33587 | $as_echo "$ILBMEncodeDelegate" >&6; } |
| 33588 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33590 | $as_echo "no" >&6; } |
| 33591 | fi |
| 33592 | |
| 33593 | |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 33594 | # Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args. |
| 33595 | set dummy "$JXRDecodeDelegateDefault"; ac_word=$2 |
| 33596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33597 | $as_echo_n "checking for $ac_word... " >&6; } |
| 33598 | if ${ac_cv_path_JXRDecodeDelegate+:} false; then : |
| 33599 | $as_echo_n "(cached) " >&6 |
| 33600 | else |
| 33601 | case $JXRDecodeDelegate in |
| 33602 | [\\/]* | ?:[\\/]*) |
| 33603 | ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path. |
| 33604 | ;; |
| 33605 | *) |
| 33606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33607 | for as_dir in $PATH |
| 33608 | do |
| 33609 | IFS=$as_save_IFS |
| 33610 | test -z "$as_dir" && as_dir=. |
| 33611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33612 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 33613 | ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33615 | break 2 |
| 33616 | fi |
| 33617 | done |
| 33618 | done |
| 33619 | IFS=$as_save_IFS |
| 33620 | |
| 33621 | test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault"" |
| 33622 | ;; |
| 33623 | esac |
| 33624 | fi |
| 33625 | JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate |
| 33626 | if test -n "$JXRDecodeDelegate"; then |
| 33627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5 |
| 33628 | $as_echo "$JXRDecodeDelegate" >&6; } |
| 33629 | else |
| 33630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33631 | $as_echo "no" >&6; } |
| 33632 | fi |
| 33633 | |
| 33634 | |
| 33635 | # Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args. |
| 33636 | set dummy "$JXREncodeDelegateDefault"; ac_word=$2 |
| 33637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33638 | $as_echo_n "checking for $ac_word... " >&6; } |
| 33639 | if ${ac_cv_path_JXREncodeDelegate+:} false; then : |
| 33640 | $as_echo_n "(cached) " >&6 |
| 33641 | else |
| 33642 | case $JXREncodeDelegate in |
| 33643 | [\\/]* | ?:[\\/]*) |
| 33644 | ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path. |
| 33645 | ;; |
| 33646 | *) |
| 33647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33648 | for as_dir in $PATH |
| 33649 | do |
| 33650 | IFS=$as_save_IFS |
| 33651 | test -z "$as_dir" && as_dir=. |
| 33652 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 33653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 33654 | ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33656 | break 2 |
| 33657 | fi |
| 33658 | done |
| 33659 | done |
| 33660 | IFS=$as_save_IFS |
| 33661 | |
| 33662 | test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault"" |
| 33663 | ;; |
| 33664 | esac |
| 33665 | fi |
| 33666 | JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate |
| 33667 | if test -n "$JXREncodeDelegate"; then |
| 33668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5 |
| 33669 | $as_echo "$JXREncodeDelegate" >&6; } |
| 33670 | else |
| 33671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33672 | $as_echo "no" >&6; } |
| 33673 | fi |
| 33674 | |
| 33675 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33676 | # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args. |
| 33677 | set dummy "$LPDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33679 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33680 | if ${ac_cv_path_LPDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33681 | $as_echo_n "(cached) " >&6 |
| 33682 | else |
| 33683 | case $LPDelegate in |
| 33684 | [\\/]* | ?:[\\/]*) |
| 33685 | ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path. |
| 33686 | ;; |
| 33687 | *) |
| 33688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33689 | for as_dir in $PATH |
| 33690 | do |
| 33691 | IFS=$as_save_IFS |
| 33692 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33693 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33695 | ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33697 | break 2 |
| 33698 | fi |
| 33699 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33700 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33701 | IFS=$as_save_IFS |
| 33702 | |
| 33703 | test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no" |
| 33704 | ;; |
| 33705 | esac |
| 33706 | fi |
| 33707 | LPDelegate=$ac_cv_path_LPDelegate |
| 33708 | if test -n "$LPDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33710 | $as_echo "$LPDelegate" >&6; } |
| 33711 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33713 | $as_echo "no" >&6; } |
| 33714 | fi |
| 33715 | |
| 33716 | |
| 33717 | # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args. |
| 33718 | set dummy "$LPRDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33720 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33721 | if ${ac_cv_path_LPRDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33722 | $as_echo_n "(cached) " >&6 |
| 33723 | else |
| 33724 | case $LPRDelegate in |
| 33725 | [\\/]* | ?:[\\/]*) |
| 33726 | ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path. |
| 33727 | ;; |
| 33728 | *) |
| 33729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33730 | for as_dir in $PATH |
| 33731 | do |
| 33732 | IFS=$as_save_IFS |
| 33733 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33734 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33735 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33736 | ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33738 | break 2 |
| 33739 | fi |
| 33740 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33741 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33742 | IFS=$as_save_IFS |
| 33743 | |
| 33744 | test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault"" |
| 33745 | ;; |
| 33746 | esac |
| 33747 | fi |
| 33748 | LPRDelegate=$ac_cv_path_LPRDelegate |
| 33749 | if test -n "$LPRDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33751 | $as_echo "$LPRDelegate" >&6; } |
| 33752 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33754 | $as_echo "no" >&6; } |
| 33755 | fi |
| 33756 | |
| 33757 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33758 | # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args. |
| 33759 | set dummy "$LaunchDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33761 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33762 | if ${ac_cv_path_LaunchDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33763 | $as_echo_n "(cached) " >&6 |
| 33764 | else |
| 33765 | case $LaunchDelegate in |
| 33766 | [\\/]* | ?:[\\/]*) |
| 33767 | ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path. |
| 33768 | ;; |
| 33769 | *) |
| 33770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33771 | for as_dir in $PATH |
| 33772 | do |
| 33773 | IFS=$as_save_IFS |
| 33774 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33775 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33776 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33777 | ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33779 | break 2 |
| 33780 | fi |
| 33781 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33782 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33783 | IFS=$as_save_IFS |
| 33784 | |
| 33785 | test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault"" |
| 33786 | ;; |
| 33787 | esac |
| 33788 | fi |
| 33789 | LaunchDelegate=$ac_cv_path_LaunchDelegate |
| 33790 | if test -n "$LaunchDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33792 | $as_echo "$LaunchDelegate" >&6; } |
| 33793 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33795 | $as_echo "no" >&6; } |
| 33796 | fi |
| 33797 | |
| 33798 | |
| 33799 | # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args. |
| 33800 | set dummy "$MANDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33802 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33803 | if ${ac_cv_path_MANDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33804 | $as_echo_n "(cached) " >&6 |
| 33805 | else |
| 33806 | case $MANDelegate in |
| 33807 | [\\/]* | ?:[\\/]*) |
| 33808 | ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path. |
| 33809 | ;; |
| 33810 | *) |
| 33811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33812 | for as_dir in $PATH |
| 33813 | do |
| 33814 | IFS=$as_save_IFS |
| 33815 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33816 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33817 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33818 | ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33820 | break 2 |
| 33821 | fi |
| 33822 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33823 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33824 | IFS=$as_save_IFS |
| 33825 | |
| 33826 | test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault"" |
| 33827 | ;; |
| 33828 | esac |
| 33829 | fi |
| 33830 | MANDelegate=$ac_cv_path_MANDelegate |
| 33831 | if test -n "$MANDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33833 | $as_echo "$MANDelegate" >&6; } |
| 33834 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33836 | $as_echo "no" >&6; } |
| 33837 | fi |
| 33838 | |
| 33839 | |
| 33840 | # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args. |
| 33841 | set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33843 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33844 | if ${ac_cv_path_MPEGDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33845 | $as_echo_n "(cached) " >&6 |
| 33846 | else |
| 33847 | case $MPEGDecodeDelegate in |
| 33848 | [\\/]* | ?:[\\/]*) |
| 33849 | ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path. |
| 33850 | ;; |
| 33851 | *) |
| 33852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33853 | for as_dir in $PATH |
| 33854 | do |
| 33855 | IFS=$as_save_IFS |
| 33856 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33857 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33858 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33859 | ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33860 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33861 | break 2 |
| 33862 | fi |
| 33863 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33864 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33865 | IFS=$as_save_IFS |
| 33866 | |
| 33867 | test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault"" |
| 33868 | ;; |
| 33869 | esac |
| 33870 | fi |
| 33871 | MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate |
| 33872 | if test -n "$MPEGDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33874 | $as_echo "$MPEGDecodeDelegate" >&6; } |
| 33875 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33877 | $as_echo "no" >&6; } |
| 33878 | fi |
| 33879 | |
| 33880 | |
| 33881 | # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args. |
| 33882 | set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33884 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33885 | if ${ac_cv_path_MPEGEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33886 | $as_echo_n "(cached) " >&6 |
| 33887 | else |
| 33888 | case $MPEGEncodeDelegate in |
| 33889 | [\\/]* | ?:[\\/]*) |
| 33890 | ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path. |
| 33891 | ;; |
| 33892 | *) |
| 33893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33894 | for as_dir in $PATH |
| 33895 | do |
| 33896 | IFS=$as_save_IFS |
| 33897 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33898 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33900 | ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33902 | break 2 |
| 33903 | fi |
| 33904 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33905 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33906 | IFS=$as_save_IFS |
| 33907 | |
| 33908 | test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault"" |
| 33909 | ;; |
| 33910 | esac |
| 33911 | fi |
| 33912 | MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate |
| 33913 | if test -n "$MPEGEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33915 | $as_echo "$MPEGEncodeDelegate" >&6; } |
| 33916 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33918 | $as_echo "no" >&6; } |
| 33919 | fi |
| 33920 | |
| 33921 | |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33922 | # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args. |
| 33923 | set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2 |
| 33924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33925 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33926 | if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then : |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33927 | $as_echo_n "(cached) " >&6 |
| 33928 | else |
| 33929 | case $MrSIDDecodeDelegate in |
| 33930 | [\\/]* | ?:[\\/]*) |
| 33931 | ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path. |
| 33932 | ;; |
| 33933 | *) |
| 33934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33935 | for as_dir in $PATH |
| 33936 | do |
| 33937 | IFS=$as_save_IFS |
| 33938 | test -z "$as_dir" && as_dir=. |
| 33939 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33940 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 33941 | ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 33942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 33943 | break 2 |
| 33944 | fi |
| 33945 | done |
| 33946 | done |
| 33947 | IFS=$as_save_IFS |
| 33948 | |
| 33949 | test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault"" |
| 33950 | ;; |
| 33951 | esac |
| 33952 | fi |
| 33953 | MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate |
| 33954 | if test -n "$MrSIDDecodeDelegate"; then |
| 33955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5 |
| 33956 | $as_echo "$MrSIDDecodeDelegate" >&6; } |
| 33957 | else |
| 33958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33959 | $as_echo "no" >&6; } |
| 33960 | fi |
| 33961 | |
| 33962 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33963 | # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args. |
| 33964 | set dummy "$MVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33966 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 33967 | if ${ac_cv_path_MVDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33968 | $as_echo_n "(cached) " >&6 |
| 33969 | else |
| 33970 | case $MVDelegate in |
| 33971 | [\\/]* | ?:[\\/]*) |
| 33972 | ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path. |
| 33973 | ;; |
| 33974 | *) |
| 33975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33976 | for as_dir in $PATH |
| 33977 | do |
| 33978 | IFS=$as_save_IFS |
| 33979 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 33981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33982 | ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33984 | break 2 |
| 33985 | fi |
| 33986 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33987 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33988 | IFS=$as_save_IFS |
| 33989 | |
| 33990 | test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault"" |
| 33991 | ;; |
| 33992 | esac |
| 33993 | fi |
| 33994 | MVDelegate=$ac_cv_path_MVDelegate |
| 33995 | if test -n "$MVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 33997 | $as_echo "$MVDelegate" >&6; } |
| 33998 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 33999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34000 | $as_echo "no" >&6; } |
| 34001 | fi |
| 34002 | |
| 34003 | |
| 34004 | # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args. |
| 34005 | set dummy "$PCLDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34007 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34008 | if ${ac_cv_path_PCLDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34009 | $as_echo_n "(cached) " >&6 |
| 34010 | else |
| 34011 | case $PCLDelegate in |
| 34012 | [\\/]* | ?:[\\/]*) |
| 34013 | ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path. |
| 34014 | ;; |
| 34015 | *) |
| 34016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34017 | for as_dir in $PATH |
| 34018 | do |
| 34019 | IFS=$as_save_IFS |
| 34020 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34021 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34023 | ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34025 | break 2 |
| 34026 | fi |
| 34027 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34028 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34029 | IFS=$as_save_IFS |
| 34030 | |
| 34031 | test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault"" |
| 34032 | ;; |
| 34033 | esac |
| 34034 | fi |
| 34035 | PCLDelegate=$ac_cv_path_PCLDelegate |
| 34036 | if test -n "$PCLDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34038 | $as_echo "$PCLDelegate" >&6; } |
| 34039 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34041 | $as_echo "no" >&6; } |
| 34042 | fi |
| 34043 | |
| 34044 | |
| 34045 | # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args. |
| 34046 | set dummy "$PGPDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34048 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34049 | if ${ac_cv_path_PGPDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34050 | $as_echo_n "(cached) " >&6 |
| 34051 | else |
| 34052 | case $PGPDecodeDelegate in |
| 34053 | [\\/]* | ?:[\\/]*) |
| 34054 | ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path. |
| 34055 | ;; |
| 34056 | *) |
| 34057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34058 | for as_dir in $PATH |
| 34059 | do |
| 34060 | IFS=$as_save_IFS |
| 34061 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34062 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34064 | ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34066 | break 2 |
| 34067 | fi |
| 34068 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34069 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34070 | IFS=$as_save_IFS |
| 34071 | |
| 34072 | test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault"" |
| 34073 | ;; |
| 34074 | esac |
| 34075 | fi |
| 34076 | PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate |
| 34077 | if test -n "$PGPDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34079 | $as_echo "$PGPDecodeDelegate" >&6; } |
| 34080 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34082 | $as_echo "no" >&6; } |
| 34083 | fi |
| 34084 | |
| 34085 | |
| 34086 | # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args. |
| 34087 | set dummy "$POVDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34089 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34090 | if ${ac_cv_path_POVDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34091 | $as_echo_n "(cached) " >&6 |
| 34092 | else |
| 34093 | case $POVDelegate in |
| 34094 | [\\/]* | ?:[\\/]*) |
| 34095 | ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path. |
| 34096 | ;; |
| 34097 | *) |
| 34098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34099 | for as_dir in $PATH |
| 34100 | do |
| 34101 | IFS=$as_save_IFS |
| 34102 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34103 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34104 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34105 | ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34107 | break 2 |
| 34108 | fi |
| 34109 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34110 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34111 | IFS=$as_save_IFS |
| 34112 | |
| 34113 | test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault"" |
| 34114 | ;; |
| 34115 | esac |
| 34116 | fi |
| 34117 | POVDelegate=$ac_cv_path_POVDelegate |
| 34118 | if test -n "$POVDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34120 | $as_echo "$POVDelegate" >&6; } |
| 34121 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34123 | $as_echo "no" >&6; } |
| 34124 | fi |
| 34125 | |
| 34126 | |
| 34127 | for ac_prog in gsx gsc "$PSDelegateDefault" |
| 34128 | do |
| 34129 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34130 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34132 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34133 | if ${ac_cv_path_PSDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34134 | $as_echo_n "(cached) " >&6 |
| 34135 | else |
| 34136 | case $PSDelegate in |
| 34137 | [\\/]* | ?:[\\/]*) |
| 34138 | ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path. |
| 34139 | ;; |
| 34140 | *) |
| 34141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34142 | for as_dir in $PATH |
| 34143 | do |
| 34144 | IFS=$as_save_IFS |
| 34145 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34146 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34147 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34148 | ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34150 | break 2 |
| 34151 | fi |
| 34152 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34153 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34154 | IFS=$as_save_IFS |
| 34155 | |
| 34156 | ;; |
| 34157 | esac |
| 34158 | fi |
| 34159 | PSDelegate=$ac_cv_path_PSDelegate |
| 34160 | if test -n "$PSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34162 | $as_echo "$PSDelegate" >&6; } |
| 34163 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34165 | $as_echo "no" >&6; } |
| 34166 | fi |
| 34167 | |
| 34168 | |
| 34169 | test -n "$PSDelegate" && break |
| 34170 | done |
| 34171 | test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault"" |
| 34172 | |
| 34173 | # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args. |
| 34174 | set dummy "$RLEEncodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34176 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34177 | if ${ac_cv_path_RLEEncodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34178 | $as_echo_n "(cached) " >&6 |
| 34179 | else |
| 34180 | case $RLEEncodeDelegate in |
| 34181 | [\\/]* | ?:[\\/]*) |
| 34182 | ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path. |
| 34183 | ;; |
| 34184 | *) |
| 34185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34186 | for as_dir in $PATH |
| 34187 | do |
| 34188 | IFS=$as_save_IFS |
| 34189 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34192 | ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34194 | break 2 |
| 34195 | fi |
| 34196 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34197 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34198 | IFS=$as_save_IFS |
| 34199 | |
| 34200 | test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault"" |
| 34201 | ;; |
| 34202 | esac |
| 34203 | fi |
| 34204 | RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate |
| 34205 | if test -n "$RLEEncodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34207 | $as_echo "$RLEEncodeDelegate" >&6; } |
| 34208 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34210 | $as_echo "no" >&6; } |
| 34211 | fi |
| 34212 | |
| 34213 | |
| 34214 | # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args. |
| 34215 | set dummy "$RMDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34217 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34218 | if ${ac_cv_path_RMDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34219 | $as_echo_n "(cached) " >&6 |
| 34220 | else |
| 34221 | case $RMDelegate in |
| 34222 | [\\/]* | ?:[\\/]*) |
| 34223 | ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path. |
| 34224 | ;; |
| 34225 | *) |
| 34226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34227 | for as_dir in $PATH |
| 34228 | do |
| 34229 | IFS=$as_save_IFS |
| 34230 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34231 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34233 | ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34235 | break 2 |
| 34236 | fi |
| 34237 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34238 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34239 | IFS=$as_save_IFS |
| 34240 | |
| 34241 | test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault"" |
| 34242 | ;; |
| 34243 | esac |
| 34244 | fi |
| 34245 | RMDelegate=$ac_cv_path_RMDelegate |
| 34246 | if test -n "$RMDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34248 | $as_echo "$RMDelegate" >&6; } |
| 34249 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34251 | $as_echo "no" >&6; } |
| 34252 | fi |
| 34253 | |
| 34254 | |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 34255 | # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args. |
| 34256 | set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2 |
| 34257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 34258 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34259 | if ${ac_cv_path_RSVGDecodeDelegate+:} false; then : |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 34260 | $as_echo_n "(cached) " >&6 |
| 34261 | else |
| 34262 | case $RSVGDecodeDelegate in |
| 34263 | [\\/]* | ?:[\\/]*) |
| 34264 | ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path. |
| 34265 | ;; |
| 34266 | *) |
| 34267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34268 | for as_dir in $PATH |
| 34269 | do |
| 34270 | IFS=$as_save_IFS |
| 34271 | test -z "$as_dir" && as_dir=. |
| 34272 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34273 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 34274 | ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 34275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 34276 | break 2 |
| 34277 | fi |
| 34278 | done |
| 34279 | done |
| 34280 | IFS=$as_save_IFS |
| 34281 | |
| 34282 | test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault"" |
| 34283 | ;; |
| 34284 | esac |
| 34285 | fi |
| 34286 | RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate |
| 34287 | if test -n "$RSVGDecodeDelegate"; then |
| 34288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5 |
| 34289 | $as_echo "$RSVGDecodeDelegate" >&6; } |
| 34290 | else |
| 34291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34292 | $as_echo "no" >&6; } |
| 34293 | fi |
| 34294 | |
| 34295 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34296 | # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args. |
| 34297 | set dummy "$SCANDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34299 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34300 | if ${ac_cv_path_SCANDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34301 | $as_echo_n "(cached) " >&6 |
| 34302 | else |
| 34303 | case $SCANDecodeDelegate in |
| 34304 | [\\/]* | ?:[\\/]*) |
| 34305 | ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path. |
| 34306 | ;; |
| 34307 | *) |
| 34308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34309 | for as_dir in $PATH |
| 34310 | do |
| 34311 | IFS=$as_save_IFS |
| 34312 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34313 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34314 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34315 | ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34316 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34317 | break 2 |
| 34318 | fi |
| 34319 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34320 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34321 | IFS=$as_save_IFS |
| 34322 | |
| 34323 | test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault"" |
| 34324 | ;; |
| 34325 | esac |
| 34326 | fi |
| 34327 | SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate |
| 34328 | if test -n "$SCANDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34330 | $as_echo "$SCANDecodeDelegate" >&6; } |
| 34331 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34333 | $as_echo "no" >&6; } |
| 34334 | fi |
| 34335 | |
| 34336 | |
| cristy | ec6934f | 2012-08-14 18:38:40 +0000 | [diff] [blame] | 34337 | # Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args. |
| 34338 | set dummy "$SVGDecodeDelegateDefault"; ac_word=$2 |
| 34339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 34340 | $as_echo_n "checking for $ac_word... " >&6; } |
| 34341 | if ${ac_cv_path_SVGDecodeDelegate+:} false; then : |
| 34342 | $as_echo_n "(cached) " >&6 |
| 34343 | else |
| 34344 | case $SVGDecodeDelegate in |
| 34345 | [\\/]* | ?:[\\/]*) |
| 34346 | ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path. |
| 34347 | ;; |
| 34348 | *) |
| 34349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34350 | for as_dir in $PATH |
| 34351 | do |
| 34352 | IFS=$as_save_IFS |
| 34353 | test -z "$as_dir" && as_dir=. |
| 34354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 34355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 34356 | ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 34357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 34358 | break 2 |
| 34359 | fi |
| 34360 | done |
| 34361 | done |
| 34362 | IFS=$as_save_IFS |
| 34363 | |
| 34364 | test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault"" |
| 34365 | ;; |
| 34366 | esac |
| 34367 | fi |
| 34368 | SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate |
| 34369 | if test -n "$SVGDecodeDelegate"; then |
| 34370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5 |
| 34371 | $as_echo "$SVGDecodeDelegate" >&6; } |
| 34372 | else |
| 34373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34374 | $as_echo "no" >&6; } |
| 34375 | fi |
| 34376 | |
| 34377 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34378 | # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args. |
| 34379 | set dummy "$TXTDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34381 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34382 | if ${ac_cv_path_TXTDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34383 | $as_echo_n "(cached) " >&6 |
| 34384 | else |
| 34385 | case $TXTDelegate in |
| 34386 | [\\/]* | ?:[\\/]*) |
| 34387 | ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path. |
| 34388 | ;; |
| 34389 | *) |
| 34390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34391 | for as_dir in $PATH |
| 34392 | do |
| 34393 | IFS=$as_save_IFS |
| 34394 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34396 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34397 | ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34399 | break 2 |
| 34400 | fi |
| 34401 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34402 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34403 | IFS=$as_save_IFS |
| 34404 | |
| 34405 | test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault"" |
| 34406 | ;; |
| 34407 | esac |
| 34408 | fi |
| 34409 | TXTDelegate=$ac_cv_path_TXTDelegate |
| 34410 | if test -n "$TXTDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34412 | $as_echo "$TXTDelegate" >&6; } |
| 34413 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34415 | $as_echo "no" >&6; } |
| 34416 | fi |
| 34417 | |
| 34418 | |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 34419 | # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args. |
| 34420 | set dummy "$UniconvertorDelegateDefault"; ac_word=$2 |
| 34421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 34422 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34423 | if ${ac_cv_path_UniconvertorDelegate+:} false; then : |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 34424 | $as_echo_n "(cached) " >&6 |
| 34425 | else |
| 34426 | case $UniconvertorDelegate in |
| 34427 | [\\/]* | ?:[\\/]*) |
| 34428 | ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path. |
| 34429 | ;; |
| 34430 | *) |
| 34431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34432 | for as_dir in $PATH |
| 34433 | do |
| 34434 | IFS=$as_save_IFS |
| 34435 | test -z "$as_dir" && as_dir=. |
| 34436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 34438 | ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext" |
| 34439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 34440 | break 2 |
| 34441 | fi |
| 34442 | done |
| 34443 | done |
| 34444 | IFS=$as_save_IFS |
| 34445 | |
| 34446 | test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault"" |
| 34447 | ;; |
| 34448 | esac |
| 34449 | fi |
| 34450 | UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate |
| 34451 | if test -n "$UniconvertorDelegate"; then |
| 34452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5 |
| 34453 | $as_echo "$UniconvertorDelegate" >&6; } |
| 34454 | else |
| 34455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34456 | $as_echo "no" >&6; } |
| 34457 | fi |
| 34458 | |
| 34459 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34460 | # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args. |
| 34461 | set dummy "$WMFDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34463 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34464 | if ${ac_cv_path_WMFDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34465 | $as_echo_n "(cached) " >&6 |
| 34466 | else |
| 34467 | case $WMFDecodeDelegate in |
| 34468 | [\\/]* | ?:[\\/]*) |
| 34469 | ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path. |
| 34470 | ;; |
| 34471 | *) |
| 34472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34473 | for as_dir in $PATH |
| 34474 | do |
| 34475 | IFS=$as_save_IFS |
| 34476 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34479 | ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34481 | break 2 |
| 34482 | fi |
| 34483 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34484 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34485 | IFS=$as_save_IFS |
| 34486 | |
| 34487 | test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault"" |
| 34488 | ;; |
| 34489 | esac |
| 34490 | fi |
| 34491 | WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate |
| 34492 | if test -n "$WMFDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34494 | $as_echo "$WMFDecodeDelegate" >&6; } |
| 34495 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34497 | $as_echo "no" >&6; } |
| 34498 | fi |
| 34499 | |
| 34500 | |
| 34501 | # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args. |
| 34502 | set dummy "$WWWDecodeDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34504 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34505 | if ${ac_cv_path_WWWDecodeDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34506 | $as_echo_n "(cached) " >&6 |
| 34507 | else |
| 34508 | case $WWWDecodeDelegate in |
| 34509 | [\\/]* | ?:[\\/]*) |
| 34510 | ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path. |
| 34511 | ;; |
| 34512 | *) |
| 34513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34514 | for as_dir in $PATH |
| 34515 | do |
| 34516 | IFS=$as_save_IFS |
| 34517 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34518 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34519 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34520 | ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34521 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34522 | break 2 |
| 34523 | fi |
| 34524 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34525 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34526 | IFS=$as_save_IFS |
| 34527 | |
| 34528 | test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault"" |
| 34529 | ;; |
| 34530 | esac |
| 34531 | fi |
| 34532 | WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate |
| 34533 | if test -n "$WWWDecodeDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34535 | $as_echo "$WWWDecodeDelegate" >&6; } |
| 34536 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34538 | $as_echo "no" >&6; } |
| 34539 | fi |
| 34540 | |
| 34541 | |
| 34542 | # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args. |
| 34543 | set dummy "$XPSDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34545 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34546 | if ${ac_cv_path_XPSDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34547 | $as_echo_n "(cached) " >&6 |
| 34548 | else |
| 34549 | case $XPSDelegate in |
| 34550 | [\\/]* | ?:[\\/]*) |
| 34551 | ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path. |
| 34552 | ;; |
| 34553 | *) |
| 34554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34555 | for as_dir in $PATH |
| 34556 | do |
| 34557 | IFS=$as_save_IFS |
| 34558 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34561 | ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34563 | break 2 |
| 34564 | fi |
| 34565 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34566 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34567 | IFS=$as_save_IFS |
| 34568 | |
| 34569 | test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault"" |
| 34570 | ;; |
| 34571 | esac |
| 34572 | fi |
| 34573 | XPSDelegate=$ac_cv_path_XPSDelegate |
| 34574 | if test -n "$XPSDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34576 | $as_echo "$XPSDelegate" >&6; } |
| 34577 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34579 | $as_echo "no" >&6; } |
| 34580 | fi |
| 34581 | |
| 34582 | |
| 34583 | # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args. |
| 34584 | set dummy "$ZipDelegateDefault"; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34586 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34587 | if ${ac_cv_path_ZipDelegate+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34588 | $as_echo_n "(cached) " >&6 |
| 34589 | else |
| 34590 | case $ZipDelegate in |
| 34591 | [\\/]* | ?:[\\/]*) |
| 34592 | ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path. |
| 34593 | ;; |
| 34594 | *) |
| 34595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34596 | for as_dir in $PATH |
| 34597 | do |
| 34598 | IFS=$as_save_IFS |
| 34599 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34602 | ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34604 | break 2 |
| 34605 | fi |
| 34606 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34607 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34608 | IFS=$as_save_IFS |
| 34609 | |
| 34610 | test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault"" |
| 34611 | ;; |
| 34612 | esac |
| 34613 | fi |
| 34614 | ZipDelegate=$ac_cv_path_ZipDelegate |
| 34615 | if test -n "$ZipDelegate"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34617 | $as_echo "$ZipDelegate" >&6; } |
| 34618 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34620 | $as_echo "no" >&6; } |
| 34621 | fi |
| 34622 | |
| 34623 | |
| 34624 | |
| 34625 | # Prefer lpr to lp; lp needs options tacked on. |
| 34626 | if test "$LPRDelegate" != no; then |
| 34627 | PrintDelegate="$LPRDelegate" |
| 34628 | else |
| 34629 | PrintDelegate="$LPDelegate -c -s" |
| 34630 | fi |
| 34631 | |
| 34632 | |
| 34633 | # Installed ImageMagick utiltity paths |
| 34634 | ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}" |
| 34635 | DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}" |
| 34636 | MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}" |
| 34637 | |
| 34638 | # Set delegate booleans |
| 34639 | have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi |
| 34640 | have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi |
| 34641 | have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi |
| 34642 | have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi |
| 34643 | have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 34644 | have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34645 | have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi |
| 34646 | have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34647 | have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi |
| 34648 | have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi |
| 34649 | |
| 34650 | # |
| 34651 | # Test for font directories |
| 34652 | # |
| 34653 | type_include_files='' |
| 34654 | |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34655 | # Dejavu fonts. |
| 34656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5 |
| 34657 | $as_echo_n "checking for Dejavu fonts directory... " >&6; } |
| 34658 | dejavu_font_dir='' |
| 34659 | if test "${with_dejavu_font_dir}" != 'default'; then |
| 34660 | dejavu_font_dir="${with_dejavu_font_dir}/" |
| 34661 | else |
| 34662 | for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do |
| 34663 | if test -f "${font_dir}DejaVuSerif.ttf"; then |
| 34664 | dejavu_font_dir="${font_dir}" |
| 34665 | break 1 |
| 34666 | fi |
| 34667 | done |
| 34668 | fi |
| 34669 | if test "${dejavu_font_dir}x" != 'x'; then |
| 34670 | type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 34671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5 |
| 34672 | $as_echo "$dejavu_font_dir" >&6; } |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34673 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 34674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| 34675 | $as_echo "not found!" >&6; }; |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34676 | fi |
| 34677 | |
| 34678 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34679 | # Windows |
| 34680 | windows_font_dir='' |
| 34681 | if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then |
| 34682 | windows_font_dir="${with_windows_font_dir}/" |
| 34683 | fi |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34684 | if test "${windows_font_dir}x" != 'x'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34685 | if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then |
| 34686 | windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/' |
| 34687 | fi |
| 34688 | if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then |
| 34689 | windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/' |
| 34690 | fi |
| 34691 | if test -f '/usr/share/fonts/msttcore/arial.ttf'; then |
| 34692 | windows_font_dir='/usr/share/fonts/msttcore/truetype/' |
| 34693 | fi |
| 34694 | fi |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 34695 | if test "${windows_font_dir}x" != 'x'; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34696 | type_include_files="$type_include_files "'<include file="type-windows.xml" />' |
| 34697 | fi |
| 34698 | |
| 34699 | |
| 34700 | # Ghostscript |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34702 | $as_echo_n "checking for Ghostscript fonts directory... " >&6; } |
| 34703 | ghostscript_font_dir='' |
| 34704 | if test "${with_gs_font_dir}" != 'default'; then |
| 34705 | ghostscript_font_dir="${with_gs_font_dir}/" |
| 34706 | else |
| 34707 | if test "${native_win32_build}" = 'yes'; then |
| 34708 | # Native Windows Build |
| 34709 | for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do |
| 34710 | if test -f "${font_dir}a010013l.pfb"; then |
| 34711 | ghostscript_font_dir="$font_dir" |
| 34712 | break 1 |
| 34713 | fi |
| 34714 | done |
| 34715 | if test "${PSDelegate}" != 'gswin32c'; then |
| 34716 | ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\" |
| 34717 | fi |
| 34718 | else |
| 34719 | # Linux / Mac OS X / Unix Build |
| 34720 | 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 |
| 34721 | if test -f "${font_dir}a010013l.pfb"; then |
| 34722 | ghostscript_font_dir="${font_dir}" |
| 34723 | break 1 |
| 34724 | fi |
| 34725 | done |
| 34726 | if test "${ghostscript_font_dir}x" = 'x'; then |
| 34727 | if test "$PSDelegate" != 'gs'; then |
| 34728 | ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/" |
| 34729 | fi |
| 34730 | fi |
| 34731 | fi |
| 34732 | fi |
| 34733 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 34734 | type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />' |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 34735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5 |
| 34736 | $as_echo "$ghostscript_font_dir" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34737 | else |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 34738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5 |
| 34739 | $as_echo "not found!" >&6; }; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34740 | fi |
| 34741 | |
| 34742 | case "${build_os}" in |
| 34743 | mingw* ) |
| 34744 | PSDelegate=`$WinPathScript "$PSDelegate" 1` |
| 34745 | ;; |
| 34746 | esac |
| 34747 | |
| 34748 | |
| 34749 | |
| 34750 | # |
| 34751 | # Handle case where user doesn't want frozen paths |
| 34752 | # |
| 34753 | if test "$with_frozenpaths" != 'yes'; then |
| 34754 | # Re-set delegate definitions to default (no paths) |
| 34755 | AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34756 | BlenderDecodeDelegate="$BlenderDecodeDelegateDefault" |
| 34757 | BZIPDelegate="$BZIPDelegateDefault" |
| 34758 | BrowseDelegate="$BrowseDelegateDefault" |
| 34759 | CGMDecodeDelegate="$CGMDecodeDelegateDefault" |
| 34760 | CatDelegate="$CatDelegateDefault" |
| 34761 | ConvertDelegate="$ConvertDelegateDefault" |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 34762 | DisplayDelegate="$DisplayDelegateDefault" |
| 34763 | DNGDecodeDelegate="$DNGDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34764 | DVIDecodeDelegate="$DVIDecodeDelegateDefault" |
| 34765 | EchoDelegate="$EchoDelegateDefault" |
| 34766 | EditorDelegate="$EditorDelegateDefault" |
| 34767 | FIGDecodeDelegate="$FIGDecodeDelegateDefault" |
| 34768 | GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault" |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 34769 | GVCDecodeDelegate="$GVCDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34770 | HPGLDecodeDelegate="$HPGLDecodeDelegateDefault" |
| 34771 | HTMLDecodeDelegate="$HTMLDecodeDelegateDefault" |
| 34772 | ILBMDecodeDelegate="$ILBMDecodeDelegateDefault" |
| 34773 | ILBMEncodeDelegate="$ILBMEncodeDelegateDefault" |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 34774 | JXRDecodeDelegate="$JXRDecodeDelegateDefault" |
| 34775 | JXREncodeDelegate="$JXREncodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34776 | LPDelegate="$LPDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34777 | LaunchDelegate="$LaunchDelegateDefault" |
| 34778 | MANDelegate="$MANDelegateDefault" |
| 34779 | MPEGDecodeDelegate="$MPEGDecodeDelegateDefault" |
| 34780 | MPEGEncodeDelegate="$MPEGEncodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34781 | MogrifyDelegate="$MogrifyDelegateDefault" |
| cristy | 935c86e | 2010-06-05 23:50:07 +0000 | [diff] [blame] | 34782 | MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault" |
| 34783 | MVDelegate="$MVDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34784 | PCLDelegate="$PCLDelegateDefault" |
| 34785 | PGPDecodeDelegate="$PGPDecodeDelegateDefault" |
| 34786 | POVDelegate="$POVDelegateDefault" |
| 34787 | PSDelegate="$PSDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34788 | RLEEncodeDelegate="$RLEEncodeDelegateDefault" |
| 34789 | RMDelegate="$RMDelegateDefault" |
| cristy | 4689cf0 | 2010-02-17 21:15:45 +0000 | [diff] [blame] | 34790 | RSVGDecodeDelegate="$RSVGDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34791 | SCANDecodeDelegate="$SCANDecodeDelegateDefault" |
| cristy | ec6934f | 2012-08-14 18:38:40 +0000 | [diff] [blame] | 34792 | SVGDecodeDelegate="$SVGDecodeDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34793 | ShowImageDelegate="$ShowImageDelegateDefault" |
| 34794 | TXTDelegate="$TXTDelegateDefault" |
| cristy | 5ac9ac8 | 2010-07-29 13:24:24 +0000 | [diff] [blame] | 34795 | UniconvertorDelegate="$UniconvertorDelegateDefault" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34796 | WMFDecodeDelegate="$WMFDecodeDelegateDefault" |
| 34797 | WWWDecodeDelegate="$WWWDecodeDelegateDefault" |
| 34798 | XPSDelegate="$XPSDelegateDefault" |
| 34799 | ZipDelegate="$ZipDelegateDefault" |
| 34800 | fi |
| 34801 | |
| 34802 | # Delegate substitutions |
| 34803 | |
| 34804 | |
| 34805 | |
| 34806 | |
| 34807 | |
| 34808 | |
| 34809 | |
| 34810 | |
| 34811 | |
| 34812 | |
| 34813 | |
| 34814 | |
| 34815 | |
| 34816 | |
| 34817 | |
| 34818 | |
| 34819 | |
| 34820 | |
| 34821 | |
| 34822 | |
| 34823 | |
| 34824 | |
| 34825 | |
| 34826 | |
| 34827 | |
| 34828 | |
| 34829 | |
| 34830 | |
| 34831 | |
| 34832 | |
| 34833 | |
| 34834 | |
| 34835 | |
| 34836 | |
| 34837 | |
| 34838 | |
| 34839 | |
| 34840 | |
| 34841 | |
| 34842 | |
| cristy | 71f53d5 | 2013-04-27 13:33:59 +0000 | [diff] [blame] | 34843 | |
| 34844 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34845 | # |
| 34846 | # RPM support. |
| 34847 | # |
| 34848 | RPM='' |
| 34849 | for ac_prog in gnutar gtar tar |
| 34850 | do |
| 34851 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34852 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34854 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34855 | if ${ac_cv_prog_TAR+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34856 | $as_echo_n "(cached) " >&6 |
| 34857 | else |
| 34858 | if test -n "$TAR"; then |
| 34859 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
| 34860 | else |
| 34861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34862 | for as_dir in $PATH |
| 34863 | do |
| 34864 | IFS=$as_save_IFS |
| 34865 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34868 | ac_cv_prog_TAR="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34870 | break 2 |
| 34871 | fi |
| 34872 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34873 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34874 | IFS=$as_save_IFS |
| 34875 | |
| 34876 | fi |
| 34877 | fi |
| 34878 | TAR=$ac_cv_prog_TAR |
| 34879 | if test -n "$TAR"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34881 | $as_echo "$TAR" >&6; } |
| 34882 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34884 | $as_echo "no" >&6; } |
| 34885 | fi |
| 34886 | |
| 34887 | |
| 34888 | test -n "$TAR" && break |
| 34889 | done |
| 34890 | |
| 34891 | for ac_prog in perl |
| 34892 | do |
| 34893 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34894 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34896 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34897 | if ${ac_cv_prog_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34898 | $as_echo_n "(cached) " >&6 |
| 34899 | else |
| 34900 | if test -n "$PERL"; then |
| 34901 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
| 34902 | else |
| 34903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34904 | for as_dir in $PATH |
| 34905 | do |
| 34906 | IFS=$as_save_IFS |
| 34907 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34910 | ac_cv_prog_PERL="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34912 | break 2 |
| 34913 | fi |
| 34914 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34915 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34916 | IFS=$as_save_IFS |
| 34917 | |
| 34918 | fi |
| 34919 | fi |
| 34920 | PERL=$ac_cv_prog_PERL |
| 34921 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34923 | $as_echo "$PERL" >&6; } |
| 34924 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34926 | $as_echo "no" >&6; } |
| 34927 | fi |
| 34928 | |
| 34929 | |
| 34930 | test -n "$PERL" && break |
| 34931 | done |
| 34932 | |
| 34933 | for ac_prog in rpmbuild rpm |
| 34934 | do |
| 34935 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 34936 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34938 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 34939 | if ${ac_cv_prog_RPM+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34940 | $as_echo_n "(cached) " >&6 |
| 34941 | else |
| 34942 | if test -n "$RPM"; then |
| 34943 | ac_cv_prog_RPM="$RPM" # Let the user override the test. |
| 34944 | else |
| 34945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34946 | for as_dir in $PATH |
| 34947 | do |
| 34948 | IFS=$as_save_IFS |
| 34949 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34950 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 34951 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34952 | ac_cv_prog_RPM="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34953 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34954 | break 2 |
| 34955 | fi |
| 34956 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34957 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34958 | IFS=$as_save_IFS |
| 34959 | |
| 34960 | fi |
| 34961 | fi |
| 34962 | RPM=$ac_cv_prog_RPM |
| 34963 | if test -n "$RPM"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34965 | $as_echo "$RPM" >&6; } |
| 34966 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 34967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34968 | $as_echo "no" >&6; } |
| 34969 | fi |
| 34970 | |
| 34971 | |
| 34972 | test -n "$RPM" && break |
| 34973 | done |
| 34974 | |
| 34975 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 34976 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 34977 | |
| 34978 | |
| 34979 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 34980 | |
| 34981 | |
| 34982 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 34983 | |
| 34984 | |
| 34985 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 34986 | |
| 34987 | |
| 34988 | if test "x$RPM" != "x" ; then |
| 34989 | RPM_DELEGATE_TRUE= |
| 34990 | RPM_DELEGATE_FALSE='#' |
| 34991 | else |
| 34992 | RPM_DELEGATE_TRUE='#' |
| 34993 | RPM_DELEGATE_FALSE= |
| 34994 | fi |
| 34995 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 34996 | |
| 34997 | # |
| 34998 | # 7ZIP support (http://p7zip.sourceforge.net/) |
| 34999 | # |
| 35000 | P7ZIP='' |
| 35001 | for ac_prog in 7za |
| 35002 | do |
| 35003 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 35004 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35006 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35007 | if ${ac_cv_prog_P7ZIP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35008 | $as_echo_n "(cached) " >&6 |
| 35009 | else |
| 35010 | if test -n "$P7ZIP"; then |
| 35011 | ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test. |
| 35012 | else |
| 35013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 35014 | for as_dir in $PATH |
| 35015 | do |
| 35016 | IFS=$as_save_IFS |
| 35017 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 35019 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35020 | ac_cv_prog_P7ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35022 | break 2 |
| 35023 | fi |
| 35024 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35025 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35026 | IFS=$as_save_IFS |
| 35027 | |
| 35028 | fi |
| 35029 | fi |
| 35030 | P7ZIP=$ac_cv_prog_P7ZIP |
| 35031 | if test -n "$P7ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35033 | $as_echo "$P7ZIP" >&6; } |
| 35034 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35036 | $as_echo "no" >&6; } |
| 35037 | fi |
| 35038 | |
| 35039 | |
| 35040 | test -n "$P7ZIP" && break |
| 35041 | done |
| 35042 | |
| 35043 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35044 | if test "x$P7ZIP" != "x" ; then |
| 35045 | P7ZIP_DELEGATE_TRUE= |
| 35046 | P7ZIP_DELEGATE_FALSE='#' |
| 35047 | else |
| 35048 | P7ZIP_DELEGATE_TRUE='#' |
| 35049 | P7ZIP_DELEGATE_FALSE= |
| 35050 | fi |
| 35051 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35052 | |
| 35053 | # |
| 35054 | # ZIP support (http://www.info-zip.org/Zip.html) |
| 35055 | # |
| 35056 | ZIP='' |
| 35057 | for ac_prog in zip |
| 35058 | do |
| 35059 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 35060 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35062 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35063 | if ${ac_cv_prog_ZIP+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35064 | $as_echo_n "(cached) " >&6 |
| 35065 | else |
| 35066 | if test -n "$ZIP"; then |
| 35067 | ac_cv_prog_ZIP="$ZIP" # Let the user override the test. |
| 35068 | else |
| 35069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 35070 | for as_dir in $PATH |
| 35071 | do |
| 35072 | IFS=$as_save_IFS |
| 35073 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35074 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 35075 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35076 | ac_cv_prog_ZIP="$ac_prog" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35078 | break 2 |
| 35079 | fi |
| 35080 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35081 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35082 | IFS=$as_save_IFS |
| 35083 | |
| 35084 | fi |
| 35085 | fi |
| 35086 | ZIP=$ac_cv_prog_ZIP |
| 35087 | if test -n "$ZIP"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35089 | $as_echo "$ZIP" >&6; } |
| 35090 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35092 | $as_echo "no" >&6; } |
| 35093 | fi |
| 35094 | |
| 35095 | |
| 35096 | test -n "$ZIP" && break |
| 35097 | done |
| 35098 | |
| 35099 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35100 | if test "x$ZIP" != "x" ; then |
| 35101 | ZIP_DELEGATE_TRUE= |
| 35102 | ZIP_DELEGATE_FALSE='#' |
| 35103 | else |
| 35104 | ZIP_DELEGATE_TRUE='#' |
| 35105 | ZIP_DELEGATE_FALSE= |
| 35106 | fi |
| 35107 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35108 | |
| 35109 | # |
| 35110 | # GhostPCL related configuration. |
| 35111 | # |
| 35112 | PCLColorDevice=ppmraw |
| cristy | 8bc8408 | 2011-09-07 13:57:00 +0000 | [diff] [blame] | 35113 | PCLCMYKDevice=pamcmyk32 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35114 | PCLMonoDevice=pbmraw |
| 35115 | if test -z "$PCLVersion"; then |
| 35116 | PCLVersion='unknown' |
| 35117 | fi |
| 35118 | if test $have_pcl = 'yes'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 35120 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35122 | $as_echo_n "checking for PCL... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 35124 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35125 | # PCLColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35127 | $as_echo_n "checking for pcl color device... " >&6; } |
| 35128 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35129 | : |
| 35130 | else |
| 35131 | PCLColorDevice=ppmraw |
| 35132 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5 |
| 35134 | $as_echo "$PCLColorDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35135 | |
| 35136 | # PCLCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35138 | $as_echo_n "checking for pcl CMYK device... " >&6; } |
| 35139 | if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35140 | : |
| 35141 | else |
| 35142 | PCLCMYKDevice=$PCLColorDevice |
| 35143 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5 |
| 35145 | $as_echo "$PCLCMYKDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35146 | |
| 35147 | # PCLMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35149 | $as_echo_n "checking for pcl mono device... " >&6; } |
| 35150 | if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35151 | : |
| 35152 | else |
| 35153 | PCLMonoDevice=$PCLColorDevice |
| 35154 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5 |
| 35156 | $as_echo "$PCLMonoDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35157 | fi |
| 35158 | |
| 35159 | |
| 35160 | |
| 35161 | |
| 35162 | |
| 35163 | |
| 35164 | # |
| 35165 | # GhostXPS related configuration. |
| 35166 | # |
| 35167 | XPSColorDevice=ppmraw |
| 35168 | XPSCMYKDevice=bmpsep8 |
| 35169 | XPSMonoDevice=pbmraw |
| 35170 | if test -z "$XPSVersion"; then |
| 35171 | XPSVersion='unknown' |
| 35172 | fi |
| 35173 | if test $have_xps = 'yes'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 35175 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35177 | $as_echo_n "checking for XPS... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 35179 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35180 | # XPSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35182 | $as_echo_n "checking for xps color device... " >&6; } |
| 35183 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35184 | : |
| 35185 | else |
| 35186 | XPSColorDevice=ppmraw |
| 35187 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5 |
| 35189 | $as_echo "$XPSColorDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35190 | |
| 35191 | # XPSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35193 | $as_echo_n "checking for xps CMYK device... " >&6; } |
| 35194 | if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35195 | : |
| 35196 | else |
| 35197 | XPSCMYKDevice=$XPSColorDevice |
| 35198 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5 |
| 35200 | $as_echo "$XPSCMYKDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35201 | |
| 35202 | # XPSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35204 | $as_echo_n "checking for xps mono device... " >&6; } |
| 35205 | if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35206 | : |
| 35207 | else |
| 35208 | XPSMonoDevice=$XPSColorDevice |
| 35209 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5 |
| 35211 | $as_echo "$XPSMonoDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35212 | fi |
| 35213 | |
| 35214 | |
| 35215 | |
| 35216 | |
| 35217 | |
| 35218 | |
| 35219 | # |
| 35220 | # Ghostscript related configuration. |
| 35221 | # |
| cristy | a97426c | 2011-02-04 01:41:27 +0000 | [diff] [blame] | 35222 | GSAlphaDevice=pngalpha |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35223 | GSColorDevice=pnmraw |
| 35224 | GSCMYKDevice=pam |
| 35225 | GSMonoDevice=pbmraw |
| 35226 | GSPDFDevice=pdfwrite |
| 35227 | GSPSDevice=pswrite |
| 35228 | GSEPSDevice=epswrite |
| 35229 | GSVersion='unknown' |
| 35230 | if test $have_gs = 'yes'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 35232 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35234 | $as_echo_n "checking for Ghostscript... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 35236 | $as_echo "" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35238 | $as_echo_n "checking for Ghostscript version... " >&6; } |
| 35239 | if GSVersion=`$PSDelegate --version`; then |
| 35240 | : |
| 35241 | else |
| 35242 | GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'` |
| 35243 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5 |
| 35245 | $as_echo "$GSVersion" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35246 | |
| 35247 | # GSAlphaDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35249 | $as_echo_n "checking for gs alpha device... " >&6; } |
| 35250 | if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35251 | : |
| 35252 | else |
| 35253 | GSAlphaDevice=pnmraw |
| 35254 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5 |
| 35256 | $as_echo "$GSAlphaDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35257 | |
| 35258 | # GSColorDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35260 | $as_echo_n "checking for gs color device... " >&6; } |
| 35261 | if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35262 | : |
| 35263 | else |
| 35264 | GSColorDevice=pnmraw |
| 35265 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5 |
| 35267 | $as_echo "$GSColorDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35268 | |
| 35269 | # GSCMYKDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35271 | $as_echo_n "checking for gs CMYK device... " >&6; } |
| 35272 | if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35273 | : |
| 35274 | else |
| 35275 | GSCMYKDevice=bmpsep8 |
| 35276 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5 |
| 35278 | $as_echo "$GSCMYKDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35279 | |
| 35280 | # GSMonoDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35282 | $as_echo_n "checking for gs mono device... " >&6; } |
| 35283 | if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35284 | : |
| 35285 | else |
| 35286 | GSMonoDevice=$GSColorDevice |
| 35287 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5 |
| 35289 | $as_echo "$GSMonoDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35290 | |
| 35291 | # GSPDFDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35292 | { $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] | 35293 | $as_echo_n "checking for gs PDF writing device... " >&6; } |
| 35294 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35295 | : |
| 35296 | else |
| 35297 | GSPDFDevice=nodevice |
| 35298 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5 |
| 35300 | $as_echo "$GSPDFDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35301 | |
| 35302 | # GSPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35303 | { $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] | 35304 | $as_echo_n "checking for gs PS writing device... " >&6; } |
| 35305 | if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35306 | : |
| 35307 | else |
| 35308 | GSPSDevice=nodevice |
| 35309 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5 |
| 35311 | $as_echo "$GSPSDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35312 | |
| 35313 | # GSEPSDevice |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35314 | { $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] | 35315 | $as_echo_n "checking for gs EPS writing device... " >&6; } |
| 35316 | if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then |
| 35317 | : |
| 35318 | else |
| 35319 | GSEPSDevice=nodevice |
| 35320 | fi |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5 |
| 35322 | $as_echo "$GSEPSDevice" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35323 | fi |
| 35324 | |
| 35325 | |
| 35326 | |
| 35327 | |
| 35328 | |
| 35329 | |
| 35330 | |
| 35331 | |
| 35332 | |
| 35333 | |
| 35334 | # |
| 35335 | # PerlMagick-related configuration |
| 35336 | # |
| 35337 | |
| 35338 | # Look for PERL if PerlMagick requested |
| 35339 | # If name/path of desired PERL interpreter is specified, look for that one first |
| 35340 | have_perl='no' |
| 35341 | if test "$with_perl" != 'no'; then |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 35343 | $as_echo "-------------------------------------------------------------" >&6; } |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35345 | $as_echo_n "checking for Perl... " >&6; } |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
| 35347 | $as_echo "" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35348 | if test "$with_perl" != 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35350 | $as_echo_n "checking for perl... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35351 | if ${ac_cv_path_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35352 | $as_echo_n "(cached) " >&6 |
| 35353 | else |
| 35354 | ac_cv_path_PERL="$with_perl" |
| 35355 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35357 | $as_echo "$ac_cv_path_PERL" >&6; }; |
| 35358 | PERL=$ac_cv_path_PERL |
| 35359 | have_perl="$ac_cv_path_PERL" |
| 35360 | else |
| 35361 | for ac_prog in perl perl5 |
| 35362 | do |
| 35363 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 35364 | set dummy $ac_prog; ac_word=$2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35366 | $as_echo_n "checking for $ac_word... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35367 | if ${ac_cv_path_PERL+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35368 | $as_echo_n "(cached) " >&6 |
| 35369 | else |
| 35370 | case $PERL in |
| 35371 | [\\/]* | ?:[\\/]*) |
| 35372 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 35373 | ;; |
| 35374 | *) |
| 35375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 35376 | for as_dir in $PATH |
| 35377 | do |
| 35378 | IFS=$as_save_IFS |
| 35379 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35380 | for ac_exec_ext in '' $ac_executable_extensions; do |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 35381 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35382 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35383 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35384 | break 2 |
| 35385 | fi |
| 35386 | done |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35387 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35388 | IFS=$as_save_IFS |
| 35389 | |
| 35390 | ;; |
| 35391 | esac |
| 35392 | fi |
| 35393 | PERL=$ac_cv_path_PERL |
| 35394 | if test -n "$PERL"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35396 | $as_echo "$PERL" >&6; } |
| 35397 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35399 | $as_echo "no" >&6; } |
| 35400 | fi |
| 35401 | |
| 35402 | |
| 35403 | test -n "$PERL" && break |
| 35404 | done |
| 35405 | if test "$ac_cv_path_PERL"; then |
| 35406 | have_perl="$ac_cv_path_PERL" |
| 35407 | fi |
| 35408 | fi |
| 35409 | fi |
| 35410 | |
| cristy | 949301e | 2010-01-06 01:38:40 +0000 | [diff] [blame] | 35411 | if test "$with_perl" != 'yes' ; then |
| 35412 | DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl " |
| 35413 | fi |
| 35414 | |
| 35415 | PERL_SUPPORTS_DESTDIR='no' |
| 35416 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35417 | with_perl_static='no' |
| 35418 | with_perl_dynamic='no' |
| 35419 | if test "$have_perl" != 'no'; then |
| 35420 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then |
| 35421 | with_perl_static='yes' |
| 35422 | fi |
| 35423 | if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then |
| 35424 | with_perl_dynamic='yes' |
| 35425 | fi |
| 35426 | # Is PERL's MakeMaker new enough to support DESTDIR? |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35427 | |
| 35428 | |
| 35429 | |
| 35430 | |
| 35431 | if test -n "$PERL"; then : |
| 35432 | |
| 35433 | ax_perl_version="5.8.1" |
| 35434 | |
| 35435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5 |
| 35436 | $as_echo_n "checking for perl version... " >&6; } |
| 35437 | |
| 35438 | perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'` |
| 35439 | |
| 35440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5 |
| 35441 | $as_echo "$perl_version" >&6; } |
| 35442 | |
| 35443 | PERL_VERSION=$perl_version |
| 35444 | |
| 35445 | |
| 35446 | |
| 35447 | |
| 35448 | |
| 35449 | # Used to indicate true or false condition |
| 35450 | ax_compare_version=false |
| 35451 | |
| 35452 | # Convert the two version strings to be compared into a format that |
| 35453 | # allows a simple string comparison. The end result is that a version |
| 35454 | # string of the form 1.12.5-r617 will be converted to the form |
| 35455 | # 0001001200050617. In other words, each number is zero padded to four |
| 35456 | # digits, and non digits are removed. |
| 35457 | |
| 35458 | ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 35459 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 35460 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 35461 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 35462 | -e 's/[^0-9]//g'` |
| 35463 | |
| 35464 | |
| 35465 | ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ |
| 35466 | -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ |
| 35467 | -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ |
| 35468 | -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ |
| 35469 | -e 's/[^0-9]//g'` |
| 35470 | |
| 35471 | |
| 35472 | ax_compare_version=`echo "x$ax_compare_version_A |
| 35473 | x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` |
| 35474 | |
| 35475 | |
| 35476 | |
| 35477 | if test "$ax_compare_version" = "true" ; then |
| 35478 | |
| 35479 | : |
| 35480 | PERL_SUPPORTS_DESTDIR='yes' |
| 35481 | |
| 35482 | else |
| 35483 | : |
| 35484 | PERL_SUPPORTS_DESTDIR='no' |
| 35485 | |
| 35486 | fi |
| 35487 | |
| 35488 | |
| 35489 | else |
| 35490 | |
| 35491 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5 |
| 35492 | $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;} |
| 35493 | PERL_SUPPORTS_DESTDIR='no' |
| 35494 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35495 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35496 | |
| 35497 | fi |
| 35498 | if test "$have_perl" != 'no'; then |
| 35499 | WITH_PERL_TRUE= |
| 35500 | WITH_PERL_FALSE='#' |
| 35501 | else |
| 35502 | WITH_PERL_TRUE='#' |
| 35503 | WITH_PERL_FALSE= |
| 35504 | fi |
| 35505 | |
| 35506 | if test $with_perl_static = 'yes'; then |
| 35507 | WITH_PERL_STATIC_TRUE= |
| 35508 | WITH_PERL_STATIC_FALSE='#' |
| 35509 | else |
| 35510 | WITH_PERL_STATIC_TRUE='#' |
| 35511 | WITH_PERL_STATIC_FALSE= |
| 35512 | fi |
| 35513 | |
| 35514 | if test $with_perl_dynamic = 'yes'; then |
| 35515 | WITH_PERL_DYNAMIC_TRUE= |
| 35516 | WITH_PERL_DYNAMIC_FALSE='#' |
| 35517 | else |
| 35518 | WITH_PERL_DYNAMIC_TRUE='#' |
| 35519 | WITH_PERL_DYNAMIC_FALSE= |
| 35520 | fi |
| 35521 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35522 | |
| 35523 | |
| 35524 | # Determine path to pick up MagickCore library from for use with building PerlMagick |
| 35525 | MAGICKCORE_PATH="${LIB_DIR}" |
| 35526 | if test $with_perl_static = 'yes'; then |
| 35527 | # Find out where libtool hides its uninstalled libraries (as libtool_objdir) |
| 35528 | libtool_objdir=$objdir |
| 35529 | |
| 35530 | # Linker search path to library, followed by -lMagickCore |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 35531 | MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35532 | fi |
| 35533 | |
| 35534 | |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35535 | # Create a simple string containing format names for all delegate libraries. |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35536 | MAGICK_DELEGATES='' |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35537 | if test "$have_autotrace" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35538 | MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35539 | fi |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35540 | if test "$have_bzlib" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35541 | MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35542 | fi |
| 35543 | if test "$have_dps" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35544 | MAGICK_DELEGATES="$MAGICK_DELEGATES dps" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35545 | fi |
| 35546 | if test "$have_djvu" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35547 | MAGICK_DELEGATES="$MAGICK_DELEGATES djvu" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35548 | fi |
| 35549 | if test "$have_ffmpeg" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35550 | MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35551 | fi |
| 35552 | if test "$have_fftw" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35553 | MAGICK_DELEGATES="$MAGICK_DELEGATES fftw" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35554 | fi |
| 35555 | if test "$have_fig2dev" = 'yes' && test "$have_ps" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35556 | MAGICK_DELEGATES="$MAGICK_DELEGATES xfig" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35557 | fi |
| 35558 | if test "$have_fpx" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35559 | MAGICK_DELEGATES="$MAGICK_DELEGATES fpx" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35560 | fi |
| 35561 | if test "$have_fontconfig" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35562 | MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35563 | fi |
| 35564 | if test "$have_freetype" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35565 | MAGICK_DELEGATES="$MAGICK_DELEGATES freetype" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35566 | fi |
| 35567 | if test "$have_gslib" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35568 | MAGICK_DELEGATES="$MAGICK_DELEGATES gslib" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35569 | fi |
| 35570 | if test "$have_jbig" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35571 | MAGICK_DELEGATES="$MAGICK_DELEGATES jbig" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35572 | fi |
| 35573 | if test "$have_png$have_jpeg" = 'yesyes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35574 | MAGICK_DELEGATES="$MAGICK_DELEGATES jng" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35575 | fi |
| 35576 | if test "$have_jp2" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35577 | MAGICK_DELEGATES="$MAGICK_DELEGATES jp2" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35578 | fi |
| 35579 | if test "$have_jpeg" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35580 | MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35581 | fi |
| 35582 | if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35583 | MAGICK_DELEGATES="$MAGICK_DELEGATES lcms" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35584 | fi |
| 35585 | if test "$have_lqr" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35586 | MAGICK_DELEGATES="$MAGICK_DELEGATES lqr" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35587 | fi |
| 35588 | if test "$have_lzma" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35589 | MAGICK_DELEGATES="$MAGICK_DELEGATES lzma" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35590 | fi |
| 35591 | if test "$have_openexr" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35592 | MAGICK_DELEGATES="$MAGICK_DELEGATES openexr" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35593 | fi |
| 35594 | if test "$have_pango" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35595 | MAGICK_DELEGATES="$MAGICK_DELEGATES pango" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35596 | fi |
| 35597 | if test "$have_png" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35598 | MAGICK_DELEGATES="$MAGICK_DELEGATES png" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35599 | fi |
| 35600 | have_ps='no' |
| 35601 | if test "$have_dps" = 'yes' || \ |
| 35602 | test "$have_gs" = 'yes' || \ |
| 35603 | test "${native_win32_build}" = 'yes' ; then |
| 35604 | have_ps='yes' |
| 35605 | fi |
| 35606 | if test "$have_ps" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35607 | MAGICK_DELEGATES="$MAGICK_DELEGATES ps" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35608 | fi |
| 35609 | if test "$have_ralcgm" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35610 | MAGICK_DELEGATES="$MAGICK_DELEGATES cgm" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35611 | fi |
| 35612 | if test "$have_ra_ppm" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35613 | MAGICK_DELEGATES="$MAGICK_DELEGATES rad" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35614 | fi |
| 35615 | if test "$have_rsvg" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35616 | MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35617 | fi |
| 35618 | if test "$have_tiff" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35619 | MAGICK_DELEGATES="$MAGICK_DELEGATES tiff" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35620 | fi |
| 35621 | if test "$have_ttf" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35622 | MAGICK_DELEGATES="$MAGICK_DELEGATES ttf" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35623 | fi |
| 35624 | if test "$have_wmf" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35625 | MAGICK_DELEGATES="$MAGICK_DELEGATES wmf" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35626 | fi |
| 35627 | if test "$have_x" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35628 | MAGICK_DELEGATES="$MAGICK_DELEGATES x" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35629 | fi |
| 35630 | if test "$have_xml" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35631 | MAGICK_DELEGATES="$MAGICK_DELEGATES xml" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35632 | fi |
| 35633 | if test "$have_zlib" = 'yes' ; then |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35634 | MAGICK_DELEGATES="$MAGICK_DELEGATES zlib" |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35635 | fi |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35636 | # Remove extraneous spaces from output variables (asthetic) |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 35637 | MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'` |
| cristy | 2a3eb39 | 2012-12-17 13:39:20 +0000 | [diff] [blame] | 35638 | MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35639 | |
| 35640 | |
| cristy | fa16118 | 2012-12-19 15:45:28 +0000 | [diff] [blame] | 35641 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35642 | # |
| 35643 | # Handle special compiler flags |
| 35644 | # |
| 35645 | |
| 35646 | # Add '-p' if prof source profiling support enabled |
| 35647 | if test "$enable_prof" = 'yes'; then |
| 35648 | CFLAGS="-p $CFLAGS" |
| 35649 | CXXFLAGS="-p $CXXFLAGS" |
| 35650 | LDFLAGS="-p $LDFLAGS" |
| 35651 | fi |
| 35652 | |
| 35653 | # Add '-pg' if gprof source profiling support enabled |
| 35654 | if test "$enable_gprof" = 'yes'; then |
| 35655 | CFLAGS="-pg $CFLAGS" |
| 35656 | CXXFLAGS="-pg $CXXFLAGS" |
| 35657 | LDFLAGS="-pg $LDFLAGS" |
| 35658 | fi |
| 35659 | |
| 35660 | # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled |
| 35661 | # This is a gcc-specific feature |
| 35662 | if test "$enable_gcov" = 'yes'; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35663 | { $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] | 35664 | $as_echo_n "checking for _gcov_init in -lgcov... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35665 | if ${ac_cv_lib_gcov__gcov_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35666 | $as_echo_n "(cached) " >&6 |
| 35667 | else |
| 35668 | ac_check_lib_save_LIBS=$LIBS |
| 35669 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35671 | /* end confdefs.h. */ |
| 35672 | |
| 35673 | /* Override any GCC internal prototype to avoid an error. |
| 35674 | Use char because int might match the return type of a GCC |
| 35675 | builtin and then its argument prototype would still apply. */ |
| 35676 | #ifdef __cplusplus |
| 35677 | extern "C" |
| 35678 | #endif |
| 35679 | char _gcov_init (); |
| 35680 | int |
| 35681 | main () |
| 35682 | { |
| 35683 | return _gcov_init (); |
| 35684 | ; |
| 35685 | return 0; |
| 35686 | } |
| 35687 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35688 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35689 | ac_cv_lib_gcov__gcov_init=yes |
| 35690 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35691 | ac_cv_lib_gcov__gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35692 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35693 | rm -f core conftest.err conftest.$ac_objext \ |
| 35694 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35695 | LIBS=$ac_check_lib_save_LIBS |
| 35696 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35697 | { $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] | 35698 | $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35699 | if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35700 | cat >>confdefs.h <<_ACEOF |
| 35701 | #define HAVE_LIBGCOV 1 |
| 35702 | _ACEOF |
| 35703 | |
| 35704 | LIBS="-lgcov $LIBS" |
| 35705 | |
| 35706 | fi |
| 35707 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35708 | { $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] | 35709 | $as_echo_n "checking for __gcov_init in -lgcov... " >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35710 | if ${ac_cv_lib_gcov___gcov_init+:} false; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35711 | $as_echo_n "(cached) " >&6 |
| 35712 | else |
| 35713 | ac_check_lib_save_LIBS=$LIBS |
| 35714 | LIBS="-lgcov $LIBS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35715 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35716 | /* end confdefs.h. */ |
| 35717 | |
| 35718 | /* Override any GCC internal prototype to avoid an error. |
| 35719 | Use char because int might match the return type of a GCC |
| 35720 | builtin and then its argument prototype would still apply. */ |
| 35721 | #ifdef __cplusplus |
| 35722 | extern "C" |
| 35723 | #endif |
| 35724 | char __gcov_init (); |
| 35725 | int |
| 35726 | main () |
| 35727 | { |
| 35728 | return __gcov_init (); |
| 35729 | ; |
| 35730 | return 0; |
| 35731 | } |
| 35732 | _ACEOF |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35733 | if ac_fn_c_try_link "$LINENO"; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35734 | ac_cv_lib_gcov___gcov_init=yes |
| 35735 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35736 | ac_cv_lib_gcov___gcov_init=no |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35737 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35738 | rm -f core conftest.err conftest.$ac_objext \ |
| 35739 | conftest$ac_exeext conftest.$ac_ext |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35740 | LIBS=$ac_check_lib_save_LIBS |
| 35741 | fi |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35742 | { $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] | 35743 | $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; } |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35744 | if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35745 | cat >>confdefs.h <<_ACEOF |
| 35746 | #define HAVE_LIBGCOV 1 |
| 35747 | _ACEOF |
| 35748 | |
| 35749 | LIBS="-lgcov $LIBS" |
| 35750 | |
| 35751 | fi |
| 35752 | |
| 35753 | case "$target_os" in |
| 35754 | darwin*) |
| 35755 | OSX_GCOV_LDFLAG="-Wl,-single_module" |
| 35756 | ;; |
| 35757 | *) |
| 35758 | OSX_GCOV_LDFLAG="" |
| 35759 | ;; |
| 35760 | esac |
| 35761 | |
| 35762 | CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS" |
| 35763 | CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS" |
| 35764 | LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS" |
| 35765 | fi |
| 35766 | |
| 35767 | # |
| 35768 | # Build library dependency list for libMagickCore |
| 35769 | # |
| 35770 | |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 35771 | if test "$build_modules" != 'no'; then |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 35772 | MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35773 | else |
| cristy | 3a75f06 | 2012-09-08 23:29:40 +0000 | [diff] [blame] | 35774 | 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 $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35775 | fi |
| 35776 | |
| 35777 | |
| 35778 | # |
| 35779 | # Remove extraneous spaces from output variables (asthetic) |
| 35780 | # |
| 35781 | X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'` |
| 35782 | X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'` |
| 35783 | X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'` |
| 35784 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'` |
| 35785 | |
| 35786 | CC=`echo $CC | sed -e 's/ */ /g'` |
| 35787 | CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'` |
| 35788 | CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'` |
| 35789 | CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35790 | DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'` |
| 35791 | LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'` |
| 35792 | TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 35793 | MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'` |
| 35794 | #LIBS=`echo $LIBS | sed -e 's/ */ /g'` |
| 35795 | |
| 35796 | # Pass only user-provided LIBS as "global" libraries |
| 35797 | LIBS=$USER_LIBS |
| 35798 | |
| 35799 | #AC_SUBST(CPPFLAGS) |
| 35800 | |
| 35801 | #AC_SUBST(LDFLAGS) |
| 35802 | #AC_SUBST(X_PRE_LIBS) |
| 35803 | #AC_SUBST(X_LIBS) |
| 35804 | #AC_SUBST(X_EXTRA_LIBS) |
| 35805 | |
| 35806 | MAGICK_CFLAGS=$CFLAGS |
| 35807 | MAGICK_CXXFLAGS="$CXXFLAGS" |
| 35808 | MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'` |
| 35809 | MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'` |
| 35810 | MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS" |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 35811 | MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35812 | |
| 35813 | |
| 35814 | |
| 35815 | |
| 35816 | |
| 35817 | |
| 35818 | |
| 35819 | |
| 35820 | # Set configured scripts to executable. |
| 35821 | ac_config_commands="$ac_config_commands default" |
| 35822 | |
| cristy | 2bd4b6e | 2012-07-22 15:29:11 +0000 | [diff] [blame] | 35823 | ac_config_commands="$ac_config_commands magick.sh.in" |
| 35824 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35825 | ac_config_commands="$ac_config_commands MagickCore-config.in" |
| 35826 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35827 | ac_config_commands="$ac_config_commands MagickWand-config.in" |
| 35828 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35829 | ac_config_commands="$ac_config_commands Magick++-config.in" |
| 35830 | |
| 35831 | ac_config_commands="$ac_config_commands PerlMagick/check.sh.in" |
| 35832 | |
| 35833 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 35834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5 |
| 35835 | $as_echo "-------------------------------------------------------------" >&6; } |
| 35836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5 |
| 35837 | $as_echo "Update ImageMagick configuration" >&6; } |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35838 | cat >confcache <<\_ACEOF |
| 35839 | # This file is a shell script that caches the results of configure |
| 35840 | # tests run on this system so they can be shared between configure |
| 35841 | # scripts and configure runs, see configure's option --config-cache. |
| 35842 | # It is not useful on other systems. If it contains results you don't |
| 35843 | # want to keep, you may remove or edit it. |
| 35844 | # |
| 35845 | # config.status only pays attention to the cache file if you give it |
| 35846 | # the --recheck option to rerun configure. |
| 35847 | # |
| 35848 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 35849 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 35850 | # following values. |
| 35851 | |
| 35852 | _ACEOF |
| 35853 | |
| 35854 | # The following way of writing the cache mishandles newlines in values, |
| 35855 | # but we know of no workaround that is simple, portable, and efficient. |
| 35856 | # So, we kill variables containing newlines. |
| 35857 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 35858 | # and sets the high bit in the cache file unless we assign to the vars. |
| 35859 | ( |
| 35860 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 35861 | eval ac_val=\$$ac_var |
| 35862 | case $ac_val in #( |
| 35863 | *${as_nl}*) |
| 35864 | case $ac_var in #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35865 | *_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] | 35866 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 35867 | esac |
| 35868 | case $ac_var in #( |
| 35869 | _ | IFS | as_nl) ;; #( |
| 35870 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35871 | *) { eval $ac_var=; unset $ac_var;} ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35872 | esac ;; |
| 35873 | esac |
| 35874 | done |
| 35875 | |
| 35876 | (set) 2>&1 | |
| 35877 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 35878 | *${as_nl}ac_space=\ *) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35879 | # `set' does not quote correctly, so add quotes: double-quote |
| 35880 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35881 | sed -n \ |
| 35882 | "s/'/'\\\\''/g; |
| 35883 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 35884 | ;; #( |
| 35885 | *) |
| 35886 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 35887 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 35888 | ;; |
| 35889 | esac | |
| 35890 | sort |
| 35891 | ) | |
| 35892 | sed ' |
| 35893 | /^ac_cv_env_/b end |
| 35894 | t clear |
| 35895 | :clear |
| 35896 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 35897 | t end |
| 35898 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 35899 | :end' >>confcache |
| 35900 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 35901 | if test -w "$cache_file"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35902 | if test "x$cache_file" != "x/dev/null"; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35903 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35904 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 35905 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 35906 | cat confcache >"$cache_file" |
| 35907 | else |
| 35908 | case $cache_file in #( |
| 35909 | */* | ?:*) |
| 35910 | mv -f confcache "$cache_file"$$ && |
| 35911 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 35912 | *) |
| 35913 | mv -f confcache "$cache_file" ;; |
| 35914 | esac |
| 35915 | fi |
| 35916 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35917 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35918 | { $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] | 35919 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 35920 | fi |
| 35921 | fi |
| 35922 | rm -f confcache |
| 35923 | |
| 35924 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 35925 | # Let make expand exec_prefix. |
| 35926 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 35927 | |
| 35928 | DEFS=-DHAVE_CONFIG_H |
| 35929 | |
| 35930 | ac_libobjs= |
| 35931 | ac_ltlibobjs= |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35932 | U= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35933 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 35934 | # 1. Remove the extension, and $U if already installed. |
| 35935 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 35936 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 35937 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 35938 | # will be set to the directory where LIBOBJS objects are built. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 35939 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 35940 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35941 | done |
| 35942 | LIBOBJS=$ac_libobjs |
| 35943 | |
| 35944 | LTLIBOBJS=$ac_ltlibobjs |
| 35945 | |
| 35946 | |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 35947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 35948 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 35949 | if test -n "$am_sleep_pid"; then |
| 35950 | # Hide warnings about reused PIDs. |
| 35951 | wait $am_sleep_pid 2>/dev/null |
| 35952 | fi |
| 35953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 35954 | $as_echo "done" >&6; } |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35955 | if test -n "$EXEEXT"; then |
| 35956 | am__EXEEXT_TRUE= |
| 35957 | am__EXEEXT_FALSE='#' |
| 35958 | else |
| 35959 | am__EXEEXT_TRUE='#' |
| 35960 | am__EXEEXT_FALSE= |
| 35961 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 35962 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35963 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35964 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35965 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35966 | fi |
| 35967 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35968 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35969 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35970 | fi |
| 35971 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35972 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35973 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35974 | fi |
| 35975 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35976 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35977 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35978 | fi |
| cristy | 9b86f20 | 2012-11-28 21:55:35 +0000 | [diff] [blame] | 35979 | if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then |
| 35980 | as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. |
| 35981 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35982 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35983 | if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35984 | as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35985 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35986 | fi |
| 35987 | 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] | 35988 | as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35989 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35990 | fi |
| 35991 | if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35992 | as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35993 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35994 | fi |
| 35995 | if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 35996 | as_fn_error $? "conditional \"USING_CL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35997 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 35998 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 35999 | 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] | 36000 | as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36001 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36002 | fi |
| 36003 | if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36004 | as_fn_error $? "conditional \"WITH_MODULES\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36005 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36006 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36007 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36008 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36009 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36010 | fi |
| cristy | 71d8c20 | 2012-03-20 17:05:01 +0000 | [diff] [blame] | 36011 | if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then |
| 36012 | as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined. |
| 36013 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36014 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36015 | |
| 36016 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36017 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36018 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36019 | fi |
| 36020 | 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] | 36021 | as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36022 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36023 | fi |
| 36024 | if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36025 | as_fn_error $? "conditional \"HasUMEM\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36026 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36027 | fi |
| 36028 | if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36029 | as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36030 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36031 | fi |
| 36032 | if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36033 | as_fn_error $? "conditional \"X11_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36034 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36035 | fi |
| 36036 | if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36037 | as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36038 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36039 | fi |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 36040 | if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then |
| 36041 | as_fn_error $? "conditional \"WITH_LTDL\" was never defined. |
| 36042 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36043 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36044 | if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36045 | as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36046 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36047 | fi |
| 36048 | if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36049 | as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36050 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36051 | fi |
| 36052 | if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36053 | as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36054 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36055 | fi |
| 36056 | if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36057 | as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36058 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36059 | fi |
| 36060 | if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36061 | as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36062 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36063 | fi |
| 36064 | if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36065 | as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36066 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36067 | fi |
| 36068 | if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36069 | as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36070 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36071 | fi |
| 36072 | if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36073 | as_fn_error $? "conditional \"GS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36074 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36075 | fi |
| 36076 | if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36077 | as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36078 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36079 | fi |
| 36080 | if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36081 | as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36082 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36083 | fi |
| 36084 | if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36085 | as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36086 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36087 | fi |
| 36088 | if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36089 | as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36090 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36091 | fi |
| 36092 | if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36093 | as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36094 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36095 | fi |
| 36096 | if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36097 | as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36098 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36099 | fi |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 36100 | if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then |
| 36101 | as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined. |
| 36102 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36103 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36104 | if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36105 | as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36106 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36107 | fi |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 36108 | if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then |
| 36109 | as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined. |
| 36110 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36111 | fi |
| cristy | a054b76 | 2012-03-26 23:16:00 +0000 | [diff] [blame] | 36112 | if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then |
| 36113 | as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined. |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 36114 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36115 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36116 | if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36117 | as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36118 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36119 | fi |
| 36120 | if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36121 | as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36122 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36123 | fi |
| 36124 | if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36125 | as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36126 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36127 | fi |
| 36128 | if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36129 | as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36130 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36131 | fi |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 36132 | if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then |
| 36133 | as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined. |
| 36134 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36135 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36136 | if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36137 | as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36138 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36139 | fi |
| 36140 | if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36141 | as_fn_error $? "conditional \"XML_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36142 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36143 | fi |
| 36144 | if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36145 | as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36146 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36147 | fi |
| 36148 | if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36149 | as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36150 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36151 | fi |
| 36152 | if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36153 | as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36154 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36155 | fi |
| 36156 | if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36157 | as_fn_error $? "conditional \"WITH_PERL\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36158 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36159 | fi |
| 36160 | 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] | 36161 | as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36162 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36163 | fi |
| 36164 | 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] | 36165 | as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36166 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 36167 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36168 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36169 | : "${CONFIG_STATUS=./config.status}" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36170 | ac_write_fail=0 |
| 36171 | ac_clean_files_save=$ac_clean_files |
| 36172 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36173 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36174 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36175 | as_write_fail=0 |
| 36176 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36177 | #! $SHELL |
| 36178 | # Generated by $as_me. |
| 36179 | # Run this file to recreate the current configuration. |
| 36180 | # Compiler output produced by configure, useful for debugging |
| 36181 | # configure, is in config.log if it exists. |
| 36182 | |
| 36183 | debug=false |
| 36184 | ac_cs_recheck=false |
| 36185 | ac_cs_silent=false |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36186 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36187 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 36188 | export SHELL |
| 36189 | _ASEOF |
| 36190 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 36191 | ## -------------------- ## |
| 36192 | ## M4sh Initialization. ## |
| 36193 | ## -------------------- ## |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36194 | |
| 36195 | # Be more Bourne compatible |
| 36196 | DUALCASE=1; export DUALCASE # for MKS sh |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36197 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36198 | emulate sh |
| 36199 | NULLCMD=: |
| 36200 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 36201 | # is contrary to our usage. Disable this feature. |
| 36202 | alias -g '${1+"$@"}'='"$@"' |
| 36203 | setopt NO_GLOB_SUBST |
| 36204 | else |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36205 | case `(set -o) 2>/dev/null` in #( |
| 36206 | *posix*) : |
| 36207 | set -o posix ;; #( |
| 36208 | *) : |
| 36209 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36210 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36211 | fi |
| 36212 | |
| 36213 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36214 | as_nl=' |
| 36215 | ' |
| 36216 | export as_nl |
| 36217 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 36218 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 36219 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 36220 | 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] | 36221 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 36222 | # but without wasting forks for bash or zsh. |
| 36223 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 36224 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 36225 | as_echo='print -r --' |
| 36226 | as_echo_n='print -rn --' |
| 36227 | 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] | 36228 | as_echo='printf %s\n' |
| 36229 | as_echo_n='printf %s' |
| 36230 | else |
| 36231 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 36232 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 36233 | as_echo_n='/usr/ucb/echo -n' |
| 36234 | else |
| 36235 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 36236 | as_echo_n_body='eval |
| 36237 | arg=$1; |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36238 | case $arg in #( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36239 | *"$as_nl"*) |
| 36240 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 36241 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 36242 | esac; |
| 36243 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 36244 | ' |
| 36245 | export as_echo_n_body |
| 36246 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 36247 | fi |
| 36248 | export as_echo_body |
| 36249 | as_echo='sh -c $as_echo_body as_echo' |
| 36250 | fi |
| 36251 | |
| 36252 | # The user is always right. |
| 36253 | if test "${PATH_SEPARATOR+set}" != set; then |
| 36254 | PATH_SEPARATOR=: |
| 36255 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 36256 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 36257 | PATH_SEPARATOR=';' |
| 36258 | } |
| 36259 | fi |
| 36260 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36261 | |
| 36262 | # IFS |
| 36263 | # We need space, tab and new line, in precisely that order. Quoting is |
| 36264 | # there to prevent editors from complaining about space-tab. |
| 36265 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 36266 | # splitting by setting IFS to empty value.) |
| 36267 | IFS=" "" $as_nl" |
| 36268 | |
| 36269 | # 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] | 36270 | as_myself= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36271 | case $0 in #(( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36272 | *[\\/]* ) as_myself=$0 ;; |
| 36273 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 36274 | for as_dir in $PATH |
| 36275 | do |
| 36276 | IFS=$as_save_IFS |
| 36277 | test -z "$as_dir" && as_dir=. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36278 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 36279 | done |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36280 | IFS=$as_save_IFS |
| 36281 | |
| 36282 | ;; |
| 36283 | esac |
| 36284 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 36285 | # in which case we are not to be found in the path. |
| 36286 | if test "x$as_myself" = x; then |
| 36287 | as_myself=$0 |
| 36288 | fi |
| 36289 | if test ! -f "$as_myself"; then |
| 36290 | $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] | 36291 | exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36292 | fi |
| 36293 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36294 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 36295 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 36296 | # suppresses any "Segmentation fault" message there. '((' could |
| 36297 | # trigger a bug in pdksh 5.2.14. |
| 36298 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 36299 | do eval test x\${$as_var+set} = xset \ |
| 36300 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36301 | done |
| 36302 | PS1='$ ' |
| 36303 | PS2='> ' |
| 36304 | PS4='+ ' |
| 36305 | |
| 36306 | # NLS nuisances. |
| 36307 | LC_ALL=C |
| 36308 | export LC_ALL |
| 36309 | LANGUAGE=C |
| 36310 | export LANGUAGE |
| 36311 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36312 | # CDPATH. |
| 36313 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 36314 | |
| 36315 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36316 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 36317 | # ---------------------------------------- |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36318 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 36319 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36320 | # script with STATUS, using 1 if that was 0. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36321 | as_fn_error () |
| 36322 | { |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36323 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 36324 | if test "$4"; then |
| 36325 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 36326 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36327 | fi |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36328 | $as_echo "$as_me: error: $2" >&2 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36329 | as_fn_exit $as_status |
| 36330 | } # as_fn_error |
| 36331 | |
| 36332 | |
| 36333 | # as_fn_set_status STATUS |
| 36334 | # ----------------------- |
| 36335 | # Set $? to STATUS, without forking. |
| 36336 | as_fn_set_status () |
| 36337 | { |
| 36338 | return $1 |
| 36339 | } # as_fn_set_status |
| 36340 | |
| 36341 | # as_fn_exit STATUS |
| 36342 | # ----------------- |
| 36343 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 36344 | as_fn_exit () |
| 36345 | { |
| 36346 | set +e |
| 36347 | as_fn_set_status $1 |
| 36348 | exit $1 |
| 36349 | } # as_fn_exit |
| 36350 | |
| 36351 | # as_fn_unset VAR |
| 36352 | # --------------- |
| 36353 | # Portably unset VAR. |
| 36354 | as_fn_unset () |
| 36355 | { |
| 36356 | { eval $1=; unset $1;} |
| 36357 | } |
| 36358 | as_unset=as_fn_unset |
| 36359 | # as_fn_append VAR VALUE |
| 36360 | # ---------------------- |
| 36361 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 36362 | # advantage of any shell optimizations that allow amortized linear growth over |
| 36363 | # repeated appends, instead of the typical quadratic growth present in naive |
| 36364 | # implementations. |
| 36365 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 36366 | eval 'as_fn_append () |
| 36367 | { |
| 36368 | eval $1+=\$2 |
| 36369 | }' |
| 36370 | else |
| 36371 | as_fn_append () |
| 36372 | { |
| 36373 | eval $1=\$$1\$2 |
| 36374 | } |
| 36375 | fi # as_fn_append |
| 36376 | |
| 36377 | # as_fn_arith ARG... |
| 36378 | # ------------------ |
| 36379 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 36380 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 36381 | # must be portable across $(()) and expr. |
| 36382 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 36383 | eval 'as_fn_arith () |
| 36384 | { |
| 36385 | as_val=$(( $* )) |
| 36386 | }' |
| 36387 | else |
| 36388 | as_fn_arith () |
| 36389 | { |
| 36390 | as_val=`expr "$@" || test $? -eq 1` |
| 36391 | } |
| 36392 | fi # as_fn_arith |
| 36393 | |
| 36394 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36395 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 36396 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 36397 | as_expr=expr |
| 36398 | else |
| 36399 | as_expr=false |
| 36400 | fi |
| 36401 | |
| 36402 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 36403 | as_basename=basename |
| 36404 | else |
| 36405 | as_basename=false |
| 36406 | fi |
| 36407 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36408 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 36409 | as_dirname=dirname |
| 36410 | else |
| 36411 | as_dirname=false |
| 36412 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36413 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36414 | as_me=`$as_basename -- "$0" || |
| 36415 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 36416 | X"$0" : 'X\(//\)$' \| \ |
| 36417 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 36418 | $as_echo X/"$0" | |
| 36419 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 36420 | s//\1/ |
| 36421 | q |
| 36422 | } |
| 36423 | /^X\/\(\/\/\)$/{ |
| 36424 | s//\1/ |
| 36425 | q |
| 36426 | } |
| 36427 | /^X\/\(\/\).*/{ |
| 36428 | s//\1/ |
| 36429 | q |
| 36430 | } |
| 36431 | s/.*/./; q'` |
| 36432 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36433 | # Avoid depending upon Character Ranges. |
| 36434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 36435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 36437 | as_cr_digits='0123456789' |
| 36438 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36439 | |
| 36440 | ECHO_C= ECHO_N= ECHO_T= |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36441 | case `echo -n x` in #((((( |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36442 | -n*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36443 | case `echo 'xy\c'` in |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36444 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36445 | xy) ECHO_C='\c';; |
| 36446 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 36447 | ECHO_T=' ';; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36448 | esac;; |
| 36449 | *) |
| 36450 | ECHO_N='-n';; |
| 36451 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36452 | |
| 36453 | rm -f conf$$ conf$$.exe conf$$.file |
| 36454 | if test -d conf$$.dir; then |
| 36455 | rm -f conf$$.dir/conf$$.file |
| 36456 | else |
| 36457 | rm -f conf$$.dir |
| 36458 | mkdir conf$$.dir 2>/dev/null |
| 36459 | fi |
| 36460 | if (echo >conf$$.file) 2>/dev/null; then |
| 36461 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 36462 | as_ln_s='ln -s' |
| 36463 | # ... but there are two gotchas: |
| 36464 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 36465 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36466 | # In both cases, we have to default to `cp -pR'. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36467 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36468 | as_ln_s='cp -pR' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36469 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 36470 | as_ln_s=ln |
| 36471 | else |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36472 | as_ln_s='cp -pR' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36473 | fi |
| 36474 | else |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36475 | as_ln_s='cp -pR' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36476 | fi |
| 36477 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 36478 | rmdir conf$$.dir 2>/dev/null |
| 36479 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36480 | |
| 36481 | # as_fn_mkdir_p |
| 36482 | # ------------- |
| 36483 | # Create "$as_dir" as a directory, including parents if necessary. |
| 36484 | as_fn_mkdir_p () |
| 36485 | { |
| 36486 | |
| 36487 | case $as_dir in #( |
| 36488 | -*) as_dir=./$as_dir;; |
| 36489 | esac |
| 36490 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 36491 | as_dirs= |
| 36492 | while :; do |
| 36493 | case $as_dir in #( |
| 36494 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 36495 | *) as_qdir=$as_dir;; |
| 36496 | esac |
| 36497 | as_dirs="'$as_qdir' $as_dirs" |
| 36498 | as_dir=`$as_dirname -- "$as_dir" || |
| 36499 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 36500 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 36501 | X"$as_dir" : 'X\(//\)$' \| \ |
| 36502 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 36503 | $as_echo X"$as_dir" | |
| 36504 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 36505 | s//\1/ |
| 36506 | q |
| 36507 | } |
| 36508 | /^X\(\/\/\)[^/].*/{ |
| 36509 | s//\1/ |
| 36510 | q |
| 36511 | } |
| 36512 | /^X\(\/\/\)$/{ |
| 36513 | s//\1/ |
| 36514 | q |
| 36515 | } |
| 36516 | /^X\(\/\).*/{ |
| 36517 | s//\1/ |
| 36518 | q |
| 36519 | } |
| 36520 | s/.*/./; q'` |
| 36521 | test -d "$as_dir" && break |
| 36522 | done |
| 36523 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36524 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36525 | |
| 36526 | |
| 36527 | } # as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36528 | if mkdir -p . 2>/dev/null; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36529 | as_mkdir_p='mkdir -p "$as_dir"' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36530 | else |
| 36531 | test -d ./-p && rmdir ./-p |
| 36532 | as_mkdir_p=false |
| 36533 | fi |
| 36534 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36535 | |
| 36536 | # as_fn_executable_p FILE |
| 36537 | # ----------------------- |
| 36538 | # Test if FILE is an executable regular file. |
| 36539 | as_fn_executable_p () |
| 36540 | { |
| 36541 | test -f "$1" && test -x "$1" |
| 36542 | } # as_fn_executable_p |
| 36543 | as_test_x='test -x' |
| 36544 | as_executable_p=as_fn_executable_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36545 | |
| 36546 | # Sed expression to map a string onto a valid CPP name. |
| 36547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 36548 | |
| 36549 | # Sed expression to map a string onto a valid variable name. |
| 36550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 36551 | |
| 36552 | |
| 36553 | exec 6>&1 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36554 | ## ----------------------------------- ## |
| 36555 | ## Main body of $CONFIG_STATUS script. ## |
| 36556 | ## ----------------------------------- ## |
| 36557 | _ASEOF |
| 36558 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36559 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36560 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36561 | # Save the log message, to keep $0 and so on meaningful, and to |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36562 | # report actual input values of CONFIG_FILES etc. instead of their |
| 36563 | # values after options handling. |
| 36564 | ac_log=" |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 36565 | This file was extended by ImageMagick $as_me 7.0.0-0, which was |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36566 | generated by GNU Autoconf 2.69. Invocation command line was |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36567 | |
| 36568 | CONFIG_FILES = $CONFIG_FILES |
| 36569 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 36570 | CONFIG_LINKS = $CONFIG_LINKS |
| 36571 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 36572 | $ $0 $@ |
| 36573 | |
| 36574 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 36575 | " |
| 36576 | |
| 36577 | _ACEOF |
| 36578 | |
| 36579 | case $ac_config_files in *" |
| 36580 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 36581 | esac |
| 36582 | |
| 36583 | case $ac_config_headers in *" |
| 36584 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 36585 | esac |
| 36586 | |
| 36587 | |
| 36588 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36589 | # Files that config.status was made for. |
| 36590 | config_files="$ac_config_files" |
| 36591 | config_headers="$ac_config_headers" |
| 36592 | config_commands="$ac_config_commands" |
| 36593 | |
| 36594 | _ACEOF |
| 36595 | |
| 36596 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36597 | ac_cs_usage="\ |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36598 | \`$as_me' instantiates files and other configuration actions |
| 36599 | from templates according to the current configuration. Unless the files |
| 36600 | and actions are specified as TAGs, all are instantiated by default. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36601 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36602 | Usage: $0 [OPTION]... [TAG]... |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36603 | |
| 36604 | -h, --help print this help, then exit |
| 36605 | -V, --version print version number and configuration settings, then exit |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36606 | --config print configuration, then exit |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36607 | -q, --quiet, --silent |
| 36608 | do not print progress messages |
| 36609 | -d, --debug don't remove temporary files |
| 36610 | --recheck update $as_me by reconfiguring in the same conditions |
| 36611 | --file=FILE[:TEMPLATE] |
| 36612 | instantiate the configuration file FILE |
| 36613 | --header=FILE[:TEMPLATE] |
| 36614 | instantiate the configuration header FILE |
| 36615 | |
| 36616 | Configuration files: |
| 36617 | $config_files |
| 36618 | |
| 36619 | Configuration headers: |
| 36620 | $config_headers |
| 36621 | |
| 36622 | Configuration commands: |
| 36623 | $config_commands |
| 36624 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36625 | Report bugs to <http://www.imagemagick.org>." |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36626 | |
| 36627 | _ACEOF |
| 36628 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36629 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36630 | ac_cs_version="\\ |
| cristy | 29eb34e | 2011-10-16 00:46:08 +0000 | [diff] [blame] | 36631 | ImageMagick config.status 7.0.0-0 |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36632 | configured by $0, generated by GNU Autoconf 2.69, |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36633 | with options \\"\$ac_cs_config\\" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36634 | |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36635 | Copyright (C) 2012 Free Software Foundation, Inc. |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36636 | This config.status script is free software; the Free Software Foundation |
| 36637 | gives unlimited permission to copy, distribute and modify it." |
| 36638 | |
| 36639 | ac_pwd='$ac_pwd' |
| 36640 | srcdir='$srcdir' |
| 36641 | INSTALL='$INSTALL' |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36642 | MKDIR_P='$MKDIR_P' |
| 36643 | AWK='$AWK' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36644 | test -n "\$AWK" || AWK=awk |
| 36645 | _ACEOF |
| 36646 | |
| 36647 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36648 | # The default lists apply if the user does not specify any file. |
| 36649 | ac_need_defaults=: |
| 36650 | while test $# != 0 |
| 36651 | do |
| 36652 | case $1 in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36653 | --*=?*) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36654 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 36655 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 36656 | ac_shift=: |
| 36657 | ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36658 | --*=) |
| 36659 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 36660 | ac_optarg= |
| 36661 | ac_shift=: |
| 36662 | ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36663 | *) |
| 36664 | ac_option=$1 |
| 36665 | ac_optarg=$2 |
| 36666 | ac_shift=shift |
| 36667 | ;; |
| 36668 | esac |
| 36669 | |
| 36670 | case $ac_option in |
| 36671 | # Handling of the options. |
| 36672 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 36673 | ac_cs_recheck=: ;; |
| 36674 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 36675 | $as_echo "$ac_cs_version"; exit ;; |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 36676 | --config | --confi | --conf | --con | --co | --c ) |
| 36677 | $as_echo "$ac_cs_config"; exit ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36678 | --debug | --debu | --deb | --de | --d | -d ) |
| 36679 | debug=: ;; |
| 36680 | --file | --fil | --fi | --f ) |
| 36681 | $ac_shift |
| 36682 | case $ac_optarg in |
| 36683 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36684 | '') as_fn_error $? "missing file argument" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36685 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36686 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36687 | ac_need_defaults=false;; |
| 36688 | --header | --heade | --head | --hea ) |
| 36689 | $ac_shift |
| 36690 | case $ac_optarg in |
| 36691 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 36692 | esac |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36693 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36694 | ac_need_defaults=false;; |
| 36695 | --he | --h) |
| 36696 | # Conflict between --help and --header |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36697 | as_fn_error $? "ambiguous option: \`$1' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36698 | Try \`$0 --help' for more information.";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36699 | --help | --hel | -h ) |
| 36700 | $as_echo "$ac_cs_usage"; exit ;; |
| 36701 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 36702 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 36703 | ac_cs_silent=: ;; |
| 36704 | |
| 36705 | # This is an error. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 36706 | -*) as_fn_error $? "unrecognized option: \`$1' |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36707 | Try \`$0 --help' for more information." ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36708 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 36709 | *) as_fn_append ac_config_targets " $1" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36710 | ac_need_defaults=false ;; |
| 36711 | |
| 36712 | esac |
| 36713 | shift |
| 36714 | done |
| 36715 | |
| 36716 | ac_configure_extra_args= |
| 36717 | |
| 36718 | if $ac_cs_silent; then |
| 36719 | exec 6>/dev/null |
| 36720 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 36721 | fi |
| 36722 | |
| 36723 | _ACEOF |
| 36724 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 36725 | if \$ac_cs_recheck; then |
| cristy | 14fefe5 | 2012-05-21 00:59:18 +0000 | [diff] [blame] | 36726 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 36727 | shift |
| 36728 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 36729 | CONFIG_SHELL='$SHELL' |
| 36730 | export CONFIG_SHELL |
| 36731 | exec "\$@" |
| 36732 | fi |
| 36733 | |
| 36734 | _ACEOF |
| 36735 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 36736 | exec 5>>config.log |
| 36737 | { |
| 36738 | echo |
| 36739 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 36740 | ## Running $as_me. ## |
| 36741 | _ASBOX |
| 36742 | $as_echo "$ac_log" |
| 36743 | } >&5 |
| 36744 | |
| 36745 | _ACEOF |
| 36746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36747 | # |
| 36748 | # INIT-COMMANDS |
| 36749 | # |
| 36750 | PACKAGE="$PACKAGE" |
| 36751 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 36752 | |
| 36753 | |
| 36754 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 36755 | # if CDPATH is set. |
| 36756 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 36757 | |
| 36758 | sed_quote_subst='$sed_quote_subst' |
| 36759 | double_quote_subst='$double_quote_subst' |
| 36760 | delay_variable_subst='$delay_variable_subst' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36761 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 36762 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 36763 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 36764 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 36765 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 36766 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 36767 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 36768 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 36769 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 36770 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 36771 | AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 36772 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 36773 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 36774 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 36775 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 36776 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 36777 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 36778 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36779 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 36780 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 36781 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 36782 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 36783 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 36784 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 36785 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 36786 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 36787 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 36788 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 36789 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 36790 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 36791 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 36792 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36793 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 36794 | 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] | 36795 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 36796 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 36797 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 36798 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36799 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 36800 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 36801 | 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] | 36802 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 36803 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36804 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36805 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 36806 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 36807 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36808 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36809 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 36810 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 36811 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 36812 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 36813 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 36814 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 36815 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 36816 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 36817 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 36818 | 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] | 36819 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 36820 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36821 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 36822 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 36823 | 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] | 36824 | 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] | 36825 | 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] | 36826 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 36827 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 36828 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36829 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36830 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 36831 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 36832 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 36833 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 36834 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 36835 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 36836 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 36837 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 36838 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 36839 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 36840 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 36841 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 36842 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 36843 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 36844 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 36845 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 36846 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 36847 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 36848 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 36849 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 36850 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 36851 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 36852 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36853 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 36854 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 36855 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 36856 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 36857 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 36858 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 36859 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 36860 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36861 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 36862 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 36863 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 36864 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 36865 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36866 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36867 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 36868 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 36869 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 36870 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 36871 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 36872 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 36873 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 36874 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 36875 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 36876 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 36877 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 36878 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 36879 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36880 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 36881 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 36882 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 36883 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 36884 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 36885 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 36886 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 36887 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 36888 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 36889 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 36890 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 36891 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 36892 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 36893 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 36894 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 36895 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 36896 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 36897 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 36898 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 36899 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 36900 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36901 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36902 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 36903 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 36904 | 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] | 36905 | 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] | 36906 | 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] | 36907 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 36908 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 36909 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 36910 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 36911 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36912 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36913 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 36914 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36915 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36916 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36917 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36918 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36919 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36920 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 36921 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 36922 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 36923 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36924 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 36925 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 36926 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 36927 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 36928 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 36929 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 36930 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 36931 | 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] | 36932 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 36933 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 36934 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 36935 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 36936 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36937 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36938 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 36939 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 36940 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 36941 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 36942 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 36943 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 36944 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 36945 | 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] | 36946 | |
| 36947 | LTCC='$LTCC' |
| 36948 | LTCFLAGS='$LTCFLAGS' |
| 36949 | compiler='$compiler_DEFAULT' |
| 36950 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36951 | # A function that is used when there is no print builtin or printf. |
| 36952 | func_fallback_echo () |
| 36953 | { |
| 36954 | eval 'cat <<_LTECHO_EOF |
| 36955 | \$1 |
| 36956 | _LTECHO_EOF' |
| 36957 | } |
| 36958 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36959 | # Quote evaled strings. |
| 36960 | for var in SED \ |
| 36961 | GREP \ |
| 36962 | EGREP \ |
| 36963 | FGREP \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36964 | SHELL \ |
| 36965 | ECHO \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36966 | LD \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 36967 | AS \ |
| 36968 | DLLTOOL \ |
| 36969 | OBJDUMP \ |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 36970 | PATH_SEPARATOR \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36971 | NM \ |
| 36972 | LN_S \ |
| 36973 | lt_SP2NL \ |
| 36974 | lt_NL2SP \ |
| 36975 | reload_flag \ |
| 36976 | deplibs_check_method \ |
| 36977 | file_magic_cmd \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36978 | file_magic_glob \ |
| 36979 | want_nocaseglob \ |
| 36980 | sharedlib_from_linklib_cmd \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36981 | AR \ |
| 36982 | AR_FLAGS \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36983 | archiver_list_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36984 | STRIP \ |
| 36985 | RANLIB \ |
| 36986 | CC \ |
| 36987 | CFLAGS \ |
| 36988 | compiler \ |
| 36989 | lt_cv_sys_global_symbol_pipe \ |
| 36990 | lt_cv_sys_global_symbol_to_cdecl \ |
| 36991 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 36992 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36993 | nm_file_list_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36994 | lt_prog_compiler_no_builtin_flag \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36995 | lt_prog_compiler_pic \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 36996 | lt_prog_compiler_wl \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 36997 | lt_prog_compiler_static \ |
| 36998 | lt_cv_prog_compiler_c_o \ |
| 36999 | need_locks \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37000 | MANIFEST_TOOL \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37001 | DSYMUTIL \ |
| 37002 | NMEDIT \ |
| 37003 | LIPO \ |
| 37004 | OTOOL \ |
| 37005 | OTOOL64 \ |
| 37006 | shrext_cmds \ |
| 37007 | export_dynamic_flag_spec \ |
| 37008 | whole_archive_flag_spec \ |
| 37009 | compiler_needs_object \ |
| 37010 | with_gnu_ld \ |
| 37011 | allow_undefined_flag \ |
| 37012 | no_undefined_flag \ |
| 37013 | hardcode_libdir_flag_spec \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37014 | hardcode_libdir_separator \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37015 | exclude_expsyms \ |
| 37016 | include_expsyms \ |
| 37017 | file_list_spec \ |
| 37018 | variables_saved_for_relink \ |
| 37019 | libname_spec \ |
| 37020 | library_names_spec \ |
| 37021 | soname_spec \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37022 | install_override_mode \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37023 | finish_eval \ |
| 37024 | old_striplib \ |
| 37025 | striplib \ |
| 37026 | compiler_lib_search_dirs \ |
| 37027 | predep_objects \ |
| 37028 | postdep_objects \ |
| 37029 | predeps \ |
| 37030 | postdeps \ |
| 37031 | compiler_lib_search_path \ |
| 37032 | LD_CXX \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37033 | reload_flag_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37034 | compiler_CXX \ |
| 37035 | lt_prog_compiler_no_builtin_flag_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37036 | lt_prog_compiler_pic_CXX \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37037 | lt_prog_compiler_wl_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37038 | lt_prog_compiler_static_CXX \ |
| 37039 | lt_cv_prog_compiler_c_o_CXX \ |
| 37040 | export_dynamic_flag_spec_CXX \ |
| 37041 | whole_archive_flag_spec_CXX \ |
| 37042 | compiler_needs_object_CXX \ |
| 37043 | with_gnu_ld_CXX \ |
| 37044 | allow_undefined_flag_CXX \ |
| 37045 | no_undefined_flag_CXX \ |
| 37046 | hardcode_libdir_flag_spec_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37047 | hardcode_libdir_separator_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37048 | exclude_expsyms_CXX \ |
| 37049 | include_expsyms_CXX \ |
| 37050 | file_list_spec_CXX \ |
| 37051 | compiler_lib_search_dirs_CXX \ |
| 37052 | predep_objects_CXX \ |
| 37053 | postdep_objects_CXX \ |
| 37054 | predeps_CXX \ |
| 37055 | postdeps_CXX \ |
| 37056 | compiler_lib_search_path_CXX; do |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37057 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37058 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37059 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37060 | ;; |
| 37061 | *) |
| 37062 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 37063 | ;; |
| 37064 | esac |
| 37065 | done |
| 37066 | |
| 37067 | # Double-quote double-evaled strings. |
| 37068 | for var in reload_cmds \ |
| 37069 | old_postinstall_cmds \ |
| 37070 | old_postuninstall_cmds \ |
| 37071 | old_archive_cmds \ |
| 37072 | extract_expsyms_cmds \ |
| 37073 | old_archive_from_new_cmds \ |
| 37074 | old_archive_from_expsyms_cmds \ |
| 37075 | archive_cmds \ |
| 37076 | archive_expsym_cmds \ |
| 37077 | module_cmds \ |
| 37078 | module_expsym_cmds \ |
| 37079 | export_symbols_cmds \ |
| 37080 | prelink_cmds \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37081 | postlink_cmds \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37082 | postinstall_cmds \ |
| 37083 | postuninstall_cmds \ |
| 37084 | finish_cmds \ |
| 37085 | sys_lib_search_path_spec \ |
| 37086 | sys_lib_dlsearch_path_spec \ |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37087 | reload_cmds_CXX \ |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37088 | old_archive_cmds_CXX \ |
| 37089 | old_archive_from_new_cmds_CXX \ |
| 37090 | old_archive_from_expsyms_cmds_CXX \ |
| 37091 | archive_cmds_CXX \ |
| 37092 | archive_expsym_cmds_CXX \ |
| 37093 | module_cmds_CXX \ |
| 37094 | module_expsym_cmds_CXX \ |
| 37095 | export_symbols_cmds_CXX \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37096 | prelink_cmds_CXX \ |
| 37097 | postlink_cmds_CXX; do |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37098 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37099 | *[\\\\\\\`\\"\\\$]*) |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 37100 | 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] | 37101 | ;; |
| 37102 | *) |
| 37103 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 37104 | ;; |
| 37105 | esac |
| 37106 | done |
| 37107 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37108 | ac_aux_dir='$ac_aux_dir' |
| 37109 | xsi_shell='$xsi_shell' |
| 37110 | lt_shell_append='$lt_shell_append' |
| 37111 | |
| 37112 | # See if we are running on zsh, and set the options which allow our |
| 37113 | # commands through without removal of \ escapes INIT. |
| 37114 | if test -n "\${ZSH_VERSION+set}" ; then |
| 37115 | setopt NO_GLOB_SUBST |
| 37116 | fi |
| 37117 | |
| 37118 | |
| 37119 | PACKAGE='$PACKAGE' |
| 37120 | VERSION='$VERSION' |
| 37121 | TIMESTAMP='$TIMESTAMP' |
| 37122 | RM='$RM' |
| 37123 | ofile='$ofile' |
| 37124 | |
| 37125 | |
| 37126 | |
| 37127 | |
| 37128 | |
| 37129 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37130 | _ACEOF |
| 37131 | |
| 37132 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37133 | |
| 37134 | # Handling of arguments. |
| 37135 | for ac_config_target in $ac_config_targets |
| 37136 | do |
| 37137 | case $ac_config_target in |
| 37138 | "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 37139 | "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;; |
| cristy | 305c5dd | 2012-09-13 00:30:13 +0000 | [diff] [blame] | 37140 | "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37141 | "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;; |
| 37142 | "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;; |
| 37143 | "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;; |
| 37144 | "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;; |
| 37145 | "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;; |
| cristy | 2df3280 | 2012-09-17 01:15:28 +0000 | [diff] [blame] | 37146 | "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;; |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 37147 | "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37148 | "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;; |
| 37149 | "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;; |
| 37150 | "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;; |
| 37151 | "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;; |
| 37152 | "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37153 | "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37154 | "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37155 | "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;; |
| 37156 | "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;; |
| 37157 | "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37158 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 37159 | "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37160 | "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;; |
| cristy | 8d0ff76 | 2013-03-10 20:33:28 +0000 | [diff] [blame] | 37161 | "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;; |
| cristy | 3e049f8 | 2013-02-13 13:26:53 +0000 | [diff] [blame] | 37162 | "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;; |
| cristy | 8d0ff76 | 2013-03-10 20:33:28 +0000 | [diff] [blame] | 37163 | "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;; |
| cristy | cf0cbcc | 2013-02-13 23:32:58 +0000 | [diff] [blame] | 37164 | "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;; |
| 37165 | "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;; |
| 37166 | "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;; |
| 37167 | "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37168 | "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;; |
| 37169 | "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;; |
| 37170 | "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;; |
| 37171 | "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;; |
| 37172 | "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;; |
| 37173 | "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;; |
| 37174 | "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;; |
| 37175 | "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;; |
| 37176 | "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;; |
| 37177 | "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;; |
| 37178 | "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;; |
| 37179 | "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 37180 | "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;; |
| 37181 | "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;; |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37182 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 37183 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37184 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| cristy | 2bd4b6e | 2012-07-22 15:29:11 +0000 | [diff] [blame] | 37185 | "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37186 | "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37187 | "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37188 | "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;; |
| 37189 | "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;; |
| 37190 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37191 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37192 | esac |
| 37193 | done |
| 37194 | |
| 37195 | |
| 37196 | # If the user did not use the arguments to specify the items to instantiate, |
| 37197 | # then the envvar interface is used. Set only those that are not. |
| 37198 | # We use the long form for the default assignment because of an extremely |
| 37199 | # bizarre bug on SunOS 4.1.3. |
| 37200 | if $ac_need_defaults; then |
| 37201 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 37202 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 37203 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 37204 | fi |
| 37205 | |
| 37206 | # Have a temporary directory for convenience. Make it in the build tree |
| 37207 | # simply because there is no reason against having it here, and in addition, |
| 37208 | # creating and moving files from /tmp can sometimes cause problems. |
| 37209 | # Hook for its removal unless debugging. |
| 37210 | # Note that there is a small window in which the directory will not be cleaned: |
| 37211 | # after its creation but before its name has been assigned to `$tmp'. |
| 37212 | $debug || |
| 37213 | { |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37214 | tmp= ac_tmp= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37215 | trap 'exit_status=$? |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37216 | : "${ac_tmp:=$tmp}" |
| 37217 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37218 | ' 0 |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37219 | trap 'as_fn_exit 1' 1 2 13 15 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37220 | } |
| 37221 | # Create a (secure) tmp directory for tmp files. |
| 37222 | |
| 37223 | { |
| 37224 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37225 | test -d "$tmp" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37226 | } || |
| 37227 | { |
| 37228 | tmp=./conf$$-$RANDOM |
| 37229 | (umask 077 && mkdir "$tmp") |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37230 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37231 | ac_tmp=$tmp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37232 | |
| 37233 | # Set up the scripts for CONFIG_FILES section. |
| 37234 | # No need to generate them if there are no CONFIG_FILES. |
| 37235 | # This happens for instance with `./config.status config.h'. |
| 37236 | if test -n "$CONFIG_FILES"; then |
| 37237 | |
| 37238 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37239 | ac_cr=`echo X | tr X '\015'` |
| 37240 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 37241 | # But we know of no other shell where ac_cr would be empty at this |
| 37242 | # point, so we can use a bashism as a fallback. |
| 37243 | if test "x$ac_cr" = x; then |
| 37244 | eval ac_cr=\$\'\\r\' |
| 37245 | fi |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37246 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 37247 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37248 | ac_cs_awk_cr='\\r' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37249 | else |
| 37250 | ac_cs_awk_cr=$ac_cr |
| 37251 | fi |
| 37252 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37253 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37254 | _ACEOF |
| 37255 | |
| 37256 | |
| 37257 | { |
| 37258 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 37259 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 37260 | echo "_ACEOF" |
| 37261 | } >conf$$subs.sh || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37262 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 37263 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37264 | ac_delim='%!_!# ' |
| 37265 | for ac_last_try in false false false false false :; do |
| 37266 | . ./conf$$subs.sh || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37267 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37268 | |
| 37269 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 37270 | if test $ac_delim_n = $ac_delim_num; then |
| 37271 | break |
| 37272 | elif $ac_last_try; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37273 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37274 | else |
| 37275 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 37276 | fi |
| 37277 | done |
| 37278 | rm -f conf$$subs.sh |
| 37279 | |
| 37280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37281 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37282 | _ACEOF |
| 37283 | sed -n ' |
| 37284 | h |
| 37285 | s/^/S["/; s/!.*/"]=/ |
| 37286 | p |
| 37287 | g |
| 37288 | s/^[^!]*!// |
| 37289 | :repl |
| 37290 | t repl |
| 37291 | s/'"$ac_delim"'$// |
| 37292 | t delim |
| 37293 | :nl |
| 37294 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 37295 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37296 | t more1 |
| 37297 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 37298 | p |
| 37299 | n |
| 37300 | b repl |
| 37301 | :more1 |
| 37302 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 37303 | p |
| 37304 | g |
| 37305 | s/.\{148\}// |
| 37306 | t nl |
| 37307 | :delim |
| 37308 | h |
| cristy | cd4c531 | 2009-11-22 01:19:08 +0000 | [diff] [blame] | 37309 | s/\(.\{148\}\)..*/\1/ |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37310 | t more2 |
| 37311 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 37312 | p |
| 37313 | b |
| 37314 | :more2 |
| 37315 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 37316 | p |
| 37317 | g |
| 37318 | s/.\{148\}// |
| 37319 | t delim |
| 37320 | ' <conf$$subs.awk | sed ' |
| 37321 | /^[^""]/{ |
| 37322 | N |
| 37323 | s/\n// |
| 37324 | } |
| 37325 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 37326 | rm -f conf$$subs.awk |
| 37327 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37328 | _ACAWK |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37329 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37330 | for (key in S) S_is_set[key] = 1 |
| 37331 | FS = "" |
| 37332 | |
| 37333 | } |
| 37334 | { |
| 37335 | line = $ 0 |
| 37336 | nfields = split(line, field, "@") |
| 37337 | substed = 0 |
| 37338 | len = length(field[1]) |
| 37339 | for (i = 2; i < nfields; i++) { |
| 37340 | key = field[i] |
| 37341 | keylen = length(key) |
| 37342 | if (S_is_set[key]) { |
| 37343 | value = S[key] |
| 37344 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 37345 | len += length(value) + length(field[++i]) |
| 37346 | substed = 1 |
| 37347 | } else |
| 37348 | len += 1 + keylen |
| 37349 | } |
| 37350 | |
| 37351 | print line |
| 37352 | } |
| 37353 | |
| 37354 | _ACAWK |
| 37355 | _ACEOF |
| 37356 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37357 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 37358 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 37359 | else |
| 37360 | cat |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37361 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37362 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37363 | _ACEOF |
| 37364 | |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37365 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 37366 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37367 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 37368 | # (actually we leave an empty line to preserve line numbers). |
| 37369 | if test "x$srcdir" = x.; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37370 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 37371 | h |
| 37372 | s/// |
| 37373 | s/^/:/ |
| 37374 | s/[ ]*$/:/ |
| 37375 | s/:\$(srcdir):/:/g |
| 37376 | s/:\${srcdir}:/:/g |
| 37377 | s/:@srcdir@:/:/g |
| 37378 | s/^:*// |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37379 | s/:*$// |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37380 | x |
| 37381 | s/\(=[ ]*\).*/\1/ |
| 37382 | G |
| 37383 | s/\n// |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37384 | s/^[^=]*=[ ]*$// |
| 37385 | }' |
| 37386 | fi |
| 37387 | |
| 37388 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37389 | fi # test -n "$CONFIG_FILES" |
| 37390 | |
| 37391 | # Set up the scripts for CONFIG_HEADERS section. |
| 37392 | # No need to generate them if there are no CONFIG_HEADERS. |
| 37393 | # This happens for instance with `./config.status Makefile'. |
| 37394 | if test -n "$CONFIG_HEADERS"; then |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37395 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37396 | BEGIN { |
| 37397 | _ACEOF |
| 37398 | |
| 37399 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 37400 | # here-document in config.status, that substitutes the proper values into |
| 37401 | # config.h.in to produce config.h. |
| 37402 | |
| 37403 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 37404 | # handling of long lines. |
| 37405 | ac_delim='%!_!# ' |
| 37406 | for ac_last_try in false false :; do |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37407 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 37408 | if test -z "$ac_tt"; then |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37409 | break |
| 37410 | elif $ac_last_try; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37411 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37412 | else |
| 37413 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 37414 | fi |
| 37415 | done |
| 37416 | |
| 37417 | # For the awk script, D is an array of macro values keyed by name, |
| 37418 | # likewise P contains macro parameters if any. Preserve backslash |
| 37419 | # newline sequences. |
| 37420 | |
| 37421 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 37422 | sed -n ' |
| 37423 | s/.\{148\}/&'"$ac_delim"'/g |
| 37424 | t rset |
| 37425 | :rset |
| 37426 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 37427 | t def |
| 37428 | d |
| 37429 | :def |
| 37430 | s/\\$// |
| 37431 | t bsnl |
| 37432 | s/["\\]/\\&/g |
| 37433 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 37434 | D["\1"]=" \3"/p |
| 37435 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 37436 | d |
| 37437 | :bsnl |
| 37438 | s/["\\]/\\&/g |
| 37439 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 37440 | D["\1"]=" \3\\\\\\n"\\/p |
| 37441 | t cont |
| 37442 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 37443 | t cont |
| 37444 | d |
| 37445 | :cont |
| 37446 | n |
| 37447 | s/.\{148\}/&'"$ac_delim"'/g |
| 37448 | t clear |
| 37449 | :clear |
| 37450 | s/\\$// |
| 37451 | t bsnlc |
| 37452 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 37453 | d |
| 37454 | :bsnlc |
| 37455 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 37456 | b cont |
| 37457 | ' <confdefs.h | sed ' |
| 37458 | s/'"$ac_delim"'/"\\\ |
| 37459 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 37460 | |
| 37461 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37462 | for (key in D) D_is_set[key] = 1 |
| 37463 | FS = "" |
| 37464 | } |
| 37465 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 37466 | line = \$ 0 |
| 37467 | split(line, arg, " ") |
| 37468 | if (arg[1] == "#") { |
| 37469 | defundef = arg[2] |
| 37470 | mac1 = arg[3] |
| 37471 | } else { |
| 37472 | defundef = substr(arg[1], 2) |
| 37473 | mac1 = arg[2] |
| 37474 | } |
| 37475 | split(mac1, mac2, "(") #) |
| 37476 | macro = mac2[1] |
| 37477 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 37478 | if (D_is_set[macro]) { |
| 37479 | # Preserve the white space surrounding the "#". |
| 37480 | print prefix "define", macro P[macro] D[macro] |
| 37481 | next |
| 37482 | } else { |
| 37483 | # Replace #undef with comments. This is necessary, for example, |
| 37484 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 37485 | # on some systems where configure will not decide to define it. |
| 37486 | if (defundef == "undef") { |
| 37487 | print "/*", prefix defundef, macro, "*/" |
| 37488 | next |
| 37489 | } |
| 37490 | } |
| 37491 | } |
| 37492 | { print } |
| 37493 | _ACAWK |
| 37494 | _ACEOF |
| 37495 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37496 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37497 | fi # test -n "$CONFIG_HEADERS" |
| 37498 | |
| 37499 | |
| 37500 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 37501 | shift |
| 37502 | for ac_tag |
| 37503 | do |
| 37504 | case $ac_tag in |
| 37505 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 37506 | esac |
| 37507 | case $ac_mode$ac_tag in |
| 37508 | :[FHL]*:*);; |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37509 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37510 | :[FH]-) ac_tag=-:-;; |
| 37511 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 37512 | esac |
| 37513 | ac_save_IFS=$IFS |
| 37514 | IFS=: |
| 37515 | set x $ac_tag |
| 37516 | IFS=$ac_save_IFS |
| 37517 | shift |
| 37518 | ac_file=$1 |
| 37519 | shift |
| 37520 | |
| 37521 | case $ac_mode in |
| 37522 | :L) ac_source=$1;; |
| 37523 | :[FH]) |
| 37524 | ac_file_inputs= |
| 37525 | for ac_f |
| 37526 | do |
| 37527 | case $ac_f in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37528 | -) ac_f="$ac_tmp/stdin";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37529 | *) # Look for the file first in the build tree, then in the source tree |
| 37530 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 37531 | # because $ac_f cannot contain `:'. |
| 37532 | test -f "$ac_f" || |
| 37533 | case $ac_f in |
| 37534 | [\\/$]*) false;; |
| 37535 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 37536 | esac || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37537 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37538 | esac |
| 37539 | 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] | 37540 | as_fn_append ac_file_inputs " '$ac_f'" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37541 | done |
| 37542 | |
| 37543 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 37544 | # use $as_me), people would be surprised to read: |
| 37545 | # /* config.h. Generated by config.status. */ |
| 37546 | configure_input='Generated from '` |
| 37547 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 37548 | `' by configure.' |
| 37549 | if test x"$ac_file" != x-; then |
| 37550 | configure_input="$ac_file. $configure_input" |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37551 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37552 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 37553 | fi |
| 37554 | # Neutralize special characters interpreted by sed in replacement strings. |
| 37555 | case $configure_input in #( |
| 37556 | *\&* | *\|* | *\\* ) |
| 37557 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 37558 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 37559 | *) ac_sed_conf_input=$configure_input;; |
| 37560 | esac |
| 37561 | |
| 37562 | case $ac_tag in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37563 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37564 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37565 | esac |
| 37566 | ;; |
| 37567 | esac |
| 37568 | |
| 37569 | ac_dir=`$as_dirname -- "$ac_file" || |
| 37570 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37571 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 37572 | X"$ac_file" : 'X\(//\)$' \| \ |
| 37573 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 37574 | $as_echo X"$ac_file" | |
| 37575 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37576 | s//\1/ |
| 37577 | q |
| 37578 | } |
| 37579 | /^X\(\/\/\)[^/].*/{ |
| 37580 | s//\1/ |
| 37581 | q |
| 37582 | } |
| 37583 | /^X\(\/\/\)$/{ |
| 37584 | s//\1/ |
| 37585 | q |
| 37586 | } |
| 37587 | /^X\(\/\).*/{ |
| 37588 | s//\1/ |
| 37589 | q |
| 37590 | } |
| 37591 | s/.*/./; q'` |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37592 | as_dir="$ac_dir"; as_fn_mkdir_p |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37593 | ac_builddir=. |
| 37594 | |
| 37595 | case "$ac_dir" in |
| 37596 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 37597 | *) |
| 37598 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 37599 | # A ".." for each directory in $ac_dir_suffix. |
| 37600 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 37601 | case $ac_top_builddir_sub in |
| 37602 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 37603 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 37604 | esac ;; |
| 37605 | esac |
| 37606 | ac_abs_top_builddir=$ac_pwd |
| 37607 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 37608 | # for backward compatibility: |
| 37609 | ac_top_builddir=$ac_top_build_prefix |
| 37610 | |
| 37611 | case $srcdir in |
| 37612 | .) # We are building in place. |
| 37613 | ac_srcdir=. |
| 37614 | ac_top_srcdir=$ac_top_builddir_sub |
| 37615 | ac_abs_top_srcdir=$ac_pwd ;; |
| 37616 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 37617 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 37618 | ac_top_srcdir=$srcdir |
| 37619 | ac_abs_top_srcdir=$srcdir ;; |
| 37620 | *) # Relative name. |
| 37621 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 37622 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 37623 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 37624 | esac |
| 37625 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 37626 | |
| 37627 | |
| 37628 | case $ac_mode in |
| 37629 | :F) |
| 37630 | # |
| 37631 | # CONFIG_FILE |
| 37632 | # |
| 37633 | |
| 37634 | case $INSTALL in |
| 37635 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 37636 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 37637 | esac |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37638 | ac_MKDIR_P=$MKDIR_P |
| 37639 | case $MKDIR_P in |
| 37640 | [\\/$]* | ?:[\\/]* ) ;; |
| 37641 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 37642 | esac |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37643 | _ACEOF |
| 37644 | |
| 37645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37646 | # If the template does not know about datarootdir, expand it. |
| 37647 | # FIXME: This hack should be removed a few years after 2.60. |
| 37648 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37649 | ac_sed_dataroot=' |
| 37650 | /datarootdir/ { |
| 37651 | p |
| 37652 | q |
| 37653 | } |
| 37654 | /@datadir@/p |
| 37655 | /@docdir@/p |
| 37656 | /@infodir@/p |
| 37657 | /@localedir@/p |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37658 | /@mandir@/p' |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37659 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 37660 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 37661 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37662 | { $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] | 37663 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 37664 | _ACEOF |
| 37665 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37666 | ac_datarootdir_hack=' |
| 37667 | s&@datadir@&$datadir&g |
| 37668 | s&@docdir@&$docdir&g |
| 37669 | s&@infodir@&$infodir&g |
| 37670 | s&@localedir@&$localedir&g |
| 37671 | s&@mandir@&$mandir&g |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37672 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37673 | esac |
| 37674 | _ACEOF |
| 37675 | |
| 37676 | # Neutralize VPATH when `$srcdir' = `.'. |
| 37677 | # Shell code in configure.ac might set extrasub. |
| 37678 | # FIXME: do we really want to maintain this feature? |
| 37679 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 37680 | ac_sed_extra="$ac_vpsub |
| 37681 | $extrasub |
| 37682 | _ACEOF |
| 37683 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 37684 | :t |
| 37685 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 37686 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 37687 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 37688 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 37689 | s&@srcdir@&$ac_srcdir&;t t |
| 37690 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 37691 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 37692 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 37693 | s&@builddir@&$ac_builddir&;t t |
| 37694 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 37695 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 37696 | s&@INSTALL@&$ac_INSTALL&;t t |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37697 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37698 | $ac_datarootdir_hack |
| 37699 | " |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37700 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 37701 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37702 | |
| 37703 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37704 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 37705 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 37706 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37707 | { $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] | 37708 | which seems to be undefined. Please make sure it is defined" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37709 | $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] | 37710 | which seems to be undefined. Please make sure it is defined" >&2;} |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37711 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37712 | rm -f "$ac_tmp/stdin" |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37713 | case $ac_file in |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37714 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 37715 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37716 | esac \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37717 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37718 | ;; |
| 37719 | :H) |
| 37720 | # |
| 37721 | # CONFIG_HEADER |
| 37722 | # |
| 37723 | if test x"$ac_file" != x-; then |
| 37724 | { |
| 37725 | $as_echo "/* $configure_input */" \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37726 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 37727 | } >"$ac_tmp/config.h" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37728 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37729 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37730 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37731 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 37732 | else |
| 37733 | rm -f "$ac_file" |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37734 | mv "$ac_tmp/config.h" "$ac_file" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37735 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37736 | fi |
| 37737 | else |
| 37738 | $as_echo "/* $configure_input */" \ |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 37739 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37740 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37741 | fi |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37742 | # Compute "$ac_file"'s index in $config_headers. |
| 37743 | _am_arg="$ac_file" |
| 37744 | _am_stamp_count=1 |
| 37745 | for _am_header in $config_headers :; do |
| 37746 | case $_am_header in |
| 37747 | $_am_arg | $_am_arg:* ) |
| 37748 | break ;; |
| 37749 | * ) |
| 37750 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 37751 | esac |
| 37752 | done |
| 37753 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 37754 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37755 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 37756 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 37757 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 37758 | $as_echo X"$_am_arg" | |
| 37759 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37760 | s//\1/ |
| 37761 | q |
| 37762 | } |
| 37763 | /^X\(\/\/\)[^/].*/{ |
| 37764 | s//\1/ |
| 37765 | q |
| 37766 | } |
| 37767 | /^X\(\/\/\)$/{ |
| 37768 | s//\1/ |
| 37769 | q |
| 37770 | } |
| 37771 | /^X\(\/\).*/{ |
| 37772 | s//\1/ |
| 37773 | q |
| 37774 | } |
| 37775 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37776 | ;; |
| 37777 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 37778 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 37779 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 37780 | ;; |
| 37781 | esac |
| 37782 | |
| 37783 | |
| 37784 | case $ac_file$ac_mode in |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 37785 | "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37786 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 37787 | ac_prefix_conf_PKG=`echo MagickCore` |
| 37788 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 37789 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 37790 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 37791 | if test ".$ac_prefix_conf_INP" = "."; then |
| 37792 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 37793 | case "$ac_file" in |
| 37794 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 37795 | *) |
| 37796 | esac |
| 37797 | test ".$ac_prefix_conf_INP" != "." && break |
| 37798 | done |
| 37799 | fi |
| 37800 | if test ".$ac_prefix_conf_INP" = "."; then |
| 37801 | case "$ac_prefix_conf_OUT" in |
| 37802 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 37803 | ;; |
| 37804 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 37805 | ;; |
| 37806 | *) ac_prefix_conf_INP=config.h |
| 37807 | ;; |
| 37808 | esac |
| 37809 | fi |
| 37810 | if test -z "$ac_prefix_conf_PKG" ; then |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37811 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37812 | else |
| 37813 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 37814 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 37815 | fi fi |
| 37816 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 37817 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 37818 | if test -f $ac_prefix_conf_INP ; then |
| cristy | 24fc1fe | 2010-10-23 21:13:01 +0000 | [diff] [blame] | 37819 | $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 37820 | $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 37821 | $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix |
| 37822 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix |
| 37823 | $as_echo "#endif/" >> conftest.prefix |
| 37824 | $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix |
| 37825 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix |
| 37826 | $as_echo "#endif/" >> conftest.prefix |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37827 | # now executing _script on _DEF input to create _OUT output file |
| 37828 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 37829 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 37830 | echo ' ' >>$tmp/pconfig.h |
| 37831 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 37832 | |
| 37833 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 37834 | echo ' ' >>$tmp/pconfig.h |
| 37835 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 37836 | echo "#endif" >>$tmp/pconfig.h |
| 37837 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 37838 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| 37839 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 37840 | else |
| 37841 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 37842 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37843 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 37844 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 37845 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 37846 | $as_echo X"$ac_prefix_conf_OUT" | |
| 37847 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37848 | s//\1/ |
| 37849 | q |
| 37850 | } |
| 37851 | /^X\(\/\/\)[^/].*/{ |
| 37852 | s//\1/ |
| 37853 | q |
| 37854 | } |
| 37855 | /^X\(\/\/\)$/{ |
| 37856 | s//\1/ |
| 37857 | q |
| 37858 | } |
| 37859 | /^X\(\/\).*/{ |
| 37860 | s//\1/ |
| 37861 | q |
| 37862 | } |
| 37863 | s/.*/./; q'` |
| 37864 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 37865 | rm -f "$ac_prefix_conf_OUT" |
| 37866 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 37867 | fi |
| 37868 | cp conftest.prefix _configs.sed |
| 37869 | else |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 37870 | 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] | 37871 | fi |
| 37872 | rm -f conftest.* |
| 37873 | fi |
| 37874 | ;; |
| 37875 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| cristy | 58d34aa | 2013-01-24 15:11:54 +0000 | [diff] [blame] | 37876 | # Older Autoconf quotes --file arguments for eval, but not when files |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37877 | # are listed without --file. Let's play safe and only enable the eval |
| 37878 | # if we detect the quoting. |
| 37879 | case $CONFIG_FILES in |
| 37880 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 37881 | *) set x $CONFIG_FILES ;; |
| 37882 | esac |
| 37883 | shift |
| 37884 | for mf |
| 37885 | do |
| 37886 | # Strip MF so we end up with the name of the file. |
| 37887 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 37888 | # Check whether this is an Automake generated Makefile or not. |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 37889 | # We used to match only the files named 'Makefile.in', but |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37890 | # some people rename them; so instead we look at the file content. |
| 37891 | # Grep'ing the first line is not enough: some people post-process |
| 37892 | # each Makefile.in and add a new line on top of each file to say so. |
| 37893 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 37894 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 37895 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 37896 | dirpart=`$as_dirname -- "$mf" || |
| 37897 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37898 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 37899 | X"$mf" : 'X\(//\)$' \| \ |
| 37900 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 37901 | $as_echo X"$mf" | |
| 37902 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37903 | s//\1/ |
| 37904 | q |
| 37905 | } |
| 37906 | /^X\(\/\/\)[^/].*/{ |
| 37907 | s//\1/ |
| 37908 | q |
| 37909 | } |
| 37910 | /^X\(\/\/\)$/{ |
| 37911 | s//\1/ |
| 37912 | q |
| 37913 | } |
| 37914 | /^X\(\/\).*/{ |
| 37915 | s//\1/ |
| 37916 | q |
| 37917 | } |
| 37918 | s/.*/./; q'` |
| 37919 | else |
| 37920 | continue |
| 37921 | fi |
| 37922 | # Extract the definition of DEPDIR, am__include, and am__quote |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 37923 | # from the Makefile without running 'make'. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37924 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 37925 | test -z "$DEPDIR" && continue |
| 37926 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 37927 | test -z "am__include" && continue |
| 37928 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37929 | # Find all dependency output files, they are included files with |
| 37930 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 37931 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 37932 | # expansion. |
| 37933 | for file in `sed -n " |
| 37934 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| cristy | c0890a6 | 2012-07-19 00:18:20 +0000 | [diff] [blame] | 37935 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37936 | # Make sure the directory exists. |
| 37937 | test -f "$dirpart/$file" && continue |
| 37938 | fdir=`$as_dirname -- "$file" || |
| 37939 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 37940 | X"$file" : 'X\(//\)[^/]' \| \ |
| 37941 | X"$file" : 'X\(//\)$' \| \ |
| 37942 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 37943 | $as_echo X"$file" | |
| 37944 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 37945 | s//\1/ |
| 37946 | q |
| 37947 | } |
| 37948 | /^X\(\/\/\)[^/].*/{ |
| 37949 | s//\1/ |
| 37950 | q |
| 37951 | } |
| 37952 | /^X\(\/\/\)$/{ |
| 37953 | s//\1/ |
| 37954 | q |
| 37955 | } |
| 37956 | /^X\(\/\).*/{ |
| 37957 | s//\1/ |
| 37958 | q |
| 37959 | } |
| 37960 | s/.*/./; q'` |
| 37961 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 37962 | # echo "creating $dirpart/$file" |
| 37963 | echo '# dummy' > "$dirpart/$file" |
| 37964 | done |
| 37965 | done |
| 37966 | } |
| 37967 | ;; |
| 37968 | "libtool":C) |
| 37969 | |
| 37970 | # See if we are running on zsh, and set the options which allow our |
| 37971 | # commands through without removal of \ escapes. |
| 37972 | if test -n "${ZSH_VERSION+set}" ; then |
| 37973 | setopt NO_GLOB_SUBST |
| 37974 | fi |
| 37975 | |
| 37976 | cfgfile="${ofile}T" |
| 37977 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 37978 | $RM "$cfgfile" |
| 37979 | |
| 37980 | cat <<_LT_EOF >> "$cfgfile" |
| 37981 | #! $SHELL |
| 37982 | |
| 37983 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 37984 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 37985 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 37986 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 37987 | # |
| 37988 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 37989 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 37990 | # Foundation, Inc. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 37991 | # Written by Gordon Matzigkeit, 1996 |
| 37992 | # |
| 37993 | # This file is part of GNU Libtool. |
| 37994 | # |
| 37995 | # GNU Libtool is free software; you can redistribute it and/or |
| 37996 | # modify it under the terms of the GNU General Public License as |
| 37997 | # published by the Free Software Foundation; either version 2 of |
| 37998 | # the License, or (at your option) any later version. |
| 37999 | # |
| 38000 | # As a special exception to the GNU General Public License, |
| 38001 | # if you distribute this file as part of a program or library that |
| 38002 | # is built using GNU Libtool, you may include this file under the |
| 38003 | # same distribution terms that you use for the rest of that program. |
| 38004 | # |
| 38005 | # GNU Libtool is distributed in the hope that it will be useful, |
| 38006 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 38007 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 38008 | # GNU General Public License for more details. |
| 38009 | # |
| 38010 | # You should have received a copy of the GNU General Public License |
| 38011 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 38012 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 38013 | # obtained by writing to the Free Software Foundation, Inc., |
| 38014 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 38015 | |
| 38016 | |
| 38017 | # The names of the tagged configurations supported by this script. |
| 38018 | available_tags="CXX " |
| 38019 | |
| 38020 | # ### BEGIN LIBTOOL CONFIG |
| 38021 | |
| 38022 | # A sed program that does not truncate output. |
| 38023 | SED=$lt_SED |
| 38024 | |
| 38025 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 38026 | Xsed="\$SED -e 1s/^X//" |
| 38027 | |
| 38028 | # A grep program that handles long lines. |
| 38029 | GREP=$lt_GREP |
| 38030 | |
| 38031 | # An ERE matcher. |
| 38032 | EGREP=$lt_EGREP |
| 38033 | |
| 38034 | # A literal string matcher. |
| 38035 | FGREP=$lt_FGREP |
| 38036 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38037 | # Shell to use when invoking shell scripts. |
| 38038 | SHELL=$lt_SHELL |
| 38039 | |
| 38040 | # An echo program that protects backslashes. |
| 38041 | ECHO=$lt_ECHO |
| 38042 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38043 | # Which release of libtool.m4 was used? |
| 38044 | macro_version=$macro_version |
| 38045 | macro_revision=$macro_revision |
| 38046 | |
| 38047 | # Assembler program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38048 | AS=$lt_AS |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38049 | |
| 38050 | # DLL creation program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38051 | DLLTOOL=$lt_DLLTOOL |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38052 | |
| 38053 | # Object dumper program. |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38054 | OBJDUMP=$lt_OBJDUMP |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38055 | |
| 38056 | # Whether or not to build shared libraries. |
| 38057 | build_libtool_libs=$enable_shared |
| 38058 | |
| 38059 | # Whether or not to build static libraries. |
| 38060 | build_old_libs=$enable_static |
| 38061 | |
| 38062 | # What type of objects to build. |
| 38063 | pic_mode=$pic_mode |
| 38064 | |
| 38065 | # Whether or not to optimize for fast installation. |
| 38066 | fast_install=$enable_fast_install |
| 38067 | |
| cristy | 99bd523 | 2011-12-07 14:38:20 +0000 | [diff] [blame] | 38068 | # The PATH separator for the build system. |
| 38069 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 38070 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38071 | # The host system. |
| 38072 | host_alias=$host_alias |
| 38073 | host=$host |
| 38074 | host_os=$host_os |
| 38075 | |
| 38076 | # The build system. |
| 38077 | build_alias=$build_alias |
| 38078 | build=$build |
| 38079 | build_os=$build_os |
| 38080 | |
| 38081 | # A BSD- or MS-compatible name lister. |
| 38082 | NM=$lt_NM |
| 38083 | |
| 38084 | # Whether we need soft or hard links. |
| 38085 | LN_S=$lt_LN_S |
| 38086 | |
| 38087 | # What is the maximum length of a command? |
| 38088 | max_cmd_len=$max_cmd_len |
| 38089 | |
| 38090 | # Object file suffix (normally "o"). |
| 38091 | objext=$ac_objext |
| 38092 | |
| 38093 | # Executable file suffix (normally ""). |
| 38094 | exeext=$exeext |
| 38095 | |
| 38096 | # whether the shell understands "unset". |
| 38097 | lt_unset=$lt_unset |
| 38098 | |
| 38099 | # turn spaces into newlines. |
| 38100 | SP2NL=$lt_lt_SP2NL |
| 38101 | |
| 38102 | # turn newlines into spaces. |
| 38103 | NL2SP=$lt_lt_NL2SP |
| 38104 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38105 | # convert \$build file names to \$host format. |
| 38106 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 38107 | |
| 38108 | # convert \$build files to toolchain format. |
| 38109 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 38110 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38111 | # Method to check whether dependent libraries are shared objects. |
| 38112 | deplibs_check_method=$lt_deplibs_check_method |
| 38113 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38114 | # Command to use when deplibs_check_method = "file_magic". |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38115 | file_magic_cmd=$lt_file_magic_cmd |
| 38116 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38117 | # How to find potential files when deplibs_check_method = "file_magic". |
| 38118 | file_magic_glob=$lt_file_magic_glob |
| 38119 | |
| 38120 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 38121 | want_nocaseglob=$lt_want_nocaseglob |
| 38122 | |
| 38123 | # Command to associate shared and link libraries. |
| 38124 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 38125 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38126 | # The archiver. |
| 38127 | AR=$lt_AR |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38128 | |
| 38129 | # Flags to create an archive. |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38130 | AR_FLAGS=$lt_AR_FLAGS |
| 38131 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38132 | # How to feed a file listing to the archiver. |
| 38133 | archiver_list_spec=$lt_archiver_list_spec |
| 38134 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38135 | # A symbol stripping program. |
| 38136 | STRIP=$lt_STRIP |
| 38137 | |
| 38138 | # Commands used to install an old-style archive. |
| 38139 | RANLIB=$lt_RANLIB |
| 38140 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 38141 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 38142 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38143 | # Whether to use a lock for old archive extraction. |
| 38144 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 38145 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38146 | # A C compiler. |
| 38147 | LTCC=$lt_CC |
| 38148 | |
| 38149 | # LTCC compiler flags. |
| 38150 | LTCFLAGS=$lt_CFLAGS |
| 38151 | |
| 38152 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 38153 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 38154 | |
| 38155 | # Transform the output of nm in a proper C declaration. |
| 38156 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 38157 | |
| 38158 | # Transform the output of nm in a C name address pair. |
| 38159 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 38160 | |
| 38161 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 38162 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 38163 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38164 | # Specify filename containing input files for \$NM. |
| 38165 | nm_file_list_spec=$lt_nm_file_list_spec |
| 38166 | |
| 38167 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 38168 | lt_sysroot=$lt_sysroot |
| 38169 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38170 | # The name of the directory that contains temporary libtool files. |
| 38171 | objdir=$objdir |
| 38172 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38173 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 38174 | MAGIC_CMD=$MAGIC_CMD |
| 38175 | |
| 38176 | # Must we lock files when doing compilation? |
| 38177 | need_locks=$lt_need_locks |
| 38178 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38179 | # Manifest tool. |
| 38180 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 38181 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38182 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 38183 | DSYMUTIL=$lt_DSYMUTIL |
| 38184 | |
| 38185 | # Tool to change global to local symbols on Mac OS X. |
| 38186 | NMEDIT=$lt_NMEDIT |
| 38187 | |
| 38188 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 38189 | LIPO=$lt_LIPO |
| 38190 | |
| 38191 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 38192 | OTOOL=$lt_OTOOL |
| 38193 | |
| 38194 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 38195 | OTOOL64=$lt_OTOOL64 |
| 38196 | |
| 38197 | # Old archive suffix (normally "a"). |
| 38198 | libext=$libext |
| 38199 | |
| 38200 | # Shared library suffix (normally ".so"). |
| 38201 | shrext_cmds=$lt_shrext_cmds |
| 38202 | |
| 38203 | # The commands to extract the exported symbol list from a shared archive. |
| 38204 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 38205 | |
| 38206 | # Variables whose values should be saved in libtool wrapper scripts and |
| 38207 | # restored at link time. |
| 38208 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 38209 | |
| 38210 | # Do we need the "lib" prefix for modules? |
| 38211 | need_lib_prefix=$need_lib_prefix |
| 38212 | |
| 38213 | # Do we need a version for libraries? |
| 38214 | need_version=$need_version |
| 38215 | |
| 38216 | # Library versioning type. |
| 38217 | version_type=$version_type |
| 38218 | |
| 38219 | # Shared library runtime path variable. |
| 38220 | runpath_var=$runpath_var |
| 38221 | |
| 38222 | # Shared library path variable. |
| 38223 | shlibpath_var=$shlibpath_var |
| 38224 | |
| 38225 | # Is shlibpath searched before the hard-coded library search path? |
| 38226 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 38227 | |
| 38228 | # Format of library name prefix. |
| 38229 | libname_spec=$lt_libname_spec |
| 38230 | |
| 38231 | # List of archive names. First name is the real one, the rest are links. |
| 38232 | # The last name is the one that the linker finds with -lNAME |
| 38233 | library_names_spec=$lt_library_names_spec |
| 38234 | |
| 38235 | # The coded name of the library, if different from the real name. |
| 38236 | soname_spec=$lt_soname_spec |
| 38237 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38238 | # Permission mode override for installation of shared libraries. |
| 38239 | install_override_mode=$lt_install_override_mode |
| 38240 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38241 | # Command to use after installation of a shared archive. |
| 38242 | postinstall_cmds=$lt_postinstall_cmds |
| 38243 | |
| 38244 | # Command to use after uninstallation of a shared archive. |
| 38245 | postuninstall_cmds=$lt_postuninstall_cmds |
| 38246 | |
| 38247 | # Commands used to finish a libtool library installation in a directory. |
| 38248 | finish_cmds=$lt_finish_cmds |
| 38249 | |
| 38250 | # As "finish_cmds", except a single script fragment to be evaled but |
| 38251 | # not shown. |
| 38252 | finish_eval=$lt_finish_eval |
| 38253 | |
| 38254 | # Whether we should hardcode library paths into libraries. |
| 38255 | hardcode_into_libs=$hardcode_into_libs |
| 38256 | |
| 38257 | # Compile-time system search path for libraries. |
| 38258 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 38259 | |
| 38260 | # Run-time system search path for libraries. |
| 38261 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 38262 | |
| 38263 | # Whether dlopen is supported. |
| 38264 | dlopen_support=$enable_dlopen |
| 38265 | |
| 38266 | # Whether dlopen of programs is supported. |
| 38267 | dlopen_self=$enable_dlopen_self |
| 38268 | |
| 38269 | # Whether dlopen of statically linked programs is supported. |
| 38270 | dlopen_self_static=$enable_dlopen_self_static |
| 38271 | |
| 38272 | # Commands to strip libraries. |
| 38273 | old_striplib=$lt_old_striplib |
| 38274 | striplib=$lt_striplib |
| 38275 | |
| 38276 | |
| 38277 | # The linker used to build libraries. |
| 38278 | LD=$lt_LD |
| 38279 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38280 | # How to create reloadable object files. |
| 38281 | reload_flag=$lt_reload_flag |
| 38282 | reload_cmds=$lt_reload_cmds |
| 38283 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38284 | # Commands used to build an old-style archive. |
| 38285 | old_archive_cmds=$lt_old_archive_cmds |
| 38286 | |
| 38287 | # A language specific compiler. |
| 38288 | CC=$lt_compiler |
| 38289 | |
| 38290 | # Is the compiler the GNU compiler? |
| 38291 | with_gcc=$GCC |
| 38292 | |
| 38293 | # Compiler flag to turn off builtin functions. |
| 38294 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 38295 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38296 | # Additional compiler flags for building library objects. |
| 38297 | pic_flag=$lt_lt_prog_compiler_pic |
| 38298 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38299 | # How to pass a linker flag through the compiler. |
| 38300 | wl=$lt_lt_prog_compiler_wl |
| 38301 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38302 | # Compiler flag to prevent dynamic linking. |
| 38303 | link_static_flag=$lt_lt_prog_compiler_static |
| 38304 | |
| 38305 | # Does compiler simultaneously support -c and -o options? |
| 38306 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 38307 | |
| 38308 | # Whether or not to add -lc for building shared libraries. |
| 38309 | build_libtool_need_lc=$archive_cmds_need_lc |
| 38310 | |
| 38311 | # Whether or not to disallow shared libs when runtime libs are static. |
| 38312 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 38313 | |
| 38314 | # Compiler flag to allow reflexive dlopens. |
| 38315 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 38316 | |
| 38317 | # Compiler flag to generate shared objects directly from archives. |
| 38318 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 38319 | |
| 38320 | # Whether the compiler copes with passing no objects directly. |
| 38321 | compiler_needs_object=$lt_compiler_needs_object |
| 38322 | |
| 38323 | # Create an old-style archive from a shared archive. |
| 38324 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 38325 | |
| 38326 | # Create a temporary old-style archive to link instead of a shared archive. |
| 38327 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 38328 | |
| 38329 | # Commands used to build a shared archive. |
| 38330 | archive_cmds=$lt_archive_cmds |
| 38331 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 38332 | |
| 38333 | # Commands used to build a loadable module if different from building |
| 38334 | # a shared archive. |
| 38335 | module_cmds=$lt_module_cmds |
| 38336 | module_expsym_cmds=$lt_module_expsym_cmds |
| 38337 | |
| 38338 | # Whether we are building with GNU ld or not. |
| 38339 | with_gnu_ld=$lt_with_gnu_ld |
| 38340 | |
| 38341 | # Flag that allows shared libraries with undefined symbols to be built. |
| 38342 | allow_undefined_flag=$lt_allow_undefined_flag |
| 38343 | |
| 38344 | # Flag that enforces no undefined symbols. |
| 38345 | no_undefined_flag=$lt_no_undefined_flag |
| 38346 | |
| 38347 | # Flag to hardcode \$libdir into a binary during linking. |
| 38348 | # This must work even if \$libdir does not exist |
| 38349 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 38350 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38351 | # Whether we need a single "-rpath" flag with a separated argument. |
| 38352 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 38353 | |
| 38354 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 38355 | # DIR into the resulting binary. |
| 38356 | hardcode_direct=$hardcode_direct |
| 38357 | |
| 38358 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 38359 | # DIR into the resulting binary and the resulting library dependency is |
| 38360 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 38361 | # library is relocated. |
| 38362 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 38363 | |
| 38364 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 38365 | # into the resulting binary. |
| 38366 | hardcode_minus_L=$hardcode_minus_L |
| 38367 | |
| 38368 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 38369 | # into the resulting binary. |
| 38370 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 38371 | |
| 38372 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 38373 | # into the library and all subsequent libraries and executables linked |
| 38374 | # against it. |
| 38375 | hardcode_automatic=$hardcode_automatic |
| 38376 | |
| 38377 | # Set to yes if linker adds runtime paths of dependent libraries |
| 38378 | # to runtime path list. |
| 38379 | inherit_rpath=$inherit_rpath |
| 38380 | |
| 38381 | # Whether libtool must link a program against all its dependency libraries. |
| 38382 | link_all_deplibs=$link_all_deplibs |
| 38383 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38384 | # Set to "yes" if exported symbols are required. |
| 38385 | always_export_symbols=$always_export_symbols |
| 38386 | |
| 38387 | # The commands to list exported symbols. |
| 38388 | export_symbols_cmds=$lt_export_symbols_cmds |
| 38389 | |
| 38390 | # Symbols that should not be listed in the preloaded symbols. |
| 38391 | exclude_expsyms=$lt_exclude_expsyms |
| 38392 | |
| 38393 | # Symbols that must always be exported. |
| 38394 | include_expsyms=$lt_include_expsyms |
| 38395 | |
| 38396 | # Commands necessary for linking programs (against libraries) with templates. |
| 38397 | prelink_cmds=$lt_prelink_cmds |
| 38398 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38399 | # Commands necessary for finishing linking programs. |
| 38400 | postlink_cmds=$lt_postlink_cmds |
| 38401 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38402 | # Specify filename containing input files. |
| 38403 | file_list_spec=$lt_file_list_spec |
| 38404 | |
| 38405 | # How to hardcode a shared library path into an executable. |
| 38406 | hardcode_action=$hardcode_action |
| 38407 | |
| 38408 | # The directories searched by this compiler when creating a shared library. |
| 38409 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 38410 | |
| 38411 | # Dependencies to place before and after the objects being linked to |
| 38412 | # create a shared library. |
| 38413 | predep_objects=$lt_predep_objects |
| 38414 | postdep_objects=$lt_postdep_objects |
| 38415 | predeps=$lt_predeps |
| 38416 | postdeps=$lt_postdeps |
| 38417 | |
| 38418 | # The library search path used internally by the compiler when linking |
| 38419 | # a shared library. |
| 38420 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 38421 | |
| 38422 | # ### END LIBTOOL CONFIG |
| 38423 | |
| 38424 | _LT_EOF |
| 38425 | |
| 38426 | case $host_os in |
| 38427 | aix3*) |
| 38428 | cat <<\_LT_EOF >> "$cfgfile" |
| 38429 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 38430 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 38431 | # vanish in a puff of smoke. |
| 38432 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 38433 | COLLECT_NAMES= |
| 38434 | export COLLECT_NAMES |
| 38435 | fi |
| 38436 | _LT_EOF |
| 38437 | ;; |
| 38438 | esac |
| 38439 | |
| 38440 | |
| 38441 | ltmain="$ac_aux_dir/ltmain.sh" |
| 38442 | |
| 38443 | |
| 38444 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 38445 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 38446 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 38447 | # is reportedly fixed, but why not run on old versions too? |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38448 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 38449 | || (rm -f "$cfgfile"; exit 1) |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38450 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38451 | if test x"$xsi_shell" = xyes; then |
| 38452 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 38453 | func_dirname ()\ |
| 38454 | {\ |
| 38455 | \ case ${1} in\ |
| 38456 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 38457 | \ * ) func_dirname_result="${3}" ;;\ |
| 38458 | \ esac\ |
| 38459 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38460 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38461 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38462 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38463 | |
| 38464 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38465 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 38466 | func_basename ()\ |
| 38467 | {\ |
| 38468 | \ func_basename_result="${1##*/}"\ |
| 38469 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38470 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38471 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38472 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38473 | |
| 38474 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38475 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 38476 | func_dirname_and_basename ()\ |
| 38477 | {\ |
| 38478 | \ case ${1} in\ |
| 38479 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 38480 | \ * ) func_dirname_result="${3}" ;;\ |
| 38481 | \ esac\ |
| 38482 | \ func_basename_result="${1##*/}"\ |
| 38483 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38484 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38485 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38486 | test 0 -eq $? || _lt_function_replace_fail=: |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38487 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38488 | |
| 38489 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 38490 | func_stripname ()\ |
| 38491 | {\ |
| 38492 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 38493 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 38494 | \ func_stripname_result=${3}\ |
| 38495 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 38496 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 38497 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38498 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38499 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38500 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38501 | |
| 38502 | |
| 38503 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 38504 | func_split_long_opt ()\ |
| 38505 | {\ |
| 38506 | \ func_split_long_opt_name=${1%%=*}\ |
| 38507 | \ func_split_long_opt_arg=${1#*=}\ |
| 38508 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38509 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38510 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38511 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38512 | |
| 38513 | |
| 38514 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 38515 | func_split_short_opt ()\ |
| 38516 | {\ |
| 38517 | \ func_split_short_opt_arg=${1#??}\ |
| 38518 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 38519 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38520 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38521 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38522 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38523 | |
| 38524 | |
| 38525 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 38526 | func_lo2o ()\ |
| 38527 | {\ |
| 38528 | \ case ${1} in\ |
| 38529 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 38530 | \ *) func_lo2o_result=${1} ;;\ |
| 38531 | \ esac\ |
| 38532 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38533 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38534 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38535 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38536 | |
| 38537 | |
| 38538 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 38539 | func_xform ()\ |
| 38540 | {\ |
| 38541 | func_xform_result=${1%.*}.lo\ |
| 38542 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38543 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38544 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38545 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38546 | |
| 38547 | |
| 38548 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 38549 | func_arith ()\ |
| 38550 | {\ |
| 38551 | func_arith_result=$(( $* ))\ |
| 38552 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38553 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38554 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38555 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38556 | |
| 38557 | |
| 38558 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 38559 | func_len ()\ |
| 38560 | {\ |
| 38561 | func_len_result=${#1}\ |
| 38562 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38563 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38564 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38565 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38566 | |
| 38567 | fi |
| 38568 | |
| 38569 | if test x"$lt_shell_append" = xyes; then |
| 38570 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 38571 | func_append ()\ |
| 38572 | {\ |
| 38573 | eval "${1}+=\\${2}"\ |
| 38574 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38575 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38576 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38577 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38578 | |
| 38579 | |
| 38580 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 38581 | func_append_quoted ()\ |
| 38582 | {\ |
| 38583 | \ func_quote_for_eval "${2}"\ |
| 38584 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 38585 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 38586 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38587 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38588 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38589 | |
| 38590 | |
| 38591 | # Save a `func_append' function call where possible by direct use of '+=' |
| 38592 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 38593 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38594 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38595 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38596 | else |
| 38597 | # Save a `func_append' function call even when '+=' is not available |
| 38598 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 38599 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 38600 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 38601 | test 0 -eq $? || _lt_function_replace_fail=: |
| 38602 | fi |
| 38603 | |
| 38604 | if test x"$_lt_function_replace_fail" = x":"; then |
| 38605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 38606 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 38607 | fi |
| 38608 | |
| 38609 | |
| 38610 | mv -f "$cfgfile" "$ofile" || |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38611 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 38612 | chmod +x "$ofile" |
| 38613 | |
| 38614 | |
| 38615 | cat <<_LT_EOF >> "$ofile" |
| 38616 | |
| 38617 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 38618 | |
| 38619 | # The linker used to build libraries. |
| 38620 | LD=$lt_LD_CXX |
| 38621 | |
| cristy | 0c60a69 | 2010-11-04 01:09:47 +0000 | [diff] [blame] | 38622 | # How to create reloadable object files. |
| 38623 | reload_flag=$lt_reload_flag_CXX |
| 38624 | reload_cmds=$lt_reload_cmds_CXX |
| 38625 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38626 | # Commands used to build an old-style archive. |
| 38627 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 38628 | |
| 38629 | # A language specific compiler. |
| 38630 | CC=$lt_compiler_CXX |
| 38631 | |
| 38632 | # Is the compiler the GNU compiler? |
| 38633 | with_gcc=$GCC_CXX |
| 38634 | |
| 38635 | # Compiler flag to turn off builtin functions. |
| 38636 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 38637 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38638 | # Additional compiler flags for building library objects. |
| 38639 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 38640 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38641 | # How to pass a linker flag through the compiler. |
| 38642 | wl=$lt_lt_prog_compiler_wl_CXX |
| 38643 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38644 | # Compiler flag to prevent dynamic linking. |
| 38645 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 38646 | |
| 38647 | # Does compiler simultaneously support -c and -o options? |
| 38648 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 38649 | |
| 38650 | # Whether or not to add -lc for building shared libraries. |
| 38651 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 38652 | |
| 38653 | # Whether or not to disallow shared libs when runtime libs are static. |
| 38654 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 38655 | |
| 38656 | # Compiler flag to allow reflexive dlopens. |
| 38657 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 38658 | |
| 38659 | # Compiler flag to generate shared objects directly from archives. |
| 38660 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 38661 | |
| 38662 | # Whether the compiler copes with passing no objects directly. |
| 38663 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 38664 | |
| 38665 | # Create an old-style archive from a shared archive. |
| 38666 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 38667 | |
| 38668 | # Create a temporary old-style archive to link instead of a shared archive. |
| 38669 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 38670 | |
| 38671 | # Commands used to build a shared archive. |
| 38672 | archive_cmds=$lt_archive_cmds_CXX |
| 38673 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 38674 | |
| 38675 | # Commands used to build a loadable module if different from building |
| 38676 | # a shared archive. |
| 38677 | module_cmds=$lt_module_cmds_CXX |
| 38678 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 38679 | |
| 38680 | # Whether we are building with GNU ld or not. |
| 38681 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 38682 | |
| 38683 | # Flag that allows shared libraries with undefined symbols to be built. |
| 38684 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 38685 | |
| 38686 | # Flag that enforces no undefined symbols. |
| 38687 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 38688 | |
| 38689 | # Flag to hardcode \$libdir into a binary during linking. |
| 38690 | # This must work even if \$libdir does not exist |
| 38691 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 38692 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38693 | # Whether we need a single "-rpath" flag with a separated argument. |
| 38694 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 38695 | |
| 38696 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 38697 | # DIR into the resulting binary. |
| 38698 | hardcode_direct=$hardcode_direct_CXX |
| 38699 | |
| 38700 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 38701 | # DIR into the resulting binary and the resulting library dependency is |
| 38702 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 38703 | # library is relocated. |
| 38704 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 38705 | |
| 38706 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 38707 | # into the resulting binary. |
| 38708 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 38709 | |
| 38710 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 38711 | # into the resulting binary. |
| 38712 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 38713 | |
| 38714 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 38715 | # into the library and all subsequent libraries and executables linked |
| 38716 | # against it. |
| 38717 | hardcode_automatic=$hardcode_automatic_CXX |
| 38718 | |
| 38719 | # Set to yes if linker adds runtime paths of dependent libraries |
| 38720 | # to runtime path list. |
| 38721 | inherit_rpath=$inherit_rpath_CXX |
| 38722 | |
| 38723 | # Whether libtool must link a program against all its dependency libraries. |
| 38724 | link_all_deplibs=$link_all_deplibs_CXX |
| 38725 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38726 | # Set to "yes" if exported symbols are required. |
| 38727 | always_export_symbols=$always_export_symbols_CXX |
| 38728 | |
| 38729 | # The commands to list exported symbols. |
| 38730 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 38731 | |
| 38732 | # Symbols that should not be listed in the preloaded symbols. |
| 38733 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 38734 | |
| 38735 | # Symbols that must always be exported. |
| 38736 | include_expsyms=$lt_include_expsyms_CXX |
| 38737 | |
| 38738 | # Commands necessary for linking programs (against libraries) with templates. |
| 38739 | prelink_cmds=$lt_prelink_cmds_CXX |
| 38740 | |
| cristy | da16f16 | 2011-02-19 23:52:17 +0000 | [diff] [blame] | 38741 | # Commands necessary for finishing linking programs. |
| 38742 | postlink_cmds=$lt_postlink_cmds_CXX |
| 38743 | |
| cristy | 73bd4a5 | 2010-10-05 11:24:23 +0000 | [diff] [blame] | 38744 | # Specify filename containing input files. |
| 38745 | file_list_spec=$lt_file_list_spec_CXX |
| 38746 | |
| 38747 | # How to hardcode a shared library path into an executable. |
| 38748 | hardcode_action=$hardcode_action_CXX |
| 38749 | |
| 38750 | # The directories searched by this compiler when creating a shared library. |
| 38751 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 38752 | |
| 38753 | # Dependencies to place before and after the objects being linked to |
| 38754 | # create a shared library. |
| 38755 | predep_objects=$lt_predep_objects_CXX |
| 38756 | postdep_objects=$lt_postdep_objects_CXX |
| 38757 | predeps=$lt_predeps_CXX |
| 38758 | postdeps=$lt_postdeps_CXX |
| 38759 | |
| 38760 | # The library search path used internally by the compiler when linking |
| 38761 | # a shared library. |
| 38762 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 38763 | |
| 38764 | # ### END LIBTOOL TAG CONFIG: CXX |
| 38765 | _LT_EOF |
| 38766 | |
| 38767 | ;; |
| cristy | 2bd4b6e | 2012-07-22 15:29:11 +0000 | [diff] [blame] | 38768 | "magick.sh.in":C) chmod +x magick.sh ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 38769 | "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;; |
| cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 38770 | "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38771 | "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;; |
| 38772 | "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;; |
| 38773 | |
| 38774 | esac |
| 38775 | done # for ac_tag |
| 38776 | |
| 38777 | |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 38778 | as_fn_exit 0 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38779 | _ACEOF |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38780 | ac_clean_files=$ac_clean_files_save |
| 38781 | |
| 38782 | test $ac_write_fail = 0 || |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 38783 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38784 | |
| 38785 | |
| 38786 | # configure is writing to config.log, and then calls config.status. |
| 38787 | # config.status does its own redirection, appending to config.log. |
| 38788 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 38789 | # by configure, so config.status won't be able to write to it; its |
| 38790 | # output is simply discarded. So we exec the FD to /dev/null, |
| 38791 | # effectively closing config.log, so it can be properly (re)opened and |
| 38792 | # appended to by config.status. When coming back to configure, we |
| 38793 | # need to make the FD available again. |
| 38794 | if test "$no_create" != yes; then |
| 38795 | ac_cs_success=: |
| 38796 | ac_config_status_args= |
| 38797 | test "$silent" = yes && |
| 38798 | ac_config_status_args="$ac_config_status_args --quiet" |
| 38799 | exec 5>/dev/null |
| 38800 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 38801 | exec 5>>config.log |
| 38802 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 38803 | # would make configure fail if this is the last instruction. |
| cristy | 98dddb5 | 2010-11-04 00:30:15 +0000 | [diff] [blame] | 38804 | $ac_cs_success || as_fn_exit 1 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38805 | fi |
| 38806 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| cristy | 8b350f6 | 2009-11-15 23:12:43 +0000 | [diff] [blame] | 38807 | { $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] | 38808 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 38809 | fi |
| 38810 | |
| 38811 | |
| 38812 | rm -f magick-version |
| 38813 | |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38814 | result_dejavu_font_dir='none' |
| 38815 | if test "${dejavu_font_dir}x" != 'x'; then |
| 38816 | result_dejavu_font_dir=$dejavu_font_dir |
| 38817 | fi |
| 38818 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38819 | result_ghostscript_font_dir='none' |
| 38820 | if test "${ghostscript_font_dir}x" != 'x'; then |
| 38821 | result_ghostscript_font_dir=$ghostscript_font_dir |
| 38822 | fi |
| 38823 | |
| 38824 | result_windows_font_dir='none' |
| 38825 | if test "${windows_font_dir}x" != 'x'; then |
| 38826 | result_windows_font_dir=${windows_font_dir} |
| 38827 | fi |
| 38828 | |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 38829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38830 | ImageMagick is configured as follows. Please verify that this configuration |
| 38831 | matches your expectations. |
| 38832 | |
| 38833 | Host system type: $host |
| 38834 | Build system type: $build |
| 38835 | |
| 38836 | Option Value |
| 38837 | ------------------------------------------------------------------------------- |
| 38838 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 38839 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 38840 | Module support --with-modules=$build_modules $build_modules |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38841 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 38842 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 38843 | High Dynamic Range Imagery |
| 38844 | --enable-hdri=$enable_hdri $enable_hdri |
| 38845 | |
| 38846 | Delegate Configuration: |
| 38847 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 38848 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38849 | 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] | 38850 | DJVU --with-djvu=$with_djvu $have_djvu |
| 38851 | DPS --with-dps=$with_dps $have_dps |
| 38852 | FFTW --with-fftw=$with_fftw $have_fftw |
| 38853 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 38854 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 38855 | FreeType --with-freetype=$with_freetype $have_freetype |
| 38856 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 38857 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 38858 | Ghostscript None $PSDelegate ($GSVersion) |
| 38859 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 38860 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 38861 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 38862 | JBIG --with-jbig=$with_jbig $have_jbig |
| 38863 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 38864 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 38865 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 38866 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38867 | LQR --with-lqr=$with_lqr $have_lqr |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 38868 | LTDL --with-ltdl=$with_ltdl $have_ltdl |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 38869 | LZMA --with-lzma=$with_lzma $have_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38870 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 38871 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 38872 | PANGO --with-pango=$with_pango $have_pango |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38873 | PERL --with-perl=$with_perl $have_perl |
| 38874 | PNG --with-png=$with_png $have_png |
| 38875 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 38876 | TIFF --with-tiff=$with_tiff $have_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 38877 | WEBP --with-webp=$with_webp $have_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38878 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 38879 | WMF --with-wmf=$with_wmf $have_wmf |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38880 | X11 --with-x=$with_x $have_x |
| 38881 | XML --with-xml=$with_xml $have_xml |
| 38882 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 38883 | |
| 38884 | X11 Configuration: |
| 38885 | X_CFLAGS = $X_CFLAGS |
| 38886 | X_PRE_LIBS = $X_PRE_LIBS |
| 38887 | X_LIBS = $X_LIBS |
| 38888 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 38889 | |
| 38890 | Options used to compile and link: |
| 38891 | PREFIX = $PREFIX_DIR |
| 38892 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 38893 | VERSION = $PACKAGE_VERSION |
| 38894 | CC = $CC |
| 38895 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38896 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 38897 | PCFLAGS = $MAGICK_PCFLAGS |
| 38898 | DEFS = $DEFS |
| 38899 | LDFLAGS = $LDFLAGS |
| 38900 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 38901 | LIBS = $MAGICK_LIBS |
| 38902 | CXX = $CXX |
| 38903 | CXXFLAGS = $CXXFLAGS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 38904 | FEATURES = $MAGICK_FEATURES |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 38905 | DELEGATES = $MAGICK_DELEGATES |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38906 | " >&5 |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 38907 | $as_echo " |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38908 | ImageMagick is configured as follows. Please verify that this configuration |
| 38909 | matches your expectations. |
| 38910 | |
| 38911 | Host system type: $host |
| 38912 | Build system type: $build |
| 38913 | |
| 38914 | Option Value |
| 38915 | ------------------------------------------------------------------------------- |
| 38916 | Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs |
| 38917 | Static libraries --enable-static=$enable_static $libtool_build_static_libs |
| cristy | c672209 | 2012-10-14 00:19:31 +0000 | [diff] [blame] | 38918 | Module support --with-modules=$build_modules $build_modules |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38919 | GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld |
| 38920 | Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth |
| 38921 | High Dynamic Range Imagery |
| 38922 | --enable-hdri=$enable_hdri $enable_hdri |
| 38923 | |
| 38924 | Delegate Configuration: |
| 38925 | BZLIB --with-bzlib=$with_bzlib $have_bzlib |
| 38926 | Autotrace --with-autotrace=$with_autotrace $have_autotrace |
| cristy | 430a731 | 2010-01-21 20:44:04 +0000 | [diff] [blame] | 38927 | 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] | 38928 | DJVU --with-djvu=$with_djvu $have_djvu |
| 38929 | DPS --with-dps=$with_dps $have_dps |
| 38930 | FFTW --with-fftw=$with_fftw $have_fftw |
| 38931 | FlashPIX --with-fpx=$with_fpx $have_fpx |
| 38932 | FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig |
| 38933 | FreeType --with-freetype=$with_freetype $have_freetype |
| 38934 | GhostPCL None $PCLDelegate ($PCLVersion) |
| 38935 | GhostXPS None $XPSDelegate ($XPSVersion) |
| 38936 | Ghostscript None $PSDelegate ($GSVersion) |
| 38937 | Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir |
| 38938 | Ghostscript lib --with-gslib=$with_gslib $have_gslib |
| 38939 | Graphviz --with-gvc=$with_gvc $have_gvc |
| 38940 | JBIG --with-jbig=$with_jbig $have_jbig |
| 38941 | JPEG v1 --with-jpeg=$with_jpeg $have_jpeg |
| 38942 | JPEG-2000 --with-jp2=$with_jp2 $have_jp2 |
| cristy | 7120340 | 2010-06-18 13:12:03 +0000 | [diff] [blame] | 38943 | LCMS v1 --with-lcms=$with_lcms $have_lcms |
| 38944 | LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2 |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38945 | LQR --with-lqr=$with_lqr $have_lqr |
| cristy | 5eef09f | 2012-10-16 12:08:28 +0000 | [diff] [blame] | 38946 | LTDL --with-ltdl=$with_ltdl $have_ltdl |
| cristy | fbb0ef0 | 2010-12-19 02:32:11 +0000 | [diff] [blame] | 38947 | LZMA --with-lzma=$with_lzma $have_lzma |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38948 | Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus |
| 38949 | OpenEXR --with-openexr=$with_openexr $have_openexr |
| cristy | 41cbe8a | 2011-10-27 01:35:18 +0000 | [diff] [blame] | 38950 | PANGO --with-pango=$with_pango $have_pango |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38951 | PERL --with-perl=$with_perl $have_perl |
| 38952 | PNG --with-png=$with_png $have_png |
| 38953 | RSVG --with-rsvg=$with_rsvg $have_rsvg |
| 38954 | TIFF --with-tiff=$with_tiff $have_tiff |
| cristy | b186075 | 2011-03-14 00:27:46 +0000 | [diff] [blame] | 38955 | WEBP --with-webp=$with_webp $have_webp |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38956 | Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir |
| cristy | 01ff9f3 | 2012-12-01 18:15:29 +0000 | [diff] [blame] | 38957 | WMF --with-wmf=$with_wmf $have_wmf |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38958 | X11 --with-x=$with_x $have_x |
| 38959 | XML --with-xml=$with_xml $have_xml |
| 38960 | ZLIB --with-zlib=$with_zlib $have_zlib |
| 38961 | |
| 38962 | X11 Configuration: |
| 38963 | X_CFLAGS = $X_CFLAGS |
| 38964 | X_PRE_LIBS = $X_PRE_LIBS |
| 38965 | X_LIBS = $X_LIBS |
| 38966 | X_EXTRA_LIBS = $X_EXTRA_LIBS |
| 38967 | |
| 38968 | Options used to compile and link: |
| 38969 | PREFIX = $PREFIX_DIR |
| 38970 | EXEC-PREFIX = $EXEC_PREFIX_DIR |
| 38971 | VERSION = $PACKAGE_VERSION |
| 38972 | CC = $CC |
| 38973 | CFLAGS = $CFLAGS |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38974 | CPPFLAGS = $MAGICK_CPPFLAGS |
| 38975 | PCFLAGS = $MAGICK_PCFLAGS |
| 38976 | DEFS = $DEFS |
| 38977 | LDFLAGS = $LDFLAGS |
| 38978 | MAGICK_LDFLAGS = $MAGICK_LDFLAGS |
| 38979 | LIBS = $MAGICK_LIBS |
| 38980 | CXX = $CXX |
| 38981 | CXXFLAGS = $CXXFLAGS |
| cristy | fd9dcd4 | 2010-08-08 18:07:02 +0000 | [diff] [blame] | 38982 | FEATURES = $MAGICK_FEATURES |
| cristy | 422d550 | 2012-12-22 22:20:57 +0000 | [diff] [blame] | 38983 | DELEGATES = $MAGICK_DELEGATES |
| cristy | ad38abe | 2012-12-23 23:03:21 +0000 | [diff] [blame] | 38984 | " >&6; } |