Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for asn1c 0.9.26. |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <vlm@lionet.info>. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6 | # |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7 | # |
| 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
| 9 | # |
| 10 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 16 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 32 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 33 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 34 | |
| 35 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [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 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [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 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [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; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 60 | case $arg in #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [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 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 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 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 81 | fi |
| 82 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +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.) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 92 | as_myself= |
| 93 | case $0 in #(( |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 94 | *[\\/]* ) as_myself=$0 ;; |
| 95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 96 | for as_dir in $PATH |
| 97 | do |
| 98 | IFS=$as_save_IFS |
| 99 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 101 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 102 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 103 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 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 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 113 | exit 1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 114 | fi |
| 115 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [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 || : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 123 | done |
| 124 | PS1='$ ' |
| 125 | PS2='> ' |
| 126 | PS4='+ ' |
| 127 | |
| 128 | # NLS nuisances. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 129 | LC_ALL=C |
| 130 | export LC_ALL |
| 131 | LANGUAGE=C |
| 132 | export LANGUAGE |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 133 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 134 | # CDPATH. |
| 135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 136 | |
| 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;} |
| 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 |
| 195 | test x\$exitcode = x0 || exit 1 |
| 196 | test -x / || exit 1" |
| 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 |
| 201 | |
| 202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 206 | PATH=/empty FPATH=/empty; export PATH FPATH |
| 207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
| 209 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 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 : |
| 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 |
| 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 vlm@lionet.info |
| 278 | $0: about your system, including any error possibly output |
| 279 | $0: before this message. Then install a modern shell, or |
| 280 | $0: manually run the script under such a shell if you do |
| 281 | $0: 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" |
| 366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 367 | |
| 368 | |
| 369 | } # as_fn_mkdir_p |
| 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 |
| 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 | |
| 414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 415 | # ---------------------------------------- |
| 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 |
| 418 | # script with STATUS, using 1 if that was 0. |
| 419 | as_fn_error () |
| 420 | { |
| 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 |
| 425 | fi |
| 426 | $as_echo "$as_me: error: $2" >&2 |
| 427 | as_fn_exit $as_status |
| 428 | } # as_fn_error |
| 429 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +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 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [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 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 448 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +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 || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 453 | $as_echo X/"$0" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 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 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [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 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 474 | |
| 475 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [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. :-) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 481 | sed -n ' |
| 482 | p |
| 483 | /[$]LINENO/= |
| 484 | ' <$as_myself | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 485 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 486 | s/[$]LINENO.*/&-/ |
| 487 | t lineno |
| 488 | b |
| 489 | :lineno |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 490 | N |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 491 | :loop |
| 492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 493 | t loop |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 494 | s/-\n.*// |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 495 | ' >$as_me.lineno && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 496 | chmod +x "$as_me.lineno" || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 498 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [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 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +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 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 505 | # original and so on. Autoconf is especially sensitive to this). |
| 506 | . "./$as_me.lineno" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 507 | # Exit status is that of the last command. |
| 508 | exit |
| 509 | } |
| 510 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 511 | ECHO_C= ECHO_N= ECHO_T= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 512 | case `echo -n x` in #((((( |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 513 | -n*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 514 | case `echo 'xy\c'` in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 516 | xy) ECHO_C='\c';; |
| 517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 518 | ECHO_T=' ';; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 519 | esac;; |
| 520 | *) |
| 521 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 522 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 523 | |
| 524 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 525 | if test -d conf$$.dir; then |
| 526 | rm -f conf$$.dir/conf$$.file |
| 527 | else |
| 528 | rm -f conf$$.dir |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 529 | mkdir conf$$.dir 2>/dev/null |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 530 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 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. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 537 | # In both cases, we have to default to `cp -pR'. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 539 | as_ln_s='cp -pR' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 540 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 541 | as_ln_s=ln |
| 542 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 543 | as_ln_s='cp -pR' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 544 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 545 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 546 | as_ln_s='cp -pR' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 547 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 549 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 550 | |
| 551 | if mkdir -p . 2>/dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 552 | as_mkdir_p='mkdir -p "$as_dir"' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 553 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 554 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 555 | as_mkdir_p=false |
| 556 | fi |
| 557 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 558 | as_test_x='test -x' |
| 559 | as_executable_p=as_fn_executable_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 560 | |
| 561 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 563 | |
| 564 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 566 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 568 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 569 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 571 | exec 6>&1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 572 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 573 | # Name of the host. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 575 | # so uname gets run too. |
| 576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 577 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 578 | # |
| 579 | # Initializations. |
| 580 | # |
| 581 | ac_default_prefix=/usr/local |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 582 | ac_clean_files= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 583 | ac_config_libobj_dir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 584 | LIBOBJS= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 585 | cross_compiling=no |
| 586 | subdirs= |
| 587 | MFLAGS= |
| 588 | MAKEFLAGS= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 589 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 590 | # Identity of this package. |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 591 | PACKAGE_NAME='asn1c' |
| 592 | PACKAGE_TARNAME='asn1c' |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 593 | PACKAGE_VERSION='0.9.26' |
| 594 | PACKAGE_STRING='asn1c 0.9.26' |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 595 | PACKAGE_BUGREPORT='vlm@lionet.info' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 596 | PACKAGE_URL='' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 597 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 598 | # Factoring default headers for most tests. |
| 599 | ac_includes_default="\ |
| 600 | #include <stdio.h> |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 601 | #ifdef HAVE_SYS_TYPES_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 602 | # include <sys/types.h> |
| 603 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 604 | #ifdef HAVE_SYS_STAT_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 605 | # include <sys/stat.h> |
| 606 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 607 | #ifdef STDC_HEADERS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 608 | # include <stdlib.h> |
| 609 | # include <stddef.h> |
| 610 | #else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 611 | # ifdef HAVE_STDLIB_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 612 | # include <stdlib.h> |
| 613 | # endif |
| 614 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 615 | #ifdef HAVE_STRING_H |
| 616 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 617 | # include <memory.h> |
| 618 | # endif |
| 619 | # include <string.h> |
| 620 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 621 | #ifdef HAVE_STRINGS_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 622 | # include <strings.h> |
| 623 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 624 | #ifdef HAVE_INTTYPES_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 625 | # include <inttypes.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 626 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 627 | #ifdef HAVE_STDINT_H |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 628 | # include <stdint.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 629 | #endif |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 630 | #ifdef HAVE_UNISTD_H |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 631 | # include <unistd.h> |
| 632 | #endif" |
| 633 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 634 | ac_subst_vars='am__EXEEXT_FALSE |
| 635 | am__EXEEXT_TRUE |
| 636 | LTLIBOBJS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 637 | LIBOBJS |
Lev Walkin | b40ec41 | 2014-02-24 00:57:18 -0800 | [diff] [blame] | 638 | TEST_64BIT_FALSE |
| 639 | TEST_64BIT_TRUE |
Lev Walkin | f84cc01 | 2014-01-14 02:12:24 -0800 | [diff] [blame] | 640 | TESTSUITE_CFLAGS |
Lev Walkin | ea55215 | 2014-01-14 02:15:13 -0800 | [diff] [blame] | 641 | ADD_CFLAGS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 642 | LEXLIB |
| 643 | LEX_OUTPUT_ROOT |
| 644 | LEX |
| 645 | YFLAGS |
| 646 | YACC |
| 647 | CPP |
| 648 | OTOOL64 |
| 649 | OTOOL |
| 650 | LIPO |
| 651 | NMEDIT |
| 652 | DSYMUTIL |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 653 | MANIFEST_TOOL |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 654 | RANLIB |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 655 | ac_ct_AR |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 656 | AR |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 657 | DLLTOOL |
| 658 | OBJDUMP |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 659 | LN_S |
| 660 | NM |
| 661 | ac_ct_DUMPBIN |
| 662 | DUMPBIN |
| 663 | LD |
| 664 | FGREP |
| 665 | EGREP |
| 666 | GREP |
| 667 | SED |
| 668 | am__fastdepCC_FALSE |
| 669 | am__fastdepCC_TRUE |
| 670 | CCDEPMODE |
| 671 | AMDEPBACKSLASH |
| 672 | AMDEP_FALSE |
| 673 | AMDEP_TRUE |
| 674 | am__quote |
| 675 | am__include |
| 676 | DEPDIR |
| 677 | OBJEXT |
| 678 | EXEEXT |
| 679 | ac_ct_CC |
| 680 | CPPFLAGS |
| 681 | LDFLAGS |
| 682 | CFLAGS |
| 683 | CC |
| 684 | host_os |
| 685 | host_vendor |
| 686 | host_cpu |
| 687 | host |
| 688 | build_os |
| 689 | build_vendor |
| 690 | build_cpu |
| 691 | build |
| 692 | LIBTOOL |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 693 | MAINT |
| 694 | MAINTAINER_MODE_FALSE |
| 695 | MAINTAINER_MODE_TRUE |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 696 | am__untar |
| 697 | am__tar |
| 698 | AMTAR |
| 699 | am__leading_dot |
| 700 | SET_MAKE |
| 701 | AWK |
| 702 | mkdir_p |
| 703 | MKDIR_P |
| 704 | INSTALL_STRIP_PROGRAM |
| 705 | STRIP |
| 706 | install_sh |
| 707 | MAKEINFO |
| 708 | AUTOHEADER |
| 709 | AUTOMAKE |
| 710 | AUTOCONF |
| 711 | ACLOCAL |
| 712 | VERSION |
| 713 | PACKAGE |
| 714 | CYGPATH_W |
| 715 | am__isrc |
| 716 | INSTALL_DATA |
| 717 | INSTALL_SCRIPT |
| 718 | INSTALL_PROGRAM |
| 719 | target_alias |
| 720 | host_alias |
| 721 | build_alias |
| 722 | LIBS |
| 723 | ECHO_T |
| 724 | ECHO_N |
| 725 | ECHO_C |
| 726 | DEFS |
| 727 | mandir |
| 728 | localedir |
| 729 | libdir |
| 730 | psdir |
| 731 | pdfdir |
| 732 | dvidir |
| 733 | htmldir |
| 734 | infodir |
| 735 | docdir |
| 736 | oldincludedir |
| 737 | includedir |
| 738 | localstatedir |
| 739 | sharedstatedir |
| 740 | sysconfdir |
| 741 | datadir |
| 742 | datarootdir |
| 743 | libexecdir |
| 744 | sbindir |
| 745 | bindir |
| 746 | program_transform_name |
| 747 | prefix |
| 748 | exec_prefix |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 749 | PACKAGE_URL |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 750 | PACKAGE_BUGREPORT |
| 751 | PACKAGE_STRING |
| 752 | PACKAGE_VERSION |
| 753 | PACKAGE_TARNAME |
| 754 | PACKAGE_NAME |
| 755 | PATH_SEPARATOR |
| 756 | SHELL' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 757 | ac_subst_files='' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 758 | ac_user_opts=' |
| 759 | enable_option_checking |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 760 | enable_maintainer_mode |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 761 | enable_shared |
| 762 | enable_static |
| 763 | with_pic |
| 764 | enable_fast_install |
| 765 | enable_dependency_tracking |
| 766 | with_gnu_ld |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 767 | with_sysroot |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 768 | enable_libtool_lock |
| 769 | enable_Werror |
| 770 | ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 771 | ac_precious_vars='build_alias |
| 772 | host_alias |
| 773 | target_alias |
| 774 | CC |
| 775 | CFLAGS |
| 776 | LDFLAGS |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 777 | LIBS |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 778 | CPPFLAGS |
| 779 | CPP |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 780 | YACC |
| 781 | YFLAGS' |
| 782 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 783 | |
| 784 | # Initialize some variables set by options. |
| 785 | ac_init_help= |
| 786 | ac_init_version=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 787 | ac_unrecognized_opts= |
| 788 | ac_unrecognized_sep= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 789 | # The variables have the same names as the options, with |
| 790 | # dashes changed to underlines. |
| 791 | cache_file=/dev/null |
| 792 | exec_prefix=NONE |
| 793 | no_create= |
| 794 | no_recursion= |
| 795 | prefix=NONE |
| 796 | program_prefix=NONE |
| 797 | program_suffix=NONE |
| 798 | program_transform_name=s,x,x, |
| 799 | silent= |
| 800 | site= |
| 801 | srcdir= |
| 802 | verbose= |
| 803 | x_includes=NONE |
| 804 | x_libraries=NONE |
| 805 | |
| 806 | # Installation directory options. |
| 807 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 808 | # and all the variables that are supposed to be based on exec_prefix |
| 809 | # by default will actually change. |
| 810 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 811 | # (The list follows the same order as the GNU Coding Standards.) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 812 | bindir='${exec_prefix}/bin' |
| 813 | sbindir='${exec_prefix}/sbin' |
| 814 | libexecdir='${exec_prefix}/libexec' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 815 | datarootdir='${prefix}/share' |
| 816 | datadir='${datarootdir}' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 817 | sysconfdir='${prefix}/etc' |
| 818 | sharedstatedir='${prefix}/com' |
| 819 | localstatedir='${prefix}/var' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 820 | includedir='${prefix}/include' |
| 821 | oldincludedir='/usr/include' |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 822 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 823 | infodir='${datarootdir}/info' |
| 824 | htmldir='${docdir}' |
| 825 | dvidir='${docdir}' |
| 826 | pdfdir='${docdir}' |
| 827 | psdir='${docdir}' |
| 828 | libdir='${exec_prefix}/lib' |
| 829 | localedir='${datarootdir}/locale' |
| 830 | mandir='${datarootdir}/man' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 831 | |
| 832 | ac_prev= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 833 | ac_dashdash= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 834 | for ac_option |
| 835 | do |
| 836 | # If the previous option needs an argument, assign it. |
| 837 | if test -n "$ac_prev"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 838 | eval $ac_prev=\$ac_option |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 839 | ac_prev= |
| 840 | continue |
| 841 | fi |
| 842 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 843 | case $ac_option in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 844 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 845 | *=) ac_optarg= ;; |
| 846 | *) ac_optarg=yes ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 847 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 848 | |
| 849 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 850 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 851 | case $ac_dashdash$ac_option in |
| 852 | --) |
| 853 | ac_dashdash=yes ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 854 | |
| 855 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 856 | ac_prev=bindir ;; |
| 857 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 858 | bindir=$ac_optarg ;; |
| 859 | |
| 860 | -build | --build | --buil | --bui | --bu) |
| 861 | ac_prev=build_alias ;; |
| 862 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 863 | build_alias=$ac_optarg ;; |
| 864 | |
| 865 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 866 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 867 | ac_prev=cache_file ;; |
| 868 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 869 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 870 | cache_file=$ac_optarg ;; |
| 871 | |
| 872 | --config-cache | -C) |
| 873 | cache_file=config.cache ;; |
| 874 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 875 | -datadir | --datadir | --datadi | --datad) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 876 | ac_prev=datadir ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 877 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 878 | datadir=$ac_optarg ;; |
| 879 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 880 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 881 | | --dataroo | --dataro | --datar) |
| 882 | ac_prev=datarootdir ;; |
| 883 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 884 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 885 | datarootdir=$ac_optarg ;; |
| 886 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 887 | -disable-* | --disable-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 888 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 889 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 890 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 891 | as_fn_error $? "invalid feature name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 892 | ac_useropt_orig=$ac_useropt |
| 893 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 894 | case $ac_user_opts in |
| 895 | *" |
| 896 | "enable_$ac_useropt" |
| 897 | "*) ;; |
| 898 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 899 | ac_unrecognized_sep=', ';; |
| 900 | esac |
| 901 | eval enable_$ac_useropt=no ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 902 | |
| 903 | -docdir | --docdir | --docdi | --doc | --do) |
| 904 | ac_prev=docdir ;; |
| 905 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 906 | docdir=$ac_optarg ;; |
| 907 | |
| 908 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 909 | ac_prev=dvidir ;; |
| 910 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 911 | dvidir=$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 912 | |
| 913 | -enable-* | --enable-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 914 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 915 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 916 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 917 | as_fn_error $? "invalid feature name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 918 | ac_useropt_orig=$ac_useropt |
| 919 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 920 | case $ac_user_opts in |
| 921 | *" |
| 922 | "enable_$ac_useropt" |
| 923 | "*) ;; |
| 924 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 925 | ac_unrecognized_sep=', ';; |
| 926 | esac |
| 927 | eval enable_$ac_useropt=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 928 | |
| 929 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 930 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 931 | | --exec | --exe | --ex) |
| 932 | ac_prev=exec_prefix ;; |
| 933 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 934 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 935 | | --exec=* | --exe=* | --ex=*) |
| 936 | exec_prefix=$ac_optarg ;; |
| 937 | |
| 938 | -gas | --gas | --ga | --g) |
| 939 | # Obsolete; use --with-gas. |
| 940 | with_gas=yes ;; |
| 941 | |
| 942 | -help | --help | --hel | --he | -h) |
| 943 | ac_init_help=long ;; |
| 944 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 945 | ac_init_help=recursive ;; |
| 946 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 947 | ac_init_help=short ;; |
| 948 | |
| 949 | -host | --host | --hos | --ho) |
| 950 | ac_prev=host_alias ;; |
| 951 | -host=* | --host=* | --hos=* | --ho=*) |
| 952 | host_alias=$ac_optarg ;; |
| 953 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 954 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 955 | ac_prev=htmldir ;; |
| 956 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 957 | | --ht=*) |
| 958 | htmldir=$ac_optarg ;; |
| 959 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 960 | -includedir | --includedir | --includedi | --included | --include \ |
| 961 | | --includ | --inclu | --incl | --inc) |
| 962 | ac_prev=includedir ;; |
| 963 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 964 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 965 | includedir=$ac_optarg ;; |
| 966 | |
| 967 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 968 | ac_prev=infodir ;; |
| 969 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 970 | infodir=$ac_optarg ;; |
| 971 | |
| 972 | -libdir | --libdir | --libdi | --libd) |
| 973 | ac_prev=libdir ;; |
| 974 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 975 | libdir=$ac_optarg ;; |
| 976 | |
| 977 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 978 | | --libexe | --libex | --libe) |
| 979 | ac_prev=libexecdir ;; |
| 980 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 981 | | --libexe=* | --libex=* | --libe=*) |
| 982 | libexecdir=$ac_optarg ;; |
| 983 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 984 | -localedir | --localedir | --localedi | --localed | --locale) |
| 985 | ac_prev=localedir ;; |
| 986 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 987 | localedir=$ac_optarg ;; |
| 988 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 989 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 990 | | --localstate | --localstat | --localsta | --localst | --locals) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 991 | ac_prev=localstatedir ;; |
| 992 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 993 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 994 | localstatedir=$ac_optarg ;; |
| 995 | |
| 996 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 997 | ac_prev=mandir ;; |
| 998 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 999 | mandir=$ac_optarg ;; |
| 1000 | |
| 1001 | -nfp | --nfp | --nf) |
| 1002 | # Obsolete; use --without-fp. |
| 1003 | with_fp=no ;; |
| 1004 | |
| 1005 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1006 | | --no-cr | --no-c | -n) |
| 1007 | no_create=yes ;; |
| 1008 | |
| 1009 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1010 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1011 | no_recursion=yes ;; |
| 1012 | |
| 1013 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1014 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1015 | | --oldin | --oldi | --old | --ol | --o) |
| 1016 | ac_prev=oldincludedir ;; |
| 1017 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1018 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1019 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1020 | oldincludedir=$ac_optarg ;; |
| 1021 | |
| 1022 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1023 | ac_prev=prefix ;; |
| 1024 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1025 | prefix=$ac_optarg ;; |
| 1026 | |
| 1027 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1028 | | --program-pre | --program-pr | --program-p) |
| 1029 | ac_prev=program_prefix ;; |
| 1030 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1031 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1032 | program_prefix=$ac_optarg ;; |
| 1033 | |
| 1034 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1035 | | --program-suf | --program-su | --program-s) |
| 1036 | ac_prev=program_suffix ;; |
| 1037 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1038 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1039 | program_suffix=$ac_optarg ;; |
| 1040 | |
| 1041 | -program-transform-name | --program-transform-name \ |
| 1042 | | --program-transform-nam | --program-transform-na \ |
| 1043 | | --program-transform-n | --program-transform- \ |
| 1044 | | --program-transform | --program-transfor \ |
| 1045 | | --program-transfo | --program-transf \ |
| 1046 | | --program-trans | --program-tran \ |
| 1047 | | --progr-tra | --program-tr | --program-t) |
| 1048 | ac_prev=program_transform_name ;; |
| 1049 | -program-transform-name=* | --program-transform-name=* \ |
| 1050 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1051 | | --program-transform-n=* | --program-transform-=* \ |
| 1052 | | --program-transform=* | --program-transfor=* \ |
| 1053 | | --program-transfo=* | --program-transf=* \ |
| 1054 | | --program-trans=* | --program-tran=* \ |
| 1055 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1056 | program_transform_name=$ac_optarg ;; |
| 1057 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1058 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1059 | ac_prev=pdfdir ;; |
| 1060 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1061 | pdfdir=$ac_optarg ;; |
| 1062 | |
| 1063 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1064 | ac_prev=psdir ;; |
| 1065 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1066 | psdir=$ac_optarg ;; |
| 1067 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1069 | | -silent | --silent | --silen | --sile | --sil) |
| 1070 | silent=yes ;; |
| 1071 | |
| 1072 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1073 | ac_prev=sbindir ;; |
| 1074 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1075 | | --sbi=* | --sb=*) |
| 1076 | sbindir=$ac_optarg ;; |
| 1077 | |
| 1078 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1079 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1080 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1081 | | --sha | --sh) |
| 1082 | ac_prev=sharedstatedir ;; |
| 1083 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1084 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1085 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1086 | | --sha=* | --sh=*) |
| 1087 | sharedstatedir=$ac_optarg ;; |
| 1088 | |
| 1089 | -site | --site | --sit) |
| 1090 | ac_prev=site ;; |
| 1091 | -site=* | --site=* | --sit=*) |
| 1092 | site=$ac_optarg ;; |
| 1093 | |
| 1094 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1095 | ac_prev=srcdir ;; |
| 1096 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1097 | srcdir=$ac_optarg ;; |
| 1098 | |
| 1099 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1100 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1101 | ac_prev=sysconfdir ;; |
| 1102 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1103 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1104 | sysconfdir=$ac_optarg ;; |
| 1105 | |
| 1106 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1107 | ac_prev=target_alias ;; |
| 1108 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1109 | target_alias=$ac_optarg ;; |
| 1110 | |
| 1111 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1112 | verbose=yes ;; |
| 1113 | |
| 1114 | -version | --version | --versio | --versi | --vers | -V) |
| 1115 | ac_init_version=: ;; |
| 1116 | |
| 1117 | -with-* | --with-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1118 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1119 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1120 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1121 | as_fn_error $? "invalid package name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1122 | ac_useropt_orig=$ac_useropt |
| 1123 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1124 | case $ac_user_opts in |
| 1125 | *" |
| 1126 | "with_$ac_useropt" |
| 1127 | "*) ;; |
| 1128 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1129 | ac_unrecognized_sep=', ';; |
| 1130 | esac |
| 1131 | eval with_$ac_useropt=\$ac_optarg ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1132 | |
| 1133 | -without-* | --without-*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1134 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1135 | # Reject names that are not valid shell variable names. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1136 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1137 | as_fn_error $? "invalid package name: $ac_useropt" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1138 | ac_useropt_orig=$ac_useropt |
| 1139 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1140 | case $ac_user_opts in |
| 1141 | *" |
| 1142 | "with_$ac_useropt" |
| 1143 | "*) ;; |
| 1144 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1145 | ac_unrecognized_sep=', ';; |
| 1146 | esac |
| 1147 | eval with_$ac_useropt=no ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1148 | |
| 1149 | --x) |
| 1150 | # Obsolete; use --with-x. |
| 1151 | with_x=yes ;; |
| 1152 | |
| 1153 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1154 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1155 | ac_prev=x_includes ;; |
| 1156 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1157 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1158 | x_includes=$ac_optarg ;; |
| 1159 | |
| 1160 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1161 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1162 | ac_prev=x_libraries ;; |
| 1163 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1164 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1165 | x_libraries=$ac_optarg ;; |
| 1166 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1167 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1168 | Try \`$0 --help' for more information" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1169 | ;; |
| 1170 | |
| 1171 | *=*) |
| 1172 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1173 | # Reject names that are not valid shell variable names. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1174 | case $ac_envvar in #( |
| 1175 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1176 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1177 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1178 | eval $ac_envvar=\$ac_optarg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1179 | export $ac_envvar ;; |
| 1180 | |
| 1181 | *) |
| 1182 | # FIXME: should be removed in autoconf 3.0. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1183 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1184 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1185 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1186 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1187 | ;; |
| 1188 | |
| 1189 | esac |
| 1190 | done |
| 1191 | |
| 1192 | if test -n "$ac_prev"; then |
| 1193 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1194 | as_fn_error $? "missing argument to $ac_option" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1195 | fi |
| 1196 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1197 | if test -n "$ac_unrecognized_opts"; then |
| 1198 | case $enable_option_checking in |
| 1199 | no) ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1200 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1201 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1202 | esac |
| 1203 | fi |
| 1204 | |
| 1205 | # Check all directory arguments for consistency. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1206 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1207 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1208 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1209 | libdir localedir mandir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1210 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1211 | eval ac_val=\$$ac_var |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1212 | # Remove trailing slashes. |
| 1213 | case $ac_val in |
| 1214 | */ ) |
| 1215 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1216 | eval $ac_var=\$ac_val;; |
| 1217 | esac |
| 1218 | # Be sure to have absolute directory names. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1219 | case $ac_val in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1220 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1221 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1222 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1223 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1224 | done |
| 1225 | |
| 1226 | # There might be people who depend on the old broken behavior: `$host' |
| 1227 | # used to hold the argument of --host etc. |
| 1228 | # FIXME: To remove some day. |
| 1229 | build=$build_alias |
| 1230 | host=$host_alias |
| 1231 | target=$target_alias |
| 1232 | |
| 1233 | # FIXME: To remove some day. |
| 1234 | if test "x$host_alias" != x; then |
| 1235 | if test "x$build_alias" = x; then |
| 1236 | cross_compiling=maybe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1237 | elif test "x$build_alias" != "x$host_alias"; then |
| 1238 | cross_compiling=yes |
| 1239 | fi |
| 1240 | fi |
| 1241 | |
| 1242 | ac_tool_prefix= |
| 1243 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1244 | |
| 1245 | test "$silent" = yes && exec 6>/dev/null |
| 1246 | |
| 1247 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1248 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1249 | ac_ls_di=`ls -di .` && |
| 1250 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1251 | as_fn_error $? "working directory cannot be determined" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1252 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1253 | as_fn_error $? "pwd does not report name of working directory" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1254 | |
| 1255 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1256 | # Find the source files, if location was not specified. |
| 1257 | if test -z "$srcdir"; then |
| 1258 | ac_srcdir_defaulted=yes |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1259 | # Try the directory containing this script, then the parent directory. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1260 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1261 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1262 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1263 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1264 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1265 | $as_echo X"$as_myself" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1267 | s//\1/ |
| 1268 | q |
| 1269 | } |
| 1270 | /^X\(\/\/\)[^/].*/{ |
| 1271 | s//\1/ |
| 1272 | q |
| 1273 | } |
| 1274 | /^X\(\/\/\)$/{ |
| 1275 | s//\1/ |
| 1276 | q |
| 1277 | } |
| 1278 | /^X\(\/\).*/{ |
| 1279 | s//\1/ |
| 1280 | q |
| 1281 | } |
| 1282 | s/.*/./; q'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1283 | srcdir=$ac_confdir |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1284 | if test ! -r "$srcdir/$ac_unique_file"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1285 | srcdir=.. |
| 1286 | fi |
| 1287 | else |
| 1288 | ac_srcdir_defaulted=no |
| 1289 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1290 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1291 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1292 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1293 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1294 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1295 | ac_abs_confdir=`( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1296 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1297 | pwd)` |
| 1298 | # When building in place, set srcdir=. |
| 1299 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1300 | srcdir=. |
| 1301 | fi |
| 1302 | # Remove unnecessary trailing slashes from srcdir. |
| 1303 | # Double slashes in file names in object file debugging info |
| 1304 | # mess up M-x gdb in Emacs. |
| 1305 | case $srcdir in |
| 1306 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1307 | esac |
| 1308 | for ac_var in $ac_precious_vars; do |
| 1309 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1310 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1311 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1312 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1313 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1314 | |
| 1315 | # |
| 1316 | # Report the --help message. |
| 1317 | # |
| 1318 | if test "$ac_init_help" = "long"; then |
| 1319 | # Omit some internal or obsolete options to make the list less imposing. |
| 1320 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1321 | cat <<_ACEOF |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 1322 | \`configure' configures asn1c 0.9.26 to adapt to many kinds of systems. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1323 | |
| 1324 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1325 | |
| 1326 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1327 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1328 | |
| 1329 | Defaults for the options are specified in brackets. |
| 1330 | |
| 1331 | Configuration: |
| 1332 | -h, --help display this help and exit |
| 1333 | --help=short display options specific to this package |
| 1334 | --help=recursive display the short help of all the included packages |
| 1335 | -V, --version display version information and exit |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1336 | -q, --quiet, --silent do not print \`checking ...' messages |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1337 | --cache-file=FILE cache test results in FILE [disabled] |
| 1338 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1339 | -n, --no-create do not create output files |
| 1340 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1341 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1342 | Installation directories: |
| 1343 | --prefix=PREFIX install architecture-independent files in PREFIX |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1344 | [$ac_default_prefix] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1345 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1346 | [PREFIX] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1347 | |
| 1348 | By default, \`make install' will install all the files in |
| 1349 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1350 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1351 | for instance \`--prefix=\$HOME'. |
| 1352 | |
| 1353 | For better control, use the options below. |
| 1354 | |
| 1355 | Fine tuning of the installation directories: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1356 | --bindir=DIR user executables [EPREFIX/bin] |
| 1357 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1358 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1359 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1360 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1361 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1362 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1363 | --includedir=DIR C header files [PREFIX/include] |
| 1364 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1365 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1366 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1367 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1368 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1369 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1370 | --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c] |
| 1371 | --htmldir=DIR html documentation [DOCDIR] |
| 1372 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1373 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1374 | --psdir=DIR ps documentation [DOCDIR] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1375 | _ACEOF |
| 1376 | |
| 1377 | cat <<\_ACEOF |
| 1378 | |
| 1379 | Program names: |
| 1380 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1381 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1382 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1383 | |
| 1384 | System types: |
| 1385 | --build=BUILD configure for building on BUILD [guessed] |
| 1386 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1387 | _ACEOF |
| 1388 | fi |
| 1389 | |
| 1390 | if test -n "$ac_init_help"; then |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1391 | case $ac_init_help in |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 1392 | short | recursive ) echo "Configuration of asn1c 0.9.26:";; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1393 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1394 | cat <<\_ACEOF |
| 1395 | |
| 1396 | Optional Features: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1397 | --disable-option-checking ignore unrecognized --enable/--with options |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1398 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1399 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 1400 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1401 | (and sometimes confusing) to the casual installer |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1402 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1403 | --enable-static[=PKGS] build static libraries [default=yes] |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1404 | --enable-fast-install[=PKGS] |
| 1405 | optimize for fast installation [default=yes] |
| 1406 | --disable-dependency-tracking speeds up one-time build |
| 1407 | --enable-dependency-tracking do not reject slow dependency extractors |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1408 | --disable-libtool-lock avoid locking (might break parallel builds) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1409 | --enable-Werror abort compilation after any C compiler warning |
| 1410 | |
| 1411 | Optional Packages: |
| 1412 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1413 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1414 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1415 | both] |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 1416 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1417 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1418 | (or the compiler's sysroot if not specified). |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1419 | |
| 1420 | Some influential environment variables: |
| 1421 | CC C compiler command |
| 1422 | CFLAGS C compiler flags |
| 1423 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1424 | nonstandard directory <lib dir> |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 1425 | LIBS libraries to pass to the linker, e.g. -l<library> |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1426 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1427 | you have headers in a nonstandard directory <include dir> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1428 | CPP C preprocessor |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1429 | YACC The `Yet Another Compiler Compiler' implementation to use. |
| 1430 | Defaults to the first program found out of: `bison -y', `byacc', |
| 1431 | `yacc'. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1432 | YFLAGS The list of arguments that will be passed by default to $YACC. |
| 1433 | This script will default YFLAGS to the empty string to avoid a |
| 1434 | default value of `-d' given by some make applications. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1435 | |
| 1436 | Use these variables to override the choices made by `configure' or to help |
| 1437 | it to find libraries and programs with nonstandard names/locations. |
| 1438 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 1439 | Report bugs to <vlm@lionet.info>. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1440 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1441 | ac_status=$? |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1442 | fi |
| 1443 | |
| 1444 | if test "$ac_init_help" = "recursive"; then |
| 1445 | # If there are subdirs, report their specific --help. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1446 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1447 | test -d "$ac_dir" || |
| 1448 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1449 | continue |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1450 | ac_builddir=. |
| 1451 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1452 | case "$ac_dir" in |
| 1453 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1454 | *) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1455 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1456 | # A ".." for each directory in $ac_dir_suffix. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1457 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1458 | case $ac_top_builddir_sub in |
| 1459 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1460 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1461 | esac ;; |
| 1462 | esac |
| 1463 | ac_abs_top_builddir=$ac_pwd |
| 1464 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1465 | # for backward compatibility: |
| 1466 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1467 | |
| 1468 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1469 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1470 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1471 | ac_top_srcdir=$ac_top_builddir_sub |
| 1472 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1473 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1474 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1475 | ac_top_srcdir=$srcdir |
| 1476 | ac_abs_top_srcdir=$srcdir ;; |
| 1477 | *) # Relative name. |
| 1478 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1479 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1480 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1481 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1482 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 1483 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1484 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1485 | # Check for guested configure. |
| 1486 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1487 | echo && |
| 1488 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1489 | elif test -f "$ac_srcdir/configure"; then |
| 1490 | echo && |
| 1491 | $SHELL "$ac_srcdir/configure" --help=recursive |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1492 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1493 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1494 | fi || ac_status=$? |
| 1495 | cd "$ac_pwd" || { ac_status=$?; break; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1496 | done |
| 1497 | fi |
| 1498 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1499 | test -n "$ac_init_help" && exit $ac_status |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1500 | if $ac_init_version; then |
| 1501 | cat <<\_ACEOF |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 1502 | asn1c configure 0.9.26 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1503 | generated by GNU Autoconf 2.69 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1504 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1505 | Copyright (C) 2012 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1506 | This configure script is free software; the Free Software Foundation |
| 1507 | gives unlimited permission to copy, distribute and modify it. |
| 1508 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1509 | exit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1510 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1511 | |
| 1512 | ## ------------------------ ## |
| 1513 | ## Autoconf initialization. ## |
| 1514 | ## ------------------------ ## |
| 1515 | |
| 1516 | # ac_fn_c_try_compile LINENO |
| 1517 | # -------------------------- |
| 1518 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1519 | ac_fn_c_try_compile () |
| 1520 | { |
| 1521 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1522 | rm -f conftest.$ac_objext |
| 1523 | if { { ac_try="$ac_compile" |
| 1524 | case "(($ac_try" in |
| 1525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1526 | *) ac_try_echo=$ac_try;; |
| 1527 | esac |
| 1528 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1529 | $as_echo "$ac_try_echo"; } >&5 |
| 1530 | (eval "$ac_compile") 2>conftest.err |
| 1531 | ac_status=$? |
| 1532 | if test -s conftest.err; then |
| 1533 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1534 | cat conftest.er1 >&5 |
| 1535 | mv -f conftest.er1 conftest.err |
| 1536 | fi |
| 1537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1538 | test $ac_status = 0; } && { |
| 1539 | test -z "$ac_c_werror_flag" || |
| 1540 | test ! -s conftest.err |
| 1541 | } && test -s conftest.$ac_objext; then : |
| 1542 | ac_retval=0 |
| 1543 | else |
| 1544 | $as_echo "$as_me: failed program was:" >&5 |
| 1545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1546 | |
| 1547 | ac_retval=1 |
| 1548 | fi |
| 1549 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1550 | as_fn_set_status $ac_retval |
| 1551 | |
| 1552 | } # ac_fn_c_try_compile |
| 1553 | |
| 1554 | # ac_fn_c_try_link LINENO |
| 1555 | # ----------------------- |
| 1556 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1557 | ac_fn_c_try_link () |
| 1558 | { |
| 1559 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1561 | if { { ac_try="$ac_link" |
| 1562 | case "(($ac_try" in |
| 1563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1564 | *) ac_try_echo=$ac_try;; |
| 1565 | esac |
| 1566 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1567 | $as_echo "$ac_try_echo"; } >&5 |
| 1568 | (eval "$ac_link") 2>conftest.err |
| 1569 | ac_status=$? |
| 1570 | if test -s conftest.err; then |
| 1571 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1572 | cat conftest.er1 >&5 |
| 1573 | mv -f conftest.er1 conftest.err |
| 1574 | fi |
| 1575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1576 | test $ac_status = 0; } && { |
| 1577 | test -z "$ac_c_werror_flag" || |
| 1578 | test ! -s conftest.err |
| 1579 | } && test -s conftest$ac_exeext && { |
| 1580 | test "$cross_compiling" = yes || |
| 1581 | test -x conftest$ac_exeext |
| 1582 | }; then : |
| 1583 | ac_retval=0 |
| 1584 | else |
| 1585 | $as_echo "$as_me: failed program was:" >&5 |
| 1586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1587 | |
| 1588 | ac_retval=1 |
| 1589 | fi |
| 1590 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1591 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1592 | # interfere with the next link command; also delete a directory that is |
| 1593 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1594 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1595 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1596 | as_fn_set_status $ac_retval |
| 1597 | |
| 1598 | } # ac_fn_c_try_link |
| 1599 | |
| 1600 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1601 | # ------------------------------------------------------- |
| 1602 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1603 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1604 | ac_fn_c_check_header_compile () |
| 1605 | { |
| 1606 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1608 | $as_echo_n "checking for $2... " >&6; } |
| 1609 | if eval \${$3+:} false; then : |
| 1610 | $as_echo_n "(cached) " >&6 |
| 1611 | else |
| 1612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1613 | /* end confdefs.h. */ |
| 1614 | $4 |
| 1615 | #include <$2> |
| 1616 | _ACEOF |
| 1617 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1618 | eval "$3=yes" |
| 1619 | else |
| 1620 | eval "$3=no" |
| 1621 | fi |
| 1622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1623 | fi |
| 1624 | eval ac_res=\$$3 |
| 1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1626 | $as_echo "$ac_res" >&6; } |
| 1627 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1628 | |
| 1629 | } # ac_fn_c_check_header_compile |
| 1630 | |
| 1631 | # ac_fn_c_try_cpp LINENO |
| 1632 | # ---------------------- |
| 1633 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1634 | ac_fn_c_try_cpp () |
| 1635 | { |
| 1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1637 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1638 | case "(($ac_try" in |
| 1639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1640 | *) ac_try_echo=$ac_try;; |
| 1641 | esac |
| 1642 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1643 | $as_echo "$ac_try_echo"; } >&5 |
| 1644 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1645 | ac_status=$? |
| 1646 | if test -s conftest.err; then |
| 1647 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1648 | cat conftest.er1 >&5 |
| 1649 | mv -f conftest.er1 conftest.err |
| 1650 | fi |
| 1651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1652 | test $ac_status = 0; } > conftest.i && { |
| 1653 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1654 | test ! -s conftest.err |
| 1655 | }; then : |
| 1656 | ac_retval=0 |
| 1657 | else |
| 1658 | $as_echo "$as_me: failed program was:" >&5 |
| 1659 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1660 | |
| 1661 | ac_retval=1 |
| 1662 | fi |
| 1663 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1664 | as_fn_set_status $ac_retval |
| 1665 | |
| 1666 | } # ac_fn_c_try_cpp |
| 1667 | |
| 1668 | # ac_fn_c_try_run LINENO |
| 1669 | # ---------------------- |
| 1670 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1671 | # that executables *can* be run. |
| 1672 | ac_fn_c_try_run () |
| 1673 | { |
| 1674 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1675 | if { { ac_try="$ac_link" |
| 1676 | case "(($ac_try" in |
| 1677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1678 | *) ac_try_echo=$ac_try;; |
| 1679 | esac |
| 1680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1681 | $as_echo "$ac_try_echo"; } >&5 |
| 1682 | (eval "$ac_link") 2>&5 |
| 1683 | ac_status=$? |
| 1684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1685 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1686 | { { case "(($ac_try" in |
| 1687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1688 | *) ac_try_echo=$ac_try;; |
| 1689 | esac |
| 1690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1691 | $as_echo "$ac_try_echo"; } >&5 |
| 1692 | (eval "$ac_try") 2>&5 |
| 1693 | ac_status=$? |
| 1694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1695 | test $ac_status = 0; }; }; then : |
| 1696 | ac_retval=0 |
| 1697 | else |
| 1698 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1699 | $as_echo "$as_me: failed program was:" >&5 |
| 1700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1701 | |
| 1702 | ac_retval=$ac_status |
| 1703 | fi |
| 1704 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1706 | as_fn_set_status $ac_retval |
| 1707 | |
| 1708 | } # ac_fn_c_try_run |
| 1709 | |
| 1710 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1711 | # ---------------------------------- |
| 1712 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1713 | ac_fn_c_check_func () |
| 1714 | { |
| 1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1717 | $as_echo_n "checking for $2... " >&6; } |
| 1718 | if eval \${$3+:} false; then : |
| 1719 | $as_echo_n "(cached) " >&6 |
| 1720 | else |
| 1721 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1722 | /* end confdefs.h. */ |
| 1723 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1725 | #define $2 innocuous_$2 |
| 1726 | |
| 1727 | /* System header to define __stub macros and hopefully few prototypes, |
| 1728 | which can conflict with char $2 (); below. |
| 1729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1730 | <limits.h> exists even on freestanding compilers. */ |
| 1731 | |
| 1732 | #ifdef __STDC__ |
| 1733 | # include <limits.h> |
| 1734 | #else |
| 1735 | # include <assert.h> |
| 1736 | #endif |
| 1737 | |
| 1738 | #undef $2 |
| 1739 | |
| 1740 | /* Override any GCC internal prototype to avoid an error. |
| 1741 | Use char because int might match the return type of a GCC |
| 1742 | builtin and then its argument prototype would still apply. */ |
| 1743 | #ifdef __cplusplus |
| 1744 | extern "C" |
| 1745 | #endif |
| 1746 | char $2 (); |
| 1747 | /* The GNU C library defines this for functions which it implements |
| 1748 | to always fail with ENOSYS. Some functions are actually named |
| 1749 | something starting with __ and the normal name is an alias. */ |
| 1750 | #if defined __stub_$2 || defined __stub___$2 |
| 1751 | choke me |
| 1752 | #endif |
| 1753 | |
| 1754 | int |
| 1755 | main () |
| 1756 | { |
| 1757 | return $2 (); |
| 1758 | ; |
| 1759 | return 0; |
| 1760 | } |
| 1761 | _ACEOF |
| 1762 | if ac_fn_c_try_link "$LINENO"; then : |
| 1763 | eval "$3=yes" |
| 1764 | else |
| 1765 | eval "$3=no" |
| 1766 | fi |
| 1767 | rm -f core conftest.err conftest.$ac_objext \ |
| 1768 | conftest$ac_exeext conftest.$ac_ext |
| 1769 | fi |
| 1770 | eval ac_res=\$$3 |
| 1771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1772 | $as_echo "$ac_res" >&6; } |
| 1773 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1774 | |
| 1775 | } # ac_fn_c_check_func |
| 1776 | |
| 1777 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1778 | # ------------------------------------------------------- |
| 1779 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1780 | # the include files in INCLUDES and setting the cache variable VAR |
| 1781 | # accordingly. |
| 1782 | ac_fn_c_check_header_mongrel () |
| 1783 | { |
| 1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1785 | if eval \${$3+:} false; then : |
| 1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1787 | $as_echo_n "checking for $2... " >&6; } |
| 1788 | if eval \${$3+:} false; then : |
| 1789 | $as_echo_n "(cached) " >&6 |
| 1790 | fi |
| 1791 | eval ac_res=\$$3 |
| 1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1793 | $as_echo "$ac_res" >&6; } |
| 1794 | else |
| 1795 | # Is the header compilable? |
| 1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1797 | $as_echo_n "checking $2 usability... " >&6; } |
| 1798 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1799 | /* end confdefs.h. */ |
| 1800 | $4 |
| 1801 | #include <$2> |
| 1802 | _ACEOF |
| 1803 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1804 | ac_header_compiler=yes |
| 1805 | else |
| 1806 | ac_header_compiler=no |
| 1807 | fi |
| 1808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1810 | $as_echo "$ac_header_compiler" >&6; } |
| 1811 | |
| 1812 | # Is the header present? |
| 1813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1814 | $as_echo_n "checking $2 presence... " >&6; } |
| 1815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1816 | /* end confdefs.h. */ |
| 1817 | #include <$2> |
| 1818 | _ACEOF |
| 1819 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1820 | ac_header_preproc=yes |
| 1821 | else |
| 1822 | ac_header_preproc=no |
| 1823 | fi |
| 1824 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1826 | $as_echo "$ac_header_preproc" >&6; } |
| 1827 | |
| 1828 | # So? What about this header? |
| 1829 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1830 | yes:no: ) |
| 1831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1832 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1834 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1835 | ;; |
| 1836 | no:yes:* ) |
| 1837 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1838 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1840 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1842 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1843 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1844 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1845 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1846 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1847 | ( $as_echo "## ------------------------------ ## |
| 1848 | ## Report this to vlm@lionet.info ## |
| 1849 | ## ------------------------------ ##" |
| 1850 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 1851 | ;; |
| 1852 | esac |
| 1853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1854 | $as_echo_n "checking for $2... " >&6; } |
| 1855 | if eval \${$3+:} false; then : |
| 1856 | $as_echo_n "(cached) " >&6 |
| 1857 | else |
| 1858 | eval "$3=\$ac_header_compiler" |
| 1859 | fi |
| 1860 | eval ac_res=\$$3 |
| 1861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1862 | $as_echo "$ac_res" >&6; } |
| 1863 | fi |
| 1864 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1865 | |
| 1866 | } # ac_fn_c_check_header_mongrel |
| 1867 | |
| 1868 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1869 | # ------------------------------------------- |
| 1870 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1871 | # variable VAR accordingly. |
| 1872 | ac_fn_c_check_type () |
| 1873 | { |
| 1874 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1876 | $as_echo_n "checking for $2... " >&6; } |
| 1877 | if eval \${$3+:} false; then : |
| 1878 | $as_echo_n "(cached) " >&6 |
| 1879 | else |
| 1880 | eval "$3=no" |
| 1881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1882 | /* end confdefs.h. */ |
| 1883 | $4 |
| 1884 | int |
| 1885 | main () |
| 1886 | { |
| 1887 | if (sizeof ($2)) |
| 1888 | return 0; |
| 1889 | ; |
| 1890 | return 0; |
| 1891 | } |
| 1892 | _ACEOF |
| 1893 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1895 | /* end confdefs.h. */ |
| 1896 | $4 |
| 1897 | int |
| 1898 | main () |
| 1899 | { |
| 1900 | if (sizeof (($2))) |
| 1901 | return 0; |
| 1902 | ; |
| 1903 | return 0; |
| 1904 | } |
| 1905 | _ACEOF |
| 1906 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1907 | |
| 1908 | else |
| 1909 | eval "$3=yes" |
| 1910 | fi |
| 1911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1912 | fi |
| 1913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1914 | fi |
| 1915 | eval ac_res=\$$3 |
| 1916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1917 | $as_echo "$ac_res" >&6; } |
| 1918 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1919 | |
| 1920 | } # ac_fn_c_check_type |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1921 | cat >config.log <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1922 | This file contains any messages produced by compilers while |
| 1923 | running configure, to aid debugging if configure makes a mistake. |
| 1924 | |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 1925 | It was created by asn1c $as_me 0.9.26, which was |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1926 | generated by GNU Autoconf 2.69. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1927 | |
| 1928 | $ $0 $@ |
| 1929 | |
| 1930 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1931 | exec 5>>config.log |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1932 | { |
| 1933 | cat <<_ASUNAME |
| 1934 | ## --------- ## |
| 1935 | ## Platform. ## |
| 1936 | ## --------- ## |
| 1937 | |
| 1938 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1939 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1940 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1941 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1942 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1943 | |
| 1944 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1945 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1946 | |
| 1947 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1948 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1949 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1950 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1951 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1952 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1953 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1954 | |
| 1955 | _ASUNAME |
| 1956 | |
| 1957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1958 | for as_dir in $PATH |
| 1959 | do |
| 1960 | IFS=$as_save_IFS |
| 1961 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 1962 | $as_echo "PATH: $as_dir" |
| 1963 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1964 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1965 | |
| 1966 | } >&5 |
| 1967 | |
| 1968 | cat >&5 <<_ACEOF |
| 1969 | |
| 1970 | |
| 1971 | ## ----------- ## |
| 1972 | ## Core tests. ## |
| 1973 | ## ----------- ## |
| 1974 | |
| 1975 | _ACEOF |
| 1976 | |
| 1977 | |
| 1978 | # Keep a trace of the command line. |
| 1979 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1980 | # Strip out --silent because we don't want to record it for future runs. |
| 1981 | # Also quote any args containing shell meta-characters. |
| 1982 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1983 | ac_configure_args= |
| 1984 | ac_configure_args0= |
| 1985 | ac_configure_args1= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1986 | ac_must_keep_next=false |
| 1987 | for ac_pass in 1 2 |
| 1988 | do |
| 1989 | for ac_arg |
| 1990 | do |
| 1991 | case $ac_arg in |
| 1992 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1993 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1994 | | -silent | --silent | --silen | --sile | --sil) |
| 1995 | continue ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 1996 | *\'*) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 1997 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1998 | esac |
| 1999 | case $ac_pass in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2000 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2001 | 2) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2002 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2003 | if test $ac_must_keep_next = true; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2004 | ac_must_keep_next=false # Got value, back to normal. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2005 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2006 | case $ac_arg in |
| 2007 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2008 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2009 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2010 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2011 | case "$ac_configure_args0 " in |
| 2012 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2013 | esac |
| 2014 | ;; |
| 2015 | -* ) ac_must_keep_next=true ;; |
| 2016 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2017 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2018 | as_fn_append ac_configure_args " '$ac_arg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2019 | ;; |
| 2020 | esac |
| 2021 | done |
| 2022 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2023 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2024 | { ac_configure_args1=; unset ac_configure_args1;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2025 | |
| 2026 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2027 | # config.log. We remove comments because anyway the quotes in there |
| 2028 | # would cause problems or look ugly. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2029 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2030 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2031 | trap 'exit_status=$? |
| 2032 | # Save into config.log some information that might help in debugging. |
| 2033 | { |
| 2034 | echo |
| 2035 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2036 | $as_echo "## ---------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2037 | ## Cache variables. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2038 | ## ---------------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2039 | echo |
| 2040 | # The following way of writing the cache mishandles newlines in values, |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2041 | ( |
| 2042 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2043 | eval ac_val=\$$ac_var |
| 2044 | case $ac_val in #( |
| 2045 | *${as_nl}*) |
| 2046 | case $ac_var in #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2047 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2048 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2049 | esac |
| 2050 | case $ac_var in #( |
| 2051 | _ | IFS | as_nl) ;; #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2052 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2053 | *) { eval $ac_var=; unset $ac_var;} ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2054 | esac ;; |
| 2055 | esac |
| 2056 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2057 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2058 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2059 | *${as_nl}ac_space=\ *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2060 | sed -n \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2061 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2062 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2063 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2064 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2065 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2066 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2067 | esac | |
| 2068 | sort |
| 2069 | ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2070 | echo |
| 2071 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2072 | $as_echo "## ----------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2073 | ## Output variables. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2074 | ## ----------------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2075 | echo |
| 2076 | for ac_var in $ac_subst_vars |
| 2077 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2078 | eval ac_val=\$$ac_var |
| 2079 | case $ac_val in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2080 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2081 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2082 | $as_echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2083 | done | sort |
| 2084 | echo |
| 2085 | |
| 2086 | if test -n "$ac_subst_files"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2087 | $as_echo "## ------------------- ## |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2088 | ## File substitutions. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2089 | ## ------------------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2090 | echo |
| 2091 | for ac_var in $ac_subst_files |
| 2092 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2093 | eval ac_val=\$$ac_var |
| 2094 | case $ac_val in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2095 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2096 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2097 | $as_echo "$ac_var='\''$ac_val'\''" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2098 | done | sort |
| 2099 | echo |
| 2100 | fi |
| 2101 | |
| 2102 | if test -s confdefs.h; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2103 | $as_echo "## ----------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2104 | ## confdefs.h. ## |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2105 | ## ----------- ##" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2106 | echo |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2107 | cat confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2108 | echo |
| 2109 | fi |
| 2110 | test "$ac_signal" != 0 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2111 | $as_echo "$as_me: caught signal $ac_signal" |
| 2112 | $as_echo "$as_me: exit $exit_status" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2113 | } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2114 | rm -f core *.core core.conftest.* && |
| 2115 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2116 | exit $exit_status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2117 | ' 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2118 | for ac_signal in 1 2 13 15; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2119 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2120 | done |
| 2121 | ac_signal=0 |
| 2122 | |
| 2123 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2124 | rm -f -r conftest* confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2125 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2126 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2127 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2128 | # Predefined preprocessor variables. |
| 2129 | |
| 2130 | cat >>confdefs.h <<_ACEOF |
| 2131 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2132 | _ACEOF |
| 2133 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2134 | cat >>confdefs.h <<_ACEOF |
| 2135 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2136 | _ACEOF |
| 2137 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2138 | cat >>confdefs.h <<_ACEOF |
| 2139 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2140 | _ACEOF |
| 2141 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2142 | cat >>confdefs.h <<_ACEOF |
| 2143 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2144 | _ACEOF |
| 2145 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2146 | cat >>confdefs.h <<_ACEOF |
| 2147 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2148 | _ACEOF |
| 2149 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2150 | cat >>confdefs.h <<_ACEOF |
| 2151 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2152 | _ACEOF |
| 2153 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2154 | |
| 2155 | # Let the site file select an alternate cache file if it wants to. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2156 | # Prefer an explicitly selected file to automatically selected ones. |
| 2157 | ac_site_file1=NONE |
| 2158 | ac_site_file2=NONE |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2159 | if test -n "$CONFIG_SITE"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2160 | # We do not want a PATH search for config.site. |
| 2161 | case $CONFIG_SITE in #(( |
| 2162 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2163 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2164 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2165 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2166 | elif test "x$prefix" != xNONE; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2167 | ac_site_file1=$prefix/share/config.site |
| 2168 | ac_site_file2=$prefix/etc/config.site |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2169 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2170 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2171 | ac_site_file2=$ac_default_prefix/etc/config.site |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2172 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2173 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2174 | do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2175 | test "x$ac_site_file" = xNONE && continue |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2176 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2177 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2178 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2179 | sed 's/^/| /' "$ac_site_file" >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2180 | . "$ac_site_file" \ |
| 2181 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2182 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2183 | as_fn_error $? "failed to load site script $ac_site_file |
| 2184 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2185 | fi |
| 2186 | done |
| 2187 | |
| 2188 | if test -r "$cache_file"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2189 | # Some versions of bash will fail to source /dev/null (special files |
| 2190 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2191 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2193 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2194 | case $cache_file in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2195 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2196 | *) . "./$cache_file";; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2197 | esac |
| 2198 | fi |
| 2199 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2201 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2202 | >$cache_file |
| 2203 | fi |
| 2204 | |
| 2205 | # Check that the precious variables saved in the cache have kept the same |
| 2206 | # value. |
| 2207 | ac_cache_corrupted=false |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2208 | for ac_var in $ac_precious_vars; do |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2209 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2210 | eval ac_new_set=\$ac_env_${ac_var}_set |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2211 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2212 | eval ac_new_val=\$ac_env_${ac_var}_value |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2213 | case $ac_old_set,$ac_new_set in |
| 2214 | set,) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2216 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2217 | ac_cache_corrupted=: ;; |
| 2218 | ,set) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2220 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2221 | ac_cache_corrupted=: ;; |
| 2222 | ,);; |
| 2223 | *) |
| 2224 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2225 | # differences in whitespace do not lead to failure. |
| 2226 | ac_old_val_w=`echo x $ac_old_val` |
| 2227 | ac_new_val_w=`echo x $ac_new_val` |
| 2228 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2229 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2230 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2231 | ac_cache_corrupted=: |
| 2232 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2233 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2234 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2235 | eval $ac_var=\$ac_old_val |
| 2236 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2237 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2238 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2239 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2240 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2241 | fi;; |
| 2242 | esac |
| 2243 | # Pass precious variables to config.status. |
| 2244 | if test "$ac_new_set" = set; then |
| 2245 | case $ac_new_val in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2246 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2247 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2248 | esac |
| 2249 | case " $ac_configure_args " in |
| 2250 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2251 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2252 | esac |
| 2253 | fi |
| 2254 | done |
| 2255 | if $ac_cache_corrupted; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2256 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2257 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2259 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2260 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2261 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2262 | ## -------------------- ## |
| 2263 | ## Main body of script. ## |
| 2264 | ## -------------------- ## |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2265 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2266 | ac_ext=c |
| 2267 | ac_cpp='$CPP $CPPFLAGS' |
| 2268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2271 | |
| 2272 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2273 | am__api_version='1.11' |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2274 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2275 | ac_aux_dir= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2276 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2277 | if test -f "$ac_dir/install-sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2278 | ac_aux_dir=$ac_dir |
| 2279 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2280 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2281 | elif test -f "$ac_dir/install.sh"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2282 | ac_aux_dir=$ac_dir |
| 2283 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2284 | break |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2285 | elif test -f "$ac_dir/shtool"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2286 | ac_aux_dir=$ac_dir |
| 2287 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2288 | break |
| 2289 | fi |
| 2290 | done |
| 2291 | if test -z "$ac_aux_dir"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2292 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2293 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2294 | |
| 2295 | # These three variables are undocumented and unsupported, |
| 2296 | # and are intended to be withdrawn in a future Autoconf release. |
| 2297 | # They can cause serious problems if a builder's source tree is in a directory |
| 2298 | # whose full name contains unusual characters. |
| 2299 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2300 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2301 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2302 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2303 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2304 | # Find a good install program. We prefer a C program (faster), |
| 2305 | # so one script is as good as another. But avoid the broken or |
| 2306 | # incompatible versions: |
| 2307 | # SysV /etc/install, /usr/sbin/install |
| 2308 | # SunOS /usr/etc/install |
| 2309 | # IRIX /sbin/install |
| 2310 | # AIX /bin/install |
| 2311 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2312 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2313 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2314 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2315 | # OS/2's system install, which has a completely different semantic |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2316 | # ./install, which can be erroneously created by make from ./install.sh. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2317 | # Reject install programs that cannot install multiple files. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2319 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2320 | if test -z "$INSTALL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2321 | if ${ac_cv_path_install+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2322 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2323 | else |
| 2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2325 | for as_dir in $PATH |
| 2326 | do |
| 2327 | IFS=$as_save_IFS |
| 2328 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2329 | # Account for people who put trailing slashes in PATH elements. |
| 2330 | case $as_dir/ in #(( |
| 2331 | ./ | .// | /[cC]/* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2332 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2333 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2334 | /usr/ucb/* ) ;; |
| 2335 | *) |
| 2336 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2337 | # Don't use installbsd from OSF since it installs stuff as root |
| 2338 | # by default. |
| 2339 | for ac_prog in ginstall scoinst install; do |
| 2340 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2341 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2342 | if test $ac_prog = install && |
| 2343 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2344 | # AIX install. It has an incompatible calling convention. |
| 2345 | : |
| 2346 | elif test $ac_prog = install && |
| 2347 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2348 | # program-specific install script used by HP pwplus--don't use. |
| 2349 | : |
| 2350 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2351 | rm -rf conftest.one conftest.two conftest.dir |
| 2352 | echo one > conftest.one |
| 2353 | echo two > conftest.two |
| 2354 | mkdir conftest.dir |
| 2355 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2356 | test -s conftest.one && test -s conftest.two && |
| 2357 | test -s conftest.dir/conftest.one && |
| 2358 | test -s conftest.dir/conftest.two |
| 2359 | then |
| 2360 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2361 | break 3 |
| 2362 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2363 | fi |
| 2364 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2365 | done |
| 2366 | done |
| 2367 | ;; |
| 2368 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2369 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2370 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2371 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2372 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2373 | rm -rf conftest.one conftest.two conftest.dir |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2374 | |
| 2375 | fi |
| 2376 | if test "${ac_cv_path_install+set}" = set; then |
| 2377 | INSTALL=$ac_cv_path_install |
| 2378 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2379 | # As a last resort, use the slow shell script. Don't cache a |
| 2380 | # value for INSTALL within a source directory, because that will |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2381 | # break other packages using the cache if that directory is |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2382 | # removed, or if the value is a relative name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2383 | INSTALL=$ac_install_sh |
| 2384 | fi |
| 2385 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2387 | $as_echo "$INSTALL" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2388 | |
| 2389 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2390 | # It thinks the first close brace ends the variable substitution. |
| 2391 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2392 | |
| 2393 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2394 | |
| 2395 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2396 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2398 | $as_echo_n "checking whether build environment is sane... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2399 | # Just in case |
| 2400 | sleep 1 |
| 2401 | echo timestamp > conftest.file |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2402 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2403 | # name. Accept space and tab only in the latter. |
| 2404 | am_lf=' |
| 2405 | ' |
| 2406 | case `pwd` in |
| 2407 | *[\\\"\#\$\&\'\`$am_lf]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2408 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2409 | esac |
| 2410 | case $srcdir in |
| 2411 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2412 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2413 | esac |
| 2414 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2415 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2416 | # arguments. Must try -L first in case configure is actually a |
| 2417 | # symlink; some systems play weird games with the mod time of symlinks |
| 2418 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2419 | # directory). |
| 2420 | if ( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2421 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2422 | if test "$*" = "X"; then |
| 2423 | # -L didn't work. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2424 | set X `ls -t "$srcdir/configure" conftest.file` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2425 | fi |
| 2426 | rm -f conftest.file |
| 2427 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2428 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2429 | |
| 2430 | # If neither matched, then we have a broken ls. This can happen |
| 2431 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2432 | # broken ls alias from the environment. This has actually |
| 2433 | # happened. Such a system could not be considered "sane". |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2434 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2435 | alias in your environment" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2436 | fi |
| 2437 | |
| 2438 | test "$2" = conftest.file |
| 2439 | ) |
| 2440 | then |
| 2441 | # Ok. |
| 2442 | : |
| 2443 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2444 | as_fn_error $? "newly created file is older than distributed files! |
| 2445 | Check your system clock" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2446 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2448 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2449 | test "$program_prefix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2450 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2451 | # Use a double $ so make ignores it. |
| 2452 | test "$program_suffix" != NONE && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2453 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2454 | # Double any \ or $. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2455 | # By default was `s,x,x', remove it if useless. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2456 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2457 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2458 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2459 | # expand $ac_aux_dir to an absolute path |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2460 | am_aux_dir=`cd $ac_aux_dir && pwd` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2461 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2462 | if test x"${MISSING+set}" != xset; then |
| 2463 | case $am_aux_dir in |
| 2464 | *\ * | *\ *) |
| 2465 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2466 | *) |
| 2467 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2468 | esac |
| 2469 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2470 | # Use eval to expand $SHELL |
| 2471 | if eval "$MISSING --run true"; then |
| 2472 | am_missing_run="$MISSING --run " |
| 2473 | else |
| 2474 | am_missing_run= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2476 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2477 | fi |
| 2478 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2479 | if test x"${install_sh}" != xset; then |
| 2480 | case $am_aux_dir in |
| 2481 | *\ * | *\ *) |
| 2482 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2483 | *) |
| 2484 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2485 | esac |
| 2486 | fi |
| 2487 | |
| 2488 | # Installed binaries are usually stripped using `strip' when the user |
| 2489 | # run `make install-strip'. However `strip' might not be the right |
| 2490 | # tool to use in cross-compilation environments, therefore Automake |
| 2491 | # will honor the `STRIP' environment variable to overrule this program. |
| 2492 | if test "$cross_compiling" != no; then |
| 2493 | if test -n "$ac_tool_prefix"; then |
| 2494 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2495 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2497 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2498 | if ${ac_cv_prog_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2499 | $as_echo_n "(cached) " >&6 |
| 2500 | else |
| 2501 | if test -n "$STRIP"; then |
| 2502 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2503 | else |
| 2504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2505 | for as_dir in $PATH |
| 2506 | do |
| 2507 | IFS=$as_save_IFS |
| 2508 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2511 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2513 | break 2 |
| 2514 | fi |
| 2515 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2516 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2517 | IFS=$as_save_IFS |
| 2518 | |
| 2519 | fi |
| 2520 | fi |
| 2521 | STRIP=$ac_cv_prog_STRIP |
| 2522 | if test -n "$STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2524 | $as_echo "$STRIP" >&6; } |
| 2525 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2527 | $as_echo "no" >&6; } |
| 2528 | fi |
| 2529 | |
| 2530 | |
| 2531 | fi |
| 2532 | if test -z "$ac_cv_prog_STRIP"; then |
| 2533 | ac_ct_STRIP=$STRIP |
| 2534 | # Extract the first word of "strip", so it can be a program name with args. |
| 2535 | set dummy strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2537 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2538 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2539 | $as_echo_n "(cached) " >&6 |
| 2540 | else |
| 2541 | if test -n "$ac_ct_STRIP"; then |
| 2542 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2543 | else |
| 2544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2545 | for as_dir in $PATH |
| 2546 | do |
| 2547 | IFS=$as_save_IFS |
| 2548 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2549 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2550 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2551 | ac_cv_prog_ac_ct_STRIP="strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2552 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2553 | break 2 |
| 2554 | fi |
| 2555 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2556 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2557 | IFS=$as_save_IFS |
| 2558 | |
| 2559 | fi |
| 2560 | fi |
| 2561 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2562 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2564 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2565 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2567 | $as_echo "no" >&6; } |
| 2568 | fi |
| 2569 | |
| 2570 | if test "x$ac_ct_STRIP" = x; then |
| 2571 | STRIP=":" |
| 2572 | else |
| 2573 | case $cross_compiling:$ac_tool_warned in |
| 2574 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2576 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2577 | ac_tool_warned=yes ;; |
| 2578 | esac |
| 2579 | STRIP=$ac_ct_STRIP |
| 2580 | fi |
| 2581 | else |
| 2582 | STRIP="$ac_cv_prog_STRIP" |
| 2583 | fi |
| 2584 | |
| 2585 | fi |
| 2586 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2587 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2589 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2590 | if test -z "$MKDIR_P"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2591 | if ${ac_cv_path_mkdir+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2592 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2593 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2595 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2596 | do |
| 2597 | IFS=$as_save_IFS |
| 2598 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2599 | for ac_prog in mkdir gmkdir; do |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2600 | for ac_exec_ext in '' $ac_executable_extensions; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2601 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2602 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2603 | 'mkdir (GNU coreutils) '* | \ |
| 2604 | 'mkdir (coreutils) '* | \ |
| 2605 | 'mkdir (fileutils) '4.1*) |
| 2606 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2607 | break 3;; |
| 2608 | esac |
| 2609 | done |
| 2610 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2611 | done |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2612 | IFS=$as_save_IFS |
| 2613 | |
| 2614 | fi |
| 2615 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2616 | test -d ./--version && rmdir ./--version |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2617 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2618 | MKDIR_P="$ac_cv_path_mkdir -p" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2619 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2620 | # As a last resort, use the slow shell script. Don't cache a |
| 2621 | # value for MKDIR_P within a source directory, because that will |
| 2622 | # break other packages using the cache if that directory is |
| 2623 | # removed, or if the value is a relative name. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2624 | MKDIR_P="$ac_install_sh -d" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2625 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2626 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2628 | $as_echo "$MKDIR_P" >&6; } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2629 | |
| 2630 | mkdir_p="$MKDIR_P" |
| 2631 | case $mkdir_p in |
| 2632 | [\\/$]* | ?:[\\/]*) ;; |
| 2633 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2634 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2635 | |
| 2636 | for ac_prog in gawk mawk nawk awk |
| 2637 | do |
| 2638 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2639 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2641 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2642 | if ${ac_cv_prog_AWK+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2643 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2644 | else |
| 2645 | if test -n "$AWK"; then |
| 2646 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2647 | else |
| 2648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2649 | for as_dir in $PATH |
| 2650 | do |
| 2651 | IFS=$as_save_IFS |
| 2652 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2653 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2655 | ac_cv_prog_AWK="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2657 | break 2 |
| 2658 | fi |
| 2659 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2660 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2661 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2662 | |
| 2663 | fi |
| 2664 | fi |
| 2665 | AWK=$ac_cv_prog_AWK |
| 2666 | if test -n "$AWK"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2668 | $as_echo "$AWK" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2669 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2671 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2672 | fi |
| 2673 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2674 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2675 | test -n "$AWK" && break |
| 2676 | done |
| 2677 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2679 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2680 | set x ${MAKE-make} |
| 2681 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2682 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2683 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2684 | else |
| 2685 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2686 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2687 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2688 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2689 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2690 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2691 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2692 | *@@@%%%=?*=@@@%%%*) |
| 2693 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2694 | *) |
| 2695 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2696 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2697 | rm -f conftest.make |
| 2698 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2699 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2701 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2702 | SET_MAKE= |
| 2703 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2705 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2706 | SET_MAKE="MAKE=${MAKE-make}" |
| 2707 | fi |
| 2708 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2709 | rm -rf .tst 2>/dev/null |
| 2710 | mkdir .tst 2>/dev/null |
| 2711 | if test -d .tst; then |
| 2712 | am__leading_dot=. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2713 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2714 | am__leading_dot=_ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2715 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2716 | rmdir .tst 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2717 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2718 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2719 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2720 | # is not polluted with repeated "-I." |
| 2721 | am__isrc=' -I$(srcdir)' |
| 2722 | # test to see if srcdir already configured |
| 2723 | if test -f $srcdir/config.status; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2724 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 2725 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2726 | fi |
| 2727 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2728 | # test whether we have cygpath |
| 2729 | if test -z "$CYGPATH_W"; then |
| 2730 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2731 | CYGPATH_W='cygpath -w' |
| 2732 | else |
| 2733 | CYGPATH_W=echo |
| 2734 | fi |
| 2735 | fi |
| 2736 | |
| 2737 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2738 | # Define the identity of the package. |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2739 | PACKAGE='asn1c' |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 2740 | VERSION='0.9.26' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2741 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2742 | |
| 2743 | cat >>confdefs.h <<_ACEOF |
| 2744 | #define PACKAGE "$PACKAGE" |
| 2745 | _ACEOF |
| 2746 | |
| 2747 | |
| 2748 | cat >>confdefs.h <<_ACEOF |
| 2749 | #define VERSION "$VERSION" |
| 2750 | _ACEOF |
| 2751 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2752 | # Some tools Automake needs. |
| 2753 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2754 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2755 | |
| 2756 | |
| 2757 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2758 | |
| 2759 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2760 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2761 | |
| 2762 | |
| 2763 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2764 | |
| 2765 | |
| 2766 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2767 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2768 | # We need awk for the "check" target. The system "awk" is bad on |
| 2769 | # some platforms. |
Lev Walkin | c46b7cb | 2006-08-18 02:27:55 +0000 | [diff] [blame] | 2770 | # Always define AMTAR for backward compatibility. |
| 2771 | |
| 2772 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2773 | |
| 2774 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2775 | |
| 2776 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2777 | |
| 2778 | |
| 2779 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2780 | ac_config_headers="$ac_config_headers config.h" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2781 | |
| 2782 | |
| 2783 | |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 2784 | |
| 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 2786 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 2787 | # Check whether --enable-maintainer-mode was given. |
| 2788 | if test "${enable_maintainer_mode+set}" = set; then : |
| 2789 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 2790 | else |
| 2791 | USE_MAINTAINER_MODE=no |
| 2792 | fi |
| 2793 | |
| 2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 2795 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 2796 | if test $USE_MAINTAINER_MODE = yes; then |
| 2797 | MAINTAINER_MODE_TRUE= |
| 2798 | MAINTAINER_MODE_FALSE='#' |
| 2799 | else |
| 2800 | MAINTAINER_MODE_TRUE='#' |
| 2801 | MAINTAINER_MODE_FALSE= |
| 2802 | fi |
| 2803 | |
| 2804 | MAINT=$MAINTAINER_MODE_TRUE |
| 2805 | |
| 2806 | |
| 2807 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2808 | case `pwd` in |
| 2809 | *\ * | *\ *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2811 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2812 | esac |
| 2813 | |
| 2814 | |
| 2815 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2816 | macro_version='2.4' |
| 2817 | macro_revision='1.3293' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 2818 | |
| 2819 | |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 2829 | |
| 2830 | |
| 2831 | ltmain="$ac_aux_dir/ltmain.sh" |
| 2832 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2833 | # Make sure we can run config.sub. |
| 2834 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2835 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2836 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2838 | $as_echo_n "checking build system type... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2839 | if ${ac_cv_build+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2840 | $as_echo_n "(cached) " >&6 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2841 | else |
| 2842 | ac_build_alias=$build_alias |
| 2843 | test "x$ac_build_alias" = x && |
| 2844 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2845 | test "x$ac_build_alias" = x && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2846 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2847 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2848 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2849 | |
| 2850 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2852 | $as_echo "$ac_cv_build" >&6; } |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2853 | case $ac_cv_build in |
| 2854 | *-*-*) ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2855 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2856 | esac |
| 2857 | build=$ac_cv_build |
| 2858 | ac_save_IFS=$IFS; IFS='-' |
| 2859 | set x $ac_cv_build |
| 2860 | shift |
| 2861 | build_cpu=$1 |
| 2862 | build_vendor=$2 |
| 2863 | shift; shift |
| 2864 | # Remember, the first character of IFS is used to create $*, |
| 2865 | # except with old shells: |
| 2866 | build_os=$* |
| 2867 | IFS=$ac_save_IFS |
| 2868 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2869 | |
| 2870 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2872 | $as_echo_n "checking host system type... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2873 | if ${ac_cv_host+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2874 | $as_echo_n "(cached) " >&6 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2875 | else |
| 2876 | if test "x$host_alias" = x; then |
| 2877 | ac_cv_host=$ac_cv_build |
| 2878 | else |
| 2879 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2880 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2881 | fi |
| 2882 | |
| 2883 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2885 | $as_echo "$ac_cv_host" >&6; } |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2886 | case $ac_cv_host in |
| 2887 | *-*-*) ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2888 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 2889 | esac |
| 2890 | host=$ac_cv_host |
| 2891 | ac_save_IFS=$IFS; IFS='-' |
| 2892 | set x $ac_cv_host |
| 2893 | shift |
| 2894 | host_cpu=$1 |
| 2895 | host_vendor=$2 |
| 2896 | shift; shift |
| 2897 | # Remember, the first character of IFS is used to create $*, |
| 2898 | # except with old shells: |
| 2899 | host_os=$* |
| 2900 | IFS=$ac_save_IFS |
| 2901 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2902 | |
| 2903 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2904 | # Backslashify metacharacters that are still active within |
| 2905 | # double-quoted strings. |
| 2906 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 2907 | |
| 2908 | # Same as above, but do not quote variable references. |
| 2909 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 2910 | |
| 2911 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 2912 | # double_quote_subst'ed string. |
| 2913 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 2914 | |
| 2915 | # Sed substitution to delay expansion of an escaped single quote. |
| 2916 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 2917 | |
| 2918 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 2919 | no_glob_subst='s/\*/\\\*/g' |
| 2920 | |
| 2921 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2922 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 2923 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 2924 | |
| 2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 2926 | $as_echo_n "checking how to print strings... " >&6; } |
| 2927 | # Test print first, because it will be a builtin if present. |
| 2928 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 2929 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 2930 | ECHO='print -r --' |
| 2931 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 2932 | ECHO='printf %s\n' |
| 2933 | else |
| 2934 | # Use this function as a fallback that always works. |
| 2935 | func_fallback_echo () |
| 2936 | { |
| 2937 | eval 'cat <<_LTECHO_EOF |
| 2938 | $1 |
| 2939 | _LTECHO_EOF' |
| 2940 | } |
| 2941 | ECHO='func_fallback_echo' |
| 2942 | fi |
| 2943 | |
| 2944 | # func_echo_all arg... |
| 2945 | # Invoke $ECHO with all args, space-separated. |
| 2946 | func_echo_all () |
| 2947 | { |
| 2948 | $ECHO "" |
| 2949 | } |
| 2950 | |
| 2951 | case "$ECHO" in |
| 2952 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 2953 | $as_echo "printf" >&6; } ;; |
| 2954 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 2955 | $as_echo "print -r" >&6; } ;; |
| 2956 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 2957 | $as_echo "cat" >&6; } ;; |
| 2958 | esac |
| 2959 | |
| 2960 | |
| 2961 | |
| 2962 | |
| 2963 | |
| 2964 | |
| 2965 | |
| 2966 | |
| 2967 | |
| 2968 | |
| 2969 | |
| 2970 | |
| 2971 | |
| 2972 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2973 | DEPDIR="${am__leading_dot}deps" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2974 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 2975 | ac_config_commands="$ac_config_commands depfiles" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2976 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2977 | |
| 2978 | am_make=${MAKE-make} |
| 2979 | cat > confinc << 'END' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2980 | am__doit: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2981 | @echo this is the am__doit target |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2982 | .PHONY: am__doit |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2983 | END |
| 2984 | # If we don't find an include directive, just comment out the code. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2986 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 2987 | am__include="#" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 2988 | am__quote= |
| 2989 | _am_result=none |
| 2990 | # First try GNU make style include. |
| 2991 | echo "include confinc" > confmf |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 2992 | # Ignore all kinds of additional output from `make'. |
| 2993 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 2994 | *the\ am__doit\ target*) |
| 2995 | am__include=include |
| 2996 | am__quote= |
| 2997 | _am_result=GNU |
| 2998 | ;; |
| 2999 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3000 | # Now try BSD make style include. |
| 3001 | if test "$am__include" = "#"; then |
| 3002 | echo '.include "confinc"' > confmf |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3003 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3004 | *the\ am__doit\ target*) |
| 3005 | am__include=.include |
| 3006 | am__quote="\"" |
| 3007 | _am_result=BSD |
| 3008 | ;; |
| 3009 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3010 | fi |
| 3011 | |
| 3012 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3014 | $as_echo "$_am_result" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3015 | rm -f confinc confmf |
| 3016 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3017 | # Check whether --enable-dependency-tracking was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3018 | if test "${enable_dependency_tracking+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3019 | enableval=$enable_dependency_tracking; |
| 3020 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3021 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3022 | if test "x$enable_dependency_tracking" != xno; then |
| 3023 | am_depcomp="$ac_aux_dir/depcomp" |
| 3024 | AMDEPBACKSLASH='\' |
| 3025 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3026 | if test "x$enable_dependency_tracking" != xno; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3027 | AMDEP_TRUE= |
| 3028 | AMDEP_FALSE='#' |
| 3029 | else |
| 3030 | AMDEP_TRUE='#' |
| 3031 | AMDEP_FALSE= |
| 3032 | fi |
| 3033 | |
| 3034 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3035 | ac_ext=c |
| 3036 | ac_cpp='$CPP $CPPFLAGS' |
| 3037 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3038 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3039 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3040 | if test -n "$ac_tool_prefix"; then |
| 3041 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3042 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3044 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3045 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3046 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3047 | else |
| 3048 | if test -n "$CC"; then |
| 3049 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3050 | else |
| 3051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3052 | for as_dir in $PATH |
| 3053 | do |
| 3054 | IFS=$as_save_IFS |
| 3055 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3058 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3060 | break 2 |
| 3061 | fi |
| 3062 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3063 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3064 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3065 | |
| 3066 | fi |
| 3067 | fi |
| 3068 | CC=$ac_cv_prog_CC |
| 3069 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3071 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3072 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3074 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3075 | fi |
| 3076 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3077 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3078 | fi |
| 3079 | if test -z "$ac_cv_prog_CC"; then |
| 3080 | ac_ct_CC=$CC |
| 3081 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3082 | set dummy gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3084 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3085 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3086 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3087 | else |
| 3088 | if test -n "$ac_ct_CC"; then |
| 3089 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3090 | else |
| 3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3092 | for as_dir in $PATH |
| 3093 | do |
| 3094 | IFS=$as_save_IFS |
| 3095 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3096 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3097 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3098 | ac_cv_prog_ac_ct_CC="gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3100 | break 2 |
| 3101 | fi |
| 3102 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3103 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3104 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3105 | |
| 3106 | fi |
| 3107 | fi |
| 3108 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3109 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3111 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3112 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3114 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3115 | fi |
| 3116 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3117 | if test "x$ac_ct_CC" = x; then |
| 3118 | CC="" |
| 3119 | else |
| 3120 | case $cross_compiling:$ac_tool_warned in |
| 3121 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3123 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3124 | ac_tool_warned=yes ;; |
| 3125 | esac |
| 3126 | CC=$ac_ct_CC |
| 3127 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3128 | else |
| 3129 | CC="$ac_cv_prog_CC" |
| 3130 | fi |
| 3131 | |
| 3132 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3133 | if test -n "$ac_tool_prefix"; then |
| 3134 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3135 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3137 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3138 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3139 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3140 | else |
| 3141 | if test -n "$CC"; then |
| 3142 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3143 | else |
| 3144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3145 | for as_dir in $PATH |
| 3146 | do |
| 3147 | IFS=$as_save_IFS |
| 3148 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3149 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3150 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3151 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3152 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3153 | break 2 |
| 3154 | fi |
| 3155 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3156 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3157 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3158 | |
| 3159 | fi |
| 3160 | fi |
| 3161 | CC=$ac_cv_prog_CC |
| 3162 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3164 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3165 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3167 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3168 | fi |
| 3169 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3170 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3171 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3172 | fi |
| 3173 | if test -z "$CC"; then |
| 3174 | # Extract the first word of "cc", so it can be a program name with args. |
| 3175 | set dummy cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3177 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3178 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3179 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3180 | else |
| 3181 | if test -n "$CC"; then |
| 3182 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3183 | else |
| 3184 | ac_prog_rejected=no |
| 3185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3186 | for as_dir in $PATH |
| 3187 | do |
| 3188 | IFS=$as_save_IFS |
| 3189 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3192 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3193 | ac_prog_rejected=yes |
| 3194 | continue |
| 3195 | fi |
| 3196 | ac_cv_prog_CC="cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3198 | break 2 |
| 3199 | fi |
| 3200 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3201 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3202 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3203 | |
| 3204 | if test $ac_prog_rejected = yes; then |
| 3205 | # We found a bogon in the path, so make sure we never use it. |
| 3206 | set dummy $ac_cv_prog_CC |
| 3207 | shift |
| 3208 | if test $# != 0; then |
| 3209 | # We chose a different compiler from the bogus one. |
| 3210 | # However, it has the same basename, so the bogon will be chosen |
| 3211 | # first if we set CC to just the basename; use the full file name. |
| 3212 | shift |
| 3213 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3214 | fi |
| 3215 | fi |
| 3216 | fi |
| 3217 | fi |
| 3218 | CC=$ac_cv_prog_CC |
| 3219 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3221 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3222 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3224 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3225 | fi |
| 3226 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3227 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3228 | fi |
| 3229 | if test -z "$CC"; then |
| 3230 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3231 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3232 | do |
| 3233 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3234 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3236 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3237 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3238 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3239 | else |
| 3240 | if test -n "$CC"; then |
| 3241 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3242 | else |
| 3243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3244 | for as_dir in $PATH |
| 3245 | do |
| 3246 | IFS=$as_save_IFS |
| 3247 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3248 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3249 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3250 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3252 | break 2 |
| 3253 | fi |
| 3254 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3255 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3256 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3257 | |
| 3258 | fi |
| 3259 | fi |
| 3260 | CC=$ac_cv_prog_CC |
| 3261 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3263 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3264 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3266 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3267 | fi |
| 3268 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3269 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3270 | test -n "$CC" && break |
| 3271 | done |
| 3272 | fi |
| 3273 | if test -z "$CC"; then |
| 3274 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3275 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3276 | do |
| 3277 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3278 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3280 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3281 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3282 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3283 | else |
| 3284 | if test -n "$ac_ct_CC"; then |
| 3285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3286 | else |
| 3287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3288 | for as_dir in $PATH |
| 3289 | do |
| 3290 | IFS=$as_save_IFS |
| 3291 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3294 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3296 | break 2 |
| 3297 | fi |
| 3298 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3299 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3300 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3301 | |
| 3302 | fi |
| 3303 | fi |
| 3304 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3305 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3307 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3308 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3310 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3311 | fi |
| 3312 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3313 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3314 | test -n "$ac_ct_CC" && break |
| 3315 | done |
| 3316 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3317 | if test "x$ac_ct_CC" = x; then |
| 3318 | CC="" |
| 3319 | else |
| 3320 | case $cross_compiling:$ac_tool_warned in |
| 3321 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3324 | ac_tool_warned=yes ;; |
| 3325 | esac |
| 3326 | CC=$ac_ct_CC |
| 3327 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3328 | fi |
| 3329 | |
| 3330 | fi |
| 3331 | |
| 3332 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3333 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3335 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3336 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3337 | |
| 3338 | # Provide some information about the compiler. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3339 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3340 | set X $ac_compile |
| 3341 | ac_compiler=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3342 | for ac_option in --version -v -V -qversion; do |
| 3343 | { { ac_try="$ac_compiler $ac_option >&5" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3344 | case "(($ac_try" in |
| 3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3346 | *) ac_try_echo=$ac_try;; |
| 3347 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3349 | $as_echo "$ac_try_echo"; } >&5 |
| 3350 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3351 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3352 | if test -s conftest.err; then |
| 3353 | sed '10a\ |
| 3354 | ... rest of stderr output deleted ... |
| 3355 | 10q' conftest.err >conftest.er1 |
| 3356 | cat conftest.er1 >&5 |
| 3357 | fi |
| 3358 | rm -f conftest.er1 conftest.err |
| 3359 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3360 | test $ac_status = 0; } |
| 3361 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3362 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3364 | /* end confdefs.h. */ |
| 3365 | |
| 3366 | int |
| 3367 | main () |
| 3368 | { |
| 3369 | |
| 3370 | ; |
| 3371 | return 0; |
| 3372 | } |
| 3373 | _ACEOF |
| 3374 | ac_clean_files_save=$ac_clean_files |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3375 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3376 | # Try to create an executable without -o first, disregard a.out. |
| 3377 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3378 | # of exeext. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3380 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3381 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3382 | |
| 3383 | # The possible output files: |
| 3384 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3385 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3386 | ac_rmfiles= |
| 3387 | for ac_file in $ac_files |
| 3388 | do |
| 3389 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3390 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3391 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3392 | esac |
| 3393 | done |
| 3394 | rm -f $ac_rmfiles |
| 3395 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3396 | if { { ac_try="$ac_link_default" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3397 | case "(($ac_try" in |
| 3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3399 | *) ac_try_echo=$ac_try;; |
| 3400 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3401 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3402 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3403 | (eval "$ac_link_default") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3404 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3405 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3406 | test $ac_status = 0; }; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3407 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3408 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3409 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3410 | # so that the user can short-circuit this test for compilers unknown to |
| 3411 | # Autoconf. |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3412 | for ac_file in $ac_files '' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3413 | do |
| 3414 | test -f "$ac_file" || continue |
| 3415 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3416 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3417 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3418 | [ab].out ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3419 | # We found the default executable, but exeext='' is most |
| 3420 | # certainly right. |
| 3421 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3422 | *.* ) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3423 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3424 | then :; else |
| 3425 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3426 | fi |
| 3427 | # We set ac_cv_exeext here because the later test for it is not |
| 3428 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3429 | # argument, so we may need to know it at that point already. |
| 3430 | # Even if this section looks crufty: it has the advantage of |
| 3431 | # actually working. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3432 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3433 | * ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3434 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3435 | esac |
| 3436 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3437 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3438 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3439 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3440 | ac_file='' |
| 3441 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3442 | if test -z "$ac_file"; then : |
| 3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3444 | $as_echo "no" >&6; } |
| 3445 | $as_echo "$as_me: failed program was:" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3447 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3448 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3449 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3450 | as_fn_error 77 "C compiler cannot create executables |
| 3451 | See \`config.log' for more details" "$LINENO" 5; } |
| 3452 | else |
| 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3454 | $as_echo "yes" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3455 | fi |
| 3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3457 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3459 | $as_echo "$ac_file" >&6; } |
| 3460 | ac_exeext=$ac_cv_exeext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3461 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3462 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3463 | ac_clean_files=$ac_clean_files_save |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3465 | $as_echo_n "checking for suffix of executables... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3466 | if { { ac_try="$ac_link" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3467 | case "(($ac_try" in |
| 3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3469 | *) ac_try_echo=$ac_try;; |
| 3470 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3472 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3473 | (eval "$ac_link") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3474 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3476 | test $ac_status = 0; }; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3477 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3478 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3479 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3480 | # `rm'. |
| 3481 | for ac_file in conftest.exe conftest conftest.*; do |
| 3482 | test -f "$ac_file" || continue |
| 3483 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3484 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3485 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3486 | break;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3487 | * ) break;; |
| 3488 | esac |
| 3489 | done |
| 3490 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3491 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3492 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3493 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3494 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3495 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3496 | rm -f conftest conftest$ac_cv_exeext |
| 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3498 | $as_echo "$ac_cv_exeext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3499 | |
| 3500 | rm -f conftest.$ac_ext |
| 3501 | EXEEXT=$ac_cv_exeext |
| 3502 | ac_exeext=$EXEEXT |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3504 | /* end confdefs.h. */ |
| 3505 | #include <stdio.h> |
| 3506 | int |
| 3507 | main () |
| 3508 | { |
| 3509 | FILE *f = fopen ("conftest.out", "w"); |
| 3510 | return ferror (f) || fclose (f) != 0; |
| 3511 | |
| 3512 | ; |
| 3513 | return 0; |
| 3514 | } |
| 3515 | _ACEOF |
| 3516 | ac_clean_files="$ac_clean_files conftest.out" |
| 3517 | # Check that the compiler produces executables we can run. If not, either |
| 3518 | # the compiler is broken, or we cross compile. |
| 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3520 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3521 | if test "$cross_compiling" != yes; then |
| 3522 | { { ac_try="$ac_link" |
| 3523 | case "(($ac_try" in |
| 3524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3525 | *) ac_try_echo=$ac_try;; |
| 3526 | esac |
| 3527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3528 | $as_echo "$ac_try_echo"; } >&5 |
| 3529 | (eval "$ac_link") 2>&5 |
| 3530 | ac_status=$? |
| 3531 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3532 | test $ac_status = 0; } |
| 3533 | if { ac_try='./conftest$ac_cv_exeext' |
| 3534 | { { case "(($ac_try" in |
| 3535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3536 | *) ac_try_echo=$ac_try;; |
| 3537 | esac |
| 3538 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3539 | $as_echo "$ac_try_echo"; } >&5 |
| 3540 | (eval "$ac_try") 2>&5 |
| 3541 | ac_status=$? |
| 3542 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3543 | test $ac_status = 0; }; }; then |
| 3544 | cross_compiling=no |
| 3545 | else |
| 3546 | if test "$cross_compiling" = maybe; then |
| 3547 | cross_compiling=yes |
| 3548 | else |
| 3549 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3550 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3551 | as_fn_error $? "cannot run C compiled programs. |
| 3552 | If you meant to cross compile, use \`--host'. |
| 3553 | See \`config.log' for more details" "$LINENO" 5; } |
| 3554 | fi |
| 3555 | fi |
| 3556 | fi |
| 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3558 | $as_echo "$cross_compiling" >&6; } |
| 3559 | |
| 3560 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3561 | ac_clean_files=$ac_clean_files_save |
| 3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3563 | $as_echo_n "checking for suffix of object files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3564 | if ${ac_cv_objext+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3565 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3566 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3568 | /* end confdefs.h. */ |
| 3569 | |
| 3570 | int |
| 3571 | main () |
| 3572 | { |
| 3573 | |
| 3574 | ; |
| 3575 | return 0; |
| 3576 | } |
| 3577 | _ACEOF |
| 3578 | rm -f conftest.o conftest.obj |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3579 | if { { ac_try="$ac_compile" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3580 | case "(($ac_try" in |
| 3581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3582 | *) ac_try_echo=$ac_try;; |
| 3583 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3584 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3585 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3586 | (eval "$ac_compile") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3587 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3588 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3589 | test $ac_status = 0; }; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3590 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3591 | test -f "$ac_file" || continue; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3592 | case $ac_file in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3593 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3594 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3595 | break;; |
| 3596 | esac |
| 3597 | done |
| 3598 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3599 | $as_echo "$as_me: failed program was:" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3600 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3601 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3602 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3603 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3604 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3605 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3606 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3607 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3608 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3610 | $as_echo "$ac_cv_objext" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3611 | OBJEXT=$ac_cv_objext |
| 3612 | ac_objext=$OBJEXT |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3614 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3615 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3616 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3617 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3619 | /* end confdefs.h. */ |
| 3620 | |
| 3621 | int |
| 3622 | main () |
| 3623 | { |
| 3624 | #ifndef __GNUC__ |
| 3625 | choke me |
| 3626 | #endif |
| 3627 | |
| 3628 | ; |
| 3629 | return 0; |
| 3630 | } |
| 3631 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3632 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3633 | ac_compiler_gnu=yes |
| 3634 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3635 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3636 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3638 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3639 | |
| 3640 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3642 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3643 | if test $ac_compiler_gnu = yes; then |
| 3644 | GCC=yes |
| 3645 | else |
| 3646 | GCC= |
| 3647 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3648 | ac_test_CFLAGS=${CFLAGS+set} |
| 3649 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3651 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3652 | if ${ac_cv_prog_cc_g+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3653 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3654 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3655 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3656 | ac_c_werror_flag=yes |
| 3657 | ac_cv_prog_cc_g=no |
| 3658 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3660 | /* end confdefs.h. */ |
| 3661 | |
| 3662 | int |
| 3663 | main () |
| 3664 | { |
| 3665 | |
| 3666 | ; |
| 3667 | return 0; |
| 3668 | } |
| 3669 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3670 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3671 | ac_cv_prog_cc_g=yes |
| 3672 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3673 | CFLAGS="" |
| 3674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3675 | /* end confdefs.h. */ |
| 3676 | |
| 3677 | int |
| 3678 | main () |
| 3679 | { |
| 3680 | |
| 3681 | ; |
| 3682 | return 0; |
| 3683 | } |
| 3684 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3685 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3686 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3687 | else |
| 3688 | ac_c_werror_flag=$ac_save_c_werror_flag |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3689 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3691 | /* end confdefs.h. */ |
| 3692 | |
| 3693 | int |
| 3694 | main () |
| 3695 | { |
| 3696 | |
| 3697 | ; |
| 3698 | return 0; |
| 3699 | } |
| 3700 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3701 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3702 | ac_cv_prog_cc_g=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3703 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3705 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3707 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3709 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3710 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3712 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3713 | if test "$ac_test_CFLAGS" = set; then |
| 3714 | CFLAGS=$ac_save_CFLAGS |
| 3715 | elif test $ac_cv_prog_cc_g = yes; then |
| 3716 | if test "$GCC" = yes; then |
| 3717 | CFLAGS="-g -O2" |
| 3718 | else |
| 3719 | CFLAGS="-g" |
| 3720 | fi |
| 3721 | else |
| 3722 | if test "$GCC" = yes; then |
| 3723 | CFLAGS="-O2" |
| 3724 | else |
| 3725 | CFLAGS= |
| 3726 | fi |
| 3727 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3729 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3730 | if ${ac_cv_prog_cc_c89+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3731 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3732 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3733 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3734 | ac_save_CC=$CC |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3736 | /* end confdefs.h. */ |
| 3737 | #include <stdarg.h> |
| 3738 | #include <stdio.h> |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3739 | struct stat; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3740 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3741 | struct buf { int x; }; |
| 3742 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3743 | static char *e (p, i) |
| 3744 | char **p; |
| 3745 | int i; |
| 3746 | { |
| 3747 | return p[i]; |
| 3748 | } |
| 3749 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3750 | { |
| 3751 | char *s; |
| 3752 | va_list v; |
| 3753 | va_start (v,p); |
| 3754 | s = g (p, va_arg (v,int)); |
| 3755 | va_end (v); |
| 3756 | return s; |
| 3757 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3758 | |
| 3759 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3760 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3761 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3762 | as 'x'. The following induces an error, until -std is added to get |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3763 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3764 | array size at least. It's necessary to write '\x00'==0 to get something |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3765 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3766 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3767 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3768 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3769 | inside strings and character constants. */ |
| 3770 | #define FOO(x) 'x' |
| 3771 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3772 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3773 | int test (int i, double x); |
| 3774 | struct s1 {int (*f) (int a);}; |
| 3775 | struct s2 {int (*f) (double a);}; |
| 3776 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3777 | int argc; |
| 3778 | char **argv; |
| 3779 | int |
| 3780 | main () |
| 3781 | { |
| 3782 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3783 | ; |
| 3784 | return 0; |
| 3785 | } |
| 3786 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3787 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3788 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3789 | do |
| 3790 | CC="$ac_save_CC $ac_arg" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3791 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3792 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3793 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3794 | rm -f core conftest.err conftest.$ac_objext |
| 3795 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3796 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3797 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3798 | CC=$ac_save_CC |
| 3799 | |
| 3800 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3801 | # AC_CACHE_VAL |
| 3802 | case "x$ac_cv_prog_cc_c89" in |
| 3803 | x) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3805 | $as_echo "none needed" >&6; } ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3806 | xno) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3808 | $as_echo "unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3809 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 3810 | CC="$CC $ac_cv_prog_cc_c89" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3812 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3813 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3814 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3815 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3816 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3817 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3818 | ac_ext=c |
| 3819 | ac_cpp='$CPP $CPPFLAGS' |
| 3820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3823 | |
| 3824 | depcc="$CC" am_compiler_list= |
| 3825 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3827 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3828 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3829 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3830 | else |
| 3831 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3832 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3833 | # making bogus files that we don't know about and never remove. For |
| 3834 | # instance it was reported that on HP-UX the gcc test will end up |
| 3835 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3836 | # in D'. |
| 3837 | mkdir conftest.dir |
| 3838 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3839 | # using a relative directory. |
| 3840 | cp "$am_depcomp" conftest.dir |
| 3841 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3842 | # We will build objects and dependencies in a subdirectory because |
| 3843 | # it helps to detect inapplicable dependency modes. For instance |
| 3844 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3845 | # side effect of compilation, but ICC will put the dependencies in |
| 3846 | # the current directory while Tru64 will put them in the object |
| 3847 | # directory. |
| 3848 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3849 | |
| 3850 | am_cv_CC_dependencies_compiler_type=none |
| 3851 | if test "$am_compiler_list" = ""; then |
| 3852 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3853 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3854 | am__universal=false |
| 3855 | case " $depcc " in #( |
| 3856 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3857 | esac |
| 3858 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3859 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3860 | # Setup a source with many dependencies, because some compilers |
| 3861 | # like to wrap large dependency lists on column 80 (with \), and |
| 3862 | # we should not choose a depcomp mode which is confused by this. |
| 3863 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3864 | # We need to recreate these files for each test, as the compiler may |
| 3865 | # overwrite some of them when testing with obscure command lines. |
| 3866 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3867 | : > sub/conftest.c |
| 3868 | for i in 1 2 3 4 5 6; do |
| 3869 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3870 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3871 | # Solaris 8's {/usr,}/bin/sh. |
| 3872 | touch sub/conftst$i.h |
| 3873 | done |
| 3874 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3875 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3876 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3877 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3878 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3879 | # versions had trouble with output in subdirs |
| 3880 | am__obj=sub/conftest.${OBJEXT-o} |
| 3881 | am__minus_obj="-o $am__obj" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3882 | case $depmode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3883 | gcc) |
| 3884 | # This depmode causes a compiler race in universal mode. |
| 3885 | test "$am__universal" = false || continue |
| 3886 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3887 | nosideeffect) |
| 3888 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3889 | # only be used when explicitly requested |
| 3890 | if test "x$enable_dependency_tracking" = xyes; then |
| 3891 | continue |
| 3892 | else |
| 3893 | break |
| 3894 | fi |
| 3895 | ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3896 | msvisualcpp | msvcmsys) |
| 3897 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3898 | # not run yet. These depmodes are late enough in the game, and |
| 3899 | # so weak that their functioning should not be impacted. |
| 3900 | am__obj=conftest.${OBJEXT-o} |
| 3901 | am__minus_obj= |
| 3902 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3903 | none) break ;; |
| 3904 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3905 | if depmode=$depmode \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3906 | source=sub/conftest.c object=$am__obj \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3907 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3908 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3909 | >/dev/null 2>conftest.err && |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3910 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3911 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3912 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3913 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3914 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3915 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3916 | # that says an option was ignored or not supported. |
| 3917 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3918 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3919 | # The diagnosis changed in icc 8.0: |
| 3920 | # icc: Command line remark: option '-MP' not supported |
| 3921 | if (grep 'ignoring option' conftest.err || |
| 3922 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3923 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3924 | break |
| 3925 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3926 | fi |
| 3927 | done |
| 3928 | |
| 3929 | cd .. |
| 3930 | rm -rf conftest.dir |
| 3931 | else |
| 3932 | am_cv_CC_dependencies_compiler_type=none |
| 3933 | fi |
| 3934 | |
| 3935 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3937 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3938 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3939 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 3940 | if |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3941 | test "x$enable_dependency_tracking" != xno \ |
| 3942 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3943 | am__fastdepCC_TRUE= |
| 3944 | am__fastdepCC_FALSE='#' |
| 3945 | else |
| 3946 | am__fastdepCC_TRUE='#' |
| 3947 | am__fastdepCC_FALSE= |
| 3948 | fi |
| 3949 | |
| 3950 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3952 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3953 | if ${ac_cv_path_SED+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3954 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3955 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3956 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 3957 | for ac_i in 1 2 3 4 5 6 7; do |
| 3958 | ac_script="$ac_script$as_nl$ac_script" |
| 3959 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3960 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3961 | { ac_script=; unset ac_script;} |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3962 | if test -z "$SED"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3963 | ac_path_SED_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3964 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3966 | for as_dir in $PATH |
| 3967 | do |
| 3968 | IFS=$as_save_IFS |
| 3969 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3970 | for ac_prog in sed gsed; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3971 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3972 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3973 | as_fn_executable_p "$ac_path_SED" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3974 | # Check for GNU ac_path_SED and select it if it is found. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3975 | # Check for GNU $ac_path_SED |
| 3976 | case `"$ac_path_SED" --version 2>&1` in |
| 3977 | *GNU*) |
| 3978 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 3979 | *) |
| 3980 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3981 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3982 | while : |
| 3983 | do |
| 3984 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3985 | mv "conftest.tmp" "conftest.in" |
| 3986 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 3987 | $as_echo '' >> "conftest.nl" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3988 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3989 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 3990 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3991 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 3992 | # Best one so far, save it but keep looking for a better one |
| 3993 | ac_cv_path_SED="$ac_path_SED" |
| 3994 | ac_path_SED_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 3995 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 3996 | # 10*(2^10) chars as input seems more than enough |
| 3997 | test $ac_count -gt 10 && break |
| 3998 | done |
| 3999 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4000 | esac |
| 4001 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4002 | $ac_path_SED_found && break 3 |
| 4003 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4004 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4005 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4006 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4007 | if test -z "$ac_cv_path_SED"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4008 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4009 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4010 | else |
| 4011 | ac_cv_path_SED=$SED |
| 4012 | fi |
| 4013 | |
| 4014 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4016 | $as_echo "$ac_cv_path_SED" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4017 | SED="$ac_cv_path_SED" |
| 4018 | rm -f conftest.sed |
| 4019 | |
| 4020 | test -z "$SED" && SED=sed |
| 4021 | Xsed="$SED -e 1s/^X//" |
| 4022 | |
| 4023 | |
| 4024 | |
| 4025 | |
| 4026 | |
| 4027 | |
| 4028 | |
| 4029 | |
| 4030 | |
| 4031 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4032 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4034 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4035 | if ${ac_cv_path_GREP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4036 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4037 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4038 | if test -z "$GREP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4039 | ac_path_GREP_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4040 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4042 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4043 | do |
| 4044 | IFS=$as_save_IFS |
| 4045 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4046 | for ac_prog in grep ggrep; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4047 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4048 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4049 | as_fn_executable_p "$ac_path_GREP" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4050 | # Check for GNU ac_path_GREP and select it if it is found. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4051 | # Check for GNU $ac_path_GREP |
| 4052 | case `"$ac_path_GREP" --version 2>&1` in |
| 4053 | *GNU*) |
| 4054 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4055 | *) |
| 4056 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4057 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4058 | while : |
| 4059 | do |
| 4060 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4061 | mv "conftest.tmp" "conftest.in" |
| 4062 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4063 | $as_echo 'GREP' >> "conftest.nl" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4064 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4065 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4066 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4067 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4068 | # Best one so far, save it but keep looking for a better one |
| 4069 | ac_cv_path_GREP="$ac_path_GREP" |
| 4070 | ac_path_GREP_max=$ac_count |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4071 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4072 | # 10*(2^10) chars as input seems more than enough |
| 4073 | test $ac_count -gt 10 && break |
| 4074 | done |
| 4075 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4076 | esac |
| 4077 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4078 | $ac_path_GREP_found && break 3 |
| 4079 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4080 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4081 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4082 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4083 | if test -z "$ac_cv_path_GREP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4084 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4085 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4086 | else |
| 4087 | ac_cv_path_GREP=$GREP |
| 4088 | fi |
| 4089 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4090 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4092 | $as_echo "$ac_cv_path_GREP" >&6; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4093 | GREP="$ac_cv_path_GREP" |
| 4094 | |
| 4095 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4097 | $as_echo_n "checking for egrep... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4098 | if ${ac_cv_path_EGREP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4099 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4100 | else |
| 4101 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4102 | then ac_cv_path_EGREP="$GREP -E" |
| 4103 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4104 | if test -z "$EGREP"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4105 | ac_path_EGREP_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4106 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4108 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4109 | do |
| 4110 | IFS=$as_save_IFS |
| 4111 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4112 | for ac_prog in egrep; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4113 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4114 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4115 | as_fn_executable_p "$ac_path_EGREP" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4116 | # Check for GNU ac_path_EGREP and select it if it is found. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4117 | # Check for GNU $ac_path_EGREP |
| 4118 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4119 | *GNU*) |
| 4120 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4121 | *) |
| 4122 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4123 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4124 | while : |
| 4125 | do |
| 4126 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4127 | mv "conftest.tmp" "conftest.in" |
| 4128 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4129 | $as_echo 'EGREP' >> "conftest.nl" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4130 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4131 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4132 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4133 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4134 | # Best one so far, save it but keep looking for a better one |
| 4135 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4136 | ac_path_EGREP_max=$ac_count |
| 4137 | fi |
| 4138 | # 10*(2^10) chars as input seems more than enough |
| 4139 | test $ac_count -gt 10 && break |
| 4140 | done |
| 4141 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4142 | esac |
| 4143 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4144 | $ac_path_EGREP_found && break 3 |
| 4145 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4146 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4147 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4148 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4149 | if test -z "$ac_cv_path_EGREP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4150 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4151 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4152 | else |
| 4153 | ac_cv_path_EGREP=$EGREP |
| 4154 | fi |
| 4155 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4156 | fi |
| 4157 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4159 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4160 | EGREP="$ac_cv_path_EGREP" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4161 | |
| 4162 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4164 | $as_echo_n "checking for fgrep... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4165 | if ${ac_cv_path_FGREP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4166 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4167 | else |
| 4168 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4169 | then ac_cv_path_FGREP="$GREP -F" |
| 4170 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4171 | if test -z "$FGREP"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4172 | ac_path_FGREP_found=false |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4173 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4175 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4176 | do |
| 4177 | IFS=$as_save_IFS |
| 4178 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4179 | for ac_prog in fgrep; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4181 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4182 | as_fn_executable_p "$ac_path_FGREP" || continue |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4183 | # Check for GNU ac_path_FGREP and select it if it is found. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4184 | # Check for GNU $ac_path_FGREP |
| 4185 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4186 | *GNU*) |
| 4187 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4188 | *) |
| 4189 | ac_count=0 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4190 | $as_echo_n 0123456789 >"conftest.in" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4191 | while : |
| 4192 | do |
| 4193 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4194 | mv "conftest.tmp" "conftest.in" |
| 4195 | cp "conftest.in" "conftest.nl" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4196 | $as_echo 'FGREP' >> "conftest.nl" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4197 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4198 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4199 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4200 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4201 | # Best one so far, save it but keep looking for a better one |
| 4202 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4203 | ac_path_FGREP_max=$ac_count |
| 4204 | fi |
| 4205 | # 10*(2^10) chars as input seems more than enough |
| 4206 | test $ac_count -gt 10 && break |
| 4207 | done |
| 4208 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4209 | esac |
| 4210 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4211 | $ac_path_FGREP_found && break 3 |
| 4212 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4213 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4214 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4215 | IFS=$as_save_IFS |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4216 | if test -z "$ac_cv_path_FGREP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4217 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4218 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4219 | else |
| 4220 | ac_cv_path_FGREP=$FGREP |
| 4221 | fi |
| 4222 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4223 | fi |
| 4224 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4226 | $as_echo "$ac_cv_path_FGREP" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4227 | FGREP="$ac_cv_path_FGREP" |
| 4228 | |
| 4229 | |
| 4230 | test -z "$GREP" && GREP=grep |
| 4231 | |
| 4232 | |
| 4233 | |
| 4234 | |
| 4235 | |
| 4236 | |
| 4237 | |
| 4238 | |
| 4239 | |
| 4240 | |
| 4241 | |
| 4242 | |
| 4243 | |
| 4244 | |
| 4245 | |
| 4246 | |
| 4247 | |
| 4248 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4249 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4250 | # Check whether --with-gnu-ld was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4251 | if test "${with_gnu_ld+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4252 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4253 | else |
| 4254 | with_gnu_ld=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 4255 | fi |
| 4256 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4257 | ac_prog=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4258 | if test "$GCC" = yes; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4259 | # Check if gcc -print-prog-name=ld gives a path. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4261 | $as_echo_n "checking for ld used by $CC... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4262 | case $host in |
| 4263 | *-*-mingw*) |
| 4264 | # gcc leaves a trailing carriage return which upsets mingw |
| 4265 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4266 | *) |
| 4267 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4268 | esac |
| 4269 | case $ac_prog in |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4270 | # Accept absolute paths. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4271 | [\\/]* | ?:[\\/]*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4272 | re_direlt='/[^/][^/]*/\.\./' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4273 | # Canonicalize the pathname of ld |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4274 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4275 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4276 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4277 | done |
| 4278 | test -z "$LD" && LD="$ac_prog" |
| 4279 | ;; |
| 4280 | "") |
| 4281 | # If it fails, then pretend we aren't using GCC. |
| 4282 | ac_prog=ld |
| 4283 | ;; |
| 4284 | *) |
| 4285 | # If it is relative, then search for the first ld in PATH. |
| 4286 | with_gnu_ld=unknown |
| 4287 | ;; |
| 4288 | esac |
| 4289 | elif test "$with_gnu_ld" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4291 | $as_echo_n "checking for GNU ld... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4292 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4294 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4295 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4296 | if ${lt_cv_path_LD+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4297 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4298 | else |
| 4299 | if test -z "$LD"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4300 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4301 | for ac_dir in $PATH; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4302 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4303 | test -z "$ac_dir" && ac_dir=. |
| 4304 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4305 | lt_cv_path_LD="$ac_dir/$ac_prog" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4306 | # Check to see if the program is GNU ld. I'd rather use --version, |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4307 | # but apparently some variants of GNU ld only accept -v. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4308 | # Break only if it was the GNU/non-GNU ld that we prefer. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4309 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4310 | *GNU* | *'with BFD'*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4311 | test "$with_gnu_ld" != no && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4312 | ;; |
| 4313 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4314 | test "$with_gnu_ld" != yes && break |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4315 | ;; |
| 4316 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4317 | fi |
| 4318 | done |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4319 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4320 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4321 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4322 | fi |
| 4323 | fi |
| 4324 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4325 | LD="$lt_cv_path_LD" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4326 | if test -n "$LD"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4328 | $as_echo "$LD" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4329 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4331 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4332 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4333 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4335 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4336 | if ${lt_cv_prog_gnu_ld+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4337 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4338 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4339 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4340 | case `$LD -v 2>&1 </dev/null` in |
| 4341 | *GNU* | *'with BFD'*) |
| 4342 | lt_cv_prog_gnu_ld=yes |
| 4343 | ;; |
| 4344 | *) |
| 4345 | lt_cv_prog_gnu_ld=no |
| 4346 | ;; |
| 4347 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4348 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4350 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4351 | with_gnu_ld=$lt_cv_prog_gnu_ld |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4352 | |
| 4353 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4354 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4355 | |
| 4356 | |
| 4357 | |
| 4358 | |
| 4359 | |
| 4360 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4362 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4363 | if ${lt_cv_path_NM+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4364 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4365 | else |
| 4366 | if test -n "$NM"; then |
| 4367 | # Let the user override the test. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4368 | lt_cv_path_NM="$NM" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4369 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4370 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4371 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4372 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4373 | fi |
| 4374 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4375 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4376 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4377 | IFS="$lt_save_ifs" |
| 4378 | test -z "$ac_dir" && ac_dir=. |
| 4379 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4380 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4381 | # Check to see if the nm accepts a BSD-compat flag. |
| 4382 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4383 | # nm: unknown option "B" ignored |
| 4384 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4385 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4386 | */dev/null* | *'Invalid file or object type'*) |
| 4387 | lt_cv_path_NM="$tmp_nm -B" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4388 | break |
| 4389 | ;; |
| 4390 | *) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4391 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4392 | */dev/null*) |
| 4393 | lt_cv_path_NM="$tmp_nm -p" |
| 4394 | break |
| 4395 | ;; |
| 4396 | *) |
| 4397 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4398 | continue # so that we can try to find one that supports BSD flags |
| 4399 | ;; |
| 4400 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4401 | ;; |
| 4402 | esac |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 4403 | fi |
| 4404 | done |
| 4405 | IFS="$lt_save_ifs" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4406 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4407 | : ${lt_cv_path_NM=no} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4408 | fi |
| 4409 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4411 | $as_echo "$lt_cv_path_NM" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4412 | if test "$lt_cv_path_NM" != "no"; then |
| 4413 | NM="$lt_cv_path_NM" |
| 4414 | else |
| 4415 | # Didn't find any BSD compatible name lister, look for dumpbin. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4416 | if test -n "$DUMPBIN"; then : |
| 4417 | # Let the user override the test. |
| 4418 | else |
| 4419 | if test -n "$ac_tool_prefix"; then |
| 4420 | for ac_prog in dumpbin "link -dump" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4421 | do |
| 4422 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4423 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4425 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4426 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4427 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4428 | else |
| 4429 | if test -n "$DUMPBIN"; then |
| 4430 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4431 | else |
| 4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4433 | for as_dir in $PATH |
| 4434 | do |
| 4435 | IFS=$as_save_IFS |
| 4436 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4438 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4439 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4441 | break 2 |
| 4442 | fi |
| 4443 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4444 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4445 | IFS=$as_save_IFS |
| 4446 | |
| 4447 | fi |
| 4448 | fi |
| 4449 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4450 | if test -n "$DUMPBIN"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4452 | $as_echo "$DUMPBIN" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4453 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4455 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4456 | fi |
| 4457 | |
| 4458 | |
| 4459 | test -n "$DUMPBIN" && break |
| 4460 | done |
| 4461 | fi |
| 4462 | if test -z "$DUMPBIN"; then |
| 4463 | ac_ct_DUMPBIN=$DUMPBIN |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4464 | for ac_prog in dumpbin "link -dump" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4465 | do |
| 4466 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4467 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4469 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4470 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4471 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4472 | else |
| 4473 | if test -n "$ac_ct_DUMPBIN"; then |
| 4474 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4475 | else |
| 4476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4477 | for as_dir in $PATH |
| 4478 | do |
| 4479 | IFS=$as_save_IFS |
| 4480 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4481 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4482 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4483 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4484 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4485 | break 2 |
| 4486 | fi |
| 4487 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4488 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4489 | IFS=$as_save_IFS |
| 4490 | |
| 4491 | fi |
| 4492 | fi |
| 4493 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4494 | if test -n "$ac_ct_DUMPBIN"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4496 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4497 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4499 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | test -n "$ac_ct_DUMPBIN" && break |
| 4504 | done |
| 4505 | |
| 4506 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4507 | DUMPBIN=":" |
| 4508 | else |
| 4509 | case $cross_compiling:$ac_tool_warned in |
| 4510 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4512 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4513 | ac_tool_warned=yes ;; |
| 4514 | esac |
| 4515 | DUMPBIN=$ac_ct_DUMPBIN |
| 4516 | fi |
| 4517 | fi |
| 4518 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4519 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 4520 | *COFF*) |
| 4521 | DUMPBIN="$DUMPBIN -symbols" |
| 4522 | ;; |
| 4523 | *) |
| 4524 | DUMPBIN=: |
| 4525 | ;; |
| 4526 | esac |
| 4527 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4528 | |
| 4529 | if test "$DUMPBIN" != ":"; then |
| 4530 | NM="$DUMPBIN" |
| 4531 | fi |
| 4532 | fi |
| 4533 | test -z "$NM" && NM=nm |
| 4534 | |
| 4535 | |
| 4536 | |
| 4537 | |
| 4538 | |
| 4539 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4541 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4542 | if ${lt_cv_nm_interface+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4543 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4544 | else |
| 4545 | lt_cv_nm_interface="BSD nm" |
| 4546 | echo "int some_variable = 0;" > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4547 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4548 | (eval "$ac_compile" 2>conftest.err) |
| 4549 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4550 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4551 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4552 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4553 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4554 | cat conftest.out >&5 |
| 4555 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4556 | lt_cv_nm_interface="MS dumpbin" |
| 4557 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4558 | rm -f conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4559 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4561 | $as_echo "$lt_cv_nm_interface" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4562 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4564 | $as_echo_n "checking whether ln -s works... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4565 | LN_S=$as_ln_s |
| 4566 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4568 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4569 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4571 | $as_echo "no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4572 | fi |
| 4573 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4574 | # find the maximum length of command line arguments |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4576 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4577 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4578 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4579 | else |
| 4580 | i=0 |
| 4581 | teststring="ABCD" |
| 4582 | |
| 4583 | case $build_os in |
| 4584 | msdosdjgpp*) |
| 4585 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4586 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4587 | # during glob expansion). Even if it were fixed, the result of this |
| 4588 | # check would be larger than it should be. |
| 4589 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4590 | ;; |
| 4591 | |
| 4592 | gnu*) |
| 4593 | # Under GNU Hurd, this test is not required because there is |
| 4594 | # no limit to the length of command line arguments. |
| 4595 | # Libtool will interpret -1 as no limit whatsoever |
| 4596 | lt_cv_sys_max_cmd_len=-1; |
| 4597 | ;; |
| 4598 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4599 | cygwin* | mingw* | cegcc*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4600 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4601 | # about 5 minutes as the teststring grows exponentially. |
| 4602 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4603 | # you end up with a "frozen" computer, even though with patience |
| 4604 | # the test eventually succeeds (with a max line length of 256k). |
| 4605 | # Instead, let's just punt: use the minimum linelength reported by |
| 4606 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4607 | lt_cv_sys_max_cmd_len=8192; |
| 4608 | ;; |
| 4609 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4610 | mint*) |
| 4611 | # On MiNT this can take a long time and run out of memory. |
| 4612 | lt_cv_sys_max_cmd_len=8192; |
| 4613 | ;; |
| 4614 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4615 | amigaos*) |
| 4616 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4617 | # So we just punt and use a minimum line length of 8192. |
| 4618 | lt_cv_sys_max_cmd_len=8192; |
| 4619 | ;; |
| 4620 | |
| 4621 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 4622 | # This has been around since 386BSD, at least. Likely further. |
| 4623 | if test -x /sbin/sysctl; then |
| 4624 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4625 | elif test -x /usr/sbin/sysctl; then |
| 4626 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4627 | else |
| 4628 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4629 | fi |
| 4630 | # And add a safety zone |
| 4631 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4632 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4633 | ;; |
| 4634 | |
| 4635 | interix*) |
| 4636 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4637 | lt_cv_sys_max_cmd_len=196608 |
| 4638 | ;; |
| 4639 | |
| 4640 | osf*) |
| 4641 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4642 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4643 | # nice to cause kernel panics so lets avoid the loop below. |
| 4644 | # First set a reasonable default. |
| 4645 | lt_cv_sys_max_cmd_len=16384 |
| 4646 | # |
| 4647 | if test -x /sbin/sysconfig; then |
| 4648 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4649 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4650 | esac |
| 4651 | fi |
| 4652 | ;; |
| 4653 | sco3.2v5*) |
| 4654 | lt_cv_sys_max_cmd_len=102400 |
| 4655 | ;; |
| 4656 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4657 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4658 | if test -n "$kargmax"; then |
| 4659 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4660 | else |
| 4661 | lt_cv_sys_max_cmd_len=32768 |
| 4662 | fi |
| 4663 | ;; |
| 4664 | *) |
| 4665 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4666 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 4667 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4668 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4669 | else |
| 4670 | # Make teststring a little bigger before we do anything with it. |
| 4671 | # a 1K string should be a reasonable start. |
| 4672 | for i in 1 2 3 4 5 6 7 8 ; do |
| 4673 | teststring=$teststring$teststring |
| 4674 | done |
| 4675 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 4676 | # If test is not a shell built-in, we'll probably end up computing a |
| 4677 | # maximum length that is only half of the actual maximum length, but |
| 4678 | # we can't tell. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4679 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
| 4680 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4681 | test $i != 17 # 1/2 MB should be enough |
| 4682 | do |
| 4683 | i=`expr $i + 1` |
| 4684 | teststring=$teststring$teststring |
| 4685 | done |
| 4686 | # Only check the string length outside the loop. |
| 4687 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 4688 | teststring= |
| 4689 | # Add a significant safety factor because C++ compilers can tack on |
| 4690 | # massive amounts of additional arguments before passing them to the |
| 4691 | # linker. It appears as though 1/2 is a usable value. |
| 4692 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 4693 | fi |
| 4694 | ;; |
| 4695 | esac |
| 4696 | |
| 4697 | fi |
| 4698 | |
| 4699 | if test -n $lt_cv_sys_max_cmd_len ; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4701 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4702 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4704 | $as_echo "none" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4705 | fi |
| 4706 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | |
| 4711 | |
| 4712 | |
| 4713 | : ${CP="cp -f"} |
| 4714 | : ${MV="mv -f"} |
| 4715 | : ${RM="rm -f"} |
| 4716 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4718 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4719 | # Try some XSI features |
| 4720 | xsi_shell=no |
| 4721 | ( _lt_dummy="a/b/c" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4722 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 4723 | = c,a/b,b/c, \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4724 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 4725 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 4726 | && xsi_shell=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4728 | $as_echo "$xsi_shell" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4729 | |
| 4730 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4732 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4733 | lt_shell_append=no |
| 4734 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 4735 | >/dev/null 2>&1 \ |
| 4736 | && lt_shell_append=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4738 | $as_echo "$lt_shell_append" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4739 | |
| 4740 | |
| 4741 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4742 | lt_unset=unset |
| 4743 | else |
| 4744 | lt_unset=false |
| 4745 | fi |
| 4746 | |
| 4747 | |
| 4748 | |
| 4749 | |
| 4750 | |
| 4751 | # test EBCDIC or ASCII |
| 4752 | case `echo X|tr X '\101'` in |
| 4753 | A) # ASCII based system |
| 4754 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 4755 | lt_SP2NL='tr \040 \012' |
| 4756 | lt_NL2SP='tr \015\012 \040\040' |
| 4757 | ;; |
| 4758 | *) # EBCDIC based system |
| 4759 | lt_SP2NL='tr \100 \n' |
| 4760 | lt_NL2SP='tr \r\n \100\100' |
| 4761 | ;; |
| 4762 | esac |
| 4763 | |
| 4764 | |
| 4765 | |
| 4766 | |
| 4767 | |
| 4768 | |
| 4769 | |
| 4770 | |
| 4771 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 4773 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 4774 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 4775 | $as_echo_n "(cached) " >&6 |
| 4776 | else |
| 4777 | case $host in |
| 4778 | *-*-mingw* ) |
| 4779 | case $build in |
| 4780 | *-*-mingw* ) # actually msys |
| 4781 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 4782 | ;; |
| 4783 | *-*-cygwin* ) |
| 4784 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 4785 | ;; |
| 4786 | * ) # otherwise, assume *nix |
| 4787 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 4788 | ;; |
| 4789 | esac |
| 4790 | ;; |
| 4791 | *-*-cygwin* ) |
| 4792 | case $build in |
| 4793 | *-*-mingw* ) # actually msys |
| 4794 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 4795 | ;; |
| 4796 | *-*-cygwin* ) |
| 4797 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4798 | ;; |
| 4799 | * ) # otherwise, assume *nix |
| 4800 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 4801 | ;; |
| 4802 | esac |
| 4803 | ;; |
| 4804 | * ) # unhandled hosts (and "normal" native builds) |
| 4805 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 4806 | ;; |
| 4807 | esac |
| 4808 | |
| 4809 | fi |
| 4810 | |
| 4811 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 4813 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 4814 | |
| 4815 | |
| 4816 | |
| 4817 | |
| 4818 | |
| 4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 4820 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 4821 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 4822 | $as_echo_n "(cached) " >&6 |
| 4823 | else |
| 4824 | #assume ordinary cross tools, or native build. |
| 4825 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 4826 | case $host in |
| 4827 | *-*-mingw* ) |
| 4828 | case $build in |
| 4829 | *-*-mingw* ) # actually msys |
| 4830 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 4831 | ;; |
| 4832 | esac |
| 4833 | ;; |
| 4834 | esac |
| 4835 | |
| 4836 | fi |
| 4837 | |
| 4838 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 4840 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | |
| 4845 | |
| 4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4847 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4848 | if ${lt_cv_ld_reload_flag+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4849 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4850 | else |
| 4851 | lt_cv_ld_reload_flag='-r' |
| 4852 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4854 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4855 | reload_flag=$lt_cv_ld_reload_flag |
| 4856 | case $reload_flag in |
| 4857 | "" | " "*) ;; |
| 4858 | *) reload_flag=" $reload_flag" ;; |
| 4859 | esac |
| 4860 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4861 | case $host_os in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4862 | cygwin* | mingw* | pw32* | cegcc*) |
| 4863 | if test "$GCC" != yes; then |
| 4864 | reload_cmds=false |
| 4865 | fi |
| 4866 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4867 | darwin*) |
| 4868 | if test "$GCC" = yes; then |
| 4869 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 4870 | else |
| 4871 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 4872 | fi |
| 4873 | ;; |
| 4874 | esac |
| 4875 | |
| 4876 | |
| 4877 | |
| 4878 | |
| 4879 | |
| 4880 | |
| 4881 | |
| 4882 | |
| 4883 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4884 | if test -n "$ac_tool_prefix"; then |
| 4885 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 4886 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4888 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4889 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 4890 | $as_echo_n "(cached) " >&6 |
| 4891 | else |
| 4892 | if test -n "$OBJDUMP"; then |
| 4893 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 4894 | else |
| 4895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4896 | for as_dir in $PATH |
| 4897 | do |
| 4898 | IFS=$as_save_IFS |
| 4899 | test -z "$as_dir" && as_dir=. |
| 4900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4902 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 4903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4904 | break 2 |
| 4905 | fi |
| 4906 | done |
| 4907 | done |
| 4908 | IFS=$as_save_IFS |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 4909 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4910 | fi |
| 4911 | fi |
| 4912 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 4913 | if test -n "$OBJDUMP"; then |
| 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 4915 | $as_echo "$OBJDUMP" >&6; } |
| 4916 | else |
| 4917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4918 | $as_echo "no" >&6; } |
| 4919 | fi |
| 4920 | |
| 4921 | |
| 4922 | fi |
| 4923 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 4924 | ac_ct_OBJDUMP=$OBJDUMP |
| 4925 | # Extract the first word of "objdump", so it can be a program name with args. |
| 4926 | set dummy objdump; ac_word=$2 |
| 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4928 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4929 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 4930 | $as_echo_n "(cached) " >&6 |
| 4931 | else |
| 4932 | if test -n "$ac_ct_OBJDUMP"; then |
| 4933 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 4934 | else |
| 4935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4936 | for as_dir in $PATH |
| 4937 | do |
| 4938 | IFS=$as_save_IFS |
| 4939 | test -z "$as_dir" && as_dir=. |
| 4940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4942 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 4943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4944 | break 2 |
| 4945 | fi |
| 4946 | done |
| 4947 | done |
| 4948 | IFS=$as_save_IFS |
| 4949 | |
| 4950 | fi |
| 4951 | fi |
| 4952 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 4953 | if test -n "$ac_ct_OBJDUMP"; then |
| 4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 4955 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 4956 | else |
| 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4958 | $as_echo "no" >&6; } |
| 4959 | fi |
| 4960 | |
| 4961 | if test "x$ac_ct_OBJDUMP" = x; then |
| 4962 | OBJDUMP="false" |
| 4963 | else |
| 4964 | case $cross_compiling:$ac_tool_warned in |
| 4965 | yes:) |
| 4966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4967 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4968 | ac_tool_warned=yes ;; |
| 4969 | esac |
| 4970 | OBJDUMP=$ac_ct_OBJDUMP |
| 4971 | fi |
| 4972 | else |
| 4973 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 4974 | fi |
| 4975 | |
| 4976 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 4977 | |
| 4978 | |
| 4979 | |
| 4980 | |
| 4981 | |
| 4982 | |
| 4983 | |
| 4984 | |
| 4985 | |
| 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4987 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 4988 | if ${lt_cv_deplibs_check_method+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 4989 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 4990 | else |
| 4991 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 4992 | lt_cv_file_magic_test_file= |
| 4993 | lt_cv_deplibs_check_method='unknown' |
| 4994 | # Need to set the preceding variable on all platforms that support |
| 4995 | # interlibrary dependencies. |
| 4996 | # 'none' -- dependencies not supported. |
| 4997 | # `unknown' -- same as none, but documents that we really don't know. |
| 4998 | # 'pass_all' -- all dependencies passed with no checks. |
| 4999 | # 'test_compile' -- check by making test program. |
| 5000 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5001 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5002 | # If you have `file' or equivalent on your system and you're not sure |
| 5003 | # whether `pass_all' will *always* work, you probably want this one. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5004 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5005 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5006 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5007 | lt_cv_deplibs_check_method=pass_all |
| 5008 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5009 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5010 | beos*) |
| 5011 | lt_cv_deplibs_check_method=pass_all |
| 5012 | ;; |
| 5013 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5014 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5015 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5016 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5017 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5018 | ;; |
| 5019 | |
| 5020 | cygwin*) |
| 5021 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5022 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5023 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5024 | ;; |
| 5025 | |
| 5026 | mingw* | pw32*) |
| 5027 | # Base MSYS/MinGW do not provide the 'file' command needed by |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5028 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5029 | # unless we find 'file', for example because we are cross-compiling. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5030 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5031 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5032 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5033 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5034 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5035 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5036 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5037 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5038 | fi |
| 5039 | ;; |
| 5040 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5041 | cegcc*) |
| 5042 | # use the weaker test based on 'objdump'. See mingw*. |
| 5043 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5044 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5045 | ;; |
| 5046 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5047 | darwin* | rhapsody*) |
| 5048 | lt_cv_deplibs_check_method=pass_all |
| 5049 | ;; |
| 5050 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5051 | freebsd* | dragonfly*) |
| 5052 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5053 | case $host_cpu in |
| 5054 | i*86 ) |
| 5055 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5056 | # Let's accept both of them until this is cleared up. |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5057 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5058 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5059 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5060 | ;; |
| 5061 | esac |
| 5062 | else |
| 5063 | lt_cv_deplibs_check_method=pass_all |
| 5064 | fi |
| 5065 | ;; |
| 5066 | |
| 5067 | gnu*) |
| 5068 | lt_cv_deplibs_check_method=pass_all |
| 5069 | ;; |
| 5070 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5071 | haiku*) |
| 5072 | lt_cv_deplibs_check_method=pass_all |
| 5073 | ;; |
| 5074 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5075 | hpux10.20* | hpux11*) |
| 5076 | lt_cv_file_magic_cmd=/usr/bin/file |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5077 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5078 | ia64*) |
| 5079 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5080 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5081 | ;; |
| 5082 | hppa*64*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5083 | 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]' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5084 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5085 | ;; |
| 5086 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5087 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5088 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5089 | ;; |
| 5090 | esac |
| 5091 | ;; |
| 5092 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5093 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5094 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5095 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5096 | ;; |
| 5097 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5098 | irix5* | irix6* | nonstopux*) |
| 5099 | case $LD in |
| 5100 | *-32|*"-32 ") libmagic=32-bit;; |
| 5101 | *-n32|*"-n32 ") libmagic=N32;; |
| 5102 | *-64|*"-64 ") libmagic=64-bit;; |
| 5103 | *) libmagic=never-match;; |
| 5104 | esac |
| 5105 | lt_cv_deplibs_check_method=pass_all |
| 5106 | ;; |
| 5107 | |
| 5108 | # This must be Linux ELF. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5109 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5110 | lt_cv_deplibs_check_method=pass_all |
| 5111 | ;; |
| 5112 | |
| 5113 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5114 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5115 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5116 | else |
| 5117 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5118 | fi |
| 5119 | ;; |
| 5120 | |
| 5121 | newos6*) |
| 5122 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5123 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5124 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5125 | ;; |
| 5126 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5127 | *nto* | *qnx*) |
| 5128 | lt_cv_deplibs_check_method=pass_all |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5129 | ;; |
| 5130 | |
| 5131 | openbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5132 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5133 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5134 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5135 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5136 | fi |
| 5137 | ;; |
| 5138 | |
| 5139 | osf3* | osf4* | osf5*) |
| 5140 | lt_cv_deplibs_check_method=pass_all |
| 5141 | ;; |
| 5142 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5143 | rdos*) |
| 5144 | lt_cv_deplibs_check_method=pass_all |
| 5145 | ;; |
| 5146 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5147 | solaris*) |
| 5148 | lt_cv_deplibs_check_method=pass_all |
| 5149 | ;; |
| 5150 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5151 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5152 | lt_cv_deplibs_check_method=pass_all |
| 5153 | ;; |
| 5154 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5155 | sysv4 | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5156 | case $host_vendor in |
| 5157 | motorola) |
| 5158 | 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]' |
| 5159 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5160 | ;; |
| 5161 | ncr) |
| 5162 | lt_cv_deplibs_check_method=pass_all |
| 5163 | ;; |
| 5164 | sequent) |
| 5165 | lt_cv_file_magic_cmd='/bin/file' |
| 5166 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5167 | ;; |
| 5168 | sni) |
| 5169 | lt_cv_file_magic_cmd='/bin/file' |
| 5170 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5171 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5172 | ;; |
| 5173 | siemens) |
| 5174 | lt_cv_deplibs_check_method=pass_all |
| 5175 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5176 | pc) |
| 5177 | lt_cv_deplibs_check_method=pass_all |
| 5178 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5179 | esac |
| 5180 | ;; |
| 5181 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5182 | tpf*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5183 | lt_cv_deplibs_check_method=pass_all |
| 5184 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5185 | esac |
| 5186 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5187 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5189 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5190 | |
| 5191 | file_magic_glob= |
| 5192 | want_nocaseglob=no |
| 5193 | if test "$build" = "$host"; then |
| 5194 | case $host_os in |
| 5195 | mingw* | pw32*) |
| 5196 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5197 | want_nocaseglob=yes |
| 5198 | else |
| 5199 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5200 | fi |
| 5201 | ;; |
| 5202 | esac |
| 5203 | fi |
| 5204 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5205 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5206 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5207 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5208 | |
| 5209 | |
| 5210 | |
| 5211 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5212 | |
| 5213 | |
| 5214 | |
| 5215 | |
| 5216 | |
| 5217 | |
| 5218 | |
| 5219 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5220 | |
| 5221 | |
| 5222 | |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5230 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5231 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5232 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5234 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5235 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5236 | $as_echo_n "(cached) " >&6 |
| 5237 | else |
| 5238 | if test -n "$DLLTOOL"; then |
| 5239 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5240 | else |
| 5241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5242 | for as_dir in $PATH |
| 5243 | do |
| 5244 | IFS=$as_save_IFS |
| 5245 | test -z "$as_dir" && as_dir=. |
| 5246 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5247 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5248 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5249 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5250 | break 2 |
| 5251 | fi |
| 5252 | done |
| 5253 | done |
| 5254 | IFS=$as_save_IFS |
| 5255 | |
| 5256 | fi |
| 5257 | fi |
| 5258 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5259 | if test -n "$DLLTOOL"; then |
| 5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5261 | $as_echo "$DLLTOOL" >&6; } |
| 5262 | else |
| 5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5264 | $as_echo "no" >&6; } |
| 5265 | fi |
| 5266 | |
| 5267 | |
| 5268 | fi |
| 5269 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5270 | ac_ct_DLLTOOL=$DLLTOOL |
| 5271 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5272 | set dummy dlltool; ac_word=$2 |
| 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5274 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5275 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5276 | $as_echo_n "(cached) " >&6 |
| 5277 | else |
| 5278 | if test -n "$ac_ct_DLLTOOL"; then |
| 5279 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5280 | else |
| 5281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5282 | for as_dir in $PATH |
| 5283 | do |
| 5284 | IFS=$as_save_IFS |
| 5285 | test -z "$as_dir" && as_dir=. |
| 5286 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5287 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5288 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5290 | break 2 |
| 5291 | fi |
| 5292 | done |
| 5293 | done |
| 5294 | IFS=$as_save_IFS |
| 5295 | |
| 5296 | fi |
| 5297 | fi |
| 5298 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5299 | if test -n "$ac_ct_DLLTOOL"; then |
| 5300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5301 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5302 | else |
| 5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5304 | $as_echo "no" >&6; } |
| 5305 | fi |
| 5306 | |
| 5307 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5308 | DLLTOOL="false" |
| 5309 | else |
| 5310 | case $cross_compiling:$ac_tool_warned in |
| 5311 | yes:) |
| 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5313 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5314 | ac_tool_warned=yes ;; |
| 5315 | esac |
| 5316 | DLLTOOL=$ac_ct_DLLTOOL |
| 5317 | fi |
| 5318 | else |
| 5319 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5320 | fi |
| 5321 | |
| 5322 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5323 | |
| 5324 | |
| 5325 | |
| 5326 | |
| 5327 | |
| 5328 | |
| 5329 | |
| 5330 | |
| 5331 | |
| 5332 | |
| 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5334 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5335 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5336 | $as_echo_n "(cached) " >&6 |
| 5337 | else |
| 5338 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5339 | |
| 5340 | case $host_os in |
| 5341 | cygwin* | mingw* | pw32* | cegcc*) |
| 5342 | # two different shell functions defined in ltmain.sh |
| 5343 | # decide which to use based on capabilities of $DLLTOOL |
| 5344 | case `$DLLTOOL --help 2>&1` in |
| 5345 | *--identify-strict*) |
| 5346 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5347 | ;; |
| 5348 | *) |
| 5349 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5350 | ;; |
| 5351 | esac |
| 5352 | ;; |
| 5353 | *) |
| 5354 | # fallback: assume linklib IS sharedlib |
| 5355 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 5356 | ;; |
| 5357 | esac |
| 5358 | |
| 5359 | fi |
| 5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5361 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5362 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5363 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5364 | |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | if test -n "$ac_tool_prefix"; then |
| 5373 | for ac_prog in ar |
| 5374 | do |
| 5375 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5376 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5378 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5379 | if ${ac_cv_prog_AR+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5380 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5381 | else |
| 5382 | if test -n "$AR"; then |
| 5383 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5384 | else |
| 5385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5386 | for as_dir in $PATH |
| 5387 | do |
| 5388 | IFS=$as_save_IFS |
| 5389 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5392 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5394 | break 2 |
| 5395 | fi |
| 5396 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5397 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5398 | IFS=$as_save_IFS |
| 5399 | |
| 5400 | fi |
| 5401 | fi |
| 5402 | AR=$ac_cv_prog_AR |
| 5403 | if test -n "$AR"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5405 | $as_echo "$AR" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5406 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5408 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5409 | fi |
| 5410 | |
| 5411 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5412 | test -n "$AR" && break |
| 5413 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5414 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5415 | if test -z "$AR"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5416 | ac_ct_AR=$AR |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5417 | for ac_prog in ar |
| 5418 | do |
| 5419 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5420 | set dummy $ac_prog; ac_word=$2 |
| 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5422 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5423 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5424 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5425 | else |
| 5426 | if test -n "$ac_ct_AR"; then |
| 5427 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5428 | else |
| 5429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5430 | for as_dir in $PATH |
| 5431 | do |
| 5432 | IFS=$as_save_IFS |
| 5433 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5434 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5436 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5438 | break 2 |
| 5439 | fi |
| 5440 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5441 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5442 | IFS=$as_save_IFS |
| 5443 | |
| 5444 | fi |
| 5445 | fi |
| 5446 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5447 | if test -n "$ac_ct_AR"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5449 | $as_echo "$ac_ct_AR" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5450 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5452 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5453 | fi |
| 5454 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5455 | |
| 5456 | test -n "$ac_ct_AR" && break |
| 5457 | done |
| 5458 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5459 | if test "x$ac_ct_AR" = x; then |
| 5460 | AR="false" |
| 5461 | else |
| 5462 | case $cross_compiling:$ac_tool_warned in |
| 5463 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5465 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5466 | ac_tool_warned=yes ;; |
| 5467 | esac |
| 5468 | AR=$ac_ct_AR |
| 5469 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5470 | fi |
| 5471 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5472 | : ${AR=ar} |
| 5473 | : ${AR_FLAGS=cru} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5474 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5475 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 5476 | |
| 5477 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5478 | |
| 5479 | |
| 5480 | |
| 5481 | |
| 5482 | |
| 5483 | |
| 5484 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 5486 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 5487 | if ${lt_cv_ar_at_file+:} false; then : |
| 5488 | $as_echo_n "(cached) " >&6 |
| 5489 | else |
| 5490 | lt_cv_ar_at_file=no |
| 5491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5492 | /* end confdefs.h. */ |
| 5493 | |
| 5494 | int |
| 5495 | main () |
| 5496 | { |
| 5497 | |
| 5498 | ; |
| 5499 | return 0; |
| 5500 | } |
| 5501 | _ACEOF |
| 5502 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5503 | echo conftest.$ac_objext > conftest.lst |
| 5504 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5505 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5506 | (eval $lt_ar_try) 2>&5 |
| 5507 | ac_status=$? |
| 5508 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5509 | test $ac_status = 0; } |
| 5510 | if test "$ac_status" -eq 0; then |
| 5511 | # Ensure the archiver fails upon bogus file names. |
| 5512 | rm -f conftest.$ac_objext libconftest.a |
| 5513 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5514 | (eval $lt_ar_try) 2>&5 |
| 5515 | ac_status=$? |
| 5516 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5517 | test $ac_status = 0; } |
| 5518 | if test "$ac_status" -ne 0; then |
| 5519 | lt_cv_ar_at_file=@ |
| 5520 | fi |
| 5521 | fi |
| 5522 | rm -f conftest.* libconftest.a |
| 5523 | |
| 5524 | fi |
| 5525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5526 | |
| 5527 | fi |
| 5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 5529 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 5530 | |
| 5531 | if test "x$lt_cv_ar_at_file" = xno; then |
| 5532 | archiver_list_spec= |
| 5533 | else |
| 5534 | archiver_list_spec=$lt_cv_ar_at_file |
| 5535 | fi |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | |
| 5541 | |
| 5542 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5543 | if test -n "$ac_tool_prefix"; then |
| 5544 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5545 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5547 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5548 | if ${ac_cv_prog_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5549 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5550 | else |
| 5551 | if test -n "$STRIP"; then |
| 5552 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5553 | else |
| 5554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5555 | for as_dir in $PATH |
| 5556 | do |
| 5557 | IFS=$as_save_IFS |
| 5558 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5561 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5563 | break 2 |
| 5564 | fi |
| 5565 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5566 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5567 | IFS=$as_save_IFS |
| 5568 | |
| 5569 | fi |
| 5570 | fi |
| 5571 | STRIP=$ac_cv_prog_STRIP |
| 5572 | if test -n "$STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5574 | $as_echo "$STRIP" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5575 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5577 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5578 | fi |
| 5579 | |
| 5580 | |
| 5581 | fi |
| 5582 | if test -z "$ac_cv_prog_STRIP"; then |
| 5583 | ac_ct_STRIP=$STRIP |
| 5584 | # Extract the first word of "strip", so it can be a program name with args. |
| 5585 | set dummy strip; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5587 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5588 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5589 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5590 | else |
| 5591 | if test -n "$ac_ct_STRIP"; then |
| 5592 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5593 | else |
| 5594 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5595 | for as_dir in $PATH |
| 5596 | do |
| 5597 | IFS=$as_save_IFS |
| 5598 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5599 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5600 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5601 | ac_cv_prog_ac_ct_STRIP="strip" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5602 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5603 | break 2 |
| 5604 | fi |
| 5605 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5606 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5607 | IFS=$as_save_IFS |
| 5608 | |
| 5609 | fi |
| 5610 | fi |
| 5611 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5612 | if test -n "$ac_ct_STRIP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5614 | $as_echo "$ac_ct_STRIP" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5615 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5617 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5618 | fi |
| 5619 | |
| 5620 | if test "x$ac_ct_STRIP" = x; then |
| 5621 | STRIP=":" |
| 5622 | else |
| 5623 | case $cross_compiling:$ac_tool_warned in |
| 5624 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5626 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5627 | ac_tool_warned=yes ;; |
| 5628 | esac |
| 5629 | STRIP=$ac_ct_STRIP |
| 5630 | fi |
| 5631 | else |
| 5632 | STRIP="$ac_cv_prog_STRIP" |
| 5633 | fi |
| 5634 | |
| 5635 | test -z "$STRIP" && STRIP=: |
| 5636 | |
| 5637 | |
| 5638 | |
| 5639 | |
| 5640 | |
| 5641 | |
| 5642 | if test -n "$ac_tool_prefix"; then |
| 5643 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5644 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5646 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5647 | if ${ac_cv_prog_RANLIB+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5648 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5649 | else |
| 5650 | if test -n "$RANLIB"; then |
| 5651 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5652 | else |
| 5653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5654 | for as_dir in $PATH |
| 5655 | do |
| 5656 | IFS=$as_save_IFS |
| 5657 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5658 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5660 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5662 | break 2 |
| 5663 | fi |
| 5664 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5665 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5666 | IFS=$as_save_IFS |
| 5667 | |
| 5668 | fi |
| 5669 | fi |
| 5670 | RANLIB=$ac_cv_prog_RANLIB |
| 5671 | if test -n "$RANLIB"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5673 | $as_echo "$RANLIB" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5674 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5676 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5677 | fi |
| 5678 | |
| 5679 | |
| 5680 | fi |
| 5681 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5682 | ac_ct_RANLIB=$RANLIB |
| 5683 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5684 | set dummy ranlib; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5686 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5687 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5688 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5689 | else |
| 5690 | if test -n "$ac_ct_RANLIB"; then |
| 5691 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5692 | else |
| 5693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5694 | for as_dir in $PATH |
| 5695 | do |
| 5696 | IFS=$as_save_IFS |
| 5697 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5698 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5699 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5700 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5702 | break 2 |
| 5703 | fi |
| 5704 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5705 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5706 | IFS=$as_save_IFS |
| 5707 | |
| 5708 | fi |
| 5709 | fi |
| 5710 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5711 | if test -n "$ac_ct_RANLIB"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5713 | $as_echo "$ac_ct_RANLIB" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5714 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5716 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5717 | fi |
| 5718 | |
| 5719 | if test "x$ac_ct_RANLIB" = x; then |
| 5720 | RANLIB=":" |
| 5721 | else |
| 5722 | case $cross_compiling:$ac_tool_warned in |
| 5723 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5725 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5726 | ac_tool_warned=yes ;; |
| 5727 | esac |
| 5728 | RANLIB=$ac_ct_RANLIB |
| 5729 | fi |
| 5730 | else |
| 5731 | RANLIB="$ac_cv_prog_RANLIB" |
| 5732 | fi |
| 5733 | |
| 5734 | test -z "$RANLIB" && RANLIB=: |
| 5735 | |
| 5736 | |
| 5737 | |
| 5738 | |
| 5739 | |
| 5740 | |
| 5741 | # Determine commands to create old-style static archives. |
| 5742 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5743 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5744 | old_postuninstall_cmds= |
| 5745 | |
| 5746 | if test -n "$RANLIB"; then |
| 5747 | case $host_os in |
| 5748 | openbsd*) |
| 5749 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 5750 | ;; |
| 5751 | *) |
| 5752 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 5753 | ;; |
| 5754 | esac |
| 5755 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 5756 | fi |
| 5757 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5758 | case $host_os in |
| 5759 | darwin*) |
| 5760 | lock_old_archive_extraction=yes ;; |
| 5761 | *) |
| 5762 | lock_old_archive_extraction=no ;; |
| 5763 | esac |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5770 | |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | |
| 5787 | |
| 5788 | |
| 5789 | |
| 5790 | |
| 5791 | |
| 5792 | |
| 5793 | |
| 5794 | |
| 5795 | |
| 5796 | |
| 5797 | |
| 5798 | |
| 5799 | |
| 5800 | |
| 5801 | |
| 5802 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5803 | # If no C compiler was specified, use CC. |
| 5804 | LTCC=${LTCC-"$CC"} |
| 5805 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 5806 | # If no C compiler flags were specified, use CFLAGS. |
| 5807 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 5808 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 5809 | # Allow CC to be a program name with arguments. |
| 5810 | compiler=$CC |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5811 | |
| 5812 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5813 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5815 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5816 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 5817 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5818 | else |
| 5819 | |
| 5820 | # These are sane defaults that work on at least a few old systems. |
| 5821 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 5822 | |
| 5823 | # Character class describing NM global symbol codes. |
| 5824 | symcode='[BCDEGRST]' |
| 5825 | |
| 5826 | # Regexp to match symbols that can be accessed directly from C. |
| 5827 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 5828 | |
| 5829 | # Define system-specific variables. |
| 5830 | case $host_os in |
| 5831 | aix*) |
| 5832 | symcode='[BCDT]' |
| 5833 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5834 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5835 | symcode='[ABCDGISTW]' |
| 5836 | ;; |
| 5837 | hpux*) |
| 5838 | if test "$host_cpu" = ia64; then |
| 5839 | symcode='[ABCDEGRST]' |
| 5840 | fi |
| 5841 | ;; |
| 5842 | irix* | nonstopux*) |
| 5843 | symcode='[BCDEGRST]' |
| 5844 | ;; |
| 5845 | osf*) |
| 5846 | symcode='[BCDEGQRST]' |
| 5847 | ;; |
| 5848 | solaris*) |
| 5849 | symcode='[BDRT]' |
| 5850 | ;; |
| 5851 | sco3.2v5*) |
| 5852 | symcode='[DT]' |
| 5853 | ;; |
| 5854 | sysv4.2uw2*) |
| 5855 | symcode='[DT]' |
| 5856 | ;; |
| 5857 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 5858 | symcode='[ABDT]' |
| 5859 | ;; |
| 5860 | sysv4) |
| 5861 | symcode='[DFNSTU]' |
| 5862 | ;; |
| 5863 | esac |
| 5864 | |
| 5865 | # If we're using GNU nm, then use its standard symbol codes. |
| 5866 | case `$NM -V 2>&1` in |
| 5867 | *GNU* | *'with BFD'*) |
| 5868 | symcode='[ABCDGIRSTW]' ;; |
| 5869 | esac |
| 5870 | |
| 5871 | # Transform an extracted symbol line into a proper C declaration. |
| 5872 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 5873 | # so use this general approach. |
| 5874 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 5875 | |
| 5876 | # Transform an extracted symbol line into symbol name and symbol address |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5877 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 5878 | 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'" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5879 | |
| 5880 | # Handle CRLF in mingw tool chain |
| 5881 | opt_cr= |
| 5882 | case $build_os in |
| 5883 | mingw*) |
| 5884 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 5885 | ;; |
| 5886 | esac |
| 5887 | |
| 5888 | # Try without a prefix underscore, then with it. |
| 5889 | for ac_symprfx in "" "_"; do |
| 5890 | |
| 5891 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 5892 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 5893 | |
| 5894 | # Write the raw and C identifiers. |
| 5895 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 5896 | # Fake it for dumpbin and say T for any non-static function |
| 5897 | # and D for any global variable. |
| 5898 | # Also find C++ and __fastcall symbols from MSVC++, |
| 5899 | # which start with @ or ?. |
| 5900 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 5901 | " {last_section=section; section=\$ 3};"\ |
| 5902 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 5903 | " \$ 0!~/External *\|/{next};"\ |
| 5904 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 5905 | " {if(hide[section]) next};"\ |
| 5906 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 5907 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 5908 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 5909 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 5910 | " ' prfx=^$ac_symprfx" |
| 5911 | else |
| 5912 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 5913 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5914 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5915 | |
| 5916 | # Check to see that the pipe works correctly. |
| 5917 | pipe_works=no |
| 5918 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5919 | rm -f conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5920 | cat > conftest.$ac_ext <<_LT_EOF |
| 5921 | #ifdef __cplusplus |
| 5922 | extern "C" { |
| 5923 | #endif |
| 5924 | char nm_test_var; |
| 5925 | void nm_test_func(void); |
| 5926 | void nm_test_func(void){} |
| 5927 | #ifdef __cplusplus |
| 5928 | } |
| 5929 | #endif |
| 5930 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 5931 | _LT_EOF |
| 5932 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5933 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5934 | (eval $ac_compile) 2>&5 |
| 5935 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5936 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5937 | test $ac_status = 0; }; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5938 | # Now try to grab the symbols. |
| 5939 | nlist=conftest.nm |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5940 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 5941 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5942 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5943 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5944 | test $ac_status = 0; } && test -s "$nlist"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5945 | # Try sorting and uniquifying the output. |
| 5946 | if sort "$nlist" | uniq > "$nlist"T; then |
| 5947 | mv -f "$nlist"T "$nlist" |
| 5948 | else |
| 5949 | rm -f "$nlist"T |
| 5950 | fi |
| 5951 | |
| 5952 | # Make sure that we snagged all the symbols we need. |
| 5953 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 5954 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 5955 | cat <<_LT_EOF > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5956 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 5957 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 5958 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 5959 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 5960 | # define LT_DLSYM_CONST |
| 5961 | #elif defined(__osf__) |
| 5962 | /* This system does not cope well with relocations in const data. */ |
| 5963 | # define LT_DLSYM_CONST |
| 5964 | #else |
| 5965 | # define LT_DLSYM_CONST const |
| 5966 | #endif |
| 5967 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5968 | #ifdef __cplusplus |
| 5969 | extern "C" { |
| 5970 | #endif |
| 5971 | |
| 5972 | _LT_EOF |
| 5973 | # Now generate the symbol file. |
| 5974 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 5975 | |
| 5976 | cat <<_LT_EOF >> conftest.$ac_ext |
| 5977 | |
| 5978 | /* The mapping between symbol names and symbols. */ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 5979 | LT_DLSYM_CONST struct { |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 5980 | const char *name; |
| 5981 | void *address; |
| 5982 | } |
| 5983 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 5984 | { |
| 5985 | { "@PROGRAM@", (void *) 0 }, |
| 5986 | _LT_EOF |
| 5987 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 5988 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 5989 | {0, (void *) 0} |
| 5990 | }; |
| 5991 | |
| 5992 | /* This works around a problem in FreeBSD linker */ |
| 5993 | #ifdef FREEBSD_WORKAROUND |
| 5994 | static const void *lt_preloaded_setup() { |
| 5995 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 5996 | } |
| 5997 | #endif |
| 5998 | |
| 5999 | #ifdef __cplusplus |
| 6000 | } |
| 6001 | #endif |
| 6002 | _LT_EOF |
| 6003 | # Now try linking the two files. |
| 6004 | mv conftest.$ac_objext conftstm.$ac_objext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6005 | lt_globsym_save_LIBS=$LIBS |
| 6006 | lt_globsym_save_CFLAGS=$CFLAGS |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6007 | LIBS="conftstm.$ac_objext" |
| 6008 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6009 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6010 | (eval $ac_link) 2>&5 |
| 6011 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6012 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6013 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6014 | pipe_works=yes |
| 6015 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6016 | LIBS=$lt_globsym_save_LIBS |
| 6017 | CFLAGS=$lt_globsym_save_CFLAGS |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6018 | else |
| 6019 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6020 | fi |
| 6021 | else |
| 6022 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6023 | fi |
| 6024 | else |
| 6025 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6026 | fi |
| 6027 | else |
| 6028 | echo "$progname: failed program was:" >&5 |
| 6029 | cat conftest.$ac_ext >&5 |
| 6030 | fi |
| 6031 | rm -rf conftest* conftst* |
| 6032 | |
| 6033 | # Do not use the global_symbol_pipe unless it works. |
| 6034 | if test "$pipe_works" = yes; then |
| 6035 | break |
| 6036 | else |
| 6037 | lt_cv_sys_global_symbol_pipe= |
| 6038 | fi |
| 6039 | done |
| 6040 | |
| 6041 | fi |
| 6042 | |
| 6043 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6044 | lt_cv_sys_global_symbol_to_cdecl= |
| 6045 | fi |
| 6046 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6048 | $as_echo "failed" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6049 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6051 | $as_echo "ok" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6052 | fi |
| 6053 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6054 | # Response file support. |
| 6055 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6056 | nm_file_list_spec='@' |
| 6057 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6058 | nm_file_list_spec='@' |
| 6059 | fi |
| 6060 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | |
| 6066 | |
| 6067 | |
| 6068 | |
| 6069 | |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | |
| 6082 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6083 | |
| 6084 | |
| 6085 | |
| 6086 | |
| 6087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6088 | $as_echo_n "checking for sysroot... " >&6; } |
| 6089 | |
| 6090 | # Check whether --with-sysroot was given. |
| 6091 | if test "${with_sysroot+set}" = set; then : |
| 6092 | withval=$with_sysroot; |
| 6093 | else |
| 6094 | with_sysroot=no |
| 6095 | fi |
| 6096 | |
| 6097 | |
| 6098 | lt_sysroot= |
| 6099 | case ${with_sysroot} in #( |
| 6100 | yes) |
| 6101 | if test "$GCC" = yes; then |
| 6102 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6103 | fi |
| 6104 | ;; #( |
| 6105 | /*) |
| 6106 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6107 | ;; #( |
| 6108 | no|'') |
| 6109 | ;; #( |
| 6110 | *) |
| 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6112 | $as_echo "${with_sysroot}" >&6; } |
| 6113 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6114 | ;; |
| 6115 | esac |
| 6116 | |
| 6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6118 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6119 | |
| 6120 | |
| 6121 | |
| 6122 | |
| 6123 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6124 | # Check whether --enable-libtool-lock was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6125 | if test "${enable_libtool_lock+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 6126 | enableval=$enable_libtool_lock; |
| 6127 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6128 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6129 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6130 | |
| 6131 | # Some flags need to be propagated to the compiler or linker for good |
| 6132 | # libtool support. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6133 | case $host in |
| 6134 | ia64-*-hpux*) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6135 | # Find out which ABI we are using. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6136 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6137 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6138 | (eval $ac_compile) 2>&5 |
| 6139 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6140 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6141 | test $ac_status = 0; }; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6142 | case `/usr/bin/file conftest.$ac_objext` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6143 | *ELF-32*) |
| 6144 | HPUX_IA64_MODE="32" |
| 6145 | ;; |
| 6146 | *ELF-64*) |
| 6147 | HPUX_IA64_MODE="64" |
| 6148 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6149 | esac |
| 6150 | fi |
| 6151 | rm -rf conftest* |
| 6152 | ;; |
| 6153 | *-*-irix6*) |
| 6154 | # Find out which ABI we are using. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6155 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6156 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6157 | (eval $ac_compile) 2>&5 |
| 6158 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6159 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6160 | test $ac_status = 0; }; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6161 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6162 | case `/usr/bin/file conftest.$ac_objext` in |
| 6163 | *32-bit*) |
| 6164 | LD="${LD-ld} -melf32bsmip" |
| 6165 | ;; |
| 6166 | *N32*) |
| 6167 | LD="${LD-ld} -melf32bmipn32" |
| 6168 | ;; |
| 6169 | *64-bit*) |
| 6170 | LD="${LD-ld} -melf64bmip" |
| 6171 | ;; |
| 6172 | esac |
| 6173 | else |
| 6174 | case `/usr/bin/file conftest.$ac_objext` in |
| 6175 | *32-bit*) |
| 6176 | LD="${LD-ld} -32" |
| 6177 | ;; |
| 6178 | *N32*) |
| 6179 | LD="${LD-ld} -n32" |
| 6180 | ;; |
| 6181 | *64-bit*) |
| 6182 | LD="${LD-ld} -64" |
| 6183 | ;; |
| 6184 | esac |
| 6185 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6186 | fi |
| 6187 | rm -rf conftest* |
| 6188 | ;; |
| 6189 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6190 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6191 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6192 | # Find out which ABI we are using. |
| 6193 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6194 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6195 | (eval $ac_compile) 2>&5 |
| 6196 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6198 | test $ac_status = 0; }; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6199 | case `/usr/bin/file conftest.o` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6200 | *32-bit*) |
| 6201 | case $host in |
| 6202 | x86_64-*kfreebsd*-gnu) |
| 6203 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6204 | ;; |
| 6205 | x86_64-*linux*) |
| 6206 | LD="${LD-ld} -m elf_i386" |
| 6207 | ;; |
| 6208 | ppc64-*linux*|powerpc64-*linux*) |
| 6209 | LD="${LD-ld} -m elf32ppclinux" |
| 6210 | ;; |
| 6211 | s390x-*linux*) |
| 6212 | LD="${LD-ld} -m elf_s390" |
| 6213 | ;; |
| 6214 | sparc64-*linux*) |
| 6215 | LD="${LD-ld} -m elf32_sparc" |
| 6216 | ;; |
| 6217 | esac |
| 6218 | ;; |
| 6219 | *64-bit*) |
| 6220 | case $host in |
| 6221 | x86_64-*kfreebsd*-gnu) |
| 6222 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6223 | ;; |
| 6224 | x86_64-*linux*) |
| 6225 | LD="${LD-ld} -m elf_x86_64" |
| 6226 | ;; |
| 6227 | ppc*-*linux*|powerpc*-*linux*) |
| 6228 | LD="${LD-ld} -m elf64ppc" |
| 6229 | ;; |
| 6230 | s390*-*linux*|s390*-*tpf*) |
| 6231 | LD="${LD-ld} -m elf64_s390" |
| 6232 | ;; |
| 6233 | sparc*-*linux*) |
| 6234 | LD="${LD-ld} -m elf64_sparc" |
| 6235 | ;; |
| 6236 | esac |
| 6237 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6238 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6239 | fi |
| 6240 | rm -rf conftest* |
| 6241 | ;; |
| 6242 | |
| 6243 | *-*-sco3.2v5*) |
| 6244 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6245 | SAVE_CFLAGS="$CFLAGS" |
| 6246 | CFLAGS="$CFLAGS -belf" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6248 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6249 | if ${lt_cv_cc_needs_belf+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6250 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6251 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6252 | ac_ext=c |
| 6253 | ac_cpp='$CPP $CPPFLAGS' |
| 6254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6257 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6259 | /* end confdefs.h. */ |
| 6260 | |
| 6261 | int |
| 6262 | main () |
| 6263 | { |
| 6264 | |
| 6265 | ; |
| 6266 | return 0; |
| 6267 | } |
| 6268 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6269 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6270 | lt_cv_cc_needs_belf=yes |
| 6271 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6272 | lt_cv_cc_needs_belf=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6273 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6274 | rm -f core conftest.err conftest.$ac_objext \ |
| 6275 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6276 | ac_ext=c |
| 6277 | ac_cpp='$CPP $CPPFLAGS' |
| 6278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6281 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6282 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6284 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6285 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6286 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6287 | CFLAGS="$SAVE_CFLAGS" |
| 6288 | fi |
| 6289 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6290 | sparc*-*solaris*) |
| 6291 | # Find out which ABI we are using. |
| 6292 | echo 'int i;' > conftest.$ac_ext |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6293 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6294 | (eval $ac_compile) 2>&5 |
| 6295 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6296 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6297 | test $ac_status = 0; }; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6298 | case `/usr/bin/file conftest.o` in |
| 6299 | *64-bit*) |
| 6300 | case $lt_cv_prog_gnu_ld in |
| 6301 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6302 | *) |
| 6303 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6304 | LD="${LD-ld} -64" |
| 6305 | fi |
| 6306 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 6307 | esac |
| 6308 | ;; |
| 6309 | esac |
| 6310 | fi |
| 6311 | rm -rf conftest* |
| 6312 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6313 | esac |
| 6314 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 6315 | need_locks="$enable_libtool_lock" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6316 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6317 | if test -n "$ac_tool_prefix"; then |
| 6318 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6319 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6321 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6322 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6323 | $as_echo_n "(cached) " >&6 |
| 6324 | else |
| 6325 | if test -n "$MANIFEST_TOOL"; then |
| 6326 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6327 | else |
| 6328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6329 | for as_dir in $PATH |
| 6330 | do |
| 6331 | IFS=$as_save_IFS |
| 6332 | test -z "$as_dir" && as_dir=. |
| 6333 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6334 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6335 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6337 | break 2 |
| 6338 | fi |
| 6339 | done |
| 6340 | done |
| 6341 | IFS=$as_save_IFS |
| 6342 | |
| 6343 | fi |
| 6344 | fi |
| 6345 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6346 | if test -n "$MANIFEST_TOOL"; then |
| 6347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 6348 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 6349 | else |
| 6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6351 | $as_echo "no" >&6; } |
| 6352 | fi |
| 6353 | |
| 6354 | |
| 6355 | fi |
| 6356 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6357 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6358 | # Extract the first word of "mt", so it can be a program name with args. |
| 6359 | set dummy mt; ac_word=$2 |
| 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6361 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6362 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 6363 | $as_echo_n "(cached) " >&6 |
| 6364 | else |
| 6365 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6366 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6367 | else |
| 6368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6369 | for as_dir in $PATH |
| 6370 | do |
| 6371 | IFS=$as_save_IFS |
| 6372 | test -z "$as_dir" && as_dir=. |
| 6373 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6374 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6375 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6377 | break 2 |
| 6378 | fi |
| 6379 | done |
| 6380 | done |
| 6381 | IFS=$as_save_IFS |
| 6382 | |
| 6383 | fi |
| 6384 | fi |
| 6385 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6386 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6388 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 6389 | else |
| 6390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6391 | $as_echo "no" >&6; } |
| 6392 | fi |
| 6393 | |
| 6394 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6395 | MANIFEST_TOOL=":" |
| 6396 | else |
| 6397 | case $cross_compiling:$ac_tool_warned in |
| 6398 | yes:) |
| 6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6400 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6401 | ac_tool_warned=yes ;; |
| 6402 | esac |
| 6403 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6404 | fi |
| 6405 | else |
| 6406 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6407 | fi |
| 6408 | |
| 6409 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6411 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 6412 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 6413 | $as_echo_n "(cached) " >&6 |
| 6414 | else |
| 6415 | lt_cv_path_mainfest_tool=no |
| 6416 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6417 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6418 | cat conftest.err >&5 |
| 6419 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6420 | lt_cv_path_mainfest_tool=yes |
| 6421 | fi |
| 6422 | rm -f conftest* |
| 6423 | fi |
| 6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 6425 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 6426 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 6427 | MANIFEST_TOOL=: |
| 6428 | fi |
| 6429 | |
| 6430 | |
| 6431 | |
| 6432 | |
| 6433 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6434 | |
| 6435 | case $host_os in |
| 6436 | rhapsody* | darwin*) |
| 6437 | if test -n "$ac_tool_prefix"; then |
| 6438 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6439 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6441 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6442 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6443 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6444 | else |
| 6445 | if test -n "$DSYMUTIL"; then |
| 6446 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6447 | else |
| 6448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6449 | for as_dir in $PATH |
| 6450 | do |
| 6451 | IFS=$as_save_IFS |
| 6452 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6455 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6457 | break 2 |
| 6458 | fi |
| 6459 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6460 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6461 | IFS=$as_save_IFS |
| 6462 | |
| 6463 | fi |
| 6464 | fi |
| 6465 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6466 | if test -n "$DSYMUTIL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6468 | $as_echo "$DSYMUTIL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6469 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6471 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6472 | fi |
| 6473 | |
| 6474 | |
| 6475 | fi |
| 6476 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6477 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6478 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6479 | set dummy dsymutil; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6481 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6482 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6483 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6484 | else |
| 6485 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6486 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6487 | else |
| 6488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6489 | for as_dir in $PATH |
| 6490 | do |
| 6491 | IFS=$as_save_IFS |
| 6492 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6493 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6494 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6495 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6497 | break 2 |
| 6498 | fi |
| 6499 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6500 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6501 | IFS=$as_save_IFS |
| 6502 | |
| 6503 | fi |
| 6504 | fi |
| 6505 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6506 | if test -n "$ac_ct_DSYMUTIL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6508 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6509 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6511 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6512 | fi |
| 6513 | |
| 6514 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6515 | DSYMUTIL=":" |
| 6516 | else |
| 6517 | case $cross_compiling:$ac_tool_warned in |
| 6518 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6519 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6520 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6521 | ac_tool_warned=yes ;; |
| 6522 | esac |
| 6523 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6524 | fi |
| 6525 | else |
| 6526 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6527 | fi |
| 6528 | |
| 6529 | if test -n "$ac_tool_prefix"; then |
| 6530 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6531 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6533 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6534 | if ${ac_cv_prog_NMEDIT+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6535 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6536 | else |
| 6537 | if test -n "$NMEDIT"; then |
| 6538 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6539 | else |
| 6540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6541 | for as_dir in $PATH |
| 6542 | do |
| 6543 | IFS=$as_save_IFS |
| 6544 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6547 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6549 | break 2 |
| 6550 | fi |
| 6551 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6552 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6553 | IFS=$as_save_IFS |
| 6554 | |
| 6555 | fi |
| 6556 | fi |
| 6557 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6558 | if test -n "$NMEDIT"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6560 | $as_echo "$NMEDIT" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6561 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6563 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6564 | fi |
| 6565 | |
| 6566 | |
| 6567 | fi |
| 6568 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6569 | ac_ct_NMEDIT=$NMEDIT |
| 6570 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6571 | set dummy nmedit; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6573 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6574 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6575 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6576 | else |
| 6577 | if test -n "$ac_ct_NMEDIT"; then |
| 6578 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6579 | else |
| 6580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6581 | for as_dir in $PATH |
| 6582 | do |
| 6583 | IFS=$as_save_IFS |
| 6584 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6585 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6587 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6589 | break 2 |
| 6590 | fi |
| 6591 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6592 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6593 | IFS=$as_save_IFS |
| 6594 | |
| 6595 | fi |
| 6596 | fi |
| 6597 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6598 | if test -n "$ac_ct_NMEDIT"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6600 | $as_echo "$ac_ct_NMEDIT" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6601 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6603 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6604 | fi |
| 6605 | |
| 6606 | if test "x$ac_ct_NMEDIT" = x; then |
| 6607 | NMEDIT=":" |
| 6608 | else |
| 6609 | case $cross_compiling:$ac_tool_warned in |
| 6610 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6612 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6613 | ac_tool_warned=yes ;; |
| 6614 | esac |
| 6615 | NMEDIT=$ac_ct_NMEDIT |
| 6616 | fi |
| 6617 | else |
| 6618 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6619 | fi |
| 6620 | |
| 6621 | if test -n "$ac_tool_prefix"; then |
| 6622 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6623 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6625 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6626 | if ${ac_cv_prog_LIPO+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6627 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6628 | else |
| 6629 | if test -n "$LIPO"; then |
| 6630 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6631 | else |
| 6632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6633 | for as_dir in $PATH |
| 6634 | do |
| 6635 | IFS=$as_save_IFS |
| 6636 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6638 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6639 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6640 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6641 | break 2 |
| 6642 | fi |
| 6643 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6644 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6645 | IFS=$as_save_IFS |
| 6646 | |
| 6647 | fi |
| 6648 | fi |
| 6649 | LIPO=$ac_cv_prog_LIPO |
| 6650 | if test -n "$LIPO"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6652 | $as_echo "$LIPO" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6653 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6655 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6656 | fi |
| 6657 | |
| 6658 | |
| 6659 | fi |
| 6660 | if test -z "$ac_cv_prog_LIPO"; then |
| 6661 | ac_ct_LIPO=$LIPO |
| 6662 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6663 | set dummy lipo; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6665 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6666 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6667 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6668 | else |
| 6669 | if test -n "$ac_ct_LIPO"; then |
| 6670 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6671 | else |
| 6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6673 | for as_dir in $PATH |
| 6674 | do |
| 6675 | IFS=$as_save_IFS |
| 6676 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6679 | ac_cv_prog_ac_ct_LIPO="lipo" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6681 | break 2 |
| 6682 | fi |
| 6683 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6684 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6685 | IFS=$as_save_IFS |
| 6686 | |
| 6687 | fi |
| 6688 | fi |
| 6689 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6690 | if test -n "$ac_ct_LIPO"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6692 | $as_echo "$ac_ct_LIPO" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6693 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6695 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6696 | fi |
| 6697 | |
| 6698 | if test "x$ac_ct_LIPO" = x; then |
| 6699 | LIPO=":" |
| 6700 | else |
| 6701 | case $cross_compiling:$ac_tool_warned in |
| 6702 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6704 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6705 | ac_tool_warned=yes ;; |
| 6706 | esac |
| 6707 | LIPO=$ac_ct_LIPO |
| 6708 | fi |
| 6709 | else |
| 6710 | LIPO="$ac_cv_prog_LIPO" |
| 6711 | fi |
| 6712 | |
| 6713 | if test -n "$ac_tool_prefix"; then |
| 6714 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6715 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6717 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6718 | if ${ac_cv_prog_OTOOL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6719 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6720 | else |
| 6721 | if test -n "$OTOOL"; then |
| 6722 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6723 | else |
| 6724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6725 | for as_dir in $PATH |
| 6726 | do |
| 6727 | IFS=$as_save_IFS |
| 6728 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6729 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6730 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6731 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6733 | break 2 |
| 6734 | fi |
| 6735 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6736 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6737 | IFS=$as_save_IFS |
| 6738 | |
| 6739 | fi |
| 6740 | fi |
| 6741 | OTOOL=$ac_cv_prog_OTOOL |
| 6742 | if test -n "$OTOOL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6744 | $as_echo "$OTOOL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6745 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6747 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6748 | fi |
| 6749 | |
| 6750 | |
| 6751 | fi |
| 6752 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6753 | ac_ct_OTOOL=$OTOOL |
| 6754 | # Extract the first word of "otool", so it can be a program name with args. |
| 6755 | set dummy otool; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6757 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6758 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6759 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6760 | else |
| 6761 | if test -n "$ac_ct_OTOOL"; then |
| 6762 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6763 | else |
| 6764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6765 | for as_dir in $PATH |
| 6766 | do |
| 6767 | IFS=$as_save_IFS |
| 6768 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6769 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6771 | ac_cv_prog_ac_ct_OTOOL="otool" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6773 | break 2 |
| 6774 | fi |
| 6775 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6776 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6777 | IFS=$as_save_IFS |
| 6778 | |
| 6779 | fi |
| 6780 | fi |
| 6781 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6782 | if test -n "$ac_ct_OTOOL"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6784 | $as_echo "$ac_ct_OTOOL" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6785 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6787 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6788 | fi |
| 6789 | |
| 6790 | if test "x$ac_ct_OTOOL" = x; then |
| 6791 | OTOOL=":" |
| 6792 | else |
| 6793 | case $cross_compiling:$ac_tool_warned in |
| 6794 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6795 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6796 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6797 | ac_tool_warned=yes ;; |
| 6798 | esac |
| 6799 | OTOOL=$ac_ct_OTOOL |
| 6800 | fi |
| 6801 | else |
| 6802 | OTOOL="$ac_cv_prog_OTOOL" |
| 6803 | fi |
| 6804 | |
| 6805 | if test -n "$ac_tool_prefix"; then |
| 6806 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6807 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6809 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6810 | if ${ac_cv_prog_OTOOL64+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6811 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6812 | else |
| 6813 | if test -n "$OTOOL64"; then |
| 6814 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6815 | else |
| 6816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6817 | for as_dir in $PATH |
| 6818 | do |
| 6819 | IFS=$as_save_IFS |
| 6820 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6821 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6822 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6823 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6825 | break 2 |
| 6826 | fi |
| 6827 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6828 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6829 | IFS=$as_save_IFS |
| 6830 | |
| 6831 | fi |
| 6832 | fi |
| 6833 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6834 | if test -n "$OTOOL64"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6836 | $as_echo "$OTOOL64" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6837 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6839 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6840 | fi |
| 6841 | |
| 6842 | |
| 6843 | fi |
| 6844 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6845 | ac_ct_OTOOL64=$OTOOL64 |
| 6846 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6847 | set dummy otool64; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6849 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6850 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6851 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6852 | else |
| 6853 | if test -n "$ac_ct_OTOOL64"; then |
| 6854 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6855 | else |
| 6856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6857 | for as_dir in $PATH |
| 6858 | do |
| 6859 | IFS=$as_save_IFS |
| 6860 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6861 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6863 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6865 | break 2 |
| 6866 | fi |
| 6867 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6868 | done |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6869 | IFS=$as_save_IFS |
| 6870 | |
| 6871 | fi |
| 6872 | fi |
| 6873 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6874 | if test -n "$ac_ct_OTOOL64"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6876 | $as_echo "$ac_ct_OTOOL64" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6877 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6879 | $as_echo "no" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6880 | fi |
| 6881 | |
| 6882 | if test "x$ac_ct_OTOOL64" = x; then |
| 6883 | OTOOL64=":" |
| 6884 | else |
| 6885 | case $cross_compiling:$ac_tool_warned in |
| 6886 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6888 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6889 | ac_tool_warned=yes ;; |
| 6890 | esac |
| 6891 | OTOOL64=$ac_ct_OTOOL64 |
| 6892 | fi |
| 6893 | else |
| 6894 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6895 | fi |
| 6896 | |
| 6897 | |
| 6898 | |
| 6899 | |
| 6900 | |
| 6901 | |
| 6902 | |
| 6903 | |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | |
| 6908 | |
| 6909 | |
| 6910 | |
| 6911 | |
| 6912 | |
| 6913 | |
| 6914 | |
| 6915 | |
| 6916 | |
| 6917 | |
| 6918 | |
| 6919 | |
| 6920 | |
| 6921 | |
| 6922 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6924 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6925 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6926 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6927 | else |
| 6928 | lt_cv_apple_cc_single_mod=no |
| 6929 | if test -z "${LT_MULTI_MODULE}"; then |
| 6930 | # By default we will add the -single_module flag. You can override |
| 6931 | # by either setting the environment variable LT_MULTI_MODULE |
| 6932 | # non-empty at configure time, or by adding -multi_module to the |
| 6933 | # link flags. |
| 6934 | rm -rf libconftest.dylib* |
| 6935 | echo "int foo(void){return 1;}" > conftest.c |
| 6936 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6937 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6938 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6939 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 6940 | _lt_result=$? |
| 6941 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 6942 | lt_cv_apple_cc_single_mod=yes |
| 6943 | else |
| 6944 | cat conftest.err >&5 |
| 6945 | fi |
| 6946 | rm -rf libconftest.dylib* |
| 6947 | rm -f conftest.* |
| 6948 | fi |
| 6949 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6951 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6953 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6954 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6955 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6956 | else |
| 6957 | lt_cv_ld_exported_symbols_list=no |
| 6958 | save_LDFLAGS=$LDFLAGS |
| 6959 | echo "_main" > conftest.sym |
| 6960 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6962 | /* end confdefs.h. */ |
| 6963 | |
| 6964 | int |
| 6965 | main () |
| 6966 | { |
| 6967 | |
| 6968 | ; |
| 6969 | return 0; |
| 6970 | } |
| 6971 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6972 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6973 | lt_cv_ld_exported_symbols_list=yes |
| 6974 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6975 | lt_cv_ld_exported_symbols_list=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6976 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6977 | rm -f core conftest.err conftest.$ac_objext \ |
| 6978 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 6979 | LDFLAGS="$save_LDFLAGS" |
| 6980 | |
| 6981 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 6983 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 6985 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 6986 | if ${lt_cv_ld_force_load+:} false; then : |
| 6987 | $as_echo_n "(cached) " >&6 |
| 6988 | else |
| 6989 | lt_cv_ld_force_load=no |
| 6990 | cat > conftest.c << _LT_EOF |
| 6991 | int forced_loaded() { return 2;} |
| 6992 | _LT_EOF |
| 6993 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 6994 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 6995 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 6996 | $AR cru libconftest.a conftest.o 2>&5 |
| 6997 | echo "$RANLIB libconftest.a" >&5 |
| 6998 | $RANLIB libconftest.a 2>&5 |
| 6999 | cat > conftest.c << _LT_EOF |
| 7000 | int main() { return 0;} |
| 7001 | _LT_EOF |
| 7002 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7003 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7004 | _lt_result=$? |
| 7005 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
| 7006 | lt_cv_ld_force_load=yes |
| 7007 | else |
| 7008 | cat conftest.err >&5 |
| 7009 | fi |
| 7010 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7011 | rm -rf conftest.dSYM |
| 7012 | |
| 7013 | fi |
| 7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7015 | $as_echo "$lt_cv_ld_force_load" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7016 | case $host_os in |
| 7017 | rhapsody* | darwin1.[012]) |
| 7018 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7019 | darwin1.*) |
| 7020 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7021 | darwin*) # darwin 5.x on |
| 7022 | # if running on 10.5 or later, the deployment target defaults |
| 7023 | # to the OS version, if on x86, and 10.4, the deployment |
| 7024 | # target defaults to 10.4. Don't you love it? |
| 7025 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7026 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7027 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7028 | 10.[012]*) |
| 7029 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7030 | 10.*) |
| 7031 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7032 | esac |
| 7033 | ;; |
| 7034 | esac |
| 7035 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7036 | _lt_dar_single_mod='$single_module' |
| 7037 | fi |
| 7038 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7039 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7040 | else |
| 7041 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7042 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7043 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7044 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7045 | else |
| 7046 | _lt_dsymutil= |
| 7047 | fi |
| 7048 | ;; |
| 7049 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7050 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7051 | ac_ext=c |
| 7052 | ac_cpp='$CPP $CPPFLAGS' |
| 7053 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7054 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7055 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7057 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7058 | # On Suns, sometimes $CPP names a directory. |
| 7059 | if test -n "$CPP" && test -d "$CPP"; then |
| 7060 | CPP= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 7061 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7062 | if test -z "$CPP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7063 | if ${ac_cv_prog_CPP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7064 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7065 | else |
| 7066 | # Double quotes because CPP needs to be expanded |
| 7067 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7068 | do |
| 7069 | ac_preproc_ok=false |
| 7070 | for ac_c_preproc_warn_flag in '' yes |
| 7071 | do |
| 7072 | # Use a header file that comes with gcc, so configuring glibc |
| 7073 | # with a fresh cross-compiler works. |
| 7074 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7075 | # <limits.h> exists even on freestanding compilers. |
| 7076 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7077 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7079 | /* end confdefs.h. */ |
| 7080 | #ifdef __STDC__ |
| 7081 | # include <limits.h> |
| 7082 | #else |
| 7083 | # include <assert.h> |
| 7084 | #endif |
| 7085 | Syntax error |
| 7086 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7087 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7088 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7089 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7090 | # Broken: fails on valid input. |
| 7091 | continue |
| 7092 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7093 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7094 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7095 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7096 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7098 | /* end confdefs.h. */ |
| 7099 | #include <ac_nonexistent.h> |
| 7100 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7101 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7102 | # Broken: success on invalid input. |
| 7103 | continue |
| 7104 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7105 | # Passes both tests. |
| 7106 | ac_preproc_ok=: |
| 7107 | break |
| 7108 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7109 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7110 | |
| 7111 | done |
| 7112 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7113 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7114 | if $ac_preproc_ok; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7115 | break |
| 7116 | fi |
| 7117 | |
| 7118 | done |
| 7119 | ac_cv_prog_CPP=$CPP |
| 7120 | |
| 7121 | fi |
| 7122 | CPP=$ac_cv_prog_CPP |
| 7123 | else |
| 7124 | ac_cv_prog_CPP=$CPP |
| 7125 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7127 | $as_echo "$CPP" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7128 | ac_preproc_ok=false |
| 7129 | for ac_c_preproc_warn_flag in '' yes |
| 7130 | do |
| 7131 | # Use a header file that comes with gcc, so configuring glibc |
| 7132 | # with a fresh cross-compiler works. |
| 7133 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7134 | # <limits.h> exists even on freestanding compilers. |
| 7135 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7136 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7138 | /* end confdefs.h. */ |
| 7139 | #ifdef __STDC__ |
| 7140 | # include <limits.h> |
| 7141 | #else |
| 7142 | # include <assert.h> |
| 7143 | #endif |
| 7144 | Syntax error |
| 7145 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7146 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7147 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7148 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7149 | # Broken: fails on valid input. |
| 7150 | continue |
| 7151 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7152 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7153 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7154 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7155 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7157 | /* end confdefs.h. */ |
| 7158 | #include <ac_nonexistent.h> |
| 7159 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7160 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7161 | # Broken: success on invalid input. |
| 7162 | continue |
| 7163 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7164 | # Passes both tests. |
| 7165 | ac_preproc_ok=: |
| 7166 | break |
| 7167 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7168 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7169 | |
| 7170 | done |
| 7171 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7172 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7173 | if $ac_preproc_ok; then : |
| 7174 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7175 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7176 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7177 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7178 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7179 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7180 | fi |
| 7181 | |
| 7182 | ac_ext=c |
| 7183 | ac_cpp='$CPP $CPPFLAGS' |
| 7184 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7185 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7186 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7187 | |
| 7188 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7190 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7191 | if ${ac_cv_header_stdc+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7192 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7193 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7195 | /* end confdefs.h. */ |
| 7196 | #include <stdlib.h> |
| 7197 | #include <stdarg.h> |
| 7198 | #include <string.h> |
| 7199 | #include <float.h> |
| 7200 | |
| 7201 | int |
| 7202 | main () |
| 7203 | { |
| 7204 | |
| 7205 | ; |
| 7206 | return 0; |
| 7207 | } |
| 7208 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7209 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7210 | ac_cv_header_stdc=yes |
| 7211 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7212 | ac_cv_header_stdc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7213 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7215 | |
| 7216 | if test $ac_cv_header_stdc = yes; then |
| 7217 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7219 | /* end confdefs.h. */ |
| 7220 | #include <string.h> |
| 7221 | |
| 7222 | _ACEOF |
| 7223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7224 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7225 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7226 | else |
| 7227 | ac_cv_header_stdc=no |
| 7228 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7229 | rm -f conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7230 | |
| 7231 | fi |
| 7232 | |
| 7233 | if test $ac_cv_header_stdc = yes; then |
| 7234 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7236 | /* end confdefs.h. */ |
| 7237 | #include <stdlib.h> |
| 7238 | |
| 7239 | _ACEOF |
| 7240 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7241 | $EGREP "free" >/dev/null 2>&1; then : |
| 7242 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7243 | else |
| 7244 | ac_cv_header_stdc=no |
| 7245 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7246 | rm -f conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7247 | |
| 7248 | fi |
| 7249 | |
| 7250 | if test $ac_cv_header_stdc = yes; then |
| 7251 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7252 | if test "$cross_compiling" = yes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7253 | : |
| 7254 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7256 | /* end confdefs.h. */ |
| 7257 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7258 | #include <stdlib.h> |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7259 | #if ((' ' & 0x0FF) == 0x020) |
| 7260 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7261 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7262 | #else |
| 7263 | # define ISLOWER(c) \ |
| 7264 | (('a' <= (c) && (c) <= 'i') \ |
| 7265 | || ('j' <= (c) && (c) <= 'r') \ |
| 7266 | || ('s' <= (c) && (c) <= 'z')) |
| 7267 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7268 | #endif |
| 7269 | |
| 7270 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7271 | int |
| 7272 | main () |
| 7273 | { |
| 7274 | int i; |
| 7275 | for (i = 0; i < 256; i++) |
| 7276 | if (XOR (islower (i), ISLOWER (i)) |
| 7277 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7278 | return 2; |
| 7279 | return 0; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7280 | } |
| 7281 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7282 | if ac_fn_c_try_run "$LINENO"; then : |
| 7283 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7284 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7285 | ac_cv_header_stdc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7286 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7287 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7288 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7289 | fi |
| 7290 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7291 | fi |
| 7292 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7294 | $as_echo "$ac_cv_header_stdc" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7295 | if test $ac_cv_header_stdc = yes; then |
| 7296 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7297 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7298 | |
| 7299 | fi |
| 7300 | |
| 7301 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7302 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7303 | inttypes.h stdint.h unistd.h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7304 | do : |
| 7305 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7306 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7307 | " |
| 7308 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7309 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7310 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7311 | _ACEOF |
| 7312 | |
| 7313 | fi |
| 7314 | |
| 7315 | done |
| 7316 | |
| 7317 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7318 | for ac_header in dlfcn.h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7319 | do : |
| 7320 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7321 | " |
| 7322 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7323 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7324 | #define HAVE_DLFCN_H 1 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7325 | _ACEOF |
| 7326 | |
| 7327 | fi |
| 7328 | |
| 7329 | done |
| 7330 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7331 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7332 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7333 | |
| 7334 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7335 | # Set options |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7336 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 7337 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7338 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7339 | enable_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7340 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7341 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7342 | enable_win32_dll=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7343 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7344 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7345 | # Check whether --enable-shared was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7346 | if test "${enable_shared+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7347 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7348 | case $enableval in |
| 7349 | yes) enable_shared=yes ;; |
| 7350 | no) enable_shared=no ;; |
| 7351 | *) |
| 7352 | enable_shared=no |
| 7353 | # Look at the argument we got. We use all the common list separators. |
| 7354 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7355 | for pkg in $enableval; do |
| 7356 | IFS="$lt_save_ifs" |
| 7357 | if test "X$pkg" = "X$p"; then |
| 7358 | enable_shared=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7359 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7360 | done |
| 7361 | IFS="$lt_save_ifs" |
| 7362 | ;; |
| 7363 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7364 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7365 | enable_shared=yes |
| 7366 | fi |
| 7367 | |
| 7368 | |
| 7369 | |
| 7370 | |
| 7371 | |
| 7372 | |
| 7373 | |
| 7374 | |
| 7375 | |
| 7376 | # Check whether --enable-static was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7377 | if test "${enable_static+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7378 | enableval=$enable_static; p=${PACKAGE-default} |
| 7379 | case $enableval in |
| 7380 | yes) enable_static=yes ;; |
| 7381 | no) enable_static=no ;; |
| 7382 | *) |
| 7383 | enable_static=no |
| 7384 | # Look at the argument we got. We use all the common list separators. |
| 7385 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7386 | for pkg in $enableval; do |
| 7387 | IFS="$lt_save_ifs" |
| 7388 | if test "X$pkg" = "X$p"; then |
| 7389 | enable_static=yes |
| 7390 | fi |
| 7391 | done |
| 7392 | IFS="$lt_save_ifs" |
| 7393 | ;; |
| 7394 | esac |
| 7395 | else |
| 7396 | enable_static=yes |
| 7397 | fi |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | |
| 7402 | |
| 7403 | |
| 7404 | |
| 7405 | |
| 7406 | |
| 7407 | |
| 7408 | # Check whether --with-pic was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7409 | if test "${with_pic+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7410 | withval=$with_pic; pic_mode="$withval" |
| 7411 | else |
| 7412 | pic_mode=default |
| 7413 | fi |
| 7414 | |
| 7415 | |
| 7416 | test -z "$pic_mode" && pic_mode=default |
| 7417 | |
| 7418 | |
| 7419 | |
| 7420 | |
| 7421 | |
| 7422 | |
| 7423 | |
| 7424 | # Check whether --enable-fast-install was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7425 | if test "${enable_fast_install+set}" = set; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7426 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7427 | case $enableval in |
| 7428 | yes) enable_fast_install=yes ;; |
| 7429 | no) enable_fast_install=no ;; |
| 7430 | *) |
| 7431 | enable_fast_install=no |
| 7432 | # Look at the argument we got. We use all the common list separators. |
| 7433 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7434 | for pkg in $enableval; do |
| 7435 | IFS="$lt_save_ifs" |
| 7436 | if test "X$pkg" = "X$p"; then |
| 7437 | enable_fast_install=yes |
| 7438 | fi |
| 7439 | done |
| 7440 | IFS="$lt_save_ifs" |
| 7441 | ;; |
| 7442 | esac |
| 7443 | else |
| 7444 | enable_fast_install=yes |
| 7445 | fi |
| 7446 | |
| 7447 | |
| 7448 | |
| 7449 | |
| 7450 | |
| 7451 | |
| 7452 | |
| 7453 | |
| 7454 | |
| 7455 | |
| 7456 | |
| 7457 | # This can be used to rebuild libtool when needed |
| 7458 | LIBTOOL_DEPS="$ltmain" |
| 7459 | |
| 7460 | # Always use our own libtool. |
| 7461 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7462 | |
| 7463 | |
| 7464 | |
| 7465 | |
| 7466 | |
| 7467 | |
| 7468 | |
| 7469 | |
| 7470 | |
| 7471 | |
| 7472 | |
| 7473 | |
| 7474 | |
| 7475 | |
| 7476 | |
| 7477 | |
| 7478 | |
| 7479 | |
| 7480 | |
| 7481 | |
| 7482 | |
| 7483 | |
| 7484 | |
| 7485 | |
| 7486 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7487 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7488 | test -z "$LN_S" && LN_S="ln -s" |
| 7489 | |
| 7490 | |
| 7491 | |
| 7492 | |
| 7493 | |
| 7494 | |
| 7495 | |
| 7496 | |
| 7497 | |
| 7498 | |
| 7499 | |
| 7500 | |
| 7501 | |
| 7502 | |
| 7503 | if test -n "${ZSH_VERSION+set}" ; then |
| 7504 | setopt NO_GLOB_SUBST |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7505 | fi |
| 7506 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7508 | $as_echo_n "checking for objdir... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7509 | if ${lt_cv_objdir+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7510 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7511 | else |
| 7512 | rm -f .libs 2>/dev/null |
| 7513 | mkdir .libs 2>/dev/null |
| 7514 | if test -d .libs; then |
| 7515 | lt_cv_objdir=.libs |
| 7516 | else |
| 7517 | # MS-DOS does not allow filenames that begin with a dot. |
| 7518 | lt_cv_objdir=_libs |
| 7519 | fi |
| 7520 | rmdir .libs 2>/dev/null |
| 7521 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7523 | $as_echo "$lt_cv_objdir" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7524 | objdir=$lt_cv_objdir |
| 7525 | |
| 7526 | |
| 7527 | |
| 7528 | |
| 7529 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7530 | cat >>confdefs.h <<_ACEOF |
| 7531 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7532 | _ACEOF |
| 7533 | |
| 7534 | |
| 7535 | |
| 7536 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7537 | case $host_os in |
| 7538 | aix3*) |
| 7539 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7540 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7541 | # vanish in a puff of smoke. |
| 7542 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7543 | COLLECT_NAMES= |
| 7544 | export COLLECT_NAMES |
| 7545 | fi |
| 7546 | ;; |
| 7547 | esac |
| 7548 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7549 | # Global variables: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7550 | ofile=libtool |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7551 | can_build_shared=yes |
| 7552 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7553 | # All known linkers require a `.a' archive for static linking (except MSVC, |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7554 | # which needs '.lib'). |
| 7555 | libext=a |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7556 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7557 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 7558 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7559 | old_CC="$CC" |
| 7560 | old_CFLAGS="$CFLAGS" |
| 7561 | |
| 7562 | # Set sane defaults for various variables |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7563 | test -z "$CC" && CC=cc |
| 7564 | test -z "$LTCC" && LTCC=$CC |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7565 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7566 | test -z "$LD" && LD=ld |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7567 | test -z "$ac_objext" && ac_objext=o |
| 7568 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7569 | for cc_temp in $compiler""; do |
| 7570 | case $cc_temp in |
| 7571 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7572 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7573 | \-*) ;; |
| 7574 | *) break;; |
| 7575 | esac |
| 7576 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7577 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7578 | |
| 7579 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7580 | # Only perform the check for file, if the check method requires it |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7581 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7582 | case $deplibs_check_method in |
| 7583 | file_magic*) |
| 7584 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7586 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7587 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7588 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7589 | else |
| 7590 | case $MAGIC_CMD in |
| 7591 | [\\/*] | ?:[\\/]*) |
| 7592 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7593 | ;; |
| 7594 | *) |
| 7595 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7596 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7597 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7598 | for ac_dir in $ac_dummy; do |
| 7599 | IFS="$lt_save_ifs" |
| 7600 | test -z "$ac_dir" && ac_dir=. |
| 7601 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7602 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7603 | if test -n "$file_magic_test_file"; then |
| 7604 | case $deplibs_check_method in |
| 7605 | "file_magic "*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7606 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7607 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7608 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7609 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7610 | : |
| 7611 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7612 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7613 | |
| 7614 | *** Warning: the command libtool uses to detect shared libraries, |
| 7615 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7616 | *** The result is that libtool may fail to recognize shared libraries |
| 7617 | *** as such. This will affect the creation of libtool libraries that |
| 7618 | *** depend on shared libraries, but programs linked with such libtool |
| 7619 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7620 | *** may want to report the problem to your system manager and/or to |
| 7621 | *** bug-libtool@gnu.org |
| 7622 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7623 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7624 | fi ;; |
| 7625 | esac |
| 7626 | fi |
| 7627 | break |
| 7628 | fi |
| 7629 | done |
| 7630 | IFS="$lt_save_ifs" |
| 7631 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7632 | ;; |
| 7633 | esac |
| 7634 | fi |
| 7635 | |
| 7636 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7637 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7639 | $as_echo "$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7640 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7642 | $as_echo "no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7643 | fi |
| 7644 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7645 | |
| 7646 | |
| 7647 | |
| 7648 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7649 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7650 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7652 | $as_echo_n "checking for file... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7653 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7654 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7655 | else |
| 7656 | case $MAGIC_CMD in |
| 7657 | [\\/*] | ?:[\\/]*) |
| 7658 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7659 | ;; |
| 7660 | *) |
| 7661 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7662 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7663 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7664 | for ac_dir in $ac_dummy; do |
| 7665 | IFS="$lt_save_ifs" |
| 7666 | test -z "$ac_dir" && ac_dir=. |
| 7667 | if test -f $ac_dir/file; then |
| 7668 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7669 | if test -n "$file_magic_test_file"; then |
| 7670 | case $deplibs_check_method in |
| 7671 | "file_magic "*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7672 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7673 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7674 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7675 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7676 | : |
| 7677 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7678 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7679 | |
| 7680 | *** Warning: the command libtool uses to detect shared libraries, |
| 7681 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7682 | *** The result is that libtool may fail to recognize shared libraries |
| 7683 | *** as such. This will affect the creation of libtool libraries that |
| 7684 | *** depend on shared libraries, but programs linked with such libtool |
| 7685 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7686 | *** may want to report the problem to your system manager and/or to |
| 7687 | *** bug-libtool@gnu.org |
| 7688 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7689 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7690 | fi ;; |
| 7691 | esac |
| 7692 | fi |
| 7693 | break |
| 7694 | fi |
| 7695 | done |
| 7696 | IFS="$lt_save_ifs" |
| 7697 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7698 | ;; |
| 7699 | esac |
| 7700 | fi |
| 7701 | |
| 7702 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7703 | if test -n "$MAGIC_CMD"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7705 | $as_echo "$MAGIC_CMD" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7706 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7708 | $as_echo "no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7709 | fi |
| 7710 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7711 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7712 | else |
| 7713 | MAGIC_CMD=: |
| 7714 | fi |
| 7715 | fi |
| 7716 | |
| 7717 | fi |
| 7718 | ;; |
| 7719 | esac |
| 7720 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7721 | # Use C for the default configuration in the libtool script |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7722 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7723 | lt_save_CC="$CC" |
| 7724 | ac_ext=c |
| 7725 | ac_cpp='$CPP $CPPFLAGS' |
| 7726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7729 | |
| 7730 | |
| 7731 | # Source file extension for C test sources. |
| 7732 | ac_ext=c |
| 7733 | |
| 7734 | # Object file extension for compiled C test sources. |
| 7735 | objext=o |
| 7736 | objext=$objext |
| 7737 | |
| 7738 | # Code to be used in simple compile tests |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7739 | lt_simple_compile_test_code="int some_variable = 0;" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7740 | |
| 7741 | # Code to be used in simple link tests |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7742 | lt_simple_link_test_code='int main(){return(0);}' |
| 7743 | |
| 7744 | |
| 7745 | |
| 7746 | |
| 7747 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7748 | |
| 7749 | |
| 7750 | # If no C compiler was specified, use CC. |
| 7751 | LTCC=${LTCC-"$CC"} |
| 7752 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7753 | # If no C compiler flags were specified, use CFLAGS. |
| 7754 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7755 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7756 | # Allow CC to be a program name with arguments. |
| 7757 | compiler=$CC |
| 7758 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7759 | # Save the default compiler, since it gets overwritten when the other |
| 7760 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 7761 | compiler_DEFAULT=$CC |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7762 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7763 | # save warnings/boilerplate of simple test code |
| 7764 | ac_outfile=conftest.$ac_objext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7765 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7766 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7767 | _lt_compiler_boilerplate=`cat conftest.err` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7768 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7769 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7770 | ac_outfile=conftest.$ac_objext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7771 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7772 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7773 | _lt_linker_boilerplate=`cat conftest.err` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7774 | $RM -r conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7775 | |
| 7776 | |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 7777 | ## CAVEAT EMPTOR: |
| 7778 | ## There is no encapsulation within the following macros, do not change |
| 7779 | ## the running order or otherwise move them around unless you know exactly |
| 7780 | ## what you are doing... |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7781 | if test -n "$compiler"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7782 | |
| 7783 | lt_prog_compiler_no_builtin_flag= |
| 7784 | |
| 7785 | if test "$GCC" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7786 | case $cc_basename in |
| 7787 | nvcc*) |
| 7788 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 7789 | *) |
| 7790 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 7791 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7792 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7794 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7795 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7796 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7797 | else |
| 7798 | lt_cv_prog_compiler_rtti_exceptions=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7799 | ac_outfile=conftest.$ac_objext |
| 7800 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7801 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7802 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7803 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7804 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7805 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7806 | # The option is referenced via a variable to avoid confusing sed. |
| 7807 | lt_compile=`echo "$ac_compile" | $SED \ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7808 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7809 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7810 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7811 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7812 | (eval "$lt_compile" 2>conftest.err) |
| 7813 | ac_status=$? |
| 7814 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7816 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7817 | # The compiler can only warn and ignore the option if not recognized |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7818 | # So say no if there are warnings other than the usual output. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7819 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7820 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7821 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7822 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7823 | fi |
| 7824 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7825 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7826 | |
| 7827 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 7829 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7830 | |
| 7831 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7832 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7833 | else |
| 7834 | : |
| 7835 | fi |
| 7836 | |
| 7837 | fi |
| 7838 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7839 | |
| 7840 | |
| 7841 | |
| 7842 | |
| 7843 | |
| 7844 | lt_prog_compiler_wl= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7845 | lt_prog_compiler_pic= |
| 7846 | lt_prog_compiler_static= |
| 7847 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7848 | |
| 7849 | if test "$GCC" = yes; then |
| 7850 | lt_prog_compiler_wl='-Wl,' |
| 7851 | lt_prog_compiler_static='-static' |
| 7852 | |
| 7853 | case $host_os in |
| 7854 | aix*) |
| 7855 | # All AIX code is PIC. |
| 7856 | if test "$host_cpu" = ia64; then |
| 7857 | # AIX 5 now supports IA64 processor |
| 7858 | lt_prog_compiler_static='-Bstatic' |
| 7859 | fi |
| 7860 | ;; |
| 7861 | |
| 7862 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7863 | case $host_cpu in |
| 7864 | powerpc) |
| 7865 | # see comment about AmigaOS4 .so support |
| 7866 | lt_prog_compiler_pic='-fPIC' |
| 7867 | ;; |
| 7868 | m68k) |
| 7869 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7870 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7871 | # like `-m68040'. |
| 7872 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7873 | ;; |
| 7874 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7875 | ;; |
| 7876 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7877 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7878 | # PIC is the default for these OSes. |
| 7879 | ;; |
| 7880 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7881 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7882 | # This hack is so that the source file can tell whether it is being |
| 7883 | # built for inclusion in a dll (and should export symbols for example). |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7884 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 7885 | # (--disable-auto-import) libraries |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7886 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7887 | ;; |
| 7888 | |
| 7889 | darwin* | rhapsody*) |
| 7890 | # PIC is the default on this platform |
| 7891 | # Common symbols not allowed in MH_DYLIB files |
| 7892 | lt_prog_compiler_pic='-fno-common' |
| 7893 | ;; |
| 7894 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7895 | haiku*) |
| 7896 | # PIC is the default for Haiku. |
| 7897 | # The "-static" flag exists, but is broken. |
| 7898 | lt_prog_compiler_static= |
| 7899 | ;; |
| 7900 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7901 | hpux*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7902 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 7903 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 7904 | # sets the default TLS model and affects inlining. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7905 | case $host_cpu in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7906 | hppa*64*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7907 | # +Z the default |
| 7908 | ;; |
| 7909 | *) |
| 7910 | lt_prog_compiler_pic='-fPIC' |
| 7911 | ;; |
| 7912 | esac |
| 7913 | ;; |
| 7914 | |
| 7915 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7916 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7917 | # Instead, we relocate shared libraries at runtime. |
| 7918 | ;; |
| 7919 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7920 | msdosdjgpp*) |
| 7921 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7922 | # on systems that don't support them. |
| 7923 | lt_prog_compiler_can_build_shared=no |
| 7924 | enable_shared=no |
| 7925 | ;; |
| 7926 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 7927 | *nto* | *qnx*) |
| 7928 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 7929 | # it will coredump. |
| 7930 | lt_prog_compiler_pic='-fPIC -shared' |
| 7931 | ;; |
| 7932 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7933 | sysv4*MP*) |
| 7934 | if test -d /usr/nec; then |
| 7935 | lt_prog_compiler_pic=-Kconform_pic |
| 7936 | fi |
| 7937 | ;; |
| 7938 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7939 | *) |
| 7940 | lt_prog_compiler_pic='-fPIC' |
| 7941 | ;; |
| 7942 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7943 | |
| 7944 | case $cc_basename in |
| 7945 | nvcc*) # Cuda Compiler Driver 2.2 |
| 7946 | lt_prog_compiler_wl='-Xlinker ' |
| 7947 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
| 7948 | ;; |
| 7949 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7950 | else |
| 7951 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7952 | case $host_os in |
| 7953 | aix*) |
| 7954 | lt_prog_compiler_wl='-Wl,' |
| 7955 | if test "$host_cpu" = ia64; then |
| 7956 | # AIX 5 now supports IA64 processor |
| 7957 | lt_prog_compiler_static='-Bstatic' |
| 7958 | else |
| 7959 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7960 | fi |
| 7961 | ;; |
| 7962 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7963 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7964 | # This hack is so that the source file can tell whether it is being |
| 7965 | # built for inclusion in a dll (and should export symbols for example). |
| 7966 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7967 | ;; |
| 7968 | |
| 7969 | hpux9* | hpux10* | hpux11*) |
| 7970 | lt_prog_compiler_wl='-Wl,' |
| 7971 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7972 | # not for PA HP-UX. |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7973 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7974 | hppa*64*|ia64*) |
| 7975 | # +Z the default |
| 7976 | ;; |
| 7977 | *) |
| 7978 | lt_prog_compiler_pic='+Z' |
| 7979 | ;; |
| 7980 | esac |
| 7981 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7982 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7983 | ;; |
| 7984 | |
| 7985 | irix5* | irix6* | nonstopux*) |
| 7986 | lt_prog_compiler_wl='-Wl,' |
| 7987 | # PIC (with -KPIC) is the default. |
| 7988 | lt_prog_compiler_static='-non_shared' |
| 7989 | ;; |
| 7990 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7991 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 7992 | case $cc_basename in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7993 | # old Intel for x86_64 which still supported -KPIC. |
| 7994 | ecc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 7995 | lt_prog_compiler_wl='-Wl,' |
| 7996 | lt_prog_compiler_pic='-KPIC' |
| 7997 | lt_prog_compiler_static='-static' |
| 7998 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 7999 | # icc used to be incompatible with GCC. |
| 8000 | # ICC 10 doesn't accept -KPIC any more. |
| 8001 | icc* | ifort*) |
| 8002 | lt_prog_compiler_wl='-Wl,' |
| 8003 | lt_prog_compiler_pic='-fPIC' |
| 8004 | lt_prog_compiler_static='-static' |
| 8005 | ;; |
| 8006 | # Lahey Fortran 8.1. |
| 8007 | lf95*) |
| 8008 | lt_prog_compiler_wl='-Wl,' |
| 8009 | lt_prog_compiler_pic='--shared' |
| 8010 | lt_prog_compiler_static='--static' |
| 8011 | ;; |
| 8012 | nagfor*) |
| 8013 | # NAG Fortran compiler |
| 8014 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8015 | lt_prog_compiler_pic='-PIC' |
| 8016 | lt_prog_compiler_static='-Bstatic' |
| 8017 | ;; |
| 8018 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8019 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8020 | # which looks to be a dead project) |
| 8021 | lt_prog_compiler_wl='-Wl,' |
| 8022 | lt_prog_compiler_pic='-fpic' |
| 8023 | lt_prog_compiler_static='-Bstatic' |
| 8024 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8025 | ccc*) |
| 8026 | lt_prog_compiler_wl='-Wl,' |
| 8027 | # All Alpha code is PIC. |
| 8028 | lt_prog_compiler_static='-non_shared' |
| 8029 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8030 | xl* | bgxl* | bgf* | mpixl*) |
| 8031 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8032 | lt_prog_compiler_wl='-Wl,' |
| 8033 | lt_prog_compiler_pic='-qpic' |
| 8034 | lt_prog_compiler_static='-qstaticlink' |
| 8035 | ;; |
| 8036 | *) |
| 8037 | case `$CC -V 2>&1 | sed 5q` in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8038 | *Sun\ F* | *Sun*Fortran*) |
| 8039 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8040 | lt_prog_compiler_pic='-KPIC' |
| 8041 | lt_prog_compiler_static='-Bstatic' |
| 8042 | lt_prog_compiler_wl='' |
| 8043 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8044 | *Sun\ C*) |
| 8045 | # Sun C 5.9 |
| 8046 | lt_prog_compiler_pic='-KPIC' |
| 8047 | lt_prog_compiler_static='-Bstatic' |
| 8048 | lt_prog_compiler_wl='-Wl,' |
| 8049 | ;; |
| 8050 | esac |
| 8051 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8052 | esac |
| 8053 | ;; |
| 8054 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8055 | newsos6) |
| 8056 | lt_prog_compiler_pic='-KPIC' |
| 8057 | lt_prog_compiler_static='-Bstatic' |
| 8058 | ;; |
| 8059 | |
| 8060 | *nto* | *qnx*) |
| 8061 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8062 | # it will coredump. |
| 8063 | lt_prog_compiler_pic='-fPIC -shared' |
| 8064 | ;; |
| 8065 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8066 | osf3* | osf4* | osf5*) |
| 8067 | lt_prog_compiler_wl='-Wl,' |
| 8068 | # All OSF/1 code is PIC. |
| 8069 | lt_prog_compiler_static='-non_shared' |
| 8070 | ;; |
| 8071 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8072 | rdos*) |
| 8073 | lt_prog_compiler_static='-non_shared' |
| 8074 | ;; |
| 8075 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8076 | solaris*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8077 | lt_prog_compiler_pic='-KPIC' |
| 8078 | lt_prog_compiler_static='-Bstatic' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8079 | case $cc_basename in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8080 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8081 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8082 | *) |
| 8083 | lt_prog_compiler_wl='-Wl,';; |
| 8084 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8085 | ;; |
| 8086 | |
| 8087 | sunos4*) |
| 8088 | lt_prog_compiler_wl='-Qoption ld ' |
| 8089 | lt_prog_compiler_pic='-PIC' |
| 8090 | lt_prog_compiler_static='-Bstatic' |
| 8091 | ;; |
| 8092 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8093 | sysv4 | sysv4.2uw2* | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8094 | lt_prog_compiler_wl='-Wl,' |
| 8095 | lt_prog_compiler_pic='-KPIC' |
| 8096 | lt_prog_compiler_static='-Bstatic' |
| 8097 | ;; |
| 8098 | |
| 8099 | sysv4*MP*) |
| 8100 | if test -d /usr/nec ;then |
| 8101 | lt_prog_compiler_pic='-Kconform_pic' |
| 8102 | lt_prog_compiler_static='-Bstatic' |
| 8103 | fi |
| 8104 | ;; |
| 8105 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8106 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8107 | lt_prog_compiler_wl='-Wl,' |
| 8108 | lt_prog_compiler_pic='-KPIC' |
| 8109 | lt_prog_compiler_static='-Bstatic' |
| 8110 | ;; |
| 8111 | |
| 8112 | unicos*) |
| 8113 | lt_prog_compiler_wl='-Wl,' |
| 8114 | lt_prog_compiler_can_build_shared=no |
| 8115 | ;; |
| 8116 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8117 | uts4*) |
| 8118 | lt_prog_compiler_pic='-pic' |
| 8119 | lt_prog_compiler_static='-Bstatic' |
| 8120 | ;; |
| 8121 | |
| 8122 | *) |
| 8123 | lt_prog_compiler_can_build_shared=no |
| 8124 | ;; |
| 8125 | esac |
| 8126 | fi |
| 8127 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8128 | case $host_os in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8129 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8130 | *djgpp*) |
| 8131 | lt_prog_compiler_pic= |
| 8132 | ;; |
| 8133 | *) |
| 8134 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8135 | ;; |
| 8136 | esac |
| 8137 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8139 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8140 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8141 | $as_echo_n "(cached) " >&6 |
| 8142 | else |
| 8143 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8144 | fi |
| 8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8146 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8147 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8148 | |
| 8149 | # |
| 8150 | # Check to make sure the PIC flag actually works. |
| 8151 | # |
| 8152 | if test -n "$lt_prog_compiler_pic"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8154 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8155 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8156 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8157 | else |
| 8158 | lt_cv_prog_compiler_pic_works=no |
| 8159 | ac_outfile=conftest.$ac_objext |
| 8160 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8161 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8162 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8163 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8164 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8165 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8166 | # The option is referenced via a variable to avoid confusing sed. |
| 8167 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8168 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8169 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8170 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8171 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8172 | (eval "$lt_compile" 2>conftest.err) |
| 8173 | ac_status=$? |
| 8174 | cat conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8176 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8177 | # The compiler can only warn and ignore the option if not recognized |
| 8178 | # So say no if there are warnings other than the usual output. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8179 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8180 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8181 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8182 | lt_cv_prog_compiler_pic_works=yes |
| 8183 | fi |
| 8184 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8185 | $RM conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8186 | |
| 8187 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8189 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8190 | |
| 8191 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8192 | case $lt_prog_compiler_pic in |
| 8193 | "" | " "*) ;; |
| 8194 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8195 | esac |
| 8196 | else |
| 8197 | lt_prog_compiler_pic= |
| 8198 | lt_prog_compiler_can_build_shared=no |
| 8199 | fi |
| 8200 | |
| 8201 | fi |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8213 | # |
| 8214 | # Check to make sure the static flag actually works. |
| 8215 | # |
| 8216 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8218 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8219 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8220 | $as_echo_n "(cached) " >&6 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8221 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8222 | lt_cv_prog_compiler_static_works=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8223 | save_LDFLAGS="$LDFLAGS" |
| 8224 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8225 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8226 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8227 | # The linker can only warn and ignore the option if not recognized |
| 8228 | # So say no if there are warnings |
| 8229 | if test -s conftest.err; then |
| 8230 | # Append any errors to the config.log. |
| 8231 | cat conftest.err 1>&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8232 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8233 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8234 | if diff conftest.exp conftest.er2 >/dev/null; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8235 | lt_cv_prog_compiler_static_works=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8236 | fi |
| 8237 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8238 | lt_cv_prog_compiler_static_works=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8239 | fi |
| 8240 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8241 | $RM -r conftest* |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8242 | LDFLAGS="$save_LDFLAGS" |
| 8243 | |
| 8244 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8246 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8247 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8248 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8249 | : |
| 8250 | else |
| 8251 | lt_prog_compiler_static= |
| 8252 | fi |
| 8253 | |
| 8254 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8255 | |
| 8256 | |
| 8257 | |
| 8258 | |
| 8259 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8261 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8262 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8263 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8264 | else |
| 8265 | lt_cv_prog_compiler_c_o=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8266 | $RM -r conftest 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8267 | mkdir conftest |
| 8268 | cd conftest |
| 8269 | mkdir out |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8270 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8271 | |
| 8272 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8273 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8274 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8275 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8276 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8277 | lt_compile=`echo "$ac_compile" | $SED \ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8278 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8279 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8280 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8281 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8282 | (eval "$lt_compile" 2>out/conftest.err) |
| 8283 | ac_status=$? |
| 8284 | cat out/conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8286 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8287 | then |
| 8288 | # The compiler can only warn and ignore the option if not recognized |
| 8289 | # So say no if there are warnings |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8290 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8291 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8292 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8293 | lt_cv_prog_compiler_c_o=yes |
| 8294 | fi |
| 8295 | fi |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8296 | chmod u+w . 2>&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8297 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8298 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8299 | # template instantiation |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8300 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8301 | $RM out/* && rmdir out |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8302 | cd .. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8303 | $RM -r conftest |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8304 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8305 | |
| 8306 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8308 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8309 | |
| 8310 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8316 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8317 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8318 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8319 | else |
| 8320 | lt_cv_prog_compiler_c_o=no |
| 8321 | $RM -r conftest 2>/dev/null |
| 8322 | mkdir conftest |
| 8323 | cd conftest |
| 8324 | mkdir out |
| 8325 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8326 | |
| 8327 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8328 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8329 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8330 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8331 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8332 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8333 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8334 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8335 | -e 's:$: $lt_compiler_flag:'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8336 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8337 | (eval "$lt_compile" 2>out/conftest.err) |
| 8338 | ac_status=$? |
| 8339 | cat out/conftest.err >&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8341 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8342 | then |
| 8343 | # The compiler can only warn and ignore the option if not recognized |
| 8344 | # So say no if there are warnings |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8345 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8346 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8347 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8348 | lt_cv_prog_compiler_c_o=yes |
| 8349 | fi |
| 8350 | fi |
| 8351 | chmod u+w . 2>&5 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8352 | $RM conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8353 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8354 | # template instantiation |
| 8355 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8356 | $RM out/* && rmdir out |
| 8357 | cd .. |
| 8358 | $RM -r conftest |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8359 | $RM conftest* |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8360 | |
| 8361 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8363 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8368 | hard_links="nottested" |
| 8369 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8370 | # do not overwrite the value of need_locks provided by the user |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8372 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8373 | hard_links=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8374 | $RM conftest* |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8375 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8376 | touch conftest.a |
| 8377 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8378 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8380 | $as_echo "$hard_links" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8381 | if test "$hard_links" = no; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8383 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8384 | need_locks=warn |
| 8385 | fi |
| 8386 | else |
| 8387 | need_locks=no |
| 8388 | fi |
| 8389 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 8396 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8397 | |
| 8398 | runpath_var= |
| 8399 | allow_undefined_flag= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8400 | always_export_symbols=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8401 | archive_cmds= |
| 8402 | archive_expsym_cmds= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8403 | compiler_needs_object=no |
| 8404 | enable_shared_with_static_runtimes=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8405 | export_dynamic_flag_spec= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8406 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8407 | hardcode_automatic=no |
| 8408 | hardcode_direct=no |
| 8409 | hardcode_direct_absolute=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8410 | hardcode_libdir_flag_spec= |
| 8411 | hardcode_libdir_flag_spec_ld= |
| 8412 | hardcode_libdir_separator= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8413 | hardcode_minus_L=no |
| 8414 | hardcode_shlibpath_var=unsupported |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8415 | inherit_rpath=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8416 | link_all_deplibs=unknown |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8417 | module_cmds= |
| 8418 | module_expsym_cmds= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8419 | old_archive_from_new_cmds= |
| 8420 | old_archive_from_expsyms_cmds= |
| 8421 | thread_safe_flag_spec= |
| 8422 | whole_archive_flag_spec= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8423 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8424 | # included in the symbol list |
| 8425 | include_expsyms= |
| 8426 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8427 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8428 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8429 | # as well as any symbol that contains `d'. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8430 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8431 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8432 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8433 | # the symbol is explicitly referenced. Since portable code cannot |
| 8434 | # rely on this symbol name, it's probably fine to never include it in |
| 8435 | # preloaded symbol tables. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8436 | # Exclude shared library initialization/finalization symbols. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8437 | extract_expsyms_cmds= |
| 8438 | |
| 8439 | case $host_os in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8440 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8441 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8442 | # When not using gcc, we currently assume that we are using |
| 8443 | # Microsoft Visual C++. |
| 8444 | if test "$GCC" != yes; then |
| 8445 | with_gnu_ld=no |
| 8446 | fi |
| 8447 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8448 | interix*) |
| 8449 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8450 | with_gnu_ld=yes |
| 8451 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8452 | openbsd*) |
| 8453 | with_gnu_ld=no |
| 8454 | ;; |
| 8455 | esac |
| 8456 | |
| 8457 | ld_shlibs=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8458 | |
| 8459 | # On some targets, GNU ld is compatible enough with the native linker |
| 8460 | # that we're better off using the native interface for both. |
| 8461 | lt_use_gnu_ld_interface=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8462 | if test "$with_gnu_ld" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8463 | case $host_os in |
| 8464 | aix*) |
| 8465 | # The AIX port of GNU ld has always aspired to compatibility |
| 8466 | # with the native linker. However, as the warning in the GNU ld |
| 8467 | # block says, versions before 2.19.5* couldn't really create working |
| 8468 | # shared libraries, regardless of the interface used. |
| 8469 | case `$LD -v 2>&1` in |
| 8470 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 8471 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 8472 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 8473 | *) |
| 8474 | lt_use_gnu_ld_interface=yes |
| 8475 | ;; |
| 8476 | esac |
| 8477 | ;; |
| 8478 | *) |
| 8479 | lt_use_gnu_ld_interface=yes |
| 8480 | ;; |
| 8481 | esac |
| 8482 | fi |
| 8483 | |
| 8484 | if test "$lt_use_gnu_ld_interface" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8485 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8486 | wlarc='${wl}' |
| 8487 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8488 | # Set some defaults for GNU ld with shared library support. These |
| 8489 | # are reset later if shared libraries are not supported. Putting them |
| 8490 | # here allows them to be overridden if necessary. |
| 8491 | runpath_var=LD_RUN_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8492 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8493 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8494 | # ancient GNU ld didn't support --whole-archive et. al. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8495 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8496 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8497 | else |
| 8498 | whole_archive_flag_spec= |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8499 | fi |
| 8500 | supports_anon_versioning=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8501 | case `$LD -v 2>&1` in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8502 | *GNU\ gold*) supports_anon_versioning=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8503 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8504 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8505 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8506 | *\ 2.11.*) ;; # other 2.11 versions |
| 8507 | *) supports_anon_versioning=yes ;; |
| 8508 | esac |
| 8509 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8510 | # See if GNU ld supports shared libraries. |
| 8511 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8512 | aix[3-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8513 | # On AIX/PPC, the GNU linker is very broken |
| 8514 | if test "$host_cpu" != ia64; then |
| 8515 | ld_shlibs=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8516 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8517 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8518 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8519 | *** to be unable to reliably create shared libraries on AIX. |
| 8520 | *** Therefore, libtool is disabling shared libraries support. If you |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8521 | *** really care for shared libraries, you may want to install binutils |
| 8522 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 8523 | *** You will then need to restart the configuration process. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8524 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8525 | _LT_EOF |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8526 | fi |
| 8527 | ;; |
| 8528 | |
| 8529 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8530 | case $host_cpu in |
| 8531 | powerpc) |
| 8532 | # see comment about AmigaOS4 .so support |
| 8533 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8534 | archive_expsym_cmds='' |
| 8535 | ;; |
| 8536 | m68k) |
| 8537 | 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)' |
| 8538 | hardcode_libdir_flag_spec='-L$libdir' |
| 8539 | hardcode_minus_L=yes |
| 8540 | ;; |
| 8541 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8542 | ;; |
| 8543 | |
| 8544 | beos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8545 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8546 | allow_undefined_flag=unsupported |
| 8547 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8548 | # support --undefined. This deserves some investigation. FIXME |
| 8549 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8550 | else |
| 8551 | ld_shlibs=no |
| 8552 | fi |
| 8553 | ;; |
| 8554 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8555 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8556 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8557 | # as there is no search path for DLLs. |
| 8558 | hardcode_libdir_flag_spec='-L$libdir' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8559 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8560 | allow_undefined_flag=unsupported |
| 8561 | always_export_symbols=no |
| 8562 | enable_shared_with_static_runtimes=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8563 | 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' |
| 8564 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8565 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8566 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8567 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8568 | # If the export-symbols file already is a .def file (1st line |
| 8569 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8570 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8571 | cp $export_symbols $output_objdir/$soname.def; |
| 8572 | else |
| 8573 | echo EXPORTS > $output_objdir/$soname.def; |
| 8574 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8575 | fi~ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8576 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 8577 | else |
| 8578 | ld_shlibs=no |
| 8579 | fi |
| 8580 | ;; |
| 8581 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8582 | haiku*) |
| 8583 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8584 | link_all_deplibs=yes |
| 8585 | ;; |
| 8586 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8587 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8588 | hardcode_direct=no |
| 8589 | hardcode_shlibpath_var=no |
| 8590 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8591 | export_dynamic_flag_spec='${wl}-E' |
| 8592 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8593 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8594 | # default) and relocated if they conflict, which is a slow very memory |
| 8595 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8596 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8597 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8598 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8599 | 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' |
| 8600 | ;; |
| 8601 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8602 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8603 | tmp_diet=no |
| 8604 | if test "$host_os" = linux-dietlibc; then |
| 8605 | case $cc_basename in |
| 8606 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8607 | esac |
| 8608 | fi |
| 8609 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8610 | && test "$tmp_diet" = no |
| 8611 | then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8612 | tmp_addflag=' $pic_flag' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8613 | tmp_sharedflag='-shared' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8614 | case $cc_basename,$host_cpu in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8615 | pgcc*) # Portland Group C compiler |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8616 | 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' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8617 | tmp_addflag=' $pic_flag' |
| 8618 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8619 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8620 | # Portland Group f77 and f90 compilers |
| 8621 | 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' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8622 | tmp_addflag=' $pic_flag -Mnomain' ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8623 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8624 | tmp_addflag=' -i_dynamic' ;; |
| 8625 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 8626 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 8627 | ifc* | ifort*) # Intel Fortran compiler |
| 8628 | tmp_addflag=' -nofor_main' ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8629 | lf95*) # Lahey Fortran 8.1 |
| 8630 | whole_archive_flag_spec= |
| 8631 | tmp_sharedflag='--shared' ;; |
| 8632 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8633 | tmp_sharedflag='-qmkshrobj' |
| 8634 | tmp_addflag= ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8635 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8636 | 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' |
| 8637 | compiler_needs_object=yes |
| 8638 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8639 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8640 | case `$CC -V 2>&1 | sed 5q` in |
| 8641 | *Sun\ C*) # Sun C 5.9 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8642 | 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' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8643 | compiler_needs_object=yes |
| 8644 | tmp_sharedflag='-G' ;; |
| 8645 | *Sun\ F*) # Sun Fortran 8.3 |
| 8646 | tmp_sharedflag='-G' ;; |
| 8647 | esac |
| 8648 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8649 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8650 | if test "x$supports_anon_versioning" = xyes; then |
| 8651 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8652 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8653 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 8654 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 8655 | fi |
| 8656 | |
| 8657 | case $cc_basename in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8658 | xlf* | bgf* | bgxlf* | mpixlf*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8659 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 8660 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 8661 | hardcode_libdir_flag_spec= |
| 8662 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8663 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8664 | if test "x$supports_anon_versioning" = xyes; then |
| 8665 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 8666 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 8667 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8668 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8669 | fi |
| 8670 | ;; |
| 8671 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8672 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8673 | ld_shlibs=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8674 | fi |
| 8675 | ;; |
| 8676 | |
| 8677 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8678 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8679 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 8680 | wlarc= |
| 8681 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8682 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8683 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8684 | fi |
| 8685 | ;; |
| 8686 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8687 | solaris*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8688 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8689 | ld_shlibs=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8690 | cat <<_LT_EOF 1>&2 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8691 | |
| 8692 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 8693 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 8694 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8695 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 8696 | *** your PATH or compiler configuration so that the native linker is |
| 8697 | *** used, and then restart. |
| 8698 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8699 | _LT_EOF |
| 8700 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8701 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8702 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8703 | else |
| 8704 | ld_shlibs=no |
| 8705 | fi |
| 8706 | ;; |
| 8707 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8708 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 8709 | case `$LD -v 2>&1` in |
| 8710 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 8711 | ld_shlibs=no |
| 8712 | cat <<_LT_EOF 1>&2 |
| 8713 | |
| 8714 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 8715 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 8716 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 8717 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 8718 | *** your PATH or compiler configuration so that the native linker is |
| 8719 | *** used, and then restart. |
| 8720 | |
| 8721 | _LT_EOF |
| 8722 | ;; |
| 8723 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8724 | # For security reasons, it is highly recommended that you always |
| 8725 | # use absolute paths for naming shared libraries, and exclude the |
| 8726 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 8727 | # requires that you compile everything twice, which is a pain. |
| 8728 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 8729 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8730 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8731 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8732 | else |
| 8733 | ld_shlibs=no |
| 8734 | fi |
| 8735 | ;; |
| 8736 | esac |
| 8737 | ;; |
| 8738 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8739 | sunos4*) |
| 8740 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8741 | wlarc= |
| 8742 | hardcode_direct=yes |
| 8743 | hardcode_shlibpath_var=no |
| 8744 | ;; |
| 8745 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8746 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8747 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8748 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8749 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8750 | else |
| 8751 | ld_shlibs=no |
| 8752 | fi |
| 8753 | ;; |
| 8754 | esac |
| 8755 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8756 | if test "$ld_shlibs" = no; then |
| 8757 | runpath_var= |
| 8758 | hardcode_libdir_flag_spec= |
| 8759 | export_dynamic_flag_spec= |
| 8760 | whole_archive_flag_spec= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8761 | fi |
| 8762 | else |
| 8763 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8764 | case $host_os in |
| 8765 | aix3*) |
| 8766 | allow_undefined_flag=unsupported |
| 8767 | always_export_symbols=yes |
| 8768 | 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' |
| 8769 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8770 | # are no directories specified by -L. |
| 8771 | hardcode_minus_L=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8772 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8773 | # Neither direct hardcoding nor static linking is supported with a |
| 8774 | # broken collect2. |
| 8775 | hardcode_direct=unsupported |
| 8776 | fi |
| 8777 | ;; |
| 8778 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8779 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8780 | if test "$host_cpu" = ia64; then |
| 8781 | # On IA64, the linker does run time linking by default, so we don't |
| 8782 | # have to do anything special. |
| 8783 | aix_use_runtimelinking=no |
| 8784 | exp_sym_flag='-Bexport' |
| 8785 | no_entry_flag="" |
| 8786 | else |
| 8787 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8788 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8789 | # Also, AIX nm treats weak defined symbols like other global |
| 8790 | # defined symbols, whereas GNU nm marks them as "W". |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8791 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8792 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8793 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8794 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8795 | fi |
| 8796 | aix_use_runtimelinking=no |
| 8797 | |
| 8798 | # Test if we are trying to use run time linking or normal |
| 8799 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8800 | # need to do runtime linking. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8801 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8802 | for ld_flag in $LDFLAGS; do |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8803 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8804 | aix_use_runtimelinking=yes |
| 8805 | break |
| 8806 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8807 | done |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8808 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8809 | esac |
| 8810 | |
| 8811 | exp_sym_flag='-bexport' |
| 8812 | no_entry_flag='-bnoentry' |
| 8813 | fi |
| 8814 | |
| 8815 | # When large executables or shared objects are built, AIX ld can |
| 8816 | # have problems creating the table of contents. If linking a library |
| 8817 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8818 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8819 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8820 | |
| 8821 | archive_cmds='' |
| 8822 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8823 | hardcode_direct_absolute=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8824 | hardcode_libdir_separator=':' |
| 8825 | link_all_deplibs=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8826 | file_list_spec='${wl}-f,' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8827 | |
| 8828 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8829 | case $host_os in aix4.[012]|aix4.[012].*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8830 | # We only want to do this on AIX 4.2 and lower, the check |
| 8831 | # below for broken collect2 doesn't work under 4.3+ |
| 8832 | collect2name=`${CC} -print-prog-name=collect2` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8833 | if test -f "$collect2name" && |
| 8834 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8835 | then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8836 | # We have reworked collect2 |
| 8837 | : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8838 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8839 | # We have old collect2 |
| 8840 | hardcode_direct=unsupported |
| 8841 | # It fails to find uninstalled libraries when the uninstalled |
| 8842 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8843 | # to unsupported forces relinking |
| 8844 | hardcode_minus_L=yes |
| 8845 | hardcode_libdir_flag_spec='-L$libdir' |
| 8846 | hardcode_libdir_separator= |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8847 | fi |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8848 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8849 | esac |
| 8850 | shared_flag='-shared' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8851 | if test "$aix_use_runtimelinking" = yes; then |
| 8852 | shared_flag="$shared_flag "'${wl}-G' |
| 8853 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8854 | else |
| 8855 | # not using gcc |
| 8856 | if test "$host_cpu" = ia64; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8857 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8858 | # chokes on -Wl,-G. The following line is correct: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8859 | shared_flag='-G' |
| 8860 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8861 | if test "$aix_use_runtimelinking" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8862 | shared_flag='${wl}-G' |
| 8863 | else |
| 8864 | shared_flag='${wl}-bM:SRE' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8865 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8866 | fi |
| 8867 | fi |
| 8868 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8869 | export_dynamic_flag_spec='${wl}-bexpall' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8870 | # It seems that -bexpall does not export symbols beginning with |
| 8871 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8872 | always_export_symbols=yes |
| 8873 | if test "$aix_use_runtimelinking" = yes; then |
| 8874 | # Warning - without using the other runtime loading flags (-brtl), |
| 8875 | # -berok will link without error, but may produce a broken library. |
| 8876 | allow_undefined_flag='-berok' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8877 | # Determine the default libpath from the value encoded in an |
| 8878 | # empty executable. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8879 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 8880 | aix_libpath=$lt_cv_aix_libpath |
| 8881 | else |
| 8882 | if ${lt_cv_aix_libpath_+:} false; then : |
| 8883 | $as_echo_n "(cached) " >&6 |
| 8884 | else |
| 8885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8886 | /* end confdefs.h. */ |
| 8887 | |
| 8888 | int |
| 8889 | main () |
| 8890 | { |
| 8891 | |
| 8892 | ; |
| 8893 | return 0; |
| 8894 | } |
| 8895 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8896 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8897 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8898 | lt_aix_libpath_sed=' |
| 8899 | /Import File Strings/,/^$/ { |
| 8900 | /^0/ { |
| 8901 | s/^0 *\([^ ]*\) *$/\1/ |
| 8902 | p |
| 8903 | } |
| 8904 | }' |
| 8905 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8906 | # Check for a 64-bit object if we didn't find anything. |
| 8907 | if test -z "$lt_cv_aix_libpath_"; then |
| 8908 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8909 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 8910 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8911 | rm -f core conftest.err conftest.$ac_objext \ |
| 8912 | conftest$ac_exeext conftest.$ac_ext |
| 8913 | if test -z "$lt_cv_aix_libpath_"; then |
| 8914 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 8915 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8916 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8917 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8918 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8919 | aix_libpath=$lt_cv_aix_libpath_ |
| 8920 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8921 | |
| 8922 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8923 | 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" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8924 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8925 | if test "$host_cpu" = ia64; then |
| 8926 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8927 | allow_undefined_flag="-z nodefs" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8928 | 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" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8929 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8930 | # Determine the default libpath from the value encoded in an |
| 8931 | # empty executable. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8932 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 8933 | aix_libpath=$lt_cv_aix_libpath |
| 8934 | else |
| 8935 | if ${lt_cv_aix_libpath_+:} false; then : |
| 8936 | $as_echo_n "(cached) " >&6 |
| 8937 | else |
| 8938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8939 | /* end confdefs.h. */ |
| 8940 | |
| 8941 | int |
| 8942 | main () |
| 8943 | { |
| 8944 | |
| 8945 | ; |
| 8946 | return 0; |
| 8947 | } |
| 8948 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8949 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8950 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8951 | lt_aix_libpath_sed=' |
| 8952 | /Import File Strings/,/^$/ { |
| 8953 | /^0/ { |
| 8954 | s/^0 *\([^ ]*\) *$/\1/ |
| 8955 | p |
| 8956 | } |
| 8957 | }' |
| 8958 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8959 | # Check for a 64-bit object if we didn't find anything. |
| 8960 | if test -z "$lt_cv_aix_libpath_"; then |
| 8961 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 8962 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 8963 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8964 | rm -f core conftest.err conftest.$ac_objext \ |
| 8965 | conftest$ac_exeext conftest.$ac_ext |
| 8966 | if test -z "$lt_cv_aix_libpath_"; then |
| 8967 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 8968 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8969 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8970 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 8971 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8972 | aix_libpath=$lt_cv_aix_libpath_ |
| 8973 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8974 | |
| 8975 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8976 | # Warning - without using the other run time loading flags, |
| 8977 | # -berok will link without error, but may produce a broken library. |
| 8978 | no_undefined_flag=' ${wl}-bernotok' |
| 8979 | allow_undefined_flag=' ${wl}-berok' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 8980 | if test "$with_gnu_ld" = yes; then |
| 8981 | # We only use this code for GNU lds that support --whole-archive. |
| 8982 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 8983 | else |
| 8984 | # Exported symbols can be pulled into shared objects from archives |
| 8985 | whole_archive_flag_spec='$convenience' |
| 8986 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8987 | archive_cmds_need_lc=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 8988 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8989 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 8990 | fi |
| 8991 | fi |
| 8992 | ;; |
| 8993 | |
| 8994 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 8995 | case $host_cpu in |
| 8996 | powerpc) |
| 8997 | # see comment about AmigaOS4 .so support |
| 8998 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8999 | archive_expsym_cmds='' |
| 9000 | ;; |
| 9001 | m68k) |
| 9002 | 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)' |
| 9003 | hardcode_libdir_flag_spec='-L$libdir' |
| 9004 | hardcode_minus_L=yes |
| 9005 | ;; |
| 9006 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9007 | ;; |
| 9008 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9009 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9010 | export_dynamic_flag_spec=-rdynamic |
| 9011 | ;; |
| 9012 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9013 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9014 | # When not using gcc, we currently assume that we are using |
| 9015 | # Microsoft Visual C++. |
| 9016 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9017 | # no search path for DLLs. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9018 | case $cc_basename in |
| 9019 | cl*) |
| 9020 | # Native MSVC |
| 9021 | hardcode_libdir_flag_spec=' ' |
| 9022 | allow_undefined_flag=unsupported |
| 9023 | always_export_symbols=yes |
| 9024 | file_list_spec='@' |
| 9025 | # Tell ltmain to make .lib files, not .a files. |
| 9026 | libext=lib |
| 9027 | # Tell ltmain to make .dll files, not .so files. |
| 9028 | shrext_cmds=".dll" |
| 9029 | # FIXME: Setting linknames here is a bad hack. |
| 9030 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9031 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9032 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9033 | else |
| 9034 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9035 | fi~ |
| 9036 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9037 | linknames=' |
| 9038 | # The linker will not automatically build a static lib if we build a DLL. |
| 9039 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9040 | enable_shared_with_static_runtimes=yes |
| 9041 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9042 | # Don't use ranlib |
| 9043 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9044 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9045 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9046 | case $lt_outputfile in |
| 9047 | *.exe|*.EXE) ;; |
| 9048 | *) |
| 9049 | lt_outputfile="$lt_outputfile.exe" |
| 9050 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9051 | ;; |
| 9052 | esac~ |
| 9053 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9054 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9055 | $RM "$lt_outputfile.manifest"; |
| 9056 | fi' |
| 9057 | ;; |
| 9058 | *) |
| 9059 | # Assume MSVC wrapper |
| 9060 | hardcode_libdir_flag_spec=' ' |
| 9061 | allow_undefined_flag=unsupported |
| 9062 | # Tell ltmain to make .lib files, not .a files. |
| 9063 | libext=lib |
| 9064 | # Tell ltmain to make .dll files, not .so files. |
| 9065 | shrext_cmds=".dll" |
| 9066 | # FIXME: Setting linknames here is a bad hack. |
| 9067 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9068 | # The linker will automatically build a .lib file if we build a DLL. |
| 9069 | old_archive_from_new_cmds='true' |
| 9070 | # FIXME: Should let the user specify the lib program. |
| 9071 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9072 | enable_shared_with_static_runtimes=yes |
| 9073 | ;; |
| 9074 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9075 | ;; |
| 9076 | |
| 9077 | darwin* | rhapsody*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9078 | |
| 9079 | |
| 9080 | archive_cmds_need_lc=no |
| 9081 | hardcode_direct=no |
| 9082 | hardcode_automatic=yes |
| 9083 | hardcode_shlibpath_var=unsupported |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9084 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9085 | 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\"`' |
| 9086 | else |
| 9087 | whole_archive_flag_spec='' |
| 9088 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9089 | link_all_deplibs=yes |
| 9090 | allow_undefined_flag="$_lt_dar_allow_undefined" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9091 | case $cc_basename in |
| 9092 | ifort*) _lt_dar_can_shared=yes ;; |
| 9093 | *) _lt_dar_can_shared=$GCC ;; |
| 9094 | esac |
| 9095 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9096 | output_verbose_link_cmd=func_echo_all |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9097 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9098 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9099 | 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}" |
| 9100 | 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}" |
| 9101 | |
| 9102 | else |
| 9103 | ld_shlibs=no |
| 9104 | fi |
| 9105 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9106 | ;; |
| 9107 | |
| 9108 | dgux*) |
| 9109 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9110 | hardcode_libdir_flag_spec='-L$libdir' |
| 9111 | hardcode_shlibpath_var=no |
| 9112 | ;; |
| 9113 | |
| 9114 | freebsd1*) |
| 9115 | ld_shlibs=no |
| 9116 | ;; |
| 9117 | |
| 9118 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9119 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9120 | # does not break anything, and helps significantly (at the cost of a little |
| 9121 | # extra space). |
| 9122 | freebsd2.2*) |
| 9123 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9124 | hardcode_libdir_flag_spec='-R$libdir' |
| 9125 | hardcode_direct=yes |
| 9126 | hardcode_shlibpath_var=no |
| 9127 | ;; |
| 9128 | |
| 9129 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9130 | freebsd2*) |
| 9131 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9132 | hardcode_direct=yes |
| 9133 | hardcode_minus_L=yes |
| 9134 | hardcode_shlibpath_var=no |
| 9135 | ;; |
| 9136 | |
| 9137 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9138 | freebsd* | dragonfly*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9139 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9140 | hardcode_libdir_flag_spec='-R$libdir' |
| 9141 | hardcode_direct=yes |
| 9142 | hardcode_shlibpath_var=no |
| 9143 | ;; |
| 9144 | |
| 9145 | hpux9*) |
| 9146 | if test "$GCC" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9147 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9148 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9149 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9150 | fi |
| 9151 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9152 | hardcode_libdir_separator=: |
| 9153 | hardcode_direct=yes |
| 9154 | |
| 9155 | # hardcode_minus_L: Not really in the search PATH, |
| 9156 | # but as the default location of the library. |
| 9157 | hardcode_minus_L=yes |
| 9158 | export_dynamic_flag_spec='${wl}-E' |
| 9159 | ;; |
| 9160 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9161 | hpux10*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9162 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9163 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9164 | else |
| 9165 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9166 | fi |
| 9167 | if test "$with_gnu_ld" = no; then |
| 9168 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9169 | hardcode_libdir_flag_spec_ld='+b $libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9170 | hardcode_libdir_separator=: |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9171 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9172 | hardcode_direct_absolute=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9173 | export_dynamic_flag_spec='${wl}-E' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9174 | # hardcode_minus_L: Not really in the search PATH, |
| 9175 | # but as the default location of the library. |
| 9176 | hardcode_minus_L=yes |
| 9177 | fi |
| 9178 | ;; |
| 9179 | |
| 9180 | hpux11*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9181 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9182 | case $host_cpu in |
| 9183 | hppa*64*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9184 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9185 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9186 | ia64*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9187 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9188 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9189 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9190 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9191 | ;; |
| 9192 | esac |
| 9193 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9194 | case $host_cpu in |
| 9195 | hppa*64*) |
| 9196 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9197 | ;; |
| 9198 | ia64*) |
| 9199 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9200 | ;; |
| 9201 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9202 | |
| 9203 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9204 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9206 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9207 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 9208 | $as_echo_n "(cached) " >&6 |
| 9209 | else |
| 9210 | lt_cv_prog_compiler__b=no |
| 9211 | save_LDFLAGS="$LDFLAGS" |
| 9212 | LDFLAGS="$LDFLAGS -b" |
| 9213 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9214 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9215 | # The linker can only warn and ignore the option if not recognized |
| 9216 | # So say no if there are warnings |
| 9217 | if test -s conftest.err; then |
| 9218 | # Append any errors to the config.log. |
| 9219 | cat conftest.err 1>&5 |
| 9220 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9221 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9222 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9223 | lt_cv_prog_compiler__b=yes |
| 9224 | fi |
| 9225 | else |
| 9226 | lt_cv_prog_compiler__b=yes |
| 9227 | fi |
| 9228 | fi |
| 9229 | $RM -r conftest* |
| 9230 | LDFLAGS="$save_LDFLAGS" |
| 9231 | |
| 9232 | fi |
| 9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9234 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9235 | |
| 9236 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9237 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9238 | else |
| 9239 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9240 | fi |
| 9241 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9242 | ;; |
| 9243 | esac |
| 9244 | fi |
| 9245 | if test "$with_gnu_ld" = no; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9246 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9247 | hardcode_libdir_separator=: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9248 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9249 | case $host_cpu in |
| 9250 | hppa*64*|ia64*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9251 | hardcode_direct=no |
| 9252 | hardcode_shlibpath_var=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9253 | ;; |
| 9254 | *) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9255 | hardcode_direct=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9256 | hardcode_direct_absolute=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9257 | export_dynamic_flag_spec='${wl}-E' |
| 9258 | |
| 9259 | # hardcode_minus_L: Not really in the search PATH, |
| 9260 | # but as the default location of the library. |
| 9261 | hardcode_minus_L=yes |
| 9262 | ;; |
| 9263 | esac |
| 9264 | fi |
| 9265 | ;; |
| 9266 | |
| 9267 | irix5* | irix6* | nonstopux*) |
| 9268 | if test "$GCC" = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9269 | 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' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9270 | # Try to use the -exported_symbol ld option, if it does not |
| 9271 | # work, assume that -exports_file does not work either and |
| 9272 | # implicitly export all symbols. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9273 | # This should be the same for all languages, so no per-tag cache variable. |
| 9274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 9275 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 9276 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 9277 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9278 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9279 | save_LDFLAGS="$LDFLAGS" |
| 9280 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9282 | /* end confdefs.h. */ |
| 9283 | int foo (void) { return 0; } |
| 9284 | _ACEOF |
| 9285 | if ac_fn_c_try_link "$LINENO"; then : |
| 9286 | lt_cv_irix_exported_symbol=yes |
| 9287 | else |
| 9288 | lt_cv_irix_exported_symbol=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9289 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9290 | rm -f core conftest.err conftest.$ac_objext \ |
| 9291 | conftest$ac_exeext conftest.$ac_ext |
| 9292 | LDFLAGS="$save_LDFLAGS" |
| 9293 | fi |
| 9294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 9295 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 9296 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 9297 | 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' |
| 9298 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9299 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9300 | 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' |
| 9301 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9302 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9303 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9304 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9305 | hardcode_libdir_separator=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9306 | inherit_rpath=yes |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9307 | link_all_deplibs=yes |
| 9308 | ;; |
| 9309 | |
| 9310 | netbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9311 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9312 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9313 | else |
| 9314 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9315 | fi |
| 9316 | hardcode_libdir_flag_spec='-R$libdir' |
| 9317 | hardcode_direct=yes |
| 9318 | hardcode_shlibpath_var=no |
| 9319 | ;; |
| 9320 | |
| 9321 | newsos6) |
| 9322 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9323 | hardcode_direct=yes |
| 9324 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9325 | hardcode_libdir_separator=: |
| 9326 | hardcode_shlibpath_var=no |
| 9327 | ;; |
| 9328 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9329 | *nto* | *qnx*) |
| 9330 | ;; |
| 9331 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9332 | openbsd*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9333 | if test -f /usr/libexec/ld.so; then |
| 9334 | hardcode_direct=yes |
| 9335 | hardcode_shlibpath_var=no |
| 9336 | hardcode_direct_absolute=yes |
| 9337 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9338 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9339 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9340 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9341 | export_dynamic_flag_spec='${wl}-E' |
| 9342 | else |
| 9343 | case $host_os in |
| 9344 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9345 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9346 | hardcode_libdir_flag_spec='-R$libdir' |
| 9347 | ;; |
| 9348 | *) |
| 9349 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9350 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9351 | ;; |
| 9352 | esac |
| 9353 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9354 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9355 | ld_shlibs=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9356 | fi |
| 9357 | ;; |
| 9358 | |
| 9359 | os2*) |
| 9360 | hardcode_libdir_flag_spec='-L$libdir' |
| 9361 | hardcode_minus_L=yes |
| 9362 | allow_undefined_flag=unsupported |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9363 | 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' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9364 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9365 | ;; |
| 9366 | |
| 9367 | osf3*) |
| 9368 | if test "$GCC" = yes; then |
| 9369 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9370 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9371 | else |
| 9372 | allow_undefined_flag=' -expect_unresolved \*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9373 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9374 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9375 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9376 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9377 | hardcode_libdir_separator=: |
| 9378 | ;; |
| 9379 | |
| 9380 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9381 | if test "$GCC" = yes; then |
| 9382 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9383 | 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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9385 | else |
| 9386 | allow_undefined_flag=' -expect_unresolved \*' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9387 | 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' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9388 | 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~ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9389 | $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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9390 | |
| 9391 | # Both c and cxx compiler support -rpath directly |
| 9392 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9393 | fi |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9394 | archive_cmds_need_lc='no' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9395 | hardcode_libdir_separator=: |
| 9396 | ;; |
| 9397 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9398 | solaris*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9399 | no_undefined_flag=' -z defs' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9400 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9401 | wlarc='${wl}' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9402 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9403 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9404 | $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' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9405 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9406 | case `$CC -V 2>&1` in |
| 9407 | *"Compilers 5.0"*) |
| 9408 | wlarc='' |
| 9409 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9410 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9411 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9412 | ;; |
| 9413 | *) |
| 9414 | wlarc='${wl}' |
| 9415 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9416 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9417 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9418 | ;; |
| 9419 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9420 | fi |
| 9421 | hardcode_libdir_flag_spec='-R$libdir' |
| 9422 | hardcode_shlibpath_var=no |
| 9423 | case $host_os in |
| 9424 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9425 | *) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9426 | # The compiler driver will combine and reorder linker options, |
| 9427 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9428 | # but is careful enough not to reorder. |
| 9429 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 9430 | if test "$GCC" = yes; then |
| 9431 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9432 | else |
| 9433 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9434 | fi |
| 9435 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9436 | esac |
| 9437 | link_all_deplibs=yes |
| 9438 | ;; |
| 9439 | |
| 9440 | sunos4*) |
| 9441 | if test "x$host_vendor" = xsequent; then |
| 9442 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9443 | # files that make .init and .fini sections work. |
| 9444 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9445 | else |
| 9446 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9447 | fi |
| 9448 | hardcode_libdir_flag_spec='-L$libdir' |
| 9449 | hardcode_direct=yes |
| 9450 | hardcode_minus_L=yes |
| 9451 | hardcode_shlibpath_var=no |
| 9452 | ;; |
| 9453 | |
| 9454 | sysv4) |
| 9455 | case $host_vendor in |
| 9456 | sni) |
| 9457 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9458 | hardcode_direct=yes # is this really true??? |
| 9459 | ;; |
| 9460 | siemens) |
| 9461 | ## LD is ld it makes a PLAMLIB |
| 9462 | ## CC just makes a GrossModule. |
| 9463 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9464 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9465 | hardcode_direct=no |
| 9466 | ;; |
| 9467 | motorola) |
| 9468 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9469 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9470 | ;; |
| 9471 | esac |
| 9472 | runpath_var='LD_RUN_PATH' |
| 9473 | hardcode_shlibpath_var=no |
| 9474 | ;; |
| 9475 | |
| 9476 | sysv4.3*) |
| 9477 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9478 | hardcode_shlibpath_var=no |
| 9479 | export_dynamic_flag_spec='-Bexport' |
| 9480 | ;; |
| 9481 | |
| 9482 | sysv4*MP*) |
| 9483 | if test -d /usr/nec; then |
| 9484 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9485 | hardcode_shlibpath_var=no |
| 9486 | runpath_var=LD_RUN_PATH |
| 9487 | hardcode_runpath_var=yes |
| 9488 | ld_shlibs=yes |
| 9489 | fi |
| 9490 | ;; |
| 9491 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9492 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9493 | no_undefined_flag='${wl}-z,text' |
| 9494 | archive_cmds_need_lc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9495 | hardcode_shlibpath_var=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9496 | runpath_var='LD_RUN_PATH' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9497 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9498 | if test "$GCC" = yes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9499 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9500 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9501 | else |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9502 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9503 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9504 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9505 | ;; |
| 9506 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9507 | sysv5* | sco3.2v5* | sco5v6*) |
| 9508 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9509 | # link with -lc, and that would cause any symbols used from libc to |
| 9510 | # always be unresolved, which means just about no library would |
| 9511 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9512 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9513 | # as -z defs. |
| 9514 | no_undefined_flag='${wl}-z,text' |
| 9515 | allow_undefined_flag='${wl}-z,nodefs' |
| 9516 | archive_cmds_need_lc=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9517 | hardcode_shlibpath_var=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9518 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9519 | hardcode_libdir_separator=':' |
| 9520 | link_all_deplibs=yes |
| 9521 | export_dynamic_flag_spec='${wl}-Bexport' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9522 | runpath_var='LD_RUN_PATH' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9523 | |
| 9524 | if test "$GCC" = yes; then |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9525 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9526 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9527 | else |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9528 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9529 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9530 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9531 | ;; |
| 9532 | |
| 9533 | uts4*) |
| 9534 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9535 | hardcode_libdir_flag_spec='-L$libdir' |
| 9536 | hardcode_shlibpath_var=no |
| 9537 | ;; |
| 9538 | |
| 9539 | *) |
| 9540 | ld_shlibs=no |
| 9541 | ;; |
| 9542 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9543 | |
| 9544 | if test x$host_vendor = xsni; then |
| 9545 | case $host in |
| 9546 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9547 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9548 | ;; |
| 9549 | esac |
| 9550 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9551 | fi |
| 9552 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 9554 | $as_echo "$ld_shlibs" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9555 | test "$ld_shlibs" = no && can_build_shared=no |
| 9556 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9557 | with_gnu_ld=$with_gnu_ld |
| 9558 | |
| 9559 | |
| 9560 | |
| 9561 | |
| 9562 | |
| 9563 | |
| 9564 | |
| 9565 | |
| 9566 | |
| 9567 | |
| 9568 | |
| 9569 | |
| 9570 | |
| 9571 | |
| 9572 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9573 | # |
| 9574 | # Do we need to explicitly link libc? |
| 9575 | # |
| 9576 | case "x$archive_cmds_need_lc" in |
| 9577 | x|xyes) |
| 9578 | # Assume -lc should be added |
| 9579 | archive_cmds_need_lc=yes |
| 9580 | |
| 9581 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9582 | case $archive_cmds in |
| 9583 | *'~'*) |
| 9584 | # FIXME: we may have to deal with multi-command sequences. |
| 9585 | ;; |
| 9586 | '$CC '*) |
| 9587 | # Test whether the compiler implicitly links with -lc since on some |
| 9588 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9589 | # to ld, don't add -lc before -lgcc. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 9591 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9592 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 9593 | $as_echo_n "(cached) " >&6 |
| 9594 | else |
| 9595 | $RM conftest* |
| 9596 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9597 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9598 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9599 | (eval $ac_compile) 2>&5 |
| 9600 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9602 | test $ac_status = 0; } 2>conftest.err; then |
| 9603 | soname=conftest |
| 9604 | lib=conftest |
| 9605 | libobjs=conftest.$ac_objext |
| 9606 | deplibs= |
| 9607 | wl=$lt_prog_compiler_wl |
| 9608 | pic_flag=$lt_prog_compiler_pic |
| 9609 | compiler_flags=-v |
| 9610 | linker_flags=-v |
| 9611 | verstring= |
| 9612 | output_objdir=. |
| 9613 | libname=conftest |
| 9614 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9615 | allow_undefined_flag= |
| 9616 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9617 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9618 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9619 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9620 | test $ac_status = 0; } |
| 9621 | then |
| 9622 | lt_cv_archive_cmds_need_lc=no |
| 9623 | else |
| 9624 | lt_cv_archive_cmds_need_lc=yes |
| 9625 | fi |
| 9626 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9627 | else |
| 9628 | cat conftest.err 1>&5 |
| 9629 | fi |
| 9630 | $RM conftest* |
| 9631 | |
| 9632 | fi |
| 9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 9634 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 9635 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9636 | ;; |
| 9637 | esac |
| 9638 | fi |
| 9639 | ;; |
| 9640 | esac |
| 9641 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9642 | |
| 9643 | |
| 9644 | |
| 9645 | |
| 9646 | |
| 9647 | |
| 9648 | |
| 9649 | |
| 9650 | |
| 9651 | |
| 9652 | |
| 9653 | |
| 9654 | |
| 9655 | |
| 9656 | |
| 9657 | |
| 9658 | |
| 9659 | |
| 9660 | |
| 9661 | |
| 9662 | |
| 9663 | |
| 9664 | |
| 9665 | |
| 9666 | |
| 9667 | |
| 9668 | |
| 9669 | |
| 9670 | |
| 9671 | |
| 9672 | |
| 9673 | |
| 9674 | |
| 9675 | |
| 9676 | |
| 9677 | |
| 9678 | |
| 9679 | |
| 9680 | |
| 9681 | |
| 9682 | |
| 9683 | |
| 9684 | |
| 9685 | |
| 9686 | |
| 9687 | |
| 9688 | |
| 9689 | |
| 9690 | |
| 9691 | |
| 9692 | |
| 9693 | |
| 9694 | |
| 9695 | |
| 9696 | |
| 9697 | |
| 9698 | |
| 9699 | |
| 9700 | |
| 9701 | |
| 9702 | |
| 9703 | |
| 9704 | |
| 9705 | |
| 9706 | |
| 9707 | |
| 9708 | |
| 9709 | |
| 9710 | |
| 9711 | |
| 9712 | |
| 9713 | |
| 9714 | |
| 9715 | |
| 9716 | |
| 9717 | |
| 9718 | |
| 9719 | |
| 9720 | |
| 9721 | |
| 9722 | |
| 9723 | |
| 9724 | |
| 9725 | |
| 9726 | |
| 9727 | |
| 9728 | |
| 9729 | |
| 9730 | |
| 9731 | |
| 9732 | |
| 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | |
| 9738 | |
| 9739 | |
| 9740 | |
| 9741 | |
| 9742 | |
| 9743 | |
| 9744 | |
| 9745 | |
| 9746 | |
| 9747 | |
| 9748 | |
| 9749 | |
| 9750 | |
| 9751 | |
| 9752 | |
| 9753 | |
| 9754 | |
| 9755 | |
| 9756 | |
| 9757 | |
| 9758 | |
| 9759 | |
| 9760 | |
| 9761 | |
| 9762 | |
| 9763 | |
| 9764 | |
| 9765 | |
| 9766 | |
| 9767 | |
| 9768 | |
| 9769 | |
| 9770 | |
| 9771 | |
| 9772 | |
| 9773 | |
| 9774 | |
| 9775 | |
| 9776 | |
| 9777 | |
| 9778 | |
| 9779 | |
| 9780 | |
| 9781 | |
| 9782 | |
| 9783 | |
| 9784 | |
| 9785 | |
| 9786 | |
| 9787 | |
| 9788 | |
| 9789 | |
| 9790 | |
| 9791 | |
| 9792 | |
| 9793 | |
| 9794 | |
| 9795 | |
| 9796 | |
| 9797 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 9799 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9800 | |
| 9801 | if test "$GCC" = yes; then |
| 9802 | case $host_os in |
| 9803 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 9804 | *) lt_awk_arg="/^libraries:/" ;; |
| 9805 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9806 | case $host_os in |
| 9807 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 9808 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 9809 | esac |
| 9810 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 9811 | case $lt_search_path_spec in |
| 9812 | *\;*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9813 | # if the path contains ";" then we assume it to be the separator |
| 9814 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 9815 | # assumed that no part of a normal pathname contains ";" but that should |
| 9816 | # okay in the real world where ";" in dirpaths is itself problematic. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9817 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 9818 | ;; |
| 9819 | *) |
| 9820 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 9821 | ;; |
| 9822 | esac |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9823 | # Ok, now we have the path, separated by spaces, we can step through it |
| 9824 | # and add multilib dir if necessary. |
| 9825 | lt_tmp_lt_search_path_spec= |
| 9826 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 9827 | for lt_sys_path in $lt_search_path_spec; do |
| 9828 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 9829 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 9830 | else |
| 9831 | test -d "$lt_sys_path" && \ |
| 9832 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 9833 | fi |
| 9834 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9835 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9836 | BEGIN {RS=" "; FS="/|\n";} { |
| 9837 | lt_foo=""; |
| 9838 | lt_count=0; |
| 9839 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 9840 | if ($lt_i != "" && $lt_i != ".") { |
| 9841 | if ($lt_i == "..") { |
| 9842 | lt_count++; |
| 9843 | } else { |
| 9844 | if (lt_count == 0) { |
| 9845 | lt_foo="/" $lt_i lt_foo; |
| 9846 | } else { |
| 9847 | lt_count--; |
| 9848 | } |
| 9849 | } |
| 9850 | } |
| 9851 | } |
| 9852 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 9853 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 9854 | }'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9855 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 9856 | # for these hosts. |
| 9857 | case $host_os in |
| 9858 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 9859 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 9860 | esac |
| 9861 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9862 | else |
| 9863 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 9864 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9865 | library_names_spec= |
| 9866 | libname_spec='lib$name' |
| 9867 | soname_spec= |
| 9868 | shrext_cmds=".so" |
| 9869 | postinstall_cmds= |
| 9870 | postuninstall_cmds= |
| 9871 | finish_cmds= |
| 9872 | finish_eval= |
| 9873 | shlibpath_var= |
| 9874 | shlibpath_overrides_runpath=unknown |
| 9875 | version_type=none |
| 9876 | dynamic_linker="$host_os ld.so" |
| 9877 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9878 | need_lib_prefix=unknown |
| 9879 | hardcode_into_libs=no |
| 9880 | |
| 9881 | # when you set need_version to no, make sure it does not cause -set_version |
| 9882 | # flags to be left without arguments |
| 9883 | need_version=unknown |
| 9884 | |
| 9885 | case $host_os in |
| 9886 | aix3*) |
| 9887 | version_type=linux |
| 9888 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 9889 | shlibpath_var=LIBPATH |
| 9890 | |
| 9891 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 9892 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9893 | ;; |
| 9894 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9895 | aix[4-9]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9896 | version_type=linux |
| 9897 | need_lib_prefix=no |
| 9898 | need_version=no |
| 9899 | hardcode_into_libs=yes |
| 9900 | if test "$host_cpu" = ia64; then |
| 9901 | # AIX 5 supports IA64 |
| 9902 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 9903 | shlibpath_var=LD_LIBRARY_PATH |
| 9904 | else |
| 9905 | # With GCC up to 2.95.x, collect2 would create an import file |
| 9906 | # for dependence libraries. The import file would start with |
| 9907 | # the line `#! .'. This would cause the generated library to |
| 9908 | # depend on `.', always an invalid library. This was fixed in |
| 9909 | # development snapshots of GCC prior to 3.0. |
| 9910 | case $host_os in |
| 9911 | aix4 | aix4.[01] | aix4.[01].*) |
| 9912 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 9913 | echo ' yes ' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9914 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9915 | : |
| 9916 | else |
| 9917 | can_build_shared=no |
| 9918 | fi |
| 9919 | ;; |
| 9920 | esac |
| 9921 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 9922 | # soname into executable. Probably we can add versioning support to |
| 9923 | # collect2, so additional links can be useful in future. |
| 9924 | if test "$aix_use_runtimelinking" = yes; then |
| 9925 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 9926 | # instead of lib<name>.a to let people know that these are not |
| 9927 | # typical AIX shared libraries. |
| 9928 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9929 | else |
| 9930 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 9931 | # and later when we are not doing run time linking. |
| 9932 | library_names_spec='${libname}${release}.a $libname.a' |
| 9933 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9934 | fi |
| 9935 | shlibpath_var=LIBPATH |
| 9936 | fi |
| 9937 | ;; |
| 9938 | |
| 9939 | amigaos*) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9940 | case $host_cpu in |
| 9941 | powerpc) |
| 9942 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 9943 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 9944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9945 | ;; |
| 9946 | m68k) |
| 9947 | library_names_spec='$libname.ixlibrary $libname.a' |
| 9948 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9949 | 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' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9950 | ;; |
| 9951 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9952 | ;; |
| 9953 | |
| 9954 | beos*) |
| 9955 | library_names_spec='${libname}${shared_ext}' |
| 9956 | dynamic_linker="$host_os ld.so" |
| 9957 | shlibpath_var=LIBRARY_PATH |
| 9958 | ;; |
| 9959 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9960 | bsdi[45]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9961 | version_type=linux |
| 9962 | need_version=no |
| 9963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9964 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9965 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 9966 | shlibpath_var=LD_LIBRARY_PATH |
| 9967 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 9968 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 9969 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 9970 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 9971 | # libtool to hard-code these into programs |
| 9972 | ;; |
| 9973 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9974 | cygwin* | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9975 | version_type=windows |
| 9976 | shrext_cmds=".dll" |
| 9977 | need_version=no |
| 9978 | need_lib_prefix=no |
| 9979 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 9980 | case $GCC,$cc_basename in |
| 9981 | yes,*) |
| 9982 | # gcc |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9983 | library_names_spec='$libname.dll.a' |
| 9984 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 9985 | postinstall_cmds='base_file=`basename \${file}`~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9986 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9987 | dldir=$destdir/`dirname \$dlpath`~ |
| 9988 | test -d \$dldir || mkdir -p \$dldir~ |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 9989 | $install_prog $dir/$dlname \$dldir/$dlname~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9990 | chmod a+x \$dldir/$dlname~ |
| 9991 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 9992 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 9993 | fi' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9994 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 9995 | dlpath=$dir/\$dldll~ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 9996 | $RM \$dlpath' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 9997 | shlibpath_overrides_runpath=yes |
| 9998 | |
| 9999 | case $host_os in |
| 10000 | cygwin*) |
| 10001 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10002 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10003 | |
| 10004 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10005 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10006 | mingw* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10007 | # MinGW DLLs use traditional 'lib' prefix |
| 10008 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10009 | ;; |
| 10010 | pw32*) |
| 10011 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10012 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10013 | ;; |
| 10014 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10015 | dynamic_linker='Win32 ld.exe' |
| 10016 | ;; |
| 10017 | |
| 10018 | *,cl*) |
| 10019 | # Native MSVC |
| 10020 | libname_spec='$name' |
| 10021 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10022 | library_names_spec='${libname}.dll.lib' |
| 10023 | |
| 10024 | case $build_os in |
| 10025 | mingw*) |
| 10026 | sys_lib_search_path_spec= |
| 10027 | lt_save_ifs=$IFS |
| 10028 | IFS=';' |
| 10029 | for lt_path in $LIB |
| 10030 | do |
| 10031 | IFS=$lt_save_ifs |
| 10032 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10033 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10034 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10035 | done |
| 10036 | IFS=$lt_save_ifs |
| 10037 | # Convert to MSYS style. |
| 10038 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10039 | ;; |
| 10040 | cygwin*) |
| 10041 | # Convert to unix form, then to dos form, then back to unix form |
| 10042 | # but this time dos style (no spaces!) so that the unix form looks |
| 10043 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10044 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10045 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10046 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10047 | ;; |
| 10048 | *) |
| 10049 | sys_lib_search_path_spec="$LIB" |
| 10050 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10051 | # It is most probably a Windows format PATH. |
| 10052 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10053 | else |
| 10054 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10055 | fi |
| 10056 | # FIXME: find the short name or the path components, as spaces are |
| 10057 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10058 | ;; |
| 10059 | esac |
| 10060 | |
| 10061 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10062 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10063 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10064 | dldir=$destdir/`dirname \$dlpath`~ |
| 10065 | test -d \$dldir || mkdir -p \$dldir~ |
| 10066 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10067 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10068 | dlpath=$dir/\$dldll~ |
| 10069 | $RM \$dlpath' |
| 10070 | shlibpath_overrides_runpath=yes |
| 10071 | dynamic_linker='Win32 link.exe' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10072 | ;; |
| 10073 | |
| 10074 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10075 | # Assume MSVC wrapper |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10076 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10077 | dynamic_linker='Win32 ld.exe' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10078 | ;; |
| 10079 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10080 | # FIXME: first we should search . and the directory the executable is in |
| 10081 | shlibpath_var=PATH |
| 10082 | ;; |
| 10083 | |
| 10084 | darwin* | rhapsody*) |
| 10085 | dynamic_linker="$host_os dyld" |
| 10086 | version_type=darwin |
| 10087 | need_lib_prefix=no |
| 10088 | need_version=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10089 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10090 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10091 | shlibpath_overrides_runpath=yes |
| 10092 | shlibpath_var=DYLD_LIBRARY_PATH |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10093 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10094 | |
| 10095 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10096 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10097 | ;; |
| 10098 | |
| 10099 | dgux*) |
| 10100 | version_type=linux |
| 10101 | need_lib_prefix=no |
| 10102 | need_version=no |
| 10103 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10104 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10105 | shlibpath_var=LD_LIBRARY_PATH |
| 10106 | ;; |
| 10107 | |
| 10108 | freebsd1*) |
| 10109 | dynamic_linker=no |
| 10110 | ;; |
| 10111 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10112 | freebsd* | dragonfly*) |
| 10113 | # DragonFly does not have aout. When/if they implement a new |
| 10114 | # versioning mechanism, adjust this. |
| 10115 | if test -x /usr/bin/objformat; then |
| 10116 | objformat=`/usr/bin/objformat` |
| 10117 | else |
| 10118 | case $host_os in |
| 10119 | freebsd[123]*) objformat=aout ;; |
| 10120 | *) objformat=elf ;; |
| 10121 | esac |
| 10122 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10123 | version_type=freebsd-$objformat |
| 10124 | case $version_type in |
| 10125 | freebsd-elf*) |
| 10126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10127 | need_version=no |
| 10128 | need_lib_prefix=no |
| 10129 | ;; |
| 10130 | freebsd-*) |
| 10131 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10132 | need_version=yes |
| 10133 | ;; |
| 10134 | esac |
| 10135 | shlibpath_var=LD_LIBRARY_PATH |
| 10136 | case $host_os in |
| 10137 | freebsd2*) |
| 10138 | shlibpath_overrides_runpath=yes |
| 10139 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10140 | freebsd3.[01]* | freebsdelf3.[01]*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10141 | shlibpath_overrides_runpath=yes |
| 10142 | hardcode_into_libs=yes |
| 10143 | ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10144 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10145 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10146 | shlibpath_overrides_runpath=no |
| 10147 | hardcode_into_libs=yes |
| 10148 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10149 | *) # from 4.6 on, and DragonFly |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10150 | shlibpath_overrides_runpath=yes |
| 10151 | hardcode_into_libs=yes |
| 10152 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10153 | esac |
| 10154 | ;; |
| 10155 | |
| 10156 | gnu*) |
| 10157 | version_type=linux |
| 10158 | need_lib_prefix=no |
| 10159 | need_version=no |
| 10160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10161 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10162 | shlibpath_var=LD_LIBRARY_PATH |
| 10163 | hardcode_into_libs=yes |
| 10164 | ;; |
| 10165 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10166 | haiku*) |
| 10167 | version_type=linux |
| 10168 | need_lib_prefix=no |
| 10169 | need_version=no |
| 10170 | dynamic_linker="$host_os runtime_loader" |
| 10171 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10172 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10173 | shlibpath_var=LIBRARY_PATH |
| 10174 | shlibpath_overrides_runpath=yes |
| 10175 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10176 | hardcode_into_libs=yes |
| 10177 | ;; |
| 10178 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10179 | hpux9* | hpux10* | hpux11*) |
| 10180 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10181 | # link against other versions. |
| 10182 | version_type=sunos |
| 10183 | need_lib_prefix=no |
| 10184 | need_version=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10185 | case $host_cpu in |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10186 | ia64*) |
| 10187 | shrext_cmds='.so' |
| 10188 | hardcode_into_libs=yes |
| 10189 | dynamic_linker="$host_os dld.so" |
| 10190 | shlibpath_var=LD_LIBRARY_PATH |
| 10191 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10193 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10194 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10195 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10196 | else |
| 10197 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10198 | fi |
| 10199 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10200 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10201 | hppa*64*) |
| 10202 | shrext_cmds='.sl' |
| 10203 | hardcode_into_libs=yes |
| 10204 | dynamic_linker="$host_os dld.sl" |
| 10205 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10206 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10209 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10210 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10211 | ;; |
| 10212 | *) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10213 | shrext_cmds='.sl' |
| 10214 | dynamic_linker="$host_os dld.sl" |
| 10215 | shlibpath_var=SHLIB_PATH |
| 10216 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10218 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10219 | ;; |
| 10220 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10221 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10222 | postinstall_cmds='chmod 555 $lib' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10223 | # or fails outright, so override atomically: |
| 10224 | install_override_mode=555 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10225 | ;; |
| 10226 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10227 | interix[3-9]*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10228 | version_type=linux |
| 10229 | need_lib_prefix=no |
| 10230 | need_version=no |
| 10231 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10232 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10233 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10234 | shlibpath_var=LD_LIBRARY_PATH |
| 10235 | shlibpath_overrides_runpath=no |
| 10236 | hardcode_into_libs=yes |
| 10237 | ;; |
| 10238 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10239 | irix5* | irix6* | nonstopux*) |
| 10240 | case $host_os in |
| 10241 | nonstopux*) version_type=nonstopux ;; |
| 10242 | *) |
| 10243 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10244 | version_type=linux |
| 10245 | else |
| 10246 | version_type=irix |
| 10247 | fi ;; |
| 10248 | esac |
| 10249 | need_lib_prefix=no |
| 10250 | need_version=no |
| 10251 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10253 | case $host_os in |
| 10254 | irix5* | nonstopux*) |
| 10255 | libsuff= shlibsuff= |
| 10256 | ;; |
| 10257 | *) |
| 10258 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10259 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10260 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10261 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10262 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10263 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10264 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10265 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10266 | esac |
| 10267 | ;; |
| 10268 | esac |
| 10269 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10270 | shlibpath_overrides_runpath=no |
| 10271 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10272 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10273 | hardcode_into_libs=yes |
| 10274 | ;; |
| 10275 | |
| 10276 | # No shared lib support for Linux oldld, aout, or coff. |
| 10277 | linux*oldld* | linux*aout* | linux*coff*) |
| 10278 | dynamic_linker=no |
| 10279 | ;; |
| 10280 | |
| 10281 | # This must be Linux ELF. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10282 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10283 | version_type=linux |
| 10284 | need_lib_prefix=no |
| 10285 | need_version=no |
| 10286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10287 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10288 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10289 | shlibpath_var=LD_LIBRARY_PATH |
| 10290 | shlibpath_overrides_runpath=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10291 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10292 | # Some binutils ld are patched to set DT_RUNPATH |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10293 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 10294 | $as_echo_n "(cached) " >&6 |
| 10295 | else |
| 10296 | lt_cv_shlibpath_overrides_runpath=no |
| 10297 | save_LDFLAGS=$LDFLAGS |
| 10298 | save_libdir=$libdir |
| 10299 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10300 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10301 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10302 | /* end confdefs.h. */ |
| 10303 | |
| 10304 | int |
| 10305 | main () |
| 10306 | { |
| 10307 | |
| 10308 | ; |
| 10309 | return 0; |
| 10310 | } |
| 10311 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10312 | if ac_fn_c_try_link "$LINENO"; then : |
| 10313 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10314 | lt_cv_shlibpath_overrides_runpath=yes |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10315 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10316 | fi |
| 10317 | rm -f core conftest.err conftest.$ac_objext \ |
| 10318 | conftest$ac_exeext conftest.$ac_ext |
| 10319 | LDFLAGS=$save_LDFLAGS |
| 10320 | libdir=$save_libdir |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10321 | |
| 10322 | fi |
| 10323 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10324 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10325 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10326 | # This implies no fast_install, which is unacceptable. |
| 10327 | # Some rework will be needed to allow for fast_install |
| 10328 | # before this can be enabled. |
| 10329 | hardcode_into_libs=yes |
| 10330 | |
| 10331 | # Append ld.so.conf contents to the search path |
| 10332 | if test -f /etc/ld.so.conf; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10333 | 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' ' '` |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10334 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10335 | fi |
| 10336 | |
| 10337 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10338 | # powerpc, because MkLinux only supported shared libraries with the |
| 10339 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10340 | # most powerpc-linux boxes support dynamic linking these days and |
| 10341 | # people can always --disable-shared, the test was removed, and we |
| 10342 | # assume the GNU/Linux dynamic linker is in use. |
| 10343 | dynamic_linker='GNU/Linux ld.so' |
| 10344 | ;; |
| 10345 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10346 | netbsd*) |
| 10347 | version_type=sunos |
| 10348 | need_lib_prefix=no |
| 10349 | need_version=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10350 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10352 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10353 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10354 | else |
| 10355 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10356 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10357 | dynamic_linker='NetBSD ld.elf_so' |
| 10358 | fi |
| 10359 | shlibpath_var=LD_LIBRARY_PATH |
| 10360 | shlibpath_overrides_runpath=yes |
| 10361 | hardcode_into_libs=yes |
| 10362 | ;; |
| 10363 | |
| 10364 | newsos6) |
| 10365 | version_type=linux |
| 10366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10367 | shlibpath_var=LD_LIBRARY_PATH |
| 10368 | shlibpath_overrides_runpath=yes |
| 10369 | ;; |
| 10370 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10371 | *nto* | *qnx*) |
| 10372 | version_type=qnx |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10373 | need_lib_prefix=no |
| 10374 | need_version=no |
| 10375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10376 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10377 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10378 | shlibpath_overrides_runpath=no |
| 10379 | hardcode_into_libs=yes |
| 10380 | dynamic_linker='ldqnx.so' |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10381 | ;; |
| 10382 | |
| 10383 | openbsd*) |
| 10384 | version_type=sunos |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10385 | sys_lib_dlsearch_path_spec="/usr/lib" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10386 | need_lib_prefix=no |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10387 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10388 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10389 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10390 | *) need_version=no ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10391 | esac |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10393 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10394 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10395 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10396 | case $host_os in |
| 10397 | openbsd2.[89] | openbsd2.[89].*) |
| 10398 | shlibpath_overrides_runpath=no |
| 10399 | ;; |
| 10400 | *) |
| 10401 | shlibpath_overrides_runpath=yes |
| 10402 | ;; |
| 10403 | esac |
| 10404 | else |
| 10405 | shlibpath_overrides_runpath=yes |
| 10406 | fi |
| 10407 | ;; |
| 10408 | |
| 10409 | os2*) |
| 10410 | libname_spec='$name' |
| 10411 | shrext_cmds=".dll" |
| 10412 | need_lib_prefix=no |
| 10413 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10414 | dynamic_linker='OS/2 ld.exe' |
| 10415 | shlibpath_var=LIBPATH |
| 10416 | ;; |
| 10417 | |
| 10418 | osf3* | osf4* | osf5*) |
| 10419 | version_type=osf |
| 10420 | need_lib_prefix=no |
| 10421 | need_version=no |
| 10422 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10424 | shlibpath_var=LD_LIBRARY_PATH |
| 10425 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10426 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10427 | ;; |
| 10428 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10429 | rdos*) |
| 10430 | dynamic_linker=no |
| 10431 | ;; |
| 10432 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10433 | solaris*) |
| 10434 | version_type=linux |
| 10435 | need_lib_prefix=no |
| 10436 | need_version=no |
| 10437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10438 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10439 | shlibpath_var=LD_LIBRARY_PATH |
| 10440 | shlibpath_overrides_runpath=yes |
| 10441 | hardcode_into_libs=yes |
| 10442 | # ldd complains unless libraries are executable |
| 10443 | postinstall_cmds='chmod +x $lib' |
| 10444 | ;; |
| 10445 | |
| 10446 | sunos4*) |
| 10447 | version_type=sunos |
| 10448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10449 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10450 | shlibpath_var=LD_LIBRARY_PATH |
| 10451 | shlibpath_overrides_runpath=yes |
| 10452 | if test "$with_gnu_ld" = yes; then |
| 10453 | need_lib_prefix=no |
| 10454 | fi |
| 10455 | need_version=yes |
| 10456 | ;; |
| 10457 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10458 | sysv4 | sysv4.3*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10459 | version_type=linux |
| 10460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10461 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10462 | shlibpath_var=LD_LIBRARY_PATH |
| 10463 | case $host_vendor in |
| 10464 | sni) |
| 10465 | shlibpath_overrides_runpath=no |
| 10466 | need_lib_prefix=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10467 | runpath_var=LD_RUN_PATH |
| 10468 | ;; |
| 10469 | siemens) |
| 10470 | need_lib_prefix=no |
| 10471 | ;; |
| 10472 | motorola) |
| 10473 | need_lib_prefix=no |
| 10474 | need_version=no |
| 10475 | shlibpath_overrides_runpath=no |
| 10476 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10477 | ;; |
| 10478 | esac |
| 10479 | ;; |
| 10480 | |
| 10481 | sysv4*MP*) |
| 10482 | if test -d /usr/nec ;then |
| 10483 | version_type=linux |
| 10484 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10485 | soname_spec='$libname${shared_ext}.$major' |
| 10486 | shlibpath_var=LD_LIBRARY_PATH |
| 10487 | fi |
| 10488 | ;; |
| 10489 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10490 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10491 | version_type=freebsd-elf |
| 10492 | need_lib_prefix=no |
| 10493 | need_version=no |
| 10494 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10495 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10496 | shlibpath_var=LD_LIBRARY_PATH |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10497 | shlibpath_overrides_runpath=yes |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10498 | hardcode_into_libs=yes |
| 10499 | if test "$with_gnu_ld" = yes; then |
| 10500 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10501 | else |
| 10502 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10503 | case $host_os in |
| 10504 | sco3.2v5*) |
| 10505 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10506 | ;; |
| 10507 | esac |
| 10508 | fi |
| 10509 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10510 | ;; |
| 10511 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10512 | tpf*) |
| 10513 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10514 | version_type=linux |
| 10515 | need_lib_prefix=no |
| 10516 | need_version=no |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10518 | shlibpath_var=LD_LIBRARY_PATH |
| 10519 | shlibpath_overrides_runpath=no |
| 10520 | hardcode_into_libs=yes |
| 10521 | ;; |
| 10522 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10523 | uts4*) |
| 10524 | version_type=linux |
| 10525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10526 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10527 | shlibpath_var=LD_LIBRARY_PATH |
| 10528 | ;; |
| 10529 | |
| 10530 | *) |
| 10531 | dynamic_linker=no |
| 10532 | ;; |
| 10533 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10535 | $as_echo "$dynamic_linker" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10536 | test "$dynamic_linker" = no && can_build_shared=no |
| 10537 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10538 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10539 | if test "$GCC" = yes; then |
| 10540 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10541 | fi |
| 10542 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10543 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10544 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10545 | fi |
| 10546 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10547 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10548 | fi |
| 10549 | |
| 10550 | |
| 10551 | |
| 10552 | |
| 10553 | |
| 10554 | |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | |
| 10590 | |
| 10591 | |
| 10592 | |
| 10593 | |
| 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | |
| 10622 | |
| 10623 | |
| 10624 | |
| 10625 | |
| 10626 | |
| 10627 | |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | |
| 10633 | |
| 10634 | |
| 10635 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10636 | |
| 10637 | |
| 10638 | |
| 10639 | |
| 10640 | |
| 10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10642 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10643 | hardcode_action= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10644 | if test -n "$hardcode_libdir_flag_spec" || |
| 10645 | test -n "$runpath_var" || |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10646 | test "X$hardcode_automatic" = "Xyes" ; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10647 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10648 | # We can hardcode non-existent directories. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10649 | if test "$hardcode_direct" != no && |
| 10650 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10651 | # have to relink, otherwise we might link with an installed library |
| 10652 | # when we should be linking with a yet-to-be-installed one |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10653 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10654 | test "$hardcode_minus_L" != no; then |
| 10655 | # Linking always hardcodes the temporary library directory. |
| 10656 | hardcode_action=relink |
| 10657 | else |
| 10658 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10659 | hardcode_action=immediate |
| 10660 | fi |
| 10661 | else |
| 10662 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10663 | # directories. |
| 10664 | hardcode_action=unsupported |
| 10665 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10667 | $as_echo "$hardcode_action" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10668 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10669 | if test "$hardcode_action" = relink || |
| 10670 | test "$inherit_rpath" = yes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10671 | # Fast installation is not supported |
| 10672 | enable_fast_install=no |
| 10673 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10674 | test "$enable_shared" = no; then |
| 10675 | # Fast installation is not necessary |
| 10676 | enable_fast_install=needless |
| 10677 | fi |
| 10678 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10679 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10680 | |
| 10681 | |
| 10682 | |
| 10683 | |
| 10684 | if test "x$enable_dlopen" != xyes; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10685 | enable_dlopen=unknown |
| 10686 | enable_dlopen_self=unknown |
| 10687 | enable_dlopen_self_static=unknown |
| 10688 | else |
| 10689 | lt_cv_dlopen=no |
| 10690 | lt_cv_dlopen_libs= |
| 10691 | |
| 10692 | case $host_os in |
| 10693 | beos*) |
| 10694 | lt_cv_dlopen="load_add_on" |
| 10695 | lt_cv_dlopen_libs= |
| 10696 | lt_cv_dlopen_self=yes |
| 10697 | ;; |
| 10698 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10699 | mingw* | pw32* | cegcc*) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10700 | lt_cv_dlopen="LoadLibrary" |
| 10701 | lt_cv_dlopen_libs= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10702 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10703 | |
| 10704 | cygwin*) |
| 10705 | lt_cv_dlopen="dlopen" |
| 10706 | lt_cv_dlopen_libs= |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10707 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10708 | |
| 10709 | darwin*) |
| 10710 | # if libdl is installed we need to link against it |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10712 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10713 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10714 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10715 | else |
| 10716 | ac_check_lib_save_LIBS=$LIBS |
| 10717 | LIBS="-ldl $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10719 | /* end confdefs.h. */ |
| 10720 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10721 | /* Override any GCC internal prototype to avoid an error. |
| 10722 | Use char because int might match the return type of a GCC |
| 10723 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10724 | #ifdef __cplusplus |
| 10725 | extern "C" |
| 10726 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10727 | char dlopen (); |
| 10728 | int |
| 10729 | main () |
| 10730 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10731 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10732 | ; |
| 10733 | return 0; |
| 10734 | } |
| 10735 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10736 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10737 | ac_cv_lib_dl_dlopen=yes |
| 10738 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10739 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10740 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10741 | rm -f core conftest.err conftest.$ac_objext \ |
| 10742 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10743 | LIBS=$ac_check_lib_save_LIBS |
| 10744 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10746 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10747 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10748 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10749 | else |
| 10750 | |
| 10751 | lt_cv_dlopen="dyld" |
| 10752 | lt_cv_dlopen_libs= |
| 10753 | lt_cv_dlopen_self=yes |
| 10754 | |
| 10755 | fi |
| 10756 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10757 | ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10758 | |
| 10759 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10760 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10761 | if test "x$ac_cv_func_shl_load" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10762 | lt_cv_dlopen="shl_load" |
| 10763 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10765 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10766 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10767 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10768 | else |
| 10769 | ac_check_lib_save_LIBS=$LIBS |
| 10770 | LIBS="-ldld $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10772 | /* end confdefs.h. */ |
| 10773 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10774 | /* Override any GCC internal prototype to avoid an error. |
| 10775 | Use char because int might match the return type of a GCC |
| 10776 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10777 | #ifdef __cplusplus |
| 10778 | extern "C" |
| 10779 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10780 | char shl_load (); |
| 10781 | int |
| 10782 | main () |
| 10783 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10784 | return shl_load (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10785 | ; |
| 10786 | return 0; |
| 10787 | } |
| 10788 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10789 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10790 | ac_cv_lib_dld_shl_load=yes |
| 10791 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10792 | ac_cv_lib_dld_shl_load=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10793 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10794 | rm -f core conftest.err conftest.$ac_objext \ |
| 10795 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10796 | LIBS=$ac_check_lib_save_LIBS |
| 10797 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10799 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10800 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10801 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10802 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10803 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 10804 | if test "x$ac_cv_func_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10805 | lt_cv_dlopen="dlopen" |
| 10806 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10808 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10809 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10810 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10811 | else |
| 10812 | ac_check_lib_save_LIBS=$LIBS |
| 10813 | LIBS="-ldl $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10815 | /* end confdefs.h. */ |
| 10816 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10817 | /* Override any GCC internal prototype to avoid an error. |
| 10818 | Use char because int might match the return type of a GCC |
| 10819 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10820 | #ifdef __cplusplus |
| 10821 | extern "C" |
| 10822 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10823 | char dlopen (); |
| 10824 | int |
| 10825 | main () |
| 10826 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10827 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10828 | ; |
| 10829 | return 0; |
| 10830 | } |
| 10831 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10832 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10833 | ac_cv_lib_dl_dlopen=yes |
| 10834 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10835 | ac_cv_lib_dl_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10836 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10837 | rm -f core conftest.err conftest.$ac_objext \ |
| 10838 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10839 | LIBS=$ac_check_lib_save_LIBS |
| 10840 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10842 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10843 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10844 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10845 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10847 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10848 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10849 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10850 | else |
| 10851 | ac_check_lib_save_LIBS=$LIBS |
| 10852 | LIBS="-lsvld $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10854 | /* end confdefs.h. */ |
| 10855 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10856 | /* Override any GCC internal prototype to avoid an error. |
| 10857 | Use char because int might match the return type of a GCC |
| 10858 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10859 | #ifdef __cplusplus |
| 10860 | extern "C" |
| 10861 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10862 | char dlopen (); |
| 10863 | int |
| 10864 | main () |
| 10865 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10866 | return dlopen (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10867 | ; |
| 10868 | return 0; |
| 10869 | } |
| 10870 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10871 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10872 | ac_cv_lib_svld_dlopen=yes |
| 10873 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10874 | ac_cv_lib_svld_dlopen=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10875 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10876 | rm -f core conftest.err conftest.$ac_objext \ |
| 10877 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10878 | LIBS=$ac_check_lib_save_LIBS |
| 10879 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10881 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10882 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10883 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 10884 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10886 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10887 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10888 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10889 | else |
| 10890 | ac_check_lib_save_LIBS=$LIBS |
| 10891 | LIBS="-ldld $LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10893 | /* end confdefs.h. */ |
| 10894 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10895 | /* Override any GCC internal prototype to avoid an error. |
| 10896 | Use char because int might match the return type of a GCC |
| 10897 | builtin and then its argument prototype would still apply. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10898 | #ifdef __cplusplus |
| 10899 | extern "C" |
| 10900 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10901 | char dld_link (); |
| 10902 | int |
| 10903 | main () |
| 10904 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 10905 | return dld_link (); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10906 | ; |
| 10907 | return 0; |
| 10908 | } |
| 10909 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10910 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10911 | ac_cv_lib_dld_dld_link=yes |
| 10912 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10913 | ac_cv_lib_dld_dld_link=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10914 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10915 | rm -f core conftest.err conftest.$ac_objext \ |
| 10916 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10917 | LIBS=$ac_check_lib_save_LIBS |
| 10918 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10920 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10921 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10922 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10923 | fi |
| 10924 | |
| 10925 | |
| 10926 | fi |
| 10927 | |
| 10928 | |
| 10929 | fi |
| 10930 | |
| 10931 | |
| 10932 | fi |
| 10933 | |
| 10934 | |
| 10935 | fi |
| 10936 | |
| 10937 | |
| 10938 | fi |
| 10939 | |
| 10940 | ;; |
| 10941 | esac |
| 10942 | |
| 10943 | if test "x$lt_cv_dlopen" != xno; then |
| 10944 | enable_dlopen=yes |
| 10945 | else |
| 10946 | enable_dlopen=no |
| 10947 | fi |
| 10948 | |
| 10949 | case $lt_cv_dlopen in |
| 10950 | dlopen) |
| 10951 | save_CPPFLAGS="$CPPFLAGS" |
| 10952 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 10953 | |
| 10954 | save_LDFLAGS="$LDFLAGS" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 10955 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10956 | |
| 10957 | save_LIBS="$LIBS" |
| 10958 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 10959 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10961 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10962 | if ${lt_cv_dlopen_self+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 10963 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10964 | else |
| 10965 | if test "$cross_compiling" = yes; then : |
| 10966 | lt_cv_dlopen_self=cross |
| 10967 | else |
| 10968 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 10969 | lt_status=$lt_dlunknown |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 10970 | cat > conftest.$ac_ext <<_LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 10971 | #line $LINENO "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 10972 | #include "confdefs.h" |
| 10973 | |
| 10974 | #if HAVE_DLFCN_H |
| 10975 | #include <dlfcn.h> |
| 10976 | #endif |
| 10977 | |
| 10978 | #include <stdio.h> |
| 10979 | |
| 10980 | #ifdef RTLD_GLOBAL |
| 10981 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 10982 | #else |
| 10983 | # ifdef DL_GLOBAL |
| 10984 | # define LT_DLGLOBAL DL_GLOBAL |
| 10985 | # else |
| 10986 | # define LT_DLGLOBAL 0 |
| 10987 | # endif |
| 10988 | #endif |
| 10989 | |
| 10990 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 10991 | find out it does not work in some platform. */ |
| 10992 | #ifndef LT_DLLAZY_OR_NOW |
| 10993 | # ifdef RTLD_LAZY |
| 10994 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 10995 | # else |
| 10996 | # ifdef DL_LAZY |
| 10997 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 10998 | # else |
| 10999 | # ifdef RTLD_NOW |
| 11000 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11001 | # else |
| 11002 | # ifdef DL_NOW |
| 11003 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11004 | # else |
| 11005 | # define LT_DLLAZY_OR_NOW 0 |
| 11006 | # endif |
| 11007 | # endif |
| 11008 | # endif |
| 11009 | # endif |
| 11010 | #endif |
| 11011 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11012 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11013 | correspondingly for the symbols needed. */ |
| 11014 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11015 | int fnord () __attribute__((visibility("default"))); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11016 | #endif |
| 11017 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11018 | int fnord () { return 42; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11019 | int main () |
| 11020 | { |
| 11021 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11022 | int status = $lt_dlunknown; |
| 11023 | |
| 11024 | if (self) |
| 11025 | { |
| 11026 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11027 | else |
| 11028 | { |
| 11029 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11030 | else puts (dlerror ()); |
| 11031 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11032 | /* dlclose (self); */ |
| 11033 | } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11034 | else |
| 11035 | puts (dlerror ()); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11036 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11037 | return status; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11038 | } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11039 | _LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11040 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11041 | (eval $ac_link) 2>&5 |
| 11042 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11043 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11044 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11045 | (./conftest; exit; ) >&5 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11046 | lt_status=$? |
| 11047 | case x$lt_status in |
| 11048 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11049 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11050 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11051 | esac |
| 11052 | else : |
| 11053 | # compilation failed |
| 11054 | lt_cv_dlopen_self=no |
| 11055 | fi |
| 11056 | fi |
| 11057 | rm -fr conftest* |
| 11058 | |
| 11059 | |
| 11060 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11062 | $as_echo "$lt_cv_dlopen_self" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11063 | |
| 11064 | if test "x$lt_cv_dlopen_self" = xyes; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11065 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11067 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11068 | if ${lt_cv_dlopen_self_static+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11069 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11070 | else |
| 11071 | if test "$cross_compiling" = yes; then : |
| 11072 | lt_cv_dlopen_self_static=cross |
| 11073 | else |
| 11074 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11075 | lt_status=$lt_dlunknown |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11076 | cat > conftest.$ac_ext <<_LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11077 | #line $LINENO "configure" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11078 | #include "confdefs.h" |
| 11079 | |
| 11080 | #if HAVE_DLFCN_H |
| 11081 | #include <dlfcn.h> |
| 11082 | #endif |
| 11083 | |
| 11084 | #include <stdio.h> |
| 11085 | |
| 11086 | #ifdef RTLD_GLOBAL |
| 11087 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11088 | #else |
| 11089 | # ifdef DL_GLOBAL |
| 11090 | # define LT_DLGLOBAL DL_GLOBAL |
| 11091 | # else |
| 11092 | # define LT_DLGLOBAL 0 |
| 11093 | # endif |
| 11094 | #endif |
| 11095 | |
| 11096 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11097 | find out it does not work in some platform. */ |
| 11098 | #ifndef LT_DLLAZY_OR_NOW |
| 11099 | # ifdef RTLD_LAZY |
| 11100 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11101 | # else |
| 11102 | # ifdef DL_LAZY |
| 11103 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11104 | # else |
| 11105 | # ifdef RTLD_NOW |
| 11106 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11107 | # else |
| 11108 | # ifdef DL_NOW |
| 11109 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11110 | # else |
| 11111 | # define LT_DLLAZY_OR_NOW 0 |
| 11112 | # endif |
| 11113 | # endif |
| 11114 | # endif |
| 11115 | # endif |
| 11116 | #endif |
| 11117 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11118 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11119 | correspondingly for the symbols needed. */ |
| 11120 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11121 | int fnord () __attribute__((visibility("default"))); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11122 | #endif |
| 11123 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11124 | int fnord () { return 42; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11125 | int main () |
| 11126 | { |
| 11127 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11128 | int status = $lt_dlunknown; |
| 11129 | |
| 11130 | if (self) |
| 11131 | { |
| 11132 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11133 | else |
| 11134 | { |
| 11135 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11136 | else puts (dlerror ()); |
| 11137 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11138 | /* dlclose (self); */ |
| 11139 | } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11140 | else |
| 11141 | puts (dlerror ()); |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11142 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11143 | return status; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11144 | } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11145 | _LT_EOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11146 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11147 | (eval $ac_link) 2>&5 |
| 11148 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11149 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11150 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11151 | (./conftest; exit; ) >&5 2>/dev/null |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11152 | lt_status=$? |
| 11153 | case x$lt_status in |
| 11154 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11155 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11156 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11157 | esac |
| 11158 | else : |
| 11159 | # compilation failed |
| 11160 | lt_cv_dlopen_self_static=no |
| 11161 | fi |
| 11162 | fi |
| 11163 | rm -fr conftest* |
| 11164 | |
| 11165 | |
| 11166 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11168 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11169 | fi |
| 11170 | |
| 11171 | CPPFLAGS="$save_CPPFLAGS" |
| 11172 | LDFLAGS="$save_LDFLAGS" |
| 11173 | LIBS="$save_LIBS" |
| 11174 | ;; |
| 11175 | esac |
| 11176 | |
| 11177 | case $lt_cv_dlopen_self in |
| 11178 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11179 | *) enable_dlopen_self=unknown ;; |
| 11180 | esac |
| 11181 | |
| 11182 | case $lt_cv_dlopen_self_static in |
| 11183 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11184 | *) enable_dlopen_self_static=unknown ;; |
| 11185 | esac |
| 11186 | fi |
| 11187 | |
| 11188 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11189 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11190 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11191 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11192 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11193 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11194 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11195 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11196 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11197 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11198 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11199 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11200 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11201 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11202 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11203 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11204 | striplib= |
| 11205 | old_striplib= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11207 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11208 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11209 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11210 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11212 | $as_echo "yes" >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11213 | else |
| 11214 | # FIXME - insert some real tests, host_os isn't really good enough |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11215 | case $host_os in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11216 | darwin*) |
| 11217 | if test -n "$STRIP" ; then |
| 11218 | striplib="$STRIP -x" |
| 11219 | old_striplib="$STRIP -S" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11221 | $as_echo "yes" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11222 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11224 | $as_echo "no" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11225 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11226 | ;; |
| 11227 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11229 | $as_echo "no" >&6; } |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11230 | ;; |
| 11231 | esac |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11232 | fi |
| 11233 | |
| 11234 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11235 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11236 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11237 | |
| 11238 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11239 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11240 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11241 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11242 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11243 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11244 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11245 | # Report which library types will actually be built |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11247 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11249 | $as_echo "$can_build_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11250 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11252 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11253 | test "$can_build_shared" = "no" && enable_shared=no |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11254 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11255 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11256 | # are all built from PIC. |
| 11257 | case $host_os in |
| 11258 | aix3*) |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11259 | test "$enable_shared" = yes && enable_static=no |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11260 | if test -n "$RANLIB"; then |
| 11261 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11262 | postinstall_cmds='$RANLIB $lib' |
| 11263 | fi |
| 11264 | ;; |
| 11265 | |
| 11266 | aix[4-9]*) |
| 11267 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11268 | test "$enable_shared" = yes && enable_static=no |
| 11269 | fi |
| 11270 | ;; |
| 11271 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11273 | $as_echo "$enable_shared" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11274 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11276 | $as_echo_n "checking whether to build static libraries... " >&6; } |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11277 | # Make sure either enable_shared or enable_static is yes. |
| 11278 | test "$enable_shared" = yes || enable_static=yes |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11280 | $as_echo "$enable_static" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11281 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11282 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11283 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11284 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11285 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11286 | ac_ext=c |
| 11287 | ac_cpp='$CPP $CPPFLAGS' |
| 11288 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11289 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11290 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11291 | |
| 11292 | CC="$lt_save_CC" |
| 11293 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11294 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11295 | |
| 11296 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11297 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11298 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11299 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11300 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11301 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11302 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11303 | |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11304 | |
| 11305 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11306 | ac_config_commands="$ac_config_commands libtool" |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11307 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11308 | |
| 11309 | |
Lev Walkin | fbf1d28 | 2007-12-03 14:58:39 +0000 | [diff] [blame] | 11310 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 11311 | # Only expand once: |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11312 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11313 | |
| 11314 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11315 | ac_ext=c |
| 11316 | ac_cpp='$CPP $CPPFLAGS' |
| 11317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11320 | if test -n "$ac_tool_prefix"; then |
| 11321 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 11322 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11324 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11325 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11326 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11327 | else |
| 11328 | if test -n "$CC"; then |
| 11329 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11330 | else |
| 11331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11332 | for as_dir in $PATH |
| 11333 | do |
| 11334 | IFS=$as_save_IFS |
| 11335 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11336 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11338 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11340 | break 2 |
| 11341 | fi |
| 11342 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11343 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11344 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11345 | |
| 11346 | fi |
| 11347 | fi |
| 11348 | CC=$ac_cv_prog_CC |
| 11349 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11351 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11352 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11354 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11355 | fi |
| 11356 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11357 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11358 | fi |
| 11359 | if test -z "$ac_cv_prog_CC"; then |
| 11360 | ac_ct_CC=$CC |
| 11361 | # Extract the first word of "gcc", so it can be a program name with args. |
| 11362 | set dummy gcc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11364 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11365 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11366 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11367 | else |
| 11368 | if test -n "$ac_ct_CC"; then |
| 11369 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 11370 | else |
| 11371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11372 | for as_dir in $PATH |
| 11373 | do |
| 11374 | IFS=$as_save_IFS |
| 11375 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11376 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11377 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11378 | ac_cv_prog_ac_ct_CC="gcc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11379 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11380 | break 2 |
| 11381 | fi |
| 11382 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11383 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11384 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11385 | |
| 11386 | fi |
| 11387 | fi |
| 11388 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 11389 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11391 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11392 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11394 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11395 | fi |
| 11396 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11397 | if test "x$ac_ct_CC" = x; then |
| 11398 | CC="" |
| 11399 | else |
| 11400 | case $cross_compiling:$ac_tool_warned in |
| 11401 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11403 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11404 | ac_tool_warned=yes ;; |
| 11405 | esac |
| 11406 | CC=$ac_ct_CC |
| 11407 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11408 | else |
| 11409 | CC="$ac_cv_prog_CC" |
| 11410 | fi |
| 11411 | |
| 11412 | if test -z "$CC"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11413 | if test -n "$ac_tool_prefix"; then |
| 11414 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11415 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11417 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11418 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11419 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11420 | else |
| 11421 | if test -n "$CC"; then |
| 11422 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11423 | else |
| 11424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11425 | for as_dir in $PATH |
| 11426 | do |
| 11427 | IFS=$as_save_IFS |
| 11428 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11430 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11431 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11433 | break 2 |
| 11434 | fi |
| 11435 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11436 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11437 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11438 | |
| 11439 | fi |
| 11440 | fi |
| 11441 | CC=$ac_cv_prog_CC |
| 11442 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11444 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11445 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11447 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11448 | fi |
| 11449 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11450 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11451 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11452 | fi |
| 11453 | if test -z "$CC"; then |
| 11454 | # Extract the first word of "cc", so it can be a program name with args. |
| 11455 | set dummy cc; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11457 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11458 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11459 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11460 | else |
| 11461 | if test -n "$CC"; then |
| 11462 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11463 | else |
| 11464 | ac_prog_rejected=no |
| 11465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11466 | for as_dir in $PATH |
| 11467 | do |
| 11468 | IFS=$as_save_IFS |
| 11469 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11470 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11471 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11472 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 11473 | ac_prog_rejected=yes |
| 11474 | continue |
| 11475 | fi |
| 11476 | ac_cv_prog_CC="cc" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11478 | break 2 |
| 11479 | fi |
| 11480 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11481 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11482 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11483 | |
| 11484 | if test $ac_prog_rejected = yes; then |
| 11485 | # We found a bogon in the path, so make sure we never use it. |
| 11486 | set dummy $ac_cv_prog_CC |
| 11487 | shift |
| 11488 | if test $# != 0; then |
| 11489 | # We chose a different compiler from the bogus one. |
| 11490 | # However, it has the same basename, so the bogon will be chosen |
| 11491 | # first if we set CC to just the basename; use the full file name. |
| 11492 | shift |
| 11493 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 11494 | fi |
| 11495 | fi |
| 11496 | fi |
| 11497 | fi |
| 11498 | CC=$ac_cv_prog_CC |
| 11499 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11501 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11502 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11504 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11505 | fi |
| 11506 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11507 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11508 | fi |
| 11509 | if test -z "$CC"; then |
| 11510 | if test -n "$ac_tool_prefix"; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11511 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11512 | do |
| 11513 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 11514 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11516 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11517 | if ${ac_cv_prog_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11518 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11519 | else |
| 11520 | if test -n "$CC"; then |
| 11521 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 11522 | else |
| 11523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11524 | for as_dir in $PATH |
| 11525 | do |
| 11526 | IFS=$as_save_IFS |
| 11527 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11530 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11532 | break 2 |
| 11533 | fi |
| 11534 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11535 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11536 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11537 | |
| 11538 | fi |
| 11539 | fi |
| 11540 | CC=$ac_cv_prog_CC |
| 11541 | if test -n "$CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11543 | $as_echo "$CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11544 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11546 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11547 | fi |
| 11548 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11549 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11550 | test -n "$CC" && break |
| 11551 | done |
| 11552 | fi |
| 11553 | if test -z "$CC"; then |
| 11554 | ac_ct_CC=$CC |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11555 | for ac_prog in cl.exe |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11556 | do |
| 11557 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11558 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11560 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11561 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11562 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11563 | else |
| 11564 | if test -n "$ac_ct_CC"; then |
| 11565 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 11566 | else |
| 11567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11568 | for as_dir in $PATH |
| 11569 | do |
| 11570 | IFS=$as_save_IFS |
| 11571 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11574 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11576 | break 2 |
| 11577 | fi |
| 11578 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11579 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11580 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11581 | |
| 11582 | fi |
| 11583 | fi |
| 11584 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 11585 | if test -n "$ac_ct_CC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11587 | $as_echo "$ac_ct_CC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11588 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11590 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11591 | fi |
| 11592 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11593 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11594 | test -n "$ac_ct_CC" && break |
| 11595 | done |
| 11596 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11597 | if test "x$ac_ct_CC" = x; then |
| 11598 | CC="" |
| 11599 | else |
| 11600 | case $cross_compiling:$ac_tool_warned in |
| 11601 | yes:) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11603 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11604 | ac_tool_warned=yes ;; |
| 11605 | esac |
| 11606 | CC=$ac_ct_CC |
| 11607 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11608 | fi |
| 11609 | |
| 11610 | fi |
| 11611 | |
| 11612 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11613 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11614 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11615 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 11616 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11617 | |
| 11618 | # Provide some information about the compiler. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11619 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11620 | set X $ac_compile |
| 11621 | ac_compiler=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11622 | for ac_option in --version -v -V -qversion; do |
| 11623 | { { ac_try="$ac_compiler $ac_option >&5" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11624 | case "(($ac_try" in |
| 11625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11626 | *) ac_try_echo=$ac_try;; |
| 11627 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 11629 | $as_echo "$ac_try_echo"; } >&5 |
| 11630 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11631 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11632 | if test -s conftest.err; then |
| 11633 | sed '10a\ |
| 11634 | ... rest of stderr output deleted ... |
| 11635 | 10q' conftest.err >conftest.er1 |
| 11636 | cat conftest.er1 >&5 |
| 11637 | fi |
| 11638 | rm -f conftest.er1 conftest.err |
| 11639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11640 | test $ac_status = 0; } |
| 11641 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11642 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11644 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11645 | if ${ac_cv_c_compiler_gnu+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11646 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11647 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11649 | /* end confdefs.h. */ |
| 11650 | |
| 11651 | int |
| 11652 | main () |
| 11653 | { |
| 11654 | #ifndef __GNUC__ |
| 11655 | choke me |
| 11656 | #endif |
| 11657 | |
| 11658 | ; |
| 11659 | return 0; |
| 11660 | } |
| 11661 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11662 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11663 | ac_compiler_gnu=yes |
| 11664 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11665 | ac_compiler_gnu=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11666 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11668 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 11669 | |
| 11670 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11672 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 11673 | if test $ac_compiler_gnu = yes; then |
| 11674 | GCC=yes |
| 11675 | else |
| 11676 | GCC= |
| 11677 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11678 | ac_test_CFLAGS=${CFLAGS+set} |
| 11679 | ac_save_CFLAGS=$CFLAGS |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11681 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11682 | if ${ac_cv_prog_cc_g+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11683 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11684 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11685 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 11686 | ac_c_werror_flag=yes |
| 11687 | ac_cv_prog_cc_g=no |
| 11688 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11690 | /* end confdefs.h. */ |
| 11691 | |
| 11692 | int |
| 11693 | main () |
| 11694 | { |
| 11695 | |
| 11696 | ; |
| 11697 | return 0; |
| 11698 | } |
| 11699 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11700 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11701 | ac_cv_prog_cc_g=yes |
| 11702 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11703 | CFLAGS="" |
| 11704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11705 | /* end confdefs.h. */ |
| 11706 | |
| 11707 | int |
| 11708 | main () |
| 11709 | { |
| 11710 | |
| 11711 | ; |
| 11712 | return 0; |
| 11713 | } |
| 11714 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11715 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11716 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11717 | else |
| 11718 | ac_c_werror_flag=$ac_save_c_werror_flag |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11719 | CFLAGS="-g" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11721 | /* end confdefs.h. */ |
| 11722 | |
| 11723 | int |
| 11724 | main () |
| 11725 | { |
| 11726 | |
| 11727 | ; |
| 11728 | return 0; |
| 11729 | } |
| 11730 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11731 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11732 | ac_cv_prog_cc_g=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11733 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11735 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11737 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11738 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11739 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 11740 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11742 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11743 | if test "$ac_test_CFLAGS" = set; then |
| 11744 | CFLAGS=$ac_save_CFLAGS |
| 11745 | elif test $ac_cv_prog_cc_g = yes; then |
| 11746 | if test "$GCC" = yes; then |
| 11747 | CFLAGS="-g -O2" |
| 11748 | else |
| 11749 | CFLAGS="-g" |
| 11750 | fi |
| 11751 | else |
| 11752 | if test "$GCC" = yes; then |
| 11753 | CFLAGS="-O2" |
| 11754 | else |
| 11755 | CFLAGS= |
| 11756 | fi |
| 11757 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11759 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11760 | if ${ac_cv_prog_cc_c89+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11761 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11762 | else |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11763 | ac_cv_prog_cc_c89=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11764 | ac_save_CC=$CC |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11766 | /* end confdefs.h. */ |
| 11767 | #include <stdarg.h> |
| 11768 | #include <stdio.h> |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11769 | struct stat; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11770 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 11771 | struct buf { int x; }; |
| 11772 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 11773 | static char *e (p, i) |
| 11774 | char **p; |
| 11775 | int i; |
| 11776 | { |
| 11777 | return p[i]; |
| 11778 | } |
| 11779 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 11780 | { |
| 11781 | char *s; |
| 11782 | va_list v; |
| 11783 | va_start (v,p); |
| 11784 | s = g (p, va_arg (v,int)); |
| 11785 | va_end (v); |
| 11786 | return s; |
| 11787 | } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11788 | |
| 11789 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 11790 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 11791 | These don't provoke an error unfortunately, instead are silently treated |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11792 | as 'x'. The following induces an error, until -std is added to get |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11793 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 11794 | array size at least. It's necessary to write '\x00'==0 to get something |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11795 | that's true only with -std. */ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11796 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 11797 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11798 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 11799 | inside strings and character constants. */ |
| 11800 | #define FOO(x) 'x' |
| 11801 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 11802 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11803 | int test (int i, double x); |
| 11804 | struct s1 {int (*f) (int a);}; |
| 11805 | struct s2 {int (*f) (double a);}; |
| 11806 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 11807 | int argc; |
| 11808 | char **argv; |
| 11809 | int |
| 11810 | main () |
| 11811 | { |
| 11812 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 11813 | ; |
| 11814 | return 0; |
| 11815 | } |
| 11816 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11817 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 11818 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11819 | do |
| 11820 | CC="$ac_save_CC $ac_arg" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11821 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11822 | ac_cv_prog_cc_c89=$ac_arg |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11823 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11824 | rm -f core conftest.err conftest.$ac_objext |
| 11825 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11826 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11827 | rm -f conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11828 | CC=$ac_save_CC |
| 11829 | |
| 11830 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11831 | # AC_CACHE_VAL |
| 11832 | case "x$ac_cv_prog_cc_c89" in |
| 11833 | x) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11835 | $as_echo "none needed" >&6; } ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11836 | xno) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11838 | $as_echo "unsupported" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11839 | *) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 11840 | CC="$CC $ac_cv_prog_cc_c89" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11842 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11843 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11844 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11845 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11846 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11847 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11848 | ac_ext=c |
| 11849 | ac_cpp='$CPP $CPPFLAGS' |
| 11850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11853 | |
| 11854 | depcc="$CC" am_compiler_list= |
| 11855 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11857 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11858 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11859 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11860 | else |
| 11861 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 11862 | # We make a subdir and do the tests there. Otherwise we can end up |
| 11863 | # making bogus files that we don't know about and never remove. For |
| 11864 | # instance it was reported that on HP-UX the gcc test will end up |
| 11865 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 11866 | # in D'. |
| 11867 | mkdir conftest.dir |
| 11868 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 11869 | # using a relative directory. |
| 11870 | cp "$am_depcomp" conftest.dir |
| 11871 | cd conftest.dir |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11872 | # We will build objects and dependencies in a subdirectory because |
| 11873 | # it helps to detect inapplicable dependency modes. For instance |
| 11874 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 11875 | # side effect of compilation, but ICC will put the dependencies in |
| 11876 | # the current directory while Tru64 will put them in the object |
| 11877 | # directory. |
| 11878 | mkdir sub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11879 | |
| 11880 | am_cv_CC_dependencies_compiler_type=none |
| 11881 | if test "$am_compiler_list" = ""; then |
| 11882 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 11883 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11884 | am__universal=false |
| 11885 | case " $depcc " in #( |
| 11886 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 11887 | esac |
| 11888 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11889 | for depmode in $am_compiler_list; do |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11890 | # Setup a source with many dependencies, because some compilers |
| 11891 | # like to wrap large dependency lists on column 80 (with \), and |
| 11892 | # we should not choose a depcomp mode which is confused by this. |
| 11893 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11894 | # We need to recreate these files for each test, as the compiler may |
| 11895 | # overwrite some of them when testing with obscure command lines. |
| 11896 | # This happens at least with the AIX C compiler. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11897 | : > sub/conftest.c |
| 11898 | for i in 1 2 3 4 5 6; do |
| 11899 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 11900 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 11901 | # Solaris 8's {/usr,}/bin/sh. |
| 11902 | touch sub/conftst$i.h |
| 11903 | done |
| 11904 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11905 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11906 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 11907 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 11908 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 11909 | # versions had trouble with output in subdirs |
| 11910 | am__obj=sub/conftest.${OBJEXT-o} |
| 11911 | am__minus_obj="-o $am__obj" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11912 | case $depmode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11913 | gcc) |
| 11914 | # This depmode causes a compiler race in universal mode. |
| 11915 | test "$am__universal" = false || continue |
| 11916 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11917 | nosideeffect) |
| 11918 | # after this tag, mechanisms are not by side-effect, so they'll |
| 11919 | # only be used when explicitly requested |
| 11920 | if test "x$enable_dependency_tracking" = xyes; then |
| 11921 | continue |
| 11922 | else |
| 11923 | break |
| 11924 | fi |
| 11925 | ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11926 | msvisualcpp | msvcmsys) |
| 11927 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 11928 | # not run yet. These depmodes are late enough in the game, and |
| 11929 | # so weak that their functioning should not be impacted. |
| 11930 | am__obj=conftest.${OBJEXT-o} |
| 11931 | am__minus_obj= |
| 11932 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11933 | none) break ;; |
| 11934 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11935 | if depmode=$depmode \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11936 | source=sub/conftest.c object=$am__obj \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11937 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11938 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11939 | >/dev/null 2>conftest.err && |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 11940 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11941 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11942 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11943 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11944 | # icc doesn't choke on unknown options, it will just issue warnings |
| 11945 | # or remarks (even with -Werror). So we grep stderr for any message |
| 11946 | # that says an option was ignored or not supported. |
| 11947 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 11948 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 11949 | # The diagnosis changed in icc 8.0: |
| 11950 | # icc: Command line remark: option '-MP' not supported |
| 11951 | if (grep 'ignoring option' conftest.err || |
| 11952 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 11953 | am_cv_CC_dependencies_compiler_type=$depmode |
| 11954 | break |
| 11955 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11956 | fi |
| 11957 | done |
| 11958 | |
| 11959 | cd .. |
| 11960 | rm -rf conftest.dir |
| 11961 | else |
| 11962 | am_cv_CC_dependencies_compiler_type=none |
| 11963 | fi |
| 11964 | |
| 11965 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11967 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11968 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 11969 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 11970 | if |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 11971 | test "x$enable_dependency_tracking" != xno \ |
| 11972 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 11973 | am__fastdepCC_TRUE= |
| 11974 | am__fastdepCC_FALSE='#' |
| 11975 | else |
| 11976 | am__fastdepCC_TRUE='#' |
| 11977 | am__fastdepCC_FALSE= |
| 11978 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11979 | |
| 11980 | |
| 11981 | ac_ext=c |
| 11982 | ac_cpp='$CPP $CPPFLAGS' |
| 11983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11987 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11988 | # On Suns, sometimes $CPP names a directory. |
| 11989 | if test -n "$CPP" && test -d "$CPP"; then |
| 11990 | CPP= |
| 11991 | fi |
| 11992 | if test -z "$CPP"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 11993 | if ${ac_cv_prog_CPP+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 11994 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 11995 | else |
| 11996 | # Double quotes because CPP needs to be expanded |
| 11997 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 11998 | do |
| 11999 | ac_preproc_ok=false |
| 12000 | for ac_c_preproc_warn_flag in '' yes |
| 12001 | do |
| 12002 | # Use a header file that comes with gcc, so configuring glibc |
| 12003 | # with a fresh cross-compiler works. |
| 12004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12005 | # <limits.h> exists even on freestanding compilers. |
| 12006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12007 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12009 | /* end confdefs.h. */ |
| 12010 | #ifdef __STDC__ |
| 12011 | # include <limits.h> |
| 12012 | #else |
| 12013 | # include <assert.h> |
| 12014 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12015 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12016 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12017 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12018 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12019 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12020 | # Broken: fails on valid input. |
| 12021 | continue |
| 12022 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12023 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12024 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12025 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12026 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12028 | /* end confdefs.h. */ |
| 12029 | #include <ac_nonexistent.h> |
| 12030 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12031 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12032 | # Broken: success on invalid input. |
| 12033 | continue |
| 12034 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12035 | # Passes both tests. |
| 12036 | ac_preproc_ok=: |
| 12037 | break |
| 12038 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12039 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12040 | |
| 12041 | done |
| 12042 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12043 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12044 | if $ac_preproc_ok; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12045 | break |
| 12046 | fi |
| 12047 | |
| 12048 | done |
| 12049 | ac_cv_prog_CPP=$CPP |
| 12050 | |
| 12051 | fi |
| 12052 | CPP=$ac_cv_prog_CPP |
| 12053 | else |
| 12054 | ac_cv_prog_CPP=$CPP |
| 12055 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12057 | $as_echo "$CPP" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12058 | ac_preproc_ok=false |
| 12059 | for ac_c_preproc_warn_flag in '' yes |
| 12060 | do |
| 12061 | # Use a header file that comes with gcc, so configuring glibc |
| 12062 | # with a fresh cross-compiler works. |
| 12063 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12064 | # <limits.h> exists even on freestanding compilers. |
| 12065 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12066 | # not just through cpp. "Syntax error" is here to catch this case. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12068 | /* end confdefs.h. */ |
| 12069 | #ifdef __STDC__ |
| 12070 | # include <limits.h> |
| 12071 | #else |
| 12072 | # include <assert.h> |
| 12073 | #endif |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12074 | Syntax error |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12075 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12076 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12077 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12078 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12079 | # Broken: fails on valid input. |
| 12080 | continue |
| 12081 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12082 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12083 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12084 | # OK, works on sane cases. Now check whether nonexistent headers |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12085 | # can be detected and how. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12087 | /* end confdefs.h. */ |
| 12088 | #include <ac_nonexistent.h> |
| 12089 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12090 | if ac_fn_c_try_cpp "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12091 | # Broken: success on invalid input. |
| 12092 | continue |
| 12093 | else |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12094 | # Passes both tests. |
| 12095 | ac_preproc_ok=: |
| 12096 | break |
| 12097 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12098 | rm -f conftest.err conftest.i conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12099 | |
| 12100 | done |
| 12101 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12102 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12103 | if $ac_preproc_ok; then : |
| 12104 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12105 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12108 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 12109 | See \`config.log' for more details" "$LINENO" 5; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12110 | fi |
| 12111 | |
| 12112 | ac_ext=c |
| 12113 | ac_cpp='$CPP $CPPFLAGS' |
| 12114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12117 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12118 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12120 | $as_echo_n "checking whether ln -s works... " >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12121 | LN_S=$as_ln_s |
| 12122 | if test "$LN_S" = "ln -s"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12124 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12125 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12127 | $as_echo "no, using $LN_S" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12128 | fi |
| 12129 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12131 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 12132 | set x ${MAKE-make} |
| 12133 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12134 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12135 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12136 | else |
| 12137 | cat >conftest.make <<\_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12138 | SHELL = /bin/sh |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12139 | all: |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12140 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12141 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12142 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12143 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 12144 | *@@@%%%=?*=@@@%%%*) |
| 12145 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 12146 | *) |
| 12147 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 12148 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12149 | rm -f conftest.make |
| 12150 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12151 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12153 | $as_echo "yes" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12154 | SET_MAKE= |
| 12155 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12157 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12158 | SET_MAKE="MAKE=${MAKE-make}" |
| 12159 | fi |
| 12160 | |
| 12161 | for ac_prog in 'bison -y' byacc |
| 12162 | do |
| 12163 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12164 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12166 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12167 | if ${ac_cv_prog_YACC+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12168 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12169 | else |
| 12170 | if test -n "$YACC"; then |
| 12171 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 12172 | else |
| 12173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12174 | for as_dir in $PATH |
| 12175 | do |
| 12176 | IFS=$as_save_IFS |
| 12177 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12178 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12179 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12180 | ac_cv_prog_YACC="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12182 | break 2 |
| 12183 | fi |
| 12184 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12185 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12186 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12187 | |
| 12188 | fi |
| 12189 | fi |
| 12190 | YACC=$ac_cv_prog_YACC |
| 12191 | if test -n "$YACC"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12193 | $as_echo "$YACC" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12194 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12196 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12197 | fi |
| 12198 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12199 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12200 | test -n "$YACC" && break |
| 12201 | done |
| 12202 | test -n "$YACC" || YACC="yacc" |
| 12203 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12204 | for ac_prog in flex lex |
| 12205 | do |
| 12206 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12207 | set dummy $ac_prog; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12209 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12210 | if ${ac_cv_prog_LEX+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12211 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12212 | else |
| 12213 | if test -n "$LEX"; then |
| 12214 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 12215 | else |
| 12216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12217 | for as_dir in $PATH |
| 12218 | do |
| 12219 | IFS=$as_save_IFS |
| 12220 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12221 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12222 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12223 | ac_cv_prog_LEX="$ac_prog" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12225 | break 2 |
| 12226 | fi |
| 12227 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12228 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12229 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12230 | |
| 12231 | fi |
| 12232 | fi |
| 12233 | LEX=$ac_cv_prog_LEX |
| 12234 | if test -n "$LEX"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12236 | $as_echo "$LEX" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12237 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12239 | $as_echo "no" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12240 | fi |
| 12241 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12242 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12243 | test -n "$LEX" && break |
| 12244 | done |
| 12245 | test -n "$LEX" || LEX=":" |
| 12246 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12247 | if test "x$LEX" != "x:"; then |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12248 | cat >conftest.l <<_ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12249 | %% |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12250 | a { ECHO; } |
| 12251 | b { REJECT; } |
| 12252 | c { yymore (); } |
| 12253 | d { yyless (1); } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12254 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
| 12255 | yyless ((input () != 0)); } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12256 | f { unput (yytext[0]); } |
| 12257 | . { BEGIN INITIAL; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12258 | %% |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12259 | #ifdef YYTEXT_POINTER |
| 12260 | extern char *yytext; |
| 12261 | #endif |
| 12262 | int |
| 12263 | main (void) |
| 12264 | { |
| 12265 | return ! yylex () + ! yywrap (); |
| 12266 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12267 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12268 | { { ac_try="$LEX conftest.l" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12269 | case "(($ac_try" in |
| 12270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12271 | *) ac_try_echo=$ac_try;; |
| 12272 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12273 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 12274 | $as_echo "$ac_try_echo"; } >&5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12275 | (eval "$LEX conftest.l") 2>&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12276 | ac_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12277 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12278 | test $ac_status = 0; } |
| 12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12280 | $as_echo_n "checking lex output file root... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12281 | if ${ac_cv_prog_lex_root+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12282 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12283 | else |
| 12284 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12285 | if test -f lex.yy.c; then |
| 12286 | ac_cv_prog_lex_root=lex.yy |
| 12287 | elif test -f lexyy.c; then |
| 12288 | ac_cv_prog_lex_root=lexyy |
| 12289 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12290 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12291 | fi |
| 12292 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12294 | $as_echo "$ac_cv_prog_lex_root" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12295 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 12296 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12297 | if test -z "${LEXLIB+set}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12299 | $as_echo_n "checking lex library... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12300 | if ${ac_cv_lib_lex+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12301 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12302 | else |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12303 | |
| 12304 | ac_save_LIBS=$LIBS |
| 12305 | ac_cv_lib_lex='none needed' |
| 12306 | for ac_lib in '' -lfl -ll; do |
| 12307 | LIBS="$ac_lib $ac_save_LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12309 | /* end confdefs.h. */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12310 | `cat $LEX_OUTPUT_ROOT.c` |
| 12311 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12312 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12313 | ac_cv_lib_lex=$ac_lib |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12314 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12315 | rm -f core conftest.err conftest.$ac_objext \ |
| 12316 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12317 | test "$ac_cv_lib_lex" != 'none needed' && break |
| 12318 | done |
| 12319 | LIBS=$ac_save_LIBS |
| 12320 | |
| 12321 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12323 | $as_echo "$ac_cv_lib_lex" >&6; } |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12324 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex |
| 12325 | fi |
| 12326 | |
| 12327 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12329 | $as_echo_n "checking whether yytext is a pointer... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12330 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12331 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12332 | else |
| 12333 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 12334 | # default is implementation-dependent. Figure out which it is, since |
| 12335 | # not all implementations provide the %pointer and %array declarations. |
| 12336 | ac_cv_prog_lex_yytext_pointer=no |
| 12337 | ac_save_LIBS=$LIBS |
| 12338 | LIBS="$LEXLIB $ac_save_LIBS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12340 | /* end confdefs.h. */ |
| 12341 | |
| 12342 | #define YYTEXT_POINTER 1 |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12343 | `cat $LEX_OUTPUT_ROOT.c` |
| 12344 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12345 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12346 | ac_cv_prog_lex_yytext_pointer=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12347 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12348 | rm -f core conftest.err conftest.$ac_objext \ |
| 12349 | conftest$ac_exeext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12350 | LIBS=$ac_save_LIBS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12351 | |
| 12352 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12354 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12355 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 12356 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12357 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12358 | |
| 12359 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 12360 | rm -f conftest.l $LEX_OUTPUT_ROOT.c |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12361 | |
| 12362 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12363 | if test "$LEX" = :; then |
| 12364 | LEX=${am_missing_run}flex |
| 12365 | fi |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12366 | # Extract the first word of "ar", so it can be a program name with args. |
| 12367 | set dummy ar; ac_word=$2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12369 | $as_echo_n "checking for $ac_word... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12370 | if ${ac_cv_path_AR+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12371 | $as_echo_n "(cached) " >&6 |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12372 | else |
| 12373 | case $AR in |
| 12374 | [\\/]* | ?:[\\/]*) |
| 12375 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 12376 | ;; |
| 12377 | *) |
| 12378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12379 | as_dummy="$PATH:/usr/ucb:/usr/ccs/bin" |
| 12380 | for as_dir in $as_dummy |
| 12381 | do |
| 12382 | IFS=$as_save_IFS |
| 12383 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12384 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12386 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12388 | break 2 |
| 12389 | fi |
| 12390 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12391 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12392 | IFS=$as_save_IFS |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12393 | |
| 12394 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
| 12395 | ;; |
| 12396 | esac |
| 12397 | fi |
| 12398 | AR=$ac_cv_path_AR |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12399 | if test -n "$AR"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12401 | $as_echo "$AR" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12402 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12404 | $as_echo "no" >&6; } |
Lev Walkin | c10e06c | 2005-03-30 05:14:26 +0000 | [diff] [blame] | 12405 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12406 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12407 | |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 12408 | case "$host_os" in |
Lev Walkin | 7943230 | 2006-03-18 06:39:49 +0000 | [diff] [blame] | 12409 | cygwin) |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 12410 | case "$target" in |
Lev Walkin | 5f869d0 | 2004-08-23 10:41:38 +0000 | [diff] [blame] | 12411 | *mingw*) |
| 12412 | CC="$CC -mno-cygwin" |
| 12413 | esac |
| 12414 | ;; |
Lev Walkin | 59ec6ac | 2006-03-18 06:25:40 +0000 | [diff] [blame] | 12415 | esac |
| 12416 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12417 | # Check whether --enable-Werror was given. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12418 | if test "${enable_Werror+set}" = set; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12419 | enableval=$enable_Werror; enable_werror=$enableval |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 12420 | else |
| 12421 | enable_werror=no |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12422 | fi |
| 12423 | |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 12424 | if test x$enable_werror = xyes; then |
Lev Walkin | f84cc01 | 2014-01-14 02:12:24 -0800 | [diff] [blame] | 12425 | TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith" |
Lev Walkin | ea55215 | 2014-01-14 02:15:13 -0800 | [diff] [blame] | 12426 | ADD_CFLAGS="-Werror -W -Wpointer-arith" |
Lev Walkin | 04c2317 | 2004-09-26 14:18:32 +0000 | [diff] [blame] | 12427 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12428 | |
Lev Walkin | f84cc01 | 2014-01-14 02:12:24 -0800 | [diff] [blame] | 12429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5 |
| 12430 | $as_echo_n "checking whether C compiler accepts -Wall... " >&6; } |
| 12431 | if ${ax_cv_check_cflags___Wall+:} false; then : |
| 12432 | $as_echo_n "(cached) " >&6 |
| 12433 | else |
| 12434 | |
| 12435 | ax_check_save_flags=$CFLAGS |
| 12436 | CFLAGS="$CFLAGS -Wall" |
| 12437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12438 | /* end confdefs.h. */ |
| 12439 | |
| 12440 | int |
| 12441 | main () |
| 12442 | { |
| 12443 | |
| 12444 | ; |
| 12445 | return 0; |
| 12446 | } |
| 12447 | _ACEOF |
| 12448 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12449 | ax_cv_check_cflags___Wall=yes |
| 12450 | else |
| 12451 | ax_cv_check_cflags___Wall=no |
| 12452 | fi |
| 12453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12454 | CFLAGS=$ax_check_save_flags |
| 12455 | fi |
| 12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5 |
| 12457 | $as_echo "$ax_cv_check_cflags___Wall" >&6; } |
| 12458 | if test x"$ax_cv_check_cflags___Wall" = xyes; then : |
| 12459 | CFLAGS="$CFLAGS -Wall" |
| 12460 | else |
| 12461 | : |
| 12462 | fi |
| 12463 | |
| 12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5 |
| 12465 | $as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; } |
| 12466 | if ${ax_cv_check_cflags___Wcast_qual+:} false; then : |
| 12467 | $as_echo_n "(cached) " >&6 |
| 12468 | else |
| 12469 | |
| 12470 | ax_check_save_flags=$CFLAGS |
| 12471 | CFLAGS="$CFLAGS -Wcast-qual" |
| 12472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12473 | /* end confdefs.h. */ |
| 12474 | |
| 12475 | int |
| 12476 | main () |
| 12477 | { |
| 12478 | |
| 12479 | ; |
| 12480 | return 0; |
| 12481 | } |
| 12482 | _ACEOF |
| 12483 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12484 | ax_cv_check_cflags___Wcast_qual=yes |
| 12485 | else |
| 12486 | ax_cv_check_cflags___Wcast_qual=no |
| 12487 | fi |
| 12488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12489 | CFLAGS=$ax_check_save_flags |
| 12490 | fi |
| 12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5 |
| 12492 | $as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; } |
| 12493 | if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then : |
| 12494 | CFLAGS="$CFLAGS -Wcast-qual" |
| 12495 | else |
| 12496 | : |
| 12497 | fi |
| 12498 | |
| 12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5 |
| 12500 | $as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; } |
| 12501 | if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then : |
| 12502 | $as_echo_n "(cached) " >&6 |
| 12503 | else |
| 12504 | |
| 12505 | ax_check_save_flags=$CFLAGS |
| 12506 | CFLAGS="$CFLAGS -Wchar-subscripts" |
| 12507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12508 | /* end confdefs.h. */ |
| 12509 | |
| 12510 | int |
| 12511 | main () |
| 12512 | { |
| 12513 | |
| 12514 | ; |
| 12515 | return 0; |
| 12516 | } |
| 12517 | _ACEOF |
| 12518 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12519 | ax_cv_check_cflags___Wchar_subscripts=yes |
| 12520 | else |
| 12521 | ax_cv_check_cflags___Wchar_subscripts=no |
| 12522 | fi |
| 12523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12524 | CFLAGS=$ax_check_save_flags |
| 12525 | fi |
| 12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5 |
| 12527 | $as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; } |
| 12528 | if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then : |
| 12529 | CFLAGS="$CFLAGS -Wchar-subscripts" |
| 12530 | else |
| 12531 | : |
| 12532 | fi |
| 12533 | |
| 12534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5 |
| 12535 | $as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; } |
| 12536 | if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then : |
| 12537 | $as_echo_n "(cached) " >&6 |
| 12538 | else |
| 12539 | |
| 12540 | ax_check_save_flags=$CFLAGS |
| 12541 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 12542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12543 | /* end confdefs.h. */ |
| 12544 | |
| 12545 | int |
| 12546 | main () |
| 12547 | { |
| 12548 | |
| 12549 | ; |
| 12550 | return 0; |
| 12551 | } |
| 12552 | _ACEOF |
| 12553 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12554 | ax_cv_check_cflags___Wmissing_prototypes=yes |
| 12555 | else |
| 12556 | ax_cv_check_cflags___Wmissing_prototypes=no |
| 12557 | fi |
| 12558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12559 | CFLAGS=$ax_check_save_flags |
| 12560 | fi |
| 12561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5 |
| 12562 | $as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; } |
| 12563 | if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then : |
| 12564 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 12565 | else |
| 12566 | : |
| 12567 | fi |
| 12568 | |
| 12569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5 |
| 12570 | $as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; } |
| 12571 | if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then : |
| 12572 | $as_echo_n "(cached) " >&6 |
| 12573 | else |
| 12574 | |
| 12575 | ax_check_save_flags=$CFLAGS |
| 12576 | CFLAGS="$CFLAGS -Wmissing-declarations" |
| 12577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12578 | /* end confdefs.h. */ |
| 12579 | |
| 12580 | int |
| 12581 | main () |
| 12582 | { |
| 12583 | |
| 12584 | ; |
| 12585 | return 0; |
| 12586 | } |
| 12587 | _ACEOF |
| 12588 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12589 | ax_cv_check_cflags___Wmissing_declarations=yes |
| 12590 | else |
| 12591 | ax_cv_check_cflags___Wmissing_declarations=no |
| 12592 | fi |
| 12593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12594 | CFLAGS=$ax_check_save_flags |
| 12595 | fi |
| 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5 |
| 12597 | $as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; } |
| 12598 | if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then : |
| 12599 | CFLAGS="$CFLAGS -Wmissing-declarations" |
| 12600 | else |
| 12601 | : |
| 12602 | fi |
| 12603 | |
| 12604 | |
| 12605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5 |
| 12606 | $as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; } |
| 12607 | if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then : |
| 12608 | $as_echo_n "(cached) " >&6 |
| 12609 | else |
| 12610 | |
| 12611 | ax_check_save_flags=$CFLAGS |
| 12612 | CFLAGS="$CFLAGS -Wno-error=cast-align" |
| 12613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12614 | /* end confdefs.h. */ |
| 12615 | |
| 12616 | int |
| 12617 | main () |
| 12618 | { |
| 12619 | |
| 12620 | ; |
| 12621 | return 0; |
| 12622 | } |
| 12623 | _ACEOF |
| 12624 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12625 | ax_cv_check_cflags___Wno_error_cast_align=yes |
| 12626 | else |
| 12627 | ax_cv_check_cflags___Wno_error_cast_align=no |
| 12628 | fi |
| 12629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12630 | CFLAGS=$ax_check_save_flags |
| 12631 | fi |
| 12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5 |
| 12633 | $as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; } |
| 12634 | if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then : |
| 12635 | CFLAGS="$CFLAGS -Wno-error=cast-align" |
| 12636 | else |
| 12637 | : |
| 12638 | fi |
| 12639 | |
| 12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5 |
| 12641 | $as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; } |
| 12642 | if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then : |
| 12643 | $as_echo_n "(cached) " >&6 |
| 12644 | else |
| 12645 | |
| 12646 | ax_check_save_flags=$CFLAGS |
| 12647 | CFLAGS="$CFLAGS -Wno-error=visibility" |
| 12648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12649 | /* end confdefs.h. */ |
| 12650 | |
| 12651 | int |
| 12652 | main () |
| 12653 | { |
| 12654 | |
| 12655 | ; |
| 12656 | return 0; |
| 12657 | } |
| 12658 | _ACEOF |
| 12659 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12660 | ax_cv_check_cflags___Wno_error_visibility=yes |
| 12661 | else |
| 12662 | ax_cv_check_cflags___Wno_error_visibility=no |
| 12663 | fi |
| 12664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12665 | CFLAGS=$ax_check_save_flags |
| 12666 | fi |
| 12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5 |
| 12668 | $as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; } |
| 12669 | if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then : |
| 12670 | CFLAGS="$CFLAGS -Wno-error=visibility" |
| 12671 | else |
| 12672 | : |
| 12673 | fi |
| 12674 | |
| 12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5 |
| 12676 | $as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; } |
| 12677 | if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then : |
| 12678 | $as_echo_n "(cached) " >&6 |
| 12679 | else |
| 12680 | |
| 12681 | ax_check_save_flags=$CFLAGS |
| 12682 | CFLAGS="$CFLAGS -Wno-error=parentheses-equality" |
| 12683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12684 | /* end confdefs.h. */ |
| 12685 | |
| 12686 | int |
| 12687 | main () |
| 12688 | { |
| 12689 | |
| 12690 | ; |
| 12691 | return 0; |
| 12692 | } |
| 12693 | _ACEOF |
| 12694 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12695 | ax_cv_check_cflags___Wno_error_parentheses_equality=yes |
| 12696 | else |
| 12697 | ax_cv_check_cflags___Wno_error_parentheses_equality=no |
| 12698 | fi |
| 12699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12700 | CFLAGS=$ax_check_save_flags |
| 12701 | fi |
| 12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5 |
| 12703 | $as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; } |
| 12704 | if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then : |
| 12705 | CFLAGS="$CFLAGS -Wno-error=parentheses-equality" |
| 12706 | else |
| 12707 | : |
| 12708 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12709 | |
Lev Walkin | 65907f0 | 2014-09-14 17:19:21 -0700 | [diff] [blame^] | 12710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=unused-variable" >&5 |
| 12711 | $as_echo_n "checking whether C compiler accepts -Wno-error=unused-variable... " >&6; } |
| 12712 | if ${ax_cv_check_cflags___Wno_error_unused_variable+:} false; then : |
| 12713 | $as_echo_n "(cached) " >&6 |
| 12714 | else |
| 12715 | |
| 12716 | ax_check_save_flags=$CFLAGS |
| 12717 | CFLAGS="$CFLAGS -Wno-error=unused-variable" |
| 12718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12719 | /* end confdefs.h. */ |
| 12720 | |
| 12721 | int |
| 12722 | main () |
| 12723 | { |
| 12724 | |
| 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | if ac_fn_c_try_compile "$LINENO"; then : |
| 12730 | ax_cv_check_cflags___Wno_error_unused_variable=yes |
| 12731 | else |
| 12732 | ax_cv_check_cflags___Wno_error_unused_variable=no |
| 12733 | fi |
| 12734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12735 | CFLAGS=$ax_check_save_flags |
| 12736 | fi |
| 12737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_unused_variable" >&5 |
| 12738 | $as_echo "$ax_cv_check_cflags___Wno_error_unused_variable" >&6; } |
| 12739 | if test x"$ax_cv_check_cflags___Wno_error_unused_variable" = xyes; then : |
| 12740 | TESTSUITE_CFLAGS="$TESTSUITE_CFLAGS -Wno-error=unused-variable" |
| 12741 | else |
| 12742 | : |
| 12743 | fi |
| 12744 | |
| 12745 | |
| 12746 | |
| 12747 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12748 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12750 | $as_echo_n "checking for ANSI C header files... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12751 | if ${ac_cv_header_stdc+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12752 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12753 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12754 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12755 | /* end confdefs.h. */ |
| 12756 | #include <stdlib.h> |
| 12757 | #include <stdarg.h> |
| 12758 | #include <string.h> |
| 12759 | #include <float.h> |
| 12760 | |
| 12761 | int |
| 12762 | main () |
| 12763 | { |
| 12764 | |
| 12765 | ; |
| 12766 | return 0; |
| 12767 | } |
| 12768 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12769 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12770 | ac_cv_header_stdc=yes |
| 12771 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12772 | ac_cv_header_stdc=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12773 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12775 | |
| 12776 | if test $ac_cv_header_stdc = yes; then |
| 12777 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12779 | /* end confdefs.h. */ |
| 12780 | #include <string.h> |
| 12781 | |
| 12782 | _ACEOF |
| 12783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12784 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 12785 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12786 | else |
| 12787 | ac_cv_header_stdc=no |
| 12788 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12789 | rm -f conftest* |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12790 | |
| 12791 | fi |
| 12792 | |
| 12793 | if test $ac_cv_header_stdc = yes; then |
| 12794 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12796 | /* end confdefs.h. */ |
| 12797 | #include <stdlib.h> |
| 12798 | |
| 12799 | _ACEOF |
| 12800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12801 | $EGREP "free" >/dev/null 2>&1; then : |
| 12802 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12803 | else |
| 12804 | ac_cv_header_stdc=no |
| 12805 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12806 | rm -f conftest* |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12807 | |
| 12808 | fi |
| 12809 | |
| 12810 | if test $ac_cv_header_stdc = yes; then |
| 12811 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12812 | if test "$cross_compiling" = yes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12813 | : |
| 12814 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12816 | /* end confdefs.h. */ |
| 12817 | #include <ctype.h> |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12818 | #include <stdlib.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12819 | #if ((' ' & 0x0FF) == 0x020) |
| 12820 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 12821 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 12822 | #else |
| 12823 | # define ISLOWER(c) \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12824 | (('a' <= (c) && (c) <= 'i') \ |
| 12825 | || ('j' <= (c) && (c) <= 'r') \ |
| 12826 | || ('s' <= (c) && (c) <= 'z')) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12827 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 12828 | #endif |
| 12829 | |
| 12830 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 12831 | int |
| 12832 | main () |
| 12833 | { |
| 12834 | int i; |
| 12835 | for (i = 0; i < 256; i++) |
| 12836 | if (XOR (islower (i), ISLOWER (i)) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 12837 | || toupper (i) != TOUPPER (i)) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12838 | return 2; |
| 12839 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12840 | } |
| 12841 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12842 | if ac_fn_c_try_run "$LINENO"; then : |
| 12843 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12844 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12845 | ac_cv_header_stdc=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12846 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12847 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12848 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12849 | fi |
| 12850 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12851 | fi |
| 12852 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12854 | $as_echo "$ac_cv_header_stdc" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12855 | if test $ac_cv_header_stdc = yes; then |
| 12856 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12857 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12858 | |
| 12859 | fi |
| 12860 | |
Lev Walkin | 79f5495 | 2004-08-13 16:58:19 +0000 | [diff] [blame] | 12861 | for ac_header in sys/param.h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12862 | do : |
| 12863 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 12864 | if test "x$ac_cv_header_sys_param_h" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12865 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12866 | #define HAVE_SYS_PARAM_H 1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12867 | _ACEOF |
| 12868 | |
| 12869 | fi |
| 12870 | |
| 12871 | done |
| 12872 | |
| 12873 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12875 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12876 | if ${ac_cv_c_bigendian+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12877 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12878 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12879 | ac_cv_c_bigendian=unknown |
| 12880 | # See if we're dealing with a universal compiler. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12882 | /* end confdefs.h. */ |
| 12883 | #ifndef __APPLE_CC__ |
| 12884 | not a universal capable compiler |
| 12885 | #endif |
| 12886 | typedef int dummy; |
| 12887 | |
| 12888 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12889 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12890 | |
| 12891 | # Check for potential -arch flags. It is not universal unless |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12892 | # there are at least two -arch flags with different values. |
| 12893 | ac_arch= |
| 12894 | ac_prev= |
| 12895 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 12896 | if test -n "$ac_prev"; then |
| 12897 | case $ac_word in |
| 12898 | i?86 | x86_64 | ppc | ppc64) |
| 12899 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 12900 | ac_arch=$ac_word |
| 12901 | else |
| 12902 | ac_cv_c_bigendian=universal |
| 12903 | break |
| 12904 | fi |
| 12905 | ;; |
| 12906 | esac |
| 12907 | ac_prev= |
| 12908 | elif test "x$ac_word" = "x-arch"; then |
| 12909 | ac_prev=arch |
| 12910 | fi |
| 12911 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12912 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12914 | if test $ac_cv_c_bigendian = unknown; then |
| 12915 | # See if sys/param.h defines the BYTE_ORDER macro. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12917 | /* end confdefs.h. */ |
| 12918 | #include <sys/types.h> |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12919 | #include <sys/param.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12920 | |
| 12921 | int |
| 12922 | main () |
| 12923 | { |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12924 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 12925 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 12926 | && LITTLE_ENDIAN) |
| 12927 | bogus endian macros |
| 12928 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12929 | |
| 12930 | ; |
| 12931 | return 0; |
| 12932 | } |
| 12933 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12934 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12935 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12937 | /* end confdefs.h. */ |
| 12938 | #include <sys/types.h> |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12939 | #include <sys/param.h> |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12940 | |
| 12941 | int |
| 12942 | main () |
| 12943 | { |
| 12944 | #if BYTE_ORDER != BIG_ENDIAN |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12945 | not big endian |
| 12946 | #endif |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12947 | |
| 12948 | ; |
| 12949 | return 0; |
| 12950 | } |
| 12951 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12952 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12953 | ac_cv_c_bigendian=yes |
| 12954 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12955 | ac_cv_c_bigendian=no |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12956 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 12957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12958 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12960 | fi |
| 12961 | if test $ac_cv_c_bigendian = unknown; then |
| 12962 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12964 | /* end confdefs.h. */ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12965 | #include <limits.h> |
| 12966 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12967 | int |
| 12968 | main () |
| 12969 | { |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12970 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 12971 | bogus endian macros |
| 12972 | #endif |
| 12973 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12974 | ; |
| 12975 | return 0; |
| 12976 | } |
| 12977 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12978 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12979 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12980 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12981 | /* end confdefs.h. */ |
| 12982 | #include <limits.h> |
| 12983 | |
| 12984 | int |
| 12985 | main () |
| 12986 | { |
| 12987 | #ifndef _BIG_ENDIAN |
| 12988 | not big endian |
| 12989 | #endif |
| 12990 | |
| 12991 | ; |
| 12992 | return 0; |
| 12993 | } |
| 12994 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12995 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12996 | ac_cv_c_bigendian=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12997 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 12998 | ac_cv_c_bigendian=no |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 12999 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13001 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13003 | fi |
| 13004 | if test $ac_cv_c_bigendian = unknown; then |
| 13005 | # Compile a test program. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13006 | if test "$cross_compiling" = yes; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13007 | # Try to guess by grepping values from an object file. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13009 | /* end confdefs.h. */ |
| 13010 | short int ascii_mm[] = |
| 13011 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 13012 | short int ascii_ii[] = |
| 13013 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 13014 | int use_ascii (int i) { |
| 13015 | return ascii_mm[i] + ascii_ii[i]; |
| 13016 | } |
| 13017 | short int ebcdic_ii[] = |
| 13018 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 13019 | short int ebcdic_mm[] = |
| 13020 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 13021 | int use_ebcdic (int i) { |
| 13022 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 13023 | } |
| 13024 | extern int foo; |
| 13025 | |
| 13026 | int |
| 13027 | main () |
| 13028 | { |
| 13029 | return use_ascii (foo) == use_ebcdic (foo); |
| 13030 | ; |
| 13031 | return 0; |
| 13032 | } |
| 13033 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13034 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13035 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 13036 | ac_cv_c_bigendian=yes |
| 13037 | fi |
| 13038 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 13039 | if test "$ac_cv_c_bigendian" = unknown; then |
| 13040 | ac_cv_c_bigendian=no |
| 13041 | else |
| 13042 | # finding both strings is unlikely to happen, but who knows? |
| 13043 | ac_cv_c_bigendian=unknown |
| 13044 | fi |
| 13045 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13046 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13048 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13050 | /* end confdefs.h. */ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13051 | $ac_includes_default |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13052 | int |
| 13053 | main () |
| 13054 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13055 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13056 | /* Are we little or big endian? From Harbison&Steele. */ |
| 13057 | union |
| 13058 | { |
| 13059 | long int l; |
| 13060 | char c[sizeof (long int)]; |
| 13061 | } u; |
| 13062 | u.l = 1; |
| 13063 | return u.c[sizeof (long int) - 1] == 1; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13064 | |
| 13065 | ; |
| 13066 | return 0; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13067 | } |
| 13068 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13069 | if ac_fn_c_try_run "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13070 | ac_cv_c_bigendian=no |
| 13071 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13072 | ac_cv_c_bigendian=yes |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13073 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13074 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13075 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13076 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13077 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13078 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13079 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13081 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 13082 | case $ac_cv_c_bigendian in #( |
| 13083 | yes) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13084 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13085 | ;; #( |
| 13086 | no) |
| 13087 | ;; #( |
| 13088 | universal) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13089 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13090 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13091 | |
| 13092 | ;; #( |
| 13093 | *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13094 | as_fn_error $? "unknown endianness |
| 13095 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13096 | esac |
| 13097 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13098 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 13099 | if test "x$ac_cv_type_off_t" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13100 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13101 | else |
| 13102 | |
| 13103 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13104 | #define off_t long int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13105 | _ACEOF |
| 13106 | |
| 13107 | fi |
| 13108 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13109 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 13110 | if test "x$ac_cv_type_size_t" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13111 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13112 | else |
| 13113 | |
| 13114 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13115 | #define size_t unsigned int |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13116 | _ACEOF |
| 13117 | |
| 13118 | fi |
| 13119 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13121 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13122 | if ${ac_cv_struct_tm+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13123 | $as_echo_n "(cached) " >&6 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13124 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13126 | /* end confdefs.h. */ |
| 13127 | #include <sys/types.h> |
| 13128 | #include <time.h> |
| 13129 | |
| 13130 | int |
| 13131 | main () |
| 13132 | { |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13133 | struct tm tm; |
| 13134 | int *p = &tm.tm_sec; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13135 | return !p; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13136 | ; |
| 13137 | return 0; |
| 13138 | } |
| 13139 | _ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13140 | if ac_fn_c_try_compile "$LINENO"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13141 | ac_cv_struct_tm=time.h |
| 13142 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13143 | ac_cv_struct_tm=sys/time.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13144 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13146 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13148 | $as_echo "$ac_cv_struct_tm" >&6; } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13149 | if test $ac_cv_struct_tm = sys/time.h; then |
| 13150 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13151 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13152 | |
| 13153 | fi |
| 13154 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13155 | ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" |
| 13156 | if test "x$ac_cv_type_intmax_t" = xyes; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13157 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13158 | else |
| 13159 | |
| 13160 | cat >>confdefs.h <<_ACEOF |
| 13161 | #define intmax_t int64_t |
| 13162 | _ACEOF |
| 13163 | |
| 13164 | fi |
| 13165 | |
| 13166 | |
Lev Walkin | b40ec41 | 2014-02-24 00:57:18 -0800 | [diff] [blame] | 13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long is longer than 32 bit" >&5 |
| 13168 | $as_echo_n "checking size of long is longer than 32 bit... " >&6; } |
| 13169 | |
| 13170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13171 | /* end confdefs.h. */ |
| 13172 | #include "confdefs.h" |
| 13173 | #include <sys/types.h> |
| 13174 | |
| 13175 | int |
| 13176 | main () |
| 13177 | { |
| 13178 | switch (0) case 0: case (sizeof ($1) >= 8):; |
| 13179 | ; |
| 13180 | return 0; |
| 13181 | } |
| 13182 | _ACEOF |
| 13183 | if ac_fn_c_try_compile "$LINENO"; then : |
| 13184 | WIDE_LONG=yes |
| 13185 | else |
| 13186 | WIDE_LONG=no |
| 13187 | fi |
| 13188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIDE_LONG" >&5 |
| 13190 | $as_echo "$WIDE_LONG" >&6; } |
| 13191 | if test x$WIDE_LONG = xyes; then |
| 13192 | TEST_64BIT_TRUE= |
| 13193 | TEST_64BIT_FALSE='#' |
| 13194 | else |
| 13195 | TEST_64BIT_TRUE='#' |
| 13196 | TEST_64BIT_FALSE= |
| 13197 | fi |
| 13198 | |
| 13199 | |
| 13200 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13202 | $as_echo_n "checking for library containing getopt... " >&6; } |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13203 | if ${ac_cv_search_getopt+:} false; then : |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13204 | $as_echo_n "(cached) " >&6 |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13205 | else |
| 13206 | ac_func_search_save_LIBS=$LIBS |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13208 | /* end confdefs.h. */ |
| 13209 | |
| 13210 | /* Override any GCC internal prototype to avoid an error. |
| 13211 | Use char because int might match the return type of a GCC |
| 13212 | builtin and then its argument prototype would still apply. */ |
| 13213 | #ifdef __cplusplus |
| 13214 | extern "C" |
| 13215 | #endif |
| 13216 | char getopt (); |
| 13217 | int |
| 13218 | main () |
| 13219 | { |
| 13220 | return getopt (); |
| 13221 | ; |
| 13222 | return 0; |
| 13223 | } |
| 13224 | _ACEOF |
| 13225 | for ac_lib in '' iberty; do |
| 13226 | if test -z "$ac_lib"; then |
| 13227 | ac_res="none required" |
| 13228 | else |
| 13229 | ac_res=-l$ac_lib |
| 13230 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13231 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13232 | if ac_fn_c_try_link "$LINENO"; then : |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13233 | ac_cv_search_getopt=$ac_res |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13234 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13235 | rm -f core conftest.err conftest.$ac_objext \ |
| 13236 | conftest$ac_exeext |
| 13237 | if ${ac_cv_search_getopt+:} false; then : |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13238 | break |
| 13239 | fi |
| 13240 | done |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13241 | if ${ac_cv_search_getopt+:} false; then : |
| 13242 | |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13243 | else |
| 13244 | ac_cv_search_getopt=no |
| 13245 | fi |
| 13246 | rm conftest.$ac_ext |
| 13247 | LIBS=$ac_func_search_save_LIBS |
| 13248 | fi |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13250 | $as_echo "$ac_cv_search_getopt" >&6; } |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13251 | ac_res=$ac_cv_search_getopt |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13252 | if test "$ac_res" != no; then : |
Lev Walkin | 058e222 | 2007-12-04 00:27:38 +0000 | [diff] [blame] | 13253 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13254 | |
| 13255 | fi |
| 13256 | |
| 13257 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13258 | for ac_func in strtoimax strtoll |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13259 | do : |
| 13260 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13261 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13262 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13263 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13264 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13265 | _ACEOF |
| 13266 | |
| 13267 | fi |
| 13268 | done |
| 13269 | |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 13270 | for ac_func in mergesort |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13271 | do : |
| 13272 | ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort" |
| 13273 | if test "x$ac_cv_func_mergesort" = xyes; then : |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 13274 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13275 | #define HAVE_MERGESORT 1 |
Lev Walkin | 49b0a3e | 2004-06-28 21:22:35 +0000 | [diff] [blame] | 13276 | _ACEOF |
| 13277 | |
| 13278 | fi |
| 13279 | done |
| 13280 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13281 | for ac_func in mkstemps |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13282 | do : |
| 13283 | ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps" |
| 13284 | if test "x$ac_cv_func_mkstemps" = xyes; then : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13285 | cat >>confdefs.h <<_ACEOF |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13286 | #define HAVE_MKSTEMPS 1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13287 | _ACEOF |
| 13288 | |
| 13289 | fi |
| 13290 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13291 | |
| 13292 | |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 13293 | ac_config_files="$ac_config_files skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13294 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13295 | cat >confcache <<\_ACEOF |
| 13296 | # This file is a shell script that caches the results of configure |
| 13297 | # tests run on this system so they can be shared between configure |
| 13298 | # scripts and configure runs, see configure's option --config-cache. |
| 13299 | # It is not useful on other systems. If it contains results you don't |
| 13300 | # want to keep, you may remove or edit it. |
| 13301 | # |
| 13302 | # config.status only pays attention to the cache file if you give it |
| 13303 | # the --recheck option to rerun configure. |
| 13304 | # |
| 13305 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 13306 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 13307 | # following values. |
| 13308 | |
| 13309 | _ACEOF |
| 13310 | |
| 13311 | # The following way of writing the cache mishandles newlines in values, |
| 13312 | # but we know of no workaround that is simple, portable, and efficient. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13313 | # So, we kill variables containing newlines. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13314 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 13315 | # and sets the high bit in the cache file unless we assign to the vars. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13316 | ( |
| 13317 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 13318 | eval ac_val=\$$ac_var |
| 13319 | case $ac_val in #( |
| 13320 | *${as_nl}*) |
| 13321 | case $ac_var in #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13322 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13323 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13324 | esac |
| 13325 | case $ac_var in #( |
| 13326 | _ | IFS | as_nl) ;; #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13327 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13328 | *) { eval $ac_var=; unset $ac_var;} ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13329 | esac ;; |
| 13330 | esac |
| 13331 | done |
| 13332 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13333 | (set) 2>&1 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13334 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 13335 | *${as_nl}ac_space=\ *) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13336 | # `set' does not quote correctly, so add quotes: double-quote |
| 13337 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13338 | sed -n \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13339 | "s/'/'\\\\''/g; |
| 13340 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13341 | ;; #( |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13342 | *) |
| 13343 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13344 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13345 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13346 | esac | |
| 13347 | sort |
| 13348 | ) | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13349 | sed ' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13350 | /^ac_cv_env_/b end |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13351 | t clear |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13352 | :clear |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13353 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 13354 | t end |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13355 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 13356 | :end' >>confcache |
| 13357 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 13358 | if test -w "$cache_file"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13359 | if test "x$cache_file" != "x/dev/null"; then |
| 13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13361 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13362 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 13363 | cat confcache >"$cache_file" |
| 13364 | else |
| 13365 | case $cache_file in #( |
| 13366 | */* | ?:*) |
| 13367 | mv -f confcache "$cache_file"$$ && |
| 13368 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 13369 | *) |
| 13370 | mv -f confcache "$cache_file" ;; |
| 13371 | esac |
| 13372 | fi |
| 13373 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13374 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13376 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13377 | fi |
| 13378 | fi |
| 13379 | rm -f confcache |
| 13380 | |
| 13381 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 13382 | # Let make expand exec_prefix. |
| 13383 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 13384 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13385 | DEFS=-DHAVE_CONFIG_H |
| 13386 | |
| 13387 | ac_libobjs= |
| 13388 | ac_ltlibobjs= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13389 | U= |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13390 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 13391 | # 1. Remove the extension, and $U if already installed. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13392 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13393 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13394 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 13395 | # will be set to the directory where LIBOBJS objects are built. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13396 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 13397 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13398 | done |
| 13399 | LIBOBJS=$ac_libobjs |
| 13400 | |
| 13401 | LTLIBOBJS=$ac_ltlibobjs |
| 13402 | |
| 13403 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13404 | if test -n "$EXEEXT"; then |
| 13405 | am__EXEEXT_TRUE= |
| 13406 | am__EXEEXT_FALSE='#' |
| 13407 | else |
| 13408 | am__EXEEXT_TRUE='#' |
| 13409 | am__EXEEXT_FALSE= |
| 13410 | fi |
| 13411 | |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 13412 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 13413 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 13414 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13415 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13416 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13417 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 13418 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13419 | fi |
| 13420 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13421 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 13422 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13423 | fi |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13424 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13425 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 13426 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13427 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13428 | |
Lev Walkin | b40ec41 | 2014-02-24 00:57:18 -0800 | [diff] [blame] | 13429 | if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then |
| 13430 | as_fn_error $? "conditional \"TEST_64BIT\" was never defined. |
| 13431 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 13432 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13433 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13434 | : "${CONFIG_STATUS=./config.status}" |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13435 | ac_write_fail=0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13436 | ac_clean_files_save=$ac_clean_files |
| 13437 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13439 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13440 | as_write_fail=0 |
| 13441 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13442 | #! $SHELL |
| 13443 | # Generated by $as_me. |
| 13444 | # Run this file to recreate the current configuration. |
| 13445 | # Compiler output produced by configure, useful for debugging |
| 13446 | # configure, is in config.log if it exists. |
| 13447 | |
| 13448 | debug=false |
| 13449 | ac_cs_recheck=false |
| 13450 | ac_cs_silent=false |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13451 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13452 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 13453 | export SHELL |
| 13454 | _ASEOF |
| 13455 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 13456 | ## -------------------- ## |
| 13457 | ## M4sh Initialization. ## |
| 13458 | ## -------------------- ## |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13459 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13460 | # Be more Bourne compatible |
| 13461 | DUALCASE=1; export DUALCASE # for MKS sh |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13462 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13463 | emulate sh |
| 13464 | NULLCMD=: |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13465 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13466 | # is contrary to our usage. Disable this feature. |
| 13467 | alias -g '${1+"$@"}'='"$@"' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13468 | setopt NO_GLOB_SUBST |
| 13469 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13470 | case `(set -o) 2>/dev/null` in #( |
| 13471 | *posix*) : |
| 13472 | set -o posix ;; #( |
| 13473 | *) : |
| 13474 | ;; |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13475 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13476 | fi |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13477 | |
| 13478 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13479 | as_nl=' |
| 13480 | ' |
| 13481 | export as_nl |
| 13482 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 13483 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 13484 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 13485 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13486 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 13487 | # but without wasting forks for bash or zsh. |
| 13488 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 13489 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 13490 | as_echo='print -r --' |
| 13491 | as_echo_n='print -rn --' |
| 13492 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13493 | as_echo='printf %s\n' |
| 13494 | as_echo_n='printf %s' |
| 13495 | else |
| 13496 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 13497 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 13498 | as_echo_n='/usr/ucb/echo -n' |
| 13499 | else |
| 13500 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 13501 | as_echo_n_body='eval |
| 13502 | arg=$1; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13503 | case $arg in #( |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13504 | *"$as_nl"*) |
| 13505 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 13506 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 13507 | esac; |
| 13508 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 13509 | ' |
| 13510 | export as_echo_n_body |
| 13511 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 13512 | fi |
| 13513 | export as_echo_body |
| 13514 | as_echo='sh -c $as_echo_body as_echo' |
| 13515 | fi |
| 13516 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13517 | # The user is always right. |
| 13518 | if test "${PATH_SEPARATOR+set}" != set; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13519 | PATH_SEPARATOR=: |
| 13520 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 13521 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 13522 | PATH_SEPARATOR=';' |
| 13523 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13524 | fi |
| 13525 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13526 | |
| 13527 | # IFS |
| 13528 | # We need space, tab and new line, in precisely that order. Quoting is |
| 13529 | # there to prevent editors from complaining about space-tab. |
| 13530 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 13531 | # splitting by setting IFS to empty value.) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13532 | IFS=" "" $as_nl" |
| 13533 | |
| 13534 | # Find who we are. Look in the path if we contain no directory separator. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13535 | as_myself= |
| 13536 | case $0 in #(( |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13537 | *[\\/]* ) as_myself=$0 ;; |
| 13538 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13539 | for as_dir in $PATH |
| 13540 | do |
| 13541 | IFS=$as_save_IFS |
| 13542 | test -z "$as_dir" && as_dir=. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13543 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 13544 | done |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13545 | IFS=$as_save_IFS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13546 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13547 | ;; |
| 13548 | esac |
| 13549 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 13550 | # in which case we are not to be found in the path. |
| 13551 | if test "x$as_myself" = x; then |
| 13552 | as_myself=$0 |
| 13553 | fi |
| 13554 | if test ! -f "$as_myself"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13555 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13556 | exit 1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13557 | fi |
| 13558 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13559 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 13560 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 13561 | # suppresses any "Segmentation fault" message there. '((' could |
| 13562 | # trigger a bug in pdksh 5.2.14. |
| 13563 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 13564 | do eval test x\${$as_var+set} = xset \ |
| 13565 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13566 | done |
| 13567 | PS1='$ ' |
| 13568 | PS2='> ' |
| 13569 | PS4='+ ' |
| 13570 | |
| 13571 | # NLS nuisances. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13572 | LC_ALL=C |
| 13573 | export LC_ALL |
| 13574 | LANGUAGE=C |
| 13575 | export LANGUAGE |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13576 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13577 | # CDPATH. |
| 13578 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 13579 | |
| 13580 | |
| 13581 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 13582 | # ---------------------------------------- |
| 13583 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 13584 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 13585 | # script with STATUS, using 1 if that was 0. |
| 13586 | as_fn_error () |
| 13587 | { |
| 13588 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 13589 | if test "$4"; then |
| 13590 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 13591 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 13592 | fi |
| 13593 | $as_echo "$as_me: error: $2" >&2 |
| 13594 | as_fn_exit $as_status |
| 13595 | } # as_fn_error |
| 13596 | |
| 13597 | |
| 13598 | # as_fn_set_status STATUS |
| 13599 | # ----------------------- |
| 13600 | # Set $? to STATUS, without forking. |
| 13601 | as_fn_set_status () |
| 13602 | { |
| 13603 | return $1 |
| 13604 | } # as_fn_set_status |
| 13605 | |
| 13606 | # as_fn_exit STATUS |
| 13607 | # ----------------- |
| 13608 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 13609 | as_fn_exit () |
| 13610 | { |
| 13611 | set +e |
| 13612 | as_fn_set_status $1 |
| 13613 | exit $1 |
| 13614 | } # as_fn_exit |
| 13615 | |
| 13616 | # as_fn_unset VAR |
| 13617 | # --------------- |
| 13618 | # Portably unset VAR. |
| 13619 | as_fn_unset () |
| 13620 | { |
| 13621 | { eval $1=; unset $1;} |
| 13622 | } |
| 13623 | as_unset=as_fn_unset |
| 13624 | # as_fn_append VAR VALUE |
| 13625 | # ---------------------- |
| 13626 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 13627 | # advantage of any shell optimizations that allow amortized linear growth over |
| 13628 | # repeated appends, instead of the typical quadratic growth present in naive |
| 13629 | # implementations. |
| 13630 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 13631 | eval 'as_fn_append () |
| 13632 | { |
| 13633 | eval $1+=\$2 |
| 13634 | }' |
| 13635 | else |
| 13636 | as_fn_append () |
| 13637 | { |
| 13638 | eval $1=\$$1\$2 |
| 13639 | } |
| 13640 | fi # as_fn_append |
| 13641 | |
| 13642 | # as_fn_arith ARG... |
| 13643 | # ------------------ |
| 13644 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 13645 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 13646 | # must be portable across $(()) and expr. |
| 13647 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 13648 | eval 'as_fn_arith () |
| 13649 | { |
| 13650 | as_val=$(( $* )) |
| 13651 | }' |
| 13652 | else |
| 13653 | as_fn_arith () |
| 13654 | { |
| 13655 | as_val=`expr "$@" || test $? -eq 1` |
| 13656 | } |
| 13657 | fi # as_fn_arith |
| 13658 | |
| 13659 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13660 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 13661 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 13662 | as_expr=expr |
| 13663 | else |
| 13664 | as_expr=false |
| 13665 | fi |
| 13666 | |
| 13667 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 13668 | as_basename=basename |
| 13669 | else |
| 13670 | as_basename=false |
| 13671 | fi |
| 13672 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13673 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 13674 | as_dirname=dirname |
| 13675 | else |
| 13676 | as_dirname=false |
| 13677 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13678 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13679 | as_me=`$as_basename -- "$0" || |
| 13680 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 13681 | X"$0" : 'X\(//\)$' \| \ |
| 13682 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13683 | $as_echo X/"$0" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13684 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 13685 | s//\1/ |
| 13686 | q |
| 13687 | } |
| 13688 | /^X\/\(\/\/\)$/{ |
| 13689 | s//\1/ |
| 13690 | q |
| 13691 | } |
| 13692 | /^X\/\(\/\).*/{ |
| 13693 | s//\1/ |
| 13694 | q |
| 13695 | } |
| 13696 | s/.*/./; q'` |
| 13697 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13698 | # Avoid depending upon Character Ranges. |
| 13699 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 13700 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 13701 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 13702 | as_cr_digits='0123456789' |
| 13703 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13704 | |
| 13705 | ECHO_C= ECHO_N= ECHO_T= |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13706 | case `echo -n x` in #((((( |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13707 | -n*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13708 | case `echo 'xy\c'` in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13709 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13710 | xy) ECHO_C='\c';; |
| 13711 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 13712 | ECHO_T=' ';; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13713 | esac;; |
| 13714 | *) |
| 13715 | ECHO_N='-n';; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13716 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13717 | |
| 13718 | rm -f conf$$ conf$$.exe conf$$.file |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13719 | if test -d conf$$.dir; then |
| 13720 | rm -f conf$$.dir/conf$$.file |
| 13721 | else |
| 13722 | rm -f conf$$.dir |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13723 | mkdir conf$$.dir 2>/dev/null |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13724 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13725 | if (echo >conf$$.file) 2>/dev/null; then |
| 13726 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 13727 | as_ln_s='ln -s' |
| 13728 | # ... but there are two gotchas: |
| 13729 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 13730 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13731 | # In both cases, we have to default to `cp -pR'. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13732 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13733 | as_ln_s='cp -pR' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13734 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 13735 | as_ln_s=ln |
| 13736 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13737 | as_ln_s='cp -pR' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13738 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13739 | else |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13740 | as_ln_s='cp -pR' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13741 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13742 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 13743 | rmdir conf$$.dir 2>/dev/null |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13744 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13745 | |
| 13746 | # as_fn_mkdir_p |
| 13747 | # ------------- |
| 13748 | # Create "$as_dir" as a directory, including parents if necessary. |
| 13749 | as_fn_mkdir_p () |
| 13750 | { |
| 13751 | |
| 13752 | case $as_dir in #( |
| 13753 | -*) as_dir=./$as_dir;; |
| 13754 | esac |
| 13755 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 13756 | as_dirs= |
| 13757 | while :; do |
| 13758 | case $as_dir in #( |
| 13759 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 13760 | *) as_qdir=$as_dir;; |
| 13761 | esac |
| 13762 | as_dirs="'$as_qdir' $as_dirs" |
| 13763 | as_dir=`$as_dirname -- "$as_dir" || |
| 13764 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 13765 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 13766 | X"$as_dir" : 'X\(//\)$' \| \ |
| 13767 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 13768 | $as_echo X"$as_dir" | |
| 13769 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 13770 | s//\1/ |
| 13771 | q |
| 13772 | } |
| 13773 | /^X\(\/\/\)[^/].*/{ |
| 13774 | s//\1/ |
| 13775 | q |
| 13776 | } |
| 13777 | /^X\(\/\/\)$/{ |
| 13778 | s//\1/ |
| 13779 | q |
| 13780 | } |
| 13781 | /^X\(\/\).*/{ |
| 13782 | s//\1/ |
| 13783 | q |
| 13784 | } |
| 13785 | s/.*/./; q'` |
| 13786 | test -d "$as_dir" && break |
| 13787 | done |
| 13788 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 13789 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 13790 | |
| 13791 | |
| 13792 | } # as_fn_mkdir_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13793 | if mkdir -p . 2>/dev/null; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13794 | as_mkdir_p='mkdir -p "$as_dir"' |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13795 | else |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13796 | test -d ./-p && rmdir ./-p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13797 | as_mkdir_p=false |
| 13798 | fi |
| 13799 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13800 | |
| 13801 | # as_fn_executable_p FILE |
| 13802 | # ----------------------- |
| 13803 | # Test if FILE is an executable regular file. |
| 13804 | as_fn_executable_p () |
| 13805 | { |
| 13806 | test -f "$1" && test -x "$1" |
| 13807 | } # as_fn_executable_p |
| 13808 | as_test_x='test -x' |
| 13809 | as_executable_p=as_fn_executable_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13810 | |
| 13811 | # Sed expression to map a string onto a valid CPP name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13812 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13813 | |
| 13814 | # Sed expression to map a string onto a valid variable name. |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 13815 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13816 | |
| 13817 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13818 | exec 6>&1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13819 | ## ----------------------------------- ## |
| 13820 | ## Main body of $CONFIG_STATUS script. ## |
| 13821 | ## ----------------------------------- ## |
| 13822 | _ASEOF |
| 13823 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13824 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13825 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13826 | # Save the log message, to keep $0 and so on meaningful, and to |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13827 | # report actual input values of CONFIG_FILES etc. instead of their |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13828 | # values after options handling. |
| 13829 | ac_log=" |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 13830 | This file was extended by asn1c $as_me 0.9.26, which was |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13831 | generated by GNU Autoconf 2.69. Invocation command line was |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13832 | |
| 13833 | CONFIG_FILES = $CONFIG_FILES |
| 13834 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 13835 | CONFIG_LINKS = $CONFIG_LINKS |
| 13836 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 13837 | $ $0 $@ |
| 13838 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13839 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 13840 | " |
| 13841 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13842 | _ACEOF |
| 13843 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13844 | case $ac_config_files in *" |
| 13845 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 13846 | esac |
| 13847 | |
| 13848 | case $ac_config_headers in *" |
| 13849 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 13850 | esac |
| 13851 | |
| 13852 | |
| 13853 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13854 | # Files that config.status was made for. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13855 | config_files="$ac_config_files" |
| 13856 | config_headers="$ac_config_headers" |
| 13857 | config_commands="$ac_config_commands" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13858 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13859 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13860 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13862 | ac_cs_usage="\ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13863 | \`$as_me' instantiates files and other configuration actions |
| 13864 | from templates according to the current configuration. Unless the files |
| 13865 | and actions are specified as TAGs, all are instantiated by default. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13866 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13867 | Usage: $0 [OPTION]... [TAG]... |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13868 | |
| 13869 | -h, --help print this help, then exit |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13870 | -V, --version print version number and configuration settings, then exit |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13871 | --config print configuration, then exit |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13872 | -q, --quiet, --silent |
| 13873 | do not print progress messages |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13874 | -d, --debug don't remove temporary files |
| 13875 | --recheck update $as_me by reconfiguring in the same conditions |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13876 | --file=FILE[:TEMPLATE] |
| 13877 | instantiate the configuration file FILE |
| 13878 | --header=FILE[:TEMPLATE] |
| 13879 | instantiate the configuration header FILE |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13880 | |
| 13881 | Configuration files: |
| 13882 | $config_files |
| 13883 | |
| 13884 | Configuration headers: |
| 13885 | $config_headers |
| 13886 | |
| 13887 | Configuration commands: |
| 13888 | $config_commands |
| 13889 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13890 | Report bugs to <vlm@lionet.info>." |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13891 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13892 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13893 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13894 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13895 | ac_cs_version="\\ |
Lev Walkin | e0d321a | 2014-09-11 01:28:57 -0700 | [diff] [blame] | 13896 | asn1c config.status 0.9.26 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13897 | configured by $0, generated by GNU Autoconf 2.69, |
| 13898 | with options \\"\$ac_cs_config\\" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13899 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13900 | Copyright (C) 2012 Free Software Foundation, Inc. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13901 | This config.status script is free software; the Free Software Foundation |
| 13902 | gives unlimited permission to copy, distribute and modify it." |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13903 | |
| 13904 | ac_pwd='$ac_pwd' |
| 13905 | srcdir='$srcdir' |
| 13906 | INSTALL='$INSTALL' |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 13907 | MKDIR_P='$MKDIR_P' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13908 | AWK='$AWK' |
| 13909 | test -n "\$AWK" || AWK=awk |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13910 | _ACEOF |
| 13911 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13912 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 13913 | # The default lists apply if the user does not specify any file. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13914 | ac_need_defaults=: |
| 13915 | while test $# != 0 |
| 13916 | do |
| 13917 | case $1 in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13918 | --*=?*) |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13919 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13920 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13921 | ac_shift=: |
| 13922 | ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13923 | --*=) |
| 13924 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 13925 | ac_optarg= |
| 13926 | ac_shift=: |
| 13927 | ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13928 | *) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13929 | ac_option=$1 |
| 13930 | ac_optarg=$2 |
| 13931 | ac_shift=shift |
| 13932 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13933 | esac |
| 13934 | |
| 13935 | case $ac_option in |
| 13936 | # Handling of the options. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13937 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 13938 | ac_cs_recheck=: ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13939 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13940 | $as_echo "$ac_cs_version"; exit ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13941 | --config | --confi | --conf | --con | --co | --c ) |
| 13942 | $as_echo "$ac_cs_config"; exit ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13943 | --debug | --debu | --deb | --de | --d | -d ) |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13944 | debug=: ;; |
| 13945 | --file | --fil | --fi | --f ) |
| 13946 | $ac_shift |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13947 | case $ac_optarg in |
| 13948 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13949 | '') as_fn_error $? "missing file argument" ;; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13950 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13951 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13952 | ac_need_defaults=false;; |
| 13953 | --header | --heade | --head | --hea ) |
| 13954 | $ac_shift |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13955 | case $ac_optarg in |
| 13956 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 13957 | esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13958 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13959 | ac_need_defaults=false;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13960 | --he | --h) |
| 13961 | # Conflict between --help and --header |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13962 | as_fn_error $? "ambiguous option: \`$1' |
| 13963 | Try \`$0 --help' for more information.";; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13964 | --help | --hel | -h ) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13965 | $as_echo "$ac_cs_usage"; exit ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13966 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 13967 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 13968 | ac_cs_silent=: ;; |
| 13969 | |
| 13970 | # This is an error. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13971 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 13972 | Try \`$0 --help' for more information." ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13973 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13974 | *) as_fn_append ac_config_targets " $1" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13975 | ac_need_defaults=false ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13976 | |
| 13977 | esac |
| 13978 | shift |
| 13979 | done |
| 13980 | |
| 13981 | ac_configure_extra_args= |
| 13982 | |
| 13983 | if $ac_cs_silent; then |
| 13984 | exec 6>/dev/null |
| 13985 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 13986 | fi |
| 13987 | |
| 13988 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13989 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13990 | if \$ac_cs_recheck; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 13991 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13992 | shift |
| 13993 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 13994 | CONFIG_SHELL='$SHELL' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 13995 | export CONFIG_SHELL |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 13996 | exec "\$@" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 13997 | fi |
| 13998 | |
| 13999 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14000 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14001 | exec 5>>config.log |
| 14002 | { |
| 14003 | echo |
| 14004 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14005 | ## Running $as_me. ## |
| 14006 | _ASBOX |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14007 | $as_echo "$ac_log" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14008 | } >&5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14009 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14010 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14011 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14012 | # |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14013 | # INIT-COMMANDS |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14014 | # |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14015 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14016 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14017 | |
| 14018 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 14019 | # if CDPATH is set. |
| 14020 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14021 | |
| 14022 | sed_quote_subst='$sed_quote_subst' |
| 14023 | double_quote_subst='$double_quote_subst' |
| 14024 | delay_variable_subst='$delay_variable_subst' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14025 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 14026 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 14027 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 14028 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 14029 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 14030 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 14031 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 14032 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 14033 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 14034 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 14035 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 14036 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 14037 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 14038 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 14039 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 14040 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 14041 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 14042 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 14043 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 14044 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 14045 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 14046 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 14047 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 14048 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 14049 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 14050 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 14051 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 14052 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 14053 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 14054 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 14055 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 14056 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 14057 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 14058 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 14059 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 14060 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 14061 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 14062 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 14063 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 14064 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 14065 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 14066 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 14067 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 14068 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 14069 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14070 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14071 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 14072 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 14073 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 14074 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 14075 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 14076 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 14077 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 14078 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 14079 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 14080 | 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"`' |
| 14081 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 14082 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 14083 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 14084 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 14085 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 14086 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 14087 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 14088 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 14089 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 14090 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 14091 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 14092 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 14093 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 14094 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 14095 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 14096 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 14097 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 14098 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 14099 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 14100 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 14101 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 14102 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 14103 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 14104 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 14105 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 14106 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 14107 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 14108 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 14109 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 14110 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 14111 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 14112 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 14113 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 14114 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 14115 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
| 14116 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 14117 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 14118 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 14119 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 14120 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 14121 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 14122 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 14123 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 14124 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 14125 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 14126 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 14127 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 14128 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 14129 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 14130 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 14131 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 14132 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 14133 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 14134 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 14135 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 14136 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 14137 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 14138 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 14139 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 14140 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 14141 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 14142 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14143 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 14144 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 14145 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 14146 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 14147 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 14148 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 14149 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 14150 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 14151 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 14152 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 14153 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 14154 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14155 | |
| 14156 | LTCC='$LTCC' |
| 14157 | LTCFLAGS='$LTCFLAGS' |
| 14158 | compiler='$compiler_DEFAULT' |
| 14159 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14160 | # A function that is used when there is no print builtin or printf. |
| 14161 | func_fallback_echo () |
| 14162 | { |
| 14163 | eval 'cat <<_LTECHO_EOF |
| 14164 | \$1 |
| 14165 | _LTECHO_EOF' |
| 14166 | } |
| 14167 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14168 | # Quote evaled strings. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14169 | for var in SHELL \ |
| 14170 | ECHO \ |
| 14171 | SED \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14172 | GREP \ |
| 14173 | EGREP \ |
| 14174 | FGREP \ |
| 14175 | LD \ |
| 14176 | NM \ |
| 14177 | LN_S \ |
| 14178 | lt_SP2NL \ |
| 14179 | lt_NL2SP \ |
| 14180 | reload_flag \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14181 | OBJDUMP \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14182 | deplibs_check_method \ |
| 14183 | file_magic_cmd \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14184 | file_magic_glob \ |
| 14185 | want_nocaseglob \ |
| 14186 | DLLTOOL \ |
| 14187 | sharedlib_from_linklib_cmd \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14188 | AR \ |
| 14189 | AR_FLAGS \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14190 | archiver_list_spec \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14191 | STRIP \ |
| 14192 | RANLIB \ |
| 14193 | CC \ |
| 14194 | CFLAGS \ |
| 14195 | compiler \ |
| 14196 | lt_cv_sys_global_symbol_pipe \ |
| 14197 | lt_cv_sys_global_symbol_to_cdecl \ |
| 14198 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 14199 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14200 | nm_file_list_spec \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14201 | lt_prog_compiler_no_builtin_flag \ |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 14202 | lt_prog_compiler_pic \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14203 | lt_prog_compiler_wl \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14204 | lt_prog_compiler_static \ |
| 14205 | lt_cv_prog_compiler_c_o \ |
| 14206 | need_locks \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14207 | MANIFEST_TOOL \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14208 | DSYMUTIL \ |
| 14209 | NMEDIT \ |
| 14210 | LIPO \ |
| 14211 | OTOOL \ |
| 14212 | OTOOL64 \ |
| 14213 | shrext_cmds \ |
| 14214 | export_dynamic_flag_spec \ |
| 14215 | whole_archive_flag_spec \ |
| 14216 | compiler_needs_object \ |
| 14217 | with_gnu_ld \ |
| 14218 | allow_undefined_flag \ |
| 14219 | no_undefined_flag \ |
| 14220 | hardcode_libdir_flag_spec \ |
| 14221 | hardcode_libdir_flag_spec_ld \ |
| 14222 | hardcode_libdir_separator \ |
| 14223 | exclude_expsyms \ |
| 14224 | include_expsyms \ |
| 14225 | file_list_spec \ |
| 14226 | variables_saved_for_relink \ |
| 14227 | libname_spec \ |
| 14228 | library_names_spec \ |
| 14229 | soname_spec \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14230 | install_override_mode \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14231 | finish_eval \ |
| 14232 | old_striplib \ |
| 14233 | striplib; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14234 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14235 | *[\\\\\\\`\\"\\\$]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14236 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14237 | ;; |
| 14238 | *) |
| 14239 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14240 | ;; |
| 14241 | esac |
| 14242 | done |
| 14243 | |
| 14244 | # Double-quote double-evaled strings. |
| 14245 | for var in reload_cmds \ |
| 14246 | old_postinstall_cmds \ |
| 14247 | old_postuninstall_cmds \ |
| 14248 | old_archive_cmds \ |
| 14249 | extract_expsyms_cmds \ |
| 14250 | old_archive_from_new_cmds \ |
| 14251 | old_archive_from_expsyms_cmds \ |
| 14252 | archive_cmds \ |
| 14253 | archive_expsym_cmds \ |
| 14254 | module_cmds \ |
| 14255 | module_expsym_cmds \ |
| 14256 | export_symbols_cmds \ |
| 14257 | prelink_cmds \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14258 | postlink_cmds \ |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14259 | postinstall_cmds \ |
| 14260 | postuninstall_cmds \ |
| 14261 | finish_cmds \ |
| 14262 | sys_lib_search_path_spec \ |
| 14263 | sys_lib_dlsearch_path_spec; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14264 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14265 | *[\\\\\\\`\\"\\\$]*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14266 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14267 | ;; |
| 14268 | *) |
| 14269 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 14270 | ;; |
| 14271 | esac |
| 14272 | done |
| 14273 | |
| 14274 | ac_aux_dir='$ac_aux_dir' |
| 14275 | xsi_shell='$xsi_shell' |
| 14276 | lt_shell_append='$lt_shell_append' |
| 14277 | |
| 14278 | # See if we are running on zsh, and set the options which allow our |
| 14279 | # commands through without removal of \ escapes INIT. |
| 14280 | if test -n "\${ZSH_VERSION+set}" ; then |
| 14281 | setopt NO_GLOB_SUBST |
| 14282 | fi |
| 14283 | |
| 14284 | |
| 14285 | PACKAGE='$PACKAGE' |
| 14286 | VERSION='$VERSION' |
| 14287 | TIMESTAMP='$TIMESTAMP' |
| 14288 | RM='$RM' |
| 14289 | ofile='$ofile' |
| 14290 | |
| 14291 | |
| 14292 | |
| 14293 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14294 | _ACEOF |
| 14295 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14297 | |
| 14298 | # Handling of arguments. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14299 | for ac_config_target in $ac_config_targets |
| 14300 | do |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14301 | case $ac_config_target in |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 14302 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14303 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 14304 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14305 | "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
| 14306 | "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
| 14307 | "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 14308 | "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14309 | "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 14310 | "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
Lev Walkin | e7c4b96 | 2010-11-09 03:10:36 -0800 | [diff] [blame] | 14311 | "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14312 | "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 14313 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14314 | "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 14315 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 14316 | "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;; |
| 14317 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 14318 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14319 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14320 | esac |
| 14321 | done |
| 14322 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14323 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14324 | # If the user did not use the arguments to specify the items to instantiate, |
| 14325 | # then the envvar interface is used. Set only those that are not. |
| 14326 | # We use the long form for the default assignment because of an extremely |
| 14327 | # bizarre bug on SunOS 4.1.3. |
| 14328 | if $ac_need_defaults; then |
| 14329 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14330 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 14331 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14332 | fi |
| 14333 | |
| 14334 | # Have a temporary directory for convenience. Make it in the build tree |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14335 | # simply because there is no reason against having it here, and in addition, |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14336 | # creating and moving files from /tmp can sometimes cause problems. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14337 | # Hook for its removal unless debugging. |
| 14338 | # Note that there is a small window in which the directory will not be cleaned: |
| 14339 | # after its creation but before its name has been assigned to `$tmp'. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14340 | $debug || |
| 14341 | { |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14342 | tmp= ac_tmp= |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14343 | trap 'exit_status=$? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14344 | : "${ac_tmp:=$tmp}" |
| 14345 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14346 | ' 0 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14347 | trap 'as_fn_exit 1' 1 2 13 15 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14348 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14349 | # Create a (secure) tmp directory for tmp files. |
| 14350 | |
| 14351 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14352 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14353 | test -d "$tmp" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14354 | } || |
| 14355 | { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14356 | tmp=./conf$$-$RANDOM |
| 14357 | (umask 077 && mkdir "$tmp") |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14358 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 14359 | ac_tmp=$tmp |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14360 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14361 | # Set up the scripts for CONFIG_FILES section. |
| 14362 | # No need to generate them if there are no CONFIG_FILES. |
| 14363 | # This happens for instance with `./config.status config.h'. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14364 | if test -n "$CONFIG_FILES"; then |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14365 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14366 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14367 | ac_cr=`echo X | tr X '\015'` |
| 14368 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 14369 | # But we know of no other shell where ac_cr would be empty at this |
| 14370 | # point, so we can use a bashism as a fallback. |
| 14371 | if test "x$ac_cr" = x; then |
| 14372 | eval ac_cr=\$\'\\r\' |
| 14373 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14374 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 14375 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 14376 | ac_cs_awk_cr='\\r' |
| 14377 | else |
| 14378 | ac_cs_awk_cr=$ac_cr |
| 14379 | fi |
| 14380 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14381 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14382 | _ACEOF |
| 14383 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14384 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14385 | { |
| 14386 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 14387 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 14388 | echo "_ACEOF" |
| 14389 | } >conf$$subs.sh || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14390 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 14391 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14392 | ac_delim='%!_!# ' |
| 14393 | for ac_last_try in false false false false false :; do |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14394 | . ./conf$$subs.sh || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14395 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14396 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14397 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 14398 | if test $ac_delim_n = $ac_delim_num; then |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14399 | break |
| 14400 | elif $ac_last_try; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14401 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14402 | else |
| 14403 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14404 | fi |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14405 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14406 | rm -f conf$$subs.sh |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14407 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14409 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14410 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14411 | sed -n ' |
| 14412 | h |
| 14413 | s/^/S["/; s/!.*/"]=/ |
| 14414 | p |
| 14415 | g |
| 14416 | s/^[^!]*!// |
| 14417 | :repl |
| 14418 | t repl |
| 14419 | s/'"$ac_delim"'$// |
| 14420 | t delim |
| 14421 | :nl |
| 14422 | h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14423 | s/\(.\{148\}\)..*/\1/ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14424 | t more1 |
| 14425 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 14426 | p |
| 14427 | n |
| 14428 | b repl |
| 14429 | :more1 |
| 14430 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14431 | p |
| 14432 | g |
| 14433 | s/.\{148\}// |
| 14434 | t nl |
| 14435 | :delim |
| 14436 | h |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14437 | s/\(.\{148\}\)..*/\1/ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14438 | t more2 |
| 14439 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 14440 | p |
| 14441 | b |
| 14442 | :more2 |
| 14443 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 14444 | p |
| 14445 | g |
| 14446 | s/.\{148\}// |
| 14447 | t delim |
| 14448 | ' <conf$$subs.awk | sed ' |
| 14449 | /^[^""]/{ |
| 14450 | N |
| 14451 | s/\n// |
| 14452 | } |
| 14453 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14454 | rm -f conf$$subs.awk |
| 14455 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14456 | _ACAWK |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14457 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14458 | for (key in S) S_is_set[key] = 1 |
| 14459 | FS = "" |
| 14460 | |
| 14461 | } |
| 14462 | { |
| 14463 | line = $ 0 |
| 14464 | nfields = split(line, field, "@") |
| 14465 | substed = 0 |
| 14466 | len = length(field[1]) |
| 14467 | for (i = 2; i < nfields; i++) { |
| 14468 | key = field[i] |
| 14469 | keylen = length(key) |
| 14470 | if (S_is_set[key]) { |
| 14471 | value = S[key] |
| 14472 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 14473 | len += length(value) + length(field[++i]) |
| 14474 | substed = 1 |
| 14475 | } else |
| 14476 | len += 1 + keylen |
| 14477 | } |
| 14478 | |
| 14479 | print line |
| 14480 | } |
| 14481 | |
| 14482 | _ACAWK |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14483 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14485 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 14486 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 14487 | else |
| 14488 | cat |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14489 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 14490 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14491 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14492 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14493 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 14494 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14495 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14496 | # (actually we leave an empty line to preserve line numbers). |
| 14497 | if test "x$srcdir" = x.; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14498 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 14499 | h |
| 14500 | s/// |
| 14501 | s/^/:/ |
| 14502 | s/[ ]*$/:/ |
| 14503 | s/:\$(srcdir):/:/g |
| 14504 | s/:\${srcdir}:/:/g |
| 14505 | s/:@srcdir@:/:/g |
| 14506 | s/^:*// |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14507 | s/:*$// |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14508 | x |
| 14509 | s/\(=[ ]*\).*/\1/ |
| 14510 | G |
| 14511 | s/\n// |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14512 | s/^[^=]*=[ ]*$// |
| 14513 | }' |
| 14514 | fi |
| 14515 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14517 | fi # test -n "$CONFIG_FILES" |
| 14518 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14519 | # Set up the scripts for CONFIG_HEADERS section. |
| 14520 | # No need to generate them if there are no CONFIG_HEADERS. |
| 14521 | # This happens for instance with `./config.status Makefile'. |
| 14522 | if test -n "$CONFIG_HEADERS"; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14523 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14524 | BEGIN { |
| 14525 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14526 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14527 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 14528 | # here-document in config.status, that substitutes the proper values into |
| 14529 | # config.h.in to produce config.h. |
| 14530 | |
| 14531 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 14532 | # handling of long lines. |
| 14533 | ac_delim='%!_!# ' |
| 14534 | for ac_last_try in false false :; do |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14535 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 14536 | if test -z "$ac_tt"; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14537 | break |
| 14538 | elif $ac_last_try; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14539 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14540 | else |
| 14541 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 14542 | fi |
| 14543 | done |
| 14544 | |
| 14545 | # For the awk script, D is an array of macro values keyed by name, |
| 14546 | # likewise P contains macro parameters if any. Preserve backslash |
| 14547 | # newline sequences. |
| 14548 | |
| 14549 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 14550 | sed -n ' |
| 14551 | s/.\{148\}/&'"$ac_delim"'/g |
| 14552 | t rset |
| 14553 | :rset |
| 14554 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 14555 | t def |
| 14556 | d |
| 14557 | :def |
| 14558 | s/\\$// |
| 14559 | t bsnl |
| 14560 | s/["\\]/\\&/g |
| 14561 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14562 | D["\1"]=" \3"/p |
| 14563 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 14564 | d |
| 14565 | :bsnl |
| 14566 | s/["\\]/\\&/g |
| 14567 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 14568 | D["\1"]=" \3\\\\\\n"\\/p |
| 14569 | t cont |
| 14570 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 14571 | t cont |
| 14572 | d |
| 14573 | :cont |
| 14574 | n |
| 14575 | s/.\{148\}/&'"$ac_delim"'/g |
| 14576 | t clear |
| 14577 | :clear |
| 14578 | s/\\$// |
| 14579 | t bsnlc |
| 14580 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 14581 | d |
| 14582 | :bsnlc |
| 14583 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 14584 | b cont |
| 14585 | ' <confdefs.h | sed ' |
| 14586 | s/'"$ac_delim"'/"\\\ |
| 14587 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 14588 | |
| 14589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14590 | for (key in D) D_is_set[key] = 1 |
| 14591 | FS = "" |
| 14592 | } |
| 14593 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 14594 | line = \$ 0 |
| 14595 | split(line, arg, " ") |
| 14596 | if (arg[1] == "#") { |
| 14597 | defundef = arg[2] |
| 14598 | mac1 = arg[3] |
| 14599 | } else { |
| 14600 | defundef = substr(arg[1], 2) |
| 14601 | mac1 = arg[2] |
| 14602 | } |
| 14603 | split(mac1, mac2, "(") #) |
| 14604 | macro = mac2[1] |
| 14605 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 14606 | if (D_is_set[macro]) { |
| 14607 | # Preserve the white space surrounding the "#". |
| 14608 | print prefix "define", macro P[macro] D[macro] |
| 14609 | next |
| 14610 | } else { |
| 14611 | # Replace #undef with comments. This is necessary, for example, |
| 14612 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 14613 | # on some systems where configure will not decide to define it. |
| 14614 | if (defundef == "undef") { |
| 14615 | print "/*", prefix defundef, macro, "*/" |
| 14616 | next |
| 14617 | } |
| 14618 | } |
| 14619 | } |
| 14620 | { print } |
| 14621 | _ACAWK |
| 14622 | _ACEOF |
| 14623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14624 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14625 | fi # test -n "$CONFIG_HEADERS" |
| 14626 | |
| 14627 | |
| 14628 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 14629 | shift |
| 14630 | for ac_tag |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14631 | do |
| 14632 | case $ac_tag in |
| 14633 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 14634 | esac |
| 14635 | case $ac_mode$ac_tag in |
| 14636 | :[FHL]*:*);; |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14637 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14638 | :[FH]-) ac_tag=-:-;; |
| 14639 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 14640 | esac |
| 14641 | ac_save_IFS=$IFS |
| 14642 | IFS=: |
| 14643 | set x $ac_tag |
| 14644 | IFS=$ac_save_IFS |
| 14645 | shift |
| 14646 | ac_file=$1 |
| 14647 | shift |
| 14648 | |
| 14649 | case $ac_mode in |
| 14650 | :L) ac_source=$1;; |
| 14651 | :[FH]) |
| 14652 | ac_file_inputs= |
| 14653 | for ac_f |
| 14654 | do |
| 14655 | case $ac_f in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14656 | -) ac_f="$ac_tmp/stdin";; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14657 | *) # Look for the file first in the build tree, then in the source tree |
| 14658 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 14659 | # because $ac_f cannot contain `:'. |
| 14660 | test -f "$ac_f" || |
| 14661 | case $ac_f in |
| 14662 | [\\/$]*) false;; |
| 14663 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 14664 | esac || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14665 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14666 | esac |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14667 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14668 | as_fn_append ac_file_inputs " '$ac_f'" |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14669 | done |
| 14670 | |
| 14671 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14672 | # use $as_me), people would be surprised to read: |
| 14673 | # /* config.h. Generated by config.status. */ |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14674 | configure_input='Generated from '` |
| 14675 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 14676 | `' by configure.' |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14677 | if test x"$ac_file" != x-; then |
| 14678 | configure_input="$ac_file. $configure_input" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14679 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14680 | $as_echo "$as_me: creating $ac_file" >&6;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14681 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14682 | # Neutralize special characters interpreted by sed in replacement strings. |
| 14683 | case $configure_input in #( |
| 14684 | *\&* | *\|* | *\\* ) |
| 14685 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 14686 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 14687 | *) ac_sed_conf_input=$configure_input;; |
| 14688 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14689 | |
| 14690 | case $ac_tag in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14691 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 14692 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14693 | esac |
| 14694 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14695 | esac |
| 14696 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14697 | ac_dir=`$as_dirname -- "$ac_file" || |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14698 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14699 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14700 | X"$ac_file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14701 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14702 | $as_echo X"$ac_file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14704 | s//\1/ |
| 14705 | q |
| 14706 | } |
| 14707 | /^X\(\/\/\)[^/].*/{ |
| 14708 | s//\1/ |
| 14709 | q |
| 14710 | } |
| 14711 | /^X\(\/\/\)$/{ |
| 14712 | s//\1/ |
| 14713 | q |
| 14714 | } |
| 14715 | /^X\(\/\).*/{ |
| 14716 | s//\1/ |
| 14717 | q |
| 14718 | } |
| 14719 | s/.*/./; q'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14720 | as_dir="$ac_dir"; as_fn_mkdir_p |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14721 | ac_builddir=. |
| 14722 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14723 | case "$ac_dir" in |
| 14724 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14725 | *) |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14726 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14727 | # A ".." for each directory in $ac_dir_suffix. |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14728 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14729 | case $ac_top_builddir_sub in |
| 14730 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 14731 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 14732 | esac ;; |
| 14733 | esac |
| 14734 | ac_abs_top_builddir=$ac_pwd |
| 14735 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 14736 | # for backward compatibility: |
| 14737 | ac_top_builddir=$ac_top_build_prefix |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14738 | |
| 14739 | case $srcdir in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14740 | .) # We are building in place. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14741 | ac_srcdir=. |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14742 | ac_top_srcdir=$ac_top_builddir_sub |
| 14743 | ac_abs_top_srcdir=$ac_pwd ;; |
| 14744 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14745 | ac_srcdir=$srcdir$ac_dir_suffix; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14746 | ac_top_srcdir=$srcdir |
| 14747 | ac_abs_top_srcdir=$srcdir ;; |
| 14748 | *) # Relative name. |
| 14749 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 14750 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 14751 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14752 | esac |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14753 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14754 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14755 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14756 | case $ac_mode in |
| 14757 | :F) |
| 14758 | # |
| 14759 | # CONFIG_FILE |
| 14760 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14761 | |
| 14762 | case $INSTALL in |
| 14763 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14764 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14765 | esac |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 14766 | ac_MKDIR_P=$MKDIR_P |
| 14767 | case $MKDIR_P in |
| 14768 | [\\/$]* | ?:[\\/]* ) ;; |
| 14769 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 14770 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14771 | _ACEOF |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14772 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14773 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14774 | # If the template does not know about datarootdir, expand it. |
| 14775 | # FIXME: This hack should be removed a few years after 2.60. |
| 14776 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14777 | ac_sed_dataroot=' |
| 14778 | /datarootdir/ { |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14779 | p |
| 14780 | q |
| 14781 | } |
| 14782 | /@datadir@/p |
| 14783 | /@docdir@/p |
| 14784 | /@infodir@/p |
| 14785 | /@localedir@/p |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14786 | /@mandir@/p' |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14787 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14788 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 14789 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14791 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14792 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14793 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14794 | ac_datarootdir_hack=' |
| 14795 | s&@datadir@&$datadir&g |
| 14796 | s&@docdir@&$docdir&g |
| 14797 | s&@infodir@&$infodir&g |
| 14798 | s&@localedir@&$localedir&g |
| 14799 | s&@mandir@&$mandir&g |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14800 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14801 | esac |
| 14802 | _ACEOF |
| 14803 | |
| 14804 | # Neutralize VPATH when `$srcdir' = `.'. |
| 14805 | # Shell code in configure.ac might set extrasub. |
| 14806 | # FIXME: do we really want to maintain this feature? |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 14808 | ac_sed_extra="$ac_vpsub |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14809 | $extrasub |
| 14810 | _ACEOF |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14811 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14812 | :t |
| 14813 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14814 | s|@configure_input@|$ac_sed_conf_input|;t t |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14815 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14816 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14817 | s&@srcdir@&$ac_srcdir&;t t |
| 14818 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 14819 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 14820 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 14821 | s&@builddir@&$ac_builddir&;t t |
| 14822 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 14823 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 14824 | s&@INSTALL@&$ac_INSTALL&;t t |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 14825 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14826 | $ac_datarootdir_hack |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14827 | " |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14828 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 14829 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14830 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14831 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14832 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 14833 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 14834 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 14835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 14836 | which seems to be undefined. Please make sure it is defined" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14837 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14838 | which seems to be undefined. Please make sure it is defined" >&2;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14839 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14840 | rm -f "$ac_tmp/stdin" |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14841 | case $ac_file in |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14842 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 14843 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14844 | esac \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14845 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14846 | ;; |
| 14847 | :H) |
| 14848 | # |
| 14849 | # CONFIG_HEADER |
| 14850 | # |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14851 | if test x"$ac_file" != x-; then |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14852 | { |
| 14853 | $as_echo "/* $configure_input */" \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14854 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 14855 | } >"$ac_tmp/config.h" \ |
| 14856 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 14857 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 14858 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14859 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14860 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14861 | rm -f "$ac_file" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14862 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 14863 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14864 | fi |
| 14865 | else |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14866 | $as_echo "/* $configure_input */" \ |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14867 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 14868 | || as_fn_error $? "could not create -" "$LINENO" 5 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14869 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14870 | # Compute "$ac_file"'s index in $config_headers. |
| 14871 | _am_arg="$ac_file" |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14872 | _am_stamp_count=1 |
| 14873 | for _am_header in $config_headers :; do |
| 14874 | case $_am_header in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14875 | $_am_arg | $_am_arg:* ) |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14876 | break ;; |
| 14877 | * ) |
| 14878 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14879 | esac |
| 14880 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14881 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 14882 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14883 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 14884 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 14885 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 14886 | $as_echo X"$_am_arg" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14887 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14888 | s//\1/ |
| 14889 | q |
| 14890 | } |
| 14891 | /^X\(\/\/\)[^/].*/{ |
| 14892 | s//\1/ |
| 14893 | q |
| 14894 | } |
| 14895 | /^X\(\/\/\)$/{ |
| 14896 | s//\1/ |
| 14897 | q |
| 14898 | } |
| 14899 | /^X\(\/\).*/{ |
| 14900 | s//\1/ |
| 14901 | q |
| 14902 | } |
| 14903 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 14904 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14905 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 14906 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14907 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14908 | ;; |
| 14909 | esac |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 14910 | |
| 14911 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14912 | case $ac_file$ac_mode in |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14913 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 14914 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 14915 | # are listed without --file. Let's play safe and only enable the eval |
| 14916 | # if we detect the quoting. |
| 14917 | case $CONFIG_FILES in |
| 14918 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 14919 | *) set x $CONFIG_FILES ;; |
| 14920 | esac |
| 14921 | shift |
| 14922 | for mf |
| 14923 | do |
| 14924 | # Strip MF so we end up with the name of the file. |
| 14925 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 14926 | # Check whether this is an Automake generated Makefile or not. |
| 14927 | # We used to match only the files named `Makefile.in', but |
| 14928 | # some people rename them; so instead we look at the file content. |
| 14929 | # Grep'ing the first line is not enough: some people post-process |
| 14930 | # each Makefile.in and add a new line on top of each file to say so. |
| 14931 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 14932 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 14933 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 14934 | dirpart=`$as_dirname -- "$mf" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14935 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14936 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 14937 | X"$mf" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14938 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14939 | $as_echo X"$mf" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14941 | s//\1/ |
| 14942 | q |
| 14943 | } |
| 14944 | /^X\(\/\/\)[^/].*/{ |
| 14945 | s//\1/ |
| 14946 | q |
| 14947 | } |
| 14948 | /^X\(\/\/\)$/{ |
| 14949 | s//\1/ |
| 14950 | q |
| 14951 | } |
| 14952 | /^X\(\/\).*/{ |
| 14953 | s//\1/ |
| 14954 | q |
| 14955 | } |
| 14956 | s/.*/./; q'` |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14957 | else |
| 14958 | continue |
| 14959 | fi |
| 14960 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 14961 | # from the Makefile without running `make'. |
| 14962 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 14963 | test -z "$DEPDIR" && continue |
| 14964 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 14965 | test -z "am__include" && continue |
| 14966 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 14967 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 14968 | U=`sed -n 's/^U = //p' < "$mf"` |
| 14969 | # Find all dependency output files, they are included files with |
| 14970 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 14971 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 14972 | # expansion. |
| 14973 | for file in `sed -n " |
| 14974 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 14975 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 14976 | # Make sure the directory exists. |
| 14977 | test -f "$dirpart/$file" && continue |
| 14978 | fdir=`$as_dirname -- "$file" || |
Lev Walkin | 8e8b548 | 2004-06-17 23:42:48 +0000 | [diff] [blame] | 14979 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14980 | X"$file" : 'X\(//\)[^/]' \| \ |
| 14981 | X"$file" : 'X\(//\)$' \| \ |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14982 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 14983 | $as_echo X"$file" | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 14984 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14985 | s//\1/ |
| 14986 | q |
| 14987 | } |
| 14988 | /^X\(\/\/\)[^/].*/{ |
| 14989 | s//\1/ |
| 14990 | q |
| 14991 | } |
| 14992 | /^X\(\/\/\)$/{ |
| 14993 | s//\1/ |
| 14994 | q |
| 14995 | } |
| 14996 | /^X\(\/\).*/{ |
| 14997 | s//\1/ |
| 14998 | q |
| 14999 | } |
| 15000 | s/.*/./; q'` |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15001 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15002 | # echo "creating $dirpart/$file" |
| 15003 | echo '# dummy' > "$dirpart/$file" |
| 15004 | done |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15005 | done |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15006 | } |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15007 | ;; |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15008 | "libtool":C) |
| 15009 | |
| 15010 | # See if we are running on zsh, and set the options which allow our |
| 15011 | # commands through without removal of \ escapes. |
| 15012 | if test -n "${ZSH_VERSION+set}" ; then |
| 15013 | setopt NO_GLOB_SUBST |
| 15014 | fi |
| 15015 | |
| 15016 | cfgfile="${ofile}T" |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15017 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 15018 | $RM "$cfgfile" |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15019 | |
| 15020 | cat <<_LT_EOF >> "$cfgfile" |
| 15021 | #! $SHELL |
| 15022 | |
| 15023 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 15024 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 15025 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 15026 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 15027 | # |
| 15028 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15029 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
| 15030 | # Inc. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15031 | # Written by Gordon Matzigkeit, 1996 |
| 15032 | # |
| 15033 | # This file is part of GNU Libtool. |
| 15034 | # |
| 15035 | # GNU Libtool is free software; you can redistribute it and/or |
| 15036 | # modify it under the terms of the GNU General Public License as |
| 15037 | # published by the Free Software Foundation; either version 2 of |
| 15038 | # the License, or (at your option) any later version. |
| 15039 | # |
| 15040 | # As a special exception to the GNU General Public License, |
| 15041 | # if you distribute this file as part of a program or library that |
| 15042 | # is built using GNU Libtool, you may include this file under the |
| 15043 | # same distribution terms that you use for the rest of that program. |
| 15044 | # |
| 15045 | # GNU Libtool is distributed in the hope that it will be useful, |
| 15046 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15047 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15048 | # GNU General Public License for more details. |
| 15049 | # |
| 15050 | # You should have received a copy of the GNU General Public License |
| 15051 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 15052 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 15053 | # obtained by writing to the Free Software Foundation, Inc., |
| 15054 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 15055 | |
| 15056 | |
| 15057 | # The names of the tagged configurations supported by this script. |
| 15058 | available_tags="" |
| 15059 | |
| 15060 | # ### BEGIN LIBTOOL CONFIG |
| 15061 | |
| 15062 | # Which release of libtool.m4 was used? |
| 15063 | macro_version=$macro_version |
| 15064 | macro_revision=$macro_revision |
| 15065 | |
| 15066 | # Whether or not to build shared libraries. |
| 15067 | build_libtool_libs=$enable_shared |
| 15068 | |
| 15069 | # Whether or not to build static libraries. |
| 15070 | build_old_libs=$enable_static |
| 15071 | |
| 15072 | # What type of objects to build. |
| 15073 | pic_mode=$pic_mode |
| 15074 | |
| 15075 | # Whether or not to optimize for fast installation. |
| 15076 | fast_install=$enable_fast_install |
| 15077 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15078 | # Shell to use when invoking shell scripts. |
| 15079 | SHELL=$lt_SHELL |
| 15080 | |
| 15081 | # An echo program that protects backslashes. |
| 15082 | ECHO=$lt_ECHO |
| 15083 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15084 | # The host system. |
| 15085 | host_alias=$host_alias |
| 15086 | host=$host |
| 15087 | host_os=$host_os |
| 15088 | |
| 15089 | # The build system. |
| 15090 | build_alias=$build_alias |
| 15091 | build=$build |
| 15092 | build_os=$build_os |
| 15093 | |
| 15094 | # A sed program that does not truncate output. |
| 15095 | SED=$lt_SED |
| 15096 | |
| 15097 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 15098 | Xsed="\$SED -e 1s/^X//" |
| 15099 | |
| 15100 | # A grep program that handles long lines. |
| 15101 | GREP=$lt_GREP |
| 15102 | |
| 15103 | # An ERE matcher. |
| 15104 | EGREP=$lt_EGREP |
| 15105 | |
| 15106 | # A literal string matcher. |
| 15107 | FGREP=$lt_FGREP |
| 15108 | |
| 15109 | # A BSD- or MS-compatible name lister. |
| 15110 | NM=$lt_NM |
| 15111 | |
| 15112 | # Whether we need soft or hard links. |
| 15113 | LN_S=$lt_LN_S |
| 15114 | |
| 15115 | # What is the maximum length of a command? |
| 15116 | max_cmd_len=$max_cmd_len |
| 15117 | |
| 15118 | # Object file suffix (normally "o"). |
| 15119 | objext=$ac_objext |
| 15120 | |
| 15121 | # Executable file suffix (normally ""). |
| 15122 | exeext=$exeext |
| 15123 | |
| 15124 | # whether the shell understands "unset". |
| 15125 | lt_unset=$lt_unset |
| 15126 | |
| 15127 | # turn spaces into newlines. |
| 15128 | SP2NL=$lt_lt_SP2NL |
| 15129 | |
| 15130 | # turn newlines into spaces. |
| 15131 | NL2SP=$lt_lt_NL2SP |
| 15132 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15133 | # convert \$build file names to \$host format. |
| 15134 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 15135 | |
| 15136 | # convert \$build files to toolchain format. |
| 15137 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 15138 | |
| 15139 | # An object symbol dumper. |
| 15140 | OBJDUMP=$lt_OBJDUMP |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15141 | |
| 15142 | # Method to check whether dependent libraries are shared objects. |
| 15143 | deplibs_check_method=$lt_deplibs_check_method |
| 15144 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15145 | # Command to use when deplibs_check_method = "file_magic". |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15146 | file_magic_cmd=$lt_file_magic_cmd |
| 15147 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15148 | # How to find potential files when deplibs_check_method = "file_magic". |
| 15149 | file_magic_glob=$lt_file_magic_glob |
| 15150 | |
| 15151 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 15152 | want_nocaseglob=$lt_want_nocaseglob |
| 15153 | |
| 15154 | # DLL creation program. |
| 15155 | DLLTOOL=$lt_DLLTOOL |
| 15156 | |
| 15157 | # Command to associate shared and link libraries. |
| 15158 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 15159 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15160 | # The archiver. |
| 15161 | AR=$lt_AR |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15162 | |
| 15163 | # Flags to create an archive. |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15164 | AR_FLAGS=$lt_AR_FLAGS |
| 15165 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15166 | # How to feed a file listing to the archiver. |
| 15167 | archiver_list_spec=$lt_archiver_list_spec |
| 15168 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15169 | # A symbol stripping program. |
| 15170 | STRIP=$lt_STRIP |
| 15171 | |
| 15172 | # Commands used to install an old-style archive. |
| 15173 | RANLIB=$lt_RANLIB |
| 15174 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 15175 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 15176 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15177 | # Whether to use a lock for old archive extraction. |
| 15178 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 15179 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15180 | # A C compiler. |
| 15181 | LTCC=$lt_CC |
| 15182 | |
| 15183 | # LTCC compiler flags. |
| 15184 | LTCFLAGS=$lt_CFLAGS |
| 15185 | |
| 15186 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 15187 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 15188 | |
| 15189 | # Transform the output of nm in a proper C declaration. |
| 15190 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 15191 | |
| 15192 | # Transform the output of nm in a C name address pair. |
| 15193 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 15194 | |
| 15195 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 15196 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 15197 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15198 | # Specify filename containing input files for \$NM. |
| 15199 | nm_file_list_spec=$lt_nm_file_list_spec |
| 15200 | |
| 15201 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 15202 | lt_sysroot=$lt_sysroot |
| 15203 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15204 | # The name of the directory that contains temporary libtool files. |
| 15205 | objdir=$objdir |
| 15206 | |
| 15207 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 15208 | MAGIC_CMD=$MAGIC_CMD |
| 15209 | |
| 15210 | # Must we lock files when doing compilation? |
| 15211 | need_locks=$lt_need_locks |
| 15212 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15213 | # Manifest tool. |
| 15214 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 15215 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15216 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 15217 | DSYMUTIL=$lt_DSYMUTIL |
| 15218 | |
| 15219 | # Tool to change global to local symbols on Mac OS X. |
| 15220 | NMEDIT=$lt_NMEDIT |
| 15221 | |
| 15222 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 15223 | LIPO=$lt_LIPO |
| 15224 | |
| 15225 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 15226 | OTOOL=$lt_OTOOL |
| 15227 | |
| 15228 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 15229 | OTOOL64=$lt_OTOOL64 |
| 15230 | |
| 15231 | # Old archive suffix (normally "a"). |
| 15232 | libext=$libext |
| 15233 | |
| 15234 | # Shared library suffix (normally ".so"). |
| 15235 | shrext_cmds=$lt_shrext_cmds |
| 15236 | |
| 15237 | # The commands to extract the exported symbol list from a shared archive. |
| 15238 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 15239 | |
| 15240 | # Variables whose values should be saved in libtool wrapper scripts and |
| 15241 | # restored at link time. |
| 15242 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 15243 | |
| 15244 | # Do we need the "lib" prefix for modules? |
| 15245 | need_lib_prefix=$need_lib_prefix |
| 15246 | |
| 15247 | # Do we need a version for libraries? |
| 15248 | need_version=$need_version |
| 15249 | |
| 15250 | # Library versioning type. |
| 15251 | version_type=$version_type |
| 15252 | |
| 15253 | # Shared library runtime path variable. |
| 15254 | runpath_var=$runpath_var |
| 15255 | |
| 15256 | # Shared library path variable. |
| 15257 | shlibpath_var=$shlibpath_var |
| 15258 | |
| 15259 | # Is shlibpath searched before the hard-coded library search path? |
| 15260 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 15261 | |
| 15262 | # Format of library name prefix. |
| 15263 | libname_spec=$lt_libname_spec |
| 15264 | |
| 15265 | # List of archive names. First name is the real one, the rest are links. |
| 15266 | # The last name is the one that the linker finds with -lNAME |
| 15267 | library_names_spec=$lt_library_names_spec |
| 15268 | |
| 15269 | # The coded name of the library, if different from the real name. |
| 15270 | soname_spec=$lt_soname_spec |
| 15271 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15272 | # Permission mode override for installation of shared libraries. |
| 15273 | install_override_mode=$lt_install_override_mode |
| 15274 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15275 | # Command to use after installation of a shared archive. |
| 15276 | postinstall_cmds=$lt_postinstall_cmds |
| 15277 | |
| 15278 | # Command to use after uninstallation of a shared archive. |
| 15279 | postuninstall_cmds=$lt_postuninstall_cmds |
| 15280 | |
| 15281 | # Commands used to finish a libtool library installation in a directory. |
| 15282 | finish_cmds=$lt_finish_cmds |
| 15283 | |
| 15284 | # As "finish_cmds", except a single script fragment to be evaled but |
| 15285 | # not shown. |
| 15286 | finish_eval=$lt_finish_eval |
| 15287 | |
| 15288 | # Whether we should hardcode library paths into libraries. |
| 15289 | hardcode_into_libs=$hardcode_into_libs |
| 15290 | |
| 15291 | # Compile-time system search path for libraries. |
| 15292 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 15293 | |
| 15294 | # Run-time system search path for libraries. |
| 15295 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 15296 | |
| 15297 | # Whether dlopen is supported. |
| 15298 | dlopen_support=$enable_dlopen |
| 15299 | |
| 15300 | # Whether dlopen of programs is supported. |
| 15301 | dlopen_self=$enable_dlopen_self |
| 15302 | |
| 15303 | # Whether dlopen of statically linked programs is supported. |
| 15304 | dlopen_self_static=$enable_dlopen_self_static |
| 15305 | |
| 15306 | # Commands to strip libraries. |
| 15307 | old_striplib=$lt_old_striplib |
| 15308 | striplib=$lt_striplib |
| 15309 | |
| 15310 | |
| 15311 | # The linker used to build libraries. |
| 15312 | LD=$lt_LD |
| 15313 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15314 | # How to create reloadable object files. |
| 15315 | reload_flag=$lt_reload_flag |
| 15316 | reload_cmds=$lt_reload_cmds |
| 15317 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15318 | # Commands used to build an old-style archive. |
| 15319 | old_archive_cmds=$lt_old_archive_cmds |
| 15320 | |
| 15321 | # A language specific compiler. |
| 15322 | CC=$lt_compiler |
| 15323 | |
| 15324 | # Is the compiler the GNU compiler? |
| 15325 | with_gcc=$GCC |
| 15326 | |
| 15327 | # Compiler flag to turn off builtin functions. |
| 15328 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 15329 | |
Lev Walkin | 4c776e5 | 2010-11-08 02:07:31 -0800 | [diff] [blame] | 15330 | # Additional compiler flags for building library objects. |
| 15331 | pic_flag=$lt_lt_prog_compiler_pic |
| 15332 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15333 | # How to pass a linker flag through the compiler. |
| 15334 | wl=$lt_lt_prog_compiler_wl |
| 15335 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15336 | # Compiler flag to prevent dynamic linking. |
| 15337 | link_static_flag=$lt_lt_prog_compiler_static |
| 15338 | |
| 15339 | # Does compiler simultaneously support -c and -o options? |
| 15340 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 15341 | |
| 15342 | # Whether or not to add -lc for building shared libraries. |
| 15343 | build_libtool_need_lc=$archive_cmds_need_lc |
| 15344 | |
| 15345 | # Whether or not to disallow shared libs when runtime libs are static. |
| 15346 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 15347 | |
| 15348 | # Compiler flag to allow reflexive dlopens. |
| 15349 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 15350 | |
| 15351 | # Compiler flag to generate shared objects directly from archives. |
| 15352 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 15353 | |
| 15354 | # Whether the compiler copes with passing no objects directly. |
| 15355 | compiler_needs_object=$lt_compiler_needs_object |
| 15356 | |
| 15357 | # Create an old-style archive from a shared archive. |
| 15358 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 15359 | |
| 15360 | # Create a temporary old-style archive to link instead of a shared archive. |
| 15361 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 15362 | |
| 15363 | # Commands used to build a shared archive. |
| 15364 | archive_cmds=$lt_archive_cmds |
| 15365 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 15366 | |
| 15367 | # Commands used to build a loadable module if different from building |
| 15368 | # a shared archive. |
| 15369 | module_cmds=$lt_module_cmds |
| 15370 | module_expsym_cmds=$lt_module_expsym_cmds |
| 15371 | |
| 15372 | # Whether we are building with GNU ld or not. |
| 15373 | with_gnu_ld=$lt_with_gnu_ld |
| 15374 | |
| 15375 | # Flag that allows shared libraries with undefined symbols to be built. |
| 15376 | allow_undefined_flag=$lt_allow_undefined_flag |
| 15377 | |
| 15378 | # Flag that enforces no undefined symbols. |
| 15379 | no_undefined_flag=$lt_no_undefined_flag |
| 15380 | |
| 15381 | # Flag to hardcode \$libdir into a binary during linking. |
| 15382 | # This must work even if \$libdir does not exist |
| 15383 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 15384 | |
| 15385 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 15386 | # during linking. This must work even if \$libdir does not exist. |
| 15387 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 15388 | |
| 15389 | # Whether we need a single "-rpath" flag with a separated argument. |
| 15390 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 15391 | |
| 15392 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15393 | # DIR into the resulting binary. |
| 15394 | hardcode_direct=$hardcode_direct |
| 15395 | |
| 15396 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 15397 | # DIR into the resulting binary and the resulting library dependency is |
| 15398 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 15399 | # library is relocated. |
| 15400 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 15401 | |
| 15402 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 15403 | # into the resulting binary. |
| 15404 | hardcode_minus_L=$hardcode_minus_L |
| 15405 | |
| 15406 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 15407 | # into the resulting binary. |
| 15408 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 15409 | |
| 15410 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 15411 | # into the library and all subsequent libraries and executables linked |
| 15412 | # against it. |
| 15413 | hardcode_automatic=$hardcode_automatic |
| 15414 | |
| 15415 | # Set to yes if linker adds runtime paths of dependent libraries |
| 15416 | # to runtime path list. |
| 15417 | inherit_rpath=$inherit_rpath |
| 15418 | |
| 15419 | # Whether libtool must link a program against all its dependency libraries. |
| 15420 | link_all_deplibs=$link_all_deplibs |
| 15421 | |
| 15422 | # Set to "yes" if exported symbols are required. |
| 15423 | always_export_symbols=$always_export_symbols |
| 15424 | |
| 15425 | # The commands to list exported symbols. |
| 15426 | export_symbols_cmds=$lt_export_symbols_cmds |
| 15427 | |
| 15428 | # Symbols that should not be listed in the preloaded symbols. |
| 15429 | exclude_expsyms=$lt_exclude_expsyms |
| 15430 | |
| 15431 | # Symbols that must always be exported. |
| 15432 | include_expsyms=$lt_include_expsyms |
| 15433 | |
| 15434 | # Commands necessary for linking programs (against libraries) with templates. |
| 15435 | prelink_cmds=$lt_prelink_cmds |
| 15436 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15437 | # Commands necessary for finishing linking programs. |
| 15438 | postlink_cmds=$lt_postlink_cmds |
| 15439 | |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15440 | # Specify filename containing input files. |
| 15441 | file_list_spec=$lt_file_list_spec |
| 15442 | |
| 15443 | # How to hardcode a shared library path into an executable. |
| 15444 | hardcode_action=$hardcode_action |
| 15445 | |
| 15446 | # ### END LIBTOOL CONFIG |
| 15447 | |
| 15448 | _LT_EOF |
| 15449 | |
| 15450 | case $host_os in |
| 15451 | aix3*) |
| 15452 | cat <<\_LT_EOF >> "$cfgfile" |
| 15453 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 15454 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 15455 | # vanish in a puff of smoke. |
| 15456 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 15457 | COLLECT_NAMES= |
| 15458 | export COLLECT_NAMES |
| 15459 | fi |
| 15460 | _LT_EOF |
| 15461 | ;; |
| 15462 | esac |
| 15463 | |
| 15464 | |
| 15465 | ltmain="$ac_aux_dir/ltmain.sh" |
| 15466 | |
| 15467 | |
| 15468 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 15469 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 15470 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 15471 | # is reportedly fixed, but why not run on old versions too? |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15472 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 15473 | || (rm -f "$cfgfile"; exit 1) |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15474 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15475 | if test x"$xsi_shell" = xyes; then |
| 15476 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 15477 | func_dirname ()\ |
| 15478 | {\ |
| 15479 | \ case ${1} in\ |
| 15480 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 15481 | \ * ) func_dirname_result="${3}" ;;\ |
| 15482 | \ esac\ |
| 15483 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15484 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15485 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15486 | test 0 -eq $? || _lt_function_replace_fail=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15487 | |
| 15488 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15489 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 15490 | func_basename ()\ |
| 15491 | {\ |
| 15492 | \ func_basename_result="${1##*/}"\ |
| 15493 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15494 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15495 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15496 | test 0 -eq $? || _lt_function_replace_fail=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15497 | |
| 15498 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15499 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 15500 | func_dirname_and_basename ()\ |
| 15501 | {\ |
| 15502 | \ case ${1} in\ |
| 15503 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 15504 | \ * ) func_dirname_result="${3}" ;;\ |
| 15505 | \ esac\ |
| 15506 | \ func_basename_result="${1##*/}"\ |
| 15507 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15508 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15509 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15510 | test 0 -eq $? || _lt_function_replace_fail=: |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15511 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15512 | |
| 15513 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 15514 | func_stripname ()\ |
| 15515 | {\ |
| 15516 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 15517 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 15518 | \ func_stripname_result=${3}\ |
| 15519 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 15520 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 15521 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15522 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15523 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15524 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15525 | |
| 15526 | |
| 15527 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 15528 | func_split_long_opt ()\ |
| 15529 | {\ |
| 15530 | \ func_split_long_opt_name=${1%%=*}\ |
| 15531 | \ func_split_long_opt_arg=${1#*=}\ |
| 15532 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15533 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15534 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15535 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15536 | |
| 15537 | |
| 15538 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 15539 | func_split_short_opt ()\ |
| 15540 | {\ |
| 15541 | \ func_split_short_opt_arg=${1#??}\ |
| 15542 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 15543 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15544 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15545 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15546 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15547 | |
| 15548 | |
| 15549 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 15550 | func_lo2o ()\ |
| 15551 | {\ |
| 15552 | \ case ${1} in\ |
| 15553 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 15554 | \ *) func_lo2o_result=${1} ;;\ |
| 15555 | \ esac\ |
| 15556 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15557 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15558 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15559 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15560 | |
| 15561 | |
| 15562 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 15563 | func_xform ()\ |
| 15564 | {\ |
| 15565 | func_xform_result=${1%.*}.lo\ |
| 15566 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15567 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15568 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15569 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15570 | |
| 15571 | |
| 15572 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 15573 | func_arith ()\ |
| 15574 | {\ |
| 15575 | func_arith_result=$(( $* ))\ |
| 15576 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15577 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15578 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15579 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15580 | |
| 15581 | |
| 15582 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 15583 | func_len ()\ |
| 15584 | {\ |
| 15585 | func_len_result=${#1}\ |
| 15586 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15587 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15588 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15589 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15590 | |
| 15591 | fi |
| 15592 | |
| 15593 | if test x"$lt_shell_append" = xyes; then |
| 15594 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 15595 | func_append ()\ |
| 15596 | {\ |
| 15597 | eval "${1}+=\\${2}"\ |
| 15598 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15599 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15600 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15601 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15602 | |
| 15603 | |
| 15604 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 15605 | func_append_quoted ()\ |
| 15606 | {\ |
| 15607 | \ func_quote_for_eval "${2}"\ |
| 15608 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 15609 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 15610 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15611 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15612 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15613 | |
| 15614 | |
| 15615 | # Save a `func_append' function call where possible by direct use of '+=' |
| 15616 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 15617 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15618 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15619 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15620 | else |
| 15621 | # Save a `func_append' function call even when '+=' is not available |
| 15622 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 15623 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 15624 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 15625 | test 0 -eq $? || _lt_function_replace_fail=: |
| 15626 | fi |
| 15627 | |
| 15628 | if test x"$_lt_function_replace_fail" = x":"; then |
| 15629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 15630 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 15631 | fi |
| 15632 | |
| 15633 | |
| 15634 | mv -f "$cfgfile" "$ofile" || |
Lev Walkin | 4da95cf | 2010-10-16 02:46:32 -0700 | [diff] [blame] | 15635 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 15636 | chmod +x "$ofile" |
| 15637 | |
| 15638 | ;; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15639 | |
Lev Walkin | 27fd0b6 | 2007-08-27 23:57:45 +0000 | [diff] [blame] | 15640 | esac |
| 15641 | done # for ac_tag |
| 15642 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15643 | |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15644 | as_fn_exit 0 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15645 | _ACEOF |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15646 | ac_clean_files=$ac_clean_files_save |
| 15647 | |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15648 | test $ac_write_fail = 0 || |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15649 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15650 | |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15651 | |
| 15652 | # configure is writing to config.log, and then calls config.status. |
| 15653 | # config.status does its own redirection, appending to config.log. |
| 15654 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15655 | # by configure, so config.status won't be able to write to it; its |
| 15656 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15657 | # effectively closing config.log, so it can be properly (re)opened and |
| 15658 | # appended to by config.status. When coming back to configure, we |
| 15659 | # need to make the FD available again. |
| 15660 | if test "$no_create" != yes; then |
| 15661 | ac_cs_success=: |
| 15662 | ac_config_status_args= |
| 15663 | test "$silent" = yes && |
| 15664 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15665 | exec 5>/dev/null |
| 15666 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15667 | exec 5>>config.log |
| 15668 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15669 | # would make configure fail if this is the last instruction. |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15670 | $ac_cs_success || as_fn_exit 1 |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15671 | fi |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15672 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Lev Walkin | aef10c3 | 2014-01-14 01:47:25 -0800 | [diff] [blame] | 15673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Lev Walkin | b375194 | 2012-09-02 19:36:47 -0700 | [diff] [blame] | 15674 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 15675 | fi |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 15676 | |
| 15677 | |